@opsinjs/react 0.0.0-stage → 0.1.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 (266) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/LICENSE +21 -0
  3. package/README.md +114 -2
  4. package/dist/components/accordion.d.ts +82 -0
  5. package/dist/components/accordion.d.ts.map +1 -0
  6. package/dist/components/accordion.js +154 -0
  7. package/dist/components/accordion.js.map +1 -0
  8. package/dist/components/alert-banner.d.ts +291 -0
  9. package/dist/components/alert-banner.d.ts.map +1 -0
  10. package/dist/components/alert-banner.js +529 -0
  11. package/dist/components/alert-banner.js.map +1 -0
  12. package/dist/components/avatar.d.ts +45 -0
  13. package/dist/components/avatar.d.ts.map +1 -0
  14. package/dist/components/avatar.js +159 -0
  15. package/dist/components/avatar.js.map +1 -0
  16. package/dist/components/badge.d.ts +78 -0
  17. package/dist/components/badge.d.ts.map +1 -0
  18. package/dist/components/badge.js +32 -0
  19. package/dist/components/badge.js.map +1 -0
  20. package/dist/components/body-map.d.ts +51 -0
  21. package/dist/components/body-map.d.ts.map +1 -0
  22. package/dist/components/body-map.js +190 -0
  23. package/dist/components/body-map.js.map +1 -0
  24. package/dist/components/button.d.ts +260 -0
  25. package/dist/components/button.d.ts.map +1 -0
  26. package/dist/components/button.js +609 -0
  27. package/dist/components/button.js.map +1 -0
  28. package/dist/components/callout.d.ts +99 -0
  29. package/dist/components/callout.d.ts.map +1 -0
  30. package/dist/components/callout.js +285 -0
  31. package/dist/components/callout.js.map +1 -0
  32. package/dist/components/card.d.ts +156 -0
  33. package/dist/components/card.d.ts.map +1 -0
  34. package/dist/components/card.js +396 -0
  35. package/dist/components/card.js.map +1 -0
  36. package/dist/components/care-card.d.ts +182 -0
  37. package/dist/components/care-card.d.ts.map +1 -0
  38. package/dist/components/care-card.js +544 -0
  39. package/dist/components/care-card.js.map +1 -0
  40. package/dist/components/checkbox.d.ts +58 -0
  41. package/dist/components/checkbox.d.ts.map +1 -0
  42. package/dist/components/checkbox.js +167 -0
  43. package/dist/components/checkbox.js.map +1 -0
  44. package/dist/components/combobox.d.ts +71 -0
  45. package/dist/components/combobox.d.ts.map +1 -0
  46. package/dist/components/combobox.js +204 -0
  47. package/dist/components/combobox.js.map +1 -0
  48. package/dist/components/consent-sheet.d.ts +186 -0
  49. package/dist/components/consent-sheet.d.ts.map +1 -0
  50. package/dist/components/consent-sheet.js +452 -0
  51. package/dist/components/consent-sheet.js.map +1 -0
  52. package/dist/components/dialog.d.ts +108 -0
  53. package/dist/components/dialog.d.ts.map +1 -0
  54. package/dist/components/dialog.js +573 -0
  55. package/dist/components/dialog.js.map +1 -0
  56. package/dist/components/disclaimer-note.d.ts +144 -0
  57. package/dist/components/disclaimer-note.d.ts.map +1 -0
  58. package/dist/components/disclaimer-note.js +486 -0
  59. package/dist/components/disclaimer-note.js.map +1 -0
  60. package/dist/components/divider.d.ts +76 -0
  61. package/dist/components/divider.d.ts.map +1 -0
  62. package/dist/components/divider.js +101 -0
  63. package/dist/components/divider.js.map +1 -0
  64. package/dist/components/dose-tracker.d.ts +137 -0
  65. package/dist/components/dose-tracker.d.ts.map +1 -0
  66. package/dist/components/dose-tracker.js +154 -0
  67. package/dist/components/dose-tracker.js.map +1 -0
  68. package/dist/components/empty-state.d.ts +171 -0
  69. package/dist/components/empty-state.d.ts.map +1 -0
  70. package/dist/components/empty-state.js +387 -0
  71. package/dist/components/empty-state.js.map +1 -0
  72. package/dist/components/field.d.ts +195 -0
  73. package/dist/components/field.d.ts.map +1 -0
  74. package/dist/components/field.js +282 -0
  75. package/dist/components/field.js.map +1 -0
  76. package/dist/components/goal-ring.d.ts +114 -0
  77. package/dist/components/goal-ring.d.ts.map +1 -0
  78. package/dist/components/goal-ring.js +254 -0
  79. package/dist/components/goal-ring.js.map +1 -0
  80. package/dist/components/icon-button.d.ts +124 -0
  81. package/dist/components/icon-button.d.ts.map +1 -0
  82. package/dist/components/icon-button.js +113 -0
  83. package/dist/components/icon-button.js.map +1 -0
  84. package/dist/components/link.d.ts +122 -0
  85. package/dist/components/link.d.ts.map +1 -0
  86. package/dist/components/link.js +164 -0
  87. package/dist/components/link.js.map +1 -0
  88. package/dist/components/log-sheet.d.ts +259 -0
  89. package/dist/components/log-sheet.d.ts.map +1 -0
  90. package/dist/components/log-sheet.js +437 -0
  91. package/dist/components/log-sheet.js.map +1 -0
  92. package/dist/components/menu.d.ts +69 -0
  93. package/dist/components/menu.d.ts.map +1 -0
  94. package/dist/components/menu.js +190 -0
  95. package/dist/components/menu.js.map +1 -0
  96. package/dist/components/metric-tile.d.ts +301 -0
  97. package/dist/components/metric-tile.d.ts.map +1 -0
  98. package/dist/components/metric-tile.js +533 -0
  99. package/dist/components/metric-tile.js.map +1 -0
  100. package/dist/components/number-field.d.ts +62 -0
  101. package/dist/components/number-field.d.ts.map +1 -0
  102. package/dist/components/number-field.js +134 -0
  103. package/dist/components/number-field.js.map +1 -0
  104. package/dist/components/popover.d.ts +70 -0
  105. package/dist/components/popover.d.ts.map +1 -0
  106. package/dist/components/popover.js +174 -0
  107. package/dist/components/popover.js.map +1 -0
  108. package/dist/components/progress.d.ts +83 -0
  109. package/dist/components/progress.d.ts.map +1 -0
  110. package/dist/components/progress.js +140 -0
  111. package/dist/components/progress.js.map +1 -0
  112. package/dist/components/questionnaire.d.ts +123 -0
  113. package/dist/components/questionnaire.d.ts.map +1 -0
  114. package/dist/components/questionnaire.js +148 -0
  115. package/dist/components/questionnaire.js.map +1 -0
  116. package/dist/components/radio-group.d.ts +66 -0
  117. package/dist/components/radio-group.d.ts.map +1 -0
  118. package/dist/components/radio-group.js +186 -0
  119. package/dist/components/radio-group.js.map +1 -0
  120. package/dist/components/range-bar.d.ts +172 -0
  121. package/dist/components/range-bar.d.ts.map +1 -0
  122. package/dist/components/range-bar.js +578 -0
  123. package/dist/components/range-bar.js.map +1 -0
  124. package/dist/components/range-legend.d.ts +97 -0
  125. package/dist/components/range-legend.d.ts.map +1 -0
  126. package/dist/components/range-legend.js +166 -0
  127. package/dist/components/range-legend.js.map +1 -0
  128. package/dist/components/reading-input.d.ts +225 -0
  129. package/dist/components/reading-input.d.ts.map +1 -0
  130. package/dist/components/reading-input.js +651 -0
  131. package/dist/components/reading-input.js.map +1 -0
  132. package/dist/components/relative-time.d.ts +177 -0
  133. package/dist/components/relative-time.d.ts.map +1 -0
  134. package/dist/components/relative-time.js +603 -0
  135. package/dist/components/relative-time.js.map +1 -0
  136. package/dist/components/result-card.d.ts +319 -0
  137. package/dist/components/result-card.d.ts.map +1 -0
  138. package/dist/components/result-card.js +614 -0
  139. package/dist/components/result-card.js.map +1 -0
  140. package/dist/components/scale-input.d.ts +58 -0
  141. package/dist/components/scale-input.d.ts.map +1 -0
  142. package/dist/components/scale-input.js +170 -0
  143. package/dist/components/scale-input.js.map +1 -0
  144. package/dist/components/score-dial.d.ts +205 -0
  145. package/dist/components/score-dial.d.ts.map +1 -0
  146. package/dist/components/score-dial.js +728 -0
  147. package/dist/components/score-dial.js.map +1 -0
  148. package/dist/components/scroll-area.d.ts +38 -0
  149. package/dist/components/scroll-area.d.ts.map +1 -0
  150. package/dist/components/scroll-area.js +138 -0
  151. package/dist/components/scroll-area.js.map +1 -0
  152. package/dist/components/segmented-control.d.ts +69 -0
  153. package/dist/components/segmented-control.d.ts.map +1 -0
  154. package/dist/components/segmented-control.js +259 -0
  155. package/dist/components/segmented-control.js.map +1 -0
  156. package/dist/components/select.d.ts +72 -0
  157. package/dist/components/select.d.ts.map +1 -0
  158. package/dist/components/select.js +205 -0
  159. package/dist/components/select.js.map +1 -0
  160. package/dist/components/sheet.d.ts +192 -0
  161. package/dist/components/sheet.d.ts.map +1 -0
  162. package/dist/components/sheet.js +952 -0
  163. package/dist/components/sheet.js.map +1 -0
  164. package/dist/components/skeleton.d.ts +104 -0
  165. package/dist/components/skeleton.d.ts.map +1 -0
  166. package/dist/components/skeleton.js +266 -0
  167. package/dist/components/skeleton.js.map +1 -0
  168. package/dist/components/slider.d.ts +55 -0
  169. package/dist/components/slider.d.ts.map +1 -0
  170. package/dist/components/slider.js +170 -0
  171. package/dist/components/slider.js.map +1 -0
  172. package/dist/components/source-citation.d.ts +127 -0
  173. package/dist/components/source-citation.d.ts.map +1 -0
  174. package/dist/components/source-citation.js +391 -0
  175. package/dist/components/source-citation.js.map +1 -0
  176. package/dist/components/spinner.d.ts +86 -0
  177. package/dist/components/spinner.d.ts.map +1 -0
  178. package/dist/components/spinner.js +97 -0
  179. package/dist/components/spinner.js.map +1 -0
  180. package/dist/components/status-pill.d.ts +90 -0
  181. package/dist/components/status-pill.d.ts.map +1 -0
  182. package/dist/components/status-pill.js +259 -0
  183. package/dist/components/status-pill.js.map +1 -0
  184. package/dist/components/stepper.d.ts +99 -0
  185. package/dist/components/stepper.d.ts.map +1 -0
  186. package/dist/components/stepper.js +152 -0
  187. package/dist/components/stepper.js.map +1 -0
  188. package/dist/components/surface.d.ts +92 -0
  189. package/dist/components/surface.d.ts.map +1 -0
  190. package/dist/components/surface.js +261 -0
  191. package/dist/components/surface.js.map +1 -0
  192. package/dist/components/switch.d.ts +48 -0
  193. package/dist/components/switch.d.ts.map +1 -0
  194. package/dist/components/switch.js +152 -0
  195. package/dist/components/switch.js.map +1 -0
  196. package/dist/components/symptom-picker.d.ts +69 -0
  197. package/dist/components/symptom-picker.d.ts.map +1 -0
  198. package/dist/components/symptom-picker.js +170 -0
  199. package/dist/components/symptom-picker.js.map +1 -0
  200. package/dist/components/tab-bar.d.ts +110 -0
  201. package/dist/components/tab-bar.d.ts.map +1 -0
  202. package/dist/components/tab-bar.js +118 -0
  203. package/dist/components/tab-bar.js.map +1 -0
  204. package/dist/components/table.d.ts +117 -0
  205. package/dist/components/table.d.ts.map +1 -0
  206. package/dist/components/table.js +65 -0
  207. package/dist/components/table.js.map +1 -0
  208. package/dist/components/tabs.d.ts +106 -0
  209. package/dist/components/tabs.d.ts.map +1 -0
  210. package/dist/components/tabs.js +136 -0
  211. package/dist/components/tabs.js.map +1 -0
  212. package/dist/components/term.d.ts +243 -0
  213. package/dist/components/term.d.ts.map +1 -0
  214. package/dist/components/term.js +562 -0
  215. package/dist/components/term.js.map +1 -0
  216. package/dist/components/textarea.d.ts +157 -0
  217. package/dist/components/textarea.d.ts.map +1 -0
  218. package/dist/components/textarea.js +66 -0
  219. package/dist/components/textarea.js.map +1 -0
  220. package/dist/components/timeline-entry.d.ts +99 -0
  221. package/dist/components/timeline-entry.d.ts.map +1 -0
  222. package/dist/components/timeline-entry.js +47 -0
  223. package/dist/components/timeline-entry.js.map +1 -0
  224. package/dist/components/toast.d.ts +80 -0
  225. package/dist/components/toast.d.ts.map +1 -0
  226. package/dist/components/toast.js +266 -0
  227. package/dist/components/toast.js.map +1 -0
  228. package/dist/components/tooltip.d.ts +48 -0
  229. package/dist/components/tooltip.d.ts.map +1 -0
  230. package/dist/components/tooltip.js +159 -0
  231. package/dist/components/tooltip.js.map +1 -0
  232. package/dist/components/trend-sparkline.d.ts +188 -0
  233. package/dist/components/trend-sparkline.d.ts.map +1 -0
  234. package/dist/components/trend-sparkline.js +796 -0
  235. package/dist/components/trend-sparkline.js.map +1 -0
  236. package/dist/components/value.d.ts +150 -0
  237. package/dist/components/value.d.ts.map +1 -0
  238. package/dist/components/value.js +402 -0
  239. package/dist/components/value.js.map +1 -0
  240. package/dist/components/visually-hidden.d.ts +61 -0
  241. package/dist/components/visually-hidden.d.ts.map +1 -0
  242. package/dist/components/visually-hidden.js +172 -0
  243. package/dist/components/visually-hidden.js.map +1 -0
  244. package/dist/index.d.ts +63 -0
  245. package/dist/index.d.ts.map +1 -0
  246. package/dist/index.js +72 -0
  247. package/dist/index.js.map +1 -0
  248. package/dist/opsinjs.d.ts +443 -0
  249. package/dist/opsinjs.d.ts.map +1 -0
  250. package/dist/opsinjs.js +906 -0
  251. package/dist/opsinjs.js.map +1 -0
  252. package/dist/status.d.ts +111 -0
  253. package/dist/status.d.ts.map +1 -0
  254. package/dist/status.js +125 -0
  255. package/dist/status.js.map +1 -0
  256. package/dist/styles.css +2 -0
  257. package/dist/utils.d.ts +20 -0
  258. package/dist/utils.d.ts.map +1 -0
  259. package/dist/utils.js +82 -0
  260. package/dist/utils.js.map +1 -0
  261. package/package.json +86 -3
  262. package/styles/base.css +132 -0
  263. package/styles/roles.css +412 -0
  264. package/styles/standalone.css +20 -0
  265. package/styles/tailwind.css +18 -0
  266. package/styles/theme.css +309 -0
@@ -0,0 +1,188 @@
1
+ /**
2
+ * TrendSparkline is a line through readings somebody else took, and a sentence
3
+ * that says what the line shows without saying whether it is welcome news.
4
+ *
5
+ * A sparkline is a claim that a pattern exists, and four points with a slope
6
+ * look exactly like forty points with a slope. Most of this file is about
7
+ * refusing to draw a line the data does not support, and about making sure the
8
+ * words beside the line carry everything the line carries.
9
+ *
10
+ * THE CAPTION IS THE COMPONENT. There is no prop that turns it off, no
11
+ * `sr-only` variant of it and no `showCaption={false}`, because a graphic has no
12
+ * word in it at all. That is worse off than a status pill, whose measured
13
+ * problem is only that four hues cannot be told apart. A reader who cannot see
14
+ * the plot must lose the picture and keep the information. What that promise
15
+ * does NOT survive is `className`: it is merged onto the root with
16
+ * `tailwind-merge`, so a caller who passes `hidden`, `sr-only` or a
17
+ * `[&_[data-slot=…]]:hidden` variant removes the sentence, and nothing here can
18
+ * stop them. That is stated on the page rather than claimed away.
19
+ *
20
+ * NOTHING HERE IS DERIVED FROM A NUMBER THIS FILE CHOSE. There is no reference
21
+ * range, no smoothing, no minimum point count and no rule about how much
22
+ * movement counts as movement. `minimumPoints` and `changeThreshold` both come
23
+ * from the caller: the first is required, and without the second this component
24
+ * prints both endpoints and names no direction at all. Naming a direction from
25
+ * any difference whatever would mean this file had picked a change threshold of
26
+ * zero and applied it to somebody else's metric, which doctrine gives to the
27
+ * metric and not to us.
28
+ *
29
+ * A BAND NEEDS BOTH OF ITS ENDS. A one-sided range is a real range and it is
30
+ * drawn as words, never as a rectangle with an edge this file supplied: taking
31
+ * the missing bound from the data extent or from zero and then telling the
32
+ * reader in the caption that the whole band came from their laboratory credits
33
+ * that laboratory with a number it never gave.
34
+ *
35
+ * THE VISIBLE STATUS AXIS IS NOT DRAWN. `TrendPoint.status` decides which
36
+ * reading is emphasised and what the caption says about it. It puts no status
37
+ * colour on the marker, no status glyph on the plot and no status word there.
38
+ * The rule that forces this is the four-carrier rule. A visible status is
39
+ * colour AND a glyph AND the word, and a six-pixel dot can hold none of the
40
+ * three legibly, so the whole visible verdict is rendered where all three fit,
41
+ * as a StatusPill inside the caption, and the plot stays a picture of numbers.
42
+ * The fourth carrier, `data-status`, is different in kind because it draws
43
+ * nothing: it is the DOM contract the print stylesheet, the greyscale audit and
44
+ * every product test read the level from. That one is stamped on the flagged
45
+ * dot, since a status surface has to be findable where the flagged reading is,
46
+ * and to keep the two colour axes off one element the dot gives up the category
47
+ * tint the line already carries and is drawn in the neutral foreground instead.
48
+ * See the comment on `flagged` below, which is where that decision lives.
49
+ *
50
+ * NOTHING ANIMATES. Not the path, not the marker, not on first paint and not on
51
+ * a change. A path that draws its own length reads as time passing and implies
52
+ * progress; there is no reduced-motion fallback here because there is nothing to
53
+ * fall back from.
54
+ */
55
+ import { type HealthCategory, type ReferenceRange, type TrendPoint } from "../opsinjs.ts";
56
+ /**
57
+ * Direction is a fact about the series measured against the caller's own change
58
+ * threshold. Valence is a judgement, and not ours.
59
+ *
60
+ * All four members are the vocabulary a product may use in a caption of its own.
61
+ * This component produces `up`, `down` and `level`, and only when the caller has
62
+ * said how much movement counts as movement. See `directionOf`. `unsettled` is
63
+ * unreachable from here, because deciding a series is unsettled needs a noise
64
+ * measure that no prop carries.
65
+ */
66
+ export type TrendDirection = "up" | "down" | "level" | "unsettled";
67
+ export interface TrendSparklineProps {
68
+ /**
69
+ * What was measured, in the reader's language. It names the subject in the
70
+ * plot's accessible name, which is otherwise a description of a line with no
71
+ * subject. It is deliberately not drawn: the anatomy has no label part, and
72
+ * the surface a sparkline sits in has already said what it is about.
73
+ */
74
+ label: string;
75
+ /**
76
+ * Unit symbol as `tokens/units.json` spells it, such as "bpm", "mmol/L" or
77
+ * "steps". Every reading in the caption is rendered through `Value`, which
78
+ * resolves the spoken form from that table so a screen reader says
79
+ * "millimoles per litre" rather than improvising.
80
+ */
81
+ unit: string;
82
+ /**
83
+ * Decimal places, from the precision of the measurement. That is the
84
+ * resolution of the device, or the number of places the laboratory reported,
85
+ * and never a number chosen at render time. Required, so a TypeScript caller
86
+ * cannot omit it: a reading that arrived from arithmetic can carry seventeen
87
+ * digits, and a caption is exactly where those show. Forwarded untouched to
88
+ * every `Value` this component renders. A JavaScript caller who omits it gets
89
+ * the digits it was handed plus a development warning from `Value`.
90
+ *
91
+ * The caption also prints the band bounds the caller supplied on `range`,
92
+ * and this same precision is applied to them as well as to the readings. A
93
+ * bound stated to more places than the measurement carries is therefore shown
94
+ * rounded to this precision rather than to its own, so a product whose source
95
+ * range is finer than its reading precision should state that range in the
96
+ * precision it was given.
97
+ */
98
+ precision: number;
99
+ /**
100
+ * The readings, in chronological order. A gap is an explicit entry with
101
+ * `value: null`, never an omitted one: an entry missing from the array is one
102
+ * this component cannot know about, and a line drawn straight through it
103
+ * asserts a measurement nobody took.
104
+ *
105
+ * An entry whose value is a number but not a finite one is a failure rather
106
+ * than a gap, is counted and described as one, and is not drawn.
107
+ */
108
+ series: TrendPoint[];
109
+ /**
110
+ * How many real readings there must be before a line may be drawn at all.
111
+ *
112
+ * Required, with no default, and the omission is the point. How many readings
113
+ * make a trend depends on what was measured, how often it is measured and who
114
+ * is reading it. That is a number opsinjs cannot know and must never guess.
115
+ * Below it this component draws nothing and says so, naming your number and
116
+ * the count it actually has.
117
+ */
118
+ minimumPoints: number;
119
+ /**
120
+ * The period the series covers, as the reader should see it, such as "the
121
+ * last 14 days". A display string rather than a duration, which has a
122
+ * consequence worth knowing: the x-axis is the extent of the series you
123
+ * passed, not the extent of this period, so two sparklines are only
124
+ * comparable side by side when their series cover the same span.
125
+ */
126
+ window: string;
127
+ /**
128
+ * The smallest difference this metric counts as a change, in the reading's own
129
+ * unit. There is no default, and without it the caption names no direction.
130
+ *
131
+ * A metric declares the difference below which a series is presented as
132
+ * unchanged; below that noise floor "about the same" is the true sentence.
133
+ * Supplied, the caption reads "Up, from … to …"; omitted, it prints both
134
+ * endpoints and stops, and the accessible name says "with no clear direction".
135
+ * Zero is a legitimate value and means your metric counts any difference at
136
+ * all. It still has to be your product saying so, not this file.
137
+ */
138
+ changeThreshold?: number;
139
+ /**
140
+ * An interval to shade behind the line, in neutral tones. Never
141
+ * status-coloured, and never invented: omit it and no band is drawn. Its
142
+ * `source` is required and is named in the caption, because a shaded band with
143
+ * no owner is an assertion with no author.
144
+ *
145
+ * A band is drawn only when BOTH bounds are present and the lower is below the
146
+ * upper. A one-sided range is stated in the caption as words such as "10
147
+ * steps and above", and it is drawn as nothing, because the missing edge
148
+ * would have to come from the data or from zero and would then be attributed
149
+ * to your source.
150
+ */
151
+ range?: ReferenceRange;
152
+ /**
153
+ * Tints the line so it is findable in a grid of six. It is identity, not
154
+ * meaning: in greyscale the tint is lost and nothing else is.
155
+ */
156
+ category?: HealthCategory;
157
+ /**
158
+ * Your own sentence, in place of the composed one. Use it when you have a
159
+ * cadence, a phrasing or a comparison this component cannot know about.
160
+ *
161
+ * It replaces the direction-and-magnitude sentence. It does not replace the
162
+ * coverage clause (how many readings there are and what is missing), the
163
+ * clause naming a marked reading, or the clause naming a range's source.
164
+ * Those are appended either way, because a count of absent measurements, a
165
+ * status and an attribution are not decoration. Where there are too few
166
+ * readings to draw, your sentence is appended to the refusal rather than
167
+ * replacing it: the refusal is the one sentence that explains why there is no
168
+ * picture.
169
+ */
170
+ caption?: string;
171
+ /**
172
+ * BCP 47 locale for number separators, digit shapes and the date in the
173
+ * caption. Passed through to every `Value` this component renders and used for
174
+ * the plot's accessible name, so the spoken name and the printed sentence
175
+ * cannot show two conventions. Omitted, the reader's environment decides.
176
+ */
177
+ locale?: string;
178
+ /**
179
+ * Merged onto the root with `tailwind-merge`, and a class you pass wins where
180
+ * the two conflict. That includes `hidden` and `sr-only`, and it includes a
181
+ * variant that targets the caption's `data-slot`: this prop reaches the whole
182
+ * subtree, and a caller who hides the caption hides the text twin. Nothing in
183
+ * this component prevents it and no gate checks for it.
184
+ */
185
+ className?: string;
186
+ }
187
+ export declare function TrendSparkline({ label, unit, precision, series, minimumPoints, window: windowLabel, changeThreshold, range, category, caption, locale, className, }: TrendSparklineProps): import("react").JSX.Element;
188
+ //# sourceMappingURL=trend-sparkline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trend-sparkline.d.ts","sourceRoot":"","sources":["../../src/components/trend-sparkline.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AAEH,OAAO,EAQL,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,UAAU,EAChB,MAAM,eAAe,CAAA;AAKtB;;;;;;;;;GASG;AACH,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,MAAM,GAAG,OAAO,GAAG,WAAW,CAAA;AAwOlE,MAAM,WAAW,mBAAmB;IAClC;;;;;OAKG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;;;;;;;;;;;;;;OAeG;IACH,SAAS,EAAE,MAAM,CAAA;IACjB;;;;;;;;OAQG;IACH,MAAM,EAAE,UAAU,EAAE,CAAA;IACpB;;;;;;;;OAQG;IACH,aAAa,EAAE,MAAM,CAAA;IACrB;;;;;;OAMG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;;;;;;;;;OAUG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,EAAE,cAAc,CAAA;IACtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAA;IACzB;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,IAAI,EACJ,SAAS,EACT,MAAM,EACN,aAAa,EACb,MAAM,EAAE,WAAW,EACnB,eAAe,EACf,KAAK,EACL,QAAQ,EACR,OAAO,EACP,MAAM,EACN,SAAS,GACV,EAAE,mBAAmB,+BA60BrB"}