hazo_ui 3.5.0 → 4.2.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 +56 -0
- package/README.md +111 -0
- package/SETUP_CHECKLIST.md +8 -1
- package/dist/index.cjs +285 -604
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +92 -63
- package/dist/index.d.ts +92 -63
- package/dist/index.js +279 -602
- package/dist/index.js.map +1 -1
- package/package.json +5 -8
package/dist/index.d.cts
CHANGED
|
@@ -27,6 +27,7 @@ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
|
27
27
|
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
28
28
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
29
29
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
30
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
30
31
|
import { StateLevel } from 'hazo_state';
|
|
31
32
|
export { toast as rawToast } from 'sonner';
|
|
32
33
|
import 'clsx';
|
|
@@ -933,6 +934,87 @@ interface HazoUiConfirmDialogProps {
|
|
|
933
934
|
*/
|
|
934
935
|
declare function HazoUiConfirmDialog({ open, onOpenChange, title, description, children, variant, confirmLabel, cancelLabel, showCancelButton, onConfirm, onCancel, loading: external_loading, disabled, accentColor, confirmButtonColor, openAnimation, closeAnimation, }: HazoUiConfirmDialogProps): react_jsx_runtime.JSX.Element;
|
|
935
936
|
|
|
937
|
+
/**
|
|
938
|
+
* hazo_ui_image_cropper/index.tsx
|
|
939
|
+
*
|
|
940
|
+
* Purpose: Round profile-photo cropper with pan/zoom, outputs a 512×512 WebP Blob.
|
|
941
|
+
* Wraps react-easy-crop with a Slider for zoom control and exposes an imperative
|
|
942
|
+
* handle so parent components can trigger blob production on demand.
|
|
943
|
+
*/
|
|
944
|
+
|
|
945
|
+
/** Imperative handle exposed via forwardRef for on-demand blob production. */
|
|
946
|
+
interface HazoUiImageCropperHandle {
|
|
947
|
+
/** Produces the cropped WebP blob using the current pan/zoom state. */
|
|
948
|
+
getCroppedBlob: () => Promise<Blob>;
|
|
949
|
+
}
|
|
950
|
+
interface HazoUiImageCropperProps {
|
|
951
|
+
/** URL or object URL of the source image to crop. */
|
|
952
|
+
imageSrc: string;
|
|
953
|
+
/**
|
|
954
|
+
* Optional callback invoked after the blob is produced.
|
|
955
|
+
* The dialog wrapper uses the imperative handle instead, but direct consumers
|
|
956
|
+
* can wire this for convenience.
|
|
957
|
+
*/
|
|
958
|
+
onCropped?: (blob: Blob) => void | Promise<void>;
|
|
959
|
+
/** Output canvas size in pixels (width = height). Defaults to 512. */
|
|
960
|
+
outputSize?: number;
|
|
961
|
+
/** WebP quality 0–1. Defaults to 0.9. */
|
|
962
|
+
quality?: number;
|
|
963
|
+
/** Label for the zoom slider — pass a translated string. Defaults to "Zoom". */
|
|
964
|
+
zoomLabel?: string;
|
|
965
|
+
/** Additional className for the root container. */
|
|
966
|
+
className?: string;
|
|
967
|
+
}
|
|
968
|
+
/**
|
|
969
|
+
* HazoUiImageCropper
|
|
970
|
+
*
|
|
971
|
+
* Round profile-photo cropper with pan/zoom support.
|
|
972
|
+
* Accepts a `ref` that exposes `getCroppedBlob()` for on-demand production.
|
|
973
|
+
*/
|
|
974
|
+
declare const HazoUiImageCropper: React$1.ForwardRefExoticComponent<HazoUiImageCropperProps & React$1.RefAttributes<HazoUiImageCropperHandle>>;
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
* hazo_ui_image_cropper_dialog/index.tsx
|
|
978
|
+
*
|
|
979
|
+
* Purpose: Dialog wrapper around HazoUiImageCropper.
|
|
980
|
+
* Manages a File → object URL lifecycle, triggers crop on Confirm,
|
|
981
|
+
* and exposes all string labels as props so consuming apps can pass
|
|
982
|
+
* translated strings without requiring next-intl in this package.
|
|
983
|
+
*/
|
|
984
|
+
interface HazoUiImageCropperDialogProps {
|
|
985
|
+
/** Whether the dialog is open. */
|
|
986
|
+
open: boolean;
|
|
987
|
+
/** Called when the dialog open state should change. */
|
|
988
|
+
onOpenChange: (open: boolean) => void;
|
|
989
|
+
/** The File to crop. Pass null to close / clear the dialog. */
|
|
990
|
+
file: File | null;
|
|
991
|
+
/** Called with the resulting WebP Blob when the user confirms. */
|
|
992
|
+
onConfirm: (blob: Blob) => void | Promise<void>;
|
|
993
|
+
/** Called when the user cancels (before the dialog closes). */
|
|
994
|
+
onCancel?: () => void;
|
|
995
|
+
/** Dialog title. Defaults to "Crop photo". */
|
|
996
|
+
title?: string;
|
|
997
|
+
/** Confirm/Save button label. Defaults to "Save". */
|
|
998
|
+
confirmLabel?: string;
|
|
999
|
+
/** Cancel button label. Defaults to "Cancel". */
|
|
1000
|
+
cancelLabel?: string;
|
|
1001
|
+
/** Zoom slider label. Defaults to "Zoom". */
|
|
1002
|
+
zoomLabel?: string;
|
|
1003
|
+
/** Output canvas size in pixels (width = height). Defaults to 512. */
|
|
1004
|
+
outputSize?: number;
|
|
1005
|
+
/** WebP quality 0–1. Defaults to 0.9. */
|
|
1006
|
+
quality?: number;
|
|
1007
|
+
}
|
|
1008
|
+
/**
|
|
1009
|
+
* HazoUiImageCropperDialog
|
|
1010
|
+
*
|
|
1011
|
+
* Wraps HazoUiImageCropper inside HazoUiDialog. The Confirm button calls the
|
|
1012
|
+
* cropper's imperative `getCroppedBlob()`, passes the blob to `onConfirm`,
|
|
1013
|
+
* then closes the dialog. `actionButtonLoading` is set while the blob is being
|
|
1014
|
+
* produced to prevent double-clicks.
|
|
1015
|
+
*/
|
|
1016
|
+
declare function HazoUiImageCropperDialog({ open, onOpenChange, file, onConfirm, onCancel, title, confirmLabel, cancelLabel, zoomLabel, outputSize, quality, }: HazoUiImageCropperDialogProps): react_jsx_runtime.JSX.Element;
|
|
1017
|
+
|
|
936
1018
|
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
937
1019
|
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
938
1020
|
declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
@@ -1159,6 +1241,15 @@ declare function ButtonGroupText({ className, asChild, ...props }: React$1.Compo
|
|
|
1159
1241
|
}): react_jsx_runtime.JSX.Element;
|
|
1160
1242
|
declare function ButtonGroupSeparator({ className, orientation, ...props }: React$1.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
|
|
1161
1243
|
|
|
1244
|
+
declare const Slider: React$1.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1245
|
+
|
|
1246
|
+
interface InputAffixProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "prefix"> {
|
|
1247
|
+
prefix?: React$1.ReactNode;
|
|
1248
|
+
suffix?: React$1.ReactNode;
|
|
1249
|
+
containerClassName?: string;
|
|
1250
|
+
}
|
|
1251
|
+
declare const InputAffix: React$1.ForwardRefExoticComponent<InputAffixProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
1252
|
+
|
|
1162
1253
|
interface SkeletonBaseProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1163
1254
|
className?: string;
|
|
1164
1255
|
}
|
|
@@ -1889,12 +1980,6 @@ declare function HazoUiTable<TRow extends object = any>(props: HazoUiTableProps<
|
|
|
1889
1980
|
type ChartDataPoint = number | null;
|
|
1890
1981
|
/** Ordered time-series for a single line / area / sparkline. */
|
|
1891
1982
|
type ChartDataSeries = ChartDataPoint[];
|
|
1892
|
-
/** Multi-line chart series with its own color + label. */
|
|
1893
|
-
interface MultiSeries {
|
|
1894
|
-
label: string;
|
|
1895
|
-
color: string;
|
|
1896
|
-
data: ChartDataSeries;
|
|
1897
|
-
}
|
|
1898
1983
|
/** Single stacked bar — one column on the X-axis. */
|
|
1899
1984
|
interface StackedBar {
|
|
1900
1985
|
/** Display label below the bar (date, category, etc.). */
|
|
@@ -1968,62 +2053,6 @@ interface InverseSparklineProps {
|
|
|
1968
2053
|
}
|
|
1969
2054
|
declare function InverseSparkline({ data, color, className, width, height, }: InverseSparklineProps): React$1.ReactElement;
|
|
1970
2055
|
|
|
1971
|
-
/**
|
|
1972
|
-
* LineChart — full-anatomy single-series chart (PRD §6b spec).
|
|
1973
|
-
*
|
|
1974
|
-
* ┌─────────────────────────────────────────────┐
|
|
1975
|
-
* │ Y-max ─ - - - - - - - - - - - - - - - - - │ ← three dashed gridlines
|
|
1976
|
-
* │ Y-mid ─ - - - - - - - - - - ╭──•value │ ← marker dot + label
|
|
1977
|
-
* │ Y-min ─ - - - - - - -╭──────╯ │ + dashed guide to Y-axis
|
|
1978
|
-
* │ └───────────────────────────────── │
|
|
1979
|
-
* │ Mar 4 Mar 10 Mar 17 │ ← three X labels
|
|
1980
|
-
* └─────────────────────────────────────────────┘
|
|
1981
|
-
*
|
|
1982
|
-
* Hover anywhere over the plot area to surface a cursor line + value
|
|
1983
|
-
* bubble at the nearest data point. Set `showTooltip={false}` to disable
|
|
1984
|
-
* — useful when the chart is small or non-interactive (print export).
|
|
1985
|
-
*/
|
|
1986
|
-
|
|
1987
|
-
interface LineChartProps {
|
|
1988
|
-
/** Time-series. `null` entries are gaps in the line. */
|
|
1989
|
-
data: ChartDataSeries;
|
|
1990
|
-
/** Labels for the X-axis. Length should match `data`. */
|
|
1991
|
-
dates: string[];
|
|
1992
|
-
/** Stroke / area / marker color. */
|
|
1993
|
-
color: string;
|
|
1994
|
-
/** Override default 360-wide viewBox. */
|
|
1995
|
-
width?: number;
|
|
1996
|
-
/** Override default 130-tall viewBox. */
|
|
1997
|
-
height?: number;
|
|
1998
|
-
/** Optional suffix shown next to the current-value label (e.g. "%"). */
|
|
1999
|
-
unit?: string;
|
|
2000
|
-
/** Disable hover tooltip. Defaults to enabled. */
|
|
2001
|
-
showTooltip?: boolean;
|
|
2002
|
-
/** Container className passthrough. */
|
|
2003
|
-
className?: string;
|
|
2004
|
-
}
|
|
2005
|
-
declare function LineChart({ data, dates, color, width, height, unit, showTooltip, className, }: LineChartProps): React$1.ReactElement;
|
|
2006
|
-
|
|
2007
|
-
/**
|
|
2008
|
-
* MultiLineChart — multi-series chart with shared Y-axis.
|
|
2009
|
-
*
|
|
2010
|
-
* No area fill (PRD §6b — "multi-series uses lines only to avoid color
|
|
2011
|
-
* collisions"). Each series gets a per-endpoint marker + value label so
|
|
2012
|
-
* the latest value is readable without hovering. Hover surfaces a single
|
|
2013
|
-
* cursor line with one bubble per series stacked vertically.
|
|
2014
|
-
*/
|
|
2015
|
-
|
|
2016
|
-
interface MultiLineChartProps {
|
|
2017
|
-
series: MultiSeries[];
|
|
2018
|
-
dates: string[];
|
|
2019
|
-
width?: number;
|
|
2020
|
-
height?: number;
|
|
2021
|
-
showTooltip?: boolean;
|
|
2022
|
-
showLegend?: boolean;
|
|
2023
|
-
className?: string;
|
|
2024
|
-
}
|
|
2025
|
-
declare function MultiLineChart({ series, dates, width, height, showTooltip, showLegend, className, }: MultiLineChartProps): React$1.ReactElement;
|
|
2026
|
-
|
|
2027
2056
|
/**
|
|
2028
2057
|
* StackedBars — one vertical bar per X position, each split into top-to-bottom
|
|
2029
2058
|
* colored bands.
|
|
@@ -2290,4 +2319,4 @@ interface HazoUiEtaProgressProps {
|
|
|
2290
2319
|
*/
|
|
2291
2320
|
declare function HazoUiEtaProgress({ estimateKey, unitCount, concurrency, windowSize, fallbackUnitMs, level, label, endpoint, handleRef, className, }: HazoUiEtaProgressProps): react_jsx_runtime.JSX.Element;
|
|
2292
2321
|
|
|
2293
|
-
export { ANIMATION_PRESETS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AnimationPreset, type BaseCommandInputProps, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CELEBRATION_GRADIENT, Calendar, 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, 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, HazoUiKanban, HazoUiKanbanFilter, type HazoUiKanbanFilterProps, type HazoUiKanbanProps, 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, 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,
|
|
2322
|
+
export { ANIMATION_PRESETS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AnimationPreset, type BaseCommandInputProps, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CELEBRATION_GRADIENT, Calendar, 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, 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, HazoUiImageCropper, HazoUiImageCropperDialog, type HazoUiImageCropperDialogProps, type HazoUiImageCropperHandle, type HazoUiImageCropperProps, HazoUiKanban, HazoUiKanbanFilter, type HazoUiKanbanFilterProps, type HazoUiKanbanProps, 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, MarkdownEditor, type MarkdownEditorProps, type MarkdownEmbed, 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, 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, useClickOutside, useCopyToClipboard, useDebounce, useErrorDisplay, useEtaProgress, useFullscreen, useIsMobile, useLoadingState, useLocalStorage, useMediaQuery, useSessionStorage, useViewport, useWakeLock, use_fullscreen, use_wake_lock };
|
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
|
27
27
|
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
28
28
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
29
29
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
30
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
30
31
|
import { StateLevel } from 'hazo_state';
|
|
31
32
|
export { toast as rawToast } from 'sonner';
|
|
32
33
|
import 'clsx';
|
|
@@ -933,6 +934,87 @@ interface HazoUiConfirmDialogProps {
|
|
|
933
934
|
*/
|
|
934
935
|
declare function HazoUiConfirmDialog({ open, onOpenChange, title, description, children, variant, confirmLabel, cancelLabel, showCancelButton, onConfirm, onCancel, loading: external_loading, disabled, accentColor, confirmButtonColor, openAnimation, closeAnimation, }: HazoUiConfirmDialogProps): react_jsx_runtime.JSX.Element;
|
|
935
936
|
|
|
937
|
+
/**
|
|
938
|
+
* hazo_ui_image_cropper/index.tsx
|
|
939
|
+
*
|
|
940
|
+
* Purpose: Round profile-photo cropper with pan/zoom, outputs a 512×512 WebP Blob.
|
|
941
|
+
* Wraps react-easy-crop with a Slider for zoom control and exposes an imperative
|
|
942
|
+
* handle so parent components can trigger blob production on demand.
|
|
943
|
+
*/
|
|
944
|
+
|
|
945
|
+
/** Imperative handle exposed via forwardRef for on-demand blob production. */
|
|
946
|
+
interface HazoUiImageCropperHandle {
|
|
947
|
+
/** Produces the cropped WebP blob using the current pan/zoom state. */
|
|
948
|
+
getCroppedBlob: () => Promise<Blob>;
|
|
949
|
+
}
|
|
950
|
+
interface HazoUiImageCropperProps {
|
|
951
|
+
/** URL or object URL of the source image to crop. */
|
|
952
|
+
imageSrc: string;
|
|
953
|
+
/**
|
|
954
|
+
* Optional callback invoked after the blob is produced.
|
|
955
|
+
* The dialog wrapper uses the imperative handle instead, but direct consumers
|
|
956
|
+
* can wire this for convenience.
|
|
957
|
+
*/
|
|
958
|
+
onCropped?: (blob: Blob) => void | Promise<void>;
|
|
959
|
+
/** Output canvas size in pixels (width = height). Defaults to 512. */
|
|
960
|
+
outputSize?: number;
|
|
961
|
+
/** WebP quality 0–1. Defaults to 0.9. */
|
|
962
|
+
quality?: number;
|
|
963
|
+
/** Label for the zoom slider — pass a translated string. Defaults to "Zoom". */
|
|
964
|
+
zoomLabel?: string;
|
|
965
|
+
/** Additional className for the root container. */
|
|
966
|
+
className?: string;
|
|
967
|
+
}
|
|
968
|
+
/**
|
|
969
|
+
* HazoUiImageCropper
|
|
970
|
+
*
|
|
971
|
+
* Round profile-photo cropper with pan/zoom support.
|
|
972
|
+
* Accepts a `ref` that exposes `getCroppedBlob()` for on-demand production.
|
|
973
|
+
*/
|
|
974
|
+
declare const HazoUiImageCropper: React$1.ForwardRefExoticComponent<HazoUiImageCropperProps & React$1.RefAttributes<HazoUiImageCropperHandle>>;
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
* hazo_ui_image_cropper_dialog/index.tsx
|
|
978
|
+
*
|
|
979
|
+
* Purpose: Dialog wrapper around HazoUiImageCropper.
|
|
980
|
+
* Manages a File → object URL lifecycle, triggers crop on Confirm,
|
|
981
|
+
* and exposes all string labels as props so consuming apps can pass
|
|
982
|
+
* translated strings without requiring next-intl in this package.
|
|
983
|
+
*/
|
|
984
|
+
interface HazoUiImageCropperDialogProps {
|
|
985
|
+
/** Whether the dialog is open. */
|
|
986
|
+
open: boolean;
|
|
987
|
+
/** Called when the dialog open state should change. */
|
|
988
|
+
onOpenChange: (open: boolean) => void;
|
|
989
|
+
/** The File to crop. Pass null to close / clear the dialog. */
|
|
990
|
+
file: File | null;
|
|
991
|
+
/** Called with the resulting WebP Blob when the user confirms. */
|
|
992
|
+
onConfirm: (blob: Blob) => void | Promise<void>;
|
|
993
|
+
/** Called when the user cancels (before the dialog closes). */
|
|
994
|
+
onCancel?: () => void;
|
|
995
|
+
/** Dialog title. Defaults to "Crop photo". */
|
|
996
|
+
title?: string;
|
|
997
|
+
/** Confirm/Save button label. Defaults to "Save". */
|
|
998
|
+
confirmLabel?: string;
|
|
999
|
+
/** Cancel button label. Defaults to "Cancel". */
|
|
1000
|
+
cancelLabel?: string;
|
|
1001
|
+
/** Zoom slider label. Defaults to "Zoom". */
|
|
1002
|
+
zoomLabel?: string;
|
|
1003
|
+
/** Output canvas size in pixels (width = height). Defaults to 512. */
|
|
1004
|
+
outputSize?: number;
|
|
1005
|
+
/** WebP quality 0–1. Defaults to 0.9. */
|
|
1006
|
+
quality?: number;
|
|
1007
|
+
}
|
|
1008
|
+
/**
|
|
1009
|
+
* HazoUiImageCropperDialog
|
|
1010
|
+
*
|
|
1011
|
+
* Wraps HazoUiImageCropper inside HazoUiDialog. The Confirm button calls the
|
|
1012
|
+
* cropper's imperative `getCroppedBlob()`, passes the blob to `onConfirm`,
|
|
1013
|
+
* then closes the dialog. `actionButtonLoading` is set while the blob is being
|
|
1014
|
+
* produced to prevent double-clicks.
|
|
1015
|
+
*/
|
|
1016
|
+
declare function HazoUiImageCropperDialog({ open, onOpenChange, file, onConfirm, onCancel, title, confirmLabel, cancelLabel, zoomLabel, outputSize, quality, }: HazoUiImageCropperDialogProps): react_jsx_runtime.JSX.Element;
|
|
1017
|
+
|
|
936
1018
|
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
937
1019
|
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
938
1020
|
declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
@@ -1159,6 +1241,15 @@ declare function ButtonGroupText({ className, asChild, ...props }: React$1.Compo
|
|
|
1159
1241
|
}): react_jsx_runtime.JSX.Element;
|
|
1160
1242
|
declare function ButtonGroupSeparator({ className, orientation, ...props }: React$1.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
|
|
1161
1243
|
|
|
1244
|
+
declare const Slider: React$1.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1245
|
+
|
|
1246
|
+
interface InputAffixProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "prefix"> {
|
|
1247
|
+
prefix?: React$1.ReactNode;
|
|
1248
|
+
suffix?: React$1.ReactNode;
|
|
1249
|
+
containerClassName?: string;
|
|
1250
|
+
}
|
|
1251
|
+
declare const InputAffix: React$1.ForwardRefExoticComponent<InputAffixProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
1252
|
+
|
|
1162
1253
|
interface SkeletonBaseProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1163
1254
|
className?: string;
|
|
1164
1255
|
}
|
|
@@ -1889,12 +1980,6 @@ declare function HazoUiTable<TRow extends object = any>(props: HazoUiTableProps<
|
|
|
1889
1980
|
type ChartDataPoint = number | null;
|
|
1890
1981
|
/** Ordered time-series for a single line / area / sparkline. */
|
|
1891
1982
|
type ChartDataSeries = ChartDataPoint[];
|
|
1892
|
-
/** Multi-line chart series with its own color + label. */
|
|
1893
|
-
interface MultiSeries {
|
|
1894
|
-
label: string;
|
|
1895
|
-
color: string;
|
|
1896
|
-
data: ChartDataSeries;
|
|
1897
|
-
}
|
|
1898
1983
|
/** Single stacked bar — one column on the X-axis. */
|
|
1899
1984
|
interface StackedBar {
|
|
1900
1985
|
/** Display label below the bar (date, category, etc.). */
|
|
@@ -1968,62 +2053,6 @@ interface InverseSparklineProps {
|
|
|
1968
2053
|
}
|
|
1969
2054
|
declare function InverseSparkline({ data, color, className, width, height, }: InverseSparklineProps): React$1.ReactElement;
|
|
1970
2055
|
|
|
1971
|
-
/**
|
|
1972
|
-
* LineChart — full-anatomy single-series chart (PRD §6b spec).
|
|
1973
|
-
*
|
|
1974
|
-
* ┌─────────────────────────────────────────────┐
|
|
1975
|
-
* │ Y-max ─ - - - - - - - - - - - - - - - - - │ ← three dashed gridlines
|
|
1976
|
-
* │ Y-mid ─ - - - - - - - - - - ╭──•value │ ← marker dot + label
|
|
1977
|
-
* │ Y-min ─ - - - - - - -╭──────╯ │ + dashed guide to Y-axis
|
|
1978
|
-
* │ └───────────────────────────────── │
|
|
1979
|
-
* │ Mar 4 Mar 10 Mar 17 │ ← three X labels
|
|
1980
|
-
* └─────────────────────────────────────────────┘
|
|
1981
|
-
*
|
|
1982
|
-
* Hover anywhere over the plot area to surface a cursor line + value
|
|
1983
|
-
* bubble at the nearest data point. Set `showTooltip={false}` to disable
|
|
1984
|
-
* — useful when the chart is small or non-interactive (print export).
|
|
1985
|
-
*/
|
|
1986
|
-
|
|
1987
|
-
interface LineChartProps {
|
|
1988
|
-
/** Time-series. `null` entries are gaps in the line. */
|
|
1989
|
-
data: ChartDataSeries;
|
|
1990
|
-
/** Labels for the X-axis. Length should match `data`. */
|
|
1991
|
-
dates: string[];
|
|
1992
|
-
/** Stroke / area / marker color. */
|
|
1993
|
-
color: string;
|
|
1994
|
-
/** Override default 360-wide viewBox. */
|
|
1995
|
-
width?: number;
|
|
1996
|
-
/** Override default 130-tall viewBox. */
|
|
1997
|
-
height?: number;
|
|
1998
|
-
/** Optional suffix shown next to the current-value label (e.g. "%"). */
|
|
1999
|
-
unit?: string;
|
|
2000
|
-
/** Disable hover tooltip. Defaults to enabled. */
|
|
2001
|
-
showTooltip?: boolean;
|
|
2002
|
-
/** Container className passthrough. */
|
|
2003
|
-
className?: string;
|
|
2004
|
-
}
|
|
2005
|
-
declare function LineChart({ data, dates, color, width, height, unit, showTooltip, className, }: LineChartProps): React$1.ReactElement;
|
|
2006
|
-
|
|
2007
|
-
/**
|
|
2008
|
-
* MultiLineChart — multi-series chart with shared Y-axis.
|
|
2009
|
-
*
|
|
2010
|
-
* No area fill (PRD §6b — "multi-series uses lines only to avoid color
|
|
2011
|
-
* collisions"). Each series gets a per-endpoint marker + value label so
|
|
2012
|
-
* the latest value is readable without hovering. Hover surfaces a single
|
|
2013
|
-
* cursor line with one bubble per series stacked vertically.
|
|
2014
|
-
*/
|
|
2015
|
-
|
|
2016
|
-
interface MultiLineChartProps {
|
|
2017
|
-
series: MultiSeries[];
|
|
2018
|
-
dates: string[];
|
|
2019
|
-
width?: number;
|
|
2020
|
-
height?: number;
|
|
2021
|
-
showTooltip?: boolean;
|
|
2022
|
-
showLegend?: boolean;
|
|
2023
|
-
className?: string;
|
|
2024
|
-
}
|
|
2025
|
-
declare function MultiLineChart({ series, dates, width, height, showTooltip, showLegend, className, }: MultiLineChartProps): React$1.ReactElement;
|
|
2026
|
-
|
|
2027
2056
|
/**
|
|
2028
2057
|
* StackedBars — one vertical bar per X position, each split into top-to-bottom
|
|
2029
2058
|
* colored bands.
|
|
@@ -2290,4 +2319,4 @@ interface HazoUiEtaProgressProps {
|
|
|
2290
2319
|
*/
|
|
2291
2320
|
declare function HazoUiEtaProgress({ estimateKey, unitCount, concurrency, windowSize, fallbackUnitMs, level, label, endpoint, handleRef, className, }: HazoUiEtaProgressProps): react_jsx_runtime.JSX.Element;
|
|
2292
2321
|
|
|
2293
|
-
export { ANIMATION_PRESETS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AnimationPreset, type BaseCommandInputProps, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CELEBRATION_GRADIENT, Calendar, 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, 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, HazoUiKanban, HazoUiKanbanFilter, type HazoUiKanbanFilterProps, type HazoUiKanbanProps, 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, 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,
|
|
2322
|
+
export { ANIMATION_PRESETS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AnimationPreset, type BaseCommandInputProps, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CELEBRATION_GRADIENT, Calendar, 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, 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, HazoUiImageCropper, HazoUiImageCropperDialog, type HazoUiImageCropperDialogProps, type HazoUiImageCropperHandle, type HazoUiImageCropperProps, HazoUiKanban, HazoUiKanbanFilter, type HazoUiKanbanFilterProps, type HazoUiKanbanProps, 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, MarkdownEditor, type MarkdownEditorProps, type MarkdownEmbed, 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, 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, useClickOutside, useCopyToClipboard, useDebounce, useErrorDisplay, useEtaProgress, useFullscreen, useIsMobile, useLoadingState, useLocalStorage, useMediaQuery, useSessionStorage, useViewport, useWakeLock, use_fullscreen, use_wake_lock };
|