barua-ui 0.2.3 → 0.3.1

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.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { ReactNode, ButtonHTMLAttributes, AnchorHTMLAttributes, InputHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes, DialogHTMLAttributes, SVGProps, ElementType, TableHTMLAttributes } from 'react';
2
+ import { ReactNode, ButtonHTMLAttributes, AnchorHTMLAttributes, InputHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes, DialogHTMLAttributes, SVGProps, ElementType, TableHTMLAttributes, ImgHTMLAttributes } from 'react';
3
3
 
4
4
  type BaruaTheme = "auto" | "light" | "dark";
5
5
  type BaruaAccent = "blue" | "indigo" | "purple" | "pink" | "teal" | "green";
@@ -1045,7 +1045,27 @@ interface OnboardingFeatureProps extends Omit<HTMLAttributes<HTMLDivElement>, "t
1045
1045
  declare const OnboardingFeature: react.ForwardRefExoticComponent<OnboardingFeatureProps & react.RefAttributes<HTMLDivElement>>;
1046
1046
 
1047
1047
  declare const MediaPlaceholder: react.ForwardRefExoticComponent<BlockProps & react.RefAttributes<HTMLElement>>;
1048
- declare const AsyncImage: react.ForwardRefExoticComponent<BlockProps & react.RefAttributes<HTMLElement>>;
1048
+ interface AsyncImageProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, "placeholder"> {
1049
+ src: string;
1050
+ alt: string;
1051
+ /**
1052
+ * A tiny copy of the same picture as a data URI — 32px wide is about a
1053
+ * kilobyte. Shown blurred until the real one arrives, so the frame is filled
1054
+ * with something true rather than with a shimmer.
1055
+ */
1056
+ placeholder?: string;
1057
+ /** e.g. "16/10". Reserves the space so nothing below jumps when it loads. */
1058
+ aspect?: string;
1059
+ className?: string;
1060
+ }
1061
+ /**
1062
+ * An image that fills its frame before it has finished arriving.
1063
+ *
1064
+ * With a placeholder it blurs up; without one it shimmers. Either way the box
1065
+ * is the right size from the first paint, which is the part that matters —
1066
+ * layout that settles after the fact is what makes a page feel cheap.
1067
+ */
1068
+ declare const AsyncImage: react.ForwardRefExoticComponent<AsyncImageProps & react.RefAttributes<HTMLImageElement>>;
1049
1069
  declare const Web: react.ForwardRefExoticComponent<BlockProps & react.RefAttributes<HTMLElement>>;
1050
1070
  declare const Video: react.ForwardRefExoticComponent<BlockProps & react.RefAttributes<HTMLElement>>;
1051
1071
  declare const Audio: react.ForwardRefExoticComponent<BlockProps & react.RefAttributes<HTMLElement>>;
@@ -1100,7 +1120,57 @@ declare const CommandCenterLabel: react.ForwardRefExoticComponent<BlockProps & r
1100
1120
  declare const CommandCenterStatus: react.ForwardRefExoticComponent<BlockProps & react.RefAttributes<HTMLElement>>;
1101
1121
  declare const ImageLens: react.ForwardRefExoticComponent<BlockProps & react.RefAttributes<HTMLElement>>;
1102
1122
 
1123
+ type RevealVariant = "up" | "fade" | "scale" | "start" | "end";
1124
+ interface RevealProps extends HTMLAttributes<HTMLElement> {
1125
+ as?: ElementType;
1126
+ variant?: RevealVariant;
1127
+ children?: ReactNode;
1128
+ }
1129
+ /**
1130
+ * An entrance tied to the element's own position in the scrollport, driven by
1131
+ * the browser rather than by a scroll listener. Where scroll timelines are
1132
+ * unsupported the content is simply visible — an entrance that fails closed
1133
+ * would hide the page.
1134
+ */
1135
+ declare const Reveal: react.ForwardRefExoticComponent<RevealProps & react.RefAttributes<HTMLElement>>;
1136
+ interface FitTextProps extends HTMLAttributes<HTMLDivElement> {
1137
+ /** Never smaller than this. */
1138
+ min?: string;
1139
+ /** Never larger than this. */
1140
+ max?: string;
1141
+ /** Size as a share of the container's width, in cqi. */
1142
+ scale?: string;
1143
+ children?: ReactNode;
1144
+ }
1145
+ /** One line sized to its container — a total, a headline figure, a long name. */
1146
+ declare const FitText: react.ForwardRefExoticComponent<FitTextProps & react.RefAttributes<HTMLDivElement>>;
1147
+ interface CountUpProps extends HTMLAttributes<HTMLSpanElement> {
1148
+ /** The value to travel to. */
1149
+ to: number;
1150
+ decimals?: number;
1151
+ duration?: number;
1152
+ /** Kept around the number, so "TZS 4.2M" stays "TZS 4.2M". */
1153
+ prefix?: string;
1154
+ suffix?: string;
1155
+ /** Thousands separators. */
1156
+ grouped?: boolean;
1157
+ }
1158
+ /**
1159
+ * A figure that travels to its new value instead of blinking to it. Honours
1160
+ * reduced motion by arriving immediately, and uses tabular figures so the
1161
+ * width does not jitter while the digits change.
1162
+ */
1163
+ declare const CountUp: react.ForwardRefExoticComponent<CountUpProps & react.RefAttributes<HTMLSpanElement>>;
1164
+ interface ContextMenuTargetProps extends HTMLAttributes<HTMLElement> {
1165
+ as?: ElementType;
1166
+ /** CSS selector of the .b-menu to open, e.g. "#row-menu". */
1167
+ menu: string;
1168
+ children?: ReactNode;
1169
+ }
1170
+ /** Right-click, or long-press, opens the named menu at the pointer. */
1171
+ declare const ContextMenuTarget: react.ForwardRefExoticComponent<ContextMenuTargetProps & react.RefAttributes<HTMLElement>>;
1172
+
1103
1173
  /** Join class names, skipping falsy values. */
1104
1174
  declare function cn(...parts: Array<string | false | null | undefined>): string;
1105
1175
 
1106
- export { Accordion, Account, type AccountProps, AccountSwitcher, ActionSheet, type ActionSheetAction, Alert, AlertDialog, type AlertDialogAction, type AlertProps, AppGrid, AppTile, AreaChart, AsyncImage, Audio, Auth, AuthCard, type AuthCardProps, Avatar, AvatarGroup, type AvatarProps, Axis, type AxisProps, BackButton, Badge, type BadgeProps, Banner, type BannerProps, Bars, type BarsProps, type BaruaAccent, BaruaProvider, type BaruaProviderProps, type BaruaTheme, Bento, type BlockProps, BottomNav, BottomNavItem, BottomSheet, Breadcrumbs, BulkActions, Button, ButtonGroup, type ButtonGroupProps, ButtonLink, type ButtonLinkProps, type ButtonProps, type ButtonSize, type ButtonVariant, Calendar, CalendarDay, type CalendarDayProps, CalendarGrid, CalendarHeader, CalendarMonth, CalendarView, CalendarViewCell, CalendarViewHead, CalendarWeekday, Callout, Card, CardBody, CardEyebrow, CardFooter, CardGrid, CardHeader, type CardProps, CardRail, CardSubtitle, CardTitle, Carousel, CarouselDots, CarouselSlide, CarouselTrack, Chapter, type ChapterProps, Chart, ChartTip, Checkbox, type CheckboxProps, Chip, type ChipProps, CircularProgress, type CircularProgressProps, CodeBlock, type CodeBlockProps, Columns, type ColumnsProps, Combobox, ComboboxEmpty, ComboboxList, ComboboxOption, type ComboboxOptionProps, CommandCenter, CommandCenterLabel, CommandCenterStatus, CommandCenterTile, CommandFooter, CommandGroupLabel, CommandInput, CommandItem, type CommandItemProps, CommandList, CommandPalette, type CommandPaletteProps, Container, type ContainerProps, type Crumb, Dashboard, DataGrid, DatePicker, DescriptionList, type DescriptionListProps, Disclosure, type DisclosureProps, Divider, type DividerProps, Dock, DockItem, DockTray, Donut, type DonutProps, type DonutSlice, DragHandle, Drawer, DrawerBody, DrawerHeader, type DrawerProps, Dropdown, type DropdownProps, Dropzone, type DropzoneProps, EmptyState, ErrorText, Event, type EventProps, Fab, type FabProps, FeatureRow, type FeatureRowProps, Feed, Field, type FieldProps, Fieldset, Figure, type FigureProps, FileBrowser, FileGrid, FileTile, type FileTileProps, FilterBar, FilterChip, type FilterChipProps, Footnote, Footnotes, Form, FormActions, FormRow, FormSection, type FormSectionProps, Gallery, Gantt, GanttBar, GanttRow, Gauge, type GaugeProps, GlassContainer, GlassInteractive, Grid, GridLines, type GridProps, GroupBox, Grow, HStack, Heatmap, Help, Hero, type HeroProps, HoverCard, HoverCardHost, Icon, type IconName, type IconProps, IconTile, type IconTileProps, ImageLens, ImageViewer, ImageViewerBar, Input, InputGroup, type InputGroupProps, type InputProps, Inspector, Kanban, KanbanColumn, type KanbanColumnProps, KanbanList, Kbd, Label, type LabelProps, Labeled, Landing, Legend, type LegendItem, type LegendProps, Lightbox, type LightboxProps, LineChart, LinearGauge, Link, LinkGroup, LiquidToggle, type LiquidToggleProps, List, ListFooter, ListHeader, ListItem, type ListItemProps, type ListProps, Log, MarketingNav, MarketingNavBrand, MarketingNavLinks, MediaPlaceholder, Menu, MenuBar, MenuBarItem, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, MenuSeparator, Modal, type ModalProps, type NavLinkProps, Notification, Onboarding, OnboardingFeature, type OnboardingFeatureProps, OnboardingHero, Optional, OtpInput, type OtpInputProps, Overline, Pagination, PaginationEllipsis, PaginationItem, type PaginationItemProps, type PaginationProps, PillNav, Popover, type PopoverProps, Progress, type ProgressProps, PromoBand, type PromoBandProps, Quote, type QuoteProps, RadarChart, Radio, Rail, RailItem, type RailProps, Range, type RangeProps, Resizable, ResizeHandle, Result, type ResultProps, SafeArea, ScatterChart, ScrollArea, type ScrollAreaProps, SearchField, SearchResult, type SearchResultProps, SearchResults, Section, Segmented, type SegmentedOption, Select, SelectionCount, Share, Sheet, Sidebar, SidebarGroup, SidebarHeading, SidebarItem, type SidebarItemProps, type SidebarProps, SiteFooter, SiteFooterGroup, SiteFooterGroups, SiteFooterHeading, SiteFooterLegal, Skeleton, SkipLink, Slider, SortControl, Spacer, Span, type SpanProps, Sparkline, type SparklineProps, SpecStrip, Spinner, Split, SplitButton, type SplitButtonProps, Stack, type StackProps, Stage, Stat, StatusBar, StatusBarItem, StatusDot, type Step, StepperInput, type StepperInputProps, Steps, type StepsProps, StoryCard, Swatch, Swatches, Switch, type SwitchProps, SysPage, type SysPageProps, type TabItem, TabPanel, Table, TableNum, type TableProps, TableSortHeader, TableWrap, Tabs, Tag, Task, TaskList, type TaskProps, TaskRow, Text, type TextProps, type TextRole, Textarea, ThemeScript, Thumb, type ThumbProps, Timeline, type TimelineEntry, type TimelineProps, Tip, type ToastOptions, ToastProvider, type ToastVariant, ToggleButton, type ToggleButtonProps, Toolbar, Tooltip, TopNav, TopNavBrand, TopNavLink, TopNavLinks, Tree, TreeItem, type TreeItemProps, Upload, UploadItem, type UploadItemProps, UploadPreview, UploadPreviews, VStack, Video, Wall, Waveform, Web, Workspace, WorkspaceMain, block, buttonClasses, cn, iconNames, useBaruaTheme, useToast };
1176
+ export { Accordion, Account, type AccountProps, AccountSwitcher, ActionSheet, type ActionSheetAction, Alert, AlertDialog, type AlertDialogAction, type AlertProps, AppGrid, AppTile, AreaChart, AsyncImage, type AsyncImageProps, Audio, Auth, AuthCard, type AuthCardProps, Avatar, AvatarGroup, type AvatarProps, Axis, type AxisProps, BackButton, Badge, type BadgeProps, Banner, type BannerProps, Bars, type BarsProps, type BaruaAccent, BaruaProvider, type BaruaProviderProps, type BaruaTheme, Bento, type BlockProps, BottomNav, BottomNavItem, BottomSheet, Breadcrumbs, BulkActions, Button, ButtonGroup, type ButtonGroupProps, ButtonLink, type ButtonLinkProps, type ButtonProps, type ButtonSize, type ButtonVariant, Calendar, CalendarDay, type CalendarDayProps, CalendarGrid, CalendarHeader, CalendarMonth, CalendarView, CalendarViewCell, CalendarViewHead, CalendarWeekday, Callout, Card, CardBody, CardEyebrow, CardFooter, CardGrid, CardHeader, type CardProps, CardRail, CardSubtitle, CardTitle, Carousel, CarouselDots, CarouselSlide, CarouselTrack, Chapter, type ChapterProps, Chart, ChartTip, Checkbox, type CheckboxProps, Chip, type ChipProps, CircularProgress, type CircularProgressProps, CodeBlock, type CodeBlockProps, Columns, type ColumnsProps, Combobox, ComboboxEmpty, ComboboxList, ComboboxOption, type ComboboxOptionProps, CommandCenter, CommandCenterLabel, CommandCenterStatus, CommandCenterTile, CommandFooter, CommandGroupLabel, CommandInput, CommandItem, type CommandItemProps, CommandList, CommandPalette, type CommandPaletteProps, Container, type ContainerProps, ContextMenuTarget, type ContextMenuTargetProps, CountUp, type CountUpProps, type Crumb, Dashboard, DataGrid, DatePicker, DescriptionList, type DescriptionListProps, Disclosure, type DisclosureProps, Divider, type DividerProps, Dock, DockItem, DockTray, Donut, type DonutProps, type DonutSlice, DragHandle, Drawer, DrawerBody, DrawerHeader, type DrawerProps, Dropdown, type DropdownProps, Dropzone, type DropzoneProps, EmptyState, ErrorText, Event, type EventProps, Fab, type FabProps, FeatureRow, type FeatureRowProps, Feed, Field, type FieldProps, Fieldset, Figure, type FigureProps, FileBrowser, FileGrid, FileTile, type FileTileProps, FilterBar, FilterChip, type FilterChipProps, FitText, type FitTextProps, Footnote, Footnotes, Form, FormActions, FormRow, FormSection, type FormSectionProps, Gallery, Gantt, GanttBar, GanttRow, Gauge, type GaugeProps, GlassContainer, GlassInteractive, Grid, GridLines, type GridProps, GroupBox, Grow, HStack, Heatmap, Help, Hero, type HeroProps, HoverCard, HoverCardHost, Icon, type IconName, type IconProps, IconTile, type IconTileProps, ImageLens, ImageViewer, ImageViewerBar, Input, InputGroup, type InputGroupProps, type InputProps, Inspector, Kanban, KanbanColumn, type KanbanColumnProps, KanbanList, Kbd, Label, type LabelProps, Labeled, Landing, Legend, type LegendItem, type LegendProps, Lightbox, type LightboxProps, LineChart, LinearGauge, Link, LinkGroup, LiquidToggle, type LiquidToggleProps, List, ListFooter, ListHeader, ListItem, type ListItemProps, type ListProps, Log, MarketingNav, MarketingNavBrand, MarketingNavLinks, MediaPlaceholder, Menu, MenuBar, MenuBarItem, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, MenuSeparator, Modal, type ModalProps, type NavLinkProps, Notification, Onboarding, OnboardingFeature, type OnboardingFeatureProps, OnboardingHero, Optional, OtpInput, type OtpInputProps, Overline, Pagination, PaginationEllipsis, PaginationItem, type PaginationItemProps, type PaginationProps, PillNav, Popover, type PopoverProps, Progress, type ProgressProps, PromoBand, type PromoBandProps, Quote, type QuoteProps, RadarChart, Radio, Rail, RailItem, type RailProps, Range, type RangeProps, Resizable, ResizeHandle, Result, type ResultProps, Reveal, type RevealProps, type RevealVariant, SafeArea, ScatterChart, ScrollArea, type ScrollAreaProps, SearchField, SearchResult, type SearchResultProps, SearchResults, Section, Segmented, type SegmentedOption, Select, SelectionCount, Share, Sheet, Sidebar, SidebarGroup, SidebarHeading, SidebarItem, type SidebarItemProps, type SidebarProps, SiteFooter, SiteFooterGroup, SiteFooterGroups, SiteFooterHeading, SiteFooterLegal, Skeleton, SkipLink, Slider, SortControl, Spacer, Span, type SpanProps, Sparkline, type SparklineProps, SpecStrip, Spinner, Split, SplitButton, type SplitButtonProps, Stack, type StackProps, Stage, Stat, StatusBar, StatusBarItem, StatusDot, type Step, StepperInput, type StepperInputProps, Steps, type StepsProps, StoryCard, Swatch, Swatches, Switch, type SwitchProps, SysPage, type SysPageProps, type TabItem, TabPanel, Table, TableNum, type TableProps, TableSortHeader, TableWrap, Tabs, Tag, Task, TaskList, type TaskProps, TaskRow, Text, type TextProps, type TextRole, Textarea, ThemeScript, Thumb, type ThumbProps, Timeline, type TimelineEntry, type TimelineProps, Tip, type ToastOptions, ToastProvider, type ToastVariant, ToggleButton, type ToggleButtonProps, Toolbar, Tooltip, TopNav, TopNavBrand, TopNavLink, TopNavLinks, Tree, TreeItem, type TreeItemProps, Upload, UploadItem, type UploadItemProps, UploadPreview, UploadPreviews, VStack, Video, Wall, Waveform, Web, Workspace, WorkspaceMain, block, buttonClasses, cn, iconNames, useBaruaTheme, useToast };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { ReactNode, ButtonHTMLAttributes, AnchorHTMLAttributes, InputHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes, DialogHTMLAttributes, SVGProps, ElementType, TableHTMLAttributes } from 'react';
2
+ import { ReactNode, ButtonHTMLAttributes, AnchorHTMLAttributes, InputHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes, DialogHTMLAttributes, SVGProps, ElementType, TableHTMLAttributes, ImgHTMLAttributes } from 'react';
3
3
 
4
4
  type BaruaTheme = "auto" | "light" | "dark";
5
5
  type BaruaAccent = "blue" | "indigo" | "purple" | "pink" | "teal" | "green";
@@ -1045,7 +1045,27 @@ interface OnboardingFeatureProps extends Omit<HTMLAttributes<HTMLDivElement>, "t
1045
1045
  declare const OnboardingFeature: react.ForwardRefExoticComponent<OnboardingFeatureProps & react.RefAttributes<HTMLDivElement>>;
1046
1046
 
1047
1047
  declare const MediaPlaceholder: react.ForwardRefExoticComponent<BlockProps & react.RefAttributes<HTMLElement>>;
1048
- declare const AsyncImage: react.ForwardRefExoticComponent<BlockProps & react.RefAttributes<HTMLElement>>;
1048
+ interface AsyncImageProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, "placeholder"> {
1049
+ src: string;
1050
+ alt: string;
1051
+ /**
1052
+ * A tiny copy of the same picture as a data URI — 32px wide is about a
1053
+ * kilobyte. Shown blurred until the real one arrives, so the frame is filled
1054
+ * with something true rather than with a shimmer.
1055
+ */
1056
+ placeholder?: string;
1057
+ /** e.g. "16/10". Reserves the space so nothing below jumps when it loads. */
1058
+ aspect?: string;
1059
+ className?: string;
1060
+ }
1061
+ /**
1062
+ * An image that fills its frame before it has finished arriving.
1063
+ *
1064
+ * With a placeholder it blurs up; without one it shimmers. Either way the box
1065
+ * is the right size from the first paint, which is the part that matters —
1066
+ * layout that settles after the fact is what makes a page feel cheap.
1067
+ */
1068
+ declare const AsyncImage: react.ForwardRefExoticComponent<AsyncImageProps & react.RefAttributes<HTMLImageElement>>;
1049
1069
  declare const Web: react.ForwardRefExoticComponent<BlockProps & react.RefAttributes<HTMLElement>>;
1050
1070
  declare const Video: react.ForwardRefExoticComponent<BlockProps & react.RefAttributes<HTMLElement>>;
1051
1071
  declare const Audio: react.ForwardRefExoticComponent<BlockProps & react.RefAttributes<HTMLElement>>;
@@ -1100,7 +1120,57 @@ declare const CommandCenterLabel: react.ForwardRefExoticComponent<BlockProps & r
1100
1120
  declare const CommandCenterStatus: react.ForwardRefExoticComponent<BlockProps & react.RefAttributes<HTMLElement>>;
1101
1121
  declare const ImageLens: react.ForwardRefExoticComponent<BlockProps & react.RefAttributes<HTMLElement>>;
1102
1122
 
1123
+ type RevealVariant = "up" | "fade" | "scale" | "start" | "end";
1124
+ interface RevealProps extends HTMLAttributes<HTMLElement> {
1125
+ as?: ElementType;
1126
+ variant?: RevealVariant;
1127
+ children?: ReactNode;
1128
+ }
1129
+ /**
1130
+ * An entrance tied to the element's own position in the scrollport, driven by
1131
+ * the browser rather than by a scroll listener. Where scroll timelines are
1132
+ * unsupported the content is simply visible — an entrance that fails closed
1133
+ * would hide the page.
1134
+ */
1135
+ declare const Reveal: react.ForwardRefExoticComponent<RevealProps & react.RefAttributes<HTMLElement>>;
1136
+ interface FitTextProps extends HTMLAttributes<HTMLDivElement> {
1137
+ /** Never smaller than this. */
1138
+ min?: string;
1139
+ /** Never larger than this. */
1140
+ max?: string;
1141
+ /** Size as a share of the container's width, in cqi. */
1142
+ scale?: string;
1143
+ children?: ReactNode;
1144
+ }
1145
+ /** One line sized to its container — a total, a headline figure, a long name. */
1146
+ declare const FitText: react.ForwardRefExoticComponent<FitTextProps & react.RefAttributes<HTMLDivElement>>;
1147
+ interface CountUpProps extends HTMLAttributes<HTMLSpanElement> {
1148
+ /** The value to travel to. */
1149
+ to: number;
1150
+ decimals?: number;
1151
+ duration?: number;
1152
+ /** Kept around the number, so "TZS 4.2M" stays "TZS 4.2M". */
1153
+ prefix?: string;
1154
+ suffix?: string;
1155
+ /** Thousands separators. */
1156
+ grouped?: boolean;
1157
+ }
1158
+ /**
1159
+ * A figure that travels to its new value instead of blinking to it. Honours
1160
+ * reduced motion by arriving immediately, and uses tabular figures so the
1161
+ * width does not jitter while the digits change.
1162
+ */
1163
+ declare const CountUp: react.ForwardRefExoticComponent<CountUpProps & react.RefAttributes<HTMLSpanElement>>;
1164
+ interface ContextMenuTargetProps extends HTMLAttributes<HTMLElement> {
1165
+ as?: ElementType;
1166
+ /** CSS selector of the .b-menu to open, e.g. "#row-menu". */
1167
+ menu: string;
1168
+ children?: ReactNode;
1169
+ }
1170
+ /** Right-click, or long-press, opens the named menu at the pointer. */
1171
+ declare const ContextMenuTarget: react.ForwardRefExoticComponent<ContextMenuTargetProps & react.RefAttributes<HTMLElement>>;
1172
+
1103
1173
  /** Join class names, skipping falsy values. */
1104
1174
  declare function cn(...parts: Array<string | false | null | undefined>): string;
1105
1175
 
1106
- export { Accordion, Account, type AccountProps, AccountSwitcher, ActionSheet, type ActionSheetAction, Alert, AlertDialog, type AlertDialogAction, type AlertProps, AppGrid, AppTile, AreaChart, AsyncImage, Audio, Auth, AuthCard, type AuthCardProps, Avatar, AvatarGroup, type AvatarProps, Axis, type AxisProps, BackButton, Badge, type BadgeProps, Banner, type BannerProps, Bars, type BarsProps, type BaruaAccent, BaruaProvider, type BaruaProviderProps, type BaruaTheme, Bento, type BlockProps, BottomNav, BottomNavItem, BottomSheet, Breadcrumbs, BulkActions, Button, ButtonGroup, type ButtonGroupProps, ButtonLink, type ButtonLinkProps, type ButtonProps, type ButtonSize, type ButtonVariant, Calendar, CalendarDay, type CalendarDayProps, CalendarGrid, CalendarHeader, CalendarMonth, CalendarView, CalendarViewCell, CalendarViewHead, CalendarWeekday, Callout, Card, CardBody, CardEyebrow, CardFooter, CardGrid, CardHeader, type CardProps, CardRail, CardSubtitle, CardTitle, Carousel, CarouselDots, CarouselSlide, CarouselTrack, Chapter, type ChapterProps, Chart, ChartTip, Checkbox, type CheckboxProps, Chip, type ChipProps, CircularProgress, type CircularProgressProps, CodeBlock, type CodeBlockProps, Columns, type ColumnsProps, Combobox, ComboboxEmpty, ComboboxList, ComboboxOption, type ComboboxOptionProps, CommandCenter, CommandCenterLabel, CommandCenterStatus, CommandCenterTile, CommandFooter, CommandGroupLabel, CommandInput, CommandItem, type CommandItemProps, CommandList, CommandPalette, type CommandPaletteProps, Container, type ContainerProps, type Crumb, Dashboard, DataGrid, DatePicker, DescriptionList, type DescriptionListProps, Disclosure, type DisclosureProps, Divider, type DividerProps, Dock, DockItem, DockTray, Donut, type DonutProps, type DonutSlice, DragHandle, Drawer, DrawerBody, DrawerHeader, type DrawerProps, Dropdown, type DropdownProps, Dropzone, type DropzoneProps, EmptyState, ErrorText, Event, type EventProps, Fab, type FabProps, FeatureRow, type FeatureRowProps, Feed, Field, type FieldProps, Fieldset, Figure, type FigureProps, FileBrowser, FileGrid, FileTile, type FileTileProps, FilterBar, FilterChip, type FilterChipProps, Footnote, Footnotes, Form, FormActions, FormRow, FormSection, type FormSectionProps, Gallery, Gantt, GanttBar, GanttRow, Gauge, type GaugeProps, GlassContainer, GlassInteractive, Grid, GridLines, type GridProps, GroupBox, Grow, HStack, Heatmap, Help, Hero, type HeroProps, HoverCard, HoverCardHost, Icon, type IconName, type IconProps, IconTile, type IconTileProps, ImageLens, ImageViewer, ImageViewerBar, Input, InputGroup, type InputGroupProps, type InputProps, Inspector, Kanban, KanbanColumn, type KanbanColumnProps, KanbanList, Kbd, Label, type LabelProps, Labeled, Landing, Legend, type LegendItem, type LegendProps, Lightbox, type LightboxProps, LineChart, LinearGauge, Link, LinkGroup, LiquidToggle, type LiquidToggleProps, List, ListFooter, ListHeader, ListItem, type ListItemProps, type ListProps, Log, MarketingNav, MarketingNavBrand, MarketingNavLinks, MediaPlaceholder, Menu, MenuBar, MenuBarItem, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, MenuSeparator, Modal, type ModalProps, type NavLinkProps, Notification, Onboarding, OnboardingFeature, type OnboardingFeatureProps, OnboardingHero, Optional, OtpInput, type OtpInputProps, Overline, Pagination, PaginationEllipsis, PaginationItem, type PaginationItemProps, type PaginationProps, PillNav, Popover, type PopoverProps, Progress, type ProgressProps, PromoBand, type PromoBandProps, Quote, type QuoteProps, RadarChart, Radio, Rail, RailItem, type RailProps, Range, type RangeProps, Resizable, ResizeHandle, Result, type ResultProps, SafeArea, ScatterChart, ScrollArea, type ScrollAreaProps, SearchField, SearchResult, type SearchResultProps, SearchResults, Section, Segmented, type SegmentedOption, Select, SelectionCount, Share, Sheet, Sidebar, SidebarGroup, SidebarHeading, SidebarItem, type SidebarItemProps, type SidebarProps, SiteFooter, SiteFooterGroup, SiteFooterGroups, SiteFooterHeading, SiteFooterLegal, Skeleton, SkipLink, Slider, SortControl, Spacer, Span, type SpanProps, Sparkline, type SparklineProps, SpecStrip, Spinner, Split, SplitButton, type SplitButtonProps, Stack, type StackProps, Stage, Stat, StatusBar, StatusBarItem, StatusDot, type Step, StepperInput, type StepperInputProps, Steps, type StepsProps, StoryCard, Swatch, Swatches, Switch, type SwitchProps, SysPage, type SysPageProps, type TabItem, TabPanel, Table, TableNum, type TableProps, TableSortHeader, TableWrap, Tabs, Tag, Task, TaskList, type TaskProps, TaskRow, Text, type TextProps, type TextRole, Textarea, ThemeScript, Thumb, type ThumbProps, Timeline, type TimelineEntry, type TimelineProps, Tip, type ToastOptions, ToastProvider, type ToastVariant, ToggleButton, type ToggleButtonProps, Toolbar, Tooltip, TopNav, TopNavBrand, TopNavLink, TopNavLinks, Tree, TreeItem, type TreeItemProps, Upload, UploadItem, type UploadItemProps, UploadPreview, UploadPreviews, VStack, Video, Wall, Waveform, Web, Workspace, WorkspaceMain, block, buttonClasses, cn, iconNames, useBaruaTheme, useToast };
1176
+ export { Accordion, Account, type AccountProps, AccountSwitcher, ActionSheet, type ActionSheetAction, Alert, AlertDialog, type AlertDialogAction, type AlertProps, AppGrid, AppTile, AreaChart, AsyncImage, type AsyncImageProps, Audio, Auth, AuthCard, type AuthCardProps, Avatar, AvatarGroup, type AvatarProps, Axis, type AxisProps, BackButton, Badge, type BadgeProps, Banner, type BannerProps, Bars, type BarsProps, type BaruaAccent, BaruaProvider, type BaruaProviderProps, type BaruaTheme, Bento, type BlockProps, BottomNav, BottomNavItem, BottomSheet, Breadcrumbs, BulkActions, Button, ButtonGroup, type ButtonGroupProps, ButtonLink, type ButtonLinkProps, type ButtonProps, type ButtonSize, type ButtonVariant, Calendar, CalendarDay, type CalendarDayProps, CalendarGrid, CalendarHeader, CalendarMonth, CalendarView, CalendarViewCell, CalendarViewHead, CalendarWeekday, Callout, Card, CardBody, CardEyebrow, CardFooter, CardGrid, CardHeader, type CardProps, CardRail, CardSubtitle, CardTitle, Carousel, CarouselDots, CarouselSlide, CarouselTrack, Chapter, type ChapterProps, Chart, ChartTip, Checkbox, type CheckboxProps, Chip, type ChipProps, CircularProgress, type CircularProgressProps, CodeBlock, type CodeBlockProps, Columns, type ColumnsProps, Combobox, ComboboxEmpty, ComboboxList, ComboboxOption, type ComboboxOptionProps, CommandCenter, CommandCenterLabel, CommandCenterStatus, CommandCenterTile, CommandFooter, CommandGroupLabel, CommandInput, CommandItem, type CommandItemProps, CommandList, CommandPalette, type CommandPaletteProps, Container, type ContainerProps, ContextMenuTarget, type ContextMenuTargetProps, CountUp, type CountUpProps, type Crumb, Dashboard, DataGrid, DatePicker, DescriptionList, type DescriptionListProps, Disclosure, type DisclosureProps, Divider, type DividerProps, Dock, DockItem, DockTray, Donut, type DonutProps, type DonutSlice, DragHandle, Drawer, DrawerBody, DrawerHeader, type DrawerProps, Dropdown, type DropdownProps, Dropzone, type DropzoneProps, EmptyState, ErrorText, Event, type EventProps, Fab, type FabProps, FeatureRow, type FeatureRowProps, Feed, Field, type FieldProps, Fieldset, Figure, type FigureProps, FileBrowser, FileGrid, FileTile, type FileTileProps, FilterBar, FilterChip, type FilterChipProps, FitText, type FitTextProps, Footnote, Footnotes, Form, FormActions, FormRow, FormSection, type FormSectionProps, Gallery, Gantt, GanttBar, GanttRow, Gauge, type GaugeProps, GlassContainer, GlassInteractive, Grid, GridLines, type GridProps, GroupBox, Grow, HStack, Heatmap, Help, Hero, type HeroProps, HoverCard, HoverCardHost, Icon, type IconName, type IconProps, IconTile, type IconTileProps, ImageLens, ImageViewer, ImageViewerBar, Input, InputGroup, type InputGroupProps, type InputProps, Inspector, Kanban, KanbanColumn, type KanbanColumnProps, KanbanList, Kbd, Label, type LabelProps, Labeled, Landing, Legend, type LegendItem, type LegendProps, Lightbox, type LightboxProps, LineChart, LinearGauge, Link, LinkGroup, LiquidToggle, type LiquidToggleProps, List, ListFooter, ListHeader, ListItem, type ListItemProps, type ListProps, Log, MarketingNav, MarketingNavBrand, MarketingNavLinks, MediaPlaceholder, Menu, MenuBar, MenuBarItem, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, MenuSeparator, Modal, type ModalProps, type NavLinkProps, Notification, Onboarding, OnboardingFeature, type OnboardingFeatureProps, OnboardingHero, Optional, OtpInput, type OtpInputProps, Overline, Pagination, PaginationEllipsis, PaginationItem, type PaginationItemProps, type PaginationProps, PillNav, Popover, type PopoverProps, Progress, type ProgressProps, PromoBand, type PromoBandProps, Quote, type QuoteProps, RadarChart, Radio, Rail, RailItem, type RailProps, Range, type RangeProps, Resizable, ResizeHandle, Result, type ResultProps, Reveal, type RevealProps, type RevealVariant, SafeArea, ScatterChart, ScrollArea, type ScrollAreaProps, SearchField, SearchResult, type SearchResultProps, SearchResults, Section, Segmented, type SegmentedOption, Select, SelectionCount, Share, Sheet, Sidebar, SidebarGroup, SidebarHeading, SidebarItem, type SidebarItemProps, type SidebarProps, SiteFooter, SiteFooterGroup, SiteFooterGroups, SiteFooterHeading, SiteFooterLegal, Skeleton, SkipLink, Slider, SortControl, Spacer, Span, type SpanProps, Sparkline, type SparklineProps, SpecStrip, Spinner, Split, SplitButton, type SplitButtonProps, Stack, type StackProps, Stage, Stat, StatusBar, StatusBarItem, StatusDot, type Step, StepperInput, type StepperInputProps, Steps, type StepsProps, StoryCard, Swatch, Swatches, Switch, type SwitchProps, SysPage, type SysPageProps, type TabItem, TabPanel, Table, TableNum, type TableProps, TableSortHeader, TableWrap, Tabs, Tag, Task, TaskList, type TaskProps, TaskRow, Text, type TextProps, type TextRole, Textarea, ThemeScript, Thumb, type ThumbProps, Timeline, type TimelineEntry, type TimelineProps, Tip, type ToastOptions, ToastProvider, type ToastVariant, ToggleButton, type ToggleButtonProps, Toolbar, Tooltip, TopNav, TopNavBrand, TopNavLink, TopNavLinks, Tree, TreeItem, type TreeItemProps, Upload, UploadItem, type UploadItemProps, UploadPreview, UploadPreviews, VStack, Video, Wall, Waveform, Web, Workspace, WorkspaceMain, block, buttonClasses, cn, iconNames, useBaruaTheme, useToast };
package/dist/index.js CHANGED
@@ -2101,10 +2101,35 @@ var OnboardingFeature = forwardRef15(
2101
2101
  );
2102
2102
 
2103
2103
  // src/media.tsx
2104
- import { forwardRef as forwardRef16 } from "react";
2104
+ import { forwardRef as forwardRef16, useState as useState2 } from "react";
2105
2105
  import { jsx as jsx20, jsxs as jsxs16 } from "react/jsx-runtime";
2106
2106
  var MediaPlaceholder = block("div", "b-media-placeholder", "MediaPlaceholder");
2107
- var AsyncImage = block("span", "b-async-img", "AsyncImage");
2107
+ var AsyncImage = forwardRef16(function AsyncImage2({ src, alt, placeholder, aspect, className, style, ...rest }, ref) {
2108
+ const [loaded, setLoaded] = useState2(false);
2109
+ return /* @__PURE__ */ jsx20(
2110
+ "span",
2111
+ {
2112
+ className: cn("b-async-img", loaded && "is-loaded", className),
2113
+ "data-placeholder": placeholder ? "" : void 0,
2114
+ style: {
2115
+ ...aspect ? { aspectRatio: aspect } : null,
2116
+ ...placeholder ? { ["--b-img-placeholder"]: `url("${placeholder}")` } : null,
2117
+ ...style
2118
+ },
2119
+ children: /* @__PURE__ */ jsx20(
2120
+ "img",
2121
+ {
2122
+ ref,
2123
+ src,
2124
+ alt,
2125
+ onLoad: () => setLoaded(true),
2126
+ onError: () => setLoaded(true),
2127
+ ...rest
2128
+ }
2129
+ )
2130
+ }
2131
+ );
2132
+ });
2108
2133
  var Web = block("div", "b-web", "Web");
2109
2134
  var Video = block("video", "b-video", "Video");
2110
2135
  var Audio = block("div", "b-audio", "Audio");
@@ -2179,6 +2204,90 @@ var CommandCenterTile = block("div", "b-cc__tile", "CommandCenterTile");
2179
2204
  var CommandCenterLabel = block("div", "b-cc__label", "CommandCenterLabel");
2180
2205
  var CommandCenterStatus = block("div", "b-cc__status", "CommandCenterStatus");
2181
2206
  var ImageLens = block("div", "b-lens", "ImageLens");
2207
+
2208
+ // src/motion.tsx
2209
+ import { forwardRef as forwardRef17, useEffect as useEffect4, useRef as useRef4 } from "react";
2210
+ import { jsx as jsx21, jsxs as jsxs17 } from "react/jsx-runtime";
2211
+ var Reveal = forwardRef17(function Reveal2({ as: Tag2 = "div", variant = "up", className, children, ...rest }, ref) {
2212
+ const Component = Tag2;
2213
+ return /* @__PURE__ */ jsx21(
2214
+ Component,
2215
+ {
2216
+ ref,
2217
+ className: cn("b-reveal", variant !== "up" && `b-reveal--${variant}`, className),
2218
+ ...rest,
2219
+ children
2220
+ }
2221
+ );
2222
+ });
2223
+ var FitText = forwardRef17(function FitText2({ min, max, scale, className, style, children, ...rest }, ref) {
2224
+ return /* @__PURE__ */ jsx21(
2225
+ "div",
2226
+ {
2227
+ ref,
2228
+ className: cn("b-fit-text", className),
2229
+ style: {
2230
+ ...min ? { ["--b-fit-min"]: min } : null,
2231
+ ...max ? { ["--b-fit-max"]: max } : null,
2232
+ ...scale ? { ["--b-fit-scale"]: scale } : null,
2233
+ ...style
2234
+ },
2235
+ ...rest,
2236
+ children
2237
+ }
2238
+ );
2239
+ });
2240
+ var CountUp = forwardRef17(function CountUp2({ to, decimals = 0, duration = 700, prefix = "", suffix = "", grouped = true, className, ...rest }, ref) {
2241
+ const node = useRef4(null);
2242
+ const from = useRef4(0);
2243
+ useEffect4(() => {
2244
+ const el = node.current;
2245
+ if (!el) return;
2246
+ const start = from.current;
2247
+ const target = to;
2248
+ from.current = to;
2249
+ const render = (value) => {
2250
+ const text = grouped ? value.toLocaleString(void 0, { minimumFractionDigits: decimals, maximumFractionDigits: decimals }) : value.toFixed(decimals);
2251
+ el.textContent = `${prefix}${text}${suffix}`;
2252
+ };
2253
+ if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
2254
+ render(target);
2255
+ return;
2256
+ }
2257
+ let frame = 0;
2258
+ const began = performance.now();
2259
+ const step = (now) => {
2260
+ const p = Math.min(1, (now - began) / duration);
2261
+ render(start + (target - start) * (1 - Math.pow(1 - p, 3)));
2262
+ if (p < 1) frame = requestAnimationFrame(step);
2263
+ };
2264
+ frame = requestAnimationFrame(step);
2265
+ return () => cancelAnimationFrame(frame);
2266
+ }, [to, decimals, duration, prefix, suffix, grouped]);
2267
+ return /* @__PURE__ */ jsxs17(
2268
+ "span",
2269
+ {
2270
+ ref: (el) => {
2271
+ node.current = el;
2272
+ if (typeof ref === "function") ref(el);
2273
+ else if (ref) ref.current = el;
2274
+ },
2275
+ className: cn("b-tabular-nums", className),
2276
+ ...rest,
2277
+ children: [
2278
+ prefix,
2279
+ 0 .toFixed(decimals),
2280
+ suffix
2281
+ ]
2282
+ }
2283
+ );
2284
+ });
2285
+ var ContextMenuTarget = forwardRef17(
2286
+ function ContextMenuTarget2({ as: Tag2 = "div", menu, children, ...rest }, ref) {
2287
+ const Component = Tag2;
2288
+ return /* @__PURE__ */ jsx21(Component, { ref, "data-b-contextmenu": menu, ...rest, children });
2289
+ }
2290
+ );
2182
2291
  export {
2183
2292
  Accordion,
2184
2293
  Account,
@@ -2256,6 +2365,8 @@ export {
2256
2365
  CommandList,
2257
2366
  CommandPalette,
2258
2367
  Container,
2368
+ ContextMenuTarget,
2369
+ CountUp,
2259
2370
  Dashboard,
2260
2371
  DataGrid,
2261
2372
  DatePicker,
@@ -2286,6 +2397,7 @@ export {
2286
2397
  FileTile,
2287
2398
  FilterBar,
2288
2399
  FilterChip,
2400
+ FitText,
2289
2401
  Footnote,
2290
2402
  Footnotes,
2291
2403
  Form,
@@ -2370,6 +2482,7 @@ export {
2370
2482
  Resizable,
2371
2483
  ResizeHandle,
2372
2484
  Result,
2485
+ Reveal,
2373
2486
  SafeArea,
2374
2487
  ScatterChart,
2375
2488
  ScrollArea,