@webdevarif/dashui 1.2.3 → 1.2.6
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.mts +82 -1
- package/dist/index.d.ts +82 -1
- package/dist/index.js +382 -39
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +379 -39
- package/dist/index.mjs.map +1 -1
- package/package.json +89 -95
- package/dist/styles/animations.css +0 -13
- package/dist/styles/globals.css +0 -437
- package/dist/tokens/index.css +0 -11
- package/dist/tokens/primitives.css +0 -92
- package/dist/tokens/semantic-dark.css +0 -87
- package/dist/tokens/semantic-light.css +0 -116
- package/dist/tokens/storefront-schemes.css +0 -96
package/dist/index.d.mts
CHANGED
|
@@ -668,6 +668,87 @@ declare function TiptapEditor({ value, onChange, placeholder, disabled, classNam
|
|
|
668
668
|
className?: string;
|
|
669
669
|
}): react_jsx_runtime.JSX.Element | null;
|
|
670
670
|
|
|
671
|
+
/**
|
|
672
|
+
* ThemeBuilder — Visual theme editor shell
|
|
673
|
+
*
|
|
674
|
+
* Consumer provides:
|
|
675
|
+
* - initialTheme: Current theme data
|
|
676
|
+
* - onSave: (themeData) => void
|
|
677
|
+
* - onPreview: (html) => void
|
|
678
|
+
*
|
|
679
|
+
* Includes:
|
|
680
|
+
* - Icon strip sidebar (AI, Variables, Styles)
|
|
681
|
+
* - Variables panel (Color Schema + Typography + Page Layout)
|
|
682
|
+
* - Preview iframe
|
|
683
|
+
*
|
|
684
|
+
* This is the shell. Consumer handles:
|
|
685
|
+
* - API persistence
|
|
686
|
+
* - Preview rendering (Tailwind + Alpine)
|
|
687
|
+
* - Theme data structure
|
|
688
|
+
*/
|
|
689
|
+
interface Theme {
|
|
690
|
+
id: string;
|
|
691
|
+
name: string;
|
|
692
|
+
variables?: Record<string, any>;
|
|
693
|
+
colorSchemas?: Array<any>;
|
|
694
|
+
typography?: Record<string, any>;
|
|
695
|
+
[key: string]: any;
|
|
696
|
+
}
|
|
697
|
+
interface ThemeBuilderProps {
|
|
698
|
+
theme: Theme;
|
|
699
|
+
onSave: (theme: Theme) => void;
|
|
700
|
+
onPreviewUpdate?: (previewHtml: string) => void;
|
|
701
|
+
previewUrl?: string;
|
|
702
|
+
}
|
|
703
|
+
declare function ThemeBuilder({ theme, onSave, onPreviewUpdate, previewUrl }: ThemeBuilderProps): react_jsx_runtime.JSX.Element;
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* ColorSchemaPanel — Color token editor with light/dark support
|
|
707
|
+
*
|
|
708
|
+
* Consumer provides:
|
|
709
|
+
* - schemas: Array of color schemas
|
|
710
|
+
* - onSave: (schemas) => void
|
|
711
|
+
* - onSchemaSelect: (schemaId) => void
|
|
712
|
+
*/
|
|
713
|
+
interface ColorSchema {
|
|
714
|
+
id: string;
|
|
715
|
+
name: string;
|
|
716
|
+
light: Record<string, string>;
|
|
717
|
+
dark: Record<string, string>;
|
|
718
|
+
}
|
|
719
|
+
declare function ColorSchemaPanel({ schemas, activeSchemaId, onSchemaSelect, onSchemaSave, onSchemaCreate, }: {
|
|
720
|
+
schemas: ColorSchema[];
|
|
721
|
+
activeSchemaId?: string;
|
|
722
|
+
onSchemaSelect: (id: string) => void;
|
|
723
|
+
onSchemaSave: (schema: ColorSchema) => void;
|
|
724
|
+
onSchemaCreate: (name: string) => void;
|
|
725
|
+
}): react_jsx_runtime.JSX.Element;
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* TypographyPanel — Font & text settings editor
|
|
729
|
+
*
|
|
730
|
+
* Consumer provides:
|
|
731
|
+
* - typography: Typography settings object
|
|
732
|
+
* - onSave: (typography) => void
|
|
733
|
+
*/
|
|
734
|
+
interface TextPreset {
|
|
735
|
+
size: Record<string, number>;
|
|
736
|
+
sizeUnit: string;
|
|
737
|
+
lineHeight: string;
|
|
738
|
+
fontRole: string;
|
|
739
|
+
weight: number;
|
|
740
|
+
letterSpacing: string;
|
|
741
|
+
}
|
|
742
|
+
interface TypographySettings {
|
|
743
|
+
fonts: Record<string, string>;
|
|
744
|
+
body: TextPreset;
|
|
745
|
+
headings: Record<string, TextPreset>;
|
|
746
|
+
}
|
|
747
|
+
declare function TypographyPanel({ typography, onSave, }: {
|
|
748
|
+
typography: TypographySettings;
|
|
749
|
+
onSave: (settings: TypographySettings) => void;
|
|
750
|
+
}): react_jsx_runtime.JSX.Element;
|
|
751
|
+
|
|
671
752
|
declare function useDisclosure(initial?: boolean): {
|
|
672
753
|
isOpen: boolean;
|
|
673
754
|
open: () => void;
|
|
@@ -752,4 +833,4 @@ interface SkeletonProps {
|
|
|
752
833
|
}
|
|
753
834
|
declare function Skeleton({ width, height, rounded, style }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
754
835
|
|
|
755
|
-
export { Alert, type AlertProps, AppShell, type AppShellProps, AuthButton, AuthCard, AuthDivider, AuthField, AuthFootnote, AuthHeader, AuthLogo, AuthShell, Badge, type BadgeProps, type Breadcrumb, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, ColorPicker, ColorPickerAlpha, ColorPickerEyeDropper, ColorPickerFormat, ColorPickerHexOutput, ColorPickerHue, ColorPickerOutput, ColorPickerSelection, type Column, ConfirmDialog, type ConfirmDialogProps, DEVICES, DEVICE_ICONS, DashboardLayout, type DashboardLayoutProps, DataTable, type DataTableProps, type DeviceKey, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, FormField, type FormFieldProps, FormLayout, type FormLayoutProps, FormSection, type FormSectionProps, HslColorInput, ImagePickerField, Input, type InputProps, Label, LoadingSpinner, type LoadingSpinnerProps, LocalInput, MediaCard, type NavItem, NotificationBell, type NotificationBellProps, Page, type PageProps, PageSection, type PageSectionProps, Pagination, type PaginationProps, PlanBadge, type PlanBadgeProps, type PlanId, Popover, PopoverContent, PopoverTrigger, PostEditorShell, type PostEditorShellProps, PostFiltersBar, type PostFiltersBarProps, type PostListItem, PostListTable, type PostListTableProps, PostSidebarSection, type PostSidebarSectionProps, type PostStatus, PostStatusBadge, type PostStatusBadgeProps, ResponsiveSizeDeviceIcon, ResponsiveSizeField, SearchBar, type SearchBarProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sidebar, type SidebarItem, type SidebarProps, Skeleton, SlugInput, type SlugInputProps, type Stat, Stats, type StatsProps, StorageBar, type StorageBarProps, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, ThemeToggle, type ThemeToggleProps, TiptapEditor, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopBar, type TopBarProps, type UploadProgressItem, UploadProgressPanel, UploadZone, badgeVariants, buttonVariants, cn, useColorPicker, useDisclosure, usePagination };
|
|
836
|
+
export { Alert, type AlertProps, AppShell, type AppShellProps, AuthButton, AuthCard, AuthDivider, AuthField, AuthFootnote, AuthHeader, AuthLogo, AuthShell, Badge, type BadgeProps, type Breadcrumb, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, ColorPicker, ColorPickerAlpha, ColorPickerEyeDropper, ColorPickerFormat, ColorPickerHexOutput, ColorPickerHue, ColorPickerOutput, ColorPickerSelection, type ColorSchema, ColorSchemaPanel, type Column, ConfirmDialog, type ConfirmDialogProps, DEVICES, DEVICE_ICONS, DashboardLayout, type DashboardLayoutProps, DataTable, type DataTableProps, type DeviceKey, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, FormField, type FormFieldProps, FormLayout, type FormLayoutProps, FormSection, type FormSectionProps, HslColorInput, ImagePickerField, Input, type InputProps, Label, LoadingSpinner, type LoadingSpinnerProps, LocalInput, MediaCard, type NavItem, NotificationBell, type NotificationBellProps, Page, type PageProps, PageSection, type PageSectionProps, Pagination, type PaginationProps, PlanBadge, type PlanBadgeProps, type PlanId, Popover, PopoverContent, PopoverTrigger, PostEditorShell, type PostEditorShellProps, PostFiltersBar, type PostFiltersBarProps, type PostListItem, PostListTable, type PostListTableProps, PostSidebarSection, type PostSidebarSectionProps, type PostStatus, PostStatusBadge, type PostStatusBadgeProps, ResponsiveSizeDeviceIcon, ResponsiveSizeField, SearchBar, type SearchBarProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sidebar, type SidebarItem, type SidebarProps, Skeleton, SlugInput, type SlugInputProps, type Stat, Stats, type StatsProps, StorageBar, type StorageBarProps, Switch, Tabs, TabsContent, TabsList, TabsTrigger, type TextPreset, Textarea, type TextareaProps, type Theme, ThemeBuilder, type ThemeBuilderProps, ThemeToggle, type ThemeToggleProps, TiptapEditor, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopBar, type TopBarProps, TypographyPanel, type TypographySettings, type UploadProgressItem, UploadProgressPanel, UploadZone, badgeVariants, buttonVariants, cn, useColorPicker, useDisclosure, usePagination };
|
package/dist/index.d.ts
CHANGED
|
@@ -668,6 +668,87 @@ declare function TiptapEditor({ value, onChange, placeholder, disabled, classNam
|
|
|
668
668
|
className?: string;
|
|
669
669
|
}): react_jsx_runtime.JSX.Element | null;
|
|
670
670
|
|
|
671
|
+
/**
|
|
672
|
+
* ThemeBuilder — Visual theme editor shell
|
|
673
|
+
*
|
|
674
|
+
* Consumer provides:
|
|
675
|
+
* - initialTheme: Current theme data
|
|
676
|
+
* - onSave: (themeData) => void
|
|
677
|
+
* - onPreview: (html) => void
|
|
678
|
+
*
|
|
679
|
+
* Includes:
|
|
680
|
+
* - Icon strip sidebar (AI, Variables, Styles)
|
|
681
|
+
* - Variables panel (Color Schema + Typography + Page Layout)
|
|
682
|
+
* - Preview iframe
|
|
683
|
+
*
|
|
684
|
+
* This is the shell. Consumer handles:
|
|
685
|
+
* - API persistence
|
|
686
|
+
* - Preview rendering (Tailwind + Alpine)
|
|
687
|
+
* - Theme data structure
|
|
688
|
+
*/
|
|
689
|
+
interface Theme {
|
|
690
|
+
id: string;
|
|
691
|
+
name: string;
|
|
692
|
+
variables?: Record<string, any>;
|
|
693
|
+
colorSchemas?: Array<any>;
|
|
694
|
+
typography?: Record<string, any>;
|
|
695
|
+
[key: string]: any;
|
|
696
|
+
}
|
|
697
|
+
interface ThemeBuilderProps {
|
|
698
|
+
theme: Theme;
|
|
699
|
+
onSave: (theme: Theme) => void;
|
|
700
|
+
onPreviewUpdate?: (previewHtml: string) => void;
|
|
701
|
+
previewUrl?: string;
|
|
702
|
+
}
|
|
703
|
+
declare function ThemeBuilder({ theme, onSave, onPreviewUpdate, previewUrl }: ThemeBuilderProps): react_jsx_runtime.JSX.Element;
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* ColorSchemaPanel — Color token editor with light/dark support
|
|
707
|
+
*
|
|
708
|
+
* Consumer provides:
|
|
709
|
+
* - schemas: Array of color schemas
|
|
710
|
+
* - onSave: (schemas) => void
|
|
711
|
+
* - onSchemaSelect: (schemaId) => void
|
|
712
|
+
*/
|
|
713
|
+
interface ColorSchema {
|
|
714
|
+
id: string;
|
|
715
|
+
name: string;
|
|
716
|
+
light: Record<string, string>;
|
|
717
|
+
dark: Record<string, string>;
|
|
718
|
+
}
|
|
719
|
+
declare function ColorSchemaPanel({ schemas, activeSchemaId, onSchemaSelect, onSchemaSave, onSchemaCreate, }: {
|
|
720
|
+
schemas: ColorSchema[];
|
|
721
|
+
activeSchemaId?: string;
|
|
722
|
+
onSchemaSelect: (id: string) => void;
|
|
723
|
+
onSchemaSave: (schema: ColorSchema) => void;
|
|
724
|
+
onSchemaCreate: (name: string) => void;
|
|
725
|
+
}): react_jsx_runtime.JSX.Element;
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* TypographyPanel — Font & text settings editor
|
|
729
|
+
*
|
|
730
|
+
* Consumer provides:
|
|
731
|
+
* - typography: Typography settings object
|
|
732
|
+
* - onSave: (typography) => void
|
|
733
|
+
*/
|
|
734
|
+
interface TextPreset {
|
|
735
|
+
size: Record<string, number>;
|
|
736
|
+
sizeUnit: string;
|
|
737
|
+
lineHeight: string;
|
|
738
|
+
fontRole: string;
|
|
739
|
+
weight: number;
|
|
740
|
+
letterSpacing: string;
|
|
741
|
+
}
|
|
742
|
+
interface TypographySettings {
|
|
743
|
+
fonts: Record<string, string>;
|
|
744
|
+
body: TextPreset;
|
|
745
|
+
headings: Record<string, TextPreset>;
|
|
746
|
+
}
|
|
747
|
+
declare function TypographyPanel({ typography, onSave, }: {
|
|
748
|
+
typography: TypographySettings;
|
|
749
|
+
onSave: (settings: TypographySettings) => void;
|
|
750
|
+
}): react_jsx_runtime.JSX.Element;
|
|
751
|
+
|
|
671
752
|
declare function useDisclosure(initial?: boolean): {
|
|
672
753
|
isOpen: boolean;
|
|
673
754
|
open: () => void;
|
|
@@ -752,4 +833,4 @@ interface SkeletonProps {
|
|
|
752
833
|
}
|
|
753
834
|
declare function Skeleton({ width, height, rounded, style }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
754
835
|
|
|
755
|
-
export { Alert, type AlertProps, AppShell, type AppShellProps, AuthButton, AuthCard, AuthDivider, AuthField, AuthFootnote, AuthHeader, AuthLogo, AuthShell, Badge, type BadgeProps, type Breadcrumb, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, ColorPicker, ColorPickerAlpha, ColorPickerEyeDropper, ColorPickerFormat, ColorPickerHexOutput, ColorPickerHue, ColorPickerOutput, ColorPickerSelection, type Column, ConfirmDialog, type ConfirmDialogProps, DEVICES, DEVICE_ICONS, DashboardLayout, type DashboardLayoutProps, DataTable, type DataTableProps, type DeviceKey, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, FormField, type FormFieldProps, FormLayout, type FormLayoutProps, FormSection, type FormSectionProps, HslColorInput, ImagePickerField, Input, type InputProps, Label, LoadingSpinner, type LoadingSpinnerProps, LocalInput, MediaCard, type NavItem, NotificationBell, type NotificationBellProps, Page, type PageProps, PageSection, type PageSectionProps, Pagination, type PaginationProps, PlanBadge, type PlanBadgeProps, type PlanId, Popover, PopoverContent, PopoverTrigger, PostEditorShell, type PostEditorShellProps, PostFiltersBar, type PostFiltersBarProps, type PostListItem, PostListTable, type PostListTableProps, PostSidebarSection, type PostSidebarSectionProps, type PostStatus, PostStatusBadge, type PostStatusBadgeProps, ResponsiveSizeDeviceIcon, ResponsiveSizeField, SearchBar, type SearchBarProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sidebar, type SidebarItem, type SidebarProps, Skeleton, SlugInput, type SlugInputProps, type Stat, Stats, type StatsProps, StorageBar, type StorageBarProps, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, ThemeToggle, type ThemeToggleProps, TiptapEditor, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopBar, type TopBarProps, type UploadProgressItem, UploadProgressPanel, UploadZone, badgeVariants, buttonVariants, cn, useColorPicker, useDisclosure, usePagination };
|
|
836
|
+
export { Alert, type AlertProps, AppShell, type AppShellProps, AuthButton, AuthCard, AuthDivider, AuthField, AuthFootnote, AuthHeader, AuthLogo, AuthShell, Badge, type BadgeProps, type Breadcrumb, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, ColorPicker, ColorPickerAlpha, ColorPickerEyeDropper, ColorPickerFormat, ColorPickerHexOutput, ColorPickerHue, ColorPickerOutput, ColorPickerSelection, type ColorSchema, ColorSchemaPanel, type Column, ConfirmDialog, type ConfirmDialogProps, DEVICES, DEVICE_ICONS, DashboardLayout, type DashboardLayoutProps, DataTable, type DataTableProps, type DeviceKey, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, FormField, type FormFieldProps, FormLayout, type FormLayoutProps, FormSection, type FormSectionProps, HslColorInput, ImagePickerField, Input, type InputProps, Label, LoadingSpinner, type LoadingSpinnerProps, LocalInput, MediaCard, type NavItem, NotificationBell, type NotificationBellProps, Page, type PageProps, PageSection, type PageSectionProps, Pagination, type PaginationProps, PlanBadge, type PlanBadgeProps, type PlanId, Popover, PopoverContent, PopoverTrigger, PostEditorShell, type PostEditorShellProps, PostFiltersBar, type PostFiltersBarProps, type PostListItem, PostListTable, type PostListTableProps, PostSidebarSection, type PostSidebarSectionProps, type PostStatus, PostStatusBadge, type PostStatusBadgeProps, ResponsiveSizeDeviceIcon, ResponsiveSizeField, SearchBar, type SearchBarProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sidebar, type SidebarItem, type SidebarProps, Skeleton, SlugInput, type SlugInputProps, type Stat, Stats, type StatsProps, StorageBar, type StorageBarProps, Switch, Tabs, TabsContent, TabsList, TabsTrigger, type TextPreset, Textarea, type TextareaProps, type Theme, ThemeBuilder, type ThemeBuilderProps, ThemeToggle, type ThemeToggleProps, TiptapEditor, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopBar, type TopBarProps, TypographyPanel, type TypographySettings, type UploadProgressItem, UploadProgressPanel, UploadZone, badgeVariants, buttonVariants, cn, useColorPicker, useDisclosure, usePagination };
|