@nxgt/material 3.88.0 → 3.90.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 +58 -0
- package/README.md +8 -5
- package/dist/{alert-dialog-CEGs7LMN.js → alert-dialog-BFk4ye-3.js} +1 -1
- package/dist/{async-slice-CR0M95Jq.js → async-slice-gGyfyUw2.js} +1 -1
- package/dist/{button-h9hXBEQB.js → button-C5OEq9bi.js} +3 -3
- package/dist/{calculator-Dn_KL0b0.js → calculator-Dg_L6d3R.js} +16 -16
- package/dist/calculator-field.js +6 -6
- package/dist/{calculator-segment-DMFptsDf.js → calculator-segment-CvAaDqKf.js} +1 -1
- package/dist/calculator.js +1 -1
- package/dist/charts.js +3 -3
- package/dist/{chip-C-RAjar5.js → chip-DOxFA4BI.js} +2 -2
- package/dist/{code-editor-DApeIOZ3.js → code-editor-tiAjhXW-.js} +4 -4
- package/dist/code-editor.js +4 -4
- package/dist/{code-language-items-CGtYfc1l.js → code-language-items-CcdzQvLT.js} +2 -2
- package/dist/components/ui/dates/duration-field/duration-field-expressive.css +1 -1
- package/dist/components/ui/dates/picker-trigger/typed-box-expressive.css +5 -24
- package/dist/{components-BIATLurA.js → components-HQy9UW9D.js} +19905 -19582
- package/dist/components.js +38 -37
- package/dist/{conversion-variant-Cf0sEmnS.js → conversion-variant-4gCdFWV-.js} +3 -3
- package/dist/currency-field-CIqe7Wg4.js +289 -0
- package/dist/{dialog-Bul68q8u.js → dialog-d6Kdf5wc.js} +3 -3
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-xUUE5X6T.js → dropdown-menu-DO5kUvof.js} +1 -1
- package/dist/editor.js +139 -139
- package/dist/{empty-state-CCRfjt0n.js → empty-state-DQnICuun.js} +8 -7
- package/dist/{financial-variant-CYgRZzKT.js → financial-variant-D80C1hVD.js} +14 -14
- package/dist/{hooks-Dzc6xz5t.js → hooks-C-yLDF39.js} +2 -2
- package/dist/hooks.js +2 -2
- package/dist/{hover-card-CZLFQwZv.js → hover-card-DU3TAME4.js} +1 -1
- package/dist/i18n.js +3 -3
- package/dist/{icon-badge-0Xo9q7Ey.js → icon-badge-BGczZ4Hc.js} +1 -1
- package/dist/{icon-button-DE1EcO2-.js → icon-button-D0xjBCst.js} +1 -1
- package/dist/input-group-CSlXMFxu.js +70 -0
- package/dist/lib/components/ui/actions/back-link/back-link.d.ts +10 -2
- package/dist/lib/components/ui/collections/data-grid/grid-cell-tone.d.ts +12 -0
- package/dist/lib/components/ui/collections/data-grid/partials/grid-cell-access.d.ts +4 -3
- package/dist/lib/components/ui/collections/data-grid/partials/grid-cell-flags.d.ts +12 -0
- package/dist/lib/components/ui/collections/data-grid/partials/grid-cell-value.d.ts +4 -1
- package/dist/lib/components/ui/collections/data-table/partials/data-table-cell-content.d.ts +11 -0
- package/dist/lib/components/ui/collections/data-table/table-meta.d.ts +50 -2
- package/dist/lib/components/ui/collections/filter/use-filter-field-config.d.ts +1 -0
- package/dist/lib/components/ui/collections/list-pane/list-pane-item.d.ts +3 -1
- package/dist/lib/components/ui/collections/list-pane/partials/list-pane-item-content.d.ts +2 -1
- package/dist/lib/components/ui/collections/server-table/server-table-classes.d.ts +5 -2
- package/dist/lib/components/ui/dates/age-field/age-field.d.ts +8 -0
- package/dist/lib/components/ui/dates/age-field/age-form-field.d.ts +8 -0
- package/dist/lib/components/ui/dates/age-field/age-reading.d.ts +11 -0
- package/dist/lib/components/ui/dates/age-field/age-value.d.ts +9 -0
- package/dist/lib/components/ui/dates/age-field/index.d.ts +4 -0
- package/dist/lib/components/ui/dates/age-field/types.d.ts +40 -0
- package/dist/lib/components/ui/dates/index.d.ts +1 -0
- package/dist/lib/components/ui/dates/picker-trigger/typed-box.d.ts +1 -1
- package/dist/lib/components/ui/display/badge/badge.d.ts +4 -1
- package/dist/lib/components/ui/display/entity-header/entity-header.d.ts +8 -1
- package/dist/lib/components/ui/display/index.d.ts +2 -0
- package/dist/lib/components/ui/display/list-tile/list-tile.d.ts +2 -1
- package/dist/lib/components/ui/display/list-tile/partials/list-tile-line.d.ts +1 -1
- package/dist/lib/components/ui/display/list-tile/partials/list-tile-row.d.ts +3 -1
- package/dist/lib/components/ui/display/person-cell/index.d.ts +1 -0
- package/dist/lib/components/ui/display/person-cell/person-cell.d.ts +23 -0
- package/dist/lib/components/ui/display/tone-value/index.d.ts +2 -0
- package/dist/lib/components/ui/display/tone-value/tone-value.d.ts +23 -0
- package/dist/lib/components/ui/feedback/error-state/partials/error-state-actions.d.ts +6 -1
- package/dist/lib/components/ui/feedback/page-load-failed/page-load-failed.d.ts +8 -1
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/fields/number-field/number-control.d.ts +2 -2
- package/dist/lib/components/ui/fields/switch/partials/switch-row.d.ts +4 -2
- package/dist/lib/components/ui/fields/switch/switch.d.ts +7 -1
- package/dist/lib/components/ui/layout/app-shell/activity-content-aside-parts.d.ts +68 -0
- package/dist/lib/components/ui/layout/app-shell/activity-content-aside-toggle.d.ts +22 -0
- package/dist/lib/components/ui/layout/app-shell/activity-content-aside.d.ts +5 -2
- package/dist/lib/components/ui/layout/app-shell/activity-content-aside.types.d.ts +13 -0
- package/dist/lib/components/ui/layout/app-shell/activity-content.d.ts +3 -2
- package/dist/lib/components/ui/layout/app-shell/app-shell.utils.d.ts +3 -1
- package/dist/lib/components/ui/layout/app-shell/app-sidebar-entries.d.ts +5 -2
- package/dist/lib/components/ui/layout/app-shell/app-sidebar-icon-item.d.ts +2 -1
- package/dist/lib/components/ui/layout/app-shell/app-sidebar.d.ts +3 -1
- package/dist/lib/components/ui/layout/app-shell/types.d.ts +14 -5
- package/dist/lib/components/ui/primitives/tabs/partials/tabs-list.d.ts +8 -2
- package/dist/lib/components/ui/primitives/tabs/tabs-nav.d.ts +5 -1
- package/dist/lib/components/ui/primitives/tabs/tabs-overflow-classes.d.ts +3 -0
- package/dist/lib/components/ui/selection/sortable-list/index.d.ts +1 -1
- package/dist/lib/components/ui/selection/sortable-list/sortable-list-context.d.ts +3 -1
- package/dist/lib/components/ui/selection/sortable-list/sortable-list.d.ts +6 -2
- package/dist/lib/components/ui/selection/sortable-list/types.d.ts +1 -0
- package/dist/lib/components/ui/selection/sortable-list/use-sortable-list-labels.d.ts +3 -0
- package/dist/lib/i18n/resources/en/en.d.ts +11 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +12 -1
- package/dist/lib/i18n/resources/fr/fr.d.ts +11 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +12 -1
- package/dist/lib/i18n/resources/resources.d.ts +22 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib.js +1 -1
- package/dist/main.js +54 -53
- package/dist/map.js +7 -7
- package/dist/material.css +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/{percent-field-BFwxazf1.js → percent-field-DyJ2yOH4.js} +1 -1
- package/dist/{picker-surface-DkfTv_ft.js → picker-surface-CnlOKQ3D.js} +4 -4
- package/dist/{popover-BM6xApJd.js → popover-BevReSHi.js} +1 -1
- package/dist/{pos-types-CpTpT4vE.js → pos-types-BrZBX0Zg.js} +1 -1
- package/dist/{pos-variant-Bs5BUB1L.js → pos-variant-G12HCSfQ.js} +4 -4
- package/dist/print.js +1 -1
- package/dist/{programmer-variant-B1eI1fd0.js → programmer-variant-WWLwTGRF.js} +2 -2
- package/dist/{public-CX7ik5Yg.js → public-C1a6wQ6o.js} +19 -19
- package/dist/{rich-code-block-CdVtxD75.js → rich-code-block-Dh9J-VZ8.js} +5 -5
- package/dist/{scientific-variant-rfvJKxB4.js → scientific-variant-BvutlF8a.js} +2 -2
- package/dist/{sortable-provider-BopzsciJ.js → sortable-provider-BrA5tfJX.js} +2 -2
- package/dist/{spinner-DcW21pN1.js → spinner-JnLLiLIO.js} +1 -1
- package/dist/{tabs-CdoBFtWx.js → tabs-dXCZGShv.js} +63 -61
- package/dist/theme-picker.js +2 -2
- package/dist/{theme-toggle-Ch3GkDDU.js → theme-toggle-BmcK6mXV.js} +1 -1
- package/dist/{toolbar-items-CZ1lJXZZ.js → toolbar-items-B-kMYsDT.js} +4 -4
- package/dist/{translate-material-BrYBBZ66.js → translate-material-BmpcP1p1.js} +1 -1
- package/dist/{translator-DoVsjUff.js → translator-CfoXTrZd.js} +24 -2
- package/dist/{use-chat-composer-BjKhuLfT.js → use-chat-composer-DFD_eF-r.js} +4197 -4246
- package/dist/{use-heading-spy-CGTTRV2N.js → use-heading-spy-BcNK1qvq.js} +4 -4
- package/dist/{use-material-translation-BdrItuwY.js → use-material-translation-DoymV6IP.js} +1 -1
- package/dist/{use-return-focus-Cqzvj9R0.js → use-return-focus-CLEnhfka.js} +1 -1
- package/docs/components/README.md +2 -1
- package/docs/components/buttons-and-actions.md +10 -1
- package/docs/components/data-display.md +80 -4
- package/docs/components/data-table-filter-and-lists.md +57 -4
- package/docs/components/date-and-time.md +53 -1
- package/docs/components/feedback-and-status.md +11 -2
- package/docs/components/form-fields.md +11 -2
- package/docs/components/navigation-and-layout.md +2 -2
- package/docs/components/primitives.md +7 -0
- package/docs/components/selection-and-choice.md +4 -2
- package/docs/guides/app-shell.md +46 -11
- package/docs/guides/data-grid.md +12 -0
- package/docs/guides/forms.md +1 -0
- package/docs/guides/i18n.md +1 -1
- package/docs/previews/data-display-personcell.webp +0 -0
- package/docs/previews/data-display-tonevalue.webp +0 -0
- package/docs/previews/date-time-agefield.webp +0 -0
- package/docs/roadmap.md +23 -0
- package/lib/components/ui/dates/duration-field/duration-field-expressive.css +1 -1
- package/lib/components/ui/dates/picker-trigger/typed-box-expressive.css +5 -24
- package/package.json +2 -2
- package/dist/currency-field-cwC7cqUE.js +0 -286
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ListTileCommonProps, ListTileLinkOrButtonProps } from '../list-tile.js';
|
|
2
2
|
/** A link, a button or a plain tile, with or without `actions` beside it. */
|
|
3
|
-
export declare function ListTileLine({ title, subtitle, leading, trailing, chips, content, variant, inset, actions, className, selected, size, href, chevron, linkComponent: ownLink, disabled, onClick, ...props }: ListTileCommonProps & Omit<ListTileLinkOrButtonProps, 'toggle'>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
3
|
+
export declare function ListTileLine({ title, subtitle, leading, trailing, chips, content, variant, inset, actions, className, selected: selectedProp, size, href, chevron, linkComponent: ownLink, disabled, onClick, ...props }: ListTileCommonProps & Omit<ListTileLinkOrButtonProps, 'toggle'>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
@@ -12,6 +12,8 @@ type RenderRowOptions = {
|
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
onClick?: MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>;
|
|
14
14
|
selected: boolean;
|
|
15
|
+
/** The raw `selected` prop: a button is a toggle (`aria-pressed`) only when it is set. */
|
|
16
|
+
pressed?: boolean;
|
|
15
17
|
rowClass: string;
|
|
16
18
|
body: ReactNode;
|
|
17
19
|
};
|
|
@@ -20,5 +22,5 @@ type RenderRowOptions = {
|
|
|
20
22
|
* tile (it carries the tile's attributes); with them, only the row inside the
|
|
21
23
|
* box, which keeps the rest props so `aria-label`, `id`… still land on it.
|
|
22
24
|
*/
|
|
23
|
-
export declare function renderRow({ props, tileAttrs, split, href, linkComponent, disabled, onClick, selected, rowClass, body, }: RenderRowOptions): ReactNode;
|
|
25
|
+
export declare function renderRow({ props, tileAttrs, split, href, linkComponent, disabled, onClick, selected, pressed, rowClass, body, }: RenderRowOptions): ReactNode;
|
|
24
26
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './person-cell.js';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Tone } from '../../tones.js';
|
|
2
|
+
export type PersonCellProps = {
|
|
3
|
+
/** The person's name, truncated with an ellipsis when it does not fit; the full text stays in the DOM. */
|
|
4
|
+
name: string;
|
|
5
|
+
/** A picture; the initials show in its place until it loads or when it fails. */
|
|
6
|
+
src?: string;
|
|
7
|
+
/** The letters shown without a picture. Unset: derived from `name` (`'Ada Lovelace'` → `'AL'`). */
|
|
8
|
+
initials?: string;
|
|
9
|
+
/** The tone of the initials. Unset: neutral. */
|
|
10
|
+
tone?: Tone;
|
|
11
|
+
/** A muted line under the name (a role, an email, a team), truncated too. */
|
|
12
|
+
description?: string;
|
|
13
|
+
/** `'sm'` (24 px avatar) fits a table row; `'md'` (32 px) a card or a list. */
|
|
14
|
+
size?: 'sm' | 'md';
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* An avatar before a name, for the first column of a table of people or the
|
|
19
|
+
* title of a card. The avatar is decorative (`aria-hidden`): the name is the
|
|
20
|
+
* text a screen reader and a row link read. Takes the width it is given and
|
|
21
|
+
* truncates (`min-w-0`), so it holds on a phone.
|
|
22
|
+
*/
|
|
23
|
+
export declare function PersonCell({ name, src, initials, tone, description, size, className, }: PersonCellProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { Tone } from '../../tones.js';
|
|
3
|
+
export type ToneValueProps = Omit<ComponentProps<'span'>, 'children'> & {
|
|
4
|
+
/** The tone: a named tone or one the app declared in `AppTones`. `undefined` renders the value as is. */
|
|
5
|
+
tone?: Tone;
|
|
6
|
+
/** The value shown. */
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Words for a screen reader after the value (`'Low'`), visually hidden. The
|
|
10
|
+
* mark is `aria-hidden`: without a label the tone is for sighted users only.
|
|
11
|
+
*/
|
|
12
|
+
label?: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* A value in the text colour of its tone, with a small shape before it (a
|
|
16
|
+
* diamond for `error`, a triangle for `warning`, a circle for `success`, a
|
|
17
|
+
* square for any other tone; none for `neutral`), so the tone survives when
|
|
18
|
+
* the colour does not (forced colours, colour blindness, a black and white
|
|
19
|
+
* print). The cells of `DataTable`, `ServerTable` and `DataGrid` wear it for a
|
|
20
|
+
* column with `meta.tone`; import it for a `renderCard` or any figure of your
|
|
21
|
+
* own. With no `tone` it renders the value in a plain span, without a mark.
|
|
22
|
+
*/
|
|
23
|
+
export declare function ToneValue({ tone, label, className, children, ...props }: ToneValueProps): import("react").JSX.Element;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { ButtonVariant } from '../../../actions/button/button.js';
|
|
2
3
|
type Props = {
|
|
3
4
|
onRetry?: () => unknown;
|
|
4
5
|
retrying?: boolean;
|
|
5
6
|
retryLabel?: ReactNode;
|
|
6
7
|
action?: ReactNode;
|
|
8
|
+
/** The Retry button's variant (outlined by default). */
|
|
9
|
+
retryVariant?: ButtonVariant;
|
|
10
|
+
/** The Retry button's `data-slot`. */
|
|
11
|
+
retrySlot?: string;
|
|
7
12
|
};
|
|
8
13
|
/** Retry (loading while a returned promise is pending), then the extra actions. */
|
|
9
|
-
export declare function ErrorStateActions({ onRetry, retrying, retryLabel, action, }: Props): import("react").JSX.Element;
|
|
14
|
+
export declare function ErrorStateActions({ onRetry, retrying, retryLabel, action, retryVariant, retrySlot, }: Props): import("react").JSX.Element;
|
|
10
15
|
export {};
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { EmptyStateProps } from '../empty-state/empty-state.js';
|
|
2
3
|
export type PageLoadFailedProps = Omit<EmptyStateProps, 'action'> & {
|
|
3
4
|
/** Where "Back to the start" goes: the list without its cursor. */
|
|
4
5
|
href: string;
|
|
5
6
|
/** The link's text (translated "Back to the start" by default). */
|
|
6
7
|
linkLabel?: string;
|
|
8
|
+
/** Shows a filled Retry before the link. A returned promise keeps it loading until settled. */
|
|
9
|
+
onRetry?: () => unknown;
|
|
10
|
+
/** Forces the loading state of Retry; else derived from the promise. */
|
|
11
|
+
retrying?: boolean;
|
|
12
|
+
/** Retry's text (translated "Retry" by default). */
|
|
13
|
+
retryLabel?: ReactNode;
|
|
7
14
|
};
|
|
8
15
|
/**
|
|
9
16
|
* The page of a list opened at a cursor that failed to load: an
|
|
@@ -12,4 +19,4 @@ export type PageLoadFailedProps = Omit<EmptyStateProps, 'action'> & {
|
|
|
12
19
|
* library. For the next page of a list that is already shown, use
|
|
13
20
|
* `LoadMoreFooter`'s failed state instead, which keeps the rows.
|
|
14
21
|
*/
|
|
15
|
-
export declare function PageLoadFailed({ href, linkLabel, title, ...props }: PageLoadFailedProps): import("react").JSX.Element;
|
|
22
|
+
export declare function PageLoadFailed({ href, linkLabel, onRetry, retrying, retryLabel, title, ...props }: PageLoadFailedProps): import("react").JSX.Element;
|