@umriss-ui/core 0.21.1 → 0.22.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.
package/docs/llms-full.md CHANGED
@@ -1,4 +1,4 @@
1
- # @umriss-ui/core 0.21.1
1
+ # @umriss-ui/core 0.22.0
2
2
 
3
3
  > React component library for data-dense dashboards and tools - forms, date pickers, overlays, a tree view and a command palette. Precise, quiet, professional.
4
4
 
@@ -10181,6 +10181,50 @@ export default function AnAbbreviation() {
10181
10181
  }
10182
10182
  ```
10183
10183
 
10184
+ ##### Show how a figure came about
10185
+
10186
+ The content may be built from `Text`: inside a tooltip every tone turns round and reads on the tooltip's ground.
10187
+
10188
+ ```tsx
10189
+ import { Text, Tooltip } from "@umriss-ui/core";
10190
+
10191
+ /* Focusable text owes a visible focus: the library's ring, from its token. */
10192
+ const STYLE = `
10193
+ .figure {
10194
+ cursor: help;
10195
+ border-radius: var(--u-radius-xs);
10196
+ }
10197
+ .figure:focus-visible {
10198
+ outline: none;
10199
+ box-shadow: var(--u-focus-ring);
10200
+ }
10201
+ `;
10202
+
10203
+ export default function ACalculation() {
10204
+ return (
10205
+ <>
10206
+ <style>{STYLE}</style>
10207
+ <Tooltip
10208
+ content={
10209
+ <>
10210
+ <Text size="xs" mono>
10211
+ 3 × 12.50 € = 37.50 €
10212
+ </Text>
10213
+ <Text size="xs" tone="muted">
10214
+ Quantity × unit price
10215
+ </Text>
10216
+ </>
10217
+ }
10218
+ >
10219
+ <Text as="span" size="xl" mono className="figure" tabIndex={0}>
10220
+ 37.50 €
10221
+ </Text>
10222
+ </Tooltip>
10223
+ </>
10224
+ );
10225
+ }
10226
+ ```
10227
+
10184
10228
  #### When to use something else
10185
10229
 
10186
10230
  - The content has a link, a button or more than a sentence → Popover
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umriss-ui/core",
3
- "version": "0.21.1",
3
+ "version": "0.22.0",
4
4
  "description": "React component library for data-dense dashboards and tools - forms, date pickers, overlays, a tree view and a command palette. Precise, quiet, professional.",
5
5
  "license": "MIT",
6
6
  "author": "Roman Händler",