@sia-ui/react-web 0.4.0 → 0.5.0
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/CHANGELOG.md +53 -0
- package/README.md +129 -74
- package/dist/index.cjs +472 -363
- package/dist/index.css +303 -233
- package/dist/index.d.cts +81 -9
- package/dist/index.d.ts +81 -9
- package/dist/index.js +473 -366
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import * as react from 'react';
|
|
|
3
3
|
import { ReactNode, ReactElement, HTMLAttributes, RefObject, ImgHTMLAttributes, ButtonHTMLAttributes, InputHTMLAttributes, Key, TextareaHTMLAttributes, ForwardRefExoticComponent, RefAttributes, SVGProps, CSSProperties, PropsWithChildren } from 'react';
|
|
4
4
|
import { ComponentTone, ComponentSize } from '@sia-ui/tokens';
|
|
5
5
|
import * as _sia_ui_headless from '@sia-ui/headless';
|
|
6
|
-
import { PermissionRule, Placement, SliderValue, FormAdapter, FormValidator, TableQueryStorage, TableQueryState, TableQuery, SessionStore, SessionState, ToastPlacement, ToastId, ToastOptions } from '@sia-ui/headless';
|
|
6
|
+
import { PermissionRule, Placement, SliderValue, FormAdapter, FormValidator, FormSubmitResult, TableQueryStorage, TableQueryState, TableQuery, SessionStore, SessionState, ToastPlacement, ToastId, ToastOptions } from '@sia-ui/headless';
|
|
7
7
|
export { SliderValue, ToastId, ToastOptions, ToastPlacement, ToastTone, toast, toastStore } from '@sia-ui/headless';
|
|
8
8
|
import { Rule } from '@sia-ui/utils/validation';
|
|
9
9
|
|
|
@@ -519,6 +519,19 @@ interface SelectProps {
|
|
|
519
519
|
invalid?: boolean;
|
|
520
520
|
required?: boolean;
|
|
521
521
|
placement?: OverlayPlacement;
|
|
522
|
+
/**
|
|
523
|
+
* Ce que montre le déclencheur. Par défaut, le libellé de l'option.
|
|
524
|
+
*
|
|
525
|
+
* La liste garde ses libellés complets — « 🇨🇲 Cameroun (+237) » — pendant
|
|
526
|
+
* que le champ fermé n'affiche que ce qui tient : « 🇨🇲 +237 ».
|
|
527
|
+
*/
|
|
528
|
+
renderValue?: (option: SelectOption | undefined) => ReactNode;
|
|
529
|
+
/**
|
|
530
|
+
* `embedded` retire bordure, fond et largeur pleine du déclencheur : le
|
|
531
|
+
* `Select` se loge alors dans un autre contrôle — l'indicatif d'un
|
|
532
|
+
* `PhoneInput`, la taille de page d'une `Pagination`.
|
|
533
|
+
*/
|
|
534
|
+
variant?: "default" | "embedded";
|
|
522
535
|
className?: string;
|
|
523
536
|
"aria-label"?: string;
|
|
524
537
|
"aria-describedby"?: string;
|
|
@@ -1108,6 +1121,14 @@ interface DataTableProps<T> {
|
|
|
1108
1121
|
searchPlaceholder?: string;
|
|
1109
1122
|
/** Recherche déléguée. Fournie, le tableau cesse de filtrer lui-même. */
|
|
1110
1123
|
onSearch?: (query: string) => void;
|
|
1124
|
+
/**
|
|
1125
|
+
* Millisecondes d'inactivité avant d'appeler `onSearch`.
|
|
1126
|
+
*
|
|
1127
|
+
* `0` — le défaut — l'appelle à chaque frappe, ce qui convient à un
|
|
1128
|
+
* filtrage local. Pour une recherche serveur, 300 évite une requête par
|
|
1129
|
+
* lettre ; Entrée et l'effacement déclenchent sans attendre.
|
|
1130
|
+
*/
|
|
1131
|
+
searchDelay?: number;
|
|
1111
1132
|
layout?: "auto" | "fixed";
|
|
1112
1133
|
/** Hauteur du corps. Sans elle, `stickyHeader` n'a rien où se coller. */
|
|
1113
1134
|
maxHeight?: string;
|
|
@@ -1719,6 +1740,8 @@ interface FormFieldGroup {
|
|
|
1719
1740
|
fields: FormFieldConfig[];
|
|
1720
1741
|
}
|
|
1721
1742
|
type FormEntry = FormFieldConfig | FormFieldGroup;
|
|
1743
|
+
/** Les noms de champs, groupes aplatis. */
|
|
1744
|
+
declare function formFieldNames(fields: FormEntry[]): string[];
|
|
1722
1745
|
/**
|
|
1723
1746
|
* Les valeurs qu'un formulaire déclaratif peut porter.
|
|
1724
1747
|
*
|
|
@@ -1740,7 +1763,14 @@ interface FormProps<TValues extends FormShape = FormShape> {
|
|
|
1740
1763
|
defaultValues?: TValues;
|
|
1741
1764
|
/** La validation. Un schéma Zod s'y branche en cinq lignes. */
|
|
1742
1765
|
validate?: FormValidator<TValues>;
|
|
1743
|
-
|
|
1766
|
+
/**
|
|
1767
|
+
* L'envoi.
|
|
1768
|
+
*
|
|
1769
|
+
* Rendre des erreurs par champ les pose sous les champs. Lever une erreur
|
|
1770
|
+
* l'affiche dans une alerte en tête des boutons — et une `HttpError` de
|
|
1771
|
+
* `@sia-ui/api` voit en plus ses erreurs de champ posées à leur place.
|
|
1772
|
+
*/
|
|
1773
|
+
onSubmit?: (values: TValues) => FormSubmitResult<TValues> | Promise<FormSubmitResult<TValues>>;
|
|
1744
1774
|
columns?: number;
|
|
1745
1775
|
submitText?: ReactNode;
|
|
1746
1776
|
clearText?: ReactNode;
|
|
@@ -1986,7 +2016,7 @@ interface CrudDialogsProps<T> {
|
|
|
1986
2016
|
mode: "create" | "edit";
|
|
1987
2017
|
row?: T;
|
|
1988
2018
|
index?: number;
|
|
1989
|
-
}) =>
|
|
2019
|
+
}) => FormSubmitResult<FormShape> | Promise<FormSubmitResult<FormShape>>) | undefined;
|
|
1990
2020
|
createDefaults?: FormShape | undefined;
|
|
1991
2021
|
toFormValues?: ((row: T) => FormShape) | undefined;
|
|
1992
2022
|
renderDetail?: ((row: T, index: number) => ReactNode) | undefined;
|
|
@@ -2055,12 +2085,17 @@ interface CrudPageBase<T> {
|
|
|
2055
2085
|
* propre à cette page, aucune bibliothèque imposée.
|
|
2056
2086
|
*/
|
|
2057
2087
|
fields?: FormEntry[];
|
|
2058
|
-
/**
|
|
2088
|
+
/**
|
|
2089
|
+
* Ce que la page fait d'un formulaire envoyé.
|
|
2090
|
+
*
|
|
2091
|
+
* Rendre des erreurs par champ, ou lever une `HttpError`, garde la boîte
|
|
2092
|
+
* ouverte avec les erreurs affichées ; sinon elle se ferme.
|
|
2093
|
+
*/
|
|
2059
2094
|
onSubmit?: (values: FormShape, context: {
|
|
2060
2095
|
mode: "create" | "edit";
|
|
2061
2096
|
row?: T;
|
|
2062
2097
|
index?: number;
|
|
2063
|
-
}) =>
|
|
2098
|
+
}) => FormSubmitResult<FormShape> | Promise<FormSubmitResult<FormShape>>;
|
|
2064
2099
|
/**
|
|
2065
2100
|
* La validation, sous la même forme que `Form`.
|
|
2066
2101
|
*
|
|
@@ -2110,6 +2145,8 @@ interface CrudPageBase<T> {
|
|
|
2110
2145
|
searchKeys?: string[];
|
|
2111
2146
|
searchPlaceholder?: string;
|
|
2112
2147
|
onSearch?: (query: string) => void;
|
|
2148
|
+
/** Temporise `onSearch` — voir `DataTable`. 300 pour une recherche serveur. */
|
|
2149
|
+
searchDelay?: number;
|
|
2113
2150
|
loading?: boolean;
|
|
2114
2151
|
error?: ReactNode;
|
|
2115
2152
|
onRetry?: () => void;
|
|
@@ -2117,6 +2154,11 @@ interface CrudPageBase<T> {
|
|
|
2117
2154
|
page?: number;
|
|
2118
2155
|
totalPages?: number;
|
|
2119
2156
|
onPageChange?: (page: number) => void;
|
|
2157
|
+
/** Avec `onPageSizeChange`, ajoute le choix du nombre de lignes par page. */
|
|
2158
|
+
pageSize?: number;
|
|
2159
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
2160
|
+
/** Les tailles proposées — voir `Pagination`. */
|
|
2161
|
+
pageSizeOptions?: number[];
|
|
2120
2162
|
/**
|
|
2121
2163
|
* Ce qui n'a pas de raccourci ici passe au tableau tel quel — densité,
|
|
2122
2164
|
* mode cartes, tri, colonnes figées.
|
|
@@ -2158,7 +2200,7 @@ type CrudPageProps<T> = CrudPageBase<T> & ({
|
|
|
2158
2200
|
*
|
|
2159
2201
|
* Ici, fournir le gestionnaire suffit. Ne pas le fournir retire l'action.
|
|
2160
2202
|
*/
|
|
2161
|
-
declare function CrudPage<T>({ resource, title, description, eyebrow, columns: colonnesFournies, data, getRowKey: cleFournie, onCreate, onView, onEdit, onDelete, fields: champsFournis, onSubmit, validate: validationFournie, createDefaults, toFormValues, detail, dialog, operations, extraRowActions, onBulkDelete, can, headerActions, toolbar, searchKeys: clesDeRecherche, searchPlaceholder, onSearch, loading, error, onRetry, empty, page, totalPages, onPageChange, table, children, className, }: CrudPageProps<T>): react_jsx_runtime.JSX.Element;
|
|
2203
|
+
declare function CrudPage<T>({ resource, title, description, eyebrow, columns: colonnesFournies, data, getRowKey: cleFournie, onCreate, onView, onEdit, onDelete, fields: champsFournis, onSubmit, validate: validationFournie, createDefaults, toFormValues, detail, dialog, operations, extraRowActions, onBulkDelete, can, headerActions, toolbar, searchKeys: clesDeRecherche, searchPlaceholder, onSearch, searchDelay, loading, error, onRetry, empty, page, totalPages, onPageChange, pageSize, onPageSizeChange, pageSizeOptions, table, children, className, }: CrudPageProps<T>): react_jsx_runtime.JSX.Element;
|
|
2162
2204
|
|
|
2163
2205
|
/**
|
|
2164
2206
|
* L'état du tableau dans la barre d'adresse.
|
|
@@ -2196,7 +2238,7 @@ declare function useDataTableQuery(options?: UseDataTableQueryOptions): TableQue
|
|
|
2196
2238
|
* elle filtre les lignes déjà chargées — ce qui suffit tant que tout tient
|
|
2197
2239
|
* sur une page.
|
|
2198
2240
|
*/
|
|
2199
|
-
declare function DataTable<T>({ columns, data, getRowKey, title, description, toolbar, actions, searchKeys, searchPlaceholder, onSearch, layout, maxHeight, stickyHeader, density, striped, bordered, rowActions, inlineActionsLimit, actionsHeader, actionsDisplay, can, view: viewProp, defaultView, onViewChange, showViewToggle, responsive, cardsBreakpoint, renderCard, loading, skeletonRows, error, onRetry, empty, selectable, selectedKeys: selectedProp, defaultSelectedKeys, onSelectionChange, isRowSelectable, selectionActions, sort, onSortChange, onRowClick, rowClassName, caption, className, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
2241
|
+
declare function DataTable<T>({ columns, data, getRowKey, title, description, toolbar, actions, searchKeys, searchPlaceholder, onSearch, searchDelay, layout, maxHeight, stickyHeader, density, striped, bordered, rowActions, inlineActionsLimit, actionsHeader, actionsDisplay, can, view: viewProp, defaultView, onViewChange, showViewToggle, responsive, cardsBreakpoint, renderCard, loading, skeletonRows, error, onRetry, empty, selectable, selectedKeys: selectedProp, defaultSelectedKeys, onSelectionChange, isRowSelectable, selectionActions, sort, onSortChange, onRowClick, rowClassName, caption, className, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
2200
2242
|
|
|
2201
2243
|
type DateRangeValue = CalendarRangeValue;
|
|
2202
2244
|
interface DateRangePickerProps extends Pick<CalendarProps, "locale" | "firstDayOfWeek" | "disabledDate" | "cellRender" | "showWeek"> {
|
|
@@ -2714,16 +2756,46 @@ interface PaginationProps {
|
|
|
2714
2756
|
showTotal?: boolean;
|
|
2715
2757
|
/** Masque les libellés et ne garde que les flèches. */
|
|
2716
2758
|
compact?: boolean;
|
|
2759
|
+
/** Le nombre de lignes par page en vigueur. */
|
|
2760
|
+
pageSize?: number;
|
|
2761
|
+
/**
|
|
2762
|
+
* Fourni avec `pageSize`, ajoute le choix du nombre de lignes par page.
|
|
2763
|
+
*
|
|
2764
|
+
* Seul le nouveau nombre est remonté : revenir en page 1 est l'affaire de
|
|
2765
|
+
* qui tient l'état — `setPerPage` de `useTableQuery` le fait déjà.
|
|
2766
|
+
*/
|
|
2767
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
2768
|
+
/**
|
|
2769
|
+
* Les tailles proposées. Par défaut `10, 20, 50, 100`. Une taille en
|
|
2770
|
+
* vigueur absente de la liste y est ajoutée, pour que le champ ne paraisse
|
|
2771
|
+
* jamais vide.
|
|
2772
|
+
*/
|
|
2773
|
+
pageSizeOptions?: number[];
|
|
2774
|
+
/** Le libellé du choix. Par défaut `locale.perPage` — « Par page ». */
|
|
2775
|
+
pageSizeLabel?: string;
|
|
2776
|
+
/**
|
|
2777
|
+
* Remplace entièrement le contrôle — des boutons segmentés, un champ libre.
|
|
2778
|
+
* Le choix des tailles et leur tri sont déjà faits.
|
|
2779
|
+
*/
|
|
2780
|
+
renderPageSize?: (context: PageSizeContext) => ReactNode;
|
|
2717
2781
|
ariaLabel?: string;
|
|
2718
2782
|
className?: string;
|
|
2719
2783
|
}
|
|
2784
|
+
/** Ce que reçoit `renderPageSize`. */
|
|
2785
|
+
interface PageSizeContext {
|
|
2786
|
+
pageSize: number;
|
|
2787
|
+
options: number[];
|
|
2788
|
+
onChange: (pageSize: number) => void;
|
|
2789
|
+
label: string;
|
|
2790
|
+
}
|
|
2791
|
+
declare const DEFAULT_PAGE_SIZE_OPTIONS: number[];
|
|
2720
2792
|
/**
|
|
2721
2793
|
* La navigation entre les pages.
|
|
2722
2794
|
*
|
|
2723
2795
|
* Le calcul des numéros et des ellipses vient de `@sia-ui/headless` :
|
|
2724
2796
|
* `usePagination` et ce composant appliquent la même règle, écrite une fois.
|
|
2725
2797
|
*/
|
|
2726
|
-
declare function Pagination({ page, totalPages, onPageChange, siblingCount, previousLabel: previousLabelProp, nextLabel: nextLabelProp, jumpTo, showTotal, compact, ariaLabel, className, }: PaginationProps): react_jsx_runtime.JSX.Element | null;
|
|
2798
|
+
declare function Pagination({ page, totalPages, onPageChange, siblingCount, previousLabel: previousLabelProp, nextLabel: nextLabelProp, jumpTo, showTotal, compact, pageSize, onPageSizeChange, pageSizeOptions, pageSizeLabel, renderPageSize, ariaLabel, className, }: PaginationProps): react_jsx_runtime.JSX.Element | null;
|
|
2727
2799
|
|
|
2728
2800
|
interface PasswordStrength {
|
|
2729
2801
|
/** De 0 à 4. */
|
|
@@ -3426,4 +3498,4 @@ interface YearPickerProps {
|
|
|
3426
3498
|
*/
|
|
3427
3499
|
declare function YearPicker({ value, defaultValue, min, max, onValueChange, className }: YearPickerProps): react_jsx_runtime.JSX.Element;
|
|
3428
3500
|
|
|
3429
|
-
export { Accordion, type AccordionItem, type AccordionProps, Alert, AlertCircleIcon, type AlertProps, AmountDisplay, type AmountDisplayProps, AppShell, AppShellBrand, type AppShellBrandProps, type AppShellCollapsible, type AppShellContentWidth, type AppShellMobileNav, type AppShellProps, AppShellRailItem, type AppShellRailItemProps, ArrowRightIcon, AspectRatio, type AspectRatioProps, AsyncState, type AsyncStateProps, type AuditEvent, AuditMeta, type AuditMetaProps, AuthLayout, type AuthLayoutProps, Autocomplete, type AutocompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarShape, type AvatarSize, type AvatarStatus, type AvatarTint, type AvatarVariant, Badge, type BadgeProps, BottomTabs, type BottomTabsProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonProps, Calendar, type CalendarDay, type CalendarEvent, CalendarIcon, type CalendarMode, type CalendarProps, type CalendarRangeValue, Can, type CanProps, Card, CardBody, CardFooter, CardHeader, Chart, type ChartProps, type ChartSeries, CheckIcon, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ClockIcon, Collapse, type CollapseProps, ColorPicker, type ColorPickerProps, type ColumnCardRole, type CommandItem, CommandPalette, type CommandPaletteProps, ConfirmDialog, type ConfirmDialogProps, Container, ContextMenu, type ContextMenuProps, Countdown, type CountdownProps, type CrudActionOptions, type CrudCreateOptions, type CrudDialogOptions, type CrudDialogState, CrudDialogs, CrudPage, type CrudPageProps, CurrencyInput, type CurrencyInputProps, DEFAULT_COUNTRIES, DataTable, type DataTableColumn, type DataTableProps, type DataTableView, DatePicker, type DatePickerProps, DateRangeFilter, type DateRangeFilterProps, DateRangePicker, type DateRangePickerProps, type DateRangePreset, type DateRangeValue, DateTimePicker, type DateTimePickerProps, type DateTimeValue, type DescriptionItem, Descriptions, type DescriptionsProps, Divider, type DividerProps, Drawer, DrawerBody, DrawerClose, type DrawerComponent, DrawerFooter, DrawerHeader, type DrawerPosition, type DrawerProps, type DrawerRef, type DrawerSize, DrawerTitle, DropdownMenu, type DropdownMenuProps, DurationDisplay, type DurationDisplayProps, EmptyState, type EmptyStateProps, EntityMeta, type EntityMetaProps, ErrorState, type ErrorStateProps, EventCalendar, type EventCalendarProps, EyeIcon, EyeOffIcon, Field, type FieldBindingLike, type FieldProps, type FieldStatus, type FieldType, type FieldValue, FileUpload, type FileUploadProps, FiltersBar, type FiltersBarProps, Form, type FormEntry, Field as FormField, type FormFieldConfig, type FormFieldGroup, type FieldProps as FormFieldProps, type FormProps, type FormShape, Heading, type HeadingProps, HoverCard, type HoverCardProps, type IDrawerProps, type ILabelProps, type ITooltipProps, type ITooltipVariant, IconButton, type IconButtonProps, ImageUpload, type ImageUploadProps, InfoIcon, InlineCode, Input, InputNumber, type InputNumberProps, type InputProps, JsonEditor, type JsonEditorProps, KpiGrid, type KpiGridProps, Label, type LabelProps, MarkdownEditor, type MarkdownEditorProps, type MenuEntry, type MenuItem, type MenuLabel, MenuList, type MenuListProps, type MenuSeparator, MiniCalendar, MinusIcon, Modal, type ModalProps, MonthPicker, type MonthPickerProps, MoreHorizontalIcon, MultiSelect, type MultiSelectProps, OtpInput, type OtpInputProps, Overlay, type OverlayPlacement, type OverlayProps, PageHeader, type PageHeaderProps, Pagination, type PaginationProps, PasswordInput, type PasswordInputProps, type PasswordStrength, PermissionGate, type PermissionGateProps, type PhoneCountry, PhoneInput, type PhoneInputProps, PlusIcon, Popover, type PopoverProps, Progress, type ProgressProps, QRCode, type QRCodeProps, Radio, RadioButton, type RadioButtonProps, RadioGroup, type RadioGroupProps, type RadioProps, Rating, type RatingProps, type ReferenceOption, ReferenceSelect, type ReferenceSelectProps, RelativeTime, type RelativeTimeProps, RequireSession, type RequireSessionProps, ResizablePanel, type ResizablePanelProps, type ResourceDefinition, type ResourceField, RichTextEditor, type RichTextEditorProps, type RowAction, ScrollArea, type ScrollAreaProps, SearchIcon, SearchInput, type SearchInputProps, Select, type SelectOption, type SelectProps, SettingsIcon, Sidebar, type SidebarEntry, type SidebarItem, type SidebarProps, type SidebarRenderLink, type SidebarSection, type SidebarState, Skeleton, type SkeletonProps, Slider, type SliderProps, type SliderRangeValue, Sparkline, type SparklineProps, Spinner, type SpinnerProps, Stack, StarIcon, StatCard, type StatCardProps, Statistic, type StatisticProps, type StepItem, type StepStatus, Steps, type StepsProps, Switch, type SwitchProps, Tabs, TabsContent, TabsList, type TabsProps, TabsTrigger, TagsInput, type TagsInputProps, Text, type TextProps, Textarea, type TextareaProps, type TimeParts, TimePicker, type TimePickerProps, TimeRangePicker, type TimeRangePickerProps, type TimeRangeValue, Timeline, type TimelineItem, type TimelineProps, Timer, type TimerProps, ToastProvider, type ToastProviderProps, Toaster, type ToasterProps, Toggle, ToggleGroup, type ToggleGroupOption, type ToggleGroupProps, type ToggleProps, Tooltip, type TooltipProps, type TooltipVariant, Tour, type TourProps, type TourStep, Transfer, type TransferItem, type TransferProps, TrashIcon, Tree, type TreeNode, type TreeProps, TreeSelect, type TreeSelectProps, UnsavedChangesGuard, type UnsavedChangesGuardProps, UploadIcon, type UseDataTableQueryOptions, WeekPicker, type WeekPickerProps, XIcon, YearPicker, type YearPickerProps, confirmUnsavedNavigation, createUrlTableStorage, defineResource, formatDuration, formatTimeValue, initialsOf, parseTimeValue, resourceColumns, resourceDefaults, resourceDetailColumns, resourceFormFields, resourcePermissions, resourceRowKey, resourceSearchKeys, resourceValidator, tintForName, useDataTableQuery, useToast };
|
|
3501
|
+
export { Accordion, type AccordionItem, type AccordionProps, Alert, AlertCircleIcon, type AlertProps, AmountDisplay, type AmountDisplayProps, AppShell, AppShellBrand, type AppShellBrandProps, type AppShellCollapsible, type AppShellContentWidth, type AppShellMobileNav, type AppShellProps, AppShellRailItem, type AppShellRailItemProps, ArrowRightIcon, AspectRatio, type AspectRatioProps, AsyncState, type AsyncStateProps, type AuditEvent, AuditMeta, type AuditMetaProps, AuthLayout, type AuthLayoutProps, Autocomplete, type AutocompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarShape, type AvatarSize, type AvatarStatus, type AvatarTint, type AvatarVariant, Badge, type BadgeProps, BottomTabs, type BottomTabsProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonProps, Calendar, type CalendarDay, type CalendarEvent, CalendarIcon, type CalendarMode, type CalendarProps, type CalendarRangeValue, Can, type CanProps, Card, CardBody, CardFooter, CardHeader, Chart, type ChartProps, type ChartSeries, CheckIcon, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ClockIcon, Collapse, type CollapseProps, ColorPicker, type ColorPickerProps, type ColumnCardRole, type CommandItem, CommandPalette, type CommandPaletteProps, ConfirmDialog, type ConfirmDialogProps, Container, ContextMenu, type ContextMenuProps, Countdown, type CountdownProps, type CrudActionOptions, type CrudCreateOptions, type CrudDialogOptions, type CrudDialogState, CrudDialogs, CrudPage, type CrudPageProps, CurrencyInput, type CurrencyInputProps, DEFAULT_COUNTRIES, DEFAULT_PAGE_SIZE_OPTIONS, DataTable, type DataTableColumn, type DataTableProps, type DataTableView, DatePicker, type DatePickerProps, DateRangeFilter, type DateRangeFilterProps, DateRangePicker, type DateRangePickerProps, type DateRangePreset, type DateRangeValue, DateTimePicker, type DateTimePickerProps, type DateTimeValue, type DescriptionItem, Descriptions, type DescriptionsProps, Divider, type DividerProps, Drawer, DrawerBody, DrawerClose, type DrawerComponent, DrawerFooter, DrawerHeader, type DrawerPosition, type DrawerProps, type DrawerRef, type DrawerSize, DrawerTitle, DropdownMenu, type DropdownMenuProps, DurationDisplay, type DurationDisplayProps, EmptyState, type EmptyStateProps, EntityMeta, type EntityMetaProps, ErrorState, type ErrorStateProps, EventCalendar, type EventCalendarProps, EyeIcon, EyeOffIcon, Field, type FieldBindingLike, type FieldProps, type FieldStatus, type FieldType, type FieldValue, FileUpload, type FileUploadProps, FiltersBar, type FiltersBarProps, Form, type FormEntry, Field as FormField, type FormFieldConfig, type FormFieldGroup, type FieldProps as FormFieldProps, type FormProps, type FormShape, Heading, type HeadingProps, HoverCard, type HoverCardProps, type IDrawerProps, type ILabelProps, type ITooltipProps, type ITooltipVariant, IconButton, type IconButtonProps, ImageUpload, type ImageUploadProps, InfoIcon, InlineCode, Input, InputNumber, type InputNumberProps, type InputProps, JsonEditor, type JsonEditorProps, KpiGrid, type KpiGridProps, Label, type LabelProps, MarkdownEditor, type MarkdownEditorProps, type MenuEntry, type MenuItem, type MenuLabel, MenuList, type MenuListProps, type MenuSeparator, MiniCalendar, MinusIcon, Modal, type ModalProps, MonthPicker, type MonthPickerProps, MoreHorizontalIcon, MultiSelect, type MultiSelectProps, OtpInput, type OtpInputProps, Overlay, type OverlayPlacement, type OverlayProps, PageHeader, type PageHeaderProps, type PageSizeContext, Pagination, type PaginationProps, PasswordInput, type PasswordInputProps, type PasswordStrength, PermissionGate, type PermissionGateProps, type PhoneCountry, PhoneInput, type PhoneInputProps, PlusIcon, Popover, type PopoverProps, Progress, type ProgressProps, QRCode, type QRCodeProps, Radio, RadioButton, type RadioButtonProps, RadioGroup, type RadioGroupProps, type RadioProps, Rating, type RatingProps, type ReferenceOption, ReferenceSelect, type ReferenceSelectProps, RelativeTime, type RelativeTimeProps, RequireSession, type RequireSessionProps, ResizablePanel, type ResizablePanelProps, type ResourceDefinition, type ResourceField, RichTextEditor, type RichTextEditorProps, type RowAction, ScrollArea, type ScrollAreaProps, SearchIcon, SearchInput, type SearchInputProps, Select, type SelectOption, type SelectProps, SettingsIcon, Sidebar, type SidebarEntry, type SidebarItem, type SidebarProps, type SidebarRenderLink, type SidebarSection, type SidebarState, Skeleton, type SkeletonProps, Slider, type SliderProps, type SliderRangeValue, Sparkline, type SparklineProps, Spinner, type SpinnerProps, Stack, StarIcon, StatCard, type StatCardProps, Statistic, type StatisticProps, type StepItem, type StepStatus, Steps, type StepsProps, Switch, type SwitchProps, Tabs, TabsContent, TabsList, type TabsProps, TabsTrigger, TagsInput, type TagsInputProps, Text, type TextProps, Textarea, type TextareaProps, type TimeParts, TimePicker, type TimePickerProps, TimeRangePicker, type TimeRangePickerProps, type TimeRangeValue, Timeline, type TimelineItem, type TimelineProps, Timer, type TimerProps, ToastProvider, type ToastProviderProps, Toaster, type ToasterProps, Toggle, ToggleGroup, type ToggleGroupOption, type ToggleGroupProps, type ToggleProps, Tooltip, type TooltipProps, type TooltipVariant, Tour, type TourProps, type TourStep, Transfer, type TransferItem, type TransferProps, TrashIcon, Tree, type TreeNode, type TreeProps, TreeSelect, type TreeSelectProps, UnsavedChangesGuard, type UnsavedChangesGuardProps, UploadIcon, type UseDataTableQueryOptions, WeekPicker, type WeekPickerProps, XIcon, YearPicker, type YearPickerProps, confirmUnsavedNavigation, createUrlTableStorage, defineResource, formFieldNames, formatDuration, formatTimeValue, initialsOf, parseTimeValue, resourceColumns, resourceDefaults, resourceDetailColumns, resourceFormFields, resourcePermissions, resourceRowKey, resourceSearchKeys, resourceValidator, tintForName, useDataTableQuery, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as react from 'react';
|
|
|
3
3
|
import { ReactNode, ReactElement, HTMLAttributes, RefObject, ImgHTMLAttributes, ButtonHTMLAttributes, InputHTMLAttributes, Key, TextareaHTMLAttributes, ForwardRefExoticComponent, RefAttributes, SVGProps, CSSProperties, PropsWithChildren } from 'react';
|
|
4
4
|
import { ComponentTone, ComponentSize } from '@sia-ui/tokens';
|
|
5
5
|
import * as _sia_ui_headless from '@sia-ui/headless';
|
|
6
|
-
import { PermissionRule, Placement, SliderValue, FormAdapter, FormValidator, TableQueryStorage, TableQueryState, TableQuery, SessionStore, SessionState, ToastPlacement, ToastId, ToastOptions } from '@sia-ui/headless';
|
|
6
|
+
import { PermissionRule, Placement, SliderValue, FormAdapter, FormValidator, FormSubmitResult, TableQueryStorage, TableQueryState, TableQuery, SessionStore, SessionState, ToastPlacement, ToastId, ToastOptions } from '@sia-ui/headless';
|
|
7
7
|
export { SliderValue, ToastId, ToastOptions, ToastPlacement, ToastTone, toast, toastStore } from '@sia-ui/headless';
|
|
8
8
|
import { Rule } from '@sia-ui/utils/validation';
|
|
9
9
|
|
|
@@ -519,6 +519,19 @@ interface SelectProps {
|
|
|
519
519
|
invalid?: boolean;
|
|
520
520
|
required?: boolean;
|
|
521
521
|
placement?: OverlayPlacement;
|
|
522
|
+
/**
|
|
523
|
+
* Ce que montre le déclencheur. Par défaut, le libellé de l'option.
|
|
524
|
+
*
|
|
525
|
+
* La liste garde ses libellés complets — « 🇨🇲 Cameroun (+237) » — pendant
|
|
526
|
+
* que le champ fermé n'affiche que ce qui tient : « 🇨🇲 +237 ».
|
|
527
|
+
*/
|
|
528
|
+
renderValue?: (option: SelectOption | undefined) => ReactNode;
|
|
529
|
+
/**
|
|
530
|
+
* `embedded` retire bordure, fond et largeur pleine du déclencheur : le
|
|
531
|
+
* `Select` se loge alors dans un autre contrôle — l'indicatif d'un
|
|
532
|
+
* `PhoneInput`, la taille de page d'une `Pagination`.
|
|
533
|
+
*/
|
|
534
|
+
variant?: "default" | "embedded";
|
|
522
535
|
className?: string;
|
|
523
536
|
"aria-label"?: string;
|
|
524
537
|
"aria-describedby"?: string;
|
|
@@ -1108,6 +1121,14 @@ interface DataTableProps<T> {
|
|
|
1108
1121
|
searchPlaceholder?: string;
|
|
1109
1122
|
/** Recherche déléguée. Fournie, le tableau cesse de filtrer lui-même. */
|
|
1110
1123
|
onSearch?: (query: string) => void;
|
|
1124
|
+
/**
|
|
1125
|
+
* Millisecondes d'inactivité avant d'appeler `onSearch`.
|
|
1126
|
+
*
|
|
1127
|
+
* `0` — le défaut — l'appelle à chaque frappe, ce qui convient à un
|
|
1128
|
+
* filtrage local. Pour une recherche serveur, 300 évite une requête par
|
|
1129
|
+
* lettre ; Entrée et l'effacement déclenchent sans attendre.
|
|
1130
|
+
*/
|
|
1131
|
+
searchDelay?: number;
|
|
1111
1132
|
layout?: "auto" | "fixed";
|
|
1112
1133
|
/** Hauteur du corps. Sans elle, `stickyHeader` n'a rien où se coller. */
|
|
1113
1134
|
maxHeight?: string;
|
|
@@ -1719,6 +1740,8 @@ interface FormFieldGroup {
|
|
|
1719
1740
|
fields: FormFieldConfig[];
|
|
1720
1741
|
}
|
|
1721
1742
|
type FormEntry = FormFieldConfig | FormFieldGroup;
|
|
1743
|
+
/** Les noms de champs, groupes aplatis. */
|
|
1744
|
+
declare function formFieldNames(fields: FormEntry[]): string[];
|
|
1722
1745
|
/**
|
|
1723
1746
|
* Les valeurs qu'un formulaire déclaratif peut porter.
|
|
1724
1747
|
*
|
|
@@ -1740,7 +1763,14 @@ interface FormProps<TValues extends FormShape = FormShape> {
|
|
|
1740
1763
|
defaultValues?: TValues;
|
|
1741
1764
|
/** La validation. Un schéma Zod s'y branche en cinq lignes. */
|
|
1742
1765
|
validate?: FormValidator<TValues>;
|
|
1743
|
-
|
|
1766
|
+
/**
|
|
1767
|
+
* L'envoi.
|
|
1768
|
+
*
|
|
1769
|
+
* Rendre des erreurs par champ les pose sous les champs. Lever une erreur
|
|
1770
|
+
* l'affiche dans une alerte en tête des boutons — et une `HttpError` de
|
|
1771
|
+
* `@sia-ui/api` voit en plus ses erreurs de champ posées à leur place.
|
|
1772
|
+
*/
|
|
1773
|
+
onSubmit?: (values: TValues) => FormSubmitResult<TValues> | Promise<FormSubmitResult<TValues>>;
|
|
1744
1774
|
columns?: number;
|
|
1745
1775
|
submitText?: ReactNode;
|
|
1746
1776
|
clearText?: ReactNode;
|
|
@@ -1986,7 +2016,7 @@ interface CrudDialogsProps<T> {
|
|
|
1986
2016
|
mode: "create" | "edit";
|
|
1987
2017
|
row?: T;
|
|
1988
2018
|
index?: number;
|
|
1989
|
-
}) =>
|
|
2019
|
+
}) => FormSubmitResult<FormShape> | Promise<FormSubmitResult<FormShape>>) | undefined;
|
|
1990
2020
|
createDefaults?: FormShape | undefined;
|
|
1991
2021
|
toFormValues?: ((row: T) => FormShape) | undefined;
|
|
1992
2022
|
renderDetail?: ((row: T, index: number) => ReactNode) | undefined;
|
|
@@ -2055,12 +2085,17 @@ interface CrudPageBase<T> {
|
|
|
2055
2085
|
* propre à cette page, aucune bibliothèque imposée.
|
|
2056
2086
|
*/
|
|
2057
2087
|
fields?: FormEntry[];
|
|
2058
|
-
/**
|
|
2088
|
+
/**
|
|
2089
|
+
* Ce que la page fait d'un formulaire envoyé.
|
|
2090
|
+
*
|
|
2091
|
+
* Rendre des erreurs par champ, ou lever une `HttpError`, garde la boîte
|
|
2092
|
+
* ouverte avec les erreurs affichées ; sinon elle se ferme.
|
|
2093
|
+
*/
|
|
2059
2094
|
onSubmit?: (values: FormShape, context: {
|
|
2060
2095
|
mode: "create" | "edit";
|
|
2061
2096
|
row?: T;
|
|
2062
2097
|
index?: number;
|
|
2063
|
-
}) =>
|
|
2098
|
+
}) => FormSubmitResult<FormShape> | Promise<FormSubmitResult<FormShape>>;
|
|
2064
2099
|
/**
|
|
2065
2100
|
* La validation, sous la même forme que `Form`.
|
|
2066
2101
|
*
|
|
@@ -2110,6 +2145,8 @@ interface CrudPageBase<T> {
|
|
|
2110
2145
|
searchKeys?: string[];
|
|
2111
2146
|
searchPlaceholder?: string;
|
|
2112
2147
|
onSearch?: (query: string) => void;
|
|
2148
|
+
/** Temporise `onSearch` — voir `DataTable`. 300 pour une recherche serveur. */
|
|
2149
|
+
searchDelay?: number;
|
|
2113
2150
|
loading?: boolean;
|
|
2114
2151
|
error?: ReactNode;
|
|
2115
2152
|
onRetry?: () => void;
|
|
@@ -2117,6 +2154,11 @@ interface CrudPageBase<T> {
|
|
|
2117
2154
|
page?: number;
|
|
2118
2155
|
totalPages?: number;
|
|
2119
2156
|
onPageChange?: (page: number) => void;
|
|
2157
|
+
/** Avec `onPageSizeChange`, ajoute le choix du nombre de lignes par page. */
|
|
2158
|
+
pageSize?: number;
|
|
2159
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
2160
|
+
/** Les tailles proposées — voir `Pagination`. */
|
|
2161
|
+
pageSizeOptions?: number[];
|
|
2120
2162
|
/**
|
|
2121
2163
|
* Ce qui n'a pas de raccourci ici passe au tableau tel quel — densité,
|
|
2122
2164
|
* mode cartes, tri, colonnes figées.
|
|
@@ -2158,7 +2200,7 @@ type CrudPageProps<T> = CrudPageBase<T> & ({
|
|
|
2158
2200
|
*
|
|
2159
2201
|
* Ici, fournir le gestionnaire suffit. Ne pas le fournir retire l'action.
|
|
2160
2202
|
*/
|
|
2161
|
-
declare function CrudPage<T>({ resource, title, description, eyebrow, columns: colonnesFournies, data, getRowKey: cleFournie, onCreate, onView, onEdit, onDelete, fields: champsFournis, onSubmit, validate: validationFournie, createDefaults, toFormValues, detail, dialog, operations, extraRowActions, onBulkDelete, can, headerActions, toolbar, searchKeys: clesDeRecherche, searchPlaceholder, onSearch, loading, error, onRetry, empty, page, totalPages, onPageChange, table, children, className, }: CrudPageProps<T>): react_jsx_runtime.JSX.Element;
|
|
2203
|
+
declare function CrudPage<T>({ resource, title, description, eyebrow, columns: colonnesFournies, data, getRowKey: cleFournie, onCreate, onView, onEdit, onDelete, fields: champsFournis, onSubmit, validate: validationFournie, createDefaults, toFormValues, detail, dialog, operations, extraRowActions, onBulkDelete, can, headerActions, toolbar, searchKeys: clesDeRecherche, searchPlaceholder, onSearch, searchDelay, loading, error, onRetry, empty, page, totalPages, onPageChange, pageSize, onPageSizeChange, pageSizeOptions, table, children, className, }: CrudPageProps<T>): react_jsx_runtime.JSX.Element;
|
|
2162
2204
|
|
|
2163
2205
|
/**
|
|
2164
2206
|
* L'état du tableau dans la barre d'adresse.
|
|
@@ -2196,7 +2238,7 @@ declare function useDataTableQuery(options?: UseDataTableQueryOptions): TableQue
|
|
|
2196
2238
|
* elle filtre les lignes déjà chargées — ce qui suffit tant que tout tient
|
|
2197
2239
|
* sur une page.
|
|
2198
2240
|
*/
|
|
2199
|
-
declare function DataTable<T>({ columns, data, getRowKey, title, description, toolbar, actions, searchKeys, searchPlaceholder, onSearch, layout, maxHeight, stickyHeader, density, striped, bordered, rowActions, inlineActionsLimit, actionsHeader, actionsDisplay, can, view: viewProp, defaultView, onViewChange, showViewToggle, responsive, cardsBreakpoint, renderCard, loading, skeletonRows, error, onRetry, empty, selectable, selectedKeys: selectedProp, defaultSelectedKeys, onSelectionChange, isRowSelectable, selectionActions, sort, onSortChange, onRowClick, rowClassName, caption, className, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
2241
|
+
declare function DataTable<T>({ columns, data, getRowKey, title, description, toolbar, actions, searchKeys, searchPlaceholder, onSearch, searchDelay, layout, maxHeight, stickyHeader, density, striped, bordered, rowActions, inlineActionsLimit, actionsHeader, actionsDisplay, can, view: viewProp, defaultView, onViewChange, showViewToggle, responsive, cardsBreakpoint, renderCard, loading, skeletonRows, error, onRetry, empty, selectable, selectedKeys: selectedProp, defaultSelectedKeys, onSelectionChange, isRowSelectable, selectionActions, sort, onSortChange, onRowClick, rowClassName, caption, className, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
2200
2242
|
|
|
2201
2243
|
type DateRangeValue = CalendarRangeValue;
|
|
2202
2244
|
interface DateRangePickerProps extends Pick<CalendarProps, "locale" | "firstDayOfWeek" | "disabledDate" | "cellRender" | "showWeek"> {
|
|
@@ -2714,16 +2756,46 @@ interface PaginationProps {
|
|
|
2714
2756
|
showTotal?: boolean;
|
|
2715
2757
|
/** Masque les libellés et ne garde que les flèches. */
|
|
2716
2758
|
compact?: boolean;
|
|
2759
|
+
/** Le nombre de lignes par page en vigueur. */
|
|
2760
|
+
pageSize?: number;
|
|
2761
|
+
/**
|
|
2762
|
+
* Fourni avec `pageSize`, ajoute le choix du nombre de lignes par page.
|
|
2763
|
+
*
|
|
2764
|
+
* Seul le nouveau nombre est remonté : revenir en page 1 est l'affaire de
|
|
2765
|
+
* qui tient l'état — `setPerPage` de `useTableQuery` le fait déjà.
|
|
2766
|
+
*/
|
|
2767
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
2768
|
+
/**
|
|
2769
|
+
* Les tailles proposées. Par défaut `10, 20, 50, 100`. Une taille en
|
|
2770
|
+
* vigueur absente de la liste y est ajoutée, pour que le champ ne paraisse
|
|
2771
|
+
* jamais vide.
|
|
2772
|
+
*/
|
|
2773
|
+
pageSizeOptions?: number[];
|
|
2774
|
+
/** Le libellé du choix. Par défaut `locale.perPage` — « Par page ». */
|
|
2775
|
+
pageSizeLabel?: string;
|
|
2776
|
+
/**
|
|
2777
|
+
* Remplace entièrement le contrôle — des boutons segmentés, un champ libre.
|
|
2778
|
+
* Le choix des tailles et leur tri sont déjà faits.
|
|
2779
|
+
*/
|
|
2780
|
+
renderPageSize?: (context: PageSizeContext) => ReactNode;
|
|
2717
2781
|
ariaLabel?: string;
|
|
2718
2782
|
className?: string;
|
|
2719
2783
|
}
|
|
2784
|
+
/** Ce que reçoit `renderPageSize`. */
|
|
2785
|
+
interface PageSizeContext {
|
|
2786
|
+
pageSize: number;
|
|
2787
|
+
options: number[];
|
|
2788
|
+
onChange: (pageSize: number) => void;
|
|
2789
|
+
label: string;
|
|
2790
|
+
}
|
|
2791
|
+
declare const DEFAULT_PAGE_SIZE_OPTIONS: number[];
|
|
2720
2792
|
/**
|
|
2721
2793
|
* La navigation entre les pages.
|
|
2722
2794
|
*
|
|
2723
2795
|
* Le calcul des numéros et des ellipses vient de `@sia-ui/headless` :
|
|
2724
2796
|
* `usePagination` et ce composant appliquent la même règle, écrite une fois.
|
|
2725
2797
|
*/
|
|
2726
|
-
declare function Pagination({ page, totalPages, onPageChange, siblingCount, previousLabel: previousLabelProp, nextLabel: nextLabelProp, jumpTo, showTotal, compact, ariaLabel, className, }: PaginationProps): react_jsx_runtime.JSX.Element | null;
|
|
2798
|
+
declare function Pagination({ page, totalPages, onPageChange, siblingCount, previousLabel: previousLabelProp, nextLabel: nextLabelProp, jumpTo, showTotal, compact, pageSize, onPageSizeChange, pageSizeOptions, pageSizeLabel, renderPageSize, ariaLabel, className, }: PaginationProps): react_jsx_runtime.JSX.Element | null;
|
|
2727
2799
|
|
|
2728
2800
|
interface PasswordStrength {
|
|
2729
2801
|
/** De 0 à 4. */
|
|
@@ -3426,4 +3498,4 @@ interface YearPickerProps {
|
|
|
3426
3498
|
*/
|
|
3427
3499
|
declare function YearPicker({ value, defaultValue, min, max, onValueChange, className }: YearPickerProps): react_jsx_runtime.JSX.Element;
|
|
3428
3500
|
|
|
3429
|
-
export { Accordion, type AccordionItem, type AccordionProps, Alert, AlertCircleIcon, type AlertProps, AmountDisplay, type AmountDisplayProps, AppShell, AppShellBrand, type AppShellBrandProps, type AppShellCollapsible, type AppShellContentWidth, type AppShellMobileNav, type AppShellProps, AppShellRailItem, type AppShellRailItemProps, ArrowRightIcon, AspectRatio, type AspectRatioProps, AsyncState, type AsyncStateProps, type AuditEvent, AuditMeta, type AuditMetaProps, AuthLayout, type AuthLayoutProps, Autocomplete, type AutocompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarShape, type AvatarSize, type AvatarStatus, type AvatarTint, type AvatarVariant, Badge, type BadgeProps, BottomTabs, type BottomTabsProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonProps, Calendar, type CalendarDay, type CalendarEvent, CalendarIcon, type CalendarMode, type CalendarProps, type CalendarRangeValue, Can, type CanProps, Card, CardBody, CardFooter, CardHeader, Chart, type ChartProps, type ChartSeries, CheckIcon, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ClockIcon, Collapse, type CollapseProps, ColorPicker, type ColorPickerProps, type ColumnCardRole, type CommandItem, CommandPalette, type CommandPaletteProps, ConfirmDialog, type ConfirmDialogProps, Container, ContextMenu, type ContextMenuProps, Countdown, type CountdownProps, type CrudActionOptions, type CrudCreateOptions, type CrudDialogOptions, type CrudDialogState, CrudDialogs, CrudPage, type CrudPageProps, CurrencyInput, type CurrencyInputProps, DEFAULT_COUNTRIES, DataTable, type DataTableColumn, type DataTableProps, type DataTableView, DatePicker, type DatePickerProps, DateRangeFilter, type DateRangeFilterProps, DateRangePicker, type DateRangePickerProps, type DateRangePreset, type DateRangeValue, DateTimePicker, type DateTimePickerProps, type DateTimeValue, type DescriptionItem, Descriptions, type DescriptionsProps, Divider, type DividerProps, Drawer, DrawerBody, DrawerClose, type DrawerComponent, DrawerFooter, DrawerHeader, type DrawerPosition, type DrawerProps, type DrawerRef, type DrawerSize, DrawerTitle, DropdownMenu, type DropdownMenuProps, DurationDisplay, type DurationDisplayProps, EmptyState, type EmptyStateProps, EntityMeta, type EntityMetaProps, ErrorState, type ErrorStateProps, EventCalendar, type EventCalendarProps, EyeIcon, EyeOffIcon, Field, type FieldBindingLike, type FieldProps, type FieldStatus, type FieldType, type FieldValue, FileUpload, type FileUploadProps, FiltersBar, type FiltersBarProps, Form, type FormEntry, Field as FormField, type FormFieldConfig, type FormFieldGroup, type FieldProps as FormFieldProps, type FormProps, type FormShape, Heading, type HeadingProps, HoverCard, type HoverCardProps, type IDrawerProps, type ILabelProps, type ITooltipProps, type ITooltipVariant, IconButton, type IconButtonProps, ImageUpload, type ImageUploadProps, InfoIcon, InlineCode, Input, InputNumber, type InputNumberProps, type InputProps, JsonEditor, type JsonEditorProps, KpiGrid, type KpiGridProps, Label, type LabelProps, MarkdownEditor, type MarkdownEditorProps, type MenuEntry, type MenuItem, type MenuLabel, MenuList, type MenuListProps, type MenuSeparator, MiniCalendar, MinusIcon, Modal, type ModalProps, MonthPicker, type MonthPickerProps, MoreHorizontalIcon, MultiSelect, type MultiSelectProps, OtpInput, type OtpInputProps, Overlay, type OverlayPlacement, type OverlayProps, PageHeader, type PageHeaderProps, Pagination, type PaginationProps, PasswordInput, type PasswordInputProps, type PasswordStrength, PermissionGate, type PermissionGateProps, type PhoneCountry, PhoneInput, type PhoneInputProps, PlusIcon, Popover, type PopoverProps, Progress, type ProgressProps, QRCode, type QRCodeProps, Radio, RadioButton, type RadioButtonProps, RadioGroup, type RadioGroupProps, type RadioProps, Rating, type RatingProps, type ReferenceOption, ReferenceSelect, type ReferenceSelectProps, RelativeTime, type RelativeTimeProps, RequireSession, type RequireSessionProps, ResizablePanel, type ResizablePanelProps, type ResourceDefinition, type ResourceField, RichTextEditor, type RichTextEditorProps, type RowAction, ScrollArea, type ScrollAreaProps, SearchIcon, SearchInput, type SearchInputProps, Select, type SelectOption, type SelectProps, SettingsIcon, Sidebar, type SidebarEntry, type SidebarItem, type SidebarProps, type SidebarRenderLink, type SidebarSection, type SidebarState, Skeleton, type SkeletonProps, Slider, type SliderProps, type SliderRangeValue, Sparkline, type SparklineProps, Spinner, type SpinnerProps, Stack, StarIcon, StatCard, type StatCardProps, Statistic, type StatisticProps, type StepItem, type StepStatus, Steps, type StepsProps, Switch, type SwitchProps, Tabs, TabsContent, TabsList, type TabsProps, TabsTrigger, TagsInput, type TagsInputProps, Text, type TextProps, Textarea, type TextareaProps, type TimeParts, TimePicker, type TimePickerProps, TimeRangePicker, type TimeRangePickerProps, type TimeRangeValue, Timeline, type TimelineItem, type TimelineProps, Timer, type TimerProps, ToastProvider, type ToastProviderProps, Toaster, type ToasterProps, Toggle, ToggleGroup, type ToggleGroupOption, type ToggleGroupProps, type ToggleProps, Tooltip, type TooltipProps, type TooltipVariant, Tour, type TourProps, type TourStep, Transfer, type TransferItem, type TransferProps, TrashIcon, Tree, type TreeNode, type TreeProps, TreeSelect, type TreeSelectProps, UnsavedChangesGuard, type UnsavedChangesGuardProps, UploadIcon, type UseDataTableQueryOptions, WeekPicker, type WeekPickerProps, XIcon, YearPicker, type YearPickerProps, confirmUnsavedNavigation, createUrlTableStorage, defineResource, formatDuration, formatTimeValue, initialsOf, parseTimeValue, resourceColumns, resourceDefaults, resourceDetailColumns, resourceFormFields, resourcePermissions, resourceRowKey, resourceSearchKeys, resourceValidator, tintForName, useDataTableQuery, useToast };
|
|
3501
|
+
export { Accordion, type AccordionItem, type AccordionProps, Alert, AlertCircleIcon, type AlertProps, AmountDisplay, type AmountDisplayProps, AppShell, AppShellBrand, type AppShellBrandProps, type AppShellCollapsible, type AppShellContentWidth, type AppShellMobileNav, type AppShellProps, AppShellRailItem, type AppShellRailItemProps, ArrowRightIcon, AspectRatio, type AspectRatioProps, AsyncState, type AsyncStateProps, type AuditEvent, AuditMeta, type AuditMetaProps, AuthLayout, type AuthLayoutProps, Autocomplete, type AutocompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarShape, type AvatarSize, type AvatarStatus, type AvatarTint, type AvatarVariant, Badge, type BadgeProps, BottomTabs, type BottomTabsProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonProps, Calendar, type CalendarDay, type CalendarEvent, CalendarIcon, type CalendarMode, type CalendarProps, type CalendarRangeValue, Can, type CanProps, Card, CardBody, CardFooter, CardHeader, Chart, type ChartProps, type ChartSeries, CheckIcon, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ClockIcon, Collapse, type CollapseProps, ColorPicker, type ColorPickerProps, type ColumnCardRole, type CommandItem, CommandPalette, type CommandPaletteProps, ConfirmDialog, type ConfirmDialogProps, Container, ContextMenu, type ContextMenuProps, Countdown, type CountdownProps, type CrudActionOptions, type CrudCreateOptions, type CrudDialogOptions, type CrudDialogState, CrudDialogs, CrudPage, type CrudPageProps, CurrencyInput, type CurrencyInputProps, DEFAULT_COUNTRIES, DEFAULT_PAGE_SIZE_OPTIONS, DataTable, type DataTableColumn, type DataTableProps, type DataTableView, DatePicker, type DatePickerProps, DateRangeFilter, type DateRangeFilterProps, DateRangePicker, type DateRangePickerProps, type DateRangePreset, type DateRangeValue, DateTimePicker, type DateTimePickerProps, type DateTimeValue, type DescriptionItem, Descriptions, type DescriptionsProps, Divider, type DividerProps, Drawer, DrawerBody, DrawerClose, type DrawerComponent, DrawerFooter, DrawerHeader, type DrawerPosition, type DrawerProps, type DrawerRef, type DrawerSize, DrawerTitle, DropdownMenu, type DropdownMenuProps, DurationDisplay, type DurationDisplayProps, EmptyState, type EmptyStateProps, EntityMeta, type EntityMetaProps, ErrorState, type ErrorStateProps, EventCalendar, type EventCalendarProps, EyeIcon, EyeOffIcon, Field, type FieldBindingLike, type FieldProps, type FieldStatus, type FieldType, type FieldValue, FileUpload, type FileUploadProps, FiltersBar, type FiltersBarProps, Form, type FormEntry, Field as FormField, type FormFieldConfig, type FormFieldGroup, type FieldProps as FormFieldProps, type FormProps, type FormShape, Heading, type HeadingProps, HoverCard, type HoverCardProps, type IDrawerProps, type ILabelProps, type ITooltipProps, type ITooltipVariant, IconButton, type IconButtonProps, ImageUpload, type ImageUploadProps, InfoIcon, InlineCode, Input, InputNumber, type InputNumberProps, type InputProps, JsonEditor, type JsonEditorProps, KpiGrid, type KpiGridProps, Label, type LabelProps, MarkdownEditor, type MarkdownEditorProps, type MenuEntry, type MenuItem, type MenuLabel, MenuList, type MenuListProps, type MenuSeparator, MiniCalendar, MinusIcon, Modal, type ModalProps, MonthPicker, type MonthPickerProps, MoreHorizontalIcon, MultiSelect, type MultiSelectProps, OtpInput, type OtpInputProps, Overlay, type OverlayPlacement, type OverlayProps, PageHeader, type PageHeaderProps, type PageSizeContext, Pagination, type PaginationProps, PasswordInput, type PasswordInputProps, type PasswordStrength, PermissionGate, type PermissionGateProps, type PhoneCountry, PhoneInput, type PhoneInputProps, PlusIcon, Popover, type PopoverProps, Progress, type ProgressProps, QRCode, type QRCodeProps, Radio, RadioButton, type RadioButtonProps, RadioGroup, type RadioGroupProps, type RadioProps, Rating, type RatingProps, type ReferenceOption, ReferenceSelect, type ReferenceSelectProps, RelativeTime, type RelativeTimeProps, RequireSession, type RequireSessionProps, ResizablePanel, type ResizablePanelProps, type ResourceDefinition, type ResourceField, RichTextEditor, type RichTextEditorProps, type RowAction, ScrollArea, type ScrollAreaProps, SearchIcon, SearchInput, type SearchInputProps, Select, type SelectOption, type SelectProps, SettingsIcon, Sidebar, type SidebarEntry, type SidebarItem, type SidebarProps, type SidebarRenderLink, type SidebarSection, type SidebarState, Skeleton, type SkeletonProps, Slider, type SliderProps, type SliderRangeValue, Sparkline, type SparklineProps, Spinner, type SpinnerProps, Stack, StarIcon, StatCard, type StatCardProps, Statistic, type StatisticProps, type StepItem, type StepStatus, Steps, type StepsProps, Switch, type SwitchProps, Tabs, TabsContent, TabsList, type TabsProps, TabsTrigger, TagsInput, type TagsInputProps, Text, type TextProps, Textarea, type TextareaProps, type TimeParts, TimePicker, type TimePickerProps, TimeRangePicker, type TimeRangePickerProps, type TimeRangeValue, Timeline, type TimelineItem, type TimelineProps, Timer, type TimerProps, ToastProvider, type ToastProviderProps, Toaster, type ToasterProps, Toggle, ToggleGroup, type ToggleGroupOption, type ToggleGroupProps, type ToggleProps, Tooltip, type TooltipProps, type TooltipVariant, Tour, type TourProps, type TourStep, Transfer, type TransferItem, type TransferProps, TrashIcon, Tree, type TreeNode, type TreeProps, TreeSelect, type TreeSelectProps, UnsavedChangesGuard, type UnsavedChangesGuardProps, UploadIcon, type UseDataTableQueryOptions, WeekPicker, type WeekPickerProps, XIcon, YearPicker, type YearPickerProps, confirmUnsavedNavigation, createUrlTableStorage, defineResource, formFieldNames, formatDuration, formatTimeValue, initialsOf, parseTimeValue, resourceColumns, resourceDefaults, resourceDetailColumns, resourceFormFields, resourcePermissions, resourceRowKey, resourceSearchKeys, resourceValidator, tintForName, useDataTableQuery, useToast };
|