@umami/react-zen 0.239.0 → 0.241.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/dist/index.d.mts +71 -18
- package/dist/index.d.ts +71 -18
- package/dist/index.js +143 -79
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +146 -84
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -23
- package/styles.full.css +1 -1
- package/LICENSE +0 -21
- package/README.md +0 -61
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DisclosureGroupProps, DisclosureProps, DialogProps as DialogProps$1, DialogRenderProps, BreadcrumbProps, BreadcrumbsProps, ButtonProps as ButtonProps$1, CalendarProps as CalendarProps$1, CheckboxProps as CheckboxProps$1, ListBoxProps, ListBoxItemProps,
|
|
2
|
-
export {
|
|
1
|
+
import { DisclosureGroupProps, DisclosureProps, DialogProps as DialogProps$1, DialogRenderProps, BreadcrumbProps, BreadcrumbsProps, ButtonProps as ButtonProps$1, CalendarProps as CalendarProps$1, CheckboxProps as CheckboxProps$1, ListBoxProps, ListBoxItemProps, ListBoxSectionProps, SeparatorProps, ComboBoxProps as ComboBoxProps$1, ListBoxRenderProps, PopoverProps as PopoverProps$1, TableProps, TooltipProps as TooltipProps$1, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, MenuSectionProps as MenuSectionProps$1, SubmenuTriggerProps as SubmenuTriggerProps$1, ModalOverlayProps, ModalRenderProps, TextFieldProps as TextFieldProps$1, ProgressBarProps as ProgressBarProps$1, RadioProps, RadioGroupProps as RadioGroupProps$1, SearchFieldProps as SearchFieldProps$1, SelectProps as SelectProps$1, SelectValueRenderProps, SliderProps as SliderProps$1, SwitchProps as SwitchProps$1, TableBodyProps, CellProps, ColumnProps as ColumnProps$1, TableHeaderProps, RowProps as RowProps$1, TabProps, TabListProps, TabPanelProps, TabsProps, TagProps as TagProps$1, TagGroupProps as TagGroupProps$1, ToggleButtonProps } from 'react-aria-components';
|
|
2
|
+
export { DialogTrigger, FileTrigger, Focusable, MenuTrigger, Pressable, RadioProps, RouterProvider, Selection, SubmenuTrigger, TooltipTrigger } from 'react-aria-components';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { ReactNode, ReactElement, HTMLAttributes, CSSProperties, Dispatch, SetStateAction, RefObject } from 'react';
|
|
@@ -59,8 +59,9 @@ type ColorShade = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' |
|
|
|
59
59
|
type TailwindColor = `${ColorName}-${ColorShade}`;
|
|
60
60
|
type SemanticColor = 'primary' | 'secondary' | 'muted' | 'strong' | 'inverted' | 'disabled' | 'transparent';
|
|
61
61
|
type SurfaceColor = 'surface-base' | 'surface-raised' | 'surface-sunken' | 'surface-overlay' | 'surface-inverted' | 'surface-disabled';
|
|
62
|
+
type InteractiveColor = 'interactive' | 'interactive-hover' | 'interactive-pressed';
|
|
62
63
|
type FontColor = SemanticColor | ColorName | TailwindColor | true;
|
|
63
|
-
type BackgroundColor = SemanticColor | SurfaceColor | ColorName | TailwindColor | true;
|
|
64
|
+
type BackgroundColor = SemanticColor | SurfaceColor | InteractiveColor | ColorName | TailwindColor | true;
|
|
64
65
|
type BorderColor = SemanticColor | ColorName | TailwindColor | true;
|
|
65
66
|
type StrokeColor = FontColor;
|
|
66
67
|
type FillColor = FontColor;
|
|
@@ -223,6 +224,7 @@ interface BoxProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
|
|
|
223
224
|
flexBasis?: string;
|
|
224
225
|
flexGrow?: FlexGrow;
|
|
225
226
|
flexShrink?: FlexShrink;
|
|
227
|
+
fill?: boolean;
|
|
226
228
|
gridArea?: string;
|
|
227
229
|
gridRow?: string;
|
|
228
230
|
gridColumn?: string;
|
|
@@ -296,8 +298,55 @@ declare const button: tailwind_variants.TVReturnType<{
|
|
|
296
298
|
};
|
|
297
299
|
}, undefined, string[], unknown, unknown, undefined>>;
|
|
298
300
|
type ButtonVariants = VariantProps<typeof button>;
|
|
301
|
+
declare const tag: tailwind_variants.TVReturnType<{
|
|
302
|
+
variant: {
|
|
303
|
+
default: {
|
|
304
|
+
base: string;
|
|
305
|
+
};
|
|
306
|
+
outline: {
|
|
307
|
+
base: string;
|
|
308
|
+
};
|
|
309
|
+
primary: {
|
|
310
|
+
base: string;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
}, {
|
|
314
|
+
base: string[];
|
|
315
|
+
removeButton: string[];
|
|
316
|
+
}, undefined, {
|
|
317
|
+
variant: {
|
|
318
|
+
default: {
|
|
319
|
+
base: string;
|
|
320
|
+
};
|
|
321
|
+
outline: {
|
|
322
|
+
base: string;
|
|
323
|
+
};
|
|
324
|
+
primary: {
|
|
325
|
+
base: string;
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
}, {
|
|
329
|
+
base: string[];
|
|
330
|
+
removeButton: string[];
|
|
331
|
+
}, tailwind_variants.TVReturnType<{
|
|
332
|
+
variant: {
|
|
333
|
+
default: {
|
|
334
|
+
base: string;
|
|
335
|
+
};
|
|
336
|
+
outline: {
|
|
337
|
+
base: string;
|
|
338
|
+
};
|
|
339
|
+
primary: {
|
|
340
|
+
base: string;
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
}, {
|
|
344
|
+
base: string[];
|
|
345
|
+
removeButton: string[];
|
|
346
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
347
|
+
type TagVariants = VariantProps<typeof tag>;
|
|
299
348
|
|
|
300
|
-
interface ButtonProps extends Omit<ButtonProps$1, 'className'>, ButtonVariants {
|
|
349
|
+
interface ButtonProps extends Omit<ButtonProps$1, 'className' | 'render'>, ButtonVariants {
|
|
301
350
|
render?: RenderProp<ButtonRenderProps>;
|
|
302
351
|
children?: ReactNode;
|
|
303
352
|
className?: string;
|
|
@@ -307,7 +356,7 @@ interface ButtonRenderProps {
|
|
|
307
356
|
children: ReactNode;
|
|
308
357
|
[key: string]: unknown;
|
|
309
358
|
}
|
|
310
|
-
declare function Button({ variant, size, render, preventFocusOnPress, className, children, ...props }: ButtonProps): ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
359
|
+
declare function Button({ variant, size, render, preventFocusOnPress, className, children, ...props }: ButtonProps): react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
311
360
|
|
|
312
361
|
interface CalendarProps extends Omit<CalendarProps$1<any>, 'value' | 'minValue' | 'maxValue' | 'defaultValue' | 'onChange'> {
|
|
313
362
|
value: Date;
|
|
@@ -351,10 +400,6 @@ declare function Column({ reverse, children, ...props }: ColumnProps): react_jsx
|
|
|
351
400
|
|
|
352
401
|
interface ListProps extends ListBoxProps<any> {
|
|
353
402
|
children?: ReactNode;
|
|
354
|
-
items?: any[];
|
|
355
|
-
idProperty?: string;
|
|
356
|
-
labelProperty?: string;
|
|
357
|
-
separatorProperty?: string;
|
|
358
403
|
highlightColor?: string;
|
|
359
404
|
showCheckmark?: boolean;
|
|
360
405
|
isFullscreen?: boolean;
|
|
@@ -362,7 +407,7 @@ interface ListProps extends ListBoxProps<any> {
|
|
|
362
407
|
value?: string[];
|
|
363
408
|
onChange?: (value: string[]) => void;
|
|
364
409
|
}
|
|
365
|
-
declare function List({ id,
|
|
410
|
+
declare function List({ id, highlightColor, showCheckmark, isFullscreen, label, value, onChange, className, selectedKeys, defaultSelectedKeys, onSelectionChange, style, children, ...props }: ListProps): react_jsx_runtime.JSX.Element;
|
|
366
411
|
interface ListItemProps extends ListBoxItemProps<any> {
|
|
367
412
|
children?: ReactNode;
|
|
368
413
|
id?: string | number;
|
|
@@ -378,12 +423,11 @@ declare function ListSection({ title, className, children, ...props }: ListSecti
|
|
|
378
423
|
|
|
379
424
|
interface ComboBoxProps extends ComboBoxProps$1<any> {
|
|
380
425
|
children?: ReactNode;
|
|
381
|
-
items?: any[];
|
|
382
426
|
renderEmptyState?: (props: ListBoxRenderProps) => ReactNode;
|
|
383
427
|
listProps?: ListProps;
|
|
384
428
|
popoverProps?: PopoverProps$1;
|
|
385
429
|
}
|
|
386
|
-
declare function ComboBox({
|
|
430
|
+
declare function ComboBox({ className, renderEmptyState, listProps, popoverProps, children, ...props }: ComboBoxProps): react_jsx_runtime.JSX.Element;
|
|
387
431
|
|
|
388
432
|
interface ConfirmationDialogProps extends AlertDialogProps {
|
|
389
433
|
value: string;
|
|
@@ -445,7 +489,7 @@ interface DataColumnProps extends Omit<HTMLAttributes<any>, 'children'> {
|
|
|
445
489
|
hidden?: boolean;
|
|
446
490
|
children?: ReactNode | ((row: any, index: number) => void);
|
|
447
491
|
}
|
|
448
|
-
declare function DataColumn(
|
|
492
|
+
declare function DataColumn(_props: DataColumnProps): null;
|
|
449
493
|
|
|
450
494
|
interface DotsProps extends HTMLAttributes<HTMLDivElement> {
|
|
451
495
|
size?: 'sm' | 'md' | 'lg';
|
|
@@ -793,7 +837,6 @@ declare function SearchField({ label, placeholder, value, defaultValue, delay, o
|
|
|
793
837
|
|
|
794
838
|
interface SelectProps extends SelectProps$1<HTMLSelectElement> {
|
|
795
839
|
children?: ReactNode;
|
|
796
|
-
items?: any[];
|
|
797
840
|
value?: string | number;
|
|
798
841
|
defaultValue?: string | number;
|
|
799
842
|
label?: string;
|
|
@@ -813,7 +856,7 @@ interface SelectProps extends SelectProps$1<HTMLSelectElement> {
|
|
|
813
856
|
defaultChildren: ReactNode;
|
|
814
857
|
}) => ReactNode);
|
|
815
858
|
}
|
|
816
|
-
declare function Select({
|
|
859
|
+
declare function Select({ value, defaultValue, label, isLoading, allowSearch, searchValue, searchDelay, isFullscreen, maxHeight, onSearch, onChange, buttonProps, listProps, popoverProps, renderValue, className, children, ...props }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
817
860
|
|
|
818
861
|
interface SliderProps extends SliderProps$1 {
|
|
819
862
|
label?: ReactNode;
|
|
@@ -863,6 +906,16 @@ declare function TabList({ children, className, ...props }: TabListProps<any>):
|
|
|
863
906
|
declare function Tab({ children, className, ...props }: TabProps): react_jsx_runtime.JSX.Element;
|
|
864
907
|
declare function TabPanel({ children, className, ...props }: TabPanelProps): react_jsx_runtime.JSX.Element;
|
|
865
908
|
|
|
909
|
+
interface TagGroupProps extends Omit<TagGroupProps$1, 'children'> {
|
|
910
|
+
label?: string;
|
|
911
|
+
children?: ReactNode;
|
|
912
|
+
}
|
|
913
|
+
declare function TagGroup({ label, children, className, ...props }: TagGroupProps): react_jsx_runtime.JSX.Element;
|
|
914
|
+
interface TagProps extends TagProps$1, TagVariants {
|
|
915
|
+
children?: ReactNode;
|
|
916
|
+
}
|
|
917
|
+
declare function Tag({ variant, children, className, ...props }: TagProps): react_jsx_runtime.JSX.Element;
|
|
918
|
+
|
|
866
919
|
interface TextFieldProps extends TextFieldProps$1 {
|
|
867
920
|
label?: string;
|
|
868
921
|
placeholder?: string;
|
|
@@ -891,7 +944,7 @@ interface ToggleProps extends ToggleButtonProps {
|
|
|
891
944
|
}
|
|
892
945
|
declare function Toggle({ label, children, className, ...props }: ToggleProps): react_jsx_runtime.JSX.Element;
|
|
893
946
|
|
|
894
|
-
interface ToggleGroupProps extends TagGroupProps {
|
|
947
|
+
interface ToggleGroupProps extends TagGroupProps$1 {
|
|
895
948
|
label?: string;
|
|
896
949
|
value?: string[];
|
|
897
950
|
defaultValue?: string[];
|
|
@@ -899,7 +952,7 @@ interface ToggleGroupProps extends TagGroupProps {
|
|
|
899
952
|
onChange?: (value: string[]) => void;
|
|
900
953
|
}
|
|
901
954
|
declare function ToggleGroup({ label, value, defaultValue, variant, onChange, className, children, selectionMode, selectedKeys, defaultSelectedKeys, onSelectionChange, ...props }: ToggleGroupProps): react_jsx_runtime.JSX.Element;
|
|
902
|
-
interface ToggleGroupItemProps extends TagProps {
|
|
955
|
+
interface ToggleGroupItemProps extends TagProps$1 {
|
|
903
956
|
}
|
|
904
957
|
declare function ToggleGroupItem({ className, children, ...props }: ToggleGroupItemProps): react_jsx_runtime.JSX.Element;
|
|
905
958
|
|
|
@@ -937,4 +990,4 @@ interface ZenProviderProps {
|
|
|
937
990
|
}
|
|
938
991
|
declare function ZenProvider({ children, theme, colorScheme, palette, toast, }: ZenProviderProps): react_jsx_runtime.JSX.Element;
|
|
939
992
|
|
|
940
|
-
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, type BoxRenderProps, Breadcrumb, Breadcrumbs, type BreakpointKey, Button, type ButtonProps, type ButtonRenderProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ComboBox, type ComboBoxProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, CopyButton, type CopyButtonProps, DataCard, type DataCardProps, DataColumn, type DataColumnProps, DataTable, type DataTableProps, Dialog, type DialogProps, Dots, type DotsProps, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, Form, FormButtons, type FormButtonsProps, FormController, type FormControllerProps, FormField, FormFieldArray, type FormFieldArrayProps, type FormFieldProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, Grid, type GridProps, Heading, type HeadingProps, type HoverButtonProps, HoverTrigger, Icon, type IconProps, Image, type ImageProps, Label, type LabelProps, List, ListItem, type ListItemProps, type ListProps, ListSection, type ListSectionProps, ListSeparator, Loading, LoadingButton, type LoadingButtonProps, type LoadingProps, Menu, MenuItem, type MenuItemProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, Modal, type ModalProps, Navbar, NavbarContext, NavbarItem, type NavbarItemProps, type NavbarProps, type NavigationContext, PALETTES, type Palette, PaletteSwitcher, type PaletteSwitcherProps, PasswordField, type PasswordFieldProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Radio, RadioGroup, type RadioGroupProps, type RenderProp, Row, type RowProps, SearchField, type SearchFieldProps, Select, type SelectProps, Slider, type SliderProps, Spinner, type SpinnerProps, StatusLight, type StatusLightProps, type StrokeWidth, SubMenuTrigger, type SubmenuTriggerProps, Switch, type SwitchProps, Tab, TabList, TabPanel, Table, TableBody, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableHeader, TableRow, Tabs, Text, TextField, type TextFieldProps, type TextProps, type TextRenderProps, type Theme, ThemeButton, type ThemeButtonProps, type ThemeMode, ThemeSwitcher, type ThemeSwitcherProps, Toast, ToastContext, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, type ToastState, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipBubble, type TooltipBubbleProps, type TooltipProps, ZenProvider, type ZenProviderProps, cn, getCssColorValue, isHeightPreset, isMaxHeightPreset, isMaxWidthPreset, isMinHeightPreset, isMinWidthPreset, isWidthPreset, mapAlignContent, mapAlignItems, mapAlignSelf, mapBackgroundColor, mapBorder, mapBorderColor, mapBorderRadius, mapBorderWidth, mapCursor, mapDisplay, mapFlexDirection, mapFlexWrap, mapFontSize, mapFontWeight, mapGap, mapGridAutoFlow, mapGridColumns, mapGridRows, mapHeadingSize, mapHeight, mapJustifyContent, mapJustifyItems, mapLetterSpacing, mapLineHeight, mapMargin, mapMaxHeight, mapMaxWidth, mapMinHeight, mapMinWidth, mapOpacity, mapOverflow, mapPadding, mapPointerEvents, mapPosition, mapShadow, mapStateStyles, mapTextAlign, mapTextColor, mapTextDecorationStyle, mapTextIndent, mapTextTransform, mapTextWrap, mapVerticalAlign, mapWhitespace, mapWidth, mapWordBreak, removeToast, resolveRender, useBreakpoint, useDebounce, useInitTheme, useNavigationContext, useTheme, useToast };
|
|
993
|
+
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, type BoxRenderProps, Breadcrumb, Breadcrumbs, type BreakpointKey, Button, type ButtonProps, type ButtonRenderProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ComboBox, type ComboBoxProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, CopyButton, type CopyButtonProps, DataCard, type DataCardProps, DataColumn, type DataColumnProps, DataTable, type DataTableProps, Dialog, type DialogProps, Dots, type DotsProps, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, Form, FormButtons, type FormButtonsProps, FormController, type FormControllerProps, FormField, FormFieldArray, type FormFieldArrayProps, type FormFieldProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, Grid, type GridProps, Heading, type HeadingProps, type HoverButtonProps, HoverTrigger, Icon, type IconProps, Image, type ImageProps, Label, type LabelProps, List, ListItem, type ListItemProps, type ListProps, ListSection, type ListSectionProps, ListSeparator, Loading, LoadingButton, type LoadingButtonProps, type LoadingProps, Menu, MenuItem, type MenuItemProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, Modal, type ModalProps, Navbar, NavbarContext, NavbarItem, type NavbarItemProps, type NavbarProps, type NavigationContext, PALETTES, type Palette, PaletteSwitcher, type PaletteSwitcherProps, PasswordField, type PasswordFieldProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Radio, RadioGroup, type RadioGroupProps, type RenderProp, Row, type RowProps, SearchField, type SearchFieldProps, Select, type SelectProps, Slider, type SliderProps, Spinner, type SpinnerProps, StatusLight, type StatusLightProps, type StrokeWidth, SubMenuTrigger, type SubmenuTriggerProps, Switch, type SwitchProps, Tab, TabList, TabPanel, Table, TableBody, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableHeader, TableRow, Tabs, Tag, TagGroup, type TagGroupProps, type TagProps, Text, TextField, type TextFieldProps, type TextProps, type TextRenderProps, type Theme, ThemeButton, type ThemeButtonProps, type ThemeMode, ThemeSwitcher, type ThemeSwitcherProps, Toast, ToastContext, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, type ToastState, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipBubble, type TooltipBubbleProps, type TooltipProps, ZenProvider, type ZenProviderProps, cn, getCssColorValue, isHeightPreset, isMaxHeightPreset, isMaxWidthPreset, isMinHeightPreset, isMinWidthPreset, isWidthPreset, mapAlignContent, mapAlignItems, mapAlignSelf, mapBackgroundColor, mapBorder, mapBorderColor, mapBorderRadius, mapBorderWidth, mapCursor, mapDisplay, mapFlexDirection, mapFlexWrap, mapFontSize, mapFontWeight, mapGap, mapGridAutoFlow, mapGridColumns, mapGridRows, mapHeadingSize, mapHeight, mapJustifyContent, mapJustifyItems, mapLetterSpacing, mapLineHeight, mapMargin, mapMaxHeight, mapMaxWidth, mapMinHeight, mapMinWidth, mapOpacity, mapOverflow, mapPadding, mapPointerEvents, mapPosition, mapShadow, mapStateStyles, mapTextAlign, mapTextColor, mapTextDecorationStyle, mapTextIndent, mapTextTransform, mapTextWrap, mapVerticalAlign, mapWhitespace, mapWidth, mapWordBreak, removeToast, resolveRender, useBreakpoint, useDebounce, useInitTheme, useNavigationContext, useTheme, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DisclosureGroupProps, DisclosureProps, DialogProps as DialogProps$1, DialogRenderProps, BreadcrumbProps, BreadcrumbsProps, ButtonProps as ButtonProps$1, CalendarProps as CalendarProps$1, CheckboxProps as CheckboxProps$1, ListBoxProps, ListBoxItemProps,
|
|
2
|
-
export {
|
|
1
|
+
import { DisclosureGroupProps, DisclosureProps, DialogProps as DialogProps$1, DialogRenderProps, BreadcrumbProps, BreadcrumbsProps, ButtonProps as ButtonProps$1, CalendarProps as CalendarProps$1, CheckboxProps as CheckboxProps$1, ListBoxProps, ListBoxItemProps, ListBoxSectionProps, SeparatorProps, ComboBoxProps as ComboBoxProps$1, ListBoxRenderProps, PopoverProps as PopoverProps$1, TableProps, TooltipProps as TooltipProps$1, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, MenuSectionProps as MenuSectionProps$1, SubmenuTriggerProps as SubmenuTriggerProps$1, ModalOverlayProps, ModalRenderProps, TextFieldProps as TextFieldProps$1, ProgressBarProps as ProgressBarProps$1, RadioProps, RadioGroupProps as RadioGroupProps$1, SearchFieldProps as SearchFieldProps$1, SelectProps as SelectProps$1, SelectValueRenderProps, SliderProps as SliderProps$1, SwitchProps as SwitchProps$1, TableBodyProps, CellProps, ColumnProps as ColumnProps$1, TableHeaderProps, RowProps as RowProps$1, TabProps, TabListProps, TabPanelProps, TabsProps, TagProps as TagProps$1, TagGroupProps as TagGroupProps$1, ToggleButtonProps } from 'react-aria-components';
|
|
2
|
+
export { DialogTrigger, FileTrigger, Focusable, MenuTrigger, Pressable, RadioProps, RouterProvider, Selection, SubmenuTrigger, TooltipTrigger } from 'react-aria-components';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { ReactNode, ReactElement, HTMLAttributes, CSSProperties, Dispatch, SetStateAction, RefObject } from 'react';
|
|
@@ -59,8 +59,9 @@ type ColorShade = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' |
|
|
|
59
59
|
type TailwindColor = `${ColorName}-${ColorShade}`;
|
|
60
60
|
type SemanticColor = 'primary' | 'secondary' | 'muted' | 'strong' | 'inverted' | 'disabled' | 'transparent';
|
|
61
61
|
type SurfaceColor = 'surface-base' | 'surface-raised' | 'surface-sunken' | 'surface-overlay' | 'surface-inverted' | 'surface-disabled';
|
|
62
|
+
type InteractiveColor = 'interactive' | 'interactive-hover' | 'interactive-pressed';
|
|
62
63
|
type FontColor = SemanticColor | ColorName | TailwindColor | true;
|
|
63
|
-
type BackgroundColor = SemanticColor | SurfaceColor | ColorName | TailwindColor | true;
|
|
64
|
+
type BackgroundColor = SemanticColor | SurfaceColor | InteractiveColor | ColorName | TailwindColor | true;
|
|
64
65
|
type BorderColor = SemanticColor | ColorName | TailwindColor | true;
|
|
65
66
|
type StrokeColor = FontColor;
|
|
66
67
|
type FillColor = FontColor;
|
|
@@ -223,6 +224,7 @@ interface BoxProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
|
|
|
223
224
|
flexBasis?: string;
|
|
224
225
|
flexGrow?: FlexGrow;
|
|
225
226
|
flexShrink?: FlexShrink;
|
|
227
|
+
fill?: boolean;
|
|
226
228
|
gridArea?: string;
|
|
227
229
|
gridRow?: string;
|
|
228
230
|
gridColumn?: string;
|
|
@@ -296,8 +298,55 @@ declare const button: tailwind_variants.TVReturnType<{
|
|
|
296
298
|
};
|
|
297
299
|
}, undefined, string[], unknown, unknown, undefined>>;
|
|
298
300
|
type ButtonVariants = VariantProps<typeof button>;
|
|
301
|
+
declare const tag: tailwind_variants.TVReturnType<{
|
|
302
|
+
variant: {
|
|
303
|
+
default: {
|
|
304
|
+
base: string;
|
|
305
|
+
};
|
|
306
|
+
outline: {
|
|
307
|
+
base: string;
|
|
308
|
+
};
|
|
309
|
+
primary: {
|
|
310
|
+
base: string;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
}, {
|
|
314
|
+
base: string[];
|
|
315
|
+
removeButton: string[];
|
|
316
|
+
}, undefined, {
|
|
317
|
+
variant: {
|
|
318
|
+
default: {
|
|
319
|
+
base: string;
|
|
320
|
+
};
|
|
321
|
+
outline: {
|
|
322
|
+
base: string;
|
|
323
|
+
};
|
|
324
|
+
primary: {
|
|
325
|
+
base: string;
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
}, {
|
|
329
|
+
base: string[];
|
|
330
|
+
removeButton: string[];
|
|
331
|
+
}, tailwind_variants.TVReturnType<{
|
|
332
|
+
variant: {
|
|
333
|
+
default: {
|
|
334
|
+
base: string;
|
|
335
|
+
};
|
|
336
|
+
outline: {
|
|
337
|
+
base: string;
|
|
338
|
+
};
|
|
339
|
+
primary: {
|
|
340
|
+
base: string;
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
}, {
|
|
344
|
+
base: string[];
|
|
345
|
+
removeButton: string[];
|
|
346
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
347
|
+
type TagVariants = VariantProps<typeof tag>;
|
|
299
348
|
|
|
300
|
-
interface ButtonProps extends Omit<ButtonProps$1, 'className'>, ButtonVariants {
|
|
349
|
+
interface ButtonProps extends Omit<ButtonProps$1, 'className' | 'render'>, ButtonVariants {
|
|
301
350
|
render?: RenderProp<ButtonRenderProps>;
|
|
302
351
|
children?: ReactNode;
|
|
303
352
|
className?: string;
|
|
@@ -307,7 +356,7 @@ interface ButtonRenderProps {
|
|
|
307
356
|
children: ReactNode;
|
|
308
357
|
[key: string]: unknown;
|
|
309
358
|
}
|
|
310
|
-
declare function Button({ variant, size, render, preventFocusOnPress, className, children, ...props }: ButtonProps): ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
359
|
+
declare function Button({ variant, size, render, preventFocusOnPress, className, children, ...props }: ButtonProps): react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
311
360
|
|
|
312
361
|
interface CalendarProps extends Omit<CalendarProps$1<any>, 'value' | 'minValue' | 'maxValue' | 'defaultValue' | 'onChange'> {
|
|
313
362
|
value: Date;
|
|
@@ -351,10 +400,6 @@ declare function Column({ reverse, children, ...props }: ColumnProps): react_jsx
|
|
|
351
400
|
|
|
352
401
|
interface ListProps extends ListBoxProps<any> {
|
|
353
402
|
children?: ReactNode;
|
|
354
|
-
items?: any[];
|
|
355
|
-
idProperty?: string;
|
|
356
|
-
labelProperty?: string;
|
|
357
|
-
separatorProperty?: string;
|
|
358
403
|
highlightColor?: string;
|
|
359
404
|
showCheckmark?: boolean;
|
|
360
405
|
isFullscreen?: boolean;
|
|
@@ -362,7 +407,7 @@ interface ListProps extends ListBoxProps<any> {
|
|
|
362
407
|
value?: string[];
|
|
363
408
|
onChange?: (value: string[]) => void;
|
|
364
409
|
}
|
|
365
|
-
declare function List({ id,
|
|
410
|
+
declare function List({ id, highlightColor, showCheckmark, isFullscreen, label, value, onChange, className, selectedKeys, defaultSelectedKeys, onSelectionChange, style, children, ...props }: ListProps): react_jsx_runtime.JSX.Element;
|
|
366
411
|
interface ListItemProps extends ListBoxItemProps<any> {
|
|
367
412
|
children?: ReactNode;
|
|
368
413
|
id?: string | number;
|
|
@@ -378,12 +423,11 @@ declare function ListSection({ title, className, children, ...props }: ListSecti
|
|
|
378
423
|
|
|
379
424
|
interface ComboBoxProps extends ComboBoxProps$1<any> {
|
|
380
425
|
children?: ReactNode;
|
|
381
|
-
items?: any[];
|
|
382
426
|
renderEmptyState?: (props: ListBoxRenderProps) => ReactNode;
|
|
383
427
|
listProps?: ListProps;
|
|
384
428
|
popoverProps?: PopoverProps$1;
|
|
385
429
|
}
|
|
386
|
-
declare function ComboBox({
|
|
430
|
+
declare function ComboBox({ className, renderEmptyState, listProps, popoverProps, children, ...props }: ComboBoxProps): react_jsx_runtime.JSX.Element;
|
|
387
431
|
|
|
388
432
|
interface ConfirmationDialogProps extends AlertDialogProps {
|
|
389
433
|
value: string;
|
|
@@ -445,7 +489,7 @@ interface DataColumnProps extends Omit<HTMLAttributes<any>, 'children'> {
|
|
|
445
489
|
hidden?: boolean;
|
|
446
490
|
children?: ReactNode | ((row: any, index: number) => void);
|
|
447
491
|
}
|
|
448
|
-
declare function DataColumn(
|
|
492
|
+
declare function DataColumn(_props: DataColumnProps): null;
|
|
449
493
|
|
|
450
494
|
interface DotsProps extends HTMLAttributes<HTMLDivElement> {
|
|
451
495
|
size?: 'sm' | 'md' | 'lg';
|
|
@@ -793,7 +837,6 @@ declare function SearchField({ label, placeholder, value, defaultValue, delay, o
|
|
|
793
837
|
|
|
794
838
|
interface SelectProps extends SelectProps$1<HTMLSelectElement> {
|
|
795
839
|
children?: ReactNode;
|
|
796
|
-
items?: any[];
|
|
797
840
|
value?: string | number;
|
|
798
841
|
defaultValue?: string | number;
|
|
799
842
|
label?: string;
|
|
@@ -813,7 +856,7 @@ interface SelectProps extends SelectProps$1<HTMLSelectElement> {
|
|
|
813
856
|
defaultChildren: ReactNode;
|
|
814
857
|
}) => ReactNode);
|
|
815
858
|
}
|
|
816
|
-
declare function Select({
|
|
859
|
+
declare function Select({ value, defaultValue, label, isLoading, allowSearch, searchValue, searchDelay, isFullscreen, maxHeight, onSearch, onChange, buttonProps, listProps, popoverProps, renderValue, className, children, ...props }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
817
860
|
|
|
818
861
|
interface SliderProps extends SliderProps$1 {
|
|
819
862
|
label?: ReactNode;
|
|
@@ -863,6 +906,16 @@ declare function TabList({ children, className, ...props }: TabListProps<any>):
|
|
|
863
906
|
declare function Tab({ children, className, ...props }: TabProps): react_jsx_runtime.JSX.Element;
|
|
864
907
|
declare function TabPanel({ children, className, ...props }: TabPanelProps): react_jsx_runtime.JSX.Element;
|
|
865
908
|
|
|
909
|
+
interface TagGroupProps extends Omit<TagGroupProps$1, 'children'> {
|
|
910
|
+
label?: string;
|
|
911
|
+
children?: ReactNode;
|
|
912
|
+
}
|
|
913
|
+
declare function TagGroup({ label, children, className, ...props }: TagGroupProps): react_jsx_runtime.JSX.Element;
|
|
914
|
+
interface TagProps extends TagProps$1, TagVariants {
|
|
915
|
+
children?: ReactNode;
|
|
916
|
+
}
|
|
917
|
+
declare function Tag({ variant, children, className, ...props }: TagProps): react_jsx_runtime.JSX.Element;
|
|
918
|
+
|
|
866
919
|
interface TextFieldProps extends TextFieldProps$1 {
|
|
867
920
|
label?: string;
|
|
868
921
|
placeholder?: string;
|
|
@@ -891,7 +944,7 @@ interface ToggleProps extends ToggleButtonProps {
|
|
|
891
944
|
}
|
|
892
945
|
declare function Toggle({ label, children, className, ...props }: ToggleProps): react_jsx_runtime.JSX.Element;
|
|
893
946
|
|
|
894
|
-
interface ToggleGroupProps extends TagGroupProps {
|
|
947
|
+
interface ToggleGroupProps extends TagGroupProps$1 {
|
|
895
948
|
label?: string;
|
|
896
949
|
value?: string[];
|
|
897
950
|
defaultValue?: string[];
|
|
@@ -899,7 +952,7 @@ interface ToggleGroupProps extends TagGroupProps {
|
|
|
899
952
|
onChange?: (value: string[]) => void;
|
|
900
953
|
}
|
|
901
954
|
declare function ToggleGroup({ label, value, defaultValue, variant, onChange, className, children, selectionMode, selectedKeys, defaultSelectedKeys, onSelectionChange, ...props }: ToggleGroupProps): react_jsx_runtime.JSX.Element;
|
|
902
|
-
interface ToggleGroupItemProps extends TagProps {
|
|
955
|
+
interface ToggleGroupItemProps extends TagProps$1 {
|
|
903
956
|
}
|
|
904
957
|
declare function ToggleGroupItem({ className, children, ...props }: ToggleGroupItemProps): react_jsx_runtime.JSX.Element;
|
|
905
958
|
|
|
@@ -937,4 +990,4 @@ interface ZenProviderProps {
|
|
|
937
990
|
}
|
|
938
991
|
declare function ZenProvider({ children, theme, colorScheme, palette, toast, }: ZenProviderProps): react_jsx_runtime.JSX.Element;
|
|
939
992
|
|
|
940
|
-
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, type BoxRenderProps, Breadcrumb, Breadcrumbs, type BreakpointKey, Button, type ButtonProps, type ButtonRenderProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ComboBox, type ComboBoxProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, CopyButton, type CopyButtonProps, DataCard, type DataCardProps, DataColumn, type DataColumnProps, DataTable, type DataTableProps, Dialog, type DialogProps, Dots, type DotsProps, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, Form, FormButtons, type FormButtonsProps, FormController, type FormControllerProps, FormField, FormFieldArray, type FormFieldArrayProps, type FormFieldProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, Grid, type GridProps, Heading, type HeadingProps, type HoverButtonProps, HoverTrigger, Icon, type IconProps, Image, type ImageProps, Label, type LabelProps, List, ListItem, type ListItemProps, type ListProps, ListSection, type ListSectionProps, ListSeparator, Loading, LoadingButton, type LoadingButtonProps, type LoadingProps, Menu, MenuItem, type MenuItemProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, Modal, type ModalProps, Navbar, NavbarContext, NavbarItem, type NavbarItemProps, type NavbarProps, type NavigationContext, PALETTES, type Palette, PaletteSwitcher, type PaletteSwitcherProps, PasswordField, type PasswordFieldProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Radio, RadioGroup, type RadioGroupProps, type RenderProp, Row, type RowProps, SearchField, type SearchFieldProps, Select, type SelectProps, Slider, type SliderProps, Spinner, type SpinnerProps, StatusLight, type StatusLightProps, type StrokeWidth, SubMenuTrigger, type SubmenuTriggerProps, Switch, type SwitchProps, Tab, TabList, TabPanel, Table, TableBody, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableHeader, TableRow, Tabs, Text, TextField, type TextFieldProps, type TextProps, type TextRenderProps, type Theme, ThemeButton, type ThemeButtonProps, type ThemeMode, ThemeSwitcher, type ThemeSwitcherProps, Toast, ToastContext, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, type ToastState, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipBubble, type TooltipBubbleProps, type TooltipProps, ZenProvider, type ZenProviderProps, cn, getCssColorValue, isHeightPreset, isMaxHeightPreset, isMaxWidthPreset, isMinHeightPreset, isMinWidthPreset, isWidthPreset, mapAlignContent, mapAlignItems, mapAlignSelf, mapBackgroundColor, mapBorder, mapBorderColor, mapBorderRadius, mapBorderWidth, mapCursor, mapDisplay, mapFlexDirection, mapFlexWrap, mapFontSize, mapFontWeight, mapGap, mapGridAutoFlow, mapGridColumns, mapGridRows, mapHeadingSize, mapHeight, mapJustifyContent, mapJustifyItems, mapLetterSpacing, mapLineHeight, mapMargin, mapMaxHeight, mapMaxWidth, mapMinHeight, mapMinWidth, mapOpacity, mapOverflow, mapPadding, mapPointerEvents, mapPosition, mapShadow, mapStateStyles, mapTextAlign, mapTextColor, mapTextDecorationStyle, mapTextIndent, mapTextTransform, mapTextWrap, mapVerticalAlign, mapWhitespace, mapWidth, mapWordBreak, removeToast, resolveRender, useBreakpoint, useDebounce, useInitTheme, useNavigationContext, useTheme, useToast };
|
|
993
|
+
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, type BoxRenderProps, Breadcrumb, Breadcrumbs, type BreakpointKey, Button, type ButtonProps, type ButtonRenderProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ComboBox, type ComboBoxProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, CopyButton, type CopyButtonProps, DataCard, type DataCardProps, DataColumn, type DataColumnProps, DataTable, type DataTableProps, Dialog, type DialogProps, Dots, type DotsProps, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, Form, FormButtons, type FormButtonsProps, FormController, type FormControllerProps, FormField, FormFieldArray, type FormFieldArrayProps, type FormFieldProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, Grid, type GridProps, Heading, type HeadingProps, type HoverButtonProps, HoverTrigger, Icon, type IconProps, Image, type ImageProps, Label, type LabelProps, List, ListItem, type ListItemProps, type ListProps, ListSection, type ListSectionProps, ListSeparator, Loading, LoadingButton, type LoadingButtonProps, type LoadingProps, Menu, MenuItem, type MenuItemProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, Modal, type ModalProps, Navbar, NavbarContext, NavbarItem, type NavbarItemProps, type NavbarProps, type NavigationContext, PALETTES, type Palette, PaletteSwitcher, type PaletteSwitcherProps, PasswordField, type PasswordFieldProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Radio, RadioGroup, type RadioGroupProps, type RenderProp, Row, type RowProps, SearchField, type SearchFieldProps, Select, type SelectProps, Slider, type SliderProps, Spinner, type SpinnerProps, StatusLight, type StatusLightProps, type StrokeWidth, SubMenuTrigger, type SubmenuTriggerProps, Switch, type SwitchProps, Tab, TabList, TabPanel, Table, TableBody, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableHeader, TableRow, Tabs, Tag, TagGroup, type TagGroupProps, type TagProps, Text, TextField, type TextFieldProps, type TextProps, type TextRenderProps, type Theme, ThemeButton, type ThemeButtonProps, type ThemeMode, ThemeSwitcher, type ThemeSwitcherProps, Toast, ToastContext, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, type ToastState, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipBubble, type TooltipBubbleProps, type TooltipProps, ZenProvider, type ZenProviderProps, cn, getCssColorValue, isHeightPreset, isMaxHeightPreset, isMaxWidthPreset, isMinHeightPreset, isMinWidthPreset, isWidthPreset, mapAlignContent, mapAlignItems, mapAlignSelf, mapBackgroundColor, mapBorder, mapBorderColor, mapBorderRadius, mapBorderWidth, mapCursor, mapDisplay, mapFlexDirection, mapFlexWrap, mapFontSize, mapFontWeight, mapGap, mapGridAutoFlow, mapGridColumns, mapGridRows, mapHeadingSize, mapHeight, mapJustifyContent, mapJustifyItems, mapLetterSpacing, mapLineHeight, mapMargin, mapMaxHeight, mapMaxWidth, mapMinHeight, mapMinWidth, mapOpacity, mapOverflow, mapPadding, mapPointerEvents, mapPosition, mapShadow, mapStateStyles, mapTextAlign, mapTextColor, mapTextDecorationStyle, mapTextIndent, mapTextTransform, mapTextWrap, mapVerticalAlign, mapWhitespace, mapWidth, mapWordBreak, removeToast, resolveRender, useBreakpoint, useDebounce, useInitTheme, useNavigationContext, useTheme, useToast };
|