bruv-ui 0.2.0 → 0.3.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.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { ClassValue } from 'clsx';
2
- import * as react_jsx_runtime from 'react/jsx-runtime';
3
2
  import * as react from 'react';
4
- import react__default, { ReactNode, ComponentType, ComponentProps, ComponentPropsWithoutRef, forwardRef, ReactElement, MouseEvent, CSSProperties } from 'react';
3
+ import react__default, { ComponentPropsWithoutRef, ReactNode, ComponentProps, ComponentType, forwardRef, ReactElement, MouseEvent, CSSProperties } from 'react';
4
+ import * as react_jsx_runtime from 'react/jsx-runtime';
5
+ import { Collapsible as Collapsible$1 } from '@base-ui/react/collapsible';
5
6
  import { Button as Button$1 } from '@base-ui/react/button';
6
7
  import { Switch } from '@base-ui/react/switch';
7
8
  import { Checkbox as Checkbox$1 } from '@base-ui/react/checkbox';
@@ -34,6 +35,39 @@ import '@base-ui/react/field';
34
35
 
35
36
  declare function cn(...inputs: ClassValue[]): string;
36
37
 
38
+ declare const fieldSizeStyles: {
39
+ readonly sm: "px-2.5 py-1 text-bruv-sm min-h-7";
40
+ readonly md: "px-3 py-1.5 text-bruv-base min-h-8";
41
+ };
42
+ type InputSize = keyof typeof fieldSizeStyles;
43
+ interface InputProps extends Omit<ComponentPropsWithoutRef<"input">, "size"> {
44
+ size?: InputSize;
45
+ iconLeft?: ReactNode;
46
+ iconRight?: ReactNode;
47
+ wrapperClassName?: string;
48
+ }
49
+ declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
50
+ interface TextareaProps extends Omit<ComponentPropsWithoutRef<"textarea">, "size"> {
51
+ size?: InputSize;
52
+ }
53
+ declare const Textarea: react.ForwardRefExoticComponent<TextareaProps & react.RefAttributes<HTMLTextAreaElement>>;
54
+ interface LabelProps extends ComponentPropsWithoutRef<"label"> {
55
+ }
56
+ declare const Label: react.ForwardRefExoticComponent<LabelProps & react.RefAttributes<HTMLLabelElement>>;
57
+
58
+ interface CollapsibleRootProps extends ComponentProps<typeof Collapsible$1.Root> {
59
+ }
60
+ declare function CollapsibleRoot({ className, ...props }: CollapsibleRootProps): react_jsx_runtime.JSX.Element;
61
+ interface CollapsibleTriggerProps extends ComponentProps<typeof Collapsible$1.Trigger> {
62
+ }
63
+ interface CollapsiblePanelProps extends ComponentProps<typeof Collapsible$1.Panel> {
64
+ }
65
+ declare const Collapsible: {
66
+ Root: typeof CollapsibleRoot;
67
+ Trigger: react.ForwardRefExoticComponent<Omit<CollapsibleTriggerProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
68
+ Panel: react.ForwardRefExoticComponent<Omit<CollapsiblePanelProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
69
+ };
70
+
37
71
  type LinkComponent$1 = ComponentType<{
38
72
  to?: string;
39
73
  href?: string;
@@ -2878,4 +2912,4 @@ interface DirtyState<T extends object> {
2878
2912
  */
2879
2913
  declare function useDirtyState<T extends object>(initial: T): DirtyState<T>;
2880
2914
 
2881
- export { Accordion, type AccordionContentProps, type AccordionItemProps, type AccordionRootProps, type AccordionTriggerProps, ActionBar, type ActionBarPosition, type ActionBarProps, Alert, AlertDialog, type AlertDialogActionsProps, type AlertDialogBackdropProps, type AlertDialogCloseProps, type AlertDialogContentProps, type AlertDialogDescriptionProps, type AlertDialogPanelProps, type AlertDialogRootProps, type AlertDialogTitleProps, type AlertDialogTriggerProps, type AlertLayout, type AlertProps, type AlertVariant, AppHeader, type AppHeaderActionsProps, type AppHeaderBreadcrumbProps, type AppHeaderProps, Avatar, type AvatarProps, type AvatarSize, type AvatarVariant, Badge, type BadgeProps, type BadgeSize, type BadgeVariant, Breadcrumb, type BreadcrumbItem, type BreadcrumbOption, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonSize, type ButtonVariant, Calendar, type CalendarMode, type CalendarProps, type CalendarRangeValue, Card$1 as Card, type CardBodyProps, type CardContentProps, type CardHeaderProps, type CardProps, type CardSectionProps, Checkbox, type CheckboxProps, ColorPicker, type ColorPickerOption, type ColorPickerProps, type ColorPickerSize, Combobox, ComboboxButton, type ComboboxButtonProps, ComboboxContent, type ComboboxContentProps, ComboboxGroup, ComboboxGroupLabel, type ComboboxGroupLabelProps, type ComboboxGroupProps, type ComboboxItem, ComboboxOption, type ComboboxOptionProps, type ComboboxProps, ComboboxSeparator, type ComboboxSeparatorProps, ComboboxTrigger, type ComboboxTriggerProps, Command, type CommandDialogProps, type CommandEmptyProps, type CommandGroupProps, type CommandInputProps, type CommandItemProps, type CommandListProps, type CommandRootProps, type CommandSeparatorProps, ContextMenu, type ContextMenuContentProps, type ContextMenuItemProps, type ContextMenuLabelProps, type ContextMenuRootProps, type ContextMenuSeparatorProps, type ContextMenuTriggerProps, DataTable, DataTableActionCell, type DataTableActionCellProps, DataTableBulkBar, type DataTableBulkBarProps, DataTableColumnsButton, type DataTableColumnsButtonProps, type DataTableProps, DataTableSearch, type DataTableSearchProps, DataTableToolbar, type DataTableToolbarProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, type DateRangePickerValue, Dialog, type DialogBackdropProps, type DialogBodyProps, type DialogCloseProps, type DialogContentProps, type DialogFooterProps, type DialogPanelProps, type DialogRootProps, type DialogSize, type DialogTitleProps, type DialogTriggerProps, type DirtyState, Drawer, type DrawerBackdropProps, type DrawerBodyProps, type DrawerCloseProps, type DrawerContentProps, type DrawerDescriptionProps, type DrawerFooterProps, type DrawerHeaderProps, type DrawerRootProps, type DrawerTitleProps, type DrawerTriggerProps, DropdownMenu, type DropdownMenuContentProps, type DropdownMenuGroupProps, type DropdownMenuItemProps, type DropdownMenuLabelProps, type DropdownMenuRootProps, type DropdownMenuSeparatorProps, type DropdownMenuTriggerProps, EmptyState, type EmptyStateProps, type ExternalToastOptions, Fab, type FabAnchor, type FabPosition, type FabProps, type FabSize, type FabVariant, Filter, type FilterDateProps, type FilterDateRangePreset, type FilterDateRangeProps, type FilterDateRangeValue, type FilterMultiSelectProps, type FilterNumericRangeProps, type FilterNumericRangeValue, type FilterOption, type FilterSingleSelectProps, type FilterSliderProps, type FilterSliderValue, type FilterTextProps, type FilterToggleProps, FlickeringGrid, type FlickeringGridProps, Hover, HoverGroup, type HoverGroupProps, type HoverProps, Kbd, type KbdProps, NavLink, type NavLinkProps, type NavLinkSize, NavLinks, type NavLinksProps, NumberInput, type NumberInputProps, type NumberInputSize, OTP, type OTPProps, PageLayout, type PageLayoutBodyProps, type PageLayoutHeaderProps, type PageLayoutProps, Pagination, type PaginationProps, type PaginationSize, PixelSpinner, type PixelSpinnerProps, type PixelSpinnerVariant, Popover, type PopoverArrowProps, type PopoverCloseProps, type PopoverContentProps, type PopoverDescriptionProps, type PopoverRootProps, type PopoverTitleProps, type PopoverTriggerProps, Progress, ProgressCircular, type ProgressCircularProps, type ProgressProps, type PromiseData, RadioGroup, type RadioGroupItemProps, type RadioGroupItemSize, type RadioGroupRootProps, Resizable, ResizableHandle, type ResizableHandleProps, ResizablePanel, type ResizablePanelProps, type ResizableProps, SaveBar, type SaveBarProps, ScrollArea, type ScrollAreaProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SegmentedControlSize, Select, SelectButton, type SelectButtonProps, SelectContent, type SelectContentProps, SelectGroup, SelectGroupLabel, type SelectGroupLabelProps, type SelectGroupProps, type SelectItem, SelectOption, type SelectOptionProps, type SelectProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, Separator, type SeparatorProps, SettingsCard, type SettingsCardProps, SettingsPage, type SettingsPageMaxWidth, type SettingsPageProps, SettingsRow, type SettingsRowActionProps, type SettingsRowContentProps, type SettingsRowControlProps, type SettingsRowDescriptionProps, type SettingsRowHeaderProps, type SettingsRowLabelProps, type SettingsRowRootProps, Sidebar, type SidebarBackLinkProps, type SidebarCollapseButtonProps, type SidebarGroupProps, type SidebarHeaderProps, type SidebarLabelProps, type SidebarLayersProps, type SidebarLinkComponent, type SidebarLinkProps, type SidebarProviderProps, type SidebarRootProps, type SidebarSectionProps, Skeleton, type SkeletonProps, Slider, type SliderProps, Spinner, type SpinnerProps, StatusDot, type StatusDotProps, type StatusDotSize, type StatusDotVariant, Stepper, type StepperProps, type StepperStep, Table, type TableBodyProps, type TableCellProps, type TableHeaderCellProps, type TableHeaderProps, type TableProps, type TableRowProps, Tabs, type TabsListProps, type TabsPanelProps, type TabsRootProps, type TabsTabProps, type TabsTabSize, TagsInput, type TagsInputProps, type ThemeMode, TimePicker, type TimePickerProps, Toast, type ToastData, type ToastPosition, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, type ToggleButtonSize, type ToggleProps, Toolbar, ToolbarButton, type ToolbarButtonProps, type ToolbarProps, ToolbarSeparator, type ToolbarSeparatorProps, Tooltip, type TooltipContentProps, type TooltipProviderProps, type TooltipRootProps, type TooltipTriggerProps, type TooltipViewportProps, TreeView, type TreeViewItem, type TreeViewProps, UserMenu, type UserMenuItem, type UserMenuProps, type UserMenuUser, cn, createTooltipHandle, dateRangePresets, formatIsoDate, parseLocalDate, toast, useDirtyState, useIsMac, useSidebar };
2915
+ export { Accordion, type AccordionContentProps, type AccordionItemProps, type AccordionRootProps, type AccordionTriggerProps, ActionBar, type ActionBarPosition, type ActionBarProps, Alert, AlertDialog, type AlertDialogActionsProps, type AlertDialogBackdropProps, type AlertDialogCloseProps, type AlertDialogContentProps, type AlertDialogDescriptionProps, type AlertDialogPanelProps, type AlertDialogRootProps, type AlertDialogTitleProps, type AlertDialogTriggerProps, type AlertLayout, type AlertProps, type AlertVariant, AppHeader, type AppHeaderActionsProps, type AppHeaderBreadcrumbProps, type AppHeaderProps, Avatar, type AvatarProps, type AvatarSize, type AvatarVariant, Badge, type BadgeProps, type BadgeSize, type BadgeVariant, Breadcrumb, type BreadcrumbItem, type BreadcrumbOption, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonSize, type ButtonVariant, Calendar, type CalendarMode, type CalendarProps, type CalendarRangeValue, Card$1 as Card, type CardBodyProps, type CardContentProps, type CardHeaderProps, type CardProps, type CardSectionProps, Checkbox, type CheckboxProps, Collapsible, type CollapsiblePanelProps, type CollapsibleRootProps, type CollapsibleTriggerProps, ColorPicker, type ColorPickerOption, type ColorPickerProps, type ColorPickerSize, Combobox, ComboboxButton, type ComboboxButtonProps, ComboboxContent, type ComboboxContentProps, ComboboxGroup, ComboboxGroupLabel, type ComboboxGroupLabelProps, type ComboboxGroupProps, type ComboboxItem, ComboboxOption, type ComboboxOptionProps, type ComboboxProps, ComboboxSeparator, type ComboboxSeparatorProps, ComboboxTrigger, type ComboboxTriggerProps, Command, type CommandDialogProps, type CommandEmptyProps, type CommandGroupProps, type CommandInputProps, type CommandItemProps, type CommandListProps, type CommandRootProps, type CommandSeparatorProps, ContextMenu, type ContextMenuContentProps, type ContextMenuItemProps, type ContextMenuLabelProps, type ContextMenuRootProps, type ContextMenuSeparatorProps, type ContextMenuTriggerProps, DataTable, DataTableActionCell, type DataTableActionCellProps, DataTableBulkBar, type DataTableBulkBarProps, DataTableColumnsButton, type DataTableColumnsButtonProps, type DataTableProps, DataTableSearch, type DataTableSearchProps, DataTableToolbar, type DataTableToolbarProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, type DateRangePickerValue, Dialog, type DialogBackdropProps, type DialogBodyProps, type DialogCloseProps, type DialogContentProps, type DialogFooterProps, type DialogPanelProps, type DialogRootProps, type DialogSize, type DialogTitleProps, type DialogTriggerProps, type DirtyState, Drawer, type DrawerBackdropProps, type DrawerBodyProps, type DrawerCloseProps, type DrawerContentProps, type DrawerDescriptionProps, type DrawerFooterProps, type DrawerHeaderProps, type DrawerRootProps, type DrawerTitleProps, type DrawerTriggerProps, DropdownMenu, type DropdownMenuContentProps, type DropdownMenuGroupProps, type DropdownMenuItemProps, type DropdownMenuLabelProps, type DropdownMenuRootProps, type DropdownMenuSeparatorProps, type DropdownMenuTriggerProps, EmptyState, type EmptyStateProps, type ExternalToastOptions, Fab, type FabAnchor, type FabPosition, type FabProps, type FabSize, type FabVariant, Filter, type FilterDateProps, type FilterDateRangePreset, type FilterDateRangeProps, type FilterDateRangeValue, type FilterMultiSelectProps, type FilterNumericRangeProps, type FilterNumericRangeValue, type FilterOption, type FilterSingleSelectProps, type FilterSliderProps, type FilterSliderValue, type FilterTextProps, type FilterToggleProps, FlickeringGrid, type FlickeringGridProps, Hover, HoverGroup, type HoverGroupProps, type HoverProps, Input, type InputProps, type InputSize, Kbd, type KbdProps, Label, type LabelProps, NavLink, type NavLinkProps, type NavLinkSize, NavLinks, type NavLinksProps, NumberInput, type NumberInputProps, type NumberInputSize, OTP, type OTPProps, PageLayout, type PageLayoutBodyProps, type PageLayoutHeaderProps, type PageLayoutProps, Pagination, type PaginationProps, type PaginationSize, PixelSpinner, type PixelSpinnerProps, type PixelSpinnerVariant, Popover, type PopoverArrowProps, type PopoverCloseProps, type PopoverContentProps, type PopoverDescriptionProps, type PopoverRootProps, type PopoverTitleProps, type PopoverTriggerProps, Progress, ProgressCircular, type ProgressCircularProps, type ProgressProps, type PromiseData, RadioGroup, type RadioGroupItemProps, type RadioGroupItemSize, type RadioGroupRootProps, Resizable, ResizableHandle, type ResizableHandleProps, ResizablePanel, type ResizablePanelProps, type ResizableProps, SaveBar, type SaveBarProps, ScrollArea, type ScrollAreaProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SegmentedControlSize, Select, SelectButton, type SelectButtonProps, SelectContent, type SelectContentProps, SelectGroup, SelectGroupLabel, type SelectGroupLabelProps, type SelectGroupProps, type SelectItem, SelectOption, type SelectOptionProps, type SelectProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, Separator, type SeparatorProps, SettingsCard, type SettingsCardProps, SettingsPage, type SettingsPageMaxWidth, type SettingsPageProps, SettingsRow, type SettingsRowActionProps, type SettingsRowContentProps, type SettingsRowControlProps, type SettingsRowDescriptionProps, type SettingsRowHeaderProps, type SettingsRowLabelProps, type SettingsRowRootProps, Sidebar, type SidebarBackLinkProps, type SidebarCollapseButtonProps, type SidebarGroupProps, type SidebarHeaderProps, type SidebarLabelProps, type SidebarLayersProps, type SidebarLinkComponent, type SidebarLinkProps, type SidebarProviderProps, type SidebarRootProps, type SidebarSectionProps, Skeleton, type SkeletonProps, Slider, type SliderProps, Spinner, type SpinnerProps, StatusDot, type StatusDotProps, type StatusDotSize, type StatusDotVariant, Stepper, type StepperProps, type StepperStep, Table, type TableBodyProps, type TableCellProps, type TableHeaderCellProps, type TableHeaderProps, type TableProps, type TableRowProps, Tabs, type TabsListProps, type TabsPanelProps, type TabsRootProps, type TabsTabProps, type TabsTabSize, TagsInput, type TagsInputProps, Textarea, type TextareaProps, type ThemeMode, TimePicker, type TimePickerProps, Toast, type ToastData, type ToastPosition, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, type ToggleButtonSize, type ToggleProps, Toolbar, ToolbarButton, type ToolbarButtonProps, type ToolbarProps, ToolbarSeparator, type ToolbarSeparatorProps, Tooltip, type TooltipContentProps, type TooltipProviderProps, type TooltipRootProps, type TooltipTriggerProps, type TooltipViewportProps, TreeView, type TreeViewItem, type TreeViewProps, UserMenu, type UserMenuItem, type UserMenuProps, type UserMenuUser, cn, createTooltipHandle, dateRangePresets, formatIsoDate, parseLocalDate, toast, useDirtyState, useIsMac, useSidebar };