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.
- package/README.md +133 -30
- package/dist/library/silva-ui.css +1 -1
- package/dist/library/silva-ui.js +993 -23305
- package/dist/types/core/Theme.d.ts +28 -6
- package/dist/types/core/colors/index.d.ts +16 -8
- package/dist/types/core/compound.d.ts +6 -0
- package/dist/types/core/dynamic-colors.css.d.ts +6 -0
- package/dist/types/core/gradient.d.ts +1 -1
- package/dist/types/core/sprinkles.css.d.ts +17 -407
- package/dist/types/core/theme/index.css.d.ts +4 -398
- package/dist/types/core/theme.css.d.ts +3 -3
- package/dist/types/core/themes/index.d.ts +228 -6
- package/dist/types/core/types.d.ts +11 -6
- package/dist/types/core/utils.d.ts +2 -1
- package/dist/types/core/visuals.css.d.ts +2 -2
- package/dist/types/display/Avatar.d.ts +1 -1
- package/dist/types/display/Card.d.ts +1 -1
- package/dist/types/display/Image.d.ts +2 -2
- package/dist/types/display/ListItem.d.ts +1 -1
- package/dist/types/display/Loader.d.ts +1 -1
- package/dist/types/display/Spinner.d.ts +1 -1
- package/dist/types/forms/Button.d.ts +1 -1
- package/dist/types/forms/Checkbox.d.ts +1 -1
- package/dist/types/forms/Field.d.ts +1 -1
- package/dist/types/forms/Form.d.ts +1 -1
- package/dist/types/forms/Input.d.ts +1 -1
- package/dist/types/forms/Label.d.ts +1 -1
- package/dist/types/forms/Progress.d.ts +1 -1
- package/dist/types/forms/RadioGroup.d.ts +1 -1
- package/dist/types/forms/Select.d.ts +9 -2
- package/dist/types/forms/Slider.d.ts +1 -1
- package/dist/types/forms/Switch.d.ts +1 -1
- package/dist/types/forms/TextArea.d.ts +1 -1
- package/dist/types/forms/ToggleGroup.d.ts +1 -1
- package/dist/types/index.d.ts +99 -99
- package/dist/types/layout/Box.d.ts +2 -2
- package/dist/types/layout/Separator.d.ts +1 -1
- package/dist/types/layout/XGroup.d.ts +1 -1
- package/dist/types/layout/XStack.d.ts +1 -1
- package/dist/types/layout/YStack.d.ts +1 -1
- package/dist/types/overlays/Accordion.d.ts +1 -1
- package/dist/types/overlays/AlertDialog.d.ts +3 -2
- package/dist/types/overlays/ContextMenu.d.ts +1 -1
- package/dist/types/overlays/Dialog.d.ts +3 -2
- package/dist/types/overlays/Menu.d.ts +1 -1
- package/dist/types/overlays/Popover.d.ts +1 -1
- package/dist/types/overlays/Sheet.d.ts +3 -2
- package/dist/types/overlays/Tabs.d.ts +1 -1
- package/dist/types/overlays/Toast.d.ts +1 -1
- package/dist/types/overlays/Tooltip.d.ts +1 -1
- package/dist/types/typography/Anchor.d.ts +1 -1
- package/dist/types/typography/Heading.d.ts +1 -1
- package/dist/types/typography/Headings.d.ts +1 -1
- package/dist/types/typography/Paragraph.d.ts +1 -1
- package/dist/types/typography/SizableText.d.ts +2 -2
- package/dist/types/typography/Text.d.ts +1 -1
- package/package.json +81 -69
- package/dist/library/previews/index.html +0 -51
- 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
|
|
8
|
-
import type { AnimationName } from
|
|
9
|
-
import type { GradientName } from
|
|
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
|
-
|
|
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
|
|
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
|
|
2
|
-
export type { GradientName } from
|
|
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 } from
|
|
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
|
|
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
|
|
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;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
export { sprinkles, tokens } from
|
|
2
|
-
export type { ProjectionProperty, ProjectionSprinkles, Sprinkles } from
|
|
3
|
-
export { isProjectionToken, projectionTokenToCss } from
|
|
4
|
-
export type { ProjectionToken } from
|
|
5
|
-
export { cls, splitSprinklesProps, toSprinklesClass } from
|
|
6
|
-
export { gradientToCss } from
|
|
7
|
-
export type { Gradient, GradientColor } from
|
|
8
|
-
export type { BaseProps, ComponentSize } from
|
|
9
|
-
export { gradients, animations } from
|
|
10
|
-
export type { GradientName, AnimationName } from
|
|
11
|
-
export { colorScales, darkColorScales, colorTokens, darkColorTokens } from
|
|
12
|
-
export type { ColorTokenName } from
|
|
13
|
-
export { themeColors, lightTheme, darkTheme, emeraldTheme, emeraldDarkTheme, midnightTheme, themes, lightColors, darkColors, emeraldColors, emeraldDarkColors, midnightColors, themeDefinitions, TAMAGUI_EMERALD_PREVIEW_URL, } from
|
|
14
|
-
export type { ThemeName } from
|
|
15
|
-
export { applyThemeTemplate, buildThemeSet, createThemes, } from
|
|
16
|
-
export type { CreateThemesOptions, CreatedThemes, SimpleThemeDefinition, ThemePalette, ThemeTemplate, ThemeValues, } from
|
|
17
|
-
export { addTheme, getTheme, getThemes, replaceTheme, updateTheme, } from
|
|
18
|
-
export type { ThemeMutation, ThemeRecord } from
|
|
19
|
-
export { Theme } from
|
|
20
|
-
export type { ThemeProps } from
|
|
21
|
-
export { Box } from
|
|
22
|
-
export type { BoxProps } from
|
|
23
|
-
export { YStack } from
|
|
24
|
-
export type { YStackProps } from
|
|
25
|
-
export { XStack } from
|
|
26
|
-
export type { XStackProps } from
|
|
27
|
-
export { XGroup } from
|
|
28
|
-
export type { XGroupProps } from
|
|
29
|
-
export { Separator } from
|
|
30
|
-
export type { SeparatorProps } from
|
|
31
|
-
export { Text } from
|
|
32
|
-
export type { TextProps } from
|
|
33
|
-
export { SizableText } from
|
|
34
|
-
export type { SizableTextProps } from
|
|
35
|
-
export { Paragraph } from
|
|
36
|
-
export type { ParagraphProps } from
|
|
37
|
-
export { Heading } from
|
|
38
|
-
export type { HeadingProps } from
|
|
39
|
-
export { H1, H2, H3, H4, H5, H6 } from
|
|
40
|
-
export { Anchor } from
|
|
41
|
-
export type { AnchorProps } from
|
|
42
|
-
export { Button } from
|
|
43
|
-
export type { ButtonProps } from
|
|
44
|
-
export { Input } from
|
|
45
|
-
export type { InputProps } from
|
|
46
|
-
export { TextArea } from
|
|
47
|
-
export type { TextAreaProps } from
|
|
48
|
-
export { Label } from
|
|
49
|
-
export type { LabelProps } from
|
|
50
|
-
export { Form } from
|
|
51
|
-
export type { FormProps } from
|
|
52
|
-
export { Field, FieldError, FieldHelper } from
|
|
53
|
-
export type { FieldProps } from
|
|
54
|
-
export { Checkbox } from
|
|
55
|
-
export type { CheckboxProps } from
|
|
56
|
-
export { RadioGroup, RadioGroupItem } from
|
|
57
|
-
export type { RadioGroupProps, RadioGroupItemProps } from
|
|
58
|
-
export { Select } from
|
|
59
|
-
export type { SelectProps } from
|
|
60
|
-
export { Slider } from
|
|
61
|
-
export type { SliderProps } from
|
|
62
|
-
export { Switch } from
|
|
63
|
-
export type { SwitchProps } from
|
|
64
|
-
export { ToggleGroup, ToggleGroupItem } from
|
|
65
|
-
export type { ToggleGroupProps, ToggleGroupItemProps } from
|
|
66
|
-
export { Progress } from
|
|
67
|
-
export type { ProgressProps } from
|
|
68
|
-
export { Avatar, AvatarImage, AvatarFallback } from
|
|
69
|
-
export type { AvatarProps, AvatarImageProps, AvatarFallbackProps } from
|
|
70
|
-
export { Card, CardHeader, CardFooter } from
|
|
71
|
-
export type { CardProps } from
|
|
72
|
-
export { Image } from
|
|
73
|
-
export type { ImageProps } from
|
|
74
|
-
export { ListItem } from
|
|
75
|
-
export type { ListItemProps } from
|
|
76
|
-
export { Spinner } from
|
|
77
|
-
export type { SpinnerProps } from
|
|
78
|
-
export { Loader } from
|
|
79
|
-
export type { LoaderProps } from
|
|
80
|
-
export { Tabs, TabList, Tab, TabPanel } from
|
|
81
|
-
export type { TabsProps, TabListProps, TabProps, TabPanelProps } from
|
|
82
|
-
export { Dialog, DialogOverlay, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, DialogClose, } from
|
|
83
|
-
export type { DialogProps, DialogOverlayProps, DialogContentProps, } from
|
|
84
|
-
export { AlertDialog, AlertDialogOverlay, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, } from
|
|
85
|
-
export type { AlertDialogProps, AlertDialogOverlayProps, AlertDialogContentProps, } from
|
|
86
|
-
export { Popover, PopoverTrigger, PopoverContent, PopoverClose, } from
|
|
87
|
-
export type { PopoverProps, PopoverContentProps, } from
|
|
88
|
-
export { Sheet, SheetOverlay, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, SheetClose, } from
|
|
89
|
-
export type { SheetProps, SheetOverlayProps, SheetContentProps, } from
|
|
90
|
-
export { Tooltip, TooltipTrigger, TooltipContent, } from
|
|
91
|
-
export type { TooltipProps, TooltipContentProps, } from
|
|
92
|
-
export { ToastProvider, Toast, ToastTitle, ToastDescription, ToastClose, } from
|
|
93
|
-
export type { ToastProviderProps, ToastProps, } from
|
|
94
|
-
export { Menu, MenuTrigger, MenuContent, MenuItem, MenuSeparator, MenuLabel, MenuGroup, } from
|
|
95
|
-
export type { MenuProps, MenuContentProps, MenuItemProps, } from
|
|
96
|
-
export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuSeparator, ContextMenuLabel, ContextMenuGroup, } from
|
|
97
|
-
export type { ContextMenuProps, ContextMenuContentProps, ContextMenuItemProps, } from
|
|
98
|
-
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from
|
|
99
|
-
export type { AccordionProps, AccordionItemProps, AccordionTriggerProps, AccordionContentProps, } from
|
|
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
|
|
2
|
-
import type { BaseProps } from
|
|
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,9 +1,10 @@
|
|
|
1
|
-
import type { BaseProps } from
|
|
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,9 +1,10 @@
|
|
|
1
|
-
import type { BaseProps } from
|
|
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,9 +1,10 @@
|
|
|
1
|
-
import type { BaseProps } from
|
|
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
|
|
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
|
|
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 { SizableTextProps } from
|
|
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
|
|
2
|
-
import type { TextProps } from
|
|
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
|
|
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';
|