@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 @@
1
+ {"version":3,"file":"reading-input.js","sourceRoot":"","sources":["../../src/components/reading-input.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoFG;AAEH,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEvC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE1C,OAAO,EACL,WAAW,EACX,QAAQ,EACR,aAAa,EACb,mBAAmB,GACpB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAa,CAAA;AAEnC;;;;;;;;;GASG;AACH,MAAM,YAAY,GAAG,IAAI,GAAG,EAAU,CAAA;AAEtC,SAAS,mBAAmB,CAAC,KAAa,EAAE,OAAe;IACzD,IAAI,CAAC,aAAa,EAAE,IAAI,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;QAChD,OAAM;IACR,CAAC;IACD,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;IACvB,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;AACvB,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,OAAO,GAAG,8BAA8B,CAAA;AAE9C;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAS,YAAY,CAAC,IAAY;IAChC,MAAM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OAAO,CACL,cAAK,SAAS,EAAE,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,eAAY,eAAe,YAChE,MAAC,KAAK,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,aACvD,eAAK,SAAS,EAAE,WAAW,eAAY,uBAAuB,aAC3D,KAAK,EACL,SAAS,IACN,EACL,YAAY,EACZ,WAAW,IACN,GACJ,CACP,CAAA;IACH,CAAC;IAED,OAAO;IACL;;;;;;;;wDAQoD;IACpD,oBACE,SAAS,EAAE,EAAE,CAAC,iCAAiC,EAAE,SAAS,CAAC,eACjD,eAAe,EACzB,QAAQ,EAAE,QAAQ,aAElB,iBACE,SAAS,EAAC,kDAAkD,eAClD,sBAAsB,YAE/B,KAAK,GACC,EACR,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACjD,YACE,SAAS,EAAC,sDAAsD,eACtD,oBAAoB,EAC9B,EAAE,EAAE,MAAM,YAET,IAAI,GACH,CACL,EACD,eAAK,SAAS,EAAE,WAAW,eAAY,uBAAuB,aAC3D,KAAK,EACL,SAAS,IACN,EACL,YAAY,EACZ,WAAW,IACH,CACZ,CAAA;AACH,CAAC"}
@@ -0,0 +1,177 @@
1
+ /**
2
+ * RelativeTime shows when something happened, in the words a person would use,
3
+ * with the exact instant never more than one element away.
4
+ *
5
+ * IT SHIPS NO STALENESS DEFAULT. That is not an omission, it is the component.
6
+ * What counts as old is a property of the measurement and of the person it
7
+ * belongs to, and a window that is right for one measurement is wrong for the
8
+ * next. So no number is written here, not even as an illustration: no fallback,
9
+ * no per-event default, and nothing inferred from `event`. If the product has
10
+ * not said what stale means for this measurement, this component does not know,
11
+ * and it renders the time with no verdict attached. A verdict with no author is
12
+ * the one thing a formatter must never manufacture, and "readings older than N
13
+ * hours are stale" is a clinical claim wherever N comes from.
14
+ *
15
+ * The one default this file does hold is `absoluteAfterDays`, and it is not a
16
+ * staleness number: it decides only when the exact date joins the relative
17
+ * phrase on screen, so that a recent reading shows the phrase alone and an
18
+ * older one shows the date beside it, and it can neither add, remove nor move a
19
+ * verdict. The demo in apps/www/registry/demos/relative-time.tsx and both
20
+ * worked examples pass no threshold at all, so the muted stale treatment
21
+ * appears in no preview opsinjs ships. That is the cost of not owning a number,
22
+ * and it is the right price.
23
+ *
24
+ * IT IS A SERVER COMPONENT, IT DOES NOT TICK, AND IT NEVER READS THE CLOCK.
25
+ * All three follow from one decision. A relative phrase recomputed in the
26
+ * browser produces a hydration mismatch by construction. The server's
27
+ * "3 minutes ago" and the client's are two different sentences about one
28
+ * instant, and the usual repairs are worse than the defect:
29
+ * `suppressHydrationWarning` keeps the SERVER's text and discards the client's
30
+ * more correct one, and a `setInterval` per timestamp rewrites a health surface
31
+ * silently, in a component the specification forbids from being a live region.
32
+ * So there is no `"use client"` here, no hook, no timer and no `typeof window`
33
+ * branch. There is no `Date.now()` either, which is why `now` is a required
34
+ * prop.
35
+ *
36
+ * That last part is not fastidiousness. `Date.now()` in a render body is an
37
+ * impure call, this repository's lint says so on every commit, and the impurity
38
+ * has two visible consequences: a list of twenty timestamps reads the clock
39
+ * twenty times and can straddle a minute boundary halfway down, and a component
40
+ * whose output depends on when React happened to call it cannot be compared
41
+ * with itself between two renders. Taking `now` from the caller puts the one
42
+ * impure read where it belongs, which is once per screen, in the page that is
43
+ * already rendering at a known instant. That makes every timestamp on that
44
+ * screen agree with every other.
45
+ *
46
+ * The honest consequence, stated here because it is stated on the page: a
47
+ * surface left open for an hour still shows the phrase it was rendered with.
48
+ * Four things stop that from being a lie rather than a limitation. The `time`
49
+ * element's `datetime` always carries the exact instant, unrounded. Within a
50
+ * day the phrase alone is on screen, because a recent time is what a relative
51
+ * phrase is for, and the exact date and time join it on screen once the reading
52
+ * is older than a day, where counting backwards from a phrase would start to
53
+ * cost the reader. The absolute date and time are always in the accessibility
54
+ * tree, and in print, whether or not they are on screen, so what can go out of
55
+ * date is never all a reader has. And the phrase is rounded DOWN at every rung
56
+ * while the staleness verdict is computed from the exact elapsed time, so a
57
+ * stale reading is never made to look fresh by rounding. A product whose surface
58
+ * stays open across its own staleness boundary re-renders with a fresh `now`;
59
+ * this component will not do it behind the product's back.
60
+ *
61
+ * IT DERIVES NOTHING ABOUT THE READING ITSELF. It does not know what was
62
+ * measured, it never colours from either axis, and the stale treatment is a
63
+ * muted typographic change plus explicit words. It is never an amber tint,
64
+ * which would put a clinical status onto a fact about the clock.
65
+ */
66
+ /**
67
+ * Which event the time refers to.
68
+ *
69
+ * Required on every render, because "3 days ago" on its own is a fragment the
70
+ * reader completes with whichever assumption is most convenient. The assumption
71
+ * they reach for is the most reassuring one. The distinction between
72
+ * `measured` and `synced` is the most consequential error in health dashboards:
73
+ * *Synced 2 minutes ago* over a reading taken four months ago is two true
74
+ * statements that together mislead completely.
75
+ */
76
+ export type TimeEvent = "measured" | "recorded" | "received" | "synced" | "issued";
77
+ export interface RelativeTimeProps {
78
+ /**
79
+ * ISO 8601 with an offset, as in `2026-03-14T08:12:00+01:00`. A timestamp
80
+ * with no offset is not a timestamp: it is parsed in whichever zone the code
81
+ * happens to be running in, and it is refused rather than guessed at.
82
+ */
83
+ at: string;
84
+ /**
85
+ * Which event this instant belongs to. Named, never inferred: this is the
86
+ * difference between a fact and a guess, and it is the difference between
87
+ * when a reading was taken and when an app last spoke to a server.
88
+ */
89
+ event: TimeEvent;
90
+ /**
91
+ * The instant the phrase is measured against, in the same form as `at`.
92
+ * Required, because a component that read the clock itself would be impure,
93
+ * would read it once per timestamp rather than once per screen, and would
94
+ * make a page of readings disagree with itself across a minute boundary. Read
95
+ * it once where the screen is rendered. Use `new Date().toISOString()` and
96
+ * pass the same value to every timestamp on it.
97
+ */
98
+ now: string;
99
+ /**
100
+ * Hours after which the staleness words and their muted treatment appear.
101
+ * Supplied by the product, because what counts as old is clinical and differs
102
+ * completely by measurement. There is no default: omit it and there is no
103
+ * stale treatment at all, which is the honest output when nobody has said
104
+ * what stale means here. Supply it and the timestamp always says something.
105
+ * Past the boundary it carries the words, and where the age could not be
106
+ * checked at all it carries the same words rather than falling silent.
107
+ */
108
+ staleAfterHours?: number;
109
+ /**
110
+ * Days after which the exact date joins the relative phrase on screen.
111
+ * Defaults to one day, which is where content/numbers-dates-and-time keeps a
112
+ * relative phrase for recency and switches to the absolute date beyond about a
113
+ * day. Below the boundary a sighted reader sees the phrase alone; at or above
114
+ * it the date is shown beside the phrase so nobody has to count backwards from
115
+ * a phrase on its own. It is a legibility boundary and not a clinical one, and
116
+ * it never adds, removes or moves the staleness note. The exact date stays in
117
+ * the accessibility tree and in print at every age, so this prop moves only
118
+ * what is on screen. `0` is a first-class value: it means the date is shown
119
+ * beside the phrase at every age, including a reading only minutes old.
120
+ */
121
+ absoluteAfterDays?: number;
122
+ /**
123
+ * Whether the absolute date and time may appear on screen beside the phrase
124
+ * once the reading is older than `absoluteAfterDays`. The date is in the
125
+ * accessibility tree and in print either way, and a reading recent enough to
126
+ * be inside that boundary shows the phrase alone regardless. It defaults to
127
+ * true, because content/numbers-dates-and-time pairs relative with absolute
128
+ * beyond about a day and this component cannot see the surface it sits on.
129
+ * Pass `showAbsolute={false}` to keep the date off screen at every age: a
130
+ * timestamp inside a running sentence, or a dense list whose exact instant is
131
+ * already visible in the surrounding row, where the phrase alone is the point.
132
+ * The date stays in the accessibility tree and in print even then.
133
+ */
134
+ showAbsolute?: boolean;
135
+ /**
136
+ * Whether the absolute time names the offset it was written in, as `UTC` or
137
+ * `UTC+1`. Defaults to true, because the component cannot see the reader's own
138
+ * zone and a reading taken abroad rendered as if it were local is the failure
139
+ * the specification's accessibility bullet is about. Pass `showOffset={false}`
140
+ * when the product knows the instant came from the reader's own device:
141
+ * content/numbers-dates-and-time names a zone only when it can differ from the
142
+ * reader's, and for a device measurement it cannot, so the label is then noise.
143
+ */
144
+ showOffset?: boolean;
145
+ /**
146
+ * IANA time zone name, as in `Europe/London`, for the absolute date and time.
147
+ * Supply it and the reading is put on that zone's wall clock with no zone
148
+ * label, because it is then the reader's own clock and there is nothing to
149
+ * disambiguate. Omit it and the absolute time is the wall clock the reading
150
+ * was written in, with its offset named. A product that does not know the
151
+ * reader's zone must omit this rather than guess, because a guessed zone is a
152
+ * wrong time carrying a confident label, which is worse than an honest offset.
153
+ * An offset such as `+01:00` is not accepted here: offset zones are not
154
+ * portable across runtimes the way an IANA name is. Only a canonical IANA
155
+ * name Intl renders back as itself is used. Anything else, an unknown zone, an
156
+ * abbreviation like `BST` that Intl would silently resolve to a different
157
+ * place, or a legacy alias, is reported in development and falls back to the
158
+ * offset form rather than risk a confidently wrong wall clock.
159
+ */
160
+ timeZone?: string;
161
+ /**
162
+ * BCP 47 language tag for the date and the phrase. It does not translate the
163
+ * event word. Those five are English, and the gap is documented rather than
164
+ * hidden behind a prop that would also let a caller relabel `synced`.
165
+ */
166
+ locale?: string;
167
+ /**
168
+ * Merged onto the root. The merge puts it last, so a conflicting class passed
169
+ * here wins: a type size or a colour set on the caller's side displaces the
170
+ * component's own. The one thing it cannot displace is the muted stale
171
+ * treatment, which is addressed at the parts rather than at the root for
172
+ * exactly that reason. See the class list on the root below.
173
+ */
174
+ className?: string;
175
+ }
176
+ export declare function RelativeTime({ at, event, now, staleAfterHours, absoluteAfterDays, showAbsolute, showOffset, timeZone, locale, className, }: RelativeTimeProps): import("react").JSX.Element | null;
177
+ //# sourceMappingURL=relative-time.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relative-time.d.ts","sourceRoot":"","sources":["../../src/components/relative-time.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AAKH;;;;;;;;;GASG;AACH,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAA;AA2ZlF,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;;;OAIG;IACH,KAAK,EAAE,SAAS,CAAA;IAChB;;;;;;;OAOG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;;;;;;;OAQG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;;;;;;;;;;OAWG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B;;;;;;;;;;;OAWG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,YAAY,CAAC,EAC3B,EAAE,EACF,KAAK,EACL,GAAG,EACH,eAAe,EACf,iBAAiB,EACjB,YAAmB,EACnB,UAAiB,EACjB,QAAQ,EACR,MAAM,EACN,SAAS,GACV,EAAE,iBAAiB,sCAoNnB"}