import * as react_jsx_runtime from 'react/jsx-runtime'; import * as react from 'react'; import { ComponentProps, ReactNode, RefObject, ComponentType, MouseEvent, ReactElement, ButtonHTMLAttributes, SyntheticEvent, ChangeEvent, KeyboardEvent, PropsWithChildren, ScriptHTMLAttributes, Dispatch, SetStateAction, SVGProps } from 'react'; import { characterRamps, FunctionalClassName, DaisyThemeColor, TailwindColor, ColorFormat, Gamut, HexOrientation, TailwindColorName, TailwindShade, Placement, ColorMixSpace, DurationUnit, Duration, DaisyThemeName } from './utils/index.js'; export { Arrow, COLOR_FORMATS, CSSWithVars, DaisyTheme, DirectionPlacement, EMPTY_ARR, EMPTY_OBJ, FlexPlacement, FormatCurrencyOptions, FormatNumberOptions, FormatPercentOptions, GAMUTS, HEX_DIAGONALS, HEX_DIRECTIONS, HEX_ORIGIN, Hex, HexGridCoord, HexLayout, HexPoint, HexRange, TailwindColorMeta, TailwindShadeDictionary, arrows, attempt, boolMap, brailleDensity, brailleDensityAlt, buildOklab, buildOklch, cn, cnFn, colorMix, css, cubeToQOffset, cubeToQdoubled, cubeToROffset, cubeToRdoubled, daisyThemeColors, daisyThemeMap, daisyThemeNames, daisyThemes, directionPlacements, durationUnitMap, durationUnits, flexPlacements, formatCurrency, formatPercent, gcd, generateColors, getClosestTailwindColor, getDuration, getMaxChroma, getOklchCusp, hexAdd, hexAngle, hexCorners, hexDiagonalNeighbor, hexDiskBounds, hexDistance, hexEquals, hexEuclideanDistance, hexFloodFill, hexLength, hexLerp, hexLine, hexNeighbor, hexParallelogram, hexRange, hexRangeIntersect, hexRectangle, hexReflectQ, hexReflectR, hexReflectS, hexRingAt, hexRotateAround, hexRotateLeft, hexRotateRight, hexRound, hexScale, hexSpiralAt, hexSubtract, hexToPixel, hexToSvgPoints, hexTriangle, hexWrap, interpolateColors, isDaisyThemeColor, isDaisyThemeName, isDark, isIn, isServer, isTailwindColor, joinTyped, lcm, loadImage, makeDiscriminatedGuard, makeTypeGuard, maybeContainer, maybePortal, noop, placementOptions, pointToHex, qOffsetToCube, qdoubledToCube, rOffsetToCube, randomDate, rdoubledToCube, rgbToLuma, slotComponents, splitPlacement, tailwindColors, tailwindPalette, tailwindPaletteMap, toColorFormat, toDateTimeLocal, wait } from './utils/index.js'; import { LiteralUnion, OverrideProperties } from 'type-fest'; import { CartesianGrid, XAxis, YAxis, Brush, BarChart as BarChart$1, Bar, AreaChart, Area, Pie, PieChart as PieChart$1, RadarChart as RadarChart$1, Radar, PolarGrid, PolarAngleAxis, RadialBarChart as RadialBarChart$1, RadialBar, Sankey } from 'recharts'; import { GeoProjection, GeoGeometryObjects } from 'd3-geo'; import { Topology } from 'topojson-specification'; import { ToasterProps as ToasterProps$1 } from 'sonner'; export { toast } from 'sonner'; import defaultTheme from 'tailwindcss/defaultTheme'; import '@colordx/core'; import 'daisyui/theme/object.js'; import 'date-fns'; import 'clsx'; type AnimationTiming = { duration?: number; easing?: string; delay?: number; }; type DigitsConfig = Record; type FormattedSegment = { type: 'digit'; value: number; position: number; } | { type: 'static'; value: string; }; type ResolvedTiming = Required; type AnimatedNumberProps = ComponentProps<'span'> & { value: number; prefix?: string; suffix?: string; format?: Intl.NumberFormatOptions; locales?: Intl.LocalesArgument; transformTiming?: AnimationTiming; spinTiming?: AnimationTiming; trend?: 'auto' | 'down' | 'up'; animated?: boolean; continuous?: boolean; digits?: DigitsConfig; }; declare const AnimatedNumber: ({ value, prefix, suffix, format, locales, transformTiming, spinTiming, trend: trendProp, animated, continuous, digits, className, ...props }: AnimatedNumberProps) => react_jsx_runtime.JSX.Element; type AsciiImageProps = ComponentProps<'pre'> & { src: string; maxHeight?: number; maxWidth?: number; characterRamp?: LiteralUnion<(typeof characterRamps)[number], string>; reverseRamp?: boolean; showImage?: boolean; }; declare const AsciiImage: ({ src, maxHeight, maxWidth, characterRamp, reverseRamp, showImage, className, style, ...props }: AsciiImageProps) => react_jsx_runtime.JSX.Element; type AsciiVideoProps = Omit; declare const AsciiVideo: ({ src, maxHeight, maxWidth, characterRamp, reverseRamp, className, ...props }: AsciiVideoProps) => react_jsx_runtime.JSX.Element; type BalancedGridProps = ComponentProps<'div'> & { maxCols: number; pack?: boolean; }; declare const BalancedGrid: ({ maxCols, pack, className, style, children }: BalancedGridProps) => react_jsx_runtime.JSX.Element; type ButtonProps = ComponentProps<'button'>; declare const Button: ({ className, ...props }: ComponentProps<"button">) => react_jsx_runtime.JSX.Element; type ChartLegendFormatters = { label?: (label: string, item: LegendItem) => ReactNode; value?: (value: ReactNode, item: LegendItem) => ReactNode; }; type ChartLegendClassNames = { container?: string; item?: FunctionalClassName; swatch?: FunctionalClassName; label?: FunctionalClassName; value?: FunctionalClassName; }; declare const ChartLegend: ({ items, classNames, formatters, components, target, }: { items: LegendItem[]; classNames?: ChartLegendClassNames; formatters?: ChartLegendFormatters; components?: ChartLegendComponents; target?: RefObject; }) => ReactNode; type ChartTooltipFormatters = { title?: (label: ReactNode) => ReactNode; value?: (value: ReactNode, item: TooltipItem) => ReactNode; label?: (label: string, item: TooltipItem) => ReactNode; }; type ChartTooltipClassNames = { container?: FunctionalClassName; title?: FunctionalClassName; row?: FunctionalClassName; swatch?: FunctionalClassName; label?: FunctionalClassName; value?: FunctionalClassName; }; type TooltipItem = { key: string; color?: string; swatch?: ReactNode; label?: string; value: ReactNode; }; type TooltipData = { title?: ReactNode; items: TooltipItem[]; }; declare const ChartTooltip: ({ resolve, classNames, formatters, components, }: { resolve: (props: ChartTooltipProps) => TooltipData | null; classNames?: ChartTooltipClassNames; formatters?: ChartTooltipFormatters; components?: ChartTooltipComponents; }) => react_jsx_runtime.JSX.Element; /** Derive recharts component props, omitting keys we control internally. */ type DeriveProps = Omit, 'children' | 'ref' | Controlled>; type CartesianSubProps = { grid?: DeriveProps; xAxis?: DeriveProps; yAxis?: DeriveProps; brush?: DeriveProps; }; type CurveType = 'basis' | 'linear' | 'monotone' | 'natural' | 'step' | 'stepAfter' | 'stepBefore'; type FillType = 'gradient' | 'none' | 'solid'; type BaseChartClassNames = { legend?: ChartLegendClassNames; tooltip?: ChartTooltipClassNames; }; type CartesianChartClassNames = { brush?: string; grid?: string; xAxis?: string; yAxis?: string; }; type BaseChartFormatters = { tooltip?: ChartTooltipFormatters; legend?: ChartLegendFormatters; }; type CartesianFormatters = { domainTick?: (value: number | string) => string; rangeTick?: (value: number) => string; }; type PolarFormatters = { label?: (name: string) => string; }; /** CSS custom properties defined in the `.chart` utility class */ declare const chartCssVars: readonly ["--chart-pie-gap", "--chart-pie-stroke"]; type ChartCssVars = Partial>; type ChartTooltipProps = { active?: boolean; label?: number | string; payload?: { name?: string; value?: number; color?: string; fill?: string; dataKey?: string; payload?: Record & { fill?: string; }; }[]; }; type LegendItem = { key: string; color?: string; label: string; value?: ReactNode; swatch?: ReactNode; }; type ChartSeries = { key: string & keyof TData; color?: string; label?: string; }; type ChartTooltipComponents = ComponentType<{ data: TooltipData | null; raw: ChartTooltipProps; }> | { container?: ComponentType<{ data: TooltipData; className?: string; children: ReactNode; }>; title?: ComponentType<{ data: TooltipData; className?: string; }>; row?: ComponentType<{ item: TooltipItem; className?: string; children: ReactNode; }>; swatch?: ComponentType<{ item: TooltipItem; className?: string; }>; }; type ChartLegendComponents = ComponentType<{ items: LegendItem[]; }> | { container?: ComponentType<{ items: LegendItem[]; className?: string; children: ReactNode; }>; item?: ComponentType<{ item: LegendItem; className?: string; children: ReactNode; }>; swatch?: ComponentType<{ item: LegendItem; className?: string; }>; }; type ChartBaseProps> = { children?: ReactNode; data: TData[]; /** Portal the legend into a different DOM element */ legendTarget?: RefObject; colors?: string[]; cssVars?: ChartCssVars; classNames?: BaseChartClassNames; components?: { tooltip?: boolean | ChartTooltipComponents; legend?: boolean | ChartLegendComponents; }; formatters?: BaseChartFormatters; }; type CartesianChartBaseProps, TDomainKey extends string & keyof TData = string & keyof TData, Chart extends React.ElementType = React.ElementType> = ChartBaseProps & DeriveProps & { classNames?: CartesianChartClassNames; components?: { grid?: true; xAxis?: false; yAxis?: false; brush?: true; }; domainKey: TDomainKey; domainType?: TData[TDomainKey] extends number ? 'number' : 'date' | 'string'; rangeKey?: string & keyof TData; valueLabel?: string; rangeDomain?: [number | 'auto' | 'dataMin', number | 'auto' | 'dataMax']; formatters?: CartesianFormatters; onDataClick?: (data: TData, index: number) => void; brushOptions?: { /** Lock the range axis to the full dataset extent while panning. Prevents rescaling during brush. */ lockRange?: boolean; }; /** `true` for basic stacking, or a stack offset mode */ stacked?: boolean | 'expand' | 'positive' | 'sign'; }; type PolarChartBaseProps, Chart extends React.ElementType = React.ElementType> = ChartBaseProps & DeriveProps & { formatters?: PolarFormatters; }; type BarChartProps, TDomainKey extends string & keyof TData = string & keyof TData> = CartesianChartBaseProps & { classNames?: CartesianChartClassNames & { bar?: string; }; series?: (ChartSeries & DeriveProps & { radius?: number; })[]; subProps?: CartesianSubProps & { bar?: DeriveProps; }; }; declare const BarChart: , TDomainKey extends string & keyof TData = string & keyof TData>({ data, children, domainKey, domainType, rangeKey, valueLabel, series, subProps, layout, stacked, barSize, colors, components, rangeDomain, formatters, onDataClick, brushOptions, legendTarget, className, classNames, cssVars, ...chartProps }: BarChartProps) => react_jsx_runtime.JSX.Element; type LineChartProps, TDomainKey extends string & keyof TData = string & keyof TData> = CartesianChartBaseProps & { classNames?: CartesianChartClassNames & { area?: string; }; series?: (ChartSeries & DeriveProps & { fill?: FillType; curve?: CurveType; strokeWidth?: number; strokeDasharray?: string; })[]; subProps?: CartesianSubProps & { area?: DeriveProps; }; }; declare const LineChart: , TDomainKey extends string & keyof TData = string & keyof TData>({ data, children, domainKey, domainType, rangeKey, valueLabel, series, subProps, stacked, colors, components, rangeDomain, formatters, onDataClick, brushOptions, legendTarget, className, classNames, cssVars, ...chartProps }: LineChartProps) => react_jsx_runtime.JSX.Element; type PieSliceProps = DeriveProps; type PieChartProps> = Pick & PolarChartBaseProps & { classNames?: { pie?: string; }; onDataClick?: (data: TData, index: number) => void; valueKey?: string & keyof TData; nameKey?: string & keyof TData; series?: (PieSliceProps & { valueKey: string & keyof TData; nameKey: string & keyof TData; })[]; donut?: boolean; noGap?: boolean; subProps?: { pie?: PieSliceProps; }; }; declare const PieChart: >({ data, children, valueKey, nameKey, innerRadius, outerRadius, cornerRadius, paddingAngle, series, onDataClick, subProps, donut, noGap, colors, components, cssVars, startAngle, endAngle, legendTarget, className, classNames, formatters, ...chartProps }: PieChartProps) => react_jsx_runtime.JSX.Element; type RadarChartProps> = Omit, 'onMouseDown' | 'onTouchStart'> & { classNames?: { polarGrid?: string; polarAngleAxis?: string; radar?: string; }; components?: { polarGrid?: false; polarAngleAxis?: false; }; angleKey: string & keyof TData; onDataClick?: (data: TData, index: number) => void; rangeKey?: string & keyof TData; series?: (ChartSeries & DeriveProps & { fill?: FillType; })[]; subProps?: { radar?: DeriveProps; polarGrid?: DeriveProps; polarAngleAxis?: DeriveProps; }; }; declare const RadarChart: >({ data, children, angleKey, onDataClick, rangeKey, series, colors, components, subProps, legendTarget, className, classNames, formatters, cssVars, ...chartProps }: RadarChartProps) => react_jsx_runtime.JSX.Element; type RadialBarChartSubProps = { radialBar?: DeriveProps; }; type RadialBarChartProps> = Omit, 'onMouseDown' | 'onTouchStart'> & { classNames?: { radialBar?: string; }; onDataClick?: (data: TData, index: number) => void; valueKey: string & keyof TData; nameKey: string & keyof TData; subProps?: RadialBarChartSubProps; }; declare const RadialBarChart: >({ data, children, onDataClick, valueKey, nameKey, subProps, colors, components, legendTarget, className, classNames, formatters, cssVars, ...chartProps }: RadialBarChartProps) => react_jsx_runtime.JSX.Element; type SankeyLink = { source: string; target: string; value: number; }; type SankeyClickData = { type: 'link'; source: string; target: string; value: number; } | { type: 'node'; name: string; value: number; }; type SankeyChartProps = DeriveProps & { disableAnimation?: boolean; children?: ReactNode; classNames?: { node?: string; link?: string; tooltip?: ChartTooltipClassNames; }; colors?: string[]; components?: { tooltip?: boolean | ChartTooltipComponents; }; data: SankeyLink[]; cssVars?: ChartCssVars; formatters?: { tooltip?: ChartTooltipFormatters; }; onDataClick?: (data: SankeyClickData) => void; subProps?: { sankey?: DeriveProps; }; }; declare const SankeyChart: ({ disableAnimation, data, children, className, classNames, colors, components, cssVars, formatters, onDataClick, subProps, ...chartProps }: SankeyChartProps) => react_jsx_runtime.JSX.Element | null; type CheckboxProps = Omit, 'type'>; declare const Checkbox: ({ className, ...props }: CheckboxProps) => react_jsx_runtime.JSX.Element; /** * Creates a classNames prop type for component styling overrides. * @example * type Props = ClassNames<'container' | 'item'> * // Results in: { classNames?: Partial> } */ type ClassNames = { classNames?: Partial>; }; declare const clipboardButtonClassNames: readonly ["copied", "default", "error", "timeoutBar"]; type ClipboardButtonClassNames = (typeof clipboardButtonClassNames)[number]; type ClipboardButtonProps = ClassNames & Omit, 'onClick' | 'onError'> & { copy: (() => string) | string; copiedChildren?: ReactNode; errorChildren?: ReactNode; onCopy?: (value: string) => void; onError?: (error: Error) => void; onTimeout?: () => void; showTimeoutBar?: boolean; timeout?: number; }; declare const ClipboardButton: ({ children, className, classNames, copiedChildren, copy, errorChildren, onCopy, onError, onTimeout, showTimeoutBar, timeout, ...props }: ClipboardButtonProps) => react_jsx_runtime.JSX.Element; type ColorButtonProps = ComponentProps<'button'> & { color?: DaisyThemeColor | TailwindColor; darkModeColor?: DaisyThemeColor | TailwindColor; }; declare const ColorButton: ({ color, darkModeColor, className, ...props }: ColorButtonProps) => react_jsx_runtime.JSX.Element; declare const colorPickerPreviewSlots: readonly ["preview", "value"]; type ColorPickerPreviewSlot = (typeof colorPickerPreviewSlots)[number]; type ColorPickerPreviewProps = ClassNames & ComponentProps<'div'> & { color: string; }; type ColorPickerBaseProps = Omit, 'onChange'> & { value?: string; defaultValue?: string; onChange?: (color: string) => void; format?: ColorFormat; }; type HexCellState = { q: number; r: number; isSelected: boolean; color: string; }; type ColorPickerHexWheelClassNames = { svg?: string; cell?: FunctionalClassName; lightness?: string; }; type ColorPickerHexWheelProps = ColorPickerBaseProps & { classNames?: ColorPickerHexWheelClassNames; rings?: number; defaultLightness?: number; gamut?: Gamut; orientation?: HexOrientation; }; type ColorPickerLCHClassNames = { lightness?: string; chroma?: string; hue?: string; }; type ColorPickerLCHProps = ColorPickerBaseProps & { classNames?: ColorPickerLCHClassNames; gamut?: Gamut; }; type TailwindSwatchState = { name: TailwindColorName; shade: TailwindShade; key: TailwindColor; color: string; isSelected: boolean; }; type ColorPickerTailwindClassNames = { swatch?: FunctionalClassName; colorLabel?: string; shadeLabel?: string; }; type ColorPickerTailwindProps = ColorPickerBaseProps & { classNames?: ColorPickerTailwindClassNames; showColorNames?: boolean; showShadeLabels?: boolean; }; type VariantProps$2 = { 'hex-wheel': ColorPickerHexWheelProps; tailwind: ColorPickerTailwindProps; lch: ColorPickerLCHProps; }; type ColorPickerVariant = keyof VariantProps$2; type ColorPickerProps = (ColorPickerHexWheelProps & { variant?: 'hex-wheel'; }) | (ColorPickerLCHProps & { variant: 'lch'; }) | (ColorPickerTailwindProps & { variant: 'tailwind'; }); type ColorPickerComponentMap = { [K in ColorPickerVariant]: ComponentType; }; declare const ColorPickerPreview: ({ color, className, classNames, ...props }: ColorPickerPreviewProps) => react_jsx_runtime.JSX.Element; declare const ColorPicker: ({ variant, ...rest }: ColorPickerProps) => react_jsx_runtime.JSX.Element; type ConditionalWrapperProps = { condition?: boolean; children: ReactNode; wrapper?: (children: ReactNode) => ReactNode; }; declare const ConditionalWrapper: ({ condition, wrapper, children }: ConditionalWrapperProps) => string | number | bigint | boolean | Iterable | Promise> | Iterable | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined; declare const confirmButtonClassNames: readonly ["confirm", "default", "pending", "timeoutBar"]; type ConfirmButtonClassNames = (typeof confirmButtonClassNames)[number]; declare const CONFIRM_BUTTON_CANCEL_OPTIONS: readonly ["blur", "escapeKey", "outsideClick"]; type ConfirmButtonCancelOption = (typeof CONFIRM_BUTTON_CANCEL_OPTIONS)[number]; type ConfirmButtonProps = ClassNames & Omit, 'onClick'> & { cancelOptions?: boolean | readonly ConfirmButtonCancelOption[]; confirmChildren?: ReactNode; isAwaitingConfirmation?: boolean; onCancel?: () => void; onChange?: (isAwaitingConfirmation: boolean) => void; onConfirm: (e: MouseEvent) => unknown | Promise; onTimeout?: () => void; pendingChildren?: ReactNode; showTimeoutBar?: boolean; timeout?: number; }; declare const ConfirmButton: ({ children, className, classNames, cancelOptions, confirmChildren, disabled, isAwaitingConfirmation: isAwaitingConfirmationProp, onBlur, onCancel, onChange, onConfirm, onTimeout, pendingChildren, ref, showTimeoutBar, timeout, ...props }: ConfirmButtonProps) => react_jsx_runtime.JSX.Element; type FieldsetProps = ClassNames<'legend'> & ComponentProps<'fieldset'> & { legend?: ReactNode; }; declare const Fieldset: ({ legend, children, className, classNames, ...props }: FieldsetProps) => react_jsx_runtime.JSX.Element; declare const fieldSlots: readonly ["label", "hint", "error"]; type FieldSlot = (typeof fieldSlots)[number]; declare const fieldClassNames: string[]; type FieldClassNames = (typeof fieldClassNames)[number]; type FieldProps = ClassNames & FieldsetProps & { label?: ReactNode; labelPlacement?: Placement; hint?: ReactNode; hintPlacement?: Placement; error?: ReactNode; errorPlacement?: Placement; slotOrder?: readonly [FieldSlot, FieldSlot, FieldSlot]; }; declare const Field: ({ label, labelPlacement, hint, hintPlacement, error, errorPlacement, slotOrder, className, classNames, children, ...rest }: FieldProps) => react_jsx_runtime.JSX.Element; /** * A `GeoJSON.Feature` with `id` guaranteed as a string and a top-level `name` field * hoisted from properties (`properties.name` or `properties.NAME`). Structurally still * a GeoJSON Feature, so it composes with d3-geo functions like `geoPath`, `geoBounds`, * and `geoCentroid`. * * Used as the base shape for all geo primitives (`GeoRegion`, future `GeoPoint`, `GeoLine`). */ type NamedFeature = Record> = Omit, 'id'> & { id: string; name: string; }; type GeoRegion = NamedFeature; type GeoPoint = NamedFeature; /** `[x, y]` tuple is a 0..1 fraction of the point's 24x24 viewBox. */ type GeoAnchor = 'center' | Placement | readonly [x: number, y: number]; type GeoPointState = { point: GeoPoint; index: number; isSelected: boolean; isHovered: boolean; value?: number; }; type ClusterConfig = { /** Cluster radius in pixels. Higher values cluster more aggressively. Default 60. */ radius?: number; /** Above this zoom level, points are never clustered. Default Infinity. */ maxZoom?: number; /** Minimum points required to form a cluster. Default 2. */ minPoints?: number; }; type PointsConfig = { data: readonly GeoPoint[]; size?: ((state: GeoClusterState | GeoPointState) => number) | number; anchor?: GeoAnchor; /** When `false` (default), points keep constant pixel size as the user zooms. When `true`, they scale with zoom. */ scaleWithZoom?: boolean; cluster?: boolean | ClusterConfig; }; type ClusteredPoint = GeoPoint & { isSelected: boolean; }; type GeoClusterState = { /** Supercluster's cluster id. Used with `supercluster.getClusterExpansionZoom(id)`. */ id: number; /** Point count in this cluster. Named by Mapbox convention (matches `properties.point_count`). */ count: number; /** `[lon, lat]` of the cluster centroid. */ coordinates: [number, number]; /** The underlying points in this cluster. Populated lazily when needed by tooltip/handler. */ points: readonly ClusteredPoint[]; isHovered: boolean; }; declare const geoProjectionPresets: readonly ["azimuthal-equidistant", "gnomonic", "orthographic", "satellite", "stereographic", "albers-usa", "equirectangular", "mercator", "miller", "equal-earth", "hammer", "kavrayskiy7", "mollweide", "natural-earth", "patterson", "robinson", "winkel3"]; type GeoProjectionPreset = (typeof geoProjectionPresets)[number]; type GeoRegionFilter = ((feature: GeoRegion) => boolean) | string; type GeoDataSource = string | GeoJSON.FeatureCollection | Topology; type GeoRegionState = { feature: GeoRegion; index: number; isSelected: boolean; isHovered: boolean; value?: number; }; declare const choroplethScaleTypes: readonly ["quantize", "quantile", "linear"]; type ChoroplethScaleType = (typeof choroplethScaleTypes)[number]; type ChoroplethDatum = { id: string; value: number; }; type ChoroplethConfig = { data: ChoroplethDatum[]; scaleType?: ChoroplethScaleType; steps?: number; colors?: string[]; colorSpace?: ColorMixSpace; valueFormat?: (value: number) => string; }; type GeoLegendItem = { key: string; color: string; label: string; }; type GeoMapLegendClassNames = { container?: string; item?: FunctionalClassName; swatch?: FunctionalClassName; label?: FunctionalClassName; gradient?: string; }; type GeoMapLegendFormatters = { label?: (label: string, item: GeoLegendItem) => ReactNode; }; type GeoMapLegendComponents = ComponentType<{ items: GeoLegendItem[]; scaleType: ChoroplethScaleType; colors: string[]; }> | { container?: ComponentType<{ items: GeoLegendItem[]; className?: string; children: ReactNode; }>; item?: ComponentType<{ item: GeoLegendItem; className?: string; children: ReactNode; }>; swatch?: ComponentType<{ item: GeoLegendItem; className?: string; }>; }; type GeoTooltipState = (GeoClusterState & { kind: 'cluster'; }) | (GeoPointState & { kind: 'point'; }) | (GeoRegionState & { kind: 'region'; }); type GeoMapTooltipClassNames = { container?: FunctionalClassName; title?: FunctionalClassName; swatch?: FunctionalClassName; label?: FunctionalClassName; value?: FunctionalClassName; }; type GeoMapTooltipFormatters = { title?: (state: GeoTooltipState) => ReactNode; value?: (value: number, state: GeoTooltipState) => ReactNode; label?: (state: GeoTooltipState) => ReactNode; }; type GeoMapTooltipComponents = ComponentType<{ state: GeoTooltipState; color?: string; }> | { container?: ComponentType<{ state: GeoTooltipState; className?: string; children: ReactNode; }>; swatch?: ComponentType<{ state: GeoTooltipState; color?: string; className?: string; }>; }; type GeoMapGraticuleComponents = ComponentType<{ pathGenerator: (obj: GeoGeometryObjects) => string | null; }>; type GeoMapZoomControlsComponents = ComponentType<{ zoomIn: () => void; zoomOut: () => void; resetZoom: () => void; canZoomIn: boolean; canZoomOut: boolean; canReset: boolean; }>; type GeoMapComponents = { graticule?: boolean | GeoMapGraticuleComponents; tooltip?: boolean | GeoMapTooltipComponents; legend?: boolean | GeoMapLegendComponents; zoom?: boolean | GeoMapZoomControlsComponents; }; type GeoMapFormatters = { tooltip?: GeoMapTooltipFormatters; legend?: GeoMapLegendFormatters; }; type GeoMapClassNames = { region?: FunctionalClassName; point?: FunctionalClassName; cluster?: FunctionalClassName; graticule?: string; sphere?: string; tooltip?: GeoMapTooltipClassNames; legend?: GeoMapLegendClassNames; zoom?: string; }; type GeoMapSubProps = { zoom?: Record; }; type GeoZoomState = { scale: number; /** [longitude, latitude] of the viewport center. */ center: [number, number]; }; type FormInputConfig = { mode: 'multi'; value?: readonly string[]; defaultValue?: readonly string[]; onChange?: (ids: string[]) => void; name?: string; } | { mode: 'single'; value?: string | null; defaultValue?: string | null; onChange?: (id: string | null) => void; name?: string; }; type GeoMapBaseProps = Omit, 'onChange' | 'points'> & { geo?: GeoDataSource; projection?: ((width: number, height: number) => GeoProjection) | GeoProjectionPreset; region?: GeoRegionFilter; draggable?: boolean; zoomable?: boolean; zoom?: GeoZoomState; defaultZoom?: GeoZoomState; onZoomChange?: (zoom: GeoZoomState | undefined) => void; regionFormInput?: FormInputConfig; pointFormInput?: FormInputConfig; points?: PointsConfig; className?: string; classNames?: GeoMapClassNames; choropleth?: ChoroplethConfig; components?: GeoMapComponents; formatters?: GeoMapFormatters; subProps?: GeoMapSubProps; legendTarget?: RefObject; zoomTarget?: RefObject; onRegionClick?: (feature: GeoRegion, index: number) => void; onRegionMouseEnter?: (feature: GeoRegion, index: number) => void; onRegionMouseLeave?: (feature: GeoRegion, index: number) => void; onPointClick?: (point: GeoPoint, index: number) => void; onPointMouseEnter?: (point: GeoPoint, index: number) => void; onPointMouseLeave?: (point: GeoPoint, index: number) => void; /** * Called when a cluster is clicked. If omitted, the default behavior is to zoom to the * cluster's expansion zoom level (so the cluster breaks apart). */ onClusterClick?: (state: GeoClusterState) => void; onClusterMouseEnter?: (state: GeoClusterState) => void; onClusterMouseLeave?: (state: GeoClusterState) => void; children?: ReactNode; }; type GeoMapProps = GeoMapBaseProps; declare const GeoMap: ({ regionFormInput, pointFormInput, ...props }: GeoMapProps) => react_jsx_runtime.JSX.Element; type InputProps = ComponentProps<'input'>; declare const Input: ({ className, ...props }: InputProps) => react_jsx_runtime.JSX.Element; type LineFieldImageProps = ComponentProps<'svg'> & { src: string; cellSize?: number; strokeWidth?: number; matchStrokeWidth?: boolean; showImage?: boolean; }; declare const LineFieldImage: ({ src, cellSize, strokeWidth, matchStrokeWidth, showImage, className, style, ...props }: LineFieldImageProps) => react_jsx_runtime.JSX.Element | null; declare const MODAL_DISMISS_OPTIONS: readonly ["closeButton", "outsideClick", "escapeKey"]; type ModalDismissOption = (typeof MODAL_DISMISS_OPTIONS)[number]; type ModalApi = { close: () => void; open: () => void; }; declare const modalClassNames: readonly ["backdrop", "backdropButton", "closeButton", "closeIcon", "dialog"]; type ModalClassNames = (typeof modalClassNames)[number]; type ModalProps = ClassNames & { id?: string; open?: boolean; defaultOpen?: boolean; onOpenChange?: (open: boolean) => void; trigger?: ReactElement>; children: ((api: ModalApi) => ReactNode) | ReactNode; className?: string; dismissOptions?: boolean | readonly ModalDismissOption[]; backdropBlur?: boolean; backdropTransparent?: boolean; }; declare const Modal: ({ id, open, defaultOpen, onOpenChange, trigger, children, className, classNames, dismissOptions, backdropBlur, backdropTransparent, }: ModalProps) => react_jsx_runtime.JSX.Element; type PlacementPickerProps = ClassNames<'selected'> & { value: Placement | undefined; onChange: (p: Placement | undefined) => void; force?: boolean; className?: string; }; declare const PlacementPicker: ({ value, onChange, force, className, classNames }: PlacementPickerProps) => react_jsx_runtime.JSX.Element; type BaseProps$1 = Omit, 'type'>; type RadioDefaultProps = BaseProps$1 & { variant?: 'default'; }; type RadioBtnProps = BaseProps$1 & { variant: 'btn'; 'aria-label': string; }; type RadioProps = RadioBtnProps | RadioDefaultProps; declare const Radio: ({ variant, className, ...props }: RadioProps) => react_jsx_runtime.JSX.Element; type AsciiImageSource = HTMLCanvasElement | HTMLImageElement | HTMLVideoElement | ImageBitmap | OffscreenCanvas; type AsciiProcessOptions = { characterRamp?: string; reverseRamp?: boolean; maxHeight?: number; maxWidth?: number; }; declare const useAscii: (options: AsciiProcessOptions) => { preRef: react.RefObject; ascii: string; setAscii: react.Dispatch>; processSource: (source: AsciiImageSource) => string; }; type Breakpoints = Readonly>; type DefaultBreakpoints = typeof defaultTheme.screens; type BreakpointName = (undefined extends TBreakpoints ? keyof DefaultBreakpoints : keyof NonNullable) | 'base'; type NormalizedBreakpoints = Record, string>; declare const useBreakpoint: (breakpoints?: TBreakpoints) => { breakpoint: BreakpointName; breakpoints: NormalizedBreakpoints; isAtLeast: (name: BreakpointName) => boolean; isBelow: (name: BreakpointName) => boolean; }; type UseCycleOptions = { /** * Starting index (normalized by `wrap`). * * Defaults to 0. */ initialIndex?: number; /** * When true, increment/decrement wrap around (mod length). * When false, index is clamped to [0, length - 1]. * * Defaults to true. */ wrap?: boolean; /** * Resets back to index 0 after this many ms since the last interaction * (increment/decrement/setIndex). * * Set to `null`/`undefined` to disable. */ idleResetMs?: number | null; }; type UseCycleResult = { index: number; value: TValue; next: TValue; prev: TValue; increment: () => void; decrement: () => void; setIndex: (index: number) => void; reset: () => void; }; /** * Cycles through a list of values (wrap or clamp), with optional idle reset. * * - Optional `idleResetMs` resets back to index 0 after inactivity. * - `prev` is derived from the current index (after `increment()`, `prev` becomes * the value you just had). */ declare const useCycle: (values: TValues, options?: UseCycleOptions) => UseCycleResult; type UseDurationOptions = { readonly targetDate: Date; readonly units: TUnits; readonly intervalMs?: number; readonly enabled?: boolean; }; declare const useDuration: (options: UseDurationOptions) => Duration; declare const useGamut: () => Gamut; type UseNativeDialogOptions = { dialogId: string; hasEscapeKey: boolean; open: boolean; setOpen: (next: boolean) => void; }; declare const useNativeDialog: ({ dialogId, hasEscapeKey, open, setOpen }: UseNativeDialogOptions) => { closeNative: () => void; onCancel: (e: SyntheticEvent) => void; onClose: () => void; openNative: () => void; }; declare const popoverPositions: readonly [...("top start" | "top end" | "top center" | "bottom start" | "bottom end" | "bottom center" | "left start" | "left end" | "left center" | "right start" | "right end" | "right center")[], "center"]; type PopoverPosition = (typeof popoverPositions)[number]; type UseNativePopoverOptions = { id?: string; position?: PopoverPosition; mode?: 'auto' | 'hint' | 'manual'; action?: 'hide' | 'show' | 'toggle'; positionTryFallbacks?: string; positionTryOrder?: 'most-block-size' | 'most-height' | 'most-inline-size' | 'most-width' | 'normal'; positionVisibility?: 'always' | 'anchors-visible' | 'no-overflow'; }; declare const useNativePopover: (options?: UseNativePopoverOptions) => { triggerProps: { style: { anchorName: string; }; popoverTargetAction?: "hide" | "show" | undefined; popoverTarget: string; }; contentProps: { popover: "auto" | "manual" | "hint"; id: string; style: react.CSSProperties; }; open: () => void | undefined; close: () => void | undefined; toggle: () => boolean | undefined; }; type RadioOption = string | { label?: string; disabled?: boolean; value: string; }; type NormalizedRadioOption = { value: string; label: string; disabled?: boolean; }; type UseRadioGroupParams = { name?: string; value?: string; defaultValue?: string; options: readonly RadioOption[]; onChange?: (e: ChangeEvent) => void; /** Allow clicking a selected radio to deselect it */ allowDeselect?: boolean; }; declare const useRadioGroup: ({ name: nameProp, value: valueProp, defaultValue, options: optionsProp, onChange, allowDeselect, }: UseRadioGroupParams) => { name: string; value: string | undefined; options: NormalizedRadioOption[]; handleChange: (e: ChangeEvent) => void; handleClick: (e: MouseEvent) => void; handleKeyDown: (e: KeyboardEvent) => void; }; type DataAttribute = `data-${string}`; type ScriptProps = Record & ScriptHTMLAttributes; type ThemeName = LiteralUnion<'system' | DaisyThemeName | TCustomThemes[number], string>; type UseThemeProps = { /** List of all available theme names */ themes: readonly string[]; /** Forced theme name for the current page */ forcedTheme?: ThemeName | undefined; /** Update the theme */ setTheme: Dispatch>>; /** Active theme name */ theme?: ThemeName | undefined; /** If `enableSystem` is true and the active theme is "system", this returns whether the system preference resolved to "dark" or "light". Otherwise, identical to `theme` */ resolvedTheme?: ThemeName | undefined; /** If enableSystem is true, returns the System theme preference ("dark" or "light"), regardless what the active theme is */ systemTheme?: 'dark' | 'light' | undefined; /** Default light theme to use when toggling (defaults to 'light') */ defaultLight: ThemeName; /** Default dark theme to use when toggling (defaults to 'dark') */ defaultDark: ThemeName; }; type Attribute = 'class' | DataAttribute; type ThemeProviderProps = PropsWithChildren<{ /** List of theme names to use (defaults to all DaisyUI themes). Pass a readonly array for full type inference. */ themes?: TThemes | undefined; /** Forced theme name for the current page */ forcedTheme?: ThemeName | undefined; /** Whether to switch between dark and light themes based on prefers-color-scheme */ enableSystem?: boolean | undefined; /** Disable all CSS transitions when switching themes */ disableTransitionOnChange?: boolean | undefined; /** Whether to indicate to browsers which color scheme is used (dark or light) for built-in UI like inputs and buttons */ enableColorScheme?: boolean | undefined; /** Key used to store theme setting in localStorage */ storageKey?: string | undefined; /** Default theme name (defaults to 'system' if enableSystem is true, otherwise 'dark') */ defaultTheme?: ThemeName | undefined; /** HTML attribute modified based on the active theme. Accepts `class`, `data-*` (meaning any data attribute, `data-mode`, `data-color`, etc.), or an array which could include both */ attribute?: Attribute | Attribute[] | undefined; /** Mapping of theme name to HTML attribute value. Object where key is the theme name and value is the attribute value */ value?: Record | undefined; /** Nonce string to pass to the inline script and style elements for CSP headers */ nonce?: string; /** Props to pass the inline script */ scriptProps?: ScriptProps; /** Default light theme to use when toggling (defaults to 'light') */ defaultLight?: ThemeName | undefined; /** Default dark theme to use when toggling (defaults to 'dark') */ defaultDark?: ThemeName | undefined; }>; declare const useTheme: () => UseThemeProps; declare const ThemeScript: react.MemoExoticComponent<({ forcedTheme, storageKey, attribute, enableSystem, enableColorScheme, defaultTheme, value, themes, nonce, scriptProps, }: Omit, "children"> & { defaultTheme: string; }) => react_jsx_runtime.JSX.Element>; declare const ThemeProvider: ({ children, ...props }: ThemeProviderProps) => react_jsx_runtime.JSX.Element; /** * Shows the browser's native "unsaved changes" unload prompt when `isDirty` is true. * * - Triggers on refresh/close/navigate away (full page unload), not SPA routing. * - Most browsers ignore custom text; this uses the generic prompt behavior. */ declare const useUnsavedChangesPrompt: (isDirty: boolean) => void; type BaseProps = Omit, 'children' | 'defaultValue' | 'type' | 'value'> & { options: readonly RadioOption[]; value?: string; defaultValue?: string; /** Allow clicking a selected radio to deselect it */ allowDeselect?: boolean; }; type RadioGroupDefaultProps = BaseProps & ClassNames<'item'>; type RadioGroupBtnProps = BaseProps & ClassNames<'item'>; type VariantProps$1 = { default: RadioGroupDefaultProps; btn: RadioGroupBtnProps; }; type RadioGroupVariant = keyof VariantProps$1; type RadioGroupProps = (RadioGroupBtnProps & { variant: 'btn'; }) | (RadioGroupDefaultProps & { variant?: 'default'; }); type RadioGroupComponentMap = { [K in RadioGroupVariant]: ComponentType; }; declare const RadioGroup: ({ variant, ...rest }: RadioGroupProps) => react_jsx_runtime.JSX.Element; type RangeProps = Omit, 'type'>; declare const Range: ({ className, ...props }: RangeProps) => react_jsx_runtime.JSX.Element; type ScaledTextProps = { lines: (string | { text: string; props?: SVGProps; })[]; props?: SVGProps; }; declare const ScaledText: ({ lines, props }: ScaledTextProps) => react_jsx_runtime.JSX.Element; type SelectProps = ComponentProps<'select'> & { readOnly?: boolean; nativeDropdown?: boolean; }; declare const Select: ({ className, readOnly, tabIndex, nativeDropdown, ...props }: SelectProps) => react_jsx_runtime.JSX.Element; type TextAreaProps = ComponentProps<'textarea'>; declare const TextArea: ({ className, readOnly, tabIndex, ...props }: ComponentProps<"textarea">) => react_jsx_runtime.JSX.Element; type Base = { className?: string; }; type Icons = { iconDark?: ReactNode; iconLight?: ReactNode; }; type Trigger = { trigger?: ReactElement>; }; type ThemePickerToggleProps = Base & ClassNames<'icon' | 'label'> & Icons & { showLabel?: boolean; }; type ThemePickerToggle3WayProps = Base & ClassNames<'icon' | 'toggle'> & Icons & { iconSystem?: ReactNode; }; type ThemePickerPopoverProps = Base & ClassNames<'button' | 'content' | 'list' | 'popover' | 'search'> & Trigger & { position?: PopoverPosition; showSearch?: boolean; }; type ThemePickerModalProps = Base & ClassNames<'button' | 'defaultTrigger' | 'list' | 'search'> & Trigger & { modalProps?: Partial>; showSearch?: boolean; }; type VariantProps = { modal: ThemePickerModalProps; popover: ThemePickerPopoverProps; toggle: ThemePickerToggleProps; 'toggle-3way': ThemePickerToggle3WayProps; }; type ThemePickerVariant = keyof VariantProps; type ThemePickerProps = (ThemePickerModalProps & { variant: 'modal'; }) | (ThemePickerPopoverProps & { variant: 'popover'; }) | (ThemePickerToggle3WayProps & { variant: 'toggle-3way'; }) | (ThemePickerToggleProps & { variant?: 'toggle'; }); type ThemePickerComponentMap = { [K in ThemePickerVariant]: ComponentType; }; declare const ThemePicker: ({ variant, ...rest }: ThemePickerProps) => react_jsx_runtime.JSX.Element; type TimeoutBarProps = { active: boolean; className?: string; duration?: number; /** Key to reset the animation (e.g., increment on each trigger) */ resetKey?: number | string; }; declare const TimeoutBar: ({ active, className, duration, resetKey }: TimeoutBarProps) => react_jsx_runtime.JSX.Element | null; declare const toastPositions: ["top-left", "top-center", "top-right", "bottom-left", "bottom-center", "bottom-right"]; type ToastPosition = (typeof toastPositions)[number]; type ToasterProps = OverrideProperties & { /** Element to portal into. Defaults to `document.body`. Pass `null` to render in place. */ container?: Element | null; }; declare const Toaster: ({ toastOptions, container, ...props }: ToasterProps) => react_jsx_runtime.JSX.Element; type ToggleProps = Omit, 'type'>; declare const Toggle: ({ className, ...props }: ToggleProps) => react_jsx_runtime.JSX.Element; type TriToggleValue = boolean | null | undefined; type TriToggleProps = Omit, 'checked' | 'defaultChecked' | 'defaultValue' | 'onChange' | 'type' | 'value'> & { value?: TriToggleValue; defaultValue?: TriToggleValue; onChange?: (value: TriToggleValue) => void; }; declare const TriToggle: ({ value, defaultValue, onChange, name, ref, readOnly, className, ...props }: TriToggleProps) => react_jsx_runtime.JSX.Element; export { AnimatedNumber, type AnimatedNumberProps, type AnimationTiming, AsciiImage, type AsciiImageProps, AsciiVideo, type AsciiVideoProps, type Attribute, BalancedGrid, type BalancedGridProps, BarChart, type BarChartProps, type BaseChartClassNames, type BaseChartFormatters, Button, type ButtonProps, CONFIRM_BUTTON_CANCEL_OPTIONS, type CartesianChartBaseProps, type CartesianChartClassNames, type CartesianFormatters, type CartesianSubProps, type ChartBaseProps, type ChartCssVars, ChartLegend, type ChartLegendClassNames, type ChartLegendComponents, type ChartLegendFormatters, type ChartSeries, ChartTooltip, type ChartTooltipClassNames, type ChartTooltipComponents, type ChartTooltipFormatters, type ChartTooltipProps, Checkbox, type CheckboxProps, type ChoroplethConfig, type ChoroplethDatum, type ChoroplethScaleType, type ClassNames, ClipboardButton, type ClipboardButtonClassNames, type ClipboardButtonProps, type ClusterConfig, type ClusteredPoint, ColorButton, type ColorButtonProps, ColorFormat, ColorMixSpace, ColorPicker, type ColorPickerComponentMap, type ColorPickerHexWheelClassNames, type ColorPickerHexWheelProps, type ColorPickerLCHClassNames, type ColorPickerLCHProps, ColorPickerPreview, type ColorPickerPreviewProps, type ColorPickerPreviewSlot, type ColorPickerProps, type ColorPickerTailwindClassNames, type ColorPickerTailwindProps, type ColorPickerVariant, ConditionalWrapper, type ConditionalWrapperProps, ConfirmButton, type ConfirmButtonCancelOption, type ConfirmButtonClassNames, type ConfirmButtonProps, type CurveType, DaisyThemeColor, DaisyThemeName, type DeriveProps, type DigitsConfig, Duration, DurationUnit, Field, type FieldClassNames, type FieldProps, type FieldSlot, Fieldset, type FieldsetProps, type FillType, type FormInputConfig, type FormattedSegment, FunctionalClassName, Gamut, type GeoAnchor, type GeoClusterState, type GeoDataSource, type GeoLegendItem, GeoMap, type GeoMapBaseProps, type GeoMapClassNames, type GeoMapComponents, type GeoMapFormatters, type GeoMapGraticuleComponents, type GeoMapLegendClassNames, type GeoMapLegendComponents, type GeoMapLegendFormatters, type GeoMapProps, type GeoMapSubProps, type GeoMapTooltipClassNames, type GeoMapTooltipComponents, type GeoMapTooltipFormatters, type GeoMapZoomControlsComponents, type GeoPoint, type GeoPointState, type GeoProjectionPreset, type GeoRegion, type GeoRegionFilter, type GeoRegionState, type GeoTooltipState, type GeoZoomState, type HexCellState, HexOrientation, Input, type InputProps, type LegendItem, LineChart, type LineChartProps, LineFieldImage, type LineFieldImageProps, MODAL_DISMISS_OPTIONS, Modal, type ModalApi, type ModalClassNames, type ModalDismissOption, type ModalProps, type NamedFeature, type NormalizedRadioOption, PieChart, type PieChartProps, Placement, PlacementPicker, type PlacementPickerProps, type PointsConfig, type PolarChartBaseProps, type PolarFormatters, type PopoverPosition, RadarChart, type RadarChartProps, RadialBarChart, type RadialBarChartProps, type RadialBarChartSubProps, Radio, type RadioBtnProps, type RadioDefaultProps, RadioGroup, type RadioGroupBtnProps, type RadioGroupComponentMap, type RadioGroupDefaultProps, type RadioGroupProps, type RadioGroupVariant, type RadioOption, type RadioProps, Range, type RangeProps, type ResolvedTiming, SankeyChart, type SankeyChartProps, type SankeyClickData, type SankeyLink, ScaledText, type ScaledTextProps, Select, type SelectProps, TailwindColor, TailwindColorName, TailwindShade, type TailwindSwatchState, TextArea, type TextAreaProps, type ThemeName, ThemePicker, type ThemePickerComponentMap, type ThemePickerModalProps, type ThemePickerPopoverProps, type ThemePickerProps, type ThemePickerToggle3WayProps, type ThemePickerToggleProps, type ThemePickerVariant, ThemeProvider, type ThemeProviderProps, ThemeScript, TimeoutBar, type TimeoutBarProps, type ToastPosition, Toaster, type ToasterProps, Toggle, type ToggleProps, type TooltipData, type TooltipItem, TriToggle, type TriToggleProps, type TriToggleValue, type UseDurationOptions, type UseNativeDialogOptions, type UseNativePopoverOptions, type UseThemeProps, characterRamps, chartCssVars, choroplethScaleTypes, clipboardButtonClassNames, colorPickerPreviewSlots, confirmButtonClassNames, fieldClassNames, fieldSlots, geoProjectionPresets, modalClassNames, popoverPositions, toastPositions, useAscii, useBreakpoint, useCycle, useDuration, useGamut, useNativeDialog, useNativePopover, useRadioGroup, useTheme, useUnsavedChangesPrompt };