panelui-native 0.22.5 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/README.md +8 -3
  2. package/lib/module/components/area-chart/index.js +826 -0
  3. package/lib/module/components/area-chart/index.js.map +1 -0
  4. package/lib/module/components/avatar/index.js +1 -1
  5. package/lib/module/components/avatar/index.js.map +1 -1
  6. package/lib/module/components/bar-chart/index.js +853 -0
  7. package/lib/module/components/bar-chart/index.js.map +1 -0
  8. package/lib/module/components/bottom-sheet/index.js +207 -23
  9. package/lib/module/components/bottom-sheet/index.js.map +1 -1
  10. package/lib/module/components/breadcrumb/index.js +275 -0
  11. package/lib/module/components/breadcrumb/index.js.map +1 -0
  12. package/lib/module/components/chip/index.js +2 -2
  13. package/lib/module/components/direction/index.js +13 -19
  14. package/lib/module/components/direction/index.js.map +1 -1
  15. package/lib/module/components/frame/index.js +17 -0
  16. package/lib/module/components/frame/index.js.map +1 -1
  17. package/lib/module/components/heatmap-chart/index.js +28 -8
  18. package/lib/module/components/heatmap-chart/index.js.map +1 -1
  19. package/lib/module/components/input-group/index.js +2 -2
  20. package/lib/module/components/input-group/index.js.map +1 -1
  21. package/lib/module/components/line-chart/index.js +4 -146
  22. package/lib/module/components/line-chart/index.js.map +1 -1
  23. package/lib/module/components/loader/index.js +758 -0
  24. package/lib/module/components/loader/index.js.map +1 -0
  25. package/lib/module/components/map/basemap.js +265 -0
  26. package/lib/module/components/map/basemap.js.map +1 -0
  27. package/lib/module/components/map/index.js +850 -0
  28. package/lib/module/components/map/index.js.map +1 -0
  29. package/lib/module/components/map/maplibre.js +87 -0
  30. package/lib/module/components/map/maplibre.js.map +1 -0
  31. package/lib/module/components/message/index.js +8 -7
  32. package/lib/module/components/message/index.js.map +1 -1
  33. package/lib/module/components/otp-input/index.js +2 -2
  34. package/lib/module/components/progress/index.js +8 -2
  35. package/lib/module/components/progress/index.js.map +1 -1
  36. package/lib/module/components/ring-chart/index.js +423 -0
  37. package/lib/module/components/ring-chart/index.js.map +1 -0
  38. package/lib/module/components/section-rail/index.js +2 -2
  39. package/lib/module/components/separator/index.js +76 -22
  40. package/lib/module/components/separator/index.js.map +1 -1
  41. package/lib/module/components/shimmer/index.js +10 -1
  42. package/lib/module/components/shimmer/index.js.map +1 -1
  43. package/lib/module/components/slider/index.js +19 -5
  44. package/lib/module/components/slider/index.js.map +1 -1
  45. package/lib/module/components/steps/index.js +1 -1
  46. package/lib/module/components/switch/index.js +6 -1
  47. package/lib/module/components/switch/index.js.map +1 -1
  48. package/lib/module/components/typography/index.js +5 -0
  49. package/lib/module/components/typography/index.js.map +1 -1
  50. package/lib/module/hooks/use-direction.js +43 -0
  51. package/lib/module/hooks/use-direction.js.map +1 -0
  52. package/lib/module/icons/index.js +117 -2
  53. package/lib/module/icons/index.js.map +1 -1
  54. package/lib/module/index.js +8 -2
  55. package/lib/module/index.js.map +1 -1
  56. package/lib/module/primitives/text.js +30 -10
  57. package/lib/module/primitives/text.js.map +1 -1
  58. package/lib/module/utils/chart.js +279 -0
  59. package/lib/module/utils/chart.js.map +1 -0
  60. package/lib/typescript/src/components/area-chart/index.d.ts +197 -0
  61. package/lib/typescript/src/components/area-chart/index.d.ts.map +1 -0
  62. package/lib/typescript/src/components/bar-chart/index.d.ts +228 -0
  63. package/lib/typescript/src/components/bar-chart/index.d.ts.map +1 -0
  64. package/lib/typescript/src/components/bottom-sheet/index.d.ts +75 -4
  65. package/lib/typescript/src/components/bottom-sheet/index.d.ts.map +1 -1
  66. package/lib/typescript/src/components/breadcrumb/index.d.ts +100 -0
  67. package/lib/typescript/src/components/breadcrumb/index.d.ts.map +1 -0
  68. package/lib/typescript/src/components/direction/index.d.ts +11 -10
  69. package/lib/typescript/src/components/direction/index.d.ts.map +1 -1
  70. package/lib/typescript/src/components/frame/index.d.ts +17 -0
  71. package/lib/typescript/src/components/frame/index.d.ts.map +1 -1
  72. package/lib/typescript/src/components/heatmap-chart/index.d.ts +22 -3
  73. package/lib/typescript/src/components/heatmap-chart/index.d.ts.map +1 -1
  74. package/lib/typescript/src/components/line-chart/index.d.ts +1 -0
  75. package/lib/typescript/src/components/line-chart/index.d.ts.map +1 -1
  76. package/lib/typescript/src/components/loader/index.d.ts +38 -0
  77. package/lib/typescript/src/components/loader/index.d.ts.map +1 -0
  78. package/lib/typescript/src/components/map/basemap.d.ts +76 -0
  79. package/lib/typescript/src/components/map/basemap.d.ts.map +1 -0
  80. package/lib/typescript/src/components/map/index.d.ts +367 -0
  81. package/lib/typescript/src/components/map/index.d.ts.map +1 -0
  82. package/lib/typescript/src/components/map/maplibre.d.ts +193 -0
  83. package/lib/typescript/src/components/map/maplibre.d.ts.map +1 -0
  84. package/lib/typescript/src/components/message/index.d.ts.map +1 -1
  85. package/lib/typescript/src/components/progress/index.d.ts.map +1 -1
  86. package/lib/typescript/src/components/ring-chart/index.d.ts +156 -0
  87. package/lib/typescript/src/components/ring-chart/index.d.ts.map +1 -0
  88. package/lib/typescript/src/components/separator/index.d.ts +36 -1
  89. package/lib/typescript/src/components/separator/index.d.ts.map +1 -1
  90. package/lib/typescript/src/components/shimmer/index.d.ts.map +1 -1
  91. package/lib/typescript/src/components/slider/index.d.ts.map +1 -1
  92. package/lib/typescript/src/components/switch/index.d.ts.map +1 -1
  93. package/lib/typescript/src/components/typography/index.d.ts +6 -0
  94. package/lib/typescript/src/components/typography/index.d.ts.map +1 -1
  95. package/lib/typescript/src/hooks/use-direction.d.ts +20 -0
  96. package/lib/typescript/src/hooks/use-direction.d.ts.map +1 -0
  97. package/lib/typescript/src/icons/index.d.ts +5 -0
  98. package/lib/typescript/src/icons/index.d.ts.map +1 -1
  99. package/lib/typescript/src/index.d.ts +9 -3
  100. package/lib/typescript/src/index.d.ts.map +1 -1
  101. package/lib/typescript/src/primitives/text.d.ts.map +1 -1
  102. package/lib/typescript/src/utils/chart.d.ts +96 -0
  103. package/lib/typescript/src/utils/chart.d.ts.map +1 -0
  104. package/package.json +9 -1
  105. package/src/components/area-chart/index.tsx +994 -0
  106. package/src/components/avatar/index.tsx +1 -1
  107. package/src/components/bar-chart/index.tsx +1048 -0
  108. package/src/components/bottom-sheet/index.tsx +280 -20
  109. package/src/components/breadcrumb/index.tsx +365 -0
  110. package/src/components/chip/index.tsx +2 -2
  111. package/src/components/direction/index.tsx +20 -21
  112. package/src/components/frame/index.tsx +17 -0
  113. package/src/components/heatmap-chart/index.tsx +58 -11
  114. package/src/components/input-group/index.tsx +2 -2
  115. package/src/components/line-chart/index.tsx +13 -181
  116. package/src/components/loader/index.tsx +812 -0
  117. package/src/components/map/basemap.ts +304 -0
  118. package/src/components/map/index.tsx +1118 -0
  119. package/src/components/map/maplibre.ts +201 -0
  120. package/src/components/message/index.tsx +8 -7
  121. package/src/components/otp-input/index.tsx +2 -2
  122. package/src/components/progress/index.tsx +10 -2
  123. package/src/components/ring-chart/index.tsx +543 -0
  124. package/src/components/section-rail/index.tsx +2 -2
  125. package/src/components/separator/index.tsx +77 -19
  126. package/src/components/shimmer/index.tsx +10 -1
  127. package/src/components/slider/index.tsx +20 -5
  128. package/src/components/steps/index.tsx +1 -1
  129. package/src/components/switch/index.tsx +6 -1
  130. package/src/components/typography/index.tsx +5 -0
  131. package/src/hooks/use-direction.ts +45 -0
  132. package/src/icons/index.tsx +66 -0
  133. package/src/index.ts +84 -0
  134. package/src/primitives/text.tsx +25 -7
  135. package/src/utils/chart.ts +355 -0
@@ -0,0 +1,228 @@
1
+ /**
2
+ * BarChart — categories compared by length, drawn and animated on the UI thread.
3
+ *
4
+ * Composed the same way `LineChart` is: the grid, each series, the axes and the
5
+ * readout are separate children, so a chart that wants no grid simply does not
6
+ * have one.
7
+ *
8
+ * ```tsx
9
+ * <BarChart data={revenue} xDataKey="month">
10
+ * <BarChart.Grid />
11
+ * <BarChart.Bar dataKey="revenue" />
12
+ * <BarChart.XAxis />
13
+ * <BarChart.Tooltip />
14
+ * </BarChart>
15
+ * ```
16
+ *
17
+ * ## What is different from a line
18
+ *
19
+ * **The baseline is zero, and not negotiable.** A line's job is to show change,
20
+ * so it may crop its axis to the range the data actually occupies. A bar's job
21
+ * is to compare *lengths*, and a bar cropped at the bottom is a length that
22
+ * lies — twice as tall no longer means twice as much. So the domain always
23
+ * reaches zero unless `yDomain` says otherwise, and saying otherwise is opting
24
+ * into a chart that misreads.
25
+ *
26
+ * **Bands, not points.** A line has a point at each x; a bar owns a slice of
27
+ * width around it. `barGap` is the fraction of that slice left empty, so bars
28
+ * stay proportional at any width instead of needing a pixel gap that is wrong
29
+ * on half of them.
30
+ *
31
+ * **Every series is one path.** A `Bar` draws all its rectangles as subpaths of
32
+ * a single animated path, split in two so the band under the finger keeps full
33
+ * ink while the rest fade. Fifty bars is two animated props a frame rather
34
+ * than fifty, and the corners are drawn as a path because a bar is rounded on
35
+ * the end it grows towards and square on the end it grows from — which `rx`
36
+ * cannot express, since it rounds all four corners or none.
37
+ */
38
+ import { type ReactNode } from 'react';
39
+ import { type ViewProps } from 'react-native';
40
+ import { type SeriesColorIndex } from '../../utils/chart.js';
41
+ type Layer = 'svg' | 'overlay';
42
+ export type BarChartStatus = 'loading' | 'ready';
43
+ export type BarChartOrientation = 'vertical' | 'horizontal';
44
+ export type BarChartDatum = Record<string, string | number | null | undefined>;
45
+ /**
46
+ * The band under the finger, for something rendered *inside* the chart. A
47
+ * readout in the card's header is outside this provider — use
48
+ * `onActiveIndexChange` for that.
49
+ */
50
+ export declare function useBarChart(): {
51
+ activeIndex: number;
52
+ activePoint: BarChartDatum | null;
53
+ xDataKey: string;
54
+ };
55
+ export interface BarChartProps extends ViewProps {
56
+ className?: string;
57
+ /** The rows. Each one is a band along the category axis. */
58
+ data: BarChartDatum[];
59
+ /** Key holding the category label. Used by the axis and the readout. */
60
+ xDataKey?: string;
61
+ /**
62
+ * `loading` draws a row of flat placeholder bars and grows them into the real
63
+ * ones when it turns `ready`. One component throughout, rather than a spinner
64
+ * swapped for a chart — swapping loses the transition.
65
+ */
66
+ status?: BarChartStatus;
67
+ /** Width ÷ height. `2` is the wide card shape. */
68
+ aspectRatio?: number;
69
+ /** Milliseconds for the bars to grow in on mount. */
70
+ animationDuration?: number;
71
+ /** Milliseconds for the value axis to settle after the data changes. */
72
+ domainDuration?: number;
73
+ /**
74
+ * Fix the value axis instead of deriving it. Note that the derived domain
75
+ * always includes zero, and a domain that does not is a bar chart whose
76
+ * lengths cannot be compared — pass this only when you mean it.
77
+ */
78
+ yDomain?: [number, number];
79
+ /** `vertical` grows the bars upward; `horizontal` grows them rightward. */
80
+ orientation?: BarChartOrientation;
81
+ /** Stack the series on each other instead of standing them side by side. */
82
+ stacked?: boolean;
83
+ /**
84
+ * Fraction of each band left empty, `0` to `1`. A fraction rather than a
85
+ * pixel gap so the proportions hold at any width.
86
+ */
87
+ barGap?: number;
88
+ /** Fixed bar thickness in points. Derived from the band when omitted. */
89
+ barWidth?: number;
90
+ /** Points between the segments of a stack. */
91
+ stackGap?: number;
92
+ /** Corner radius on the growing end of a bar. */
93
+ cornerRadius?: number;
94
+ /**
95
+ * Smallest length a non-zero bar is drawn at, in points. A value that rounds
96
+ * to nothing still happened, and a bar of zero height says it did not.
97
+ */
98
+ minBarLength?: number;
99
+ /** Opacity of the bars that are not under the finger. */
100
+ fadedOpacity?: number;
101
+ /**
102
+ * The band under the finger as it moves, and `-1`/`null` when it lifts.
103
+ * Fires when the index changes, not per frame.
104
+ */
105
+ onActiveIndexChange?: (index: number, datum: BarChartDatum | null) => void;
106
+ /** Drop the axis padding, for a bar sparkline with no axis or readout. */
107
+ compact?: boolean;
108
+ children?: ReactNode;
109
+ }
110
+ /** Imperative handle: re-run the grow-in, for a "replay" control. */
111
+ export interface BarChartHandle {
112
+ replay: () => void;
113
+ }
114
+ export interface BarChartGridProps {
115
+ /** How many lines to draw across the value axis. */
116
+ rows?: number;
117
+ color?: string;
118
+ dashArray?: string;
119
+ opacity?: number;
120
+ }
121
+ /**
122
+ * Lines across the value axis, so a bar can be read against a number rather
123
+ * than only against the bar beside it.
124
+ */
125
+ declare function BarChartGrid({ rows, color, dashArray, opacity }: BarChartGridProps): import("react").JSX.Element;
126
+ declare namespace BarChartGrid {
127
+ var displayName: string;
128
+ var layer: Layer;
129
+ }
130
+ export interface BarChartBarProps {
131
+ /** Column in the data holding this series' values. */
132
+ dataKey: string;
133
+ /** Explicit colour. Defaults to the `--color-chart-*` token for `colorIndex`. */
134
+ color?: string;
135
+ /** Which of the five chart tokens to take. */
136
+ colorIndex?: SeriesColorIndex;
137
+ /** Corner radius, overriding the chart's. */
138
+ cornerRadius?: number;
139
+ }
140
+ /**
141
+ * One series of bars.
142
+ *
143
+ * Drawn as two paths rather than one rectangle per band: the band under the
144
+ * finger, and everything else. That is the fewest animated props that can
145
+ * still dim the rest — one path could not, since a path has one opacity, and
146
+ * a view per bar would be one animated prop per bar for the same picture.
147
+ */
148
+ declare function BarChartBar({ dataKey, color, colorIndex, cornerRadius }: BarChartBarProps): import("react").JSX.Element;
149
+ declare namespace BarChartBar {
150
+ var displayName: string;
151
+ var layer: Layer;
152
+ }
153
+ export interface BarChartXAxisProps {
154
+ /** How many labels to show. The rest are dropped, evenly. */
155
+ ticks?: number;
156
+ /** Turn a row into its label. Defaults to the value at `xDataKey`. */
157
+ format?: (datum: BarChartDatum, index: number) => string;
158
+ className?: string;
159
+ }
160
+ /**
161
+ * The category labels, one under each band it has room for. Real text rather
162
+ * than SVG text, so they follow the theme's font and the platform's text
163
+ * scaling — SVG text does neither.
164
+ */
165
+ declare function BarChartXAxis({ ticks, format, className }: BarChartXAxisProps): import("react").JSX.Element | null;
166
+ declare namespace BarChartXAxis {
167
+ var displayName: string;
168
+ var layer: Layer;
169
+ }
170
+ export interface BarChartYAxisProps {
171
+ /** How many labels to show along the value axis. */
172
+ ticks?: number;
173
+ /** Format a value for its label. Defaults to a compact number. */
174
+ format?: (value: number) => string;
175
+ className?: string;
176
+ }
177
+ /** Value labels down the side, aligned to the grid lines. */
178
+ declare function BarChartYAxis({ ticks, format, className }: BarChartYAxisProps): import("react").JSX.Element;
179
+ declare namespace BarChartYAxis {
180
+ var displayName: string;
181
+ var layer: Layer;
182
+ var axis: "y";
183
+ }
184
+ export interface BarChartTooltipProps {
185
+ /** Format one series' value. Defaults to a compact number. */
186
+ formatValue?: (value: number, key: string) => string;
187
+ /** Format the readout's heading from the row. Defaults to the value at xDataKey. */
188
+ formatX?: (datum: BarChartDatum) => string;
189
+ className?: string;
190
+ }
191
+ /**
192
+ * The readout, and the gesture that drives it.
193
+ *
194
+ * There is no crosshair. A line needs one because a point on a line has no
195
+ * width of its own to point at; a bar is already the thing being pointed at,
196
+ * so highlighting it and dimming the rest says the same thing without drawing
197
+ * a line through the chart.
198
+ *
199
+ * The hit area is the whole plot. A readout you have to land on the bar to
200
+ * summon is a readout nobody finds — and the thinner the bars, the truer that
201
+ * gets.
202
+ */
203
+ declare function BarChartTooltip({ formatValue, formatX, className }: BarChartTooltipProps): import("react").JSX.Element | null;
204
+ declare namespace BarChartTooltip {
205
+ var displayName: string;
206
+ var layer: Layer;
207
+ }
208
+ export interface BarChartLegendProps extends ViewProps {
209
+ className?: string;
210
+ /** Prettier names for the series keys. */
211
+ labels?: Record<string, string>;
212
+ }
213
+ /** A swatch and a name per series, in the order the series were declared. */
214
+ declare function BarChartLegend({ className, labels, ...props }: BarChartLegendProps): import("react").JSX.Element | null;
215
+ declare namespace BarChartLegend {
216
+ var displayName: string;
217
+ var layer: Layer;
218
+ }
219
+ export declare const BarChart: import("react").ForwardRefExoticComponent<BarChartProps & import("react").RefAttributes<BarChartHandle>> & {
220
+ Grid: typeof BarChartGrid;
221
+ Bar: typeof BarChartBar;
222
+ XAxis: typeof BarChartXAxis;
223
+ YAxis: typeof BarChartYAxis;
224
+ Tooltip: typeof BarChartTooltip;
225
+ Legend: typeof BarChartLegend;
226
+ };
227
+ export {};
228
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/b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AAc,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,sCAsB3E;kBAtBQ,cAAc;;;;AA0BvB,eAAO,MAAM,QAAQ;;;;;;;CAOnB,CAAC"}
@@ -1,5 +1,6 @@
1
- import { type ReactElement, type ReactNode } from 'react';
1
+ import { type ComponentProps, type ReactElement, type ReactNode } from 'react';
2
2
  import { type ViewProps } from 'react-native';
3
+ import Animated from 'react-native-reanimated';
3
4
  export interface BottomSheetProps {
4
5
  children: ReactNode;
5
6
  open?: boolean;
@@ -40,8 +41,10 @@ export interface BottomSheetContentProps extends ViewProps {
40
41
  /** Tap on the backdrop closes the sheet. Default true. */
41
42
  dismissible?: boolean;
42
43
  /**
43
- * Show a close button in the top-right corner. On by default for the styled
44
- * sheet; ignored by the native sheet, which has its own dismiss affordances.
44
+ * Show a close button in the top trailing corner — the right in a
45
+ * left-to-right app, the left in a right-to-left one. On by default for the
46
+ * styled sheet; ignored by the native sheet, which has its own dismiss
47
+ * affordances.
45
48
  */
46
49
  showClose?: boolean;
47
50
  /**
@@ -58,12 +61,80 @@ export interface BottomSheetContentProps extends ViewProps {
58
61
  * optional `expo-blur`; without it this dims, rather than failing.
59
62
  */
60
63
  blur?: boolean;
64
+ /**
65
+ * How tall the sheet opens.
66
+ *
67
+ * `auto` sizes to the content, which is right for a sheet that is a handful
68
+ * of rows. `half` and `full` fix the height instead, for content that has to
69
+ * be given the room rather than allowed to ask for it — a list, a form, a
70
+ * document. Either way the sheet is clamped to leave the status bar clear,
71
+ * so `full` is as tall as the screen allows rather than as tall as the screen.
72
+ *
73
+ * On the native sheet this maps onto the platform's detents.
74
+ */
75
+ size?: 'auto' | 'half' | 'full';
76
+ children?: ReactNode;
77
+ }
78
+ declare function BottomSheetContent({ className, dismissible, showClose, detached, blur, size, children, ...props }: BottomSheetContentProps): import("react").JSX.Element | null;
79
+ export interface BottomSheetHeaderProps extends ViewProps {
80
+ className?: string;
81
+ /** Heading for the sheet. Strings are wrapped; anything else is drawn as given. */
82
+ title?: ReactNode;
83
+ /** A line under the title, for what the sheet is asking. */
84
+ description?: ReactNode;
85
+ children?: ReactNode;
86
+ }
87
+ /**
88
+ * A fixed heading above the sheet's body.
89
+ *
90
+ * It exists mostly to reserve the top-right corner. The close button is
91
+ * absolutely positioned there, so anything full-width at the top of a sheet
92
+ * sits under it — a title is exactly that shape, and the end padding here is
93
+ * what keeps the two from meeting. Being outside `Body` is the other half:
94
+ * it stays put while the content scrolls under it, so the sheet still says
95
+ * what it is once the list has moved.
96
+ */
97
+ declare function BottomSheetHeader({ className, title, description, children, ...props }: BottomSheetHeaderProps): import("react").JSX.Element;
98
+ declare namespace BottomSheetHeader {
99
+ var displayName: string;
100
+ }
101
+ export interface BottomSheetBodyProps extends Omit<ComponentProps<typeof Animated.ScrollView>, 'ref'> {
102
+ className?: string;
103
+ children?: ReactNode;
104
+ }
105
+ /**
106
+ * The scrolling part of a sized sheet.
107
+ *
108
+ * A plain `ScrollView` works here too, but only one of the two gestures can
109
+ * win a given drag and neither knows about the other, so the list and the
110
+ * sheet fight over every downward swipe. This one reports where it is
111
+ * scrolled to, which is what lets the sheet hold off until the list has run
112
+ * out — pull down on a list at its top and the sheet comes with you, pull
113
+ * down anywhere else and the list scrolls.
114
+ */
115
+ declare function BottomSheetBody({ className, children, onScroll, ...props }: BottomSheetBodyProps): import("react").JSX.Element;
116
+ declare namespace BottomSheetBody {
117
+ var displayName: string;
118
+ }
119
+ export interface BottomSheetFooterProps extends ViewProps {
120
+ className?: string;
61
121
  children?: ReactNode;
62
122
  }
63
- declare function BottomSheetContent({ className, dismissible, showClose, detached, blur, children, ...props }: BottomSheetContentProps): import("react").JSX.Element | null;
123
+ /**
124
+ * A row pinned below the body, for whatever the sheet is asking to be decided.
125
+ * Outside `Body` so it stays reachable however far the content scrolls — an
126
+ * action that has to be scrolled to is one people do not find.
127
+ */
128
+ declare function BottomSheetFooter({ className, children, ...props }: BottomSheetFooterProps): import("react").JSX.Element;
129
+ declare namespace BottomSheetFooter {
130
+ var displayName: string;
131
+ }
64
132
  export declare const BottomSheet: typeof BottomSheetRoot & {
65
133
  Trigger: typeof BottomSheetTrigger;
66
134
  Content: typeof BottomSheetContent;
135
+ Header: typeof BottomSheetHeader;
136
+ Body: typeof BottomSheetBody;
137
+ Footer: typeof BottomSheetFooter;
67
138
  };
68
139
  export {};
69
140
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/bottom-sheet/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAwC,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AA2DpF,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,UAAU,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,GAAG;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAC;CAC9E;AA4CD,iBAAS,eAAe,CAAC,EACvB,QAAQ,EACR,IAAI,EACJ,YAAY,EACZ,WAAmB,EACnB,MAAM,EACN,UAAU,GACX,EAAE,gBAAgB,+BA+BlB;AAED,UAAU,uBAAuB;IAC/B,QAAQ,EAAE,YAAY,CAAC;QAAE,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAA;KAAE,CAAC,CAAC;CACpE;AAED,iBAAS,kBAAkB,CAAC,EAAE,Q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E,SAAS,CAAC;CACtB;AAED;;;;;;;;;GASG;AACH,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,KAAK,EACL,WAAW,EACX,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,sBAAsB,+BAoBxB;kBA1BQ,iBAAiB;;;AA6B1B,MAAM,WAAW,oBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;GASG;AACH,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,oBAAoB,+BA2CtB;kBAhDQ,eAAe;;;AAmDxB,MAAM,WAAW,sBAAuB,SAAQ,SAAS;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;GAIG;AACH,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,sBAAsB,+BASxB;kBAbQ,iBAAiB;;;AAgB1B,eAAO,MAAM,WAAW;;;;;;CAMtB,CAAC"}
@@ -0,0 +1,100 @@
1
+ /**
2
+ * Breadcrumb — the trail of where you are in a hierarchy.
3
+ *
4
+ * A row of links back up the tree, ending in the page you are on. The last
5
+ * crumb is not a link: you cannot navigate to where you already are, so it is
6
+ * a plain, current-marked label rather than a dead tappable target.
7
+ *
8
+ * The separators are the component's job, not yours. `Breadcrumb.List` drops a
9
+ * chevron between each crumb it holds, so a trail is just its items — there is
10
+ * no separator to forget, mis-order, or leave dangling at the end. Change the
11
+ * glyph once with `separator` on the root and every gap follows.
12
+ *
13
+ * ```tsx
14
+ * <Breadcrumb>
15
+ * <Breadcrumb.List>
16
+ * <Breadcrumb.Item>
17
+ * <Breadcrumb.Link onPress={goHome}>Home</Breadcrumb.Link>
18
+ * </Breadcrumb.Item>
19
+ * <Breadcrumb.Item>
20
+ * <Breadcrumb.Link onPress={goProjects}>Projects</Breadcrumb.Link>
21
+ * </Breadcrumb.Item>
22
+ * <Breadcrumb.Item>
23
+ * <Breadcrumb.Page>PanelUI</Breadcrumb.Page>
24
+ * </Breadcrumb.Item>
25
+ * </Breadcrumb.List>
26
+ * </Breadcrumb>
27
+ * ```
28
+ *
29
+ * A deep trail on a narrow phone does not wrap into a paragraph: give the list
30
+ * a `maxItems` and it keeps the first and last crumbs, folding the middle into
31
+ * a single ellipsis. Hand the ellipsis an `onEllipsisPress` and it becomes the
32
+ * handle for a menu of the hidden steps.
33
+ */
34
+ import { type ReactNode } from 'react';
35
+ import { View, type ViewProps } from 'react-native';
36
+ import { type AnimatedPressableProps } from '../../primitives/animated-pressable.js';
37
+ import { type TextProps } from '../../primitives/text.js';
38
+ type BreadcrumbSize = 'sm' | 'default';
39
+ export interface BreadcrumbProps extends ViewProps {
40
+ className?: string;
41
+ /** Text density for every crumb. `sm` for a dense header bar. */
42
+ size?: BreadcrumbSize;
43
+ /**
44
+ * The glyph `Breadcrumb.List` places between crumbs. Defaults to a chevron;
45
+ * pass a `<Text>/</Text>`, a slash, or any node to change every gap at once.
46
+ */
47
+ separator?: ReactNode;
48
+ children?: ReactNode;
49
+ }
50
+ export interface BreadcrumbListProps extends ViewProps {
51
+ className?: string;
52
+ /**
53
+ * Collapse the trail once it holds more than this many crumbs, so a deep
54
+ * path never wraps into a block of text on a narrow screen. The first
55
+ * `itemsBeforeCollapse` and last `itemsAfterCollapse` survive; the middle
56
+ * folds into a single ellipsis.
57
+ */
58
+ maxItems?: number;
59
+ /** How many leading crumbs to keep when collapsing. Default 1. */
60
+ itemsBeforeCollapse?: number;
61
+ /** How many trailing crumbs to keep when collapsing. Default 1. */
62
+ itemsAfterCollapse?: number;
63
+ /**
64
+ * Makes the collapsed ellipsis pressable — the handle for a menu listing the
65
+ * hidden steps. Without it the ellipsis is a static marker.
66
+ */
67
+ onEllipsisPress?: () => void;
68
+ children?: ReactNode;
69
+ }
70
+ export interface BreadcrumbItemProps extends ViewProps {
71
+ className?: string;
72
+ children?: ReactNode;
73
+ }
74
+ export interface BreadcrumbLinkProps extends Omit<AnimatedPressableProps, 'children'> {
75
+ className?: string;
76
+ /** Text style for the crumb's label. */
77
+ textClassName?: string;
78
+ children?: ReactNode;
79
+ }
80
+ export interface BreadcrumbPageProps extends TextProps {
81
+ className?: string;
82
+ }
83
+ export interface BreadcrumbSeparatorProps extends ViewProps {
84
+ className?: string;
85
+ /** Override the glyph for this one gap. Falls back to the root's separator. */
86
+ children?: ReactNode;
87
+ }
88
+ export interface BreadcrumbEllipsisProps extends Omit<AnimatedPressableProps, 'children'> {
89
+ className?: string;
90
+ }
91
+ export declare const Breadcrumb: import("react").ForwardRefExoticComponent<BreadcrumbProps & import("react").RefAttributes<View>> & {
92
+ List: import("react").ForwardRefExoticComponent<BreadcrumbListProps & import("react").RefAttributes<View>>;
93
+ Item: import("react").ForwardRefExoticComponent<BreadcrumbItemProps & import("react").RefAttributes<View>>;
94
+ Link: import("react").ForwardRefExoticComponent<BreadcrumbLinkProps & import("react").RefAttributes<View>>;
95
+ Page: import("react").ForwardRefExoticComponent<BreadcrumbPageProps & import("react").RefAttributes<import("react-native").Text>>;
96
+ Separator: import("react").ForwardRefExoticComponent<BreadcrumbSeparatorProps & import("react").RefAttributes<View>>;
97
+ Ellipsis: import("react").ForwardRefExoticComponent<BreadcrumbEllipsisProps & import("react").RefAttributes<View>>;
98
+ };
99
+ export {};
100
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/breadcrumb/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,OAAO,EAML,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,IAA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AC,EAAE,MAAM,CAAC;IACnB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AA8BD,MAAM,WAAW,uBACf,SAAQ,IAAI,CAAC,sBAAsB,EAAE,UAAU,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA2CD,eAAO,MAAM,UAAU;;;;;;;CAOrB,CAAC"}
@@ -35,7 +35,9 @@
35
35
  */
36
36
  import { type ReactNode } from 'react';
37
37
  import { type ViewProps } from 'react-native';
38
- export type DirectionValue = 'ltr' | 'rtl';
38
+ import { useDirection, useDirectionSign, type DirectionValue } from '../../hooks/use-direction.js';
39
+ export { useDirection, useDirectionSign };
40
+ export type { DirectionValue };
39
41
  export interface DirectionProps extends ViewProps {
40
42
  className?: string;
41
43
  children?: ReactNode;
@@ -47,18 +49,17 @@ export interface DirectionProps extends ViewProps {
47
49
  dir?: DirectionValue;
48
50
  }
49
51
  /**
50
- * Provider. Renders one `View` — it has to, since the flip is a style — which
51
- * fills its parent by default so it can wrap an app. Pass `className` to change
52
- * that: `flex-none` or a width class both win over the default.
52
+ * Provider. Renders one `View` — it has to, since the flip is a style.
53
+ *
54
+ * The view takes no layout of its own: it is as big as what is inside it, and
55
+ * `className` says otherwise. Wrapping a whole app therefore wants `flex-1`
56
+ * explicitly. It used to carry that by default, and every use inside a screen
57
+ * had to undo it with `flex-none` — a default that is wrong for one of its two
58
+ * uses is worse than no default, because the wrong one fails silently by
59
+ * swallowing the rest of the screen.
53
60
  */
54
61
  export declare function Direction({ className, children, dir, style, ...props }: DirectionProps): import("react").JSX.Element;
55
62
  export declare namespace Direction {
56
63
  var displayName: string;
57
64
  }
58
- /**
59
- * The reading direction in force, for a component that has to flip maths Yoga
60
- * cannot flip for it. Safe with no provider mounted: it falls back to the
61
- * device's own setting.
62
- */
63
- export declare function useDirection(): DirectionValue;
64
65
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/direction/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGjE,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,KAAK,CAAC;AAO3C,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,GAAG,CAAC,EAAE,cAAc,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,+BAgBtF;yBAhBe,SAAS;;;AAoBzB;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,cAAc,CAE7C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/direction/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAGL,YAAY,EACZ,gBAAgB,EAChB,KAAK,cAAc,EACpB,MAAM,8BAA2B,CAAC;AAEnC,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAC1C,YAAY,EAAE,cAAc,EAAE,CAAC;AAE/B,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,GAAG,CAAC,EAAE,cAAc,CAAC;CACtB;AAED;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,+BAgBtF;yBAhBe,SAAS"}
@@ -14,6 +14,23 @@
14
14
  * surfaces read as one misdrawn shape. The panel's bottom corners are not set
15
15
  * at all — the shell clips them, so they take its radius exactly.
16
16
  *
17
+ * That clip follows the shell's *border box*, not the box inside its border.
18
+ * Along the straight edges the panel is held off by the border width and the
19
+ * edge shows through, but at the corner arcs the panel's square corner is
20
+ * clipped to the outer radius and paints across the border. At the default
21
+ * hairline that is a sliver nobody sees. Give the shell a thicker border and
22
+ * the corners visibly eat it, so a Frame with `border-2` or more needs the
23
+ * panel told where to stop:
24
+ *
25
+ * ```tsx
26
+ * <Frame className="rounded-[28px] border-2 border-dashed">
27
+ * <Frame.Panel className="rounded-b-[26px]">…</Frame.Panel>
28
+ * </Frame>
29
+ * ```
30
+ *
31
+ * The radius to use is the shell's less its border width. It is on the caller
32
+ * because both arrive as `className` strings, which the component cannot read.
33
+ *
17
34
  * ```tsx
18
35
  * <Frame>
19
36
  * <Frame.Header>
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/frame/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAEL,IAAI,EACJ,KAAK,cAAc,EACnB,KAAK,IAAI,IAAI,MAAM,EACnB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,0BAAuB,CAAC;AA+B7D,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,CAAC;AAU/C,MAAM,WAAW,UAAW,SAAQ,SAAS;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC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W,eAAgB,SAAQ,UAAU;IACjD;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAeD,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,EAAE,SAAS;IAChF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,KAAK,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAmDD,MAAM,WAAW,iBAAkB,SAAQ,UAAU,EAAE,SAAS;IAC9D,2DAA2D;IAC3D,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAkCD,eAAO,MAAM,KAAK;;;;;;;;;;;CAWhB,CAAC"}
@@ -110,8 +110,8 @@ export interface HeatmapChartProps extends ViewProps {
110
110
  /** Which weekday is the top row. `0` is Sunday. Labels follow it. */
111
111
  weekStartDay?: number;
112
112
  /**
113
- * Rows per column. Seven for a calendar; use another number for a band that
114
- * is not a week — twenty-four for hours, one for an uptime strip.
113
+ * Rows per column. Seven for a calendar; use another number when the bins
114
+ * are not weekdays — twenty-four for a grid of hours.
115
115
  */
116
116
  rows?: number;
117
117
  /**
@@ -126,8 +126,27 @@ export interface HeatmapChartProps extends ViewProps {
126
126
  * opacities, which follows the theme.
127
127
  */
128
128
  levelColors?: string[];
129
- /** Base colour for the derived ramp. Defaults to the `--color-chart-1` token. */
129
+ /**
130
+ * Base colour for the derived ramp — the colour the busiest cells are drawn
131
+ * in, with the quieter levels the same colour at lower opacity.
132
+ *
133
+ * Takes a theme token by name as well as a literal, so `"--color-chart-3"`
134
+ * recolours the chart and keeps following the theme through light and dark.
135
+ * Defaults to `--color-chart-1`.
136
+ */
130
137
  color?: string;
138
+ /**
139
+ * Colour of a cell with nothing in it. Takes a token name too. Defaults to
140
+ * `--color-muted`, which is the right weight for "measured, and empty" —
141
+ * override it for a chart that should read as denser or fainter than that.
142
+ */
143
+ emptyColor?: string;
144
+ /**
145
+ * Opacity of the base colour at each of the five levels, quietest first.
146
+ * The way to retune the ramp's contrast without having to name five colours.
147
+ * Ignored when `levelColors` is given, which sets the colours outright.
148
+ */
149
+ levelOpacity?: number[];
131
150
  /** Milliseconds for the reveal on mount. */
132
151
  animationDuration?: number;
133
152
  /** Opacity of every cell that is not the one under the finger. */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/heatmap-chart/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,OAAO,EAUL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAc,IAAI,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAuExF;;;;GAIG;AACH,KAAK,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE3E,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC;AAE7C,sDAAsD;AACtD,MAAM,WAAW,UAAU;IACzB,+CAA+C;IAC/C,GAAG,EAAE,MAAM,CAAC;IACZ,gFAAgF;IAChF,KAAK,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,0EAA0E;AAC1E,MAAM,WAAW,aAAa;IAC5B,qCAAqC;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,UAAU,EAAE,CAAC;CACpB;AAED,4EAA4E;A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D,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,KAA0B,EAC1B,UAAkB,EAClB,WAAoB,EACpB,MAAM,GACP,EAAE,iBAAiB,+BAiCnB;kBAvCQ,YAAY;;;AA8CrB,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,MAAM,CAAC;IAC5C;;;;;;;;;OASG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED;;;;;;;;GAQG;AACH,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,WAAW,EACX,sBAAqC,GACtC,EAAE,mBAAmB,+BAuGrB;kBA3GQ,cAAc;;;AAyHvB,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,iDAAiD;AACjD,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,SAAkB,EAClB,SAAkB,EAClB,UAAU,GACX,EAAE,kBAAkB,+BA6BpB;kBAlCQ,aAAa;;;AAqCtB,eAAO,MAAM,YAAY;;;;;;;CAOvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/heatmap-chart/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,OAAO,EAUL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAc,IAAI,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAgFxF;;;;GAIG;AACH,KAAK,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,G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AAa,CAAC,EACrB,SAAS,EACT,SAAkB,EAClB,SAAkB,EAClB,UAAU,GACX,EAAE,kBAAkB,+BA6BpB;kBAlCQ,aAAa;;;AAqCtB,eAAO,MAAM,YAAY;;;;;;;CAOvB,CAAC"}
@@ -234,6 +234,7 @@ declare namespace LineChartLegend {
234
234
  var displayName: string;
235
235
  var layer: Layer;
236
236
  }
237
+ /** Only reached if the theme CSS was never imported. */
237
238
  export declare const LineChart: import("react").ForwardRefExoticComponent<LineChartProps & import("react").RefAttributes<LineChartHandle>> & {
238
239
  Grid: typeof LineChartGrid;
239
240
  Area: typeof LineChartArea;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/line-chart/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,OAAO,EAWL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAA4C,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAqCxF;;;;GAIG;AACH,KAAK,KAAK,GAAG,KAAK,GAAG,SAAS,CAAC;AAE/B,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,OAAO,CAAC;AAClD,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,QAAQ,CAAC;AACnD,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;AAuChF;;;;;;;GAOG;AACH,wBAAgB,YAAY;;;;EAO3B;AAED,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,IAAI,EAAE,cAAc,EAAE,CAAC;IACvB,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,+EAA+E;IAC/E,WAA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