@umriss-ui/core 0.25.0 → 0.26.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 +38 -0
- package/README.md +6 -1
- package/dist/core.css +1 -1
- package/dist/core.js +2844 -2740
- package/dist/de.d.ts +2 -2
- package/dist/index.d.ts +46 -2
- package/docs/llms-full.md +343 -70
- 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,46 @@ 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
|
+
/** Disables the whole control. `SegmentedOption` disables single
|
|
1778
|
+
possibilities. */
|
|
1779
|
+
disabled?: boolean;
|
|
1780
|
+
/** Name of the radio group within the form.
|
|
1781
|
+
@default a generated one */
|
|
1782
|
+
name?: string;
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
/** One possibility of a `SegmentedControl`: its value and its short label. */
|
|
1786
|
+
export declare interface SegmentedOption<T extends string> {
|
|
1787
|
+
/** What comes back when this possibility is chosen. */
|
|
1788
|
+
value: T;
|
|
1789
|
+
/** The segment's word - a short one; a long label ends in an ellipsis. */
|
|
1790
|
+
label: ReactNode;
|
|
1791
|
+
/** Takes the possibility out of the choice but leaves it visible. */
|
|
1792
|
+
disabled?: boolean;
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1751
1795
|
/**
|
|
1752
1796
|
* The select field. The `<select>` holds the value, the form and the keys;
|
|
1753
1797
|
* under a mouse, a pen and the keyboard it opens the library's own list - the
|
|
@@ -2907,7 +2951,7 @@ export declare interface Wording {
|
|
|
2907
2951
|
unpinHint: string;
|
|
2908
2952
|
/** The export button. */
|
|
2909
2953
|
exportLabel: string;
|
|
2910
|
-
/** The export button of a table in
|
|
2954
|
+
/** The export button of a table in server mode, which holds and writes one page. */
|
|
2911
2955
|
exportPageLabel: string;
|
|
2912
2956
|
/** The export's file name, where the application names none. */
|
|
2913
2957
|
exportFileName: string;
|
|
@@ -2922,7 +2966,7 @@ export declare interface Wording {
|
|
|
2922
2966
|
selectRow: (row: string) => string;
|
|
2923
2967
|
/** The selection of every row in the filtered set. */
|
|
2924
2968
|
selectAllRows: string;
|
|
2925
|
-
/** The same checkbox in
|
|
2969
|
+
/** The same checkbox in server mode, where the table holds one page of a server's. */
|
|
2926
2970
|
selectAllOnPage: string;
|
|
2927
2971
|
/** The expand button, named after the row header. */
|
|
2928
2972
|
expandRowNamed: (row: string) => string;
|