@elaraai/east-ui 0.0.1-beta.16 → 0.0.1-beta.18

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.
Files changed (122) hide show
  1. package/dist/src/charts/area/index.d.ts +91 -2
  2. package/dist/src/charts/area/index.d.ts.map +1 -1
  3. package/dist/src/charts/area/index.js +255 -34
  4. package/dist/src/charts/area/index.js.map +1 -1
  5. package/dist/src/charts/area/types.d.ts +1344 -16
  6. package/dist/src/charts/area/types.d.ts.map +1 -1
  7. package/dist/src/charts/area/types.js +76 -1
  8. package/dist/src/charts/area/types.js.map +1 -1
  9. package/dist/src/charts/bar/index.d.ts +1 -1
  10. package/dist/src/charts/bar/index.d.ts.map +1 -1
  11. package/dist/src/charts/bar/index.js +62 -33
  12. package/dist/src/charts/bar/index.js.map +1 -1
  13. package/dist/src/charts/bar/types.d.ts +391 -16
  14. package/dist/src/charts/bar/types.d.ts.map +1 -1
  15. package/dist/src/charts/bar/types.js +6 -1
  16. package/dist/src/charts/bar/types.js.map +1 -1
  17. package/dist/src/charts/composed/index.d.ts +103 -0
  18. package/dist/src/charts/composed/index.d.ts.map +1 -0
  19. package/dist/src/charts/composed/index.js +300 -0
  20. package/dist/src/charts/composed/index.js.map +1 -0
  21. package/dist/src/charts/composed/types.d.ts +1183 -0
  22. package/dist/src/charts/composed/types.d.ts.map +1 -0
  23. package/dist/src/charts/composed/types.js +87 -0
  24. package/dist/src/charts/composed/types.js.map +1 -0
  25. package/dist/src/charts/index.d.ts +4488 -847
  26. package/dist/src/charts/index.d.ts.map +1 -1
  27. package/dist/src/charts/index.js +308 -55
  28. package/dist/src/charts/index.js.map +1 -1
  29. package/dist/src/charts/line/index.d.ts +1 -1
  30. package/dist/src/charts/line/index.d.ts.map +1 -1
  31. package/dist/src/charts/line/index.js +62 -33
  32. package/dist/src/charts/line/index.js.map +1 -1
  33. package/dist/src/charts/line/types.d.ts +395 -16
  34. package/dist/src/charts/line/types.d.ts.map +1 -1
  35. package/dist/src/charts/line/types.js +7 -1
  36. package/dist/src/charts/line/types.js.map +1 -1
  37. package/dist/src/charts/pie/index.d.ts.map +1 -1
  38. package/dist/src/charts/pie/index.js +8 -3
  39. package/dist/src/charts/pie/index.js.map +1 -1
  40. package/dist/src/charts/pie/types.d.ts +4 -4
  41. package/dist/src/charts/pie/types.d.ts.map +1 -1
  42. package/dist/src/charts/pie/types.js.map +1 -1
  43. package/dist/src/charts/radar/index.d.ts.map +1 -1
  44. package/dist/src/charts/radar/index.js +11 -4
  45. package/dist/src/charts/radar/index.js.map +1 -1
  46. package/dist/src/charts/radar/types.d.ts +4 -0
  47. package/dist/src/charts/radar/types.d.ts.map +1 -1
  48. package/dist/src/charts/scatter/index.d.ts +1 -1
  49. package/dist/src/charts/scatter/index.d.ts.map +1 -1
  50. package/dist/src/charts/scatter/index.js +55 -20
  51. package/dist/src/charts/scatter/index.js.map +1 -1
  52. package/dist/src/charts/scatter/types.d.ts +386 -24
  53. package/dist/src/charts/scatter/types.d.ts.map +1 -1
  54. package/dist/src/charts/scatter/types.js +5 -1
  55. package/dist/src/charts/scatter/types.js.map +1 -1
  56. package/dist/src/charts/types.d.ts +625 -4
  57. package/dist/src/charts/types.d.ts.map +1 -1
  58. package/dist/src/charts/types.js +406 -1
  59. package/dist/src/charts/types.js.map +1 -1
  60. package/dist/src/collections/gantt/index.d.ts +1103 -24773
  61. package/dist/src/collections/gantt/index.d.ts.map +1 -1
  62. package/dist/src/collections/planner/index.d.ts +5 -9473
  63. package/dist/src/collections/planner/index.d.ts.map +1 -1
  64. package/dist/src/collections/table/index.d.ts +626 -19562
  65. package/dist/src/collections/table/index.d.ts.map +1 -1
  66. package/dist/src/collections/table/index.js.map +1 -1
  67. package/dist/src/component.d.ts +3850 -709
  68. package/dist/src/component.d.ts.map +1 -1
  69. package/dist/src/component.js +4 -1
  70. package/dist/src/component.js.map +1 -1
  71. package/dist/src/container/card/index.d.ts +9 -28415
  72. package/dist/src/container/card/index.d.ts.map +1 -1
  73. package/dist/src/container/card/index.js.map +1 -1
  74. package/dist/src/disclosure/accordion/index.d.ts +4 -18908
  75. package/dist/src/disclosure/accordion/index.d.ts.map +1 -1
  76. package/dist/src/disclosure/accordion/index.js.map +1 -1
  77. package/dist/src/disclosure/carousel/index.d.ts +5 -9473
  78. package/dist/src/disclosure/carousel/index.d.ts.map +1 -1
  79. package/dist/src/disclosure/carousel/index.js.map +1 -1
  80. package/dist/src/disclosure/tabs/index.d.ts +25 -18929
  81. package/dist/src/disclosure/tabs/index.d.ts.map +1 -1
  82. package/dist/src/disclosure/tabs/index.js.map +1 -1
  83. package/dist/src/layout/box/index.d.ts +5 -9601
  84. package/dist/src/layout/box/index.d.ts.map +1 -1
  85. package/dist/src/layout/box/index.js.map +1 -1
  86. package/dist/src/layout/flex/index.d.ts +5 -9591
  87. package/dist/src/layout/flex/index.d.ts.map +1 -1
  88. package/dist/src/layout/flex/index.js.map +1 -1
  89. package/dist/src/layout/grid/index.d.ts +7 -19043
  90. package/dist/src/layout/grid/index.d.ts.map +1 -1
  91. package/dist/src/layout/grid/index.js.map +1 -1
  92. package/dist/src/layout/splitter/index.d.ts +7 -18949
  93. package/dist/src/layout/splitter/index.d.ts.map +1 -1
  94. package/dist/src/layout/splitter/index.js.map +1 -1
  95. package/dist/src/layout/stack/index.d.ts +5 -9587
  96. package/dist/src/layout/stack/index.d.ts.map +1 -1
  97. package/dist/src/layout/stack/index.js.map +1 -1
  98. package/dist/src/overlays/action-bar/index.d.ts +5 -25
  99. package/dist/src/overlays/action-bar/index.d.ts.map +1 -1
  100. package/dist/src/overlays/action-bar/index.js.map +1 -1
  101. package/dist/src/overlays/dialog/index.d.ts +97 -38115
  102. package/dist/src/overlays/dialog/index.d.ts.map +1 -1
  103. package/dist/src/overlays/dialog/index.js.map +1 -1
  104. package/dist/src/overlays/drawer/index.d.ts +97 -38013
  105. package/dist/src/overlays/drawer/index.d.ts.map +1 -1
  106. package/dist/src/overlays/drawer/index.js.map +1 -1
  107. package/dist/src/overlays/hover-card/index.d.ts +7 -18961
  108. package/dist/src/overlays/hover-card/index.d.ts.map +1 -1
  109. package/dist/src/overlays/hover-card/index.js.map +1 -1
  110. package/dist/src/overlays/menu/index.d.ts +7 -9499
  111. package/dist/src/overlays/menu/index.d.ts.map +1 -1
  112. package/dist/src/overlays/menu/index.js.map +1 -1
  113. package/dist/src/overlays/popover/index.d.ts +7 -18959
  114. package/dist/src/overlays/popover/index.d.ts.map +1 -1
  115. package/dist/src/overlays/popover/index.js.map +1 -1
  116. package/dist/src/overlays/toggle-tip/index.d.ts +5 -9491
  117. package/dist/src/overlays/toggle-tip/index.d.ts.map +1 -1
  118. package/dist/src/overlays/toggle-tip/index.js.map +1 -1
  119. package/dist/src/overlays/tooltip/index.d.ts +5 -9483
  120. package/dist/src/overlays/tooltip/index.d.ts.map +1 -1
  121. package/dist/src/overlays/tooltip/index.js.map +1 -1
  122. package/package.json +2 -2
@@ -12,6 +12,25 @@
12
12
  * @packageDocumentation
13
13
  */
14
14
  import { type SubtypeExprOrValue, OptionType, StructType, ArrayType, DictType, StringType, FloatType, BooleanType, VariantType, NullType, IntegerType, type ExprType } from "@elaraai/east";
15
+ /**
16
+ * Y-axis identifier for dual y-axis charts.
17
+ *
18
+ * @remarks
19
+ * Used to bind series to either the primary (left) or secondary (right) y-axis.
20
+ *
21
+ * @property left - Bind to primary y-axis (yAxis, left side)
22
+ * @property right - Bind to secondary y-axis (yAxis2, right side)
23
+ */
24
+ export declare const YAxisIdType: VariantType<{
25
+ left: NullType;
26
+ right: NullType;
27
+ }>;
28
+ /**
29
+ * Type representing y-axis identifier.
30
+ */
31
+ export type YAxisIdType = typeof YAxisIdType;
32
+ /** String literal type for y-axis ID */
33
+ export type YAxisIdLiteral = "left" | "right";
15
34
  /**
16
35
  * Series configuration for multi-series charts.
17
36
  *
@@ -28,6 +47,7 @@ import { type SubtypeExprOrValue, OptionType, StructType, ArrayType, DictType, S
28
47
  * @property fill - Fill color (defaults to color)
29
48
  * @property fillOpacity - Fill opacity (0-1)
30
49
  * @property strokeDasharray - Dash pattern for dashed lines (e.g., "5 5")
50
+ * @property yAxisId - Y-axis binding (left = primary yAxis, right = secondary yAxis2)
31
51
  */
32
52
  export declare const ChartSeriesType: StructType<{
33
53
  name: StringType;
@@ -39,6 +59,10 @@ export declare const ChartSeriesType: StructType<{
39
59
  fill: OptionType<StringType>;
40
60
  fillOpacity: OptionType<FloatType>;
41
61
  strokeDasharray: OptionType<StringType>;
62
+ yAxisId: OptionType<VariantType<{
63
+ left: NullType;
64
+ right: NullType;
65
+ }>>;
42
66
  }>;
43
67
  /**
44
68
  * Type representing chart series configuration.
@@ -66,6 +90,8 @@ export interface ChartSeries {
66
90
  fillOpacity?: SubtypeExprOrValue<FloatType>;
67
91
  /** Dash pattern for dashed lines (e.g., "5 5") */
68
92
  strokeDasharray?: SubtypeExprOrValue<StringType>;
93
+ /** Y-axis binding (left = primary yAxis, right = secondary yAxis2) */
94
+ yAxisId?: SubtypeExprOrValue<YAxisIdType> | YAxisIdLiteral;
69
95
  }
70
96
  export declare function ChartSeries(series: ChartSeries): ExprType<ChartSeriesType>;
71
97
  /**
@@ -1732,6 +1758,110 @@ export interface ChartAxis {
1732
1758
  axisId?: SubtypeExprOrValue<StringType>;
1733
1759
  }
1734
1760
  export declare function ChartAxis(axis: ChartAxis): ExprType<typeof ChartAxisType>;
1761
+ /**
1762
+ * Type-safe axis configuration interface for chart factories.
1763
+ *
1764
+ * @remarks
1765
+ * This interface provides full axis configuration with type-safe dataKey validation.
1766
+ * Used by chart style interfaces (BarChartStyle, LineChartStyle, etc.) to allow
1767
+ * plain object configuration instead of requiring Chart.Axis() helper.
1768
+ *
1769
+ * @typeParam DataKey - Union of valid field names from the data struct
1770
+ *
1771
+ * @property dataKey - Data key for axis values (type-safe to data field names)
1772
+ * @property label - Axis label text
1773
+ * @property tickFormat - Format for tick values
1774
+ * @property domain - Value range [min, max]
1775
+ * @property hide - Hide the axis entirely
1776
+ * @property axisLine - Show/hide axis line
1777
+ * @property tickLine - Show/hide tick lines
1778
+ * @property tickMargin - Margin between tick and label
1779
+ * @property orientation - Axis position (top/bottom for X, left/right for Y)
1780
+ * @property axisId - Identifier for biaxial charts
1781
+ *
1782
+ * @example
1783
+ * ```ts
1784
+ * // Type-safe - only valid field names allowed for dataKey
1785
+ * const style: BarChartStyle<"month" | "sales"> = {
1786
+ * xAxis: { dataKey: "month", label: "Month" },
1787
+ * yAxis: { label: "Sales ($)", tickFormat: "currency" },
1788
+ * };
1789
+ * ```
1790
+ */
1791
+ export interface ChartAxisStyle<DataKey extends string = string> {
1792
+ /** Data key for axis values (type-safe to data field names) */
1793
+ dataKey?: DataKey;
1794
+ /** Axis label text */
1795
+ label?: SubtypeExprOrValue<StringType>;
1796
+ /** Format for tick values - use string literals or TickFormat helpers */
1797
+ tickFormat?: SubtypeExprOrValue<TickFormatType> | SimpleTickFormatLiteral;
1798
+ /** Value range [min, max] */
1799
+ domain?: SubtypeExprOrValue<ArrayType<FloatType>>;
1800
+ /** Hide the axis entirely */
1801
+ hide?: SubtypeExprOrValue<BooleanType>;
1802
+ /** Show/hide axis line */
1803
+ axisLine?: SubtypeExprOrValue<BooleanType>;
1804
+ /** Show/hide tick lines */
1805
+ tickLine?: SubtypeExprOrValue<BooleanType>;
1806
+ /** Margin between tick and label */
1807
+ tickMargin?: SubtypeExprOrValue<IntegerType>;
1808
+ /** Axis position (top/bottom for X, left/right for Y) */
1809
+ orientation?: SubtypeExprOrValue<AxisOrientationType> | AxisOrientationLiteral;
1810
+ /** Identifier for biaxial charts (e.g., "left", "right") */
1811
+ axisId?: SubtypeExprOrValue<StringType>;
1812
+ }
1813
+ /**
1814
+ * Type-safe grid configuration interface for chart factories.
1815
+ */
1816
+ export interface ChartGridStyle {
1817
+ /** Enable/disable entire grid */
1818
+ show?: SubtypeExprOrValue<BooleanType>;
1819
+ /** Show vertical grid lines */
1820
+ vertical?: SubtypeExprOrValue<BooleanType>;
1821
+ /** Show horizontal grid lines */
1822
+ horizontal?: SubtypeExprOrValue<BooleanType>;
1823
+ /** Grid line color (Chakra color token, e.g., "border.muted") */
1824
+ strokeColor?: SubtypeExprOrValue<StringType>;
1825
+ /** Dash pattern (e.g., "3 3" for dashed lines) */
1826
+ strokeDasharray?: SubtypeExprOrValue<StringType>;
1827
+ }
1828
+ /**
1829
+ * Type-safe tooltip configuration interface for chart factories.
1830
+ */
1831
+ export interface ChartTooltipStyle {
1832
+ /** Enable/disable tooltip */
1833
+ show?: SubtypeExprOrValue<BooleanType>;
1834
+ /** Cursor style configuration */
1835
+ cursor?: SubtypeExprOrValue<TooltipCursorType>;
1836
+ /** Animation duration in milliseconds */
1837
+ animationDuration?: SubtypeExprOrValue<IntegerType>;
1838
+ }
1839
+ /**
1840
+ * Type-safe legend configuration interface for chart factories.
1841
+ */
1842
+ export interface ChartLegendStyle {
1843
+ /** Enable/disable legend */
1844
+ show?: SubtypeExprOrValue<BooleanType>;
1845
+ /** Horizontal or vertical arrangement */
1846
+ layout?: SubtypeExprOrValue<LegendLayoutType> | LegendLayoutLiteral;
1847
+ /** Horizontal alignment */
1848
+ align?: SubtypeExprOrValue<LegendAlignType> | LegendAlignLiteral;
1849
+ /** Vertical alignment */
1850
+ verticalAlign?: SubtypeExprOrValue<LegendVerticalAlignType> | LegendVerticalAlignLiteral;
1851
+ }
1852
+ /**
1853
+ * Type-safe margin configuration interface for chart factories.
1854
+ */
1855
+ export interface ChartMarginStyle {
1856
+ /** Top margin in pixels */
1857
+ top?: SubtypeExprOrValue<IntegerType>;
1858
+ /** Right margin in pixels */
1859
+ right?: SubtypeExprOrValue<IntegerType>;
1860
+ /** Bottom margin in pixels */
1861
+ bottom?: SubtypeExprOrValue<IntegerType>;
1862
+ /** Left margin in pixels */
1863
+ left?: SubtypeExprOrValue<IntegerType>;
1864
+ }
1735
1865
  /**
1736
1866
  * Base chart dimensions and display options.
1737
1867
  */
@@ -1769,13 +1899,13 @@ export interface ChartMargin {
1769
1899
  export declare function ChartMargin(margin: ChartMargin): ExprType<ChartMarginType>;
1770
1900
  export interface BaseChartStyle {
1771
1901
  /** Grid configuration */
1772
- grid?: SubtypeExprOrValue<ChartGridType>;
1902
+ grid?: ChartGridStyle;
1773
1903
  /** Tooltip configuration */
1774
- tooltip?: SubtypeExprOrValue<ChartTooltipType>;
1904
+ tooltip?: ChartTooltipStyle;
1775
1905
  /** Legend configuration */
1776
- legend?: SubtypeExprOrValue<ChartLegendType>;
1906
+ legend?: ChartLegendStyle;
1777
1907
  /** Chart margin configuration */
1778
- margin?: SubtypeExprOrValue<ChartMarginType>;
1908
+ margin?: ChartMarginStyle;
1779
1909
  /**
1780
1910
  * Value key for multi-series data (record form).
1781
1911
  * Specifies which field in each series array contains the Y value.
@@ -1827,6 +1957,72 @@ export declare const BaseChartStyleType: StructType<{
1827
1957
  left: OptionType<IntegerType>;
1828
1958
  }>>;
1829
1959
  }>;
1960
+ /**
1961
+ * Brush configuration for chart data range selection.
1962
+ *
1963
+ * @remarks
1964
+ * The Brush component allows users to select a range of data to display.
1965
+ * It renders a small preview chart with draggable handles for range selection.
1966
+ * Maps to Recharts Brush component.
1967
+ *
1968
+ * @property dataKey - Data key for brush labels (defaults to xAxis dataKey)
1969
+ * @property height - Brush height in pixels (default: 40)
1970
+ * @property travellerWidth - Width of slider handles in pixels (default: 5)
1971
+ * @property startIndex - Initial start index of selection
1972
+ * @property endIndex - Initial end index of selection
1973
+ * @property stroke - Stroke color for brush area
1974
+ * @property fill - Fill color for brush area
1975
+ */
1976
+ export declare const ChartBrushType: StructType<{
1977
+ dataKey: OptionType<StringType>;
1978
+ height: OptionType<IntegerType>;
1979
+ travellerWidth: OptionType<IntegerType>;
1980
+ startIndex: OptionType<IntegerType>;
1981
+ endIndex: OptionType<IntegerType>;
1982
+ stroke: OptionType<StringType>;
1983
+ fill: OptionType<StringType>;
1984
+ }>;
1985
+ /**
1986
+ * Type representing chart brush configuration.
1987
+ */
1988
+ export type ChartBrushType = typeof ChartBrushType;
1989
+ /**
1990
+ * Base TypeScript interface for chart brush configuration.
1991
+ *
1992
+ * @remarks
1993
+ * This base interface contains all brush options except dataKey.
1994
+ * Chart-specific interfaces extend this to add type-safe dataKey.
1995
+ *
1996
+ * @property height - Brush height in pixels (default: 40)
1997
+ * @property travellerWidth - Width of slider handles in pixels (default: 5)
1998
+ * @property startIndex - Initial start index of selection
1999
+ * @property endIndex - Initial end index of selection
2000
+ * @property stroke - Stroke color for brush area
2001
+ * @property fill - Fill color for brush area
2002
+ */
2003
+ export interface ChartBrushStyleBase {
2004
+ /** Brush height in pixels (default: 40) */
2005
+ height?: SubtypeExprOrValue<IntegerType>;
2006
+ /** Width of slider handles in pixels (default: 5) */
2007
+ travellerWidth?: SubtypeExprOrValue<IntegerType>;
2008
+ /** Initial start index of selection */
2009
+ startIndex?: SubtypeExprOrValue<IntegerType>;
2010
+ /** Initial end index of selection */
2011
+ endIndex?: SubtypeExprOrValue<IntegerType>;
2012
+ /** Stroke color for brush area */
2013
+ stroke?: SubtypeExprOrValue<StringType>;
2014
+ /** Fill color for brush area */
2015
+ fill?: SubtypeExprOrValue<StringType>;
2016
+ }
2017
+ /**
2018
+ * Creates a chart brush configuration.
2019
+ *
2020
+ * @param brush - Brush configuration options
2021
+ * @returns An East expression representing the brush configuration
2022
+ */
2023
+ export declare function ChartBrush(brush: ChartBrushStyleBase & {
2024
+ dataKey?: SubtypeExprOrValue<StringType>;
2025
+ }): ExprType<ChartBrushType>;
1830
2026
  /**
1831
2027
  * Type for multi-series data storage.
1832
2028
  *
@@ -1844,8 +2040,433 @@ export declare const MultiSeriesDataType: DictType<StringType, ArrayType<DictTyp
1844
2040
  DateTime: import("@elaraai/east").DateTimeType;
1845
2041
  Blob: import("@elaraai/east").BlobType;
1846
2042
  }>>>>;
2043
+ /**
2044
+ * Overflow behavior when reference annotation extends beyond chart bounds.
2045
+ *
2046
+ * @property discard - Don't render if outside bounds
2047
+ * @property hidden - Clip at chart boundary
2048
+ * @property visible - Render completely (may overflow)
2049
+ * @property extendDomain - Extend axis domain to include the reference
2050
+ */
2051
+ export declare const ReferenceOverflowType: VariantType<{
2052
+ discard: NullType;
2053
+ hidden: NullType;
2054
+ visible: NullType;
2055
+ extendDomain: NullType;
2056
+ }>;
2057
+ /**
2058
+ * Type representing reference overflow behavior.
2059
+ */
2060
+ export type ReferenceOverflowType = typeof ReferenceOverflowType;
2061
+ /**
2062
+ * String literal type for reference overflow values.
2063
+ */
2064
+ export type ReferenceOverflowLiteral = "discard" | "hidden" | "visible" | "extendDomain";
2065
+ /**
2066
+ * Label position options for reference annotations.
2067
+ *
2068
+ * @property top - Above the reference point
2069
+ * @property bottom - Below the reference point
2070
+ * @property left - To the left of the reference point
2071
+ * @property right - To the right of the reference point
2072
+ * @property center - Centered on the reference point
2073
+ * @property insideTop - Inside, at the top
2074
+ * @property insideBottom - Inside, at the bottom
2075
+ * @property insideLeft - Inside, at the left
2076
+ * @property insideRight - Inside, at the right
2077
+ */
2078
+ export declare const LabelPositionType: VariantType<{
2079
+ top: NullType;
2080
+ bottom: NullType;
2081
+ left: NullType;
2082
+ right: NullType;
2083
+ center: NullType;
2084
+ insideTop: NullType;
2085
+ insideBottom: NullType;
2086
+ insideLeft: NullType;
2087
+ insideRight: NullType;
2088
+ insideTopLeft: NullType;
2089
+ insideTopRight: NullType;
2090
+ insideBottomLeft: NullType;
2091
+ insideBottomRight: NullType;
2092
+ }>;
2093
+ /**
2094
+ * Type representing label position.
2095
+ */
2096
+ export type LabelPositionType = typeof LabelPositionType;
2097
+ /**
2098
+ * String literal type for label position values.
2099
+ */
2100
+ export type LabelPositionLiteral = "top" | "bottom" | "left" | "right" | "center" | "insideTop" | "insideBottom" | "insideLeft" | "insideRight" | "insideTopLeft" | "insideTopRight" | "insideBottomLeft" | "insideBottomRight";
2101
+ /**
2102
+ * Reference line configuration for charts.
2103
+ *
2104
+ * @remarks
2105
+ * Draws horizontal or vertical lines at specific values to mark
2106
+ * thresholds, targets, or other reference points.
2107
+ * Set `x` for a vertical line, `y` for a horizontal line.
2108
+ *
2109
+ * @property x - X value for vertical line (number or category string)
2110
+ * @property y - Y value for horizontal line (number or category string)
2111
+ * @property stroke - Line color (Chakra color token)
2112
+ * @property strokeWidth - Line width in pixels
2113
+ * @property strokeDasharray - Dash pattern (e.g., "5 5" for dashed)
2114
+ * @property label - Label text for the line
2115
+ * @property ifOverflow - Behavior when line extends beyond bounds
2116
+ */
2117
+ export declare const ReferenceLineType: StructType<{
2118
+ x: OptionType<VariantType<{
2119
+ Null: NullType;
2120
+ Boolean: BooleanType;
2121
+ Integer: IntegerType;
2122
+ Float: FloatType;
2123
+ String: StringType;
2124
+ DateTime: import("@elaraai/east").DateTimeType;
2125
+ Blob: import("@elaraai/east").BlobType;
2126
+ }>>;
2127
+ y: OptionType<VariantType<{
2128
+ Null: NullType;
2129
+ Boolean: BooleanType;
2130
+ Integer: IntegerType;
2131
+ Float: FloatType;
2132
+ String: StringType;
2133
+ DateTime: import("@elaraai/east").DateTimeType;
2134
+ Blob: import("@elaraai/east").BlobType;
2135
+ }>>;
2136
+ stroke: OptionType<StringType>;
2137
+ strokeWidth: OptionType<IntegerType>;
2138
+ strokeDasharray: OptionType<StringType>;
2139
+ label: OptionType<StringType>;
2140
+ labelPosition: OptionType<VariantType<{
2141
+ top: NullType;
2142
+ bottom: NullType;
2143
+ left: NullType;
2144
+ right: NullType;
2145
+ center: NullType;
2146
+ insideTop: NullType;
2147
+ insideBottom: NullType;
2148
+ insideLeft: NullType;
2149
+ insideRight: NullType;
2150
+ insideTopLeft: NullType;
2151
+ insideTopRight: NullType;
2152
+ insideBottomLeft: NullType;
2153
+ insideBottomRight: NullType;
2154
+ }>>;
2155
+ labelOffset: OptionType<IntegerType>;
2156
+ ifOverflow: OptionType<VariantType<{
2157
+ discard: NullType;
2158
+ hidden: NullType;
2159
+ visible: NullType;
2160
+ extendDomain: NullType;
2161
+ }>>;
2162
+ }>;
2163
+ /**
2164
+ * Type representing reference line configuration.
2165
+ */
2166
+ export type ReferenceLineType = typeof ReferenceLineType;
2167
+ /**
2168
+ * TypeScript interface for reference line style.
2169
+ */
2170
+ /** Coordinate value type for reference annotations (accepts East expressions or literals) */
2171
+ export type CoordinateValue = SubtypeExprOrValue<FloatType> | SubtypeExprOrValue<IntegerType> | SubtypeExprOrValue<StringType>;
2172
+ export interface ReferenceLineStyle {
2173
+ /** X value for vertical line (number or category string) */
2174
+ x?: CoordinateValue;
2175
+ /** Y value for horizontal line (number or category string) */
2176
+ y?: CoordinateValue;
2177
+ /** Line color (Chakra color token) */
2178
+ stroke?: SubtypeExprOrValue<StringType>;
2179
+ /** Line width in pixels */
2180
+ strokeWidth?: SubtypeExprOrValue<IntegerType>;
2181
+ /** Dash pattern (e.g., "5 5" for dashed) */
2182
+ strokeDasharray?: SubtypeExprOrValue<StringType>;
2183
+ /** Label text for the line */
2184
+ label?: SubtypeExprOrValue<StringType>;
2185
+ /** Label position relative to the line */
2186
+ labelPosition?: SubtypeExprOrValue<LabelPositionType> | LabelPositionLiteral;
2187
+ /** Label offset from the line in pixels */
2188
+ labelOffset?: SubtypeExprOrValue<IntegerType>;
2189
+ /** Behavior when line extends beyond bounds */
2190
+ ifOverflow?: SubtypeExprOrValue<ReferenceOverflowType> | ReferenceOverflowLiteral;
2191
+ }
2192
+ /**
2193
+ * Reference dot configuration for charts.
2194
+ *
2195
+ * @remarks
2196
+ * Marks a specific point on the chart with a dot.
2197
+ * Both x and y are required to position the dot.
2198
+ *
2199
+ * @property x - X coordinate (number or category string)
2200
+ * @property y - Y coordinate (number or category string)
2201
+ * @property r - Radius of the dot in pixels
2202
+ * @property fill - Fill color (Chakra color token)
2203
+ * @property stroke - Stroke color (Chakra color token)
2204
+ * @property strokeWidth - Stroke width in pixels
2205
+ * @property label - Label text for the dot
2206
+ * @property ifOverflow - Behavior when dot extends beyond bounds
2207
+ */
2208
+ export declare const ReferenceDotType: StructType<{
2209
+ x: VariantType<{
2210
+ Null: NullType;
2211
+ Boolean: BooleanType;
2212
+ Integer: IntegerType;
2213
+ Float: FloatType;
2214
+ String: StringType;
2215
+ DateTime: import("@elaraai/east").DateTimeType;
2216
+ Blob: import("@elaraai/east").BlobType;
2217
+ }>;
2218
+ y: VariantType<{
2219
+ Null: NullType;
2220
+ Boolean: BooleanType;
2221
+ Integer: IntegerType;
2222
+ Float: FloatType;
2223
+ String: StringType;
2224
+ DateTime: import("@elaraai/east").DateTimeType;
2225
+ Blob: import("@elaraai/east").BlobType;
2226
+ }>;
2227
+ r: OptionType<IntegerType>;
2228
+ fill: OptionType<StringType>;
2229
+ stroke: OptionType<StringType>;
2230
+ strokeWidth: OptionType<IntegerType>;
2231
+ label: OptionType<StringType>;
2232
+ labelPosition: OptionType<VariantType<{
2233
+ top: NullType;
2234
+ bottom: NullType;
2235
+ left: NullType;
2236
+ right: NullType;
2237
+ center: NullType;
2238
+ insideTop: NullType;
2239
+ insideBottom: NullType;
2240
+ insideLeft: NullType;
2241
+ insideRight: NullType;
2242
+ insideTopLeft: NullType;
2243
+ insideTopRight: NullType;
2244
+ insideBottomLeft: NullType;
2245
+ insideBottomRight: NullType;
2246
+ }>>;
2247
+ labelOffset: OptionType<IntegerType>;
2248
+ ifOverflow: OptionType<VariantType<{
2249
+ discard: NullType;
2250
+ hidden: NullType;
2251
+ visible: NullType;
2252
+ extendDomain: NullType;
2253
+ }>>;
2254
+ }>;
2255
+ /**
2256
+ * Type representing reference dot configuration.
2257
+ */
2258
+ export type ReferenceDotType = typeof ReferenceDotType;
2259
+ /**
2260
+ * TypeScript interface for reference dot style.
2261
+ */
2262
+ export interface ReferenceDotStyle {
2263
+ /** X coordinate (required) */
2264
+ x: CoordinateValue;
2265
+ /** Y coordinate (required) */
2266
+ y: CoordinateValue;
2267
+ /** Radius of the dot in pixels */
2268
+ r?: SubtypeExprOrValue<IntegerType>;
2269
+ /** Fill color (Chakra color token) */
2270
+ fill?: SubtypeExprOrValue<StringType>;
2271
+ /** Stroke color (Chakra color token) */
2272
+ stroke?: SubtypeExprOrValue<StringType>;
2273
+ /** Stroke width in pixels */
2274
+ strokeWidth?: SubtypeExprOrValue<IntegerType>;
2275
+ /** Label text for the dot */
2276
+ label?: SubtypeExprOrValue<StringType>;
2277
+ /** Label position relative to the dot */
2278
+ labelPosition?: SubtypeExprOrValue<LabelPositionType> | LabelPositionLiteral;
2279
+ /** Label offset from the dot in pixels */
2280
+ labelOffset?: SubtypeExprOrValue<IntegerType>;
2281
+ /** Behavior when dot extends beyond bounds */
2282
+ ifOverflow?: SubtypeExprOrValue<ReferenceOverflowType> | ReferenceOverflowLiteral;
2283
+ }
2284
+ /**
2285
+ * Reference area configuration for charts.
2286
+ *
2287
+ * @remarks
2288
+ * Highlights a rectangular region on the chart to mark zones,
2289
+ * ranges, or bands. Omitting a bound means it extends to the axis edge.
2290
+ *
2291
+ * @property x1 - Left bound (omit = start of x-axis)
2292
+ * @property x2 - Right bound (omit = end of x-axis)
2293
+ * @property y1 - Bottom bound (omit = start of y-axis)
2294
+ * @property y2 - Top bound (omit = end of y-axis)
2295
+ * @property fill - Fill color (Chakra color token)
2296
+ * @property fillOpacity - Fill opacity (0-1)
2297
+ * @property stroke - Stroke color (Chakra color token)
2298
+ * @property label - Label text for the area
2299
+ * @property ifOverflow - Behavior when area extends beyond bounds
2300
+ */
2301
+ export declare const ReferenceAreaType: StructType<{
2302
+ x1: OptionType<VariantType<{
2303
+ Null: NullType;
2304
+ Boolean: BooleanType;
2305
+ Integer: IntegerType;
2306
+ Float: FloatType;
2307
+ String: StringType;
2308
+ DateTime: import("@elaraai/east").DateTimeType;
2309
+ Blob: import("@elaraai/east").BlobType;
2310
+ }>>;
2311
+ x2: OptionType<VariantType<{
2312
+ Null: NullType;
2313
+ Boolean: BooleanType;
2314
+ Integer: IntegerType;
2315
+ Float: FloatType;
2316
+ String: StringType;
2317
+ DateTime: import("@elaraai/east").DateTimeType;
2318
+ Blob: import("@elaraai/east").BlobType;
2319
+ }>>;
2320
+ y1: OptionType<VariantType<{
2321
+ Null: NullType;
2322
+ Boolean: BooleanType;
2323
+ Integer: IntegerType;
2324
+ Float: FloatType;
2325
+ String: StringType;
2326
+ DateTime: import("@elaraai/east").DateTimeType;
2327
+ Blob: import("@elaraai/east").BlobType;
2328
+ }>>;
2329
+ y2: OptionType<VariantType<{
2330
+ Null: NullType;
2331
+ Boolean: BooleanType;
2332
+ Integer: IntegerType;
2333
+ Float: FloatType;
2334
+ String: StringType;
2335
+ DateTime: import("@elaraai/east").DateTimeType;
2336
+ Blob: import("@elaraai/east").BlobType;
2337
+ }>>;
2338
+ fill: OptionType<StringType>;
2339
+ fillOpacity: OptionType<FloatType>;
2340
+ stroke: OptionType<StringType>;
2341
+ label: OptionType<StringType>;
2342
+ labelPosition: OptionType<VariantType<{
2343
+ top: NullType;
2344
+ bottom: NullType;
2345
+ left: NullType;
2346
+ right: NullType;
2347
+ center: NullType;
2348
+ insideTop: NullType;
2349
+ insideBottom: NullType;
2350
+ insideLeft: NullType;
2351
+ insideRight: NullType;
2352
+ insideTopLeft: NullType;
2353
+ insideTopRight: NullType;
2354
+ insideBottomLeft: NullType;
2355
+ insideBottomRight: NullType;
2356
+ }>>;
2357
+ labelOffset: OptionType<IntegerType>;
2358
+ ifOverflow: OptionType<VariantType<{
2359
+ discard: NullType;
2360
+ hidden: NullType;
2361
+ visible: NullType;
2362
+ extendDomain: NullType;
2363
+ }>>;
2364
+ }>;
2365
+ /**
2366
+ * Type representing reference area configuration.
2367
+ */
2368
+ export type ReferenceAreaType = typeof ReferenceAreaType;
2369
+ /**
2370
+ * TypeScript interface for reference area style.
2371
+ */
2372
+ export interface ReferenceAreaStyle {
2373
+ /** Left bound (omit = start of x-axis) */
2374
+ x1?: CoordinateValue;
2375
+ /** Right bound (omit = end of x-axis) */
2376
+ x2?: CoordinateValue;
2377
+ /** Bottom bound (omit = start of y-axis) */
2378
+ y1?: CoordinateValue;
2379
+ /** Top bound (omit = end of y-axis) */
2380
+ y2?: CoordinateValue;
2381
+ /** Fill color (Chakra color token) */
2382
+ fill?: SubtypeExprOrValue<StringType>;
2383
+ /** Fill opacity (0-1) */
2384
+ fillOpacity?: SubtypeExprOrValue<FloatType>;
2385
+ /** Stroke color (Chakra color token) */
2386
+ stroke?: SubtypeExprOrValue<StringType>;
2387
+ /** Label text for the area */
2388
+ label?: SubtypeExprOrValue<StringType>;
2389
+ /** Label position within the area */
2390
+ labelPosition?: SubtypeExprOrValue<LabelPositionType> | LabelPositionLiteral;
2391
+ /** Label offset in pixels */
2392
+ labelOffset?: SubtypeExprOrValue<IntegerType>;
2393
+ /** Behavior when area extends beyond bounds */
2394
+ ifOverflow?: SubtypeExprOrValue<ReferenceOverflowType> | ReferenceOverflowLiteral;
2395
+ }
1847
2396
  /**
1848
2397
  * Type representing multi-series data.
1849
2398
  */
1850
2399
  export type MultiSeriesDataType = typeof MultiSeriesDataType;
2400
+ /**
2401
+ * Converts a ChartAxisStyle plain object to a ChartAxisType expression.
2402
+ *
2403
+ * @param axis - The axis style configuration
2404
+ * @returns An expression representing the axis configuration, or undefined if axis is undefined
2405
+ *
2406
+ * @internal
2407
+ */
2408
+ export declare function axisStyleToType(axis: ChartAxisStyle | undefined): ExprType<ChartAxisType> | undefined;
2409
+ /**
2410
+ * Converts a ChartGridStyle plain object to a ChartGridType expression.
2411
+ *
2412
+ * @param grid - The grid style configuration
2413
+ * @returns An expression representing the grid configuration, or undefined if grid is undefined
2414
+ *
2415
+ * @internal
2416
+ */
2417
+ export declare function gridStyleToType(grid: ChartGridStyle | undefined): ExprType<ChartGridType> | undefined;
2418
+ /**
2419
+ * Converts a ChartTooltipStyle plain object to a ChartTooltipType expression.
2420
+ *
2421
+ * @param tooltip - The tooltip style configuration
2422
+ * @returns An expression representing the tooltip configuration, or undefined if tooltip is undefined
2423
+ *
2424
+ * @internal
2425
+ */
2426
+ export declare function tooltipStyleToType(tooltip: ChartTooltipStyle | undefined): ExprType<ChartTooltipType> | undefined;
2427
+ /**
2428
+ * Converts a ChartLegendStyle plain object to a ChartLegendType expression.
2429
+ *
2430
+ * @param legend - The legend style configuration
2431
+ * @returns An expression representing the legend configuration, or undefined if legend is undefined
2432
+ *
2433
+ * @internal
2434
+ */
2435
+ export declare function legendStyleToType(legend: ChartLegendStyle | undefined): ExprType<ChartLegendType> | undefined;
2436
+ /**
2437
+ * Converts a ChartMarginStyle plain object to a ChartMarginType expression.
2438
+ *
2439
+ * @param margin - The margin style configuration
2440
+ * @returns An expression representing the margin configuration, or undefined if margin is undefined
2441
+ *
2442
+ * @internal
2443
+ */
2444
+ export declare function marginStyleToType(margin: ChartMarginStyle | undefined): ExprType<ChartMarginType> | undefined;
2445
+ /**
2446
+ * Converts a ReferenceLineStyle to a ReferenceLineType expression.
2447
+ *
2448
+ * @param line - The reference line style
2449
+ * @returns An expression representing the reference line
2450
+ *
2451
+ * @internal
2452
+ */
2453
+ export declare function referenceLineStyleToType(line: ReferenceLineStyle): ExprType<ReferenceLineType>;
2454
+ /**
2455
+ * Converts a ReferenceDotStyle to a ReferenceDotType expression.
2456
+ *
2457
+ * @param dot - The reference dot style
2458
+ * @returns An expression representing the reference dot
2459
+ *
2460
+ * @internal
2461
+ */
2462
+ export declare function referenceDotStyleToType(dot: ReferenceDotStyle): ExprType<ReferenceDotType>;
2463
+ /**
2464
+ * Converts a ReferenceAreaStyle to a ReferenceAreaType expression.
2465
+ *
2466
+ * @param area - The reference area style
2467
+ * @returns An expression representing the reference area
2468
+ *
2469
+ * @internal
2470
+ */
2471
+ export declare function referenceAreaStyleToType(area: ReferenceAreaStyle): ExprType<ReferenceAreaType>;
1851
2472
  //# sourceMappingURL=types.d.ts.map