@umriss-ui/core 0.25.0 → 0.27.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 +74 -0
- package/README.md +7 -1
- package/dist/core.css +1 -1
- package/dist/core.js +2867 -2755
- package/dist/de.d.ts +2 -2
- package/dist/index.d.ts +60 -2
- package/docs/llms-full.md +462 -75
- package/package.json +1 -1
package/dist/de.d.ts
CHANGED
|
@@ -246,7 +246,7 @@ declare interface Wording {
|
|
|
246
246
|
unpinHint: string;
|
|
247
247
|
/** The export button. */
|
|
248
248
|
exportLabel: string;
|
|
249
|
-
/** The export button of a table in
|
|
249
|
+
/** The export button of a table in server mode, which holds and writes one page. */
|
|
250
250
|
exportPageLabel: string;
|
|
251
251
|
/** The export's file name, where the application names none. */
|
|
252
252
|
exportFileName: string;
|
|
@@ -261,7 +261,7 @@ declare interface Wording {
|
|
|
261
261
|
selectRow: (row: string) => string;
|
|
262
262
|
/** The selection of every row in the filtered set. */
|
|
263
263
|
selectAllRows: string;
|
|
264
|
-
/** The same checkbox in
|
|
264
|
+
/** The same checkbox in server mode, where the table holds one page of a server's. */
|
|
265
265
|
selectAllOnPage: string;
|
|
266
266
|
/** The expand button, named after the row header. */
|
|
267
267
|
expandRowNamed: (row: string) => string;
|
package/dist/index.d.ts
CHANGED
|
@@ -999,6 +999,10 @@ export declare function FormFieldBoundary({ children }: {
|
|
|
999
999
|
|
|
1000
1000
|
declare interface FormFieldContextValue {
|
|
1001
1001
|
id: string;
|
|
1002
|
+
/** The label's own id. `label htmlFor` names only what HTML can label -
|
|
1003
|
+
an input, a select, a button; a group (`role="radiogroup"`) is named
|
|
1004
|
+
through `aria-labelledby` with this. */
|
|
1005
|
+
labelId: string;
|
|
1002
1006
|
describedBy?: string;
|
|
1003
1007
|
invalid: boolean;
|
|
1004
1008
|
/** A required field. Every field whose role carries it turns this into
|
|
@@ -1748,6 +1752,60 @@ export declare interface RowWindow {
|
|
|
1748
1752
|
*/
|
|
1749
1753
|
export declare function scrollForRow(index: number, { rowHeight, scrollTop, viewportHeight, headerHeight }: RowPlacement): number | null;
|
|
1750
1754
|
|
|
1755
|
+
/** One choice out of a few short possibilities, drawn as one field with a
|
|
1756
|
+
segment for each - a radio group in what it says and how the keys move.
|
|
1757
|
+
Controlled through `value` and `onChange`, or uncontrolled from
|
|
1758
|
+
`defaultValue`. */
|
|
1759
|
+
export declare const SegmentedControl: <T extends string>(props: SegmentedControlProps<T> & {
|
|
1760
|
+
ref?: React.ForwardedRef<HTMLDivElement>;
|
|
1761
|
+
}) => React.ReactElement;
|
|
1762
|
+
|
|
1763
|
+
/** The props of `SegmentedControl`. */
|
|
1764
|
+
export declare interface SegmentedControlProps<T extends string> extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
|
|
1765
|
+
/** The possibilities, two to four, in the order in which they stand. */
|
|
1766
|
+
options: readonly SegmentedOption<T>[];
|
|
1767
|
+
/** The chosen possibility; `null` means: none yet. Together with
|
|
1768
|
+
`onChange` the control is controlled. */
|
|
1769
|
+
value?: T | null;
|
|
1770
|
+
/** Initial value of an uncontrolled control. Not together with `value`. */
|
|
1771
|
+
defaultValue?: T | null;
|
|
1772
|
+
/** Runs on every choice – on the one made with the arrow keys as well. */
|
|
1773
|
+
onChange?: (value: T) => void;
|
|
1774
|
+
/** `sm` for a toolbar and dense forms, `md` otherwise.
|
|
1775
|
+
@default the size of a `ControlSizeProvider` around it, else `"md"` */
|
|
1776
|
+
size?: "sm" | "md";
|
|
1777
|
+
/** How it is drawn. `inset`: a sunken track without an edge, the choice a
|
|
1778
|
+
surface lifted out of it. `field`: a field's edge, the choice filled
|
|
1779
|
+
with ink - for a row whose fields it should match box for box.
|
|
1780
|
+
@default "inset" */
|
|
1781
|
+
variant?: "field" | "inset";
|
|
1782
|
+
/** Takes the whole width its place gives it, as a field in a column does,
|
|
1783
|
+
and shares it equally between the segments. Without it the control is
|
|
1784
|
+
as wide as its words. */
|
|
1785
|
+
fill?: boolean;
|
|
1786
|
+
/** Disables the whole control. `SegmentedOption` disables single
|
|
1787
|
+
possibilities. */
|
|
1788
|
+
disabled?: boolean;
|
|
1789
|
+
/** Name of the radio group within the form.
|
|
1790
|
+
@default a generated one */
|
|
1791
|
+
name?: string;
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
/** One possibility of a `SegmentedControl`: its value and its short label. */
|
|
1795
|
+
export declare interface SegmentedOption<T extends string> {
|
|
1796
|
+
/** What comes back when this possibility is chosen. */
|
|
1797
|
+
value: T;
|
|
1798
|
+
/** The segment's word - a short one; a long label ends in an ellipsis. */
|
|
1799
|
+
label: ReactNode;
|
|
1800
|
+
/** An icon before the word: an SVG, a glyph of the set or an icon font's
|
|
1801
|
+
element. The control sets its size - `--u-icon-size`, `--u-icon-size-sm`
|
|
1802
|
+
at `sm` - and hides it from assistive technology: the word names the
|
|
1803
|
+
possibility. */
|
|
1804
|
+
icon?: ReactNode;
|
|
1805
|
+
/** Takes the possibility out of the choice but leaves it visible. */
|
|
1806
|
+
disabled?: boolean;
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1751
1809
|
/**
|
|
1752
1810
|
* The select field. The `<select>` holds the value, the form and the keys;
|
|
1753
1811
|
* under a mouse, a pen and the keyboard it opens the library's own list - the
|
|
@@ -2907,7 +2965,7 @@ export declare interface Wording {
|
|
|
2907
2965
|
unpinHint: string;
|
|
2908
2966
|
/** The export button. */
|
|
2909
2967
|
exportLabel: string;
|
|
2910
|
-
/** The export button of a table in
|
|
2968
|
+
/** The export button of a table in server mode, which holds and writes one page. */
|
|
2911
2969
|
exportPageLabel: string;
|
|
2912
2970
|
/** The export's file name, where the application names none. */
|
|
2913
2971
|
exportFileName: string;
|
|
@@ -2922,7 +2980,7 @@ export declare interface Wording {
|
|
|
2922
2980
|
selectRow: (row: string) => string;
|
|
2923
2981
|
/** The selection of every row in the filtered set. */
|
|
2924
2982
|
selectAllRows: string;
|
|
2925
|
-
/** The same checkbox in
|
|
2983
|
+
/** The same checkbox in server mode, where the table holds one page of a server's. */
|
|
2926
2984
|
selectAllOnPage: string;
|
|
2927
2985
|
/** The expand button, named after the row header. */
|
|
2928
2986
|
expandRowNamed: (row: string) => string;
|