silva-ui 1.3.0 → 2.0.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.
Files changed (59) hide show
  1. package/README.md +133 -30
  2. package/dist/library/silva-ui.css +1 -1
  3. package/dist/library/silva-ui.js +993 -23305
  4. package/dist/types/core/Theme.d.ts +28 -6
  5. package/dist/types/core/colors/index.d.ts +16 -8
  6. package/dist/types/core/compound.d.ts +6 -0
  7. package/dist/types/core/dynamic-colors.css.d.ts +6 -0
  8. package/dist/types/core/gradient.d.ts +1 -1
  9. package/dist/types/core/sprinkles.css.d.ts +17 -407
  10. package/dist/types/core/theme/index.css.d.ts +4 -398
  11. package/dist/types/core/theme.css.d.ts +3 -3
  12. package/dist/types/core/themes/index.d.ts +228 -6
  13. package/dist/types/core/types.d.ts +11 -6
  14. package/dist/types/core/utils.d.ts +2 -1
  15. package/dist/types/core/visuals.css.d.ts +2 -2
  16. package/dist/types/display/Avatar.d.ts +1 -1
  17. package/dist/types/display/Card.d.ts +1 -1
  18. package/dist/types/display/Image.d.ts +2 -2
  19. package/dist/types/display/ListItem.d.ts +1 -1
  20. package/dist/types/display/Loader.d.ts +1 -1
  21. package/dist/types/display/Spinner.d.ts +1 -1
  22. package/dist/types/forms/Button.d.ts +1 -1
  23. package/dist/types/forms/Checkbox.d.ts +1 -1
  24. package/dist/types/forms/Field.d.ts +1 -1
  25. package/dist/types/forms/Form.d.ts +1 -1
  26. package/dist/types/forms/Input.d.ts +1 -1
  27. package/dist/types/forms/Label.d.ts +1 -1
  28. package/dist/types/forms/Progress.d.ts +1 -1
  29. package/dist/types/forms/RadioGroup.d.ts +1 -1
  30. package/dist/types/forms/Select.d.ts +9 -2
  31. package/dist/types/forms/Slider.d.ts +1 -1
  32. package/dist/types/forms/Switch.d.ts +1 -1
  33. package/dist/types/forms/TextArea.d.ts +1 -1
  34. package/dist/types/forms/ToggleGroup.d.ts +1 -1
  35. package/dist/types/index.d.ts +99 -99
  36. package/dist/types/layout/Box.d.ts +2 -2
  37. package/dist/types/layout/Separator.d.ts +1 -1
  38. package/dist/types/layout/XGroup.d.ts +1 -1
  39. package/dist/types/layout/XStack.d.ts +1 -1
  40. package/dist/types/layout/YStack.d.ts +1 -1
  41. package/dist/types/overlays/Accordion.d.ts +1 -1
  42. package/dist/types/overlays/AlertDialog.d.ts +3 -2
  43. package/dist/types/overlays/ContextMenu.d.ts +1 -1
  44. package/dist/types/overlays/Dialog.d.ts +3 -2
  45. package/dist/types/overlays/Menu.d.ts +1 -1
  46. package/dist/types/overlays/Popover.d.ts +1 -1
  47. package/dist/types/overlays/Sheet.d.ts +3 -2
  48. package/dist/types/overlays/Tabs.d.ts +1 -1
  49. package/dist/types/overlays/Toast.d.ts +1 -1
  50. package/dist/types/overlays/Tooltip.d.ts +1 -1
  51. package/dist/types/typography/Anchor.d.ts +1 -1
  52. package/dist/types/typography/Heading.d.ts +1 -1
  53. package/dist/types/typography/Headings.d.ts +1 -1
  54. package/dist/types/typography/Paragraph.d.ts +1 -1
  55. package/dist/types/typography/SizableText.d.ts +2 -2
  56. package/dist/types/typography/Text.d.ts +1 -1
  57. package/package.json +81 -69
  58. package/dist/library/previews/index.html +0 -51
  59. package/dist/types/core/colors/radix.d.ts +0 -1396
@@ -4,14 +4,18 @@
4
4
  * We keep JSX/framework types minimal and use `children?: any`
5
5
  * so the library works with Hono JSX, Preact, or plain string rendering.
6
6
  */
7
- import type { ProjectionSprinkles, Sprinkles } from './sprinkles.css';
8
- import type { AnimationName } from './visuals.css';
9
- import type { GradientName } from './gradients';
7
+ import type { ProjectionSprinkles, Sprinkles } from "./sprinkles.css.js";
8
+ import type { AnimationName } from "./visuals.css.js";
9
+ import type { GradientName } from "./gradients.js";
10
+ import type { ColorTokenName } from "./colors/index.js";
11
+ type NamedColorValue = ColorTokenName | Partial<Record<'default' | 'hover' | 'active' | 'focus', ColorTokenName | keyof typeof import("./theme.css.js").themeColors>>;
10
12
  /** Props common to every silva-ui primitive. */
11
- export type BaseProps = Omit<ProjectionSprinkles, 'backgroundColor' | 'color'> & {
13
+ export type BaseProps = Omit<ProjectionSprinkles, 'backgroundColor' | 'color' | 'borderColor' | 'bg'> & {
12
14
  /** Named gradients work with `backgroundColor` and `color` in addition to theme color tokens. */
13
- backgroundColor?: Sprinkles['backgroundColor'] | GradientName;
14
- color?: Sprinkles['color'] | GradientName;
15
+ backgroundColor?: Sprinkles['backgroundColor'] | GradientName | NamedColorValue;
16
+ bg?: Sprinkles['bg'] | NamedColorValue;
17
+ borderColor?: Sprinkles['borderColor'] | NamedColorValue;
18
+ color?: Sprinkles['color'] | GradientName | NamedColorValue;
15
19
  /** A library-provided enter or attention animation. */
16
20
  animation?: AnimationName;
17
21
  /** Extra class name(s) to merge after the generated sprinkles class. */
@@ -21,3 +25,4 @@ export type BaseProps = Omit<ProjectionSprinkles, 'backgroundColor' | 'color'> &
21
25
  };
22
26
  /** Standard component size scale. */
23
27
  export type ComponentSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
28
+ export {};
@@ -1,4 +1,4 @@
1
- import { type Sprinkles } from './sprinkles.css';
1
+ import { type Sprinkles } from "./sprinkles.css.js";
2
2
  /**
3
3
  * Split a props object into sprinkles props and the remaining "rest" props.
4
4
  *
@@ -10,6 +10,7 @@ import { type Sprinkles } from './sprinkles.css';
10
10
  export declare function splitSprinklesProps<T extends Record<string, unknown>>(props: T): {
11
11
  sprinklesProps: Sprinkles;
12
12
  rest: Omit<T, keyof Sprinkles>;
13
+ dynamicColorStyle: Record<string, string>;
13
14
  };
14
15
  /** Merge a sprinkles class + optional extra classes into a single string. */
15
16
  export declare function cls(...classes: (string | undefined | false | null)[]): string;
@@ -1,5 +1,5 @@
1
- export { gradients } from './gradients';
2
- export type { GradientName } from './gradients';
1
+ export { gradients } from "./gradients.js";
2
+ export type { GradientName } from "./gradients.js";
3
3
  export declare const gradientBackground: Record<"aurora" | "forest" | "midnight" | "ocean" | "sunrise", string>;
4
4
  export declare const gradientText: Record<"aurora" | "forest" | "midnight" | "ocean" | "sunrise", string>;
5
5
  export declare const animations: {
@@ -1,4 +1,4 @@
1
- import type { BaseProps, ComponentSize } from '../core/types';
1
+ import type { BaseProps, ComponentSize } from "../core/types.js";
2
2
  export interface AvatarProps extends BaseProps {
3
3
  size?: ComponentSize;
4
4
  [key: string]: any;
@@ -1,4 +1,4 @@
1
- import type { BaseProps } from '../core/types';
1
+ import type { BaseProps } from "../core/types.js";
2
2
  export interface CardProps extends BaseProps {
3
3
  bordered?: boolean;
4
4
  elevated?: boolean;
@@ -1,4 +1,4 @@
1
- import type { BaseProps } from '../core/types';
1
+ import type { BaseProps } from "../core/types.js";
2
2
  export interface ImageProps extends BaseProps {
3
3
  src: string;
4
4
  alt?: string;
@@ -7,4 +7,4 @@ export interface ImageProps extends BaseProps {
7
7
  loading?: 'lazy' | 'eager';
8
8
  [key: string]: any;
9
9
  }
10
- export declare function Image({ src, alt, loading, class: extraClass, ...rest }: ImageProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
10
+ export declare function Image({ src, alt, width, height, loading, class: extraClass, ...rest }: ImageProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import type { BaseProps, ComponentSize } from '../core/types';
1
+ import type { BaseProps, ComponentSize } from "../core/types.js";
2
2
  export interface ListItemProps extends BaseProps {
3
3
  title?: any;
4
4
  subTitle?: any;
@@ -1,4 +1,4 @@
1
- import type { BaseProps, ComponentSize } from '../core/types';
1
+ import type { BaseProps, ComponentSize } from "../core/types.js";
2
2
  export interface LoaderProps extends BaseProps {
3
3
  size?: ComponentSize;
4
4
  label?: string;
@@ -1,4 +1,4 @@
1
- import type { BaseProps, ComponentSize } from '../core/types';
1
+ import type { BaseProps, ComponentSize } from "../core/types.js";
2
2
  export interface SpinnerProps extends BaseProps {
3
3
  size?: ComponentSize;
4
4
  label?: string;
@@ -1,4 +1,4 @@
1
- import type { BaseProps, ComponentSize } from '../core/types';
1
+ import type { BaseProps, ComponentSize } from "../core/types.js";
2
2
  export interface ButtonProps extends BaseProps {
3
3
  size?: ComponentSize;
4
4
  variant?: 'solid' | 'outline' | 'ghost' | 'link';
@@ -1,4 +1,4 @@
1
- import type { BaseProps, ComponentSize } from '../core/types';
1
+ import type { BaseProps, ComponentSize } from "../core/types.js";
2
2
  export interface CheckboxProps extends BaseProps {
3
3
  checked?: boolean;
4
4
  defaultChecked?: boolean;
@@ -1,4 +1,4 @@
1
- import type { BaseProps } from '../core/types';
1
+ import type { BaseProps } from "../core/types.js";
2
2
  export interface FieldProps extends BaseProps {
3
3
  error?: string;
4
4
  helperText?: string;
@@ -1,4 +1,4 @@
1
- import type { BaseProps } from '../core/types';
1
+ import type { BaseProps } from "../core/types.js";
2
2
  export interface FormProps extends BaseProps {
3
3
  action?: string;
4
4
  method?: string;
@@ -1,4 +1,4 @@
1
- import type { BaseProps, ComponentSize } from '../core/types';
1
+ import type { BaseProps, ComponentSize } from "../core/types.js";
2
2
  export interface InputProps extends BaseProps {
3
3
  size?: 'sm' | 'md' | 'lg' | ComponentSize;
4
4
  type?: string;
@@ -1,4 +1,4 @@
1
- import type { BaseProps, ComponentSize } from '../core/types';
1
+ import type { BaseProps, ComponentSize } from "../core/types.js";
2
2
  export interface LabelProps extends BaseProps {
3
3
  htmlFor?: string;
4
4
  size?: 'sm' | 'md' | 'lg' | ComponentSize;
@@ -1,4 +1,4 @@
1
- import type { BaseProps, ComponentSize } from '../core/types';
1
+ import type { BaseProps, ComponentSize } from "../core/types.js";
2
2
  export interface ProgressProps extends BaseProps {
3
3
  value?: number;
4
4
  max?: number;
@@ -1,4 +1,4 @@
1
- import type { BaseProps, ComponentSize } from '../core/types';
1
+ import type { BaseProps, ComponentSize } from "../core/types.js";
2
2
  export interface RadioGroupProps extends BaseProps {
3
3
  name?: string;
4
4
  value?: string;
@@ -1,4 +1,4 @@
1
- import type { BaseProps, ComponentSize } from '../core/types';
1
+ import type { BaseProps, ComponentSize } from "../core/types.js";
2
2
  export interface SelectProps extends BaseProps {
3
3
  size?: 'sm' | 'md' | 'lg' | ComponentSize;
4
4
  disabled?: boolean;
@@ -7,6 +7,13 @@ export interface SelectProps extends BaseProps {
7
7
  defaultValue?: string | number;
8
8
  id?: string;
9
9
  onChange?: (e: Event) => void;
10
+ /** Options rendered by the internal native select and custom listbox. */
11
+ options?: readonly SelectOption[];
10
12
  [key: string]: any;
11
13
  }
12
- export declare function Select({ size, disabled, class: extraClass, children, value, defaultValue, onChange, name, id, ...rest }: SelectProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
14
+ export type SelectOption = {
15
+ value: string;
16
+ label: string;
17
+ disabled?: boolean;
18
+ };
19
+ export declare function Select({ size, disabled, class: extraClass, children, value, defaultValue, onChange, name, id, options: providedOptions, ...rest }: SelectProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import type { BaseProps, ComponentSize } from '../core/types';
1
+ import type { BaseProps, ComponentSize } from "../core/types.js";
2
2
  export interface SliderProps extends BaseProps {
3
3
  min?: number;
4
4
  max?: number;
@@ -1,4 +1,4 @@
1
- import type { BaseProps, ComponentSize } from '../core/types';
1
+ import type { BaseProps, ComponentSize } from "../core/types.js";
2
2
  export interface SwitchProps extends BaseProps {
3
3
  checked?: boolean;
4
4
  defaultChecked?: boolean;
@@ -1,4 +1,4 @@
1
- import type { BaseProps, ComponentSize } from '../core/types';
1
+ import type { BaseProps, ComponentSize } from "../core/types.js";
2
2
  export interface TextAreaProps extends BaseProps {
3
3
  size?: 'sm' | 'md' | 'lg' | ComponentSize;
4
4
  placeholder?: string;
@@ -1,4 +1,4 @@
1
- import type { BaseProps } from '../core/types';
1
+ import type { BaseProps } from "../core/types.js";
2
2
  export interface ToggleGroupProps extends BaseProps {
3
3
  type?: 'single' | 'multiple';
4
4
  [key: string]: any;
@@ -1,99 +1,99 @@
1
- export { sprinkles, tokens } from './core/sprinkles.css';
2
- export type { ProjectionProperty, ProjectionSprinkles, Sprinkles } from './core/sprinkles.css';
3
- export { isProjectionToken, projectionTokenToCss } from './core/projection';
4
- export type { ProjectionToken } from './core/projection';
5
- export { cls, splitSprinklesProps, toSprinklesClass } from './core/utils';
6
- export { gradientToCss } from './core/gradient';
7
- export type { Gradient, GradientColor } from './core/gradient';
8
- export type { BaseProps, ComponentSize } from './core/types';
9
- export { gradients, animations } from './core/visuals.css';
10
- export type { GradientName, AnimationName } from './core/visuals.css';
11
- export { colorScales, darkColorScales, colorTokens, darkColorTokens } from './core/colors';
12
- export type { ColorTokenName } from './core/colors';
13
- export { themeColors, lightTheme, darkTheme, emeraldTheme, emeraldDarkTheme, midnightTheme, themes, lightColors, darkColors, emeraldColors, emeraldDarkColors, midnightColors, themeDefinitions, TAMAGUI_EMERALD_PREVIEW_URL, } from './core/theme.css';
14
- export type { ThemeName } from './core/theme.css';
15
- export { applyThemeTemplate, buildThemeSet, createThemes, } from './core/theme-builder';
16
- export type { CreateThemesOptions, CreatedThemes, SimpleThemeDefinition, ThemePalette, ThemeTemplate, ThemeValues, } from './core/theme-builder';
17
- export { addTheme, getTheme, getThemes, replaceTheme, updateTheme, } from './core/theme/index';
18
- export type { ThemeMutation, ThemeRecord } from './core/theme/index';
19
- export { Theme } from './core/Theme';
20
- export type { ThemeProps } from './core/Theme';
21
- export { Box } from './layout/Box';
22
- export type { BoxProps } from './layout/Box';
23
- export { YStack } from './layout/YStack';
24
- export type { YStackProps } from './layout/YStack';
25
- export { XStack } from './layout/XStack';
26
- export type { XStackProps } from './layout/XStack';
27
- export { XGroup } from './layout/XGroup';
28
- export type { XGroupProps } from './layout/XGroup';
29
- export { Separator } from './layout/Separator';
30
- export type { SeparatorProps } from './layout/Separator';
31
- export { Text } from './typography/Text';
32
- export type { TextProps } from './typography/Text';
33
- export { SizableText } from './typography/SizableText';
34
- export type { SizableTextProps } from './typography/SizableText';
35
- export { Paragraph } from './typography/Paragraph';
36
- export type { ParagraphProps } from './typography/Paragraph';
37
- export { Heading } from './typography/Heading';
38
- export type { HeadingProps } from './typography/Heading';
39
- export { H1, H2, H3, H4, H5, H6 } from './typography/Headings';
40
- export { Anchor } from './typography/Anchor';
41
- export type { AnchorProps } from './typography/Anchor';
42
- export { Button } from './forms/Button';
43
- export type { ButtonProps } from './forms/Button';
44
- export { Input } from './forms/Input';
45
- export type { InputProps } from './forms/Input';
46
- export { TextArea } from './forms/TextArea';
47
- export type { TextAreaProps } from './forms/TextArea';
48
- export { Label } from './forms/Label';
49
- export type { LabelProps } from './forms/Label';
50
- export { Form } from './forms/Form';
51
- export type { FormProps } from './forms/Form';
52
- export { Field, FieldError, FieldHelper } from './forms/Field';
53
- export type { FieldProps } from './forms/Field';
54
- export { Checkbox } from './forms/Checkbox';
55
- export type { CheckboxProps } from './forms/Checkbox';
56
- export { RadioGroup, RadioGroupItem } from './forms/RadioGroup';
57
- export type { RadioGroupProps, RadioGroupItemProps } from './forms/RadioGroup';
58
- export { Select } from './forms/Select';
59
- export type { SelectProps } from './forms/Select';
60
- export { Slider } from './forms/Slider';
61
- export type { SliderProps } from './forms/Slider';
62
- export { Switch } from './forms/Switch';
63
- export type { SwitchProps } from './forms/Switch';
64
- export { ToggleGroup, ToggleGroupItem } from './forms/ToggleGroup';
65
- export type { ToggleGroupProps, ToggleGroupItemProps } from './forms/ToggleGroup';
66
- export { Progress } from './forms/Progress';
67
- export type { ProgressProps } from './forms/Progress';
68
- export { Avatar, AvatarImage, AvatarFallback } from './display/Avatar';
69
- export type { AvatarProps, AvatarImageProps, AvatarFallbackProps } from './display/Avatar';
70
- export { Card, CardHeader, CardFooter } from './display/Card';
71
- export type { CardProps } from './display/Card';
72
- export { Image } from './display/Image';
73
- export type { ImageProps } from './display/Image';
74
- export { ListItem } from './display/ListItem';
75
- export type { ListItemProps } from './display/ListItem';
76
- export { Spinner } from './display/Spinner';
77
- export type { SpinnerProps } from './display/Spinner';
78
- export { Loader } from './display/Loader';
79
- export type { LoaderProps } from './display/Loader';
80
- export { Tabs, TabList, Tab, TabPanel } from './overlays/Tabs';
81
- export type { TabsProps, TabListProps, TabProps, TabPanelProps } from './overlays/Tabs';
82
- export { Dialog, DialogOverlay, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, DialogClose, } from './overlays/Dialog';
83
- export type { DialogProps, DialogOverlayProps, DialogContentProps, } from './overlays/Dialog';
84
- export { AlertDialog, AlertDialogOverlay, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, } from './overlays/AlertDialog';
85
- export type { AlertDialogProps, AlertDialogOverlayProps, AlertDialogContentProps, } from './overlays/AlertDialog';
86
- export { Popover, PopoverTrigger, PopoverContent, PopoverClose, } from './overlays/Popover';
87
- export type { PopoverProps, PopoverContentProps, } from './overlays/Popover';
88
- export { Sheet, SheetOverlay, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, SheetClose, } from './overlays/Sheet';
89
- export type { SheetProps, SheetOverlayProps, SheetContentProps, } from './overlays/Sheet';
90
- export { Tooltip, TooltipTrigger, TooltipContent, } from './overlays/Tooltip';
91
- export type { TooltipProps, TooltipContentProps, } from './overlays/Tooltip';
92
- export { ToastProvider, Toast, ToastTitle, ToastDescription, ToastClose, } from './overlays/Toast';
93
- export type { ToastProviderProps, ToastProps, } from './overlays/Toast';
94
- export { Menu, MenuTrigger, MenuContent, MenuItem, MenuSeparator, MenuLabel, MenuGroup, } from './overlays/Menu';
95
- export type { MenuProps, MenuContentProps, MenuItemProps, } from './overlays/Menu';
96
- export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuSeparator, ContextMenuLabel, ContextMenuGroup, } from './overlays/ContextMenu';
97
- export type { ContextMenuProps, ContextMenuContentProps, ContextMenuItemProps, } from './overlays/ContextMenu';
98
- export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from './overlays/Accordion';
99
- export type { AccordionProps, AccordionItemProps, AccordionTriggerProps, AccordionContentProps, } from './overlays/Accordion';
1
+ export { sprinkles, tokens } from "./core/sprinkles.css.js";
2
+ export type { ProjectionProperty, ProjectionSprinkles, Sprinkles } from "./core/sprinkles.css.js";
3
+ export { isProjectionToken, projectionTokenToCss } from "./core/projection.js";
4
+ export type { ProjectionToken } from "./core/projection.js";
5
+ export { cls, splitSprinklesProps, toSprinklesClass } from "./core/utils.js";
6
+ export { gradientToCss } from "./core/gradient.js";
7
+ export type { Gradient, GradientColor } from "./core/gradient.js";
8
+ export type { BaseProps, ComponentSize } from "./core/types.js";
9
+ export { gradients, animations } from "./core/visuals.css.js";
10
+ export type { GradientName, AnimationName } from "./core/visuals.css.js";
11
+ export { colorScales, darkColorScales, colorTokens, darkColorTokens, namedColorTokenToCss, themeColorVariable, themeBaseVariable } from "./core/colors/index.js";
12
+ export type { ColorTokenName, ColorShade, CSSNamedColor } from "./core/colors/index.js";
13
+ export { themeColors, lightTheme, darkTheme, emeraldTheme, emeraldDarkTheme, midnightTheme, themes, lightColors, darkColors, emeraldColors, emeraldDarkColors, midnightColors, themeDefinitions, TAMAGUI_EMERALD_PREVIEW_URL, } from "./core/theme.css.js";
14
+ export type { ThemeName } from "./core/theme.css.js";
15
+ export { applyThemeTemplate, buildThemeSet, createThemes, } from "./core/theme-builder/index.js";
16
+ export type { CreateThemesOptions, CreatedThemes, SimpleThemeDefinition, ThemePalette, ThemeTemplate, ThemeValues, } from "./core/theme-builder/index.js";
17
+ export { addTheme, getTheme, getThemes, replaceTheme, updateTheme, } from "./core/theme/index.js";
18
+ export type { ThemeMutation, ThemeRecord } from "./core/theme/index.js";
19
+ export { Theme, createThemeScope } from "./core/Theme.js";
20
+ export type { ThemeProps } from "./core/Theme.js";
21
+ export { Box } from "./layout/Box.js";
22
+ export type { BoxProps } from "./layout/Box.js";
23
+ export { YStack } from "./layout/YStack.js";
24
+ export type { YStackProps } from "./layout/YStack.js";
25
+ export { XStack } from "./layout/XStack.js";
26
+ export type { XStackProps } from "./layout/XStack.js";
27
+ export { XGroup } from "./layout/XGroup.js";
28
+ export type { XGroupProps } from "./layout/XGroup.js";
29
+ export { Separator } from "./layout/Separator.js";
30
+ export type { SeparatorProps } from "./layout/Separator.js";
31
+ export { Text } from "./typography/Text.js";
32
+ export type { TextProps } from "./typography/Text.js";
33
+ export { SizableText } from "./typography/SizableText.js";
34
+ export type { SizableTextProps } from "./typography/SizableText.js";
35
+ export { Paragraph } from "./typography/Paragraph.js";
36
+ export type { ParagraphProps } from "./typography/Paragraph.js";
37
+ export { Heading } from "./typography/Heading.js";
38
+ export type { HeadingProps } from "./typography/Heading.js";
39
+ export { H1, H2, H3, H4, H5, H6 } from "./typography/Headings.js";
40
+ export { Anchor } from "./typography/Anchor.js";
41
+ export type { AnchorProps } from "./typography/Anchor.js";
42
+ export { Button } from "./forms/Button.js";
43
+ export type { ButtonProps } from "./forms/Button.js";
44
+ export { Input } from "./forms/Input.js";
45
+ export type { InputProps } from "./forms/Input.js";
46
+ export { TextArea } from "./forms/TextArea.js";
47
+ export type { TextAreaProps } from "./forms/TextArea.js";
48
+ export { Label } from "./forms/Label.js";
49
+ export type { LabelProps } from "./forms/Label.js";
50
+ export { Form } from "./forms/Form.js";
51
+ export type { FormProps } from "./forms/Form.js";
52
+ export { Field, FieldError, FieldHelper } from "./forms/Field.js";
53
+ export type { FieldProps } from "./forms/Field.js";
54
+ export { Checkbox } from "./forms/Checkbox.js";
55
+ export type { CheckboxProps } from "./forms/Checkbox.js";
56
+ export { RadioGroup, RadioGroupItem } from "./forms/RadioGroup.js";
57
+ export type { RadioGroupProps, RadioGroupItemProps } from "./forms/RadioGroup.js";
58
+ export { Select } from "./forms/Select.js";
59
+ export type { SelectProps } from "./forms/Select.js";
60
+ export { Slider } from "./forms/Slider.js";
61
+ export type { SliderProps } from "./forms/Slider.js";
62
+ export { Switch } from "./forms/Switch.js";
63
+ export type { SwitchProps } from "./forms/Switch.js";
64
+ export { ToggleGroup, ToggleGroupItem } from "./forms/ToggleGroup.js";
65
+ export type { ToggleGroupProps, ToggleGroupItemProps } from "./forms/ToggleGroup.js";
66
+ export { Progress } from "./forms/Progress.js";
67
+ export type { ProgressProps } from "./forms/Progress.js";
68
+ export { Avatar, AvatarImage, AvatarFallback } from "./display/Avatar.js";
69
+ export type { AvatarProps, AvatarImageProps, AvatarFallbackProps } from "./display/Avatar.js";
70
+ export { Card, CardHeader, CardFooter } from "./display/Card.js";
71
+ export type { CardProps } from "./display/Card.js";
72
+ export { Image } from "./display/Image.js";
73
+ export type { ImageProps } from "./display/Image.js";
74
+ export { ListItem } from "./display/ListItem.js";
75
+ export type { ListItemProps } from "./display/ListItem.js";
76
+ export { Spinner } from "./display/Spinner.js";
77
+ export type { SpinnerProps } from "./display/Spinner.js";
78
+ export { Loader } from "./display/Loader.js";
79
+ export type { LoaderProps } from "./display/Loader.js";
80
+ export { Tabs, TabList, Tab, TabPanel } from "./overlays/Tabs.js";
81
+ export type { TabsProps, TabListProps, TabProps, TabPanelProps } from "./overlays/Tabs.js";
82
+ export { Dialog, DialogOverlay, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, DialogClose, } from "./overlays/Dialog.js";
83
+ export type { DialogProps, DialogOverlayProps, DialogContentProps, } from "./overlays/Dialog.js";
84
+ export { AlertDialog, AlertDialogOverlay, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, } from "./overlays/AlertDialog.js";
85
+ export type { AlertDialogProps, AlertDialogOverlayProps, AlertDialogContentProps, } from "./overlays/AlertDialog.js";
86
+ export { Popover, PopoverTrigger, PopoverContent, PopoverClose, } from "./overlays/Popover.js";
87
+ export type { PopoverProps, PopoverContentProps, } from "./overlays/Popover.js";
88
+ export { Sheet, SheetOverlay, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, SheetClose, } from "./overlays/Sheet.js";
89
+ export type { SheetProps, SheetOverlayProps, SheetContentProps, } from "./overlays/Sheet.js";
90
+ export { Tooltip, TooltipTrigger, TooltipContent, } from "./overlays/Tooltip.js";
91
+ export type { TooltipProps, TooltipContentProps, } from "./overlays/Tooltip.js";
92
+ export { ToastProvider, Toast, ToastTitle, ToastDescription, ToastClose, } from "./overlays/Toast.js";
93
+ export type { ToastProviderProps, ToastProps, } from "./overlays/Toast.js";
94
+ export { Menu, MenuTrigger, MenuContent, MenuItem, MenuSeparator, MenuLabel, MenuGroup, } from "./overlays/Menu.js";
95
+ export type { MenuProps, MenuContentProps, MenuItemProps, } from "./overlays/Menu.js";
96
+ export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuSeparator, ContextMenuLabel, ContextMenuGroup, } from "./overlays/ContextMenu.js";
97
+ export type { ContextMenuProps, ContextMenuContentProps, ContextMenuItemProps, } from "./overlays/ContextMenu.js";
98
+ export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from "./overlays/Accordion.js";
99
+ export type { AccordionProps, AccordionItemProps, AccordionTriggerProps, AccordionContentProps, } from "./overlays/Accordion.js";
@@ -1,5 +1,5 @@
1
- import { type Gradient } from '../core/gradient';
2
- import type { BaseProps } from '../core/types';
1
+ import { type Gradient } from "../core/gradient.js";
2
+ import type { BaseProps } from "../core/types.js";
3
3
  export interface BoxProps extends BaseProps {
4
4
  /** Rendered HTML element. Defaults to 'div'. */
5
5
  as?: string;
@@ -1,4 +1,4 @@
1
- import type { BaseProps } from '../core/types';
1
+ import type { BaseProps } from "../core/types.js";
2
2
  export interface SeparatorProps extends BaseProps {
3
3
  orientation?: 'horizontal' | 'vertical';
4
4
  decorative?: boolean;
@@ -1,4 +1,4 @@
1
- import type { BaseProps } from '../core/types';
1
+ import type { BaseProps } from "../core/types.js";
2
2
  export interface XGroupProps extends BaseProps {
3
3
  [key: string]: any;
4
4
  }
@@ -1,4 +1,4 @@
1
- import type { BaseProps } from '../core/types';
1
+ import type { BaseProps } from "../core/types.js";
2
2
  export interface XStackProps extends BaseProps {
3
3
  }
4
4
  /**
@@ -1,4 +1,4 @@
1
- import type { BaseProps } from '../core/types';
1
+ import type { BaseProps } from "../core/types.js";
2
2
  export interface YStackProps extends BaseProps {
3
3
  }
4
4
  /**
@@ -1,4 +1,4 @@
1
- import type { BaseProps } from '../core/types';
1
+ import type { BaseProps } from "../core/types.js";
2
2
  export interface AccordionProps extends BaseProps {
3
3
  type?: 'single' | 'multiple';
4
4
  [key: string]: any;
@@ -1,9 +1,10 @@
1
- import type { BaseProps } from '../core/types';
1
+ import type { BaseProps } from "../core/types.js";
2
2
  export interface AlertDialogProps extends BaseProps {
3
3
  open?: boolean;
4
+ onOpenChange?: (open: boolean) => void;
4
5
  [key: string]: any;
5
6
  }
6
- export declare function AlertDialog({ open, class: extraClass, children, ...rest }: AlertDialogProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
7
+ export declare function AlertDialog({ open, onOpenChange, class: extraClass, children, ...rest }: AlertDialogProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
7
8
  export interface AlertDialogOverlayProps extends BaseProps {
8
9
  'data-state'?: 'open' | 'closed';
9
10
  [key: string]: any;
@@ -1,4 +1,4 @@
1
- import type { BaseProps } from '../core/types';
1
+ import type { BaseProps } from "../core/types.js";
2
2
  export interface ContextMenuProps extends BaseProps {
3
3
  [key: string]: any;
4
4
  }
@@ -1,9 +1,10 @@
1
- import type { BaseProps } from '../core/types';
1
+ import type { BaseProps } from "../core/types.js";
2
2
  export interface DialogProps extends BaseProps {
3
3
  open?: boolean;
4
+ onOpenChange?: (open: boolean) => void;
4
5
  [key: string]: any;
5
6
  }
6
- export declare function Dialog({ open, class: extraClass, children, ...rest }: DialogProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
7
+ export declare function Dialog({ open, onOpenChange, class: extraClass, children, ...rest }: DialogProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
7
8
  export interface DialogOverlayProps extends BaseProps {
8
9
  'data-state'?: 'open' | 'closed';
9
10
  [key: string]: any;
@@ -1,4 +1,4 @@
1
- import type { BaseProps } from '../core/types';
1
+ import type { BaseProps } from "../core/types.js";
2
2
  export interface MenuProps extends BaseProps {
3
3
  [key: string]: any;
4
4
  }
@@ -1,4 +1,4 @@
1
- import type { BaseProps } from '../core/types';
1
+ import type { BaseProps } from "../core/types.js";
2
2
  export interface PopoverProps extends BaseProps {
3
3
  [key: string]: any;
4
4
  }
@@ -1,9 +1,10 @@
1
- import type { BaseProps } from '../core/types';
1
+ import type { BaseProps } from "../core/types.js";
2
2
  export interface SheetProps extends BaseProps {
3
3
  open?: boolean;
4
+ onOpenChange?: (open: boolean) => void;
4
5
  [key: string]: any;
5
6
  }
6
- export declare function Sheet({ open, class: extraClass, children, ...rest }: SheetProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
7
+ export declare function Sheet({ open, onOpenChange, class: extraClass, children, ...rest }: SheetProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
7
8
  export interface SheetOverlayProps extends BaseProps {
8
9
  'data-state'?: 'open' | 'closed';
9
10
  [key: string]: any;
@@ -1,4 +1,4 @@
1
- import type { BaseProps } from '../core/types';
1
+ import type { BaseProps } from "../core/types.js";
2
2
  export interface TabsProps extends BaseProps {
3
3
  /** Currently active tab value. */
4
4
  value?: string;
@@ -1,4 +1,4 @@
1
- import type { BaseProps } from '../core/types';
1
+ import type { BaseProps } from "../core/types.js";
2
2
  export interface ToastProviderProps extends Omit<BaseProps, 'position'> {
3
3
  position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center';
4
4
  [key: string]: any;
@@ -1,4 +1,4 @@
1
- import type { BaseProps } from '../core/types';
1
+ import type { BaseProps } from "../core/types.js";
2
2
  export interface TooltipProps extends BaseProps {
3
3
  [key: string]: any;
4
4
  }
@@ -1,4 +1,4 @@
1
- import type { BaseProps } from '../core/types';
1
+ import type { BaseProps } from "../core/types.js";
2
2
  export interface AnchorProps extends BaseProps {
3
3
  href?: string;
4
4
  target?: string;
@@ -1,4 +1,4 @@
1
- import type { BaseProps } from '../core/types';
1
+ import type { BaseProps } from "../core/types.js";
2
2
  type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
3
3
  export interface HeadingProps extends BaseProps {
4
4
  /** Heading level (1–6). Determines which h-tag to render. Defaults to 1. */
@@ -1,4 +1,4 @@
1
- import type { HeadingProps } from './Heading';
1
+ import type { HeadingProps } from "./Heading.js";
2
2
  /** Shorthand props for H1–H6 (level is fixed, not accepted). */
3
3
  export type HProps = Omit<HeadingProps, 'level'>;
4
4
  /** Renders an `<h1>` heading. */
@@ -1,4 +1,4 @@
1
- import type { SizableTextProps } from './SizableText';
1
+ import type { SizableTextProps } from "./SizableText.js";
2
2
  export interface ParagraphProps extends SizableTextProps {
3
3
  }
4
4
  export declare function Paragraph({ size, class: extraClass, children, ...rest }: ParagraphProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
- import type { ComponentSize } from '../core/types';
2
- import type { TextProps } from './Text';
1
+ import type { ComponentSize } from "../core/types.js";
2
+ import type { TextProps } from "./Text.js";
3
3
  export interface SizableTextProps extends TextProps {
4
4
  /** Controls fontSize and lineHeight together. Defaults to 'md'. */
5
5
  size?: ComponentSize;
@@ -1,4 +1,4 @@
1
- import type { BaseProps } from '../core/types';
1
+ import type { BaseProps } from "../core/types.js";
2
2
  export interface TextProps extends BaseProps {
3
3
  /** The HTML element to render. Defaults to 'span'. */
4
4
  as?: 'span' | 'p' | 'label' | 'em' | 'strong' | 'small' | 'mark' | 'del' | 'ins' | 'sub' | 'sup' | 's' | 'u' | 'abbr' | 'cite' | 'code' | 'kbd' | 'samp' | 'var' | 'b' | 'i' | 'div';