@atom63/ui-react 0.2.0-beta.3 → 0.2.0-beta.7
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.ts +19 -6
- package/dist/index.js +12 -7
- package/dist/index.js.map +1 -1
- package/dist/layout/index.js +1 -1
- package/dist/layout/index.js.map +1 -1
- package/dist/media/index.js +6 -6
- package/dist/media/index.js.map +1 -1
- package/dist/theme/index.js +5 -5
- package/dist/theme/index.js.map +1 -1
- package/package.json +22 -23
- package/src/styles/index.css +1 -0
- package/src/styles/utilities.css +2243 -0
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ import { ContextMenu as ContextMenu$1 } from '@base-ui/react/context-menu';
|
|
|
22
22
|
export { a as DestinationIndicator, D as DestinationLink, b as DestinationLinkProps } from './destination-link-DMLeR-oF.js';
|
|
23
23
|
import { Drawer as Drawer$1 } from '@base-ui/react/drawer';
|
|
24
24
|
import { Menu } from '@base-ui/react/menu';
|
|
25
|
+
import * as lucide_react from 'lucide-react';
|
|
25
26
|
import * as react_hook_form from 'react-hook-form';
|
|
26
27
|
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
27
28
|
import { PreviewCard as PreviewCard$1 } from '@base-ui/react/preview-card';
|
|
@@ -423,10 +424,24 @@ declare function EmptyErrorDetail({ className, error, ...props }: React$1.Compon
|
|
|
423
424
|
error: string;
|
|
424
425
|
}): React$1.ReactElement;
|
|
425
426
|
|
|
426
|
-
|
|
427
|
+
declare function Spinner({ className, ...props }: React$1.ComponentProps<'svg'>): React$1.ReactElement;
|
|
428
|
+
|
|
429
|
+
declare const feedbackIcons: {
|
|
430
|
+
alertTriangle: React$1.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React$1.RefAttributes<SVGSVGElement>>;
|
|
431
|
+
clock: React$1.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React$1.RefAttributes<SVGSVGElement>>;
|
|
432
|
+
fileSearch: React$1.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React$1.RefAttributes<SVGSVGElement>>;
|
|
433
|
+
inbox: React$1.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React$1.RefAttributes<SVGSVGElement>>;
|
|
434
|
+
refreshCw: React$1.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React$1.RefAttributes<SVGSVGElement>>;
|
|
435
|
+
searchX: React$1.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React$1.RefAttributes<SVGSVGElement>>;
|
|
436
|
+
spinner: typeof Spinner;
|
|
437
|
+
wifiOff: React$1.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React$1.RefAttributes<SVGSVGElement>>;
|
|
438
|
+
};
|
|
439
|
+
/** A built-in icon name, or any element (for icons outside the built-in set). */
|
|
440
|
+
type FeedbackStateIconName = keyof typeof feedbackIcons;
|
|
441
|
+
type FeedbackStateIcon = FeedbackStateIconName | React$1.ReactElement;
|
|
427
442
|
interface FeedbackStateAction {
|
|
428
443
|
href?: string;
|
|
429
|
-
icon?:
|
|
444
|
+
icon?: FeedbackStateIcon;
|
|
430
445
|
label: string;
|
|
431
446
|
onClick?: () => void;
|
|
432
447
|
variant?: ButtonProps['variant'];
|
|
@@ -436,7 +451,7 @@ interface FeedbackStateProps {
|
|
|
436
451
|
className?: string;
|
|
437
452
|
description?: string;
|
|
438
453
|
error?: unknown;
|
|
439
|
-
icon?:
|
|
454
|
+
icon?: FeedbackStateIcon;
|
|
440
455
|
query?: string;
|
|
441
456
|
showIcon?: boolean;
|
|
442
457
|
size?: FeedbackStateSize;
|
|
@@ -1009,8 +1024,6 @@ interface SliderProps extends Omit<SliderRootProps, 'value' | 'defaultValue' | '
|
|
|
1009
1024
|
declare function Slider({ className, children, value, defaultValue, getThumbAriaLabel, onValueChange, min, max, 'aria-label': ariaLabel, ...props }: SliderProps): React$1.ReactElement;
|
|
1010
1025
|
declare function SliderValue({ className, ...props }: Slider$1.Value.Props): React$1.ReactElement;
|
|
1011
1026
|
|
|
1012
|
-
declare function Spinner({ className, ...props }: React$1.ComponentProps<'svg'>): React$1.ReactElement;
|
|
1013
|
-
|
|
1014
1027
|
type SwitchProps = Omit<Switch$1.Root.Props, 'className'> & {
|
|
1015
1028
|
className?: string;
|
|
1016
1029
|
/** Optional content rendered inside the thumb (e.g. sun/moon icons). */
|
|
@@ -1191,4 +1204,4 @@ interface Atom63ThemeProps extends useRender.ComponentProps<'div'> {
|
|
|
1191
1204
|
}
|
|
1192
1205
|
declare function Atom63Theme({ className, mode, render, theme, ...props }: Atom63ThemeProps): React$1.ReactElement;
|
|
1193
1206
|
|
|
1194
|
-
export { Accordion, AccordionContent, AccordionItem, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertAction, AlertDescription, AlertIcon, type AlertProps, AlertTitle, AnimatedCheck, type AnimatedCheckProps, Atom63Theme, type Atom63ThemeMode, type Atom63ThemeProps, Autocomplete, AutocompleteClear, AutocompleteCollection, AutocompleteEmpty, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteInput, type AutocompleteInputProps, AutocompleteItem, AutocompleteList, AutocompletePopup, type AutocompletePopupProps, AutocompleteRow, AutocompleteSeparator, AutocompleteStatus, AutocompleteTrigger, AutocompleteValue, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, type AvatarProps, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupSeparator, type ButtonGroupSeparatorProps, ButtonGroupText, ButtonProps, Calendar, type CalendarProps, type CardCursorBinding, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type CarouselProps, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, CollapsibleIndicator, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, type ColorSampleRegion, ConnectedPanel, ConnectedPanelBody, ConnectedPanelContent, type ConnectedPanelContentProps, ConnectedPanelDescription, ConnectedPanelFooter, ConnectedPanelHeader, type ConnectedPanelProps, ConnectedPanelTitle, ConnectedPanelTrigger, type ConnectedPanelTriggerProps, type ConnectedPanelVariant, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, type ContextMenuContentProps, ContextMenuGroup, ContextMenuItem, type ContextMenuItemProps, ContextMenuLabel, type ContextMenuLabelProps, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, type ContextMenuSubContentProps, ContextMenuSubTrigger, type ContextMenuSubTriggerProps, ContextMenuTrigger, CopyButton, CopyButtonFeedback, type CopyButtonFeedbackProps, type CopyButtonProps, Drawer, DrawerBody, DrawerClose, type DrawerCloseProps, DrawerContent, DrawerDescription, DrawerFooter, DrawerHandle, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, type DrawerTriggerProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyErrorDetail, EmptyHeader, EmptyMedia, EmptyTitle, type ExtractColorOptions, type ExtractedColor, FeedbackState, type FeedbackStateAction, type FeedbackStateProps, Field, FieldContent, type FieldContentProps, FieldDescription, type FieldDescriptionProps, FieldError, type FieldErrorProps, FieldGroup, type FieldGroupProps, FieldLabel, type FieldLabelProps, FieldLegend, type FieldLegendProps, type FieldProps, FieldSeparator, type FieldSeparatorProps, FieldSet, type FieldSetProps, FieldTitle, type FieldTitleProps, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Frame, FrameDescription, FrameFooter, FrameHeader, FramePanel, type FramePanelProps, type FrameProps, FrameTitle, HoverCard, HoverCardContent, type HoverCardContentProps, HoverCardTrigger, Input, InputGroup, InputGroupAddon, type InputGroupAddonAlign, type InputGroupAddonProps, InputGroupButton, type InputGroupButtonProps, InputGroupInput, type InputGroupInputProps, type InputGroupProps, InputGroupText, type InputGroupTextProps, InputGroupTextarea, type InputGroupTextareaProps, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputProps, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, type ItemMediaProps, type ItemProps, ItemSeparator, type ItemSeparatorProps, ItemTitle, Kbd, KbdGroup, type KbdProps, Label, type LabelProps, LoadMoreTrigger, type LoadMoreTriggerProps, Marquee, type MarqueeProps, Menubar, MenubarCheckboxItem, type MenubarCheckboxItemProps, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, type MenubarRadioItemProps, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Pagination, PaginationContent, type PaginationContentProps, PaginationEllipsis, type PaginationEllipsisProps, PaginationItem, type PaginationItemProps, PaginationLink, type PaginationLinkProps, PaginationNext, type PaginationNextProps, PaginationPrevious, type PaginationPreviousProps, type PaginationProps, PanelSettingButton, type PanelSettingButtonProps, Popover, PopoverAnchor, PopoverClose, PopoverContent, type PopoverContentProps, PopoverDescription, PopoverHeader, PopoverPortal, PopoverTitle, PopoverTrigger, type PortalContainer, PortalContainerProvider, type PortalContainerProviderProps, PreviewCard, PreviewCardPopup, type PreviewCardPopupProps, PreviewCardTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, ProgressiveBlur, type ProgressiveBlurPosition, type ProgressiveBlurProps, Radio, RadioGroup, Radio as RadioGroupItem, type RadioGroupProps, type RadioProps, ResizableHandle, type ResizableHandleProps, ResizablePanel, ResizablePanelGroup, type ResizablePanelGroupProps, type ResizablePanelProps, ScrollArea, ScrollBar, SearchField, type SearchFieldProps, SegmentedControl, type SegmentedControlItem, type SegmentedControlProps, Separator, type SeparatorProps, Sheet, SheetBackdrop, SheetClose, SheetPopup as SheetContent, SheetDescription, SheetFooter, type SheetFooterProps, SheetHeader, SheetBackdrop as SheetOverlay, SheetPanel, type SheetPanelProps, SheetPopup, type SheetPopupProps, SheetPortal, type SheetSide, SheetTitle, SheetTrigger, type SheetVariant, SheetViewport, type SheetViewportProps, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, type SidebarMenuButtonProps, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, type SidebarMenuSubButtonProps, SidebarMenuSubItem, SidebarNavCollapsibleItem, type SidebarNavCollapsibleItemProps, SidebarNavGroup, type SidebarNavGroupProps, SidebarNavLinkItem, type SidebarNavLinkItemProps, SidebarNavSubLinkItem, type SidebarNavSubLinkItemProps, SidebarNavSubList, type SidebarNavSubListProps, type SidebarProps, SidebarProvider, type SidebarProviderProps, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, type SliderProps, SliderValue, Spinner, Switch, type SwitchProps, TINT_MAX_LUMINANCE, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsPanel as TabsContent, TabsList, type TabsListProps, TabsPanel, type TabsPanelProps, TabsTab, type TabsTabProps, TabsTab as TabsTrigger, TextTicker, type TextTickerProps, Textarea, type TextareaProps, Toaster, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, ToggleGroupSeparator, type ToggleGroupSeparatorProps, type ToggleProps, TooltipPopup as TooltipContent, TooltipPopup, UIProvider, type UIProviderProps, type UseCardCursorOptions, type UseExtractColorOptions, type UseExtractColorReturn, capColorForContrast, colorCacheKey, extractColorFromImage, extractColorFromLoadedImage, getCachedColor, loadAndExtractColor, useAutocompleteFilter, useCardCursor, useCarousel, useExtractColor, useFormField, usePortalContainer, useSidebar, useUIEnvironment };
|
|
1207
|
+
export { Accordion, AccordionContent, AccordionItem, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertAction, AlertDescription, AlertIcon, type AlertProps, AlertTitle, AnimatedCheck, type AnimatedCheckProps, Atom63Theme, type Atom63ThemeMode, type Atom63ThemeProps, Autocomplete, AutocompleteClear, AutocompleteCollection, AutocompleteEmpty, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteInput, type AutocompleteInputProps, AutocompleteItem, AutocompleteList, AutocompletePopup, type AutocompletePopupProps, AutocompleteRow, AutocompleteSeparator, AutocompleteStatus, AutocompleteTrigger, AutocompleteValue, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, type AvatarProps, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupSeparator, type ButtonGroupSeparatorProps, ButtonGroupText, ButtonProps, Calendar, type CalendarProps, type CardCursorBinding, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type CarouselProps, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, CollapsibleIndicator, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, type ColorSampleRegion, ConnectedPanel, ConnectedPanelBody, ConnectedPanelContent, type ConnectedPanelContentProps, ConnectedPanelDescription, ConnectedPanelFooter, ConnectedPanelHeader, type ConnectedPanelProps, ConnectedPanelTitle, ConnectedPanelTrigger, type ConnectedPanelTriggerProps, type ConnectedPanelVariant, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, type ContextMenuContentProps, ContextMenuGroup, ContextMenuItem, type ContextMenuItemProps, ContextMenuLabel, type ContextMenuLabelProps, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, type ContextMenuSubContentProps, ContextMenuSubTrigger, type ContextMenuSubTriggerProps, ContextMenuTrigger, CopyButton, CopyButtonFeedback, type CopyButtonFeedbackProps, type CopyButtonProps, Drawer, DrawerBody, DrawerClose, type DrawerCloseProps, DrawerContent, DrawerDescription, DrawerFooter, DrawerHandle, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, type DrawerTriggerProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyErrorDetail, EmptyHeader, EmptyMedia, EmptyTitle, type ExtractColorOptions, type ExtractedColor, FeedbackState, type FeedbackStateAction, type FeedbackStateIcon, type FeedbackStateIconName, type FeedbackStateProps, Field, FieldContent, type FieldContentProps, FieldDescription, type FieldDescriptionProps, FieldError, type FieldErrorProps, FieldGroup, type FieldGroupProps, FieldLabel, type FieldLabelProps, FieldLegend, type FieldLegendProps, type FieldProps, FieldSeparator, type FieldSeparatorProps, FieldSet, type FieldSetProps, FieldTitle, type FieldTitleProps, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Frame, FrameDescription, FrameFooter, FrameHeader, FramePanel, type FramePanelProps, type FrameProps, FrameTitle, HoverCard, HoverCardContent, type HoverCardContentProps, HoverCardTrigger, Input, InputGroup, InputGroupAddon, type InputGroupAddonAlign, type InputGroupAddonProps, InputGroupButton, type InputGroupButtonProps, InputGroupInput, type InputGroupInputProps, type InputGroupProps, InputGroupText, type InputGroupTextProps, InputGroupTextarea, type InputGroupTextareaProps, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputProps, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, type ItemMediaProps, type ItemProps, ItemSeparator, type ItemSeparatorProps, ItemTitle, Kbd, KbdGroup, type KbdProps, Label, type LabelProps, LoadMoreTrigger, type LoadMoreTriggerProps, Marquee, type MarqueeProps, Menubar, MenubarCheckboxItem, type MenubarCheckboxItemProps, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, type MenubarRadioItemProps, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Pagination, PaginationContent, type PaginationContentProps, PaginationEllipsis, type PaginationEllipsisProps, PaginationItem, type PaginationItemProps, PaginationLink, type PaginationLinkProps, PaginationNext, type PaginationNextProps, PaginationPrevious, type PaginationPreviousProps, type PaginationProps, PanelSettingButton, type PanelSettingButtonProps, Popover, PopoverAnchor, PopoverClose, PopoverContent, type PopoverContentProps, PopoverDescription, PopoverHeader, PopoverPortal, PopoverTitle, PopoverTrigger, type PortalContainer, PortalContainerProvider, type PortalContainerProviderProps, PreviewCard, PreviewCardPopup, type PreviewCardPopupProps, PreviewCardTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, ProgressiveBlur, type ProgressiveBlurPosition, type ProgressiveBlurProps, Radio, RadioGroup, Radio as RadioGroupItem, type RadioGroupProps, type RadioProps, ResizableHandle, type ResizableHandleProps, ResizablePanel, ResizablePanelGroup, type ResizablePanelGroupProps, type ResizablePanelProps, ScrollArea, ScrollBar, SearchField, type SearchFieldProps, SegmentedControl, type SegmentedControlItem, type SegmentedControlProps, Separator, type SeparatorProps, Sheet, SheetBackdrop, SheetClose, SheetPopup as SheetContent, SheetDescription, SheetFooter, type SheetFooterProps, SheetHeader, SheetBackdrop as SheetOverlay, SheetPanel, type SheetPanelProps, SheetPopup, type SheetPopupProps, SheetPortal, type SheetSide, SheetTitle, SheetTrigger, type SheetVariant, SheetViewport, type SheetViewportProps, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, type SidebarMenuButtonProps, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, type SidebarMenuSubButtonProps, SidebarMenuSubItem, SidebarNavCollapsibleItem, type SidebarNavCollapsibleItemProps, SidebarNavGroup, type SidebarNavGroupProps, SidebarNavLinkItem, type SidebarNavLinkItemProps, SidebarNavSubLinkItem, type SidebarNavSubLinkItemProps, SidebarNavSubList, type SidebarNavSubListProps, type SidebarProps, SidebarProvider, type SidebarProviderProps, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, type SliderProps, SliderValue, Spinner, Switch, type SwitchProps, TINT_MAX_LUMINANCE, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsPanel as TabsContent, TabsList, type TabsListProps, TabsPanel, type TabsPanelProps, TabsTab, type TabsTabProps, TabsTab as TabsTrigger, TextTicker, type TextTickerProps, Textarea, type TextareaProps, Toaster, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, ToggleGroupSeparator, type ToggleGroupSeparatorProps, type ToggleProps, TooltipPopup as TooltipContent, TooltipPopup, UIProvider, type UIProviderProps, type UseCardCursorOptions, type UseExtractColorOptions, type UseExtractColorReturn, capColorForContrast, colorCacheKey, extractColorFromImage, extractColorFromLoadedImage, getCachedColor, loadAndExtractColor, useAutocompleteFilter, useCardCursor, useCarousel, useExtractColor, useFormField, usePortalContainer, useSidebar, useUIEnvironment };
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
12
12
|
import { getCrossRendererContract, loadMoreTriggerContract, tabsContract, toggleContract, toggleGroupContract, defaultUIEnvironment, alertContract, badgeContract, checkboxContract, connectedPanelContract, emptyContract, feedbackStateContract, itemContract, kbdContract, marqueeContract, paginationContract, radioContract, searchFieldContract, sidebarContract, switchContract, toasterContract } from '@atom63/ui-foundation';
|
|
13
13
|
import { mergeProps } from '@base-ui/react/merge-props';
|
|
14
14
|
import { useRender } from '@base-ui/react/use-render';
|
|
15
|
-
import { LoaderCircle, AlertCircle, CheckCircle, ChevronRight, Ellipsis, ArrowLeft, ArrowRight, ChevronDown, Copy,
|
|
15
|
+
import { LoaderCircle, AlertCircle, CheckCircle, ChevronRight, Ellipsis, ArrowLeft, ArrowRight, ChevronDown, Copy, Minus, Check, ChevronLeft, PanelLeft, TriangleAlertIcon, CircleCheckIcon, Loader2Icon, InfoIcon, OctagonXIcon, WifiOff, SearchX, RefreshCw, Inbox, FileSearch, Clock, AlertTriangle } from 'lucide-react';
|
|
16
16
|
import * as React2 from 'react';
|
|
17
17
|
import { forwardRef, createContext, useState, useId, useMemo, useContext, useRef, useCallback, useEffect, isValidElement, cloneElement } from 'react';
|
|
18
18
|
import { DayPicker } from 'react-day-picker';
|
|
@@ -2073,10 +2073,17 @@ var feedbackIcons = {
|
|
|
2073
2073
|
clock: Clock,
|
|
2074
2074
|
fileSearch: FileSearch,
|
|
2075
2075
|
inbox: Inbox,
|
|
2076
|
+
refreshCw: RefreshCw,
|
|
2076
2077
|
searchX: SearchX,
|
|
2077
2078
|
spinner: Spinner,
|
|
2078
2079
|
wifiOff: WifiOff
|
|
2079
2080
|
};
|
|
2081
|
+
function renderFeedbackIcon(icon) {
|
|
2082
|
+
if (icon === void 0) return null;
|
|
2083
|
+
if (typeof icon !== "string") return icon;
|
|
2084
|
+
const IconComponent = feedbackIcons[icon];
|
|
2085
|
+
return IconComponent ? /* @__PURE__ */ jsx(IconComponent, { "aria-hidden": true }) : null;
|
|
2086
|
+
}
|
|
2080
2087
|
var stateConfig = {
|
|
2081
2088
|
empty: {
|
|
2082
2089
|
icon: "inbox",
|
|
@@ -2132,9 +2139,8 @@ function getFeedbackDescription({
|
|
|
2132
2139
|
return stateConfig[state].defaultDescription;
|
|
2133
2140
|
}
|
|
2134
2141
|
function FeedbackStateActionButton({ action }) {
|
|
2135
|
-
const IconComponent = action.icon ? feedbackIcons[action.icon] : void 0;
|
|
2136
2142
|
const inner = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2137
|
-
|
|
2143
|
+
renderFeedbackIcon(action.icon),
|
|
2138
2144
|
action.label
|
|
2139
2145
|
] });
|
|
2140
2146
|
if (action.href) {
|
|
@@ -2164,8 +2170,7 @@ function FeedbackState({
|
|
|
2164
2170
|
const config = stateConfig[state];
|
|
2165
2171
|
const finalDescription = getFeedbackDescription({ description, error, query, state });
|
|
2166
2172
|
const finalTitle = title || config.defaultTitle;
|
|
2167
|
-
const
|
|
2168
|
-
const IconComponent = feedbackIcons[iconName];
|
|
2173
|
+
const iconNode = renderFeedbackIcon(icon ?? config.icon);
|
|
2169
2174
|
return /* @__PURE__ */ jsxs(
|
|
2170
2175
|
"div",
|
|
2171
2176
|
{
|
|
@@ -2178,7 +2183,7 @@ function FeedbackState({
|
|
|
2178
2183
|
role: state === "error" ? "alert" : state === "loading" ? "status" : void 0,
|
|
2179
2184
|
children: [
|
|
2180
2185
|
/* @__PURE__ */ jsxs("div", { className: "a63-FeedbackState-header", "data-slot": "feedback-state-header", children: [
|
|
2181
|
-
showIcon &&
|
|
2186
|
+
showIcon && iconNode ? /* @__PURE__ */ jsx("div", { className: "a63-FeedbackState-media", "data-slot": "feedback-state-media", children: iconNode }) : null,
|
|
2182
2187
|
/* @__PURE__ */ jsx("div", { className: "a63-FeedbackState-title", "data-slot": "feedback-state-title", children: finalTitle }),
|
|
2183
2188
|
/* @__PURE__ */ jsx("div", { className: "a63-FeedbackState-description", "data-slot": "feedback-state-description", children: finalDescription })
|
|
2184
2189
|
] }),
|
|
@@ -2187,7 +2192,7 @@ function FeedbackState({
|
|
|
2187
2192
|
{
|
|
2188
2193
|
action
|
|
2189
2194
|
},
|
|
2190
|
-
`${action.label}-${action.href ??
|
|
2195
|
+
`${action.label}-${action.href ?? "button"}`
|
|
2191
2196
|
)) }) : null
|
|
2192
2197
|
]
|
|
2193
2198
|
}
|