@asymmetric-effort/specifyjs 0.2.21 → 0.2.26

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.
@@ -535,6 +535,8 @@ interface RadioGroupProps {
535
535
  error?: string;
536
536
  /** Label for the group */
537
537
  label?: string;
538
+ /** HTML id for the radio group */
539
+ id?: string;
538
540
  }
539
541
  declare function RadioGroup(props: RadioGroupProps): specifyjs_shared_types.SpecElement<specifyjs_shared_types.Props>;
540
542
 
@@ -2763,59 +2765,40 @@ interface GaugeProps {
2763
2765
  }
2764
2766
  declare function Gauge(props: GaugeProps): specifyjs_shared_types.SpecElement<specifyjs_shared_types.Props>;
2765
2767
 
2766
- interface GeoRegion {
2767
- id: string;
2768
- label: string;
2769
- path: string;
2770
- value?: number;
2771
- color?: string;
2772
- }
2773
- interface GeoMarker {
2774
- lat: number;
2775
- lon: number;
2776
- label?: string;
2777
- color?: string;
2778
- radius?: number;
2779
- }
2780
- interface GeoMapProps {
2781
- /** SVG path data for each region */
2782
- regions?: GeoRegion[];
2783
- /** Point markers */
2784
- markers?: GeoMarker[];
2785
- /** SVG width in pixels (default: 800) */
2768
+ interface USStateMapProps {
2769
+ /** SVG width in pixels (default: 959) */
2786
2770
  width?: number;
2787
- /** SVG height in pixels (default: 500) */
2771
+ /** SVG height in pixels (default: 593) */
2788
2772
  height?: number;
2789
- /** Map projection type (default: 'equirectangular') */
2790
- projection?: 'mercator' | 'equirectangular';
2791
- /** Gradient colors for choropleth coloring (default: blue scale) */
2792
- colorScale?: string[];
2793
- /** Minimum value for color scale domain */
2794
- minValue?: number;
2795
- /** Maximum value for color scale domain */
2796
- maxValue?: number;
2797
- /** Show region labels (default: false) */
2798
- showLabels?: boolean;
2799
- /** SVG background color (default: '#f0f4f8') */
2800
- backgroundColor?: string;
2801
- /** Region border color (default: '#94a3b8') */
2802
- borderColor?: string;
2803
- /** Region border width (default: 1) */
2804
- borderWidth?: number;
2805
- /** Default fill color for regions without a value (default: '#cbd5e1') */
2806
- defaultRegionColor?: string;
2807
- /** Chart title */
2773
+ /** Map of state abbreviation to fill color */
2774
+ stateColors?: Record<string, string>;
2775
+ /** Default fill color for states not in stateColors (default: '#D0D0D0') */
2776
+ defaultColor?: string;
2777
+ /** Border color between states (default: '#FFFFFF') */
2778
+ strokeColor?: string;
2779
+ /** Border width between states (default: 1) */
2780
+ strokeWidth?: number;
2781
+ /** Click handler receives the state abbreviation */
2782
+ onStateClick?: (stateId: string) => void;
2783
+ /** Hover handler receives the state abbreviation or null on mouse leave */
2784
+ onStateHover?: (stateId: string | null) => void;
2785
+ /** Highlight color on hover (default: '#FFD700') */
2786
+ hoverColor?: string;
2787
+ /** Accessible title for the SVG (default: 'Map of the United States') */
2808
2788
  title?: string;
2809
- /** Padding around chart area in px (default: 20) */
2810
- padding?: number;
2811
2789
  }
2790
+ declare function USStateMap(props: USStateMapProps): specifyjs_shared_types.SpecElement<specifyjs_shared_types.Props>;
2791
+
2812
2792
  /**
2813
- * Generate simplified US map outline with ~10 state-like regions.
2814
- * Coordinates are pre-computed SVG path data (not geographic coordinates).
2815
- * Designed for a viewBox of roughly 800x500.
2793
+ * US state SVG path data extracted from a public domain (CC0) blank US map.
2794
+ * Each entry maps a two-letter state abbreviation to its name and SVG path.
2795
+ * The paths are designed for a viewBox of "0 0 959 593".
2816
2796
  */
2817
- declare function generateUSMapOutline(): GeoRegion[];
2818
- declare function GeoMap(props: GeoMapProps): specifyjs_shared_types.SpecElement<specifyjs_shared_types.Props>;
2797
+ interface StatePathData {
2798
+ name: string;
2799
+ path: string;
2800
+ }
2801
+ declare const US_STATE_PATHS: Record<string, StatePathData>;
2819
2802
 
2820
2803
  interface HeatMapProps {
2821
2804
  /** 2D grid of values — data[row][col] */
@@ -3273,5 +3256,5 @@ interface DiscreteCartesian2DProps {
3273
3256
  }
3274
3257
  declare function DiscreteCartesian2D(props: DiscreteCartesian2DProps): specifyjs_shared_types.SpecElement<specifyjs_shared_types.Props>;
3275
3258
 
3276
- export { Accordion, Alert, AnalogClock, Avatar, Badge, BarGraph, BigNumber, BlochSphere, BoxPlot, Breadcrumb, BubbleChart, Button, CalendarHeatMap, Card, Carousel, CartesianGraph2D, Checkbox, ChordDiagram, ColorPicker, ColorWheel, ComplexGraph2D, ContextMenu, DataGrid, DatePicker, DecompositionTree, DigitalClock, DiscreteCartesian2D, Drawer, Dropdown, EmptyState, FileUpload, FlexContainer, FlexItem, Footer, ForceGraph, FormFieldWrapper, FunnelChart, GanttChart, Gauge, GeoMap, GoogleAnalytics, Grid, GridItem, HeatMap, Histogram, HypercubeGraph, IDE, Image, LineGraph, ListView, LollipopChart, Matrix, Menubar, Modal, MultilineField, NavWrapper, NumberSpinner, Pagination, Panel, Partition, PieGraph, PivotTable, PolarGraph2D, Popover, ProgressBar, RadarChart, RadioGroup, SankeyDiagram, ScrollContainer, Select, Sidebar, Skeleton, Slider, Spinner, Splitter, Stepper, Sunburst, Tabs, Tag, TextEditor, TextField, ThreeDLayers, TimePicker, ToastContainer, Toggle, Toolbar, Tooltip, TradingDashboard, TreeMap, TreeNav, TreeNode, UnityDesktop, VectorField, VideoPlayer, VirtualScroll, VizWrapper, WaterfallChart, WordCloud, WordProcessor, applyGate, blochToCartesian, buildInputStyle, buildNavItemStyle, buildRotationMatrix, cartesianToBloch, computeBoxStats, computeMandelbrotGrid, computeSlices, createToaster, describeArc, generateEdges, generateHypercube, generatePalette, generateUSMapOutline, generateVertices, numRotationAngles, projectTo2D, transformVec, useBarGraphScales, useHover, useHypercube, useLineGraphScales, useToast };
3277
- export type { AccordionContentStyle, AccordionHeaderStyle, AccordionProps, AccordionSection, AlertProps, AnalogClockProps, AvatarProps, BadgeProps, BarDatum, BarGraphProps, BarGraphScales, BigNumberProps, BlochSphereProps, BlochState, BoxPlotDatum, BoxPlotProps, BoxStats, BreadcrumbItem, BreadcrumbProps, BreadcrumbSize, BubbleChartProps, BubbleDatum, ButtonProps, CalendarDatum, CalendarHeatMapProps, CardProps, CarouselProps, CartesianGraph2DProps, CheckboxProps, ChordDiagramProps, ColorPickerProps, ColorWheelProps, ComplexGraph2DProps, ComplexPointInfo, ComputedSlice, ContextMenuItem, ContextMenuProps, CustomForceFunction, DataGridColumn, DataGridProps, DatePickerProps, DecompNode, DecompositionTreeProps, DigitalClockProps, DiscreteCartesian2DProps, DrawerPosition, DrawerProps, DropdownItem, DropdownProps, Edge, EmptyStateProps, FileUploadProps, FlexContainerProps, FlexItemProps, FooterProps, ForceEdge, ForceGraphProps, ForceNode, ForceSimNode, FormFieldWrapperProps, FormFieldWrapperStyle, FunnelChartProps, FunnelDatum, GanttChartProps, GanttTask, GateName, GateOp, GaugeProps, GeoMapProps, GeoMarker, GeoRegion, GoogleAnalyticsProps, GridBreakpoint, GridItemProps, GridProps, HeatMapProps, HistogramProps, HypercubeData, HypercubeGraphProps, IDEProps, ImageProps, InputBaseStyle, Layer3D, LegendItem, LineGraphProps, LineSeries, ListViewProps, LollipopChartProps, LollipopDatum, MatrixProps, MenuDefinition, MenuItem, MenubarProps, ModalProps, ModalSize, MousePosition, MultilineFieldProps, NavItemStyle, NavOrientation, NavWrapperProps, NavWrapperStyle, NumberSpinnerProps, PaginationProps, PanelProps, PartitionNode, PartitionProps, PieGraphProps, PieSliceDatum, PivotTableProps, Point, PointEvent, PointShape, PolarGraph2DProps, PolarPointInfo, PopoverPlacement, PopoverProps, Position, ProgressBarProps, RadarAxis, RadarChartProps, RadarSeries, RadioGroupProps, RadioOption, SankeyDiagramProps, SankeyLink, SankeyNode, ScrollContainerProps, SelectOption, SelectProps, SidebarItem, SidebarProps, SkeletonProps, SliderMark, SliderProps, SpinnerProps, SplitterProps, StackedBarDatum, StepItem, StepperOrientation, StepperProps, StepperVariant, SunburstNode, SunburstProps, TabDefinition, TabsProps, TagProps, TextEditorProps, TextFieldProps, ThreeDLayersProps, TimePickerProps, ToastAction, ToastItem, ToastOptions, ToastPosition, ToastType, Toaster, ToasterConfig, ToggleProps, ToolbarButton, ToolbarItem, ToolbarProps, ToolbarSize, ToolbarVariant, TooltipPlacement, TooltipProps, TradingDashboardProps, TrailConfig, TrailPoint, TreeMapNode, TreeMapProps, TreeNavProps, TreeNodeData, UnityDesktopProps, UseHypercubeOptions, Vec, VectorDatum, VectorFieldProps, Vertex, VideoPlayerProps, VirtualScrollProps, VizWrapperProps, WaterfallChartProps, WaterfallDatum, WordCloudProps, WordDatum, WordProcessorProps };
3259
+ export { Accordion, Alert, AnalogClock, Avatar, Badge, BarGraph, BigNumber, BlochSphere, BoxPlot, Breadcrumb, BubbleChart, Button, CalendarHeatMap, Card, Carousel, CartesianGraph2D, Checkbox, ChordDiagram, ColorPicker, ColorWheel, ComplexGraph2D, ContextMenu, DataGrid, DatePicker, DecompositionTree, DigitalClock, DiscreteCartesian2D, Drawer, Dropdown, EmptyState, FileUpload, FlexContainer, FlexItem, Footer, ForceGraph, FormFieldWrapper, FunnelChart, GanttChart, Gauge, GoogleAnalytics, Grid, GridItem, HeatMap, Histogram, HypercubeGraph, IDE, Image, LineGraph, ListView, LollipopChart, Matrix, Menubar, Modal, MultilineField, NavWrapper, NumberSpinner, Pagination, Panel, Partition, PieGraph, PivotTable, PolarGraph2D, Popover, ProgressBar, RadarChart, RadioGroup, SankeyDiagram, ScrollContainer, Select, Sidebar, Skeleton, Slider, Spinner, Splitter, Stepper, Sunburst, Tabs, Tag, TextEditor, TextField, ThreeDLayers, TimePicker, ToastContainer, Toggle, Toolbar, Tooltip, TradingDashboard, TreeMap, TreeNav, TreeNode, USStateMap, US_STATE_PATHS, UnityDesktop, VectorField, VideoPlayer, VirtualScroll, VizWrapper, WaterfallChart, WordCloud, WordProcessor, applyGate, blochToCartesian, buildInputStyle, buildNavItemStyle, buildRotationMatrix, cartesianToBloch, computeBoxStats, computeMandelbrotGrid, computeSlices, createToaster, describeArc, generateEdges, generateHypercube, generatePalette, generateVertices, numRotationAngles, projectTo2D, transformVec, useBarGraphScales, useHover, useHypercube, useLineGraphScales, useToast };
3260
+ export type { AccordionContentStyle, AccordionHeaderStyle, AccordionProps, AccordionSection, AlertProps, AnalogClockProps, AvatarProps, BadgeProps, BarDatum, BarGraphProps, BarGraphScales, BigNumberProps, BlochSphereProps, BlochState, BoxPlotDatum, BoxPlotProps, BoxStats, BreadcrumbItem, BreadcrumbProps, BreadcrumbSize, BubbleChartProps, BubbleDatum, ButtonProps, CalendarDatum, CalendarHeatMapProps, CardProps, CarouselProps, CartesianGraph2DProps, CheckboxProps, ChordDiagramProps, ColorPickerProps, ColorWheelProps, ComplexGraph2DProps, ComplexPointInfo, ComputedSlice, ContextMenuItem, ContextMenuProps, CustomForceFunction, DataGridColumn, DataGridProps, DatePickerProps, DecompNode, DecompositionTreeProps, DigitalClockProps, DiscreteCartesian2DProps, DrawerPosition, DrawerProps, DropdownItem, DropdownProps, Edge, EmptyStateProps, FileUploadProps, FlexContainerProps, FlexItemProps, FooterProps, ForceEdge, ForceGraphProps, ForceNode, ForceSimNode, FormFieldWrapperProps, FormFieldWrapperStyle, FunnelChartProps, FunnelDatum, GanttChartProps, GanttTask, GateName, GateOp, GaugeProps, GoogleAnalyticsProps, GridBreakpoint, GridItemProps, GridProps, HeatMapProps, HistogramProps, HypercubeData, HypercubeGraphProps, IDEProps, ImageProps, InputBaseStyle, Layer3D, LegendItem, LineGraphProps, LineSeries, ListViewProps, LollipopChartProps, LollipopDatum, MatrixProps, MenuDefinition, MenuItem, MenubarProps, ModalProps, ModalSize, MousePosition, MultilineFieldProps, NavItemStyle, NavOrientation, NavWrapperProps, NavWrapperStyle, NumberSpinnerProps, PaginationProps, PanelProps, PartitionNode, PartitionProps, PieGraphProps, PieSliceDatum, PivotTableProps, Point, PointEvent, PointShape, PolarGraph2DProps, PolarPointInfo, PopoverPlacement, PopoverProps, Position, ProgressBarProps, RadarAxis, RadarChartProps, RadarSeries, RadioGroupProps, RadioOption, SankeyDiagramProps, SankeyLink, SankeyNode, ScrollContainerProps, SelectOption, SelectProps, SidebarItem, SidebarProps, SkeletonProps, SliderMark, SliderProps, SpinnerProps, SplitterProps, StackedBarDatum, StatePathData, StepItem, StepperOrientation, StepperProps, StepperVariant, SunburstNode, SunburstProps, TabDefinition, TabsProps, TagProps, TextEditorProps, TextFieldProps, ThreeDLayersProps, TimePickerProps, ToastAction, ToastItem, ToastOptions, ToastPosition, ToastType, Toaster, ToasterConfig, ToggleProps, ToolbarButton, ToolbarItem, ToolbarProps, ToolbarSize, ToolbarVariant, TooltipPlacement, TooltipProps, TradingDashboardProps, TrailConfig, TrailPoint, TreeMapNode, TreeMapProps, TreeNavProps, TreeNodeData, USStateMapProps, UnityDesktopProps, UseHypercubeOptions, Vec, VectorDatum, VectorFieldProps, Vertex, VideoPlayerProps, VirtualScrollProps, VizWrapperProps, WaterfallChartProps, WaterfallDatum, WordCloudProps, WordDatum, WordProcessorProps };