hazo_ui 4.10.0 → 6.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/CHANGE_LOG.md +79 -1
- package/README.md +8 -43
- package/dist/index.cjs +763 -467
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +46 -59
- package/dist/index.d.ts +46 -59
- package/dist/index.js +633 -356
- package/dist/index.js.map +1 -1
- package/package.json +3 -16
- package/dist/styles.css +0 -156
- package/tailwind.preset.d.ts +0 -8
- package/tailwind.preset.js +0 -91
package/dist/index.d.cts
CHANGED
|
@@ -28,6 +28,7 @@ import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
|
28
28
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
29
29
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
30
30
|
import { StateLevel } from 'hazo_state';
|
|
31
|
+
export { HazoThemeContextValue, HazoThemeProvider, HazoThemeProviderProps, ThemeMode, ThemeScript, ThemeScriptProps, ThemeSetPicker, ThemeSetPickerProps, ThemeToggle, ThemeToggleProps, useTheme } from 'hazo_theme/client';
|
|
31
32
|
import { BrandIdentity, FooterConfig } from 'hazo_theme';
|
|
32
33
|
export { toast as rawToast } from 'sonner';
|
|
33
34
|
import 'clsx';
|
|
@@ -293,6 +294,42 @@ interface HazoUiPillRadioProps {
|
|
|
293
294
|
}
|
|
294
295
|
declare function HazoUiPillRadio({ layout, icon_set, data, value, onChange, className, pill_size, equal_width, }: HazoUiPillRadioProps): React$1.JSX.Element;
|
|
295
296
|
|
|
297
|
+
/**
|
|
298
|
+
* Hazo UI Icon Picker Component
|
|
299
|
+
*
|
|
300
|
+
* A trigger + popover icon picker supporting two value shapes:
|
|
301
|
+
* - a single emoji character (e.g. "🔧")
|
|
302
|
+
* - a lucide-react icon reference, prefixed "lucide:" (e.g. "lucide:Wrench")
|
|
303
|
+
*
|
|
304
|
+
* Also exports HazoUiIcon, a small renderer for either value shape, and
|
|
305
|
+
* isLucideValue, a helper to detect the "lucide:" prefix.
|
|
306
|
+
*/
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Returns true when `value` is a lucide-react icon reference
|
|
310
|
+
* (i.e. it starts with the "lucide:" prefix).
|
|
311
|
+
*/
|
|
312
|
+
declare function isLucideValue(value: string): boolean;
|
|
313
|
+
interface HazoUiIconProps {
|
|
314
|
+
value: string;
|
|
315
|
+
size?: number;
|
|
316
|
+
className?: string;
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Renders either a lucide-react icon ("lucide:Name") or an emoji character.
|
|
320
|
+
* Unknown lucide names render nothing rather than throwing.
|
|
321
|
+
*/
|
|
322
|
+
declare function HazoUiIcon({ value, size, className }: HazoUiIconProps): React$1.JSX.Element | null;
|
|
323
|
+
interface HazoUiIconPickerProps {
|
|
324
|
+
value: string;
|
|
325
|
+
onChange: (value: string) => void;
|
|
326
|
+
disabled?: boolean;
|
|
327
|
+
className?: string;
|
|
328
|
+
triggerClassName?: string;
|
|
329
|
+
align?: "start" | "center" | "end";
|
|
330
|
+
}
|
|
331
|
+
declare function HazoUiIconPicker({ value, onChange, disabled, className, triggerClassName, align, }: HazoUiIconPickerProps): React$1.JSX.Element;
|
|
332
|
+
|
|
296
333
|
interface InputProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
297
334
|
}
|
|
298
335
|
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
@@ -1982,8 +2019,13 @@ interface HazoUiKanbanFilterProps {
|
|
|
1982
2019
|
* value). Bound to `columnKey` by convention — saving with a different
|
|
1983
2020
|
* status moves the card to a new column through the consumer's
|
|
1984
2021
|
* onCardSave handler.
|
|
2022
|
+
* `richtext` binds to a string HTML key on the item and renders `HazoUiRte`
|
|
2023
|
+
* (the library's existing rich text editor). Content is an HTML string —
|
|
2024
|
+
* on change the field is set to `RteOutput.html`. Required-gating is not
|
|
2025
|
+
* honored for `richtext` (an "empty" RTE still emits `<p></p>`, not `""`,
|
|
2026
|
+
* so it can never read as empty) — same carve-out as `select` / `checkbox`.
|
|
1985
2027
|
*/
|
|
1986
|
-
type KanbanEditorFieldType = "text" | "textarea" | "select" | "number" | "checkbox" | "priority" | "status";
|
|
2028
|
+
type KanbanEditorFieldType = "text" | "textarea" | "select" | "number" | "checkbox" | "priority" | "status" | "richtext";
|
|
1987
2029
|
/**
|
|
1988
2030
|
* Declarative field config for the default editor. One per editable key.
|
|
1989
2031
|
*/
|
|
@@ -1995,12 +2037,12 @@ interface KanbanEditorField {
|
|
|
1995
2037
|
type: KanbanEditorFieldType;
|
|
1996
2038
|
/** Options list for `type: 'select'`. Ignored otherwise. */
|
|
1997
2039
|
options?: string[];
|
|
1998
|
-
/** Placeholder for `type: 'text' | 'textarea' | 'number' | 'select' | 'priority'`. */
|
|
2040
|
+
/** Placeholder for `type: 'text' | 'textarea' | 'number' | 'select' | 'priority' | 'richtext'`. */
|
|
1999
2041
|
placeholder?: string;
|
|
2000
2042
|
/**
|
|
2001
2043
|
* If true, the field shows a `*` marker on its label and Save is disabled
|
|
2002
2044
|
* when empty. Only honored for text / textarea / number; ignored for
|
|
2003
|
-
* select / priority / checkbox (those types are never "empty").
|
|
2045
|
+
* select / priority / checkbox / richtext (those types are never "empty").
|
|
2004
2046
|
*/
|
|
2005
2047
|
required?: boolean;
|
|
2006
2048
|
}
|
|
@@ -2618,61 +2660,6 @@ interface HazoUiMemoryDropdownProps {
|
|
|
2618
2660
|
*/
|
|
2619
2661
|
declare function HazoUiMemoryDropdown({ history_key, placeholder, on_select, add_entry, empty_label, }: HazoUiMemoryDropdownProps): React$1.JSX.Element;
|
|
2620
2662
|
|
|
2621
|
-
/** User-facing theme mode. "system" resolves against the OS preference. */
|
|
2622
|
-
type Theme = "light" | "dark" | "system";
|
|
2623
|
-
interface ThemeProviderProps {
|
|
2624
|
-
children: React$1.ReactNode;
|
|
2625
|
-
/** Initial mode when no value is stored yet. Default: "system". */
|
|
2626
|
-
defaultTheme?: Theme;
|
|
2627
|
-
/** localStorage key used to persist the chosen mode. Default: "theme". */
|
|
2628
|
-
storageKey?: string;
|
|
2629
|
-
}
|
|
2630
|
-
interface ThemeContextValue {
|
|
2631
|
-
/** The user's chosen mode. */
|
|
2632
|
-
theme: Theme;
|
|
2633
|
-
/** Persist + apply a new mode. */
|
|
2634
|
-
setTheme: (theme: Theme) => void;
|
|
2635
|
-
/** The effective "light"|"dark" after resolving "system". */
|
|
2636
|
-
resolvedTheme: "light" | "dark";
|
|
2637
|
-
/** Flips between light and dark (sets an explicit mode, never "system"). */
|
|
2638
|
-
toggleTheme: () => void;
|
|
2639
|
-
}
|
|
2640
|
-
/**
|
|
2641
|
-
* Provides theme state/context and keeps `<html class="dark">` in sync.
|
|
2642
|
-
*
|
|
2643
|
-
* SSR-safe: reads/writes to `window`/`document` only ever happen inside
|
|
2644
|
-
* `useEffect`, never during render, so server and first-client render match.
|
|
2645
|
-
*/
|
|
2646
|
-
declare function HazoThemeProvider({ children, defaultTheme, storageKey, }: ThemeProviderProps): React$1.ReactElement;
|
|
2647
|
-
/**
|
|
2648
|
-
* Reads the theme context.
|
|
2649
|
-
* @throws if called outside a <HazoThemeProvider>.
|
|
2650
|
-
*/
|
|
2651
|
-
declare function useTheme(): ThemeContextValue;
|
|
2652
|
-
interface ThemeScriptProps {
|
|
2653
|
-
/** Must match the storageKey passed to <HazoThemeProvider>. Default: "theme". */
|
|
2654
|
-
storageKey?: string;
|
|
2655
|
-
}
|
|
2656
|
-
/**
|
|
2657
|
-
* No-flash inline script. Place in the root layout's <head>, BEFORE any
|
|
2658
|
-
* stylesheet/content that depends on the theme, so the `dark` class lands
|
|
2659
|
-
* on <html> before first paint.
|
|
2660
|
-
*
|
|
2661
|
-
* Reads `localStorage.getItem(storageKey)` (JSON-stringified by
|
|
2662
|
-
* useLocalStorage, so `"dark"` is stored as the string `"dark"` — parsed
|
|
2663
|
-
* safely with a try/catch fallback to a raw-string strip of the quotes).
|
|
2664
|
-
* Wrapped entirely in try/catch so it can never throw and block rendering.
|
|
2665
|
-
*/
|
|
2666
|
-
declare function ThemeScript({ storageKey }: ThemeScriptProps): React$1.ReactElement;
|
|
2667
|
-
interface ThemeToggleProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
2668
|
-
className?: string;
|
|
2669
|
-
}
|
|
2670
|
-
/**
|
|
2671
|
-
* Minimal, unopinionated light/dark toggle button. Shows Sun/Moon (lucide)
|
|
2672
|
-
* and calls `toggleTheme()` from context on click.
|
|
2673
|
-
*/
|
|
2674
|
-
declare const ThemeToggle: React$1.ForwardRefExoticComponent<ThemeToggleProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2675
|
-
|
|
2676
2663
|
interface LogoProps {
|
|
2677
2664
|
/** Light-mode logo URL. */
|
|
2678
2665
|
logoUrl?: string;
|
|
@@ -2712,4 +2699,4 @@ interface AppFooterProps {
|
|
|
2712
2699
|
}
|
|
2713
2700
|
declare function AppFooter({ variant, footer, identity, className }: AppFooterProps): React$1.JSX.Element;
|
|
2714
2701
|
|
|
2715
|
-
export { ANIMATION_PRESETS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AnimationPreset, AppFooter, type AppFooterProps, AppHeader, type AppHeaderProps, type BaseCommandInputProps, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CELEBRATION_GRADIENT, Calendar, CanvasTextToolbar, type CanvasTextToolbarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CelebrationPayload, CelebrationProvider, type CelebrationProviderProps, type CelebrationShareableCard, type ChartDataPoint, type ChartDataSeries, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type CommandEditContext, type CommandItem$1 as CommandItem, CommandNodeExtension, CommandPill, type CommandPillProps, CommandPopover, type CommandPopoverProps, type CommandTextOutput, type ConfirmDialogVariant, type DateRangeOption, DateRangeSelector, type DateRangeSelectorProps, type DialogVariant, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, ErrorBanner, type ErrorBannerProps, type ErrorBannerSeverity, ErrorPage, type ErrorPageProps, type EtaProgressHandle, type FilterConfig, type FilterField, FunnelChart, type FunnelChartProps, type FunnelStep, HazoContextProvider, type HazoContextProviderProps,
|
|
2702
|
+
export { ANIMATION_PRESETS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AnimationPreset, AppFooter, type AppFooterProps, AppHeader, type AppHeaderProps, type BaseCommandInputProps, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CELEBRATION_GRADIENT, Calendar, CanvasTextToolbar, type CanvasTextToolbarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CelebrationPayload, CelebrationProvider, type CelebrationProviderProps, type CelebrationShareableCard, type ChartDataPoint, type ChartDataSeries, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type CommandEditContext, type CommandItem$1 as CommandItem, CommandNodeExtension, CommandPill, type CommandPillProps, CommandPopover, type CommandPopoverProps, type CommandTextOutput, type ConfirmDialogVariant, type DateRangeOption, DateRangeSelector, type DateRangeSelectorProps, type DialogVariant, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, ErrorBanner, type ErrorBannerProps, type ErrorBannerSeverity, ErrorPage, type ErrorPageProps, type EtaProgressHandle, type FilterConfig, type FilterField, FunnelChart, type FunnelChartProps, type FunnelStep, HazoContextProvider, type HazoContextProviderProps, type HazoUiConfig, HazoUiConfirmDialog, type HazoUiConfirmDialogProps, HazoUiDialog, DialogClose as HazoUiDialogClose, DialogContent as HazoUiDialogContent, DialogDescription as HazoUiDialogDescription, DialogFooter as HazoUiDialogFooter, DialogHeader as HazoUiDialogHeader, type HazoUiDialogKind, DialogOverlay as HazoUiDialogOverlay, DialogPortal as HazoUiDialogPortal, type HazoUiDialogProps, Dialog as HazoUiDialogRoot, DialogTitle as HazoUiDialogTitle, DialogTrigger as HazoUiDialogTrigger, HazoUiEtaProgress, type HazoUiEtaProgressProps, HazoUiFlexInput, type HazoUiFlexInputProps, HazoUiFlexRadio, type HazoUiFlexRadioItem, type HazoUiFlexRadioProps, HazoUiIcon, HazoUiIconPicker, type HazoUiIconPickerProps, type HazoUiIconProps, HazoUiImageCropper, HazoUiImageCropperDialog, type HazoUiImageCropperDialogProps, type HazoUiImageCropperHandle, type HazoUiImageCropperProps, HazoUiKanban, HazoUiKanbanFilter, type HazoUiKanbanFilterProps, type HazoUiKanbanProps, HazoUiMemoryDropdown, type HazoUiMemoryDropdownProps, HazoUiMultiFilterDialog, HazoUiMultiSortDialog, HazoUiPillRadio, type HazoUiPillRadioItem, type HazoUiPillRadioProps, HazoUiProgressBar, type HazoUiProgressBarProps, HazoUiRte, type HazoUiRteProps, HazoUiTable, type HazoUiTablePagination, type HazoUiTableProps, type HazoUiTableServerLoadArgs, type HazoUiTableServerLoadResult, HazoUiTextarea, type HazoUiTextareaProps, HazoUiTextbox, type HazoUiTextboxProps, HazoUiToaster, type HazoUiToasterProps, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputAffix, type InputAffixProps, type InsertedCommand, InverseSparkline, type InverseSparklineProps, type KanbanAnnouncements, type KanbanColumn, type KanbanEditorCtx, type KanbanEditorField, type KanbanEditorFieldType, type KanbanFilterValue, type KanbanItem, type KanbanMoveEvent, type KanbanMoveHandle, type KanbanPriority, type KanbanReorderEvent, type KanbanSaveEvent, Label, LoadingTimeout, type LoadingTimeoutProps, type Logger, Logo, type LogoProps, MarkdownEditor, type MarkdownEditorProps, type MarkdownEmbed, type MemoryEntry, NotificationCountBadge, type NotificationCountBadgeProps, NotificationItem, type NotificationItemProps, NotificationPanel, type NotificationPanelProps, Popover, PopoverContent, PopoverTrigger, type PrefixColor, type PrefixConfig, ProgressiveImage, type ProgressiveImageProps, RadioGroup, RadioGroupItem, type RteAttachment, type RteOutput, type RteVariable, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Command as ShadcnCommand, CommandEmpty as ShadcnCommandEmpty, CommandGroup as ShadcnCommandGroup, CommandInput as ShadcnCommandInput, CommandItem as ShadcnCommandItem, CommandList as ShadcnCommandList, Skeleton, SkeletonBar, type SkeletonBarProps, SkeletonCircle, type SkeletonCircleProps, SkeletonGroup, type SkeletonGroupProps, SkeletonRect, type SkeletonRectProps, Slider, type SortConfig, type SortField, Sparkline, type SparklineProps, Spinner, type StackedBar, StackedBars, type StackedBarsProps, type SuggestionState, Switch, Table, TableBody, TableCaption, TableCell, type TableColumn, type TableFilter, TableFooter, type TableFormatter, TableHead, TableHeader, TableRow, type TableSort, type TableSortEntry, type TableSortProp, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type ToastOptions, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseCopyToClipboardResult, type UseErrorDisplayResult, type UseEtaProgressOptions, type UseFullscreenRefResult, type UseFullscreenResult, type UseLoadingStateResult, type UseWakeLockResult, applyKanbanFilter, buttonGroupVariants, celebrate, computeEta, create_command_suggestion_extension, easeToward, errorToast, format_num, generateUUID, get_hazo_ui_config, get_logger, isLucideValue, median, parse_commands_from_text, pick_x_label_indices, reset_hazo_ui_config, resolve_animation_classes, set_hazo_ui_config, set_logger, successToast, text_to_tiptap_content, toggleVariants, upsertEntry as upsertMemoryEntry, useClickOutside, useCopyToClipboard, useDebounce, useErrorDisplay, useEtaProgress, useFullscreen, useIsMobile, useLoadingState, useLocalStorage, useMediaQuery, useSessionStorage, useViewport, useWakeLock, use_fullscreen, use_wake_lock };
|
package/dist/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
|
28
28
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
29
29
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
30
30
|
import { StateLevel } from 'hazo_state';
|
|
31
|
+
export { HazoThemeContextValue, HazoThemeProvider, HazoThemeProviderProps, ThemeMode, ThemeScript, ThemeScriptProps, ThemeSetPicker, ThemeSetPickerProps, ThemeToggle, ThemeToggleProps, useTheme } from 'hazo_theme/client';
|
|
31
32
|
import { BrandIdentity, FooterConfig } from 'hazo_theme';
|
|
32
33
|
export { toast as rawToast } from 'sonner';
|
|
33
34
|
import 'clsx';
|
|
@@ -293,6 +294,42 @@ interface HazoUiPillRadioProps {
|
|
|
293
294
|
}
|
|
294
295
|
declare function HazoUiPillRadio({ layout, icon_set, data, value, onChange, className, pill_size, equal_width, }: HazoUiPillRadioProps): React$1.JSX.Element;
|
|
295
296
|
|
|
297
|
+
/**
|
|
298
|
+
* Hazo UI Icon Picker Component
|
|
299
|
+
*
|
|
300
|
+
* A trigger + popover icon picker supporting two value shapes:
|
|
301
|
+
* - a single emoji character (e.g. "🔧")
|
|
302
|
+
* - a lucide-react icon reference, prefixed "lucide:" (e.g. "lucide:Wrench")
|
|
303
|
+
*
|
|
304
|
+
* Also exports HazoUiIcon, a small renderer for either value shape, and
|
|
305
|
+
* isLucideValue, a helper to detect the "lucide:" prefix.
|
|
306
|
+
*/
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Returns true when `value` is a lucide-react icon reference
|
|
310
|
+
* (i.e. it starts with the "lucide:" prefix).
|
|
311
|
+
*/
|
|
312
|
+
declare function isLucideValue(value: string): boolean;
|
|
313
|
+
interface HazoUiIconProps {
|
|
314
|
+
value: string;
|
|
315
|
+
size?: number;
|
|
316
|
+
className?: string;
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Renders either a lucide-react icon ("lucide:Name") or an emoji character.
|
|
320
|
+
* Unknown lucide names render nothing rather than throwing.
|
|
321
|
+
*/
|
|
322
|
+
declare function HazoUiIcon({ value, size, className }: HazoUiIconProps): React$1.JSX.Element | null;
|
|
323
|
+
interface HazoUiIconPickerProps {
|
|
324
|
+
value: string;
|
|
325
|
+
onChange: (value: string) => void;
|
|
326
|
+
disabled?: boolean;
|
|
327
|
+
className?: string;
|
|
328
|
+
triggerClassName?: string;
|
|
329
|
+
align?: "start" | "center" | "end";
|
|
330
|
+
}
|
|
331
|
+
declare function HazoUiIconPicker({ value, onChange, disabled, className, triggerClassName, align, }: HazoUiIconPickerProps): React$1.JSX.Element;
|
|
332
|
+
|
|
296
333
|
interface InputProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
297
334
|
}
|
|
298
335
|
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
@@ -1982,8 +2019,13 @@ interface HazoUiKanbanFilterProps {
|
|
|
1982
2019
|
* value). Bound to `columnKey` by convention — saving with a different
|
|
1983
2020
|
* status moves the card to a new column through the consumer's
|
|
1984
2021
|
* onCardSave handler.
|
|
2022
|
+
* `richtext` binds to a string HTML key on the item and renders `HazoUiRte`
|
|
2023
|
+
* (the library's existing rich text editor). Content is an HTML string —
|
|
2024
|
+
* on change the field is set to `RteOutput.html`. Required-gating is not
|
|
2025
|
+
* honored for `richtext` (an "empty" RTE still emits `<p></p>`, not `""`,
|
|
2026
|
+
* so it can never read as empty) — same carve-out as `select` / `checkbox`.
|
|
1985
2027
|
*/
|
|
1986
|
-
type KanbanEditorFieldType = "text" | "textarea" | "select" | "number" | "checkbox" | "priority" | "status";
|
|
2028
|
+
type KanbanEditorFieldType = "text" | "textarea" | "select" | "number" | "checkbox" | "priority" | "status" | "richtext";
|
|
1987
2029
|
/**
|
|
1988
2030
|
* Declarative field config for the default editor. One per editable key.
|
|
1989
2031
|
*/
|
|
@@ -1995,12 +2037,12 @@ interface KanbanEditorField {
|
|
|
1995
2037
|
type: KanbanEditorFieldType;
|
|
1996
2038
|
/** Options list for `type: 'select'`. Ignored otherwise. */
|
|
1997
2039
|
options?: string[];
|
|
1998
|
-
/** Placeholder for `type: 'text' | 'textarea' | 'number' | 'select' | 'priority'`. */
|
|
2040
|
+
/** Placeholder for `type: 'text' | 'textarea' | 'number' | 'select' | 'priority' | 'richtext'`. */
|
|
1999
2041
|
placeholder?: string;
|
|
2000
2042
|
/**
|
|
2001
2043
|
* If true, the field shows a `*` marker on its label and Save is disabled
|
|
2002
2044
|
* when empty. Only honored for text / textarea / number; ignored for
|
|
2003
|
-
* select / priority / checkbox (those types are never "empty").
|
|
2045
|
+
* select / priority / checkbox / richtext (those types are never "empty").
|
|
2004
2046
|
*/
|
|
2005
2047
|
required?: boolean;
|
|
2006
2048
|
}
|
|
@@ -2618,61 +2660,6 @@ interface HazoUiMemoryDropdownProps {
|
|
|
2618
2660
|
*/
|
|
2619
2661
|
declare function HazoUiMemoryDropdown({ history_key, placeholder, on_select, add_entry, empty_label, }: HazoUiMemoryDropdownProps): React$1.JSX.Element;
|
|
2620
2662
|
|
|
2621
|
-
/** User-facing theme mode. "system" resolves against the OS preference. */
|
|
2622
|
-
type Theme = "light" | "dark" | "system";
|
|
2623
|
-
interface ThemeProviderProps {
|
|
2624
|
-
children: React$1.ReactNode;
|
|
2625
|
-
/** Initial mode when no value is stored yet. Default: "system". */
|
|
2626
|
-
defaultTheme?: Theme;
|
|
2627
|
-
/** localStorage key used to persist the chosen mode. Default: "theme". */
|
|
2628
|
-
storageKey?: string;
|
|
2629
|
-
}
|
|
2630
|
-
interface ThemeContextValue {
|
|
2631
|
-
/** The user's chosen mode. */
|
|
2632
|
-
theme: Theme;
|
|
2633
|
-
/** Persist + apply a new mode. */
|
|
2634
|
-
setTheme: (theme: Theme) => void;
|
|
2635
|
-
/** The effective "light"|"dark" after resolving "system". */
|
|
2636
|
-
resolvedTheme: "light" | "dark";
|
|
2637
|
-
/** Flips between light and dark (sets an explicit mode, never "system"). */
|
|
2638
|
-
toggleTheme: () => void;
|
|
2639
|
-
}
|
|
2640
|
-
/**
|
|
2641
|
-
* Provides theme state/context and keeps `<html class="dark">` in sync.
|
|
2642
|
-
*
|
|
2643
|
-
* SSR-safe: reads/writes to `window`/`document` only ever happen inside
|
|
2644
|
-
* `useEffect`, never during render, so server and first-client render match.
|
|
2645
|
-
*/
|
|
2646
|
-
declare function HazoThemeProvider({ children, defaultTheme, storageKey, }: ThemeProviderProps): React$1.ReactElement;
|
|
2647
|
-
/**
|
|
2648
|
-
* Reads the theme context.
|
|
2649
|
-
* @throws if called outside a <HazoThemeProvider>.
|
|
2650
|
-
*/
|
|
2651
|
-
declare function useTheme(): ThemeContextValue;
|
|
2652
|
-
interface ThemeScriptProps {
|
|
2653
|
-
/** Must match the storageKey passed to <HazoThemeProvider>. Default: "theme". */
|
|
2654
|
-
storageKey?: string;
|
|
2655
|
-
}
|
|
2656
|
-
/**
|
|
2657
|
-
* No-flash inline script. Place in the root layout's <head>, BEFORE any
|
|
2658
|
-
* stylesheet/content that depends on the theme, so the `dark` class lands
|
|
2659
|
-
* on <html> before first paint.
|
|
2660
|
-
*
|
|
2661
|
-
* Reads `localStorage.getItem(storageKey)` (JSON-stringified by
|
|
2662
|
-
* useLocalStorage, so `"dark"` is stored as the string `"dark"` — parsed
|
|
2663
|
-
* safely with a try/catch fallback to a raw-string strip of the quotes).
|
|
2664
|
-
* Wrapped entirely in try/catch so it can never throw and block rendering.
|
|
2665
|
-
*/
|
|
2666
|
-
declare function ThemeScript({ storageKey }: ThemeScriptProps): React$1.ReactElement;
|
|
2667
|
-
interface ThemeToggleProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
2668
|
-
className?: string;
|
|
2669
|
-
}
|
|
2670
|
-
/**
|
|
2671
|
-
* Minimal, unopinionated light/dark toggle button. Shows Sun/Moon (lucide)
|
|
2672
|
-
* and calls `toggleTheme()` from context on click.
|
|
2673
|
-
*/
|
|
2674
|
-
declare const ThemeToggle: React$1.ForwardRefExoticComponent<ThemeToggleProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2675
|
-
|
|
2676
2663
|
interface LogoProps {
|
|
2677
2664
|
/** Light-mode logo URL. */
|
|
2678
2665
|
logoUrl?: string;
|
|
@@ -2712,4 +2699,4 @@ interface AppFooterProps {
|
|
|
2712
2699
|
}
|
|
2713
2700
|
declare function AppFooter({ variant, footer, identity, className }: AppFooterProps): React$1.JSX.Element;
|
|
2714
2701
|
|
|
2715
|
-
export { ANIMATION_PRESETS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AnimationPreset, AppFooter, type AppFooterProps, AppHeader, type AppHeaderProps, type BaseCommandInputProps, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CELEBRATION_GRADIENT, Calendar, CanvasTextToolbar, type CanvasTextToolbarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CelebrationPayload, CelebrationProvider, type CelebrationProviderProps, type CelebrationShareableCard, type ChartDataPoint, type ChartDataSeries, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type CommandEditContext, type CommandItem$1 as CommandItem, CommandNodeExtension, CommandPill, type CommandPillProps, CommandPopover, type CommandPopoverProps, type CommandTextOutput, type ConfirmDialogVariant, type DateRangeOption, DateRangeSelector, type DateRangeSelectorProps, type DialogVariant, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, ErrorBanner, type ErrorBannerProps, type ErrorBannerSeverity, ErrorPage, type ErrorPageProps, type EtaProgressHandle, type FilterConfig, type FilterField, FunnelChart, type FunnelChartProps, type FunnelStep, HazoContextProvider, type HazoContextProviderProps,
|
|
2702
|
+
export { ANIMATION_PRESETS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AnimationPreset, AppFooter, type AppFooterProps, AppHeader, type AppHeaderProps, type BaseCommandInputProps, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CELEBRATION_GRADIENT, Calendar, CanvasTextToolbar, type CanvasTextToolbarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CelebrationPayload, CelebrationProvider, type CelebrationProviderProps, type CelebrationShareableCard, type ChartDataPoint, type ChartDataSeries, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type CommandEditContext, type CommandItem$1 as CommandItem, CommandNodeExtension, CommandPill, type CommandPillProps, CommandPopover, type CommandPopoverProps, type CommandTextOutput, type ConfirmDialogVariant, type DateRangeOption, DateRangeSelector, type DateRangeSelectorProps, type DialogVariant, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, ErrorBanner, type ErrorBannerProps, type ErrorBannerSeverity, ErrorPage, type ErrorPageProps, type EtaProgressHandle, type FilterConfig, type FilterField, FunnelChart, type FunnelChartProps, type FunnelStep, HazoContextProvider, type HazoContextProviderProps, type HazoUiConfig, HazoUiConfirmDialog, type HazoUiConfirmDialogProps, HazoUiDialog, DialogClose as HazoUiDialogClose, DialogContent as HazoUiDialogContent, DialogDescription as HazoUiDialogDescription, DialogFooter as HazoUiDialogFooter, DialogHeader as HazoUiDialogHeader, type HazoUiDialogKind, DialogOverlay as HazoUiDialogOverlay, DialogPortal as HazoUiDialogPortal, type HazoUiDialogProps, Dialog as HazoUiDialogRoot, DialogTitle as HazoUiDialogTitle, DialogTrigger as HazoUiDialogTrigger, HazoUiEtaProgress, type HazoUiEtaProgressProps, HazoUiFlexInput, type HazoUiFlexInputProps, HazoUiFlexRadio, type HazoUiFlexRadioItem, type HazoUiFlexRadioProps, HazoUiIcon, HazoUiIconPicker, type HazoUiIconPickerProps, type HazoUiIconProps, HazoUiImageCropper, HazoUiImageCropperDialog, type HazoUiImageCropperDialogProps, type HazoUiImageCropperHandle, type HazoUiImageCropperProps, HazoUiKanban, HazoUiKanbanFilter, type HazoUiKanbanFilterProps, type HazoUiKanbanProps, HazoUiMemoryDropdown, type HazoUiMemoryDropdownProps, HazoUiMultiFilterDialog, HazoUiMultiSortDialog, HazoUiPillRadio, type HazoUiPillRadioItem, type HazoUiPillRadioProps, HazoUiProgressBar, type HazoUiProgressBarProps, HazoUiRte, type HazoUiRteProps, HazoUiTable, type HazoUiTablePagination, type HazoUiTableProps, type HazoUiTableServerLoadArgs, type HazoUiTableServerLoadResult, HazoUiTextarea, type HazoUiTextareaProps, HazoUiTextbox, type HazoUiTextboxProps, HazoUiToaster, type HazoUiToasterProps, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputAffix, type InputAffixProps, type InsertedCommand, InverseSparkline, type InverseSparklineProps, type KanbanAnnouncements, type KanbanColumn, type KanbanEditorCtx, type KanbanEditorField, type KanbanEditorFieldType, type KanbanFilterValue, type KanbanItem, type KanbanMoveEvent, type KanbanMoveHandle, type KanbanPriority, type KanbanReorderEvent, type KanbanSaveEvent, Label, LoadingTimeout, type LoadingTimeoutProps, type Logger, Logo, type LogoProps, MarkdownEditor, type MarkdownEditorProps, type MarkdownEmbed, type MemoryEntry, NotificationCountBadge, type NotificationCountBadgeProps, NotificationItem, type NotificationItemProps, NotificationPanel, type NotificationPanelProps, Popover, PopoverContent, PopoverTrigger, type PrefixColor, type PrefixConfig, ProgressiveImage, type ProgressiveImageProps, RadioGroup, RadioGroupItem, type RteAttachment, type RteOutput, type RteVariable, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Command as ShadcnCommand, CommandEmpty as ShadcnCommandEmpty, CommandGroup as ShadcnCommandGroup, CommandInput as ShadcnCommandInput, CommandItem as ShadcnCommandItem, CommandList as ShadcnCommandList, Skeleton, SkeletonBar, type SkeletonBarProps, SkeletonCircle, type SkeletonCircleProps, SkeletonGroup, type SkeletonGroupProps, SkeletonRect, type SkeletonRectProps, Slider, type SortConfig, type SortField, Sparkline, type SparklineProps, Spinner, type StackedBar, StackedBars, type StackedBarsProps, type SuggestionState, Switch, Table, TableBody, TableCaption, TableCell, type TableColumn, type TableFilter, TableFooter, type TableFormatter, TableHead, TableHeader, TableRow, type TableSort, type TableSortEntry, type TableSortProp, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type ToastOptions, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseCopyToClipboardResult, type UseErrorDisplayResult, type UseEtaProgressOptions, type UseFullscreenRefResult, type UseFullscreenResult, type UseLoadingStateResult, type UseWakeLockResult, applyKanbanFilter, buttonGroupVariants, celebrate, computeEta, create_command_suggestion_extension, easeToward, errorToast, format_num, generateUUID, get_hazo_ui_config, get_logger, isLucideValue, median, parse_commands_from_text, pick_x_label_indices, reset_hazo_ui_config, resolve_animation_classes, set_hazo_ui_config, set_logger, successToast, text_to_tiptap_content, toggleVariants, upsertEntry as upsertMemoryEntry, useClickOutside, useCopyToClipboard, useDebounce, useErrorDisplay, useEtaProgress, useFullscreen, useIsMobile, useLoadingState, useLocalStorage, useMediaQuery, useSessionStorage, useViewport, useWakeLock, use_fullscreen, use_wake_lock };
|