@umriss-ui/core 0.27.0 → 0.29.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/CHANGELOG.md +25 -0
- package/README.md +1 -1
- package/dist/core.js +965 -964
- package/dist/de.d.ts +3 -0
- package/dist/index.d.ts +15 -5
- package/dist/wording/de.js +2 -1
- package/docs/llms-full.md +65 -10
- package/package.json +1 -1
package/dist/de.d.ts
CHANGED
|
@@ -565,6 +565,9 @@ declare interface Wording {
|
|
|
565
565
|
/** On a folded line whose operator has more operands than are written out
|
|
566
566
|
beneath it (ADR-0028): how many there are. */
|
|
567
567
|
calculationOperandCount: (count: number) => string;
|
|
568
|
+
/** On the line of a sum with no operands, where its formula would stand
|
|
569
|
+
(ADR-0049). */
|
|
570
|
+
calculationNoOperands: string;
|
|
568
571
|
}
|
|
569
572
|
|
|
570
573
|
export { }
|
package/dist/index.d.ts
CHANGED
|
@@ -1085,19 +1085,26 @@ export declare interface GlyphProps extends Omit<SVGProps<SVGSVGElement>, "viewB
|
|
|
1085
1085
|
size?: number;
|
|
1086
1086
|
}
|
|
1087
1087
|
|
|
1088
|
-
/** Children in a grid: a fixed number of columns,
|
|
1089
|
-
`minItemWidth`. */
|
|
1088
|
+
/** Children in a grid: a fixed number of columns, a list of column widths,
|
|
1089
|
+
or as many columns as fit at `minItemWidth`. */
|
|
1090
1090
|
export declare const Grid: ForwardRefExoticComponent<GridProps & RefAttributes<HTMLDivElement>>;
|
|
1091
1091
|
|
|
1092
|
+
/** The width of one column in `Grid`'s list: a number in pixels, or
|
|
1093
|
+
`"fill"` for a share of what the other columns leave. */
|
|
1094
|
+
export declare type GridColumnWidth = number | "fill";
|
|
1095
|
+
|
|
1092
1096
|
/** The grid laid over an area. Two by two lines; the frame is missing on
|
|
1093
1097
|
purpose, otherwise it would be a window. */
|
|
1094
1098
|
export declare const GridGlyph: ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & RefAttributes<SVGSVGElement>>;
|
|
1095
1099
|
|
|
1096
1100
|
/** The props of `Grid`. */
|
|
1097
1101
|
export declare interface GridProps extends HTMLAttributes<HTMLDivElement> {
|
|
1098
|
-
/**
|
|
1099
|
-
|
|
1100
|
-
|
|
1102
|
+
/** How many columns, all of one width - or a list with one width per
|
|
1103
|
+
column: a number in pixels, or `"fill"` for a share of what is left.
|
|
1104
|
+
Overridden by minItemWidth. */
|
|
1105
|
+
columns?: number | readonly GridColumnWidth[];
|
|
1106
|
+
/** Responsive: as many columns as fit at this minimum width; wins over
|
|
1107
|
+
`columns`, a list included. */
|
|
1101
1108
|
minItemWidth?: string;
|
|
1102
1109
|
/** Spacing as a step of the 4 px spacing steps (1–8); applies in both
|
|
1103
1110
|
directions. */
|
|
@@ -3284,6 +3291,9 @@ export declare interface Wording {
|
|
|
3284
3291
|
/** On a folded line whose operator has more operands than are written out
|
|
3285
3292
|
beneath it (ADR-0028): how many there are. */
|
|
3286
3293
|
calculationOperandCount: (count: number) => string;
|
|
3294
|
+
/** On the line of a sum with no operands, where its formula would stand
|
|
3295
|
+
(ADR-0049). */
|
|
3296
|
+
calculationNoOperands: string;
|
|
3287
3297
|
}
|
|
3288
3298
|
|
|
3289
3299
|
export { }
|
package/dist/wording/de.js
CHANGED
|
@@ -300,7 +300,8 @@ const c = o("de-DE"), d = {
|
|
|
300
300
|
calculationSource: (e) => `Quelle: ${e}`,
|
|
301
301
|
calculationShowDerivation: (e) => `Herleitung von ${e} zeigen`,
|
|
302
302
|
calculationHideDerivation: (e) => `Herleitung von ${e} verbergen`,
|
|
303
|
-
calculationOperandCount: (e) => `${e} Operanden
|
|
303
|
+
calculationOperandCount: (e) => `${e} Operanden`,
|
|
304
|
+
calculationNoOperands: "keine Einträge"
|
|
304
305
|
};
|
|
305
306
|
export {
|
|
306
307
|
c as GERMAN_FORMATS,
|
package/docs/llms-full.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @umriss-ui/core 0.
|
|
1
|
+
# @umriss-ui/core 0.29.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
|
|
|
@@ -3034,8 +3034,8 @@ From `GridProps` — the full table stands on [Stack and Grid](#/stack-and-grid/
|
|
|
3034
3034
|
|
|
3035
3035
|
| Prop | Type | Default | Description |
|
|
3036
3036
|
|---|---|---|---|
|
|
3037
|
-
| [`columns`](#/stack-and-grid/GridProps-columns) | `number` | `2` |
|
|
3038
|
-
| [`minItemWidth`](#/stack-and-grid/GridProps-minItemWidth) | `string` | — | Responsive: as many columns as fit at this minimum width. |
|
|
3037
|
+
| [`columns`](#/stack-and-grid/GridProps-columns) | `number \| readonly `[`GridColumnWidth`](#/stack-and-grid/type-GridColumnWidth)`[]` | `2` | How many columns, all of one width - or a list with one width per column: a number in pixels, or `"fill"` for a share of what is left. Overridden by minItemWidth. |
|
|
3038
|
+
| [`minItemWidth`](#/stack-and-grid/GridProps-minItemWidth) | `string` | — | Responsive: as many columns as fit at this minimum width; wins over `columns`, a list included. |
|
|
3039
3039
|
| [`gap`](#/stack-and-grid/GridProps-gap) | [`SpaceStep`](#/stack-and-grid/type-SpaceStep)<br>`1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8` | `4` | Spacing as a step of the 4 px spacing steps (1–8); applies in both directions. |
|
|
3040
3040
|
|
|
3041
3041
|
From `CardHeaderProps` — the full table stands on [Card](#/card/type-CardHeaderProps).
|
|
@@ -4069,6 +4069,7 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
4069
4069
|
| `calculationShowDerivation(label)` | `` `Show how ${label} is derived` `` | `` `Herleitung von ${label} zeigen` `` | The disclosure button of a derivation, named after the quantity. |
|
|
4070
4070
|
| `calculationHideDerivation(label)` | `` `Hide how ${label} is derived` `` | `` `Herleitung von ${label} verbergen` `` | — |
|
|
4071
4071
|
| `calculationOperandCount(count)` | `` `${count} operands` `` | `` `${count} Operanden` `` | On a folded line whose operator has more operands than are written out beneath it ([ADR-0028](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0028-a-calculation-is-a-tree-or-a-chain.md)): how many there are. |
|
|
4072
|
+
| `calculationNoOperands` | no entries | keine Einträge | On the line of a sum with no operands, where its formula would stand ([ADR-0049](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0049-a-sum-takes-rows-from-data.md)). |
|
|
4072
4073
|
|
|
4073
4074
|
#### Charts wording
|
|
4074
4075
|
|
|
@@ -4458,6 +4459,7 @@ Everything the library puts out as text.
|
|
|
4458
4459
|
| `calculationShowDerivation` *required* | `(label: string) => string` | — | The disclosure button of a derivation, named after the quantity. |
|
|
4459
4460
|
| `calculationHideDerivation` *required* | `(label: string) => string` | — | |
|
|
4460
4461
|
| `calculationOperandCount` *required* | `(count: number) => string` | — | On a folded line whose operator has more operands than are written out beneath it ([ADR-0028](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0028-a-calculation-is-a-tree-or-a-chain.md)): how many there are. |
|
|
4462
|
+
| `calculationNoOperands` *required* | `string` | — | On the line of a sum with no operands, where its formula would stand ([ADR-0049](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0049-a-sum-takes-rows-from-data.md)). |
|
|
4461
4463
|
|
|
4462
4464
|
#### Known limits
|
|
4463
4465
|
|
|
@@ -4671,6 +4673,40 @@ export default function ColumnsByWidth() {
|
|
|
4671
4673
|
}
|
|
4672
4674
|
```
|
|
4673
4675
|
|
|
4676
|
+
##### Columns of their own widths
|
|
4677
|
+
|
|
4678
|
+
```tsx
|
|
4679
|
+
import { Card, CardBody, Grid, Text } from "@umriss-ui/core";
|
|
4680
|
+
|
|
4681
|
+
/* One cost centre's key figures, written out here so the example runs on its own. */
|
|
4682
|
+
const FIGURES = [
|
|
4683
|
+
{ label: "Cost centre", value: "CC-1200 · Marketing" },
|
|
4684
|
+
{ label: "Owner", value: "Rafael Ortiz" },
|
|
4685
|
+
{ label: "Monthly budget", value: "68,000\u00a0€" },
|
|
4686
|
+
{ label: "Spent, March", value: "77,500\u00a0€, 9,500\u00a0€ over budget" },
|
|
4687
|
+
{ label: "Approved by", value: "Helen Marsh, Sales" },
|
|
4688
|
+
];
|
|
4689
|
+
|
|
4690
|
+
export default function ColumnsOfTheirOwnWidths() {
|
|
4691
|
+
return (
|
|
4692
|
+
<Card style={{ maxWidth: 480 }}>
|
|
4693
|
+
<CardBody>
|
|
4694
|
+
<Grid columns={[140, "fill"]} gap={3}>
|
|
4695
|
+
{FIGURES.flatMap((figure) => [
|
|
4696
|
+
<Text key={`${figure.label} label`} size="sm" tone="muted">
|
|
4697
|
+
{figure.label}
|
|
4698
|
+
</Text>,
|
|
4699
|
+
<Text key={`${figure.label} value`} size="sm">
|
|
4700
|
+
{figure.value}
|
|
4701
|
+
</Text>,
|
|
4702
|
+
])}
|
|
4703
|
+
</Grid>
|
|
4704
|
+
</CardBody>
|
|
4705
|
+
</Card>
|
|
4706
|
+
);
|
|
4707
|
+
}
|
|
4708
|
+
```
|
|
4709
|
+
|
|
4674
4710
|
##### A tour summary
|
|
4675
4711
|
|
|
4676
4712
|
Stacks and grids nest: a column holds a header row, a grid of key figures and a row of actions.
|
|
@@ -4746,9 +4782,9 @@ Also takes every attribute of `<div>`.
|
|
|
4746
4782
|
|
|
4747
4783
|
| Prop | Type | Default | Description |
|
|
4748
4784
|
|---|---|---|---|
|
|
4749
|
-
| `columns` | `number` | `2` |
|
|
4750
|
-
| `minItemWidth` | `string` | — | Responsive: as many columns as fit at this minimum width.<br>Shown in: [Columns by width](#/stack-and-grid/columns-by-width), [A tour summary](#/stack-and-grid/a-tour-summary), [A dark region (Theming)](#/theming/a-dark-region) and 51 more |
|
|
4751
|
-
| `gap` | [`SpaceStep`](#type-SpaceStep)<br>`1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8` | `4` | Spacing as a step of the 4 px spacing steps (1–8); applies in both directions.<br>Shown in: [Fixed columns](#/stack-and-grid/fixed-columns), [Columns by width](#/stack-and-grid/columns-by-width), [
|
|
4785
|
+
| `columns` | `number \| readonly `[`GridColumnWidth`](#type-GridColumnWidth)`[]` | `2` | How many columns, all of one width - or a list with one width per column: a number in pixels, or `"fill"` for a share of what is left. Overridden by minItemWidth.<br>Shown in: [Fixed columns](#/stack-and-grid/fixed-columns), [Columns of their own widths](#/stack-and-grid/columns-of-their-own-widths), [A token for one region (Theming)](#/theming/a-token-for-one-region) and 3 more |
|
|
4786
|
+
| `minItemWidth` | `string` | — | Responsive: as many columns as fit at this minimum width; wins over `columns`, a list included.<br>Shown in: [Columns by width](#/stack-and-grid/columns-by-width), [A tour summary](#/stack-and-grid/a-tour-summary), [A dark region (Theming)](#/theming/a-dark-region) and 51 more |
|
|
4787
|
+
| `gap` | [`SpaceStep`](#type-SpaceStep)<br>`1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8` | `4` | Spacing as a step of the 4 px spacing steps (1–8); applies in both directions.<br>Shown in: [Fixed columns](#/stack-and-grid/fixed-columns), [Columns by width](#/stack-and-grid/columns-by-width), [Columns of their own widths](#/stack-and-grid/columns-of-their-own-widths) and 57 more |
|
|
4752
4788
|
|
|
4753
4789
|
Also takes every attribute of `<div>`.
|
|
4754
4790
|
|
|
@@ -4763,6 +4799,15 @@ A step of the spacing scale, from 1 (4 px) to 8 (40 px) - the tokens
|
|
|
4763
4799
|
type SpaceStep = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
4764
4800
|
```
|
|
4765
4801
|
|
|
4802
|
+
###### `GridColumnWidth`
|
|
4803
|
+
|
|
4804
|
+
The width of one column in `Grid`'s list: a number in pixels, or
|
|
4805
|
+
`"fill"` for a share of what the other columns leave.
|
|
4806
|
+
|
|
4807
|
+
```ts
|
|
4808
|
+
type GridColumnWidth = number | "fill";
|
|
4809
|
+
```
|
|
4810
|
+
|
|
4766
4811
|
#### Known limits
|
|
4767
4812
|
|
|
4768
4813
|
- No breakpoints and no responsive props: a grid follows the width through `minItemWidth`, anything else is your stylesheet's.
|
|
@@ -6350,9 +6395,9 @@ export default function IncidentSummary() {
|
|
|
6350
6395
|
| Prop | Type | Default | Description |
|
|
6351
6396
|
|---|---|---|---|
|
|
6352
6397
|
| `as` | `ElementType` | `"p"` | Element to render as.<br>Shown in: [Tones and weights](#/typography/tones-and-weights), [Set an incident summary](#/typography/incident-summary), [Use the language in your own components (Language)](#/language/own-components) and 16 more |
|
|
6353
|
-
| `size` | [`TextSize`](#type-TextSize)<br>`"xs" \| "sm" \| "md" \| "lg" \| "xl" \| "2xl"` | `"md"` | Type size from the token set. It is independent of the element: a `p` may be small without becoming a different element.<br>Shown in: [Configurator](#/typography/configurator-typography), [Sizes](#/typography/sizes), [Tones and weights](#/typography/tones-and-weights) and
|
|
6398
|
+
| `size` | [`TextSize`](#type-TextSize)<br>`"xs" \| "sm" \| "md" \| "lg" \| "xl" \| "2xl"` | `"md"` | Type size from the token set. It is independent of the element: a `p` may be small without becoming a different element.<br>Shown in: [Configurator](#/typography/configurator-typography), [Sizes](#/typography/sizes), [Tones and weights](#/typography/tones-and-weights) and 130 more |
|
|
6354
6399
|
| `weight` | [`TextWeight`](#type-TextWeight)<br>`"regular" \| "medium" \| "semibold"` | `"regular"` | Font weight from the token set.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tones and weights](#/typography/tones-and-weights), [Tracking and leading](#/typography/tracking-and-leading) and 16 more |
|
|
6355
|
-
| `tone` | [`TextTone`](#type-TextTone)<br>`"default" \| "secondary" \| "muted"` | `"default"` | How loud the text is. `secondary` and `muted` step back without falling below the contrast threshold.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tones and weights](#/typography/tones-and-weights), [Tracking and leading](#/typography/tracking-and-leading) and
|
|
6400
|
+
| `tone` | [`TextTone`](#type-TextTone)<br>`"default" \| "secondary" \| "muted"` | `"default"` | How loud the text is. `secondary` and `muted` step back without falling below the contrast threshold.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tones and weights](#/typography/tones-and-weights), [Tracking and leading](#/typography/tracking-and-leading) and 95 more |
|
|
6356
6401
|
| `mono` | `boolean` | `false` | Geist Mono with tabular figures – for numbers and identifiers.<br>Shown in: [Configurator](#/typography/configurator-typography), [Numbers and identifiers](#/typography/numbers), [Handle long values](#/typography/long-values) and 30 more |
|
|
6357
6402
|
| `tracking` | [`TextTracking`](#type-TextTracking)<br>`"normal" \| "tight" \| "display" \| "caps"` | `"normal"` | Letter spacing from the token set. `caps` belongs with letterspaced capitals.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tracking and leading](#/typography/tracking-and-leading), [Set an incident summary](#/typography/incident-summary) |
|
|
6358
6403
|
| `leading` | [`TextLeading`](#type-TextLeading)<br>`"normal" \| "tight"` | `"normal"` | Line spacing. `tight` for multi-line headings and key figures, where the normal spacing lets the lines fall apart.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tracking and leading](#/typography/tracking-and-leading) |
|
|
@@ -18328,8 +18373,8 @@ function FormFieldBoundary({ children }: {
|
|
|
18328
18373
|
|
|
18329
18374
|
##### `Grid`
|
|
18330
18375
|
|
|
18331
|
-
[Stack and Grid](#/stack-and-grid) – Children in a grid: a fixed number of columns,
|
|
18332
|
-
`minItemWidth`.
|
|
18376
|
+
[Stack and Grid](#/stack-and-grid) – Children in a grid: a fixed number of columns, a list of column widths,
|
|
18377
|
+
or as many columns as fit at `minItemWidth`.
|
|
18333
18378
|
|
|
18334
18379
|
Used on [Scenarios](#/), [Theming](#/theming), [Sizes](#/sizes), [Language](#/language), [Stack and Grid](#/stack-and-grid), [Card](#/card), [Splitter](#/splitter), [Dock](#/dock), [Typography](#/typography), [Input](#/input), [FormField](#/formfield), [Textarea](#/textarea), [NumberInput](#/numberinput), [Slider](#/slider), [Checkbox](#/checkbox), [Switch](#/switch), [RadioGroup](#/radiogroup), [FileInput](#/fileinput), [Select](#/select), [Combobox](#/combobox), [MultiSelect](#/multiselect), [DatePicker](#/datepicker), [DateTimePicker](#/datetimepicker), [DateRangePicker](#/daterangepicker), [DateTimeRangePicker](#/datetimerangepicker), [Modal](#/modal), [Drawer](#/drawer), [CommandPalette](#/commandpalette), [Breadcrumb](#/breadcrumb), [Tabs](#/tabs), [TreeView](#/treeview), [Stat](#/stat) and [Meter](#/meter).
|
|
18335
18380
|
|
|
@@ -19596,6 +19641,15 @@ The props of a glyph: an SVG's attributes and its edge length.
|
|
|
19596
19641
|
|
|
19597
19642
|
Also takes every attribute of `<svg>` – without `children`, `viewBox`.
|
|
19598
19643
|
|
|
19644
|
+
##### `GridColumnWidth`
|
|
19645
|
+
|
|
19646
|
+
The width of one column in `Grid`'s list: a number in pixels, or
|
|
19647
|
+
`"fill"` for a share of what the other columns leave.
|
|
19648
|
+
|
|
19649
|
+
```ts
|
|
19650
|
+
type GridColumnWidth = number | "fill";
|
|
19651
|
+
```
|
|
19652
|
+
|
|
19599
19653
|
##### `GridProps`
|
|
19600
19654
|
|
|
19601
19655
|
Its table stands on [Stack and Grid](#/stack-and-grid/type-GridProps).
|
|
@@ -20489,6 +20543,7 @@ Everything the library puts out as text.
|
|
|
20489
20543
|
| `calculationShowDerivation` *required* | `(label: string) => string` | — | The disclosure button of a derivation, named after the quantity. |
|
|
20490
20544
|
| `calculationHideDerivation` *required* | `(label: string) => string` | — | |
|
|
20491
20545
|
| `calculationOperandCount` *required* | `(count: number) => string` | — | On a folded line whose operator has more operands than are written out beneath it ([ADR-0028](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0028-a-calculation-is-a-tree-or-a-chain.md)): how many there are. |
|
|
20546
|
+
| `calculationNoOperands` *required* | `string` | — | On the line of a sum with no operands, where its formula would stand ([ADR-0049](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0049-a-sum-takes-rows-from-data.md)). |
|
|
20492
20547
|
|
|
20493
20548
|
Used on [Language](#/language).
|
|
20494
20549
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umriss-ui/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.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",
|