@payfit/unity-components 3.23.14 → 3.23.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/ai-kit.js +19 -9
- package/dist/esm/core/components/radio-button-group/parts/RadioButton.js +9 -9
- package/dist/esm/core/components/select-list/SelectList.context.d.ts +9 -0
- package/dist/esm/core/components/select-list/SelectList.context.js +11 -0
- package/dist/esm/core/components/select-list/SelectList.d.ts +18 -3
- package/dist/esm/core/components/select-list/SelectList.js +71 -62
- package/dist/esm/core/components/select-list/hooks/useSelectedFirstSorting.js +11 -4
- package/dist/esm/core/components/select-list/parts/SelectListOption.d.ts +15 -0
- package/dist/esm/core/components/select-list/parts/SelectListOption.js +74 -35
- package/dist/esm/core/components/select-list/parts/SelectedItemsSection.d.ts +3 -1
- package/dist/esm/core/components/select-list/parts/SelectedItemsSection.js +17 -21
- package/dist/esm/core/index.js +62 -62
- package/dist/esm/index.js +62 -62
- package/dist/esm/modules/ai-kit/components/ai-structured-input/AIStructuredInput.context.d.ts +30 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/AIStructuredInput.context.js +5 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/AIStructuredInput.d.ts +46 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/AIStructuredInput.js +122 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/form/TanstackAIStructuredInputAnswersField.d.ts +48 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/form/TanstackAIStructuredInputAnswersField.js +62 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/form/TanstackAIStructuredInputForm.d.ts +5 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/form/TanstackAIStructuredInputForm.js +21 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/hooks/use-ai-structured-input-navigation.d.ts +89 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/hooks/use-ai-structured-input-navigation.js +39 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/parts/AIStructuredInputActions.d.ts +25 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/parts/AIStructuredInputActions.js +14 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/parts/AIStructuredInputAnswer.d.ts +15 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/parts/AIStructuredInputAnswer.js +50 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/parts/AIStructuredInputAnswers.context.d.ts +8 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/parts/AIStructuredInputAnswers.context.js +8 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/parts/AIStructuredInputAnswers.d.ts +73 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/parts/AIStructuredInputAnswers.js +30 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/parts/AIStructuredInputContent.d.ts +24 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/parts/AIStructuredInputContent.js +13 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/parts/AIStructuredInputFreeTextAnswer.d.ts +28 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/parts/AIStructuredInputFreeTextAnswer.js +125 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/parts/AIStructuredInputHeader.d.ts +43 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/parts/AIStructuredInputHeader.js +42 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/parts/AIStructuredInputStep.d.ts +43 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/parts/AIStructuredInputStep.js +14 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/parts/AIStructuredInputStepTitle.d.ts +43 -0
- package/dist/esm/modules/ai-kit/components/ai-structured-input/parts/AIStructuredInputStepTitle.js +78 -0
- package/dist/esm/modules/ai-kit/hooks/use-ai-kit-form.d.ts +198 -1
- package/dist/esm/modules/ai-kit/hooks/use-ai-kit-form.js +11 -5
- package/dist/esm/modules/ai-kit/index.d.ts +12 -0
- package/i18n/en-GB.json +10 -1
- package/i18n/es-ES.json +10 -1
- package/i18n/fr-FR.json +10 -1
- package/package.json +6 -6
- package/src/agent-references/component-catalog.json +24 -0
package/dist/esm/core/index.js
CHANGED
|
@@ -107,67 +107,67 @@ import { useContainerQueryLevel as Et } from "./hooks/use-container-query-level.
|
|
|
107
107
|
import { ErrorState as Dt, errorState as Ot } from "./components/error-state/ErrorState.js";
|
|
108
108
|
import { Fieldset as kt, fieldset as At } from "./components/fieldset/Fieldset.js";
|
|
109
109
|
import { FieldGroup as jt } from "./components/fieldset/parts/FieldGroup.js";
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
126
|
-
import {
|
|
127
|
-
import {
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
135
|
-
import {
|
|
136
|
-
import {
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
141
|
-
import {
|
|
142
|
-
import {
|
|
143
|
-
import {
|
|
144
|
-
import {
|
|
145
|
-
import {
|
|
146
|
-
import {
|
|
147
|
-
import {
|
|
148
|
-
import {
|
|
149
|
-
import {
|
|
150
|
-
import {
|
|
151
|
-
import {
|
|
152
|
-
import {
|
|
153
|
-
import {
|
|
154
|
-
import {
|
|
155
|
-
import {
|
|
156
|
-
import {
|
|
157
|
-
import {
|
|
158
|
-
import {
|
|
159
|
-
import {
|
|
160
|
-
import {
|
|
161
|
-
import {
|
|
162
|
-
import {
|
|
163
|
-
import {
|
|
164
|
-
import {
|
|
165
|
-
import {
|
|
166
|
-
import {
|
|
167
|
-
import {
|
|
168
|
-
import {
|
|
169
|
-
import {
|
|
170
|
-
import {
|
|
110
|
+
import { RadioIndicator as Mt } from "./components/radio-button-group/parts/RadioIndicator.js";
|
|
111
|
+
import { Filter as Nt, FilterControls as Pt, FilterLabels as Ft, filterContainer as It, filterDismissButton as Lt } from "./components/filter/Filter.js";
|
|
112
|
+
import { FloatingActionBar as Rt, floatingActionBar as zt } from "./components/floating-action-bar/FloatingActionBar.js";
|
|
113
|
+
import { FilterToolbar as Bt, filterToolbar as Vt } from "./components/filter-toolbar/FilterToolbar.js";
|
|
114
|
+
import { flex as Ht, flexItem as Ut } from "./components/flex/Flex.variants.js";
|
|
115
|
+
import { Flex as Wt, Stack as Gt } from "./components/flex/Flex.js";
|
|
116
|
+
import { FlexItem as Kt, StackItem as qt } from "./components/flex/FlexItem.js";
|
|
117
|
+
import { FullPageLoader as Jt, fullPageLoader as Yt } from "./components/full-page-loader/FullPageLoader.js";
|
|
118
|
+
import { SkipLink as Xt, SkipLinks as Zt } from "./components/skip-links/SkipLinks.js";
|
|
119
|
+
import { FunnelLayout as Qt, funnelLayout as $t } from "./components/funnel-layout/FunnelLayout.js";
|
|
120
|
+
import { FunnelBody as en, funnelBody as tn } from "./components/funnel-layout/parts/FunnelBody.js";
|
|
121
|
+
import { FunnelPage as nn, funnelPage as rn } from "./components/funnel-layout/parts/FunnelPage.js";
|
|
122
|
+
import { FunnelPageAction as an } from "./components/funnel-layout/parts/FunnelPageAction.js";
|
|
123
|
+
import { FunnelPageActions as on, funnelPageActions as sn } from "./components/funnel-layout/parts/FunnelPageActions.js";
|
|
124
|
+
import { FunnelPageContent as cn, funnelPageContent as ln } from "./components/funnel-layout/parts/FunnelPageContent.js";
|
|
125
|
+
import { FunnelBackButton as un } from "./components/funnel-layout/parts/FunnelBackButton.js";
|
|
126
|
+
import { FunnelPageFooter as dn, funnelPageFooter as fn } from "./components/funnel-layout/parts/FunnelPageFooter.js";
|
|
127
|
+
import { FunnelPageHeader as pn, funnelPageHeader as mn } from "./components/funnel-layout/parts/FunnelPageHeader.js";
|
|
128
|
+
import { FunnelSidebar as hn, funnelSidebar as gn } from "./components/funnel-layout/parts/FunnelSidebar.js";
|
|
129
|
+
import { FunnelTopBar as _n, funnelTopBar as vn } from "./components/funnel-layout/parts/FunnelTopBar.js";
|
|
130
|
+
import { grid as yn, gridItem as bn } from "./components/grid/Grid.variants.js";
|
|
131
|
+
import { Grid as xn } from "./components/grid/Grid.js";
|
|
132
|
+
import { GridItem as Sn } from "./components/grid/GridItem.js";
|
|
133
|
+
import { Input as Cn } from "./components/input/Input.js";
|
|
134
|
+
import { RawLinkButton as wn } from "./components/link-button/RawLinkButton.js";
|
|
135
|
+
import { ListView as Tn } from "./components/list-view/ListView.js";
|
|
136
|
+
import { RawListViewItem as En, listViewItem as Dn } from "./components/list-view/parts/RawListViewItem.js";
|
|
137
|
+
import { ListViewSection as On, listViewSection as kn } from "./components/list-view/parts/ListViewSection.js";
|
|
138
|
+
import { ListViewItemLabel as An } from "./components/list-view/parts/ListViewItemLabel.js";
|
|
139
|
+
import { ListViewItemText as jn } from "./components/list-view/parts/ListViewItemText.js";
|
|
140
|
+
import { MenuSection as Mn } from "./components/menu/parts/MenuSection.js";
|
|
141
|
+
import { Search as Nn, search as Pn } from "./components/search/Search.js";
|
|
142
|
+
import { MultiSelect as Fn } from "./components/multi-select/MultiSelect.js";
|
|
143
|
+
import { MultiSelectOptGroup as In } from "./components/multi-select/parts/MultiSelectOptGroup.js";
|
|
144
|
+
import { MultiSelectOption as Ln } from "./components/multi-select/parts/MultiSelectOption.js";
|
|
145
|
+
import { Nav as Rn } from "./components/nav/Nav.js";
|
|
146
|
+
import { RawNavItem as zn, navItemBase as Bn } from "./components/nav/parts/RawNavItem.js";
|
|
147
|
+
import { NavGroup as Vn } from "./components/nav/parts/NavGroup.js";
|
|
148
|
+
import { RawNavigationCard as Hn } from "./components/navigation-card/NavigationCard.js";
|
|
149
|
+
import { NavigationCardGroup as Un, navigationCardGroup as Wn } from "./components/navigation-card/parts/NavigationCardGroup.js";
|
|
150
|
+
import { NavigationCardLabel as Gn } from "./components/navigation-card/parts/NavigationCardLabel.js";
|
|
151
|
+
import { NavigationCardDescription as Kn } from "./components/navigation-card/parts/NavigationCardDescription.js";
|
|
152
|
+
import { NumberInput as qn, numberInput as Jn } from "./components/number-input/NumberInput.js";
|
|
153
|
+
import { Page as Yn, page as Xn } from "./components/page/Page.js";
|
|
154
|
+
import { PageHeader as Zn, pageHeader as Qn } from "./components/page/parts/PageHeader.js";
|
|
155
|
+
import { PageHeading as $n } from "./components/page/parts/PageHeading.js";
|
|
156
|
+
import { Pagination as er, pagination as tr } from "./components/pagination/Pagination.js";
|
|
157
|
+
import { PaginationContent as nr, paginationContent as rr } from "./components/pagination/parts/PaginationContent.js";
|
|
158
|
+
import { PaginationItem as ir } from "./components/pagination/parts/PaginationItem.js";
|
|
159
|
+
import { RawPaginationLink as ar, paginationLink as or } from "./components/pagination/parts/RawPaginationLink.js";
|
|
160
|
+
import { RawPaginationPrevious as sr } from "./components/pagination/parts/RawPaginationPrevious.js";
|
|
161
|
+
import { RawPaginationNext as cr } from "./components/pagination/parts/RawPaginationNext.js";
|
|
162
|
+
import { PaginationEllipsis as lr } from "./components/pagination/parts/PaginationEllipsis.js";
|
|
163
|
+
import { usePaginationWindow as ur } from "./components/pagination/hooks/use-pagination-window.js";
|
|
164
|
+
import { usePaginationState as dr } from "./components/pagination/hooks/use-pagination-state.js";
|
|
165
|
+
import { PhoneNumberInput as fr } from "./components/phone-number/PhoneNumberInput.js";
|
|
166
|
+
import { Pill as pr } from "./components/pill/Pill.js";
|
|
167
|
+
import { Popover as mr, PopoverTrigger as hr } from "./components/popover/Popover.js";
|
|
168
|
+
import { ProgressBar as gr } from "./components/progress-bar/ProgressBar.js";
|
|
169
|
+
import { RadioButtonGroup as _r } from "./components/radio-button-group/RadioButtonGroup.js";
|
|
170
|
+
import { RadioButtonHelper as vr } from "./components/radio-button-group/parts/RadioButtonHelper.js";
|
|
171
171
|
import { RadioButton as yr, radioButton as br } from "./components/radio-button-group/parts/RadioButton.js";
|
|
172
172
|
import { Skeleton as xr } from "./components/skeleton/Skeleton.js";
|
|
173
173
|
import { SegmentedButtonGroup as Sr } from "./components/segmented-button-group/SegmentedButtonGroup.js";
|
|
@@ -229,4 +229,4 @@ import { DropzoneDescription as Xi } from "./components/dropzone/parts/DropzoneD
|
|
|
229
229
|
import { FileUploadTrigger as Zi } from "./components/file-upload-trigger/FileUploadTrigger.js";
|
|
230
230
|
import { FileUploadDropzoneButton as Qi } from "./components/file-upload-dropzone/parts/FileUploadDropzoneButton.js";
|
|
231
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,
|
|
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, Nt as Filter, Pt as FilterControls, Ft as FilterLabels, Bt as FilterToolbar, Wt as Flex, Kt as FlexItem, Rt as FloatingActionBar, Jt as FullPageLoader, un as FunnelBackButton, en as FunnelBody, Qt as FunnelLayout, nn as FunnelPage, an as FunnelPageAction, on as FunnelPageActions, cn as FunnelPageContent, dn as FunnelPageFooter, pn as FunnelPageHeader, hn as FunnelSidebar, _n as FunnelTopBar, xn as Grid, Sn as GridItem, s as Icon, f as IconButton, Cn as Input, ne as InteractiveAvatar, ze as Label, Tn as ListView, An as ListViewItemLabel, jn as ListViewItemText, On as ListViewSection, r as MOBILE_BREAKPOINTS, m as Menu, h as MenuContent, L as MenuHeader, Mn as MenuSection, I as MenuSeparator, g as MenuTrigger, Fn as MultiSelect, In as MultiSelectOptGroup, Ln as MultiSelectOption, Rn as Nav, Vn as NavGroup, Kn as NavigationCardDescription, Un as NavigationCardGroup, Gn as NavigationCardLabel, ve as NoopRouterProvider, qn as NumberInput, Yn as Page, Zn as PageHeader, $n as PageHeading, er as Pagination, nr as PaginationContent, lr as PaginationEllipsis, ir as PaginationItem, K as PayFitBrand, q as PayFitBrandPreprod, fr as PhoneNumberInput, pr as Pill, mr as Popover, hr as PopoverTrigger, gr as ProgressBar, ft as PromoDialog, lt as PromoDialogActions, ht as PromoDialogContent, ut as PromoDialogHero, mt as PromoDialogSubtitle, dt as PromoDialogTitle, yr as RadioButton, _r as RadioButtonGroup, vr as RadioButtonHelper, Mt as RadioIndicator, we as RawBreadcrumbLink, xe as RawLink, wn as RawLinkButton, En as RawListViewItem, _ as RawMenuItem, zn as RawNavItem, Hn as RawNavigationCard, ar as RawPaginationLink, cr as RawPaginationNext, sr as RawPaginationPrevious, Si as RawSubTask, gi as RawTab, wi as RawTask, ye as RouterProvider, Vi as ScrollArea, Nn 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, Xt as SkipLink, Zt as SkipLinks, c as Spinner, Gt as Stack, qt 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, It as filterContainer, Lt as filterDismissButton, Vt as filterToolbar, Ht as flex, Ut as flexItem, zt as floatingActionBar, Yt as fullPageLoader, tn as funnelBody, $t as funnelLayout, rn as funnelPage, sn as funnelPageActions, ln as funnelPageContent, fn as funnelPageFooter, mn as funnelPageHeader, gn as funnelSidebar, vn as funnelTopBar, B as getInitials, yn as grid, bn as gridItem, i as isDesktopBreakpoint, a as isMobileBreakpoint, Se as link, Dn as listViewItem, kn as listViewSection, Bn as navItemBase, Wn as navigationCardGroup, Jn as numberInput, Xn as page, Qn as pageHeader, tr as pagination, rr as paginationContent, or as paginationLink, pt as promoDialog, br as radioButton, Ci as rawSubTask, Ti as rawTask, Pn 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, dr as usePaginationState, ur as usePaginationWindow, be as useRouter, qr as useStepper };
|
package/dist/esm/index.js
CHANGED
|
@@ -107,67 +107,67 @@ import { useContainerQueryLevel as Et } from "./core/hooks/use-container-query-l
|
|
|
107
107
|
import { ErrorState as Dt, errorState as Ot } from "./core/components/error-state/ErrorState.js";
|
|
108
108
|
import { Fieldset as kt, fieldset as At } from "./core/components/fieldset/Fieldset.js";
|
|
109
109
|
import { FieldGroup as jt } from "./core/components/fieldset/parts/FieldGroup.js";
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
126
|
-
import {
|
|
127
|
-
import {
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
135
|
-
import {
|
|
136
|
-
import {
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
141
|
-
import {
|
|
142
|
-
import {
|
|
143
|
-
import {
|
|
144
|
-
import {
|
|
145
|
-
import {
|
|
146
|
-
import {
|
|
147
|
-
import {
|
|
148
|
-
import {
|
|
149
|
-
import {
|
|
150
|
-
import {
|
|
151
|
-
import {
|
|
152
|
-
import {
|
|
153
|
-
import {
|
|
154
|
-
import {
|
|
155
|
-
import {
|
|
156
|
-
import {
|
|
157
|
-
import {
|
|
158
|
-
import {
|
|
159
|
-
import {
|
|
160
|
-
import {
|
|
161
|
-
import {
|
|
162
|
-
import {
|
|
163
|
-
import {
|
|
164
|
-
import {
|
|
165
|
-
import {
|
|
166
|
-
import {
|
|
167
|
-
import {
|
|
168
|
-
import {
|
|
169
|
-
import {
|
|
170
|
-
import {
|
|
110
|
+
import { RadioIndicator as Mt } from "./core/components/radio-button-group/parts/RadioIndicator.js";
|
|
111
|
+
import { Filter as Nt, FilterControls as Pt, FilterLabels as Ft, filterContainer as It, filterDismissButton as Lt } from "./core/components/filter/Filter.js";
|
|
112
|
+
import { FloatingActionBar as Rt, floatingActionBar as zt } from "./core/components/floating-action-bar/FloatingActionBar.js";
|
|
113
|
+
import { FilterToolbar as Bt, filterToolbar as Vt } from "./core/components/filter-toolbar/FilterToolbar.js";
|
|
114
|
+
import { flex as Ht, flexItem as Ut } from "./core/components/flex/Flex.variants.js";
|
|
115
|
+
import { Flex as Wt, Stack as Gt } from "./core/components/flex/Flex.js";
|
|
116
|
+
import { FlexItem as Kt, StackItem as qt } from "./core/components/flex/FlexItem.js";
|
|
117
|
+
import { FullPageLoader as Jt, fullPageLoader as Yt } from "./core/components/full-page-loader/FullPageLoader.js";
|
|
118
|
+
import { SkipLink as Xt, SkipLinks as Zt } from "./core/components/skip-links/SkipLinks.js";
|
|
119
|
+
import { FunnelLayout as Qt, funnelLayout as $t } from "./core/components/funnel-layout/FunnelLayout.js";
|
|
120
|
+
import { FunnelBody as en, funnelBody as tn } from "./core/components/funnel-layout/parts/FunnelBody.js";
|
|
121
|
+
import { FunnelPage as nn, funnelPage as rn } from "./core/components/funnel-layout/parts/FunnelPage.js";
|
|
122
|
+
import { FunnelPageAction as an } from "./core/components/funnel-layout/parts/FunnelPageAction.js";
|
|
123
|
+
import { FunnelPageActions as on, funnelPageActions as sn } from "./core/components/funnel-layout/parts/FunnelPageActions.js";
|
|
124
|
+
import { FunnelPageContent as cn, funnelPageContent as ln } from "./core/components/funnel-layout/parts/FunnelPageContent.js";
|
|
125
|
+
import { FunnelBackButton as un } from "./core/components/funnel-layout/parts/FunnelBackButton.js";
|
|
126
|
+
import { FunnelPageFooter as dn, funnelPageFooter as fn } from "./core/components/funnel-layout/parts/FunnelPageFooter.js";
|
|
127
|
+
import { FunnelPageHeader as pn, funnelPageHeader as mn } from "./core/components/funnel-layout/parts/FunnelPageHeader.js";
|
|
128
|
+
import { FunnelSidebar as hn, funnelSidebar as gn } from "./core/components/funnel-layout/parts/FunnelSidebar.js";
|
|
129
|
+
import { FunnelTopBar as _n, funnelTopBar as vn } from "./core/components/funnel-layout/parts/FunnelTopBar.js";
|
|
130
|
+
import { grid as yn, gridItem as bn } from "./core/components/grid/Grid.variants.js";
|
|
131
|
+
import { Grid as xn } from "./core/components/grid/Grid.js";
|
|
132
|
+
import { GridItem as Sn } from "./core/components/grid/GridItem.js";
|
|
133
|
+
import { Input as Cn } from "./core/components/input/Input.js";
|
|
134
|
+
import { RawLinkButton as wn } from "./core/components/link-button/RawLinkButton.js";
|
|
135
|
+
import { ListView as Tn } from "./core/components/list-view/ListView.js";
|
|
136
|
+
import { RawListViewItem as En, listViewItem as Dn } from "./core/components/list-view/parts/RawListViewItem.js";
|
|
137
|
+
import { ListViewSection as On, listViewSection as kn } from "./core/components/list-view/parts/ListViewSection.js";
|
|
138
|
+
import { ListViewItemLabel as An } from "./core/components/list-view/parts/ListViewItemLabel.js";
|
|
139
|
+
import { ListViewItemText as jn } from "./core/components/list-view/parts/ListViewItemText.js";
|
|
140
|
+
import { MenuSection as Mn } from "./core/components/menu/parts/MenuSection.js";
|
|
141
|
+
import { Search as Nn, search as Pn } from "./core/components/search/Search.js";
|
|
142
|
+
import { MultiSelect as Fn } from "./core/components/multi-select/MultiSelect.js";
|
|
143
|
+
import { MultiSelectOptGroup as In } from "./core/components/multi-select/parts/MultiSelectOptGroup.js";
|
|
144
|
+
import { MultiSelectOption as Ln } from "./core/components/multi-select/parts/MultiSelectOption.js";
|
|
145
|
+
import { Nav as Rn } from "./core/components/nav/Nav.js";
|
|
146
|
+
import { RawNavItem as zn, navItemBase as Bn } from "./core/components/nav/parts/RawNavItem.js";
|
|
147
|
+
import { NavGroup as Vn } from "./core/components/nav/parts/NavGroup.js";
|
|
148
|
+
import { RawNavigationCard as Hn } from "./core/components/navigation-card/NavigationCard.js";
|
|
149
|
+
import { NavigationCardGroup as Un, navigationCardGroup as Wn } from "./core/components/navigation-card/parts/NavigationCardGroup.js";
|
|
150
|
+
import { NavigationCardLabel as Gn } from "./core/components/navigation-card/parts/NavigationCardLabel.js";
|
|
151
|
+
import { NavigationCardDescription as Kn } from "./core/components/navigation-card/parts/NavigationCardDescription.js";
|
|
152
|
+
import { NumberInput as qn, numberInput as Jn } from "./core/components/number-input/NumberInput.js";
|
|
153
|
+
import { Page as Yn, page as Xn } from "./core/components/page/Page.js";
|
|
154
|
+
import { PageHeader as Zn, pageHeader as Qn } from "./core/components/page/parts/PageHeader.js";
|
|
155
|
+
import { PageHeading as $n } from "./core/components/page/parts/PageHeading.js";
|
|
156
|
+
import { Pagination as er, pagination as tr } from "./core/components/pagination/Pagination.js";
|
|
157
|
+
import { PaginationContent as nr, paginationContent as rr } from "./core/components/pagination/parts/PaginationContent.js";
|
|
158
|
+
import { PaginationItem as ir } from "./core/components/pagination/parts/PaginationItem.js";
|
|
159
|
+
import { RawPaginationLink as ar, paginationLink as or } from "./core/components/pagination/parts/RawPaginationLink.js";
|
|
160
|
+
import { RawPaginationPrevious as sr } from "./core/components/pagination/parts/RawPaginationPrevious.js";
|
|
161
|
+
import { RawPaginationNext as cr } from "./core/components/pagination/parts/RawPaginationNext.js";
|
|
162
|
+
import { PaginationEllipsis as lr } from "./core/components/pagination/parts/PaginationEllipsis.js";
|
|
163
|
+
import { usePaginationWindow as ur } from "./core/components/pagination/hooks/use-pagination-window.js";
|
|
164
|
+
import { usePaginationState as dr } from "./core/components/pagination/hooks/use-pagination-state.js";
|
|
165
|
+
import { PhoneNumberInput as fr } from "./core/components/phone-number/PhoneNumberInput.js";
|
|
166
|
+
import { Pill as pr } from "./core/components/pill/Pill.js";
|
|
167
|
+
import { Popover as mr, PopoverTrigger as hr } from "./core/components/popover/Popover.js";
|
|
168
|
+
import { ProgressBar as gr } from "./core/components/progress-bar/ProgressBar.js";
|
|
169
|
+
import { RadioButtonGroup as _r } from "./core/components/radio-button-group/RadioButtonGroup.js";
|
|
170
|
+
import { RadioButtonHelper as vr } from "./core/components/radio-button-group/parts/RadioButtonHelper.js";
|
|
171
171
|
import { RadioButton as yr, radioButton as br } from "./core/components/radio-button-group/parts/RadioButton.js";
|
|
172
172
|
import { Skeleton as xr } from "./core/components/skeleton/Skeleton.js";
|
|
173
173
|
import { SegmentedButtonGroup as Sr } from "./core/components/segmented-button-group/SegmentedButtonGroup.js";
|
|
@@ -242,4 +242,4 @@ import { DataTable as ma } from "./modules/tanstack-table/components/data-table/
|
|
|
242
242
|
import { DataTableRoot as ha, dataTableRoot as ga } from "./modules/tanstack-table/components/data-table/parts/DataTableRoot.js";
|
|
243
243
|
import { DataTableBulkActions as _a } from "./modules/tanstack-table/components/data-table-bulk-actions/DataTableBulkActions.js";
|
|
244
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,
|
|
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, Nt as Filter, va as FilterAdapters, Pt as FilterControls, Ft as FilterLabels, Bt as FilterToolbar, Wt as Flex, Kt as FlexItem, Rt as FloatingActionBar, Jt as FullPageLoader, un as FunnelBackButton, en as FunnelBody, Qt as FunnelLayout, nn as FunnelPage, an as FunnelPageAction, on as FunnelPageActions, cn as FunnelPageContent, dn as FunnelPageFooter, pn as FunnelPageHeader, hn as FunnelSidebar, _n as FunnelTopBar, xn as Grid, Sn as GridItem, s as Icon, f as IconButton, Cn as Input, ne as InteractiveAvatar, ze as Label, Tn as ListView, An as ListViewItemLabel, jn as ListViewItemText, On as ListViewSection, r as MOBILE_BREAKPOINTS, m as Menu, h as MenuContent, L as MenuHeader, Mn as MenuSection, I as MenuSeparator, g as MenuTrigger, Fn as MultiSelect, In as MultiSelectOptGroup, Ln as MultiSelectOption, Rn as Nav, Vn as NavGroup, Kn as NavigationCardDescription, Un as NavigationCardGroup, Gn as NavigationCardLabel, ve as NoopRouterProvider, qn as NumberInput, Yn as Page, Zn as PageHeader, $n as PageHeading, er as Pagination, nr as PaginationContent, lr as PaginationEllipsis, ir as PaginationItem, K as PayFitBrand, q as PayFitBrandPreprod, fr as PhoneNumberInput, pr as Pill, mr as Popover, hr as PopoverTrigger, gr as ProgressBar, ft as PromoDialog, lt as PromoDialogActions, ht as PromoDialogContent, ut as PromoDialogHero, mt as PromoDialogSubtitle, dt as PromoDialogTitle, yr as RadioButton, _r as RadioButtonGroup, vr as RadioButtonHelper, Mt as RadioIndicator, we as RawBreadcrumbLink, xe as RawLink, wn as RawLinkButton, En as RawListViewItem, _ as RawMenuItem, zn as RawNavItem, Hn as RawNavigationCard, ar as RawPaginationLink, cr as RawPaginationNext, sr as RawPaginationPrevious, Si as RawSubTask, gi as RawTab, wi as RawTask, ye as RouterProvider, Vi as ScrollArea, Nn 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, Xt as SkipLink, Zt as SkipLinks, c as Spinner, Gt as Stack, qt 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, It as filterContainer, Lt as filterDismissButton, Vt as filterToolbar, Ht as flex, Ut as flexItem, zt as floatingActionBar, Yt as fullPageLoader, tn as funnelBody, $t as funnelLayout, rn as funnelPage, sn as funnelPageActions, ln as funnelPageContent, fn as funnelPageFooter, mn as funnelPageHeader, gn as funnelSidebar, vn as funnelTopBar, B as getInitials, yn as grid, bn as gridItem, i as isDesktopBreakpoint, a as isMobileBreakpoint, pa as isSortableHeader, Se as link, Dn as listViewItem, kn as listViewSection, Bn as navItemBase, Wn as navigationCardGroup, Jn as numberInput, Xn as page, Qn as pageHeader, tr as pagination, rr as paginationContent, or as paginationLink, pt as promoDialog, br as radioButton, Ci as rawSubTask, Ti as rawTask, Pn 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, dr as usePaginationState, ur as usePaginationWindow, be as useRouter, qr as useStepper, na as useTanstackUnityForm, ra as withFieldGroup, ia as withForm };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface AIStructuredInputContextValue {
|
|
2
|
+
/** Stable ID of the active question. */
|
|
3
|
+
activeStepId: string;
|
|
4
|
+
/** Zero-based position of the active question. */
|
|
5
|
+
activeStepIndex: number;
|
|
6
|
+
/** Number of questions in the sequence. */
|
|
7
|
+
totalSteps: number;
|
|
8
|
+
/** Whether the active question is the last question. */
|
|
9
|
+
isFinalStep: boolean;
|
|
10
|
+
/** Whether another question follows the active question. */
|
|
11
|
+
canContinue: boolean;
|
|
12
|
+
/** Advances to the next question when one exists. */
|
|
13
|
+
continueToNextStep: () => void;
|
|
14
|
+
/** ID of the active question panel. */
|
|
15
|
+
stepPanelId: string;
|
|
16
|
+
/** Whether a previous question exists. */
|
|
17
|
+
canGoToPreviousStep: boolean;
|
|
18
|
+
/** Whether a next question exists. */
|
|
19
|
+
canGoToNextStep: boolean;
|
|
20
|
+
/** Moves to the previous question when one exists. */
|
|
21
|
+
goToPreviousStep: () => void;
|
|
22
|
+
/** Moves to the next question when one exists. */
|
|
23
|
+
goToNextStep: () => void;
|
|
24
|
+
/** Registers the active heading so it can receive focus after navigation. */
|
|
25
|
+
registerStepHeading: (stepId: string, heading: HTMLHeadingElement | null) => void;
|
|
26
|
+
}
|
|
27
|
+
/** Provider for structured-input navigation state. */
|
|
28
|
+
export declare const AIStructuredInputContextProvider: import('react').Provider<AIStructuredInputContextValue | null>;
|
|
29
|
+
/** Reads structured-input state, or `null` when used outside the root. */
|
|
30
|
+
export declare const useAIStructuredInputContext: () => AIStructuredInputContextValue | null;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createContext as e, useContext as t } from "react";
|
|
2
|
+
//#region src/modules/ai-kit/components/ai-structured-input/AIStructuredInput.context.ts
|
|
3
|
+
var n = e(null), r = n.Provider, i = () => t(n);
|
|
4
|
+
//#endregion
|
|
5
|
+
export { r as AIStructuredInputContextProvider, i as useAIStructuredInputContext };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactElement, ReactNode, RefAttributes } from 'react';
|
|
2
|
+
import { AIStructuredInputStepProps } from './parts/AIStructuredInputStep.js';
|
|
3
|
+
/**
|
|
4
|
+
* Data for one dynamically rendered structured-input step.
|
|
5
|
+
* @property id Stable, explicit identity shared by the rendered step and its answer draft.
|
|
6
|
+
*/
|
|
7
|
+
export type AIStructuredInputItem = {
|
|
8
|
+
id: string;
|
|
9
|
+
};
|
|
10
|
+
/** Receives a navigation request for the next active step. */
|
|
11
|
+
export type AIStructuredInputActiveStepChangeHandler = (activeStepId: string) => void;
|
|
12
|
+
/**
|
|
13
|
+
* Props for a static or data-driven structured question sequence.
|
|
14
|
+
* @typeParam TItem - Data type used by the `items` render-function API.
|
|
15
|
+
*/
|
|
16
|
+
export type AIStructuredInputProps<TItem extends AIStructuredInputItem = AIStructuredInputItem> = Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'className'> & {
|
|
17
|
+
/**
|
|
18
|
+
* Renders identified steps directly, or renders each item when `items` is
|
|
19
|
+
* supplied. Every step must have an explicit stable ID.
|
|
20
|
+
*/
|
|
21
|
+
children: ReactNode | ((item: TItem, index: number) => ReactElement<AIStructuredInputStepProps>);
|
|
22
|
+
/**
|
|
23
|
+
* Controls the active step. Pair with `onActiveStepChange` to control
|
|
24
|
+
* navigation from the consumer.
|
|
25
|
+
*/
|
|
26
|
+
activeStepId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Sets the initially active step for uncontrolled navigation. Defaults to
|
|
29
|
+
* the first step.
|
|
30
|
+
*/
|
|
31
|
+
defaultActiveStepId?: string;
|
|
32
|
+
/** Receives navigation requests when the active step changes. */
|
|
33
|
+
onActiveStepChange?: AIStructuredInputActiveStepChangeHandler;
|
|
34
|
+
/** Adds a banner above the questions and lets the root manage their layout. */
|
|
35
|
+
header?: ReactNode;
|
|
36
|
+
/**
|
|
37
|
+
* Supplies ordered question data for the render-function API. New items may
|
|
38
|
+
* be appended while the sequence is active.
|
|
39
|
+
*/
|
|
40
|
+
items?: readonly TItem[];
|
|
41
|
+
/** Adds styles to the structured-input surface. */
|
|
42
|
+
className?: string;
|
|
43
|
+
};
|
|
44
|
+
type StructuredInputComponent = <TItem extends AIStructuredInputItem = AIStructuredInputItem>(props: AIStructuredInputProps<TItem> & RefAttributes<HTMLDivElement>) => ReactElement | null;
|
|
45
|
+
export declare const AIStructuredInput: StructuredInputComponent;
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { AIStructuredInputContextProvider as e } from "./AIStructuredInput.context.js";
|
|
2
|
+
import { AIStructuredInputStep as t } from "./parts/AIStructuredInputStep.js";
|
|
3
|
+
import { Children as n, forwardRef as r, isValidElement as i, useId as a, useRef as o, useState as s } from "react";
|
|
4
|
+
import { uyTv as c } from "@payfit/unity-themes";
|
|
5
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
|
+
import { useIntl as d } from "react-intl";
|
|
7
|
+
//#region src/modules/ai-kit/components/ai-structured-input/AIStructuredInput.tsx
|
|
8
|
+
var f = c({
|
|
9
|
+
slots: {
|
|
10
|
+
base: [
|
|
11
|
+
"uy:min-w-0 uy:rounded-200 uy:border uy:border-solid uy:border-border-neutral",
|
|
12
|
+
"uy:bg-surface-neutral uy:p-200 uy:text-content-neutral-enabled uy:shadow-100",
|
|
13
|
+
"uy:transition-colors"
|
|
14
|
+
],
|
|
15
|
+
content: "uy:flex uy:min-w-0 uy:flex-col uy:gap-150",
|
|
16
|
+
step: [
|
|
17
|
+
"uy:w-full uy:min-w-0",
|
|
18
|
+
"uy:motion-safe:transition-[opacity,translate] uy:motion-safe:duration-200 uy:motion-safe:ease-out",
|
|
19
|
+
"uy:motion-safe:starting:data-[direction=forward]:translate-x-100 uy:motion-safe:starting:data-[direction=forward]:opacity-80",
|
|
20
|
+
"uy:motion-safe:starting:data-[direction=backward]:-translate-x-100 uy:motion-safe:starting:data-[direction=backward]:opacity-80"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
variants: { hasHeader: {
|
|
24
|
+
true: {
|
|
25
|
+
base: ["uy:flex uy:max-h-[476px] uy:flex-col uy:gap-0 uy:overflow-hidden", "uy:border-0 uy:bg-surface-neutral-lowest uy:p-0 uy:shadow-none"],
|
|
26
|
+
content: [
|
|
27
|
+
"uy:w-full uy:flex-1 uy:items-stretch uy:gap-50 uy:overflow-y-auto",
|
|
28
|
+
"uy:rounded-200 uy:border uy:border-solid uy:border-border-neutral",
|
|
29
|
+
"uy:bg-surface-neutral uy:p-200 uy:shadow-100"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
false: {}
|
|
33
|
+
} }
|
|
34
|
+
}), p = r(({ activeStepId: r, defaultActiveStepId: c, onActiveStepChange: p, items: m, children: h, header: g, className: _, ...v }, y) => {
|
|
35
|
+
let b = d(), x = a(), [S, C] = s(c), w = o(null), T;
|
|
36
|
+
if (m !== void 0) T = m.map((e, t) => {
|
|
37
|
+
if (typeof h != "function") throw Error("AIStructuredInput expects a render function when `items` is provided.");
|
|
38
|
+
return h(e, t);
|
|
39
|
+
});
|
|
40
|
+
else {
|
|
41
|
+
if (typeof h == "function") throw Error("AIStructuredInput expects `items` when `children` is a render function.");
|
|
42
|
+
T = n.toArray(h);
|
|
43
|
+
}
|
|
44
|
+
let E = T.map((e, n) => {
|
|
45
|
+
if (!i(e) || e.type !== t) throw Error("AIStructuredInput children must be AIStructuredInputStep elements.");
|
|
46
|
+
if (process.env.NODE_ENV === "development" && m !== void 0 && e.props.id !== m[n]?.id) throw Error(`AIStructuredInputStep id "${e.props.id}" must match its item id "${m[n]?.id}".`);
|
|
47
|
+
return e;
|
|
48
|
+
});
|
|
49
|
+
if (E.length === 0) throw Error("AIStructuredInput requires at least one step.");
|
|
50
|
+
let D = E.map((e) => e.props.id);
|
|
51
|
+
if (process.env.NODE_ENV === "development" && new Set(D).size !== D.length) throw Error("AIStructuredInput step IDs must be unique.");
|
|
52
|
+
let O = r !== void 0, k = O ? r : S ?? c, A = Math.max(0, k ? D.indexOf(k) : 0), j = E[A];
|
|
53
|
+
if (!j) throw Error("AIStructuredInput could not resolve the active step.");
|
|
54
|
+
let M = j.props.id, [N, P] = s({
|
|
55
|
+
id: M,
|
|
56
|
+
index: A
|
|
57
|
+
});
|
|
58
|
+
(N.id !== M || N.index !== A) && P({
|
|
59
|
+
id: M,
|
|
60
|
+
index: A,
|
|
61
|
+
direction: N.id === M || N.index === A ? void 0 : A > N.index ? "forward" : "backward"
|
|
62
|
+
}), w.current !== null && w.current !== M && (w.current = null);
|
|
63
|
+
let F = A === 0, I = A === E.length - 1, L = f(), R = `${x}-${M}`, z = (e) => {
|
|
64
|
+
let t = D[e];
|
|
65
|
+
t !== void 0 && (w.current = t, O || C(t), p?.(t));
|
|
66
|
+
};
|
|
67
|
+
return /* @__PURE__ */ l(e, {
|
|
68
|
+
value: {
|
|
69
|
+
activeStepId: M,
|
|
70
|
+
activeStepIndex: A,
|
|
71
|
+
totalSteps: E.length,
|
|
72
|
+
isFinalStep: I,
|
|
73
|
+
canContinue: !I,
|
|
74
|
+
continueToNextStep: () => {
|
|
75
|
+
z(A + 1);
|
|
76
|
+
},
|
|
77
|
+
stepPanelId: R,
|
|
78
|
+
canGoToPreviousStep: !F,
|
|
79
|
+
canGoToNextStep: !I,
|
|
80
|
+
goToPreviousStep: () => {
|
|
81
|
+
z(A - 1);
|
|
82
|
+
},
|
|
83
|
+
goToNextStep: () => {
|
|
84
|
+
z(A + 1);
|
|
85
|
+
},
|
|
86
|
+
registerStepHeading: (e, t) => {
|
|
87
|
+
t && w.current === e && (t.focus(), w.current = null);
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
children: /* @__PURE__ */ u("div", {
|
|
91
|
+
...v,
|
|
92
|
+
ref: y,
|
|
93
|
+
className: L.base({
|
|
94
|
+
className: _,
|
|
95
|
+
hasHeader: g !== void 0
|
|
96
|
+
}),
|
|
97
|
+
"data-unity-component": "ai.structured-input",
|
|
98
|
+
"data-step-position": E.length === 1 ? "only" : F ? "first" : I ? "last" : "middle",
|
|
99
|
+
children: [g, /* @__PURE__ */ l("div", {
|
|
100
|
+
id: R,
|
|
101
|
+
className: L.content({ hasHeader: g !== void 0 }),
|
|
102
|
+
role: "group",
|
|
103
|
+
"aria-label": b.formatMessage({
|
|
104
|
+
id: "unity:module:ai-kit:structured-input:question-progress",
|
|
105
|
+
defaultMessage: "Question {current} of {total}"
|
|
106
|
+
}, {
|
|
107
|
+
current: A + 1,
|
|
108
|
+
total: E.length
|
|
109
|
+
}),
|
|
110
|
+
children: /* @__PURE__ */ l("div", {
|
|
111
|
+
className: L.step(),
|
|
112
|
+
"data-direction": N.direction,
|
|
113
|
+
children: j
|
|
114
|
+
}, M)
|
|
115
|
+
})]
|
|
116
|
+
})
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
p.displayName = "AIStructuredInput";
|
|
120
|
+
var m = p;
|
|
121
|
+
//#endregion
|
|
122
|
+
export { m as AIStructuredInput };
|