react-os-shell 4.63.0 → 4.74.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/README.md +3 -0
- package/dist/{Browser-SPTNLEMR.js → Browser-ZF5X2FON.js} +7 -7
- package/dist/{Browser-SPTNLEMR.js.map → Browser-ZF5X2FON.js.map} +1 -1
- package/dist/{Calculator-XMOPPCK3.js → Calculator-SA62H5S3.js} +6 -6
- package/dist/{Calculator-XMOPPCK3.js.map → Calculator-SA62H5S3.js.map} +1 -1
- package/dist/ConfirmDialog-SREDNTIB.js +3 -0
- package/dist/{ConfirmDialog-EEH4CWSW.js.map → ConfirmDialog-SREDNTIB.js.map} +1 -1
- package/dist/{CurrencyConverter-24HNX6C6.js → CurrencyConverter-BMCRLZLY.js} +6 -6
- package/dist/{CurrencyConverter-24HNX6C6.js.map → CurrencyConverter-BMCRLZLY.js.map} +1 -1
- package/dist/{Documents-GMRVVCH7.js → Documents-2TGJPV2Y.js} +8 -8
- package/dist/{Documents-GMRVVCH7.js.map → Documents-2TGJPV2Y.js.map} +1 -1
- package/dist/{Files-ITH4SVML.js → Files-Z3ONKUA6.js} +9 -9
- package/dist/{Files-ITH4SVML.js.map → Files-Z3ONKUA6.js.map} +1 -1
- package/dist/{Notepad-GE5P55TL.js → Notepad-JWZS5YKJ.js} +8 -8
- package/dist/{Notepad-GE5P55TL.js.map → Notepad-JWZS5YKJ.js.map} +1 -1
- package/dist/{PomodoroTimer-ER5STVKM.js → PomodoroTimer-DRM5W25H.js} +8 -8
- package/dist/{PomodoroTimer-ER5STVKM.js.map → PomodoroTimer-DRM5W25H.js.map} +1 -1
- package/dist/{Preview-UXVDXCDJ.js → Preview-7O7W7OMQ.js} +9 -9
- package/dist/{Preview-UXVDXCDJ.js.map → Preview-7O7W7OMQ.js.map} +1 -1
- package/dist/{Spreadsheet-B32JQVX4.js → Spreadsheet-CLTZSW3T.js} +7 -7
- package/dist/{Spreadsheet-B32JQVX4.js.map → Spreadsheet-CLTZSW3T.js.map} +1 -1
- package/dist/{Stock-FSFPFDQT.js → Stock-CO5N3N2M.js} +6 -6
- package/dist/{Stock-FSFPFDQT.js.map → Stock-CO5N3N2M.js.map} +1 -1
- package/dist/{Weather-HXOERJJV.js → Weather-IEGJX7RI.js} +6 -6
- package/dist/{Weather-HXOERJJV.js.map → Weather-IEGJX7RI.js.map} +1 -1
- package/dist/{WorldClock-2FUGLIUZ.js → WorldClock-FLW3QZYG.js} +6 -6
- package/dist/{WorldClock-2FUGLIUZ.js.map → WorldClock-FLW3QZYG.js.map} +1 -1
- package/dist/apps/index.js +17 -17
- package/dist/{chunk-TK6HI2U4.js → chunk-2VM2FRZJ.js} +42 -11
- package/dist/chunk-2VM2FRZJ.js.map +1 -0
- package/dist/{chunk-ECE3B3FZ.js → chunk-AXWC3332.js} +3 -3
- package/dist/{chunk-ECE3B3FZ.js.map → chunk-AXWC3332.js.map} +1 -1
- package/dist/{chunk-ZCDFNZQS.js → chunk-BLLINYDD.js} +97 -5
- package/dist/chunk-BLLINYDD.js.map +1 -0
- package/dist/{chunk-OXLLRKBC.js → chunk-CDR2Q64Q.js} +38 -22
- package/dist/chunk-CDR2Q64Q.js.map +1 -0
- package/dist/{chunk-TO6ZZHJK.js → chunk-EG3WEQBH.js} +4 -4
- package/dist/{chunk-TO6ZZHJK.js.map → chunk-EG3WEQBH.js.map} +1 -1
- package/dist/{chunk-JMESET3G.js → chunk-G7IHPEJE.js} +138 -39
- package/dist/chunk-G7IHPEJE.js.map +1 -0
- package/dist/chunk-NJDH5PHA.js +7 -0
- package/dist/{chunk-WCGHIJZR.js.map → chunk-NJDH5PHA.js.map} +1 -1
- package/dist/{chunk-LYQVLRWQ.js → chunk-RUAZJ54W.js} +3 -3
- package/dist/{chunk-LYQVLRWQ.js.map → chunk-RUAZJ54W.js.map} +1 -1
- package/dist/{chunk-CWA27IGB.js → chunk-S6K37RLY.js} +781 -344
- package/dist/chunk-S6K37RLY.js.map +1 -0
- package/dist/{chunk-IOCOH2QQ.js → chunk-TT2WNTDS.js} +4 -4
- package/dist/{chunk-IOCOH2QQ.js.map → chunk-TT2WNTDS.js.map} +1 -1
- package/dist/{chunk-3OCL3DB4.js → chunk-TT56U4GY.js} +3 -3
- package/dist/{chunk-3OCL3DB4.js.map → chunk-TT56U4GY.js.map} +1 -1
- package/dist/{index-Ka32s3Ij.d.ts → index-DVekeidu.d.ts} +258 -27
- package/dist/index.d.ts +2 -2
- package/dist/index.js +121 -35
- package/dist/index.js.map +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +5 -5
- package/package.json +2 -2
- package/dist/ConfirmDialog-EEH4CWSW.js +0 -3
- package/dist/chunk-CWA27IGB.js.map +0 -1
- package/dist/chunk-JMESET3G.js.map +0 -1
- package/dist/chunk-OXLLRKBC.js.map +0 -1
- package/dist/chunk-TK6HI2U4.js.map +0 -1
- package/dist/chunk-WCGHIJZR.js +0 -7
- package/dist/chunk-ZCDFNZQS.js.map +0 -1
|
@@ -210,6 +210,26 @@ interface FormFieldProps {
|
|
|
210
210
|
}
|
|
211
211
|
declare function FormField({ label, htmlFor, labelId, hint, error, required, className, children, }: FormFieldProps): react_jsx_runtime.JSX.Element;
|
|
212
212
|
|
|
213
|
+
interface FormError {
|
|
214
|
+
/** id of the offending control — the link focuses and scrolls to it. */
|
|
215
|
+
fieldId: string;
|
|
216
|
+
message: ReactNode;
|
|
217
|
+
}
|
|
218
|
+
interface FormErrorSummaryProps {
|
|
219
|
+
errors: FormError[];
|
|
220
|
+
/** Heading above the list. Defaults to the catalog's "There is a problem". */
|
|
221
|
+
title?: ReactNode;
|
|
222
|
+
/**
|
|
223
|
+
* Move focus to the box when errors appear. Default true — focus is what
|
|
224
|
+
* makes the failed submit perceivable without a screen reader announcing
|
|
225
|
+
* it, and what puts the keyboard where the fixing starts. Turn it off only
|
|
226
|
+
* when something else owns post-submit focus.
|
|
227
|
+
*/
|
|
228
|
+
autoFocus?: boolean;
|
|
229
|
+
className?: string;
|
|
230
|
+
}
|
|
231
|
+
declare function FormErrorSummary({ errors, title, autoFocus, className }: FormErrorSummaryProps): react_jsx_runtime.JSX.Element | null;
|
|
232
|
+
|
|
213
233
|
interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
214
234
|
/** Append a red asterisk. */
|
|
215
235
|
required?: boolean;
|
|
@@ -385,20 +405,58 @@ interface DateRangePickerProps {
|
|
|
385
405
|
declare function toISODate(d: Date): string;
|
|
386
406
|
declare function DateRangePicker({ from, to, onChange, formatDisplay, clearable, placeholder, }: DateRangePickerProps): react_jsx_runtime.JSX.Element;
|
|
387
407
|
|
|
388
|
-
|
|
389
|
-
|
|
408
|
+
type CalendarMode = 'single' | 'range';
|
|
409
|
+
interface CalendarProps {
|
|
410
|
+
/** `YYYY-MM-DD`, or null. In range mode this is the start. */
|
|
411
|
+
value?: string | null;
|
|
412
|
+
/** Range end. Ignored when `mode` is `single`. */
|
|
413
|
+
endValue?: string | null;
|
|
414
|
+
mode?: CalendarMode;
|
|
415
|
+
onSelect: (date: string) => void;
|
|
416
|
+
/** Earliest selectable day, `YYYY-MM-DD`. */
|
|
417
|
+
min?: string | null;
|
|
418
|
+
/** Latest selectable day, `YYYY-MM-DD`. */
|
|
419
|
+
max?: string | null;
|
|
420
|
+
/**
|
|
421
|
+
* Which month is shown, `YYYY-MM`. Supplying it makes the view CONTROLLED:
|
|
422
|
+
* paging reports through `onMonthChange` and the grid stays put until the
|
|
423
|
+
* caller moves it. Use {@link defaultMonth} to only set where it opens.
|
|
424
|
+
*/
|
|
425
|
+
month?: string;
|
|
426
|
+
/** Where an uncontrolled grid opens. Falls back to the selected date's month, then today's. */
|
|
427
|
+
defaultMonth?: string;
|
|
428
|
+
onMonthChange?: (month: string) => void;
|
|
429
|
+
/**
|
|
430
|
+
* 0 = Sunday, 1 = Monday. Defaults to Sunday, matching what the kit's pickers
|
|
431
|
+
* showed before this existed; a consumer outside the US will want 1.
|
|
432
|
+
*/
|
|
433
|
+
weekStartsOn?: 0 | 1;
|
|
434
|
+
/**
|
|
435
|
+
* Offer the month and year panels behind the heading, so a date years away is
|
|
436
|
+
* two clicks rather than a hundred presses of PageUp. On by default.
|
|
437
|
+
*/
|
|
438
|
+
quickJump?: boolean;
|
|
439
|
+
/** Names the grid. Defaults to the month and year on show. */
|
|
440
|
+
'aria-label'?: string;
|
|
441
|
+
className?: string;
|
|
442
|
+
}
|
|
443
|
+
/** `YYYY-MM-DD` from local calendar fields — never `toISOString()`. */
|
|
444
|
+
declare function toKey(d: Date): string;
|
|
445
|
+
/** The local Date for a `YYYY-MM-DD`, or null. Never `new Date(string)`. */
|
|
446
|
+
declare function fromKey(key: string | null | undefined): Date | null;
|
|
447
|
+
declare function Calendar({ value, endValue, mode, onSelect, min, max, month, defaultMonth, onMonthChange, weekStartsOn, quickJump, 'aria-label': ariaLabel, className, }: CalendarProps): react_jsx_runtime.JSX.Element;
|
|
448
|
+
|
|
449
|
+
interface TimePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'className' | 'size' | 'type' | 'value' | 'onChange' | 'min' | 'max'> {
|
|
450
|
+
/** An `HH:MM` / `HH:MM:SS` string, a Date (local wall-clock time is read), or nothing. */
|
|
390
451
|
value?: Date | string | null;
|
|
391
452
|
/**
|
|
392
|
-
* The chosen
|
|
393
|
-
*
|
|
394
|
-
* A native date input also reports `''` mid-entry, while a partly typed date
|
|
395
|
-
* is not yet a date. Both arrive here as `null`: "no date yet" and "cleared"
|
|
396
|
-
* are the same thing to a caller storing a value.
|
|
453
|
+
* The chosen time as `HH:MM` (`HH:MM:SS` when `step` asks for seconds), or
|
|
454
|
+
* `null` when the field is empty or mid-entry — same contract as DatePicker.
|
|
397
455
|
*/
|
|
398
|
-
onChange?: (value:
|
|
399
|
-
/** Earliest selectable
|
|
456
|
+
onChange?: (value: string | null) => void;
|
|
457
|
+
/** Earliest selectable time. */
|
|
400
458
|
min?: Date | string | null;
|
|
401
|
-
/** Latest selectable
|
|
459
|
+
/** Latest selectable time. */
|
|
402
460
|
max?: Date | string | null;
|
|
403
461
|
/** Error state — red border + ring, matching Input. */
|
|
404
462
|
invalid?: boolean;
|
|
@@ -406,27 +464,38 @@ interface DatePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'c
|
|
|
406
464
|
size?: InputSize;
|
|
407
465
|
className?: string;
|
|
408
466
|
}
|
|
409
|
-
declare const
|
|
467
|
+
declare const TimePicker: react.ForwardRefExoticComponent<TimePickerProps & react.RefAttributes<HTMLInputElement>>;
|
|
410
468
|
|
|
411
|
-
interface
|
|
412
|
-
/**
|
|
469
|
+
interface DatePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'className' | 'size' | 'type' | 'value' | 'onChange' | 'min' | 'max'> {
|
|
470
|
+
/** A Date, a `YYYY-MM-DD` string, or nothing. */
|
|
413
471
|
value?: Date | string | null;
|
|
414
472
|
/**
|
|
415
|
-
* The chosen
|
|
416
|
-
*
|
|
473
|
+
* The chosen date at local midnight, or `null` when the field is empty.
|
|
474
|
+
*
|
|
475
|
+
* A partly typed date is not yet a date, and a cleared field has none. Both
|
|
476
|
+
* arrive here as `null`: "no date yet" and "cleared" are the same thing to a
|
|
477
|
+
* caller storing a value.
|
|
417
478
|
*/
|
|
418
|
-
onChange?: (value:
|
|
419
|
-
/** Earliest selectable
|
|
479
|
+
onChange?: (value: Date | null) => void;
|
|
480
|
+
/** Earliest selectable date. */
|
|
420
481
|
min?: Date | string | null;
|
|
421
|
-
/** Latest selectable
|
|
482
|
+
/** Latest selectable date. */
|
|
422
483
|
max?: Date | string | null;
|
|
423
484
|
/** Error state — red border + ring, matching Input. */
|
|
424
485
|
invalid?: boolean;
|
|
425
486
|
/** `touch` gives a 56px field for a finger. Defaults to the desktop size. */
|
|
426
487
|
size?: InputSize;
|
|
488
|
+
/**
|
|
489
|
+
* Use the platform's own date input instead of the kit's calendar. Worth it
|
|
490
|
+
* on a mobile-first surface, where the OS date wheel beats any popover; the
|
|
491
|
+
* cost is that the field then looks like the browser rather than the kit.
|
|
492
|
+
*/
|
|
493
|
+
native?: boolean;
|
|
494
|
+
/** 0 = Sunday, 1 = Monday. Passed through to the calendar. */
|
|
495
|
+
weekStartsOn?: 0 | 1;
|
|
427
496
|
className?: string;
|
|
428
497
|
}
|
|
429
|
-
declare const
|
|
498
|
+
declare const DatePicker: react.ForwardRefExoticComponent<DatePickerProps & react.RefAttributes<HTMLInputElement>>;
|
|
430
499
|
|
|
431
500
|
interface DateTimePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'className' | 'size' | 'type' | 'value' | 'onChange' | 'min' | 'max'> {
|
|
432
501
|
/** A Date, a local `YYYY-MM-DDTHH:MM` string, or nothing. */
|
|
@@ -1755,18 +1824,43 @@ interface ToastOptions {
|
|
|
1755
1824
|
dedupe?: boolean;
|
|
1756
1825
|
}
|
|
1757
1826
|
declare const toast: {
|
|
1758
|
-
success: (message: string, opts?: ToastOptions) =>
|
|
1759
|
-
|
|
1827
|
+
success: (message: string, opts?: ToastOptions) => {
|
|
1828
|
+
dismiss: () => void;
|
|
1829
|
+
};
|
|
1830
|
+
error: (message: string, opts?: ToastOptions) => {
|
|
1831
|
+
dismiss: () => void;
|
|
1832
|
+
};
|
|
1760
1833
|
/**
|
|
1761
1834
|
* Something the user should read before continuing — a partial success, a
|
|
1762
1835
|
* setting that will not apply until they do something else. Distinct from
|
|
1763
1836
|
* `error`, which is "this did not happen".
|
|
1764
1837
|
*/
|
|
1765
|
-
warning: (message: string, opts?: ToastOptions) =>
|
|
1766
|
-
|
|
1838
|
+
warning: (message: string, opts?: ToastOptions) => {
|
|
1839
|
+
dismiss: () => void;
|
|
1840
|
+
};
|
|
1841
|
+
info: (message: string, opts?: ToastOptions) => {
|
|
1842
|
+
dismiss: () => void;
|
|
1843
|
+
};
|
|
1767
1844
|
notify: (message: string, opts?: {
|
|
1768
1845
|
duration?: number;
|
|
1769
1846
|
}) => void;
|
|
1847
|
+
/**
|
|
1848
|
+
* One toast for one async operation: a spinning "loading" toast while `p`
|
|
1849
|
+
* is pending, swapped for a success or error toast when it settles. The
|
|
1850
|
+
* promise is returned untouched, so `await toast.promise(save(), …)` still
|
|
1851
|
+
* throws to the caller — this narrates the operation, it does not handle it.
|
|
1852
|
+
*
|
|
1853
|
+
* `error` is REQUIRED, and there is deliberately no fallback that prints
|
|
1854
|
+
* the exception: a raw `e.message` in a toast is how internals leak to the
|
|
1855
|
+
* screen (the same reasoning that keeps ErrorBoundary's stack behind
|
|
1856
|
+
* `showDetails`). The success/error messages may be functions of the
|
|
1857
|
+
* resolved value / the rejection, for the "Saved 3 rows" case.
|
|
1858
|
+
*/
|
|
1859
|
+
promise: <T>(p: Promise<T>, msgs: {
|
|
1860
|
+
loading: string;
|
|
1861
|
+
success: string | ((value: T) => string);
|
|
1862
|
+
error: string | ((error: unknown) => string);
|
|
1863
|
+
}, opts?: ToastOptions) => Promise<T>;
|
|
1770
1864
|
/**
|
|
1771
1865
|
* Set defaults for every subsequent toast. Call once at app startup; later
|
|
1772
1866
|
* calls replace the whole object rather than merging, so a consumer sets its
|
|
@@ -1798,9 +1892,16 @@ interface DialogProps {
|
|
|
1798
1892
|
* that does the irreversible thing.
|
|
1799
1893
|
*/
|
|
1800
1894
|
initialFocus?: RefObject<HTMLElement | null>;
|
|
1895
|
+
/**
|
|
1896
|
+
* Names the dialog when it carries no visible `title`. Without a name it is
|
|
1897
|
+
* announced as just "dialog", which tells a screen reader user nothing about
|
|
1898
|
+
* what opened. Ignored when `title` is set — a visible label always wins over
|
|
1899
|
+
* a parallel invisible one, or the two drift.
|
|
1900
|
+
*/
|
|
1901
|
+
'aria-label'?: string;
|
|
1801
1902
|
className?: string;
|
|
1802
1903
|
}
|
|
1803
|
-
declare function Dialog({ open, onClose, title, children, footer, blocking, size, initialFocus, className, }: DialogProps): react_jsx_runtime.JSX.Element | null;
|
|
1904
|
+
declare function Dialog({ open, onClose, title, children, footer, blocking, size, initialFocus, 'aria-label': ariaLabel, className, }: DialogProps): react_jsx_runtime.JSX.Element | null;
|
|
1804
1905
|
|
|
1805
1906
|
type DrawerSide = 'right' | 'left' | 'bottom';
|
|
1806
1907
|
type DrawerSize = 'sm' | 'md' | 'lg';
|
|
@@ -1816,9 +1917,19 @@ interface DrawerProps {
|
|
|
1816
1917
|
/** Escape and the scrim do nothing. See Dialog's note before reaching for it. */
|
|
1817
1918
|
blocking?: boolean;
|
|
1818
1919
|
initialFocus?: RefObject<HTMLElement | null>;
|
|
1920
|
+
/**
|
|
1921
|
+
* Names the drawer when it carries no visible `title`. A dialog without an
|
|
1922
|
+
* accessible name is announced as just "dialog", which tells a screen reader
|
|
1923
|
+
* user nothing about what opened — and a navigation drawer, whose content is
|
|
1924
|
+
* its own heading, is exactly the case that has no title to point at.
|
|
1925
|
+
*
|
|
1926
|
+
* Ignored when `title` is set: a visible label always wins over a parallel
|
|
1927
|
+
* invisible one, or the two drift.
|
|
1928
|
+
*/
|
|
1929
|
+
'aria-label'?: string;
|
|
1819
1930
|
className?: string;
|
|
1820
1931
|
}
|
|
1821
|
-
declare function Drawer({ open, onClose, side, size, title, footer, children, blocking, initialFocus, className, }: DrawerProps): react_jsx_runtime.JSX.Element | null;
|
|
1932
|
+
declare function Drawer({ open, onClose, side, size, title, footer, children, blocking, initialFocus, 'aria-label': ariaLabel, className, }: DrawerProps): react_jsx_runtime.JSX.Element | null;
|
|
1822
1933
|
|
|
1823
1934
|
/**
|
|
1824
1935
|
* Focus containment and scroll locking for a modal surface — the two things
|
|
@@ -2191,6 +2302,20 @@ interface DataTableProps<T> {
|
|
|
2191
2302
|
className?: string;
|
|
2192
2303
|
};
|
|
2193
2304
|
emptyText?: ReactNode;
|
|
2305
|
+
/**
|
|
2306
|
+
* Row selection — a leading checkbox column, controlled by row key.
|
|
2307
|
+
*
|
|
2308
|
+
* `selected` holds row KEYS (what `rowKey` yields), so a selection made on
|
|
2309
|
+
* one page survives paging to the next: the header checkbox adds or removes
|
|
2310
|
+
* only the CURRENT data's keys and leaves foreign keys alone, which is what
|
|
2311
|
+
* lets "select these three here, two more on page 4" accumulate. EntityList
|
|
2312
|
+
* has the heavyweight version (with shift-click ranges); this is the
|
|
2313
|
+
* peer-free one.
|
|
2314
|
+
*/
|
|
2315
|
+
selection?: {
|
|
2316
|
+
selected: string[];
|
|
2317
|
+
onChange: (selected: string[]) => void;
|
|
2318
|
+
};
|
|
2194
2319
|
/** Rendered under the rows — an infinite-scroll sentinel, a totals strip. */
|
|
2195
2320
|
footer?: ReactNode;
|
|
2196
2321
|
/**
|
|
@@ -2214,7 +2339,7 @@ interface DataTableProps<T> {
|
|
|
2214
2339
|
};
|
|
2215
2340
|
className?: string;
|
|
2216
2341
|
}
|
|
2217
|
-
declare function DataTable<T>({ columns, data, rowKey, sort, onSortChange, pagination, caption, loading, bordered, size, minWidth, rowClassName, onRow, emptyText, footer, virtualized, className, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
2342
|
+
declare function DataTable<T>({ columns, data, rowKey, sort, onSortChange, pagination, caption, loading, bordered, size, minWidth, rowClassName, onRow, emptyText, selection, footer, virtualized, className, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
2218
2343
|
|
|
2219
2344
|
interface ListFooterProps {
|
|
2220
2345
|
selectedCount: number;
|
|
@@ -2468,6 +2593,112 @@ declare function useLocalStoragePrefs(storageKey?: string, defaults?: Record<str
|
|
|
2468
2593
|
* still render, but persistence is a no-op. */
|
|
2469
2594
|
declare function useShellPrefs(): ShellPrefsAdapter;
|
|
2470
2595
|
|
|
2596
|
+
interface ShellStrings {
|
|
2597
|
+
/** Window chrome: control tooltips and the title bar's accessible name. */
|
|
2598
|
+
window: {
|
|
2599
|
+
minimize: string;
|
|
2600
|
+
maximize: string;
|
|
2601
|
+
windowed: string;
|
|
2602
|
+
pinOnTop: string;
|
|
2603
|
+
unpin: string;
|
|
2604
|
+
close: string;
|
|
2605
|
+
/** Suffix of the title bar's aria-label: `"{title} — {windowSuffix}"`. */
|
|
2606
|
+
windowSuffix: string;
|
|
2607
|
+
prev: string;
|
|
2608
|
+
next: string;
|
|
2609
|
+
snapLayouts: string;
|
|
2610
|
+
snapLeft: string;
|
|
2611
|
+
snapRight: string;
|
|
2612
|
+
snapTopLeft: string;
|
|
2613
|
+
snapTopRight: string;
|
|
2614
|
+
snapBottomLeft: string;
|
|
2615
|
+
snapBottomRight: string;
|
|
2616
|
+
};
|
|
2617
|
+
/** Taskbar and exposé. */
|
|
2618
|
+
taskbar: {
|
|
2619
|
+
closeWindow: string;
|
|
2620
|
+
offscreenHint: string;
|
|
2621
|
+
offscreenDot: string;
|
|
2622
|
+
expose: string;
|
|
2623
|
+
addToDesktop: string;
|
|
2624
|
+
removeFromDesktop: string;
|
|
2625
|
+
};
|
|
2626
|
+
/** The logout cover. */
|
|
2627
|
+
logout: {
|
|
2628
|
+
goodbye: string;
|
|
2629
|
+
seeYou: string;
|
|
2630
|
+
};
|
|
2631
|
+
/** About + What's New dialogs. */
|
|
2632
|
+
about: {
|
|
2633
|
+
aboutPrefix: string;
|
|
2634
|
+
thisApp: string;
|
|
2635
|
+
openSourceLicenses: string;
|
|
2636
|
+
whatsNew: string;
|
|
2637
|
+
noChangelog: string;
|
|
2638
|
+
};
|
|
2639
|
+
/** Data-display defaults (DataTable, lists). */
|
|
2640
|
+
table: {
|
|
2641
|
+
empty: string;
|
|
2642
|
+
loading: string;
|
|
2643
|
+
selectAll: string;
|
|
2644
|
+
selectRow: string;
|
|
2645
|
+
};
|
|
2646
|
+
/** Picker defaults (SearchableSelect, TagInput). */
|
|
2647
|
+
select: {
|
|
2648
|
+
none: string;
|
|
2649
|
+
noMatches: string;
|
|
2650
|
+
allSelected: string;
|
|
2651
|
+
clear: string;
|
|
2652
|
+
/** aria-label of a TagInput chip's remove button: `"{remove} {label}"`. */
|
|
2653
|
+
remove: string;
|
|
2654
|
+
};
|
|
2655
|
+
/** Notification bell + popup. */
|
|
2656
|
+
notifications: {
|
|
2657
|
+
title: string;
|
|
2658
|
+
markAllRead: string;
|
|
2659
|
+
dnd: string;
|
|
2660
|
+
dndOn: string;
|
|
2661
|
+
caughtUp: string;
|
|
2662
|
+
empty: string;
|
|
2663
|
+
viewAll: string;
|
|
2664
|
+
cardLabel: string;
|
|
2665
|
+
dismiss: string;
|
|
2666
|
+
};
|
|
2667
|
+
/** Form-level messages. */
|
|
2668
|
+
form: {
|
|
2669
|
+
errorSummaryTitle: string;
|
|
2670
|
+
};
|
|
2671
|
+
/** HelpCenter chrome. */
|
|
2672
|
+
help: {
|
|
2673
|
+
title: string;
|
|
2674
|
+
searchPlaceholder: string;
|
|
2675
|
+
empty: string;
|
|
2676
|
+
noResults: string;
|
|
2677
|
+
loading: string;
|
|
2678
|
+
pickArticle: string;
|
|
2679
|
+
noBody: string;
|
|
2680
|
+
draft: string;
|
|
2681
|
+
newArticle: string;
|
|
2682
|
+
edit: string;
|
|
2683
|
+
};
|
|
2684
|
+
}
|
|
2685
|
+
declare const DEFAULT_SHELL_STRINGS: ShellStrings;
|
|
2686
|
+
/** A per-section partial: override any subset of a section's strings. */
|
|
2687
|
+
type ShellStringsOverride = {
|
|
2688
|
+
[S in keyof ShellStrings]?: Partial<ShellStrings[S]>;
|
|
2689
|
+
};
|
|
2690
|
+
/**
|
|
2691
|
+
* Mount once, near the top of the app. `value` is a partial — sections and
|
|
2692
|
+
* keys you do not translate keep their English defaults, so a catalog never
|
|
2693
|
+
* breaks by falling behind a release.
|
|
2694
|
+
*/
|
|
2695
|
+
declare function ShellStringsProvider({ value, children }: {
|
|
2696
|
+
value: ShellStringsOverride;
|
|
2697
|
+
children: ReactNode;
|
|
2698
|
+
}): react_jsx_runtime.JSX.Element;
|
|
2699
|
+
/** The active catalog — English defaults when no provider is mounted. */
|
|
2700
|
+
declare function useShellStrings(): ShellStrings;
|
|
2701
|
+
|
|
2471
2702
|
/** Frosted glass style — shared across all menus, popups, and glass UI elements.
|
|
2472
2703
|
* Reads --menu-opacity CSS variable set by the theme system, and adapts the
|
|
2473
2704
|
* base tint to dark mode so menus don't stay light-cream when text is light. */
|
|
@@ -2509,4 +2740,4 @@ declare const ALT_SHIFT_N: string;
|
|
|
2509
2740
|
* string when the source is consumed without a build (e.g. tests). */
|
|
2510
2741
|
declare const VERSION: string;
|
|
2511
2742
|
|
|
2512
|
-
export { type
|
|
2743
|
+
export { type ContainerFillChartProps as $, ALT as A, Banner as B, type ColumnDef as C, type ButtonSize as D, type ButtonVariant as E, CMD_A as F, CMD_DOT as G, CMD_ENTER as H, CMD_K as I, CMD_S as J, Calendar as K, type CalendarMode as L, type CalendarProps as M, Card as N, type CardPadding as O, type PaginatedResponse as P, type CardProps as Q, type CellStyle as R, type SearchConfig as S, ChatTemplate as T, Checkbox as U, type CheckboxProps as V, CheckoutTemplate as W, ColoredBadge as X, type ColoredBadgeProps as Y, ConfirmProvider as Z, ContainerFillChart as _, type SortState as a, type GlobalSearchProps as a$, type ContainerFillItem as a0, CountBadge as a1, type CountBadgeProps as a2, type CountBadgeTone as a3, DEFAULT_SHELL_STRINGS as a4, DashboardTemplate as a5, DataTable as a6, type DataTableColumn as a7, type DataTableColumnGroup as a8, type DataTableHeader as a9, type DropdownMenuAlign as aA, type DropdownMenuItem as aB, type DropdownMenuProps as aC, ENTER as aD, EditableGrid as aE, type EditableGridProps as aF, EmailTemplate as aG, EmptyState as aH, type EmptyStateProps as aI, ErrorBoundary as aJ, type ErrorBoundaryProps as aK, ErrorPage as aL, type ErrorPageProps as aM, FilePicker as aN, type FilePickerProps as aO, type FormError as aP, FormErrorSummary as aQ, type FormErrorSummaryProps as aR, FormField as aS, type FormFieldProps as aT, FormLayoutPage as aU, GLASS_DIVIDER as aV, GLASS_INPUT_BG as aW, GROUP_COLORS as aX, GalleryTemplate as aY, type Gap as aZ, GlobalSearch as a_, DataTablePage as aa, type DataTableProps as ab, DatePicker as ac, type DatePickerProps as ad, DateRangePicker as ae, type DateRangePickerProps as af, DateTimePicker as ag, type DateTimePickerProps as ah, type DescriptionColumns as ai, type DescriptionItem as aj, DescriptionList as ak, type DescriptionListProps as al, Dialog as am, type DialogProps as an, type DialogSize as ao, Divider as ap, type DividerProps as aq, type DividerSpacing as ar, DonutChart as as, type DonutChartProps as at, type DonutSegment as au, Drawer as av, type DrawerProps as aw, type DrawerSide as ax, type DrawerSize as ay, DropdownMenu as az, ALT_SHIFT_D as b, type ResultProps as b$, Grid as b0, type GridCols as b1, type GridColumn as b2, type GridProps as b3, HelpCenter as b4, type HelpCenterDoc as b5, type HelpCenterProps as b6, INPUT_BASE as b7, INPUT_SIZES as b8, IconButton as b9, MediaUploadField as bA, type MediaUploadFieldProps as bB, MediaUploadGrid as bC, type MediaUploadGridItem as bD, type MediaUploadGridProps as bE, MetricBar as bF, type MetricBarProps as bG, type Milestone as bH, type MilestoneKind as bI, MilestoneTimeline as bJ, type MilestoneTimelineProps as bK, NativeSelect as bL, NumericKeypad as bM, type NumericKeypadProps as bN, PageHeader as bO, type PageHeaderProps as bP, Pagination as bQ, type PaginationProps as bR, Paragraph as bS, type ParagraphProps as bT, PopupMenu as bU, PopupMenuDivider as bV, PopupMenuItem as bW, PopupMenuLabel as bX, Radio as bY, type RadioProps as bZ, Result as b_, type IconButtonProps as ba, Inline as bb, type InlineProps as bc, Input as bd, InputNumber as be, type InputNumberProps as bf, type InputProps as bg, type InputSize as bh, type Justify as bi, Kanban as bj, type KanbanColumn as bk, type KanbanProps as bl, Label as bm, type LabelProps as bn, LineChart as bo, type LineChartProps as bp, type LineChartSeries as bq, ListFooter as br, ListLoadError as bs, type ListLoadErrorProps as bt, LoadingSpinner as bu, type LoadingSpinnerProps as bv, MAX_FRACTION_DIGITS as bw, MOD as bx, Markdown as by, type MarkdownProps as bz, ALT_SHIFT_E as c, type TileButtonProps as c$, type ResultStatus as c0, SHIFT as c1, type SearchProvider as c2, type SearchResult as c3, type SearchableOption as c4, SearchableSelect as c5, type SearchableSelectProps as c6, Segmented as c7, type SegmentedOption as c8, type SegmentedProps as c9, Statistic as cA, type StatisticProps as cB, type StatisticSize as cC, type StatisticTone as cD, StatusBadge as cE, StatusBadgeProvider as cF, type StepItem as cG, Stepper as cH, type StepperProps as cI, Switch as cJ, type SwitchProps as cK, type SwitchSize as cL, type TabItem as cM, Tabs as cN, type TabsProps as cO, TagInput as cP, type TagInputOption as cQ, type TagInputProps as cR, Text as cS, type TextProps as cT, type TextSize as cU, type TextTone as cV, type TextWeight as cW, Textarea as cX, type TextareaProps as cY, type Theme as cZ, TileButton as c_, type SegmentedSize as ca, Select as cb, type SelectOption as cc, type SelectProps as cd, type SemanticGroup as ce, type SeverityTone as cf, type ShellPrefsAdapter as cg, ShellPrefsProvider as ch, type ShellStrings as ci, type ShellStringsOverride as cj, ShellStringsProvider as ck, SidebarActionButton as cl, type SidebarActionButtonProps as cm, SidebarGroupLabel as cn, SidebarLayout as co, type SidebarLayoutProps as cp, SidebarNavItem as cq, Skeleton as cr, type SkeletonProps as cs, type SkeletonVariant as ct, Sparkline as cu, type SparklineProps as cv, Stack as cw, type StackProps as cx, StatCard as cy, type StatCardProps as cz, ALT_SHIFT_N as d, type TileSize as d0, TimePicker as d1, type TimePickerProps as d2, Title as d3, type TitleLevel as d4, type TitleProps as d5, type ToastOptions as d6, type ToastPlacement as d7, Tooltip as d8, type TooltipProps as d9, useConfirm as dA, useFocusTrap as dB, useIsMobile as dC, useLocalStoragePrefs as dD, useScrollLock as dE, useShellPrefs as dF, useShellStrings as dG, useTheme as dH, TopNav as da, type TopNavItem as db, type TopNavProps as dc, VERSION as dd, appendKey as de, applyThemePrefs as df, backspace as dg, confirm as dh, confirmDestructive as di, formatDate as dj, fromKey as dk, glassStyle as dl, inputClasses as dm, isMac as dn, isSeverityTone as dp, mediaFileName as dq, prompt as dr, resolveTheme as ds, severityOf as dt, tabButtonId as du, tabPanelId as dv, toKey as dw, toISODate as dx, toast as dy, useClickOutside as dz, Accordion as e, type AccordionItem as f, type AccordionProps as g, type Align as h, AuthScreen as i, type AuthScreenProps as j, Avatar as k, AvatarGroup as l, type AvatarGroupProps as m, type AvatarProps as n, type AvatarSize as o, type AvatarStatus as p, type BannerEmphasis as q, type BannerProps as r, type BannerTone as s, BarChart as t, type BarChartProps as u, type BreadcrumbItem as v, Breadcrumbs as w, type BreadcrumbsProps as x, Button as y, type ButtonProps as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SearchConfig, C as ColumnDef, a as SortState, P as PaginatedResponse } from './index-
|
|
2
|
-
export { A as ALT, b as ALT_SHIFT_D, c as ALT_SHIFT_E, d as ALT_SHIFT_N, e as Accordion, f as AccordionItem, g as AccordionProps, h as Align, i as AuthScreen, j as AuthScreenProps, k as Avatar, l as AvatarGroup, m as AvatarGroupProps, n as AvatarProps, o as AvatarSize, p as AvatarStatus, B as Banner, q as BannerEmphasis, r as BannerProps, s as BannerTone, t as BarChart, u as BarChartProps, v as BreadcrumbItem, w as Breadcrumbs, x as BreadcrumbsProps, y as Button, z as ButtonProps, D as ButtonSize, E as ButtonVariant, F as CMD_A, G as CMD_DOT, H as CMD_ENTER, I as CMD_K, J as CMD_S, K as
|
|
1
|
+
import { S as SearchConfig, C as ColumnDef, a as SortState, P as PaginatedResponse } from './index-DVekeidu.js';
|
|
2
|
+
export { A as ALT, b as ALT_SHIFT_D, c as ALT_SHIFT_E, d as ALT_SHIFT_N, e as Accordion, f as AccordionItem, g as AccordionProps, h as Align, i as AuthScreen, j as AuthScreenProps, k as Avatar, l as AvatarGroup, m as AvatarGroupProps, n as AvatarProps, o as AvatarSize, p as AvatarStatus, B as Banner, q as BannerEmphasis, r as BannerProps, s as BannerTone, t as BarChart, u as BarChartProps, v as BreadcrumbItem, w as Breadcrumbs, x as BreadcrumbsProps, y as Button, z as ButtonProps, D as ButtonSize, E as ButtonVariant, F as CMD_A, G as CMD_DOT, H as CMD_ENTER, I as CMD_K, J as CMD_S, K as Calendar, L as CalendarMode, M as CalendarProps, N as Card, O as CardPadding, Q as CardProps, R as CellStyle, T as ChatTemplate, U as Checkbox, V as CheckboxProps, W as CheckoutTemplate, X as ColoredBadge, Y as ColoredBadgeProps, Z as ConfirmProvider, _ as ContainerFillChart, $ as ContainerFillChartProps, a0 as ContainerFillItem, a1 as CountBadge, a2 as CountBadgeProps, a3 as CountBadgeTone, a4 as DEFAULT_SHELL_STRINGS, a5 as DashboardTemplate, a6 as DataTable, a7 as DataTableColumn, a8 as DataTableColumnGroup, a9 as DataTableHeader, aa as DataTablePage, ab as DataTableProps, ac as DatePicker, ad as DatePickerProps, ae as DateRangePicker, af as DateRangePickerProps, ag as DateTimePicker, ah as DateTimePickerProps, ai as DescriptionColumns, aj as DescriptionItem, ak as DescriptionList, al as DescriptionListProps, am as Dialog, an as DialogProps, ao as DialogSize, ap as Divider, aq as DividerProps, ar as DividerSpacing, as as DonutChart, at as DonutChartProps, au as DonutSegment, av as Drawer, aw as DrawerProps, ax as DrawerSide, ay as DrawerSize, az as DropdownMenu, aA as DropdownMenuAlign, aB as DropdownMenuItem, aC as DropdownMenuProps, aD as ENTER, aE as EditableGrid, aF as EditableGridProps, aG as EmailTemplate, aH as EmptyState, aI as EmptyStateProps, aJ as ErrorBoundary, aK as ErrorBoundaryProps, aL as ErrorPage, aM as ErrorPageProps, aN as FilePicker, aO as FilePickerProps, aP as FormError, aQ as FormErrorSummary, aR as FormErrorSummaryProps, aS as FormField, aT as FormFieldProps, aU as FormLayoutPage, aV as GLASS_DIVIDER, aW as GLASS_INPUT_BG, aX as GROUP_COLORS, aY as GalleryTemplate, aZ as Gap, a_ as GlobalSearch, a$ as GlobalSearchProps, b0 as Grid, b1 as GridCols, b2 as GridColumn, b3 as GridProps, b4 as HelpCenter, b5 as HelpCenterDoc, b6 as HelpCenterProps, b7 as INPUT_BASE, b8 as INPUT_SIZES, b9 as IconButton, ba as IconButtonProps, bb as Inline, bc as InlineProps, bd as Input, be as InputNumber, bf as InputNumberProps, bg as InputProps, bh as InputSize, bi as Justify, bj as Kanban, bk as KanbanColumn, bl as KanbanProps, bm as Label, bn as LabelProps, bo as LineChart, bp as LineChartProps, bq as LineChartSeries, br as ListFooter, bs as ListLoadError, bt as ListLoadErrorProps, bu as LoadingSpinner, bv as LoadingSpinnerProps, bw as MAX_FRACTION_DIGITS, bx as MOD, by as Markdown, bz as MarkdownProps, bA as MediaUploadField, bB as MediaUploadFieldProps, bC as MediaUploadGrid, bD as MediaUploadGridItem, bE as MediaUploadGridProps, bF as MetricBar, bG as MetricBarProps, bH as Milestone, bI as MilestoneKind, bJ as MilestoneTimeline, bK as MilestoneTimelineProps, bL as NativeSelect, bM as NumericKeypad, bN as NumericKeypadProps, bO as PageHeader, bP as PageHeaderProps, bQ as Pagination, bR as PaginationProps, bS as Paragraph, bT as ParagraphProps, bU as PopupMenu, bV as PopupMenuDivider, bW as PopupMenuItem, bX as PopupMenuLabel, bY as Radio, bZ as RadioProps, b_ as Result, b$ as ResultProps, c0 as ResultStatus, c1 as SHIFT, c2 as SearchProvider, c3 as SearchResult, c4 as SearchableOption, c5 as SearchableSelect, c6 as SearchableSelectProps, c7 as Segmented, c8 as SegmentedOption, c9 as SegmentedProps, ca as SegmentedSize, cb as Select, cc as SelectOption, cd as SelectProps, ce as SemanticGroup, cf as SeverityTone, cg as ShellPrefsAdapter, ch as ShellPrefsProvider, ci as ShellStrings, cj as ShellStringsOverride, ck as ShellStringsProvider, cl as SidebarActionButton, cm as SidebarActionButtonProps, cn as SidebarGroupLabel, co as SidebarLayout, cp as SidebarLayoutProps, cq as SidebarNavItem, cr as Skeleton, cs as SkeletonProps, ct as SkeletonVariant, cu as Sparkline, cv as SparklineProps, cw as Stack, cx as StackProps, cy as StatCard, cz as StatCardProps, cA as Statistic, cB as StatisticProps, cC as StatisticSize, cD as StatisticTone, cE as StatusBadge, cF as StatusBadgeProvider, cG as StepItem, cH as Stepper, cI as StepperProps, cJ as Switch, cK as SwitchProps, cL as SwitchSize, cM as TabItem, cN as Tabs, cO as TabsProps, cP as TagInput, cQ as TagInputOption, cR as TagInputProps, cS as Text, cT as TextProps, cU as TextSize, cV as TextTone, cW as TextWeight, cX as Textarea, cY as TextareaProps, cZ as Theme, c_ as TileButton, c$ as TileButtonProps, d0 as TileSize, d1 as TimePicker, d2 as TimePickerProps, d3 as Title, d4 as TitleLevel, d5 as TitleProps, d6 as ToastOptions, d7 as ToastPlacement, d8 as Tooltip, d9 as TooltipProps, da as TopNav, db as TopNavItem, dc as TopNavProps, dd as VERSION, de as appendKey, df as applyThemePrefs, dg as backspace, dh as confirm, di as confirmDestructive, dj as formatDate, dk as fromDateKey, dl as glassStyle, dm as inputClasses, dn as isMac, dp as isSeverityTone, dq as mediaFileName, dr as prompt, ds as resolveTheme, dt as severityOf, du as tabButtonId, dv as tabPanelId, dw as toDateKey, dx as toISODate, dy as toast, dz as useClickOutside, dA as useConfirm, dB as useFocusTrap, dC as useIsMobile, dD as useLocalStoragePrefs, dE as useScrollLock, dF as useShellPrefs, dG as useShellStrings, dH as useTheme } from './index-DVekeidu.js';
|
|
3
3
|
import { W as WindowRegistry } from './types-BHVq95fp.js';
|
|
4
4
|
export { M as ModalRegistryEntry, P as PageRegistryEntry, a as WindowRegistryEntry, i as isEntityEntry, b as isPageEntry, s as setShellWindowRegistry } from './types-BHVq95fp.js';
|
|
5
5
|
import * as react from 'react';
|