@nxgt/material 3.36.0 → 3.37.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.
Files changed (45) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{button-EMWOFSDB.js → button-CB4nSAMd.js} +2 -1
  3. package/dist/charts.js +1 -1
  4. package/dist/{components-C0WjV2oy.js → components-mqgqmfvj.js} +19497 -19472
  5. package/dist/components.js +19 -19
  6. package/dist/editor.js +904 -905
  7. package/dist/lib/components/ui/actions/button/button.d.ts +8 -0
  8. package/dist/lib/components/ui/collections/data-table/hooks.d.ts +6 -1
  9. package/dist/lib/components/ui/collections/filter/bar/filter-bar-view.d.ts +1 -1
  10. package/dist/lib/components/ui/collections/filter/facets/filter-facets.d.ts +1 -1
  11. package/dist/lib/components/ui/collections/filter/facets/partials/filter-facets-footer.d.ts +4 -1
  12. package/dist/lib/components/ui/collections/filter/facets/partials/filter-facets-panel.d.ts +3 -1
  13. package/dist/lib/components/ui/collections/filter/filter-presets.d.ts +1 -1
  14. package/dist/lib/components/ui/collections/filter/query/types.d.ts +13 -0
  15. package/dist/lib/components/ui/collections/filter/sections/sheet/filter-sheet-footer.d.ts +3 -1
  16. package/dist/lib/components/ui/collections/filter/sections/sheet/filter-sheet.d.ts +3 -1
  17. package/dist/lib/components/ui/collections/filter/types-props.d.ts +3 -0
  18. package/dist/lib/components/ui/feedback/confirm-dialog/confirm-dialog.d.ts +7 -1
  19. package/dist/lib/components/ui/feedback/confirmation-dialog/confirmation-dialog.d.ts +7 -1
  20. package/dist/lib/components/ui/fields/attributes/attribute-dialog.d.ts +4 -1
  21. package/dist/lib/components/ui/fields/attributes/attributes-field/attributes-dialog-field.d.ts +4 -1
  22. package/dist/lib/components/ui/fields/attributes/attributes-field/attributes-inline-field.d.ts +1 -1
  23. package/dist/lib/components/ui/fields/contacts/contact-dialog.d.ts +4 -1
  24. package/dist/lib/components/ui/fields/contacts/contacts-dialog-form-field.d.ts +4 -1
  25. package/dist/lib/components/ui/fields/contacts/contacts-form-field.d.ts +4 -1
  26. package/dist/lib/components/ui/fields/opening-hours/opening-hours-dialog-form-field.d.ts +4 -1
  27. package/dist/lib/components/ui/fields/opening-hours/opening-hours-dialog.d.ts +4 -1
  28. package/dist/lib/components/ui/fields/opening-hours/opening-hours-form-field.d.ts +4 -1
  29. package/dist/lib/components/ui/fields/postal-address/postal-address-dialog.d.ts +4 -1
  30. package/dist/lib/components/ui/fields/postal-address/postal-address-form-field.d.ts +4 -1
  31. package/dist/lib/components/ui/media/image-cropper/image-cropper.d.ts +4 -1
  32. package/dist/lib/components/ui/widgets/rich-text-editor/types.d.ts +3 -0
  33. package/dist/main.js +31 -31
  34. package/dist/map.js +1 -1
  35. package/dist/pdf-reader.js +1 -1
  36. package/dist/{public-f9CBkMZP.js → public-BdJCVnGS.js} +1 -1
  37. package/dist/{use-chat-composer-C5g_Va_g.js → use-chat-composer-C82hvxm4.js} +8 -7
  38. package/docs/components/buttons-and-actions.md +19 -1
  39. package/docs/components/data-table-filter-and-lists.md +10 -1
  40. package/docs/components/feedback-and-status.md +3 -1
  41. package/docs/components/form-fields.md +10 -4
  42. package/docs/components/media-and-files.md +1 -0
  43. package/docs/components/primitives.md +1 -1
  44. package/docs/components/rich-widgets.md +2 -2
  45. package/package.json +1 -1
@@ -41,5 +41,13 @@ export type ButtonProps = ComponentProps<'button'> & ButtonVariants & {
41
41
  tooltip?: string;
42
42
  };
43
43
  export declare function Button({ tooltip, ...props }: ButtonProps): import("react").JSX.Element;
44
+ /** One `variant` of `Button`: `filled`, `tonal`, `outlined`, `ghost` or `link`. */
45
+ export type ButtonVariant = NonNullable<ButtonVariants['variant']>;
46
+ /**
47
+ * The variant of the Cancel / Close button a component draws in its footer:
48
+ * `tonal`, under a filled Confirm. The components that draw one take a
49
+ * `cancelVariant` prop to restore another look (`'outlined'`, `'ghost'`).
50
+ */
51
+ export declare const DEFAULT_CANCEL_VARIANT: ButtonVariant;
44
52
  export type { ButtonVariants };
45
53
  export { buttonVariants };
@@ -1,4 +1,5 @@
1
1
  import { Row, RowData } from '@tanstack/react-table';
2
+ import { ButtonVariant } from '../../actions/button/button.js';
2
3
  import { DataTableFeatures } from './features.js';
3
4
  export declare function useColumnHelpers<T extends RowData>(): {
4
5
  columnHelper: import('@tanstack/table-core').ColumnHelper<{
@@ -65,7 +66,11 @@ export type DeleteRowsHandler<T extends RowData> = (rows: Row<DataTableFeatures,
65
66
  * {confirmDialog}
66
67
  * ```
67
68
  */
68
- export declare function useDeleteRowsHandler<T extends RowData>(onDelete?: (rows: T[]) => void): {
69
+ export declare function useDeleteRowsHandler<T extends RowData>(onDelete?: (rows: T[]) => void,
70
+ /** `cancelVariant`: the Cancel button's variant, default `'tonal'`. */
71
+ options?: {
72
+ cancelVariant?: ButtonVariant;
73
+ }): {
69
74
  handleDelete: DeleteRowsHandler<T>;
70
75
  confirmDialog: import("react").JSX.Element;
71
76
  };
@@ -7,4 +7,4 @@ import { FilterViewProps } from '../query/types.js';
7
7
  * CSS from the first paint). The live region tells the count; `/` and `F`
8
8
  * are its shortcuts (`F` opens the sheet on a phone).
9
9
  */
10
- export declare function FilterBarView({ label, searchLabel, searchPlaceholder, className, detachedChips, sheetTrigger, bandDensity, }: FilterViewProps): import("react").JSX.Element;
10
+ export declare function FilterBarView({ label, searchLabel, searchPlaceholder, className, detachedChips, sheetTrigger, bandDensity, cancelVariant, }: FilterViewProps): import("react").JSX.Element;
@@ -6,4 +6,4 @@ import { FilterViewProps } from '../query/types.js';
6
6
  * (N)", which opens the same sheet with the same facets (mounted there
7
7
  * only; the server renders the panel, which a phone unmounts once hydrated). One live region, the bar's.
8
8
  */
9
- export declare function FilterFacets({ label, searchLabel, searchPlaceholder, className, }: FilterViewProps): import("react").JSX.Element;
9
+ export declare function FilterFacets({ label, searchLabel, searchPlaceholder, className, cancelVariant, }: FilterViewProps): import("react").JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { ButtonVariant } from '../../../../actions/button/button.js';
1
2
  /**
2
3
  * `apply="staged"`: Reset drops the panel's edits, Apply hands them to the
3
4
  * page at once; the focus stays on the button, and the live region tells
@@ -5,4 +6,6 @@
5
6
  * focusable, and dimmed) while nothing changed; once something did,
6
7
  * "Changes not applied" starts their row and describes Apply.
7
8
  */
8
- export declare function FilterFacetsFooter(): import("react").JSX.Element;
9
+ export declare function FilterFacetsFooter({ cancelVariant, }: {
10
+ cancelVariant?: ButtonVariant;
11
+ }): import("react").JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { FilterModelField } from '@nxgt/material-core/filter';
2
+ import { ButtonVariant } from '../../../../actions/button/button.js';
2
3
  /**
3
4
  * The wide panel, from 768px: its title and "Clear all", the page's locked
4
5
  * filters, a removable chip for each condition on a field it has no section
@@ -6,6 +7,7 @@ import { FilterModelField } from '@nxgt/material-core/filter';
6
7
  * section per field (the sheet's, in its order), and with `apply="staged"`
7
8
  * Reset and Apply.
8
9
  */
9
- export declare function FilterFacetsPanel({ sections, }: {
10
+ export declare function FilterFacetsPanel({ sections, cancelVariant, }: {
10
11
  sections: readonly FilterModelField[];
12
+ cancelVariant?: ButtonVariant;
11
13
  }): import("react").JSX.Element;
@@ -5,4 +5,4 @@ import { FilterPresetsProps } from './types.js';
5
5
  * @deprecated Saved views are planned as `ViewTabs` over the filter bar (see
6
6
  * the roadmap). Will be removed in a future major.
7
7
  */
8
- export declare function FilterPresets({ presets, currentPresetId, onLoad, onSave, onDelete, onSetDefault, maxPresets, disabled, className, }: FilterPresetsProps): import("react").JSX.Element;
8
+ export declare function FilterPresets({ presets, currentPresetId, onLoad, onSave, onDelete, onSetDefault, maxPresets, disabled, className, cancelVariant, }: FilterPresetsProps): import("react").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import { FilterApply, FilterCountsOption, FilterDefaults, FilterFieldErrors, FilterLockedCondition, FilterModel, FilterPreviewCount, FilterQuery, FilterSearchApplyMode, FilterShortcutsOption } from '@nxgt/material-core/filter';
2
2
  import { ReactNode } from 'react';
3
+ import { ButtonVariant } from '../../../actions/button/button.js';
3
4
  import { FilterBarFieldProps } from '../editors/custom-types.js';
4
5
  /** The bar's spacing: `compact` draws small chips; every target stays 24px or more. */
5
6
  export type FilterDensity = 'comfortable' | 'compact';
@@ -24,6 +25,12 @@ export type FilterViewProps = {
24
25
  sheetTrigger?: boolean;
25
26
  /** `'compact'`: 6px back under the bar; see `FilterQueryProps`. */
26
27
  bandDensity?: 'comfortable' | 'compact';
28
+ /**
29
+ * The variant of the secondary button in the sheet's and the staged
30
+ * panel's footer ("Clear all", "Reset"). Default `'tonal'`; `'outlined'`
31
+ * restores the earlier look.
32
+ */
33
+ cancelVariant?: ButtonVariant;
27
34
  };
28
35
  /**
29
36
  * When the search text reaches the query: `'live'` (the default) as it is
@@ -141,6 +148,12 @@ export type FilterQueryProps = {
141
148
  * `variant="bar"` only.
142
149
  */
143
150
  bandDensity?: 'comfortable' | 'compact';
151
+ /**
152
+ * The variant of the secondary button in the sheet's and the staged
153
+ * panel's footer ("Clear all", "Reset"). Default `'tonal'`; `'outlined'`
154
+ * restores the earlier look.
155
+ */
156
+ cancelVariant?: ButtonVariant;
144
157
  /**
145
158
  * The quick filters' fields, as dashed "+ Field" pills (a switch or a
146
159
  * checkbox toggles); default: the fields declared `quick: true`.
@@ -1,3 +1,4 @@
1
+ import { ButtonVariant } from '../../../../actions/button/button.js';
1
2
  import { FilterSheetModel } from './use-filter-sheet.js';
2
3
  /**
3
4
  * The sheet's footer: "Clear all" (the conditions only, the locked ones and
@@ -5,6 +6,7 @@ import { FilterSheetModel } from './use-filter-sheet.js';
5
6
  * "Show N results", busy while the count is on its way, the focus left where
6
7
  * it is.
7
8
  */
8
- export declare function FilterSheetFooter({ sheet }: {
9
+ export declare function FilterSheetFooter({ sheet, cancelVariant, }: {
9
10
  sheet: FilterSheetModel;
11
+ cancelVariant?: ButtonVariant;
10
12
  }): import("react").JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { ButtonVariant } from '../../../../actions/button/button.js';
1
2
  import { FilterSheetModel } from './use-filter-sheet.js';
2
3
  /**
3
4
  * The phone sheet, a bottom Drawer named "Filters", mounted below 768px
@@ -5,6 +6,7 @@ import { FilterSheetModel } from './use-filter-sheet.js';
5
6
  * on its first section (or the field asked); Close, Escape, a swipe, a click
6
7
  * outside or Back dismiss it, and the focus returns to the "Filters (N)" that opened it.
7
8
  */
8
- export declare function FilterSheet({ sheet }: {
9
+ export declare function FilterSheet({ sheet, cancelVariant, }: {
9
10
  sheet: FilterSheetModel;
11
+ cancelVariant?: ButtonVariant;
10
12
  }): import("react").JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+ import { ButtonVariant } from '../../actions/button/button.js';
2
3
  import { FilterPersistenceConfig, FilterPreset, FilterPresetConfig } from './types-persistence.js';
3
4
  import { FilterSchema } from './types-schema.js';
4
5
  import { FilterValues } from './types-values.js';
@@ -61,4 +62,6 @@ export type FilterPresetsProps = {
61
62
  maxPresets?: number;
62
63
  disabled?: boolean;
63
64
  className?: string;
65
+ /** The save dialog's Cancel button variant. Default `'tonal'`. */
66
+ cancelVariant?: ButtonVariant;
64
67
  };
@@ -1,3 +1,4 @@
1
+ import { ButtonVariant } from '../../actions/button/button.js';
1
2
  export interface ConfirmDialogProps {
2
3
  open: boolean;
3
4
  onOpenChange: (open: boolean) => void;
@@ -5,6 +6,11 @@ export interface ConfirmDialogProps {
5
6
  description: string;
6
7
  confirmLabel?: string;
7
8
  cancelLabel?: string;
9
+ /**
10
+ * The variant of the Cancel button. Default `'tonal'`; `'outlined'` or
11
+ * `'ghost'` restores the earlier look.
12
+ */
13
+ cancelVariant?: ButtonVariant;
8
14
  /**
9
15
  * Runs when the user confirms. The dialog stays open, with its buttons
10
16
  * disabled, until the returned promise settles. It closes on success; on
@@ -23,4 +29,4 @@ export interface ConfirmDialogProps {
23
29
  */
24
30
  lockOnRefusal?: boolean;
25
31
  }
26
- export declare function ConfirmDialog({ open, onOpenChange, title, description, confirmLabel, cancelLabel, onConfirm, variant, loading, confirmDisabled, lockOnRefusal, }: ConfirmDialogProps): import("react").JSX.Element;
32
+ export declare function ConfirmDialog({ open, onOpenChange, title, description, confirmLabel, cancelLabel, cancelVariant, onConfirm, variant, loading, confirmDisabled, lockOnRefusal, }: ConfirmDialogProps): import("react").JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { DefaultValues, UseFormReturn } from 'react-hook-form';
3
3
  import { default as z } from 'zod';
4
+ import { ButtonVariant } from '../../actions/button/button.js';
4
5
  import { IconButtonProps } from '../../actions/icon-button/icon-button.js';
5
6
  import { CustomDialogProps } from '../custom-dialog/custom-dialog.js';
6
7
  /**
@@ -9,6 +10,11 @@ import { CustomDialogProps } from '../custom-dialog/custom-dialog.js';
9
10
  */
10
11
  export type ConfirmationDialogProps<T> = {
11
12
  cancelText?: ReactNode;
13
+ /**
14
+ * The variant of the Cancel button. Default `'tonal'`; `'outlined'` or
15
+ * `'ghost'` restores the earlier look.
16
+ */
17
+ cancelVariant?: ButtonVariant;
12
18
  confirmText?: ReactNode;
13
19
  /** Called with the schema's parsed output, only once the form is valid. */
14
20
  onConfirm?: T extends z.ZodObject<any> ? (values: z.infer<T>) => void : () => void;
@@ -19,4 +25,4 @@ export type ConfirmationDialogProps<T> = {
19
25
  } : never;
20
26
  iconProps?: IconButtonProps;
21
27
  } & Omit<CustomDialogProps, 'footer'> & Pick<IconButtonProps, 'variant' | 'color'>;
22
- export declare function ConfirmationDialog<T>({ children, formOptions, open, defaultOpen, onOpenChange, cancelText, confirmText, onConfirm, variant, color, iconProps, icon, ...props }: ConfirmationDialogProps<T>): import("react").JSX.Element;
28
+ export declare function ConfirmationDialog<T>({ children, formOptions, open, defaultOpen, onOpenChange, cancelText, cancelVariant, confirmText, onConfirm, variant, color, iconProps, icon, ...props }: ConfirmationDialogProps<T>): import("react").JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { ButtonVariant } from '../../actions/button/button.js';
1
2
  import { Attribute } from './models/attribute.js';
2
3
  export type AttributeDialogProps = {
3
4
  open: boolean;
@@ -6,7 +7,9 @@ export type AttributeDialogProps = {
6
7
  onSave: (attribute: Attribute) => void;
7
8
  onDelete?: () => void;
8
9
  disabled?: boolean;
10
+ /** The Cancel button's variant. Default `'tonal'`; `'outlined'` restores the earlier look. */
11
+ cancelVariant?: ButtonVariant;
9
12
  /** The other attributes' names; the form refuses to save one of them. */
10
13
  otherNames?: string[];
11
14
  };
12
- export declare function AttributeDialog({ open, onOpenChange, attribute, onSave, onDelete, disabled, otherNames, }: AttributeDialogProps): import("react").JSX.Element;
15
+ export declare function AttributeDialog({ open, onOpenChange, attribute, onSave, onDelete, disabled, otherNames, cancelVariant, }: AttributeDialogProps): import("react").JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { ComponentProps, ReactNode } from 'react';
2
+ import { ButtonVariant } from '../../../actions/button/button.js';
2
3
  import { Attribute } from '../models/attribute.js';
3
4
  export type AttributesDialogFieldProps = {
4
5
  attributes?: Attribute[];
@@ -9,6 +10,8 @@ export type AttributesDialogFieldProps = {
9
10
  /** Shows `helperText` as an error. */
10
11
  error?: boolean;
11
12
  helperText?: ReactNode;
13
+ /** The dialog's Cancel button variant. Default `'tonal'`; `'outlined'` restores the earlier look. */
14
+ cancelVariant?: ButtonVariant;
12
15
  } & ComponentProps<'div'>;
13
16
  /** The attributes as a list, and one dialog that edits one of them at a time. */
14
- export declare function AttributesDialogField({ attributes, onChange, readonly, disabled, label, error, helperText, className, ...props }: AttributesDialogFieldProps): import("react").JSX.Element;
17
+ export declare function AttributesDialogField({ attributes, onChange, readonly, disabled, label, error, helperText, className, cancelVariant, ...props }: AttributesDialogFieldProps): import("react").JSX.Element;
@@ -5,4 +5,4 @@ import { AttributesDialogFieldProps } from './attributes-dialog-field.js';
5
5
  * changes from outside (a form `reset`), without echoing it back. A new array
6
6
  * with the same content is not a change.
7
7
  */
8
- export declare function AttributesInlineField({ attributes, onChange, disabled, label, error, helperText, className, readonly: _readonly, ...props }: AttributesDialogFieldProps): import("react").JSX.Element;
8
+ export declare function AttributesInlineField({ attributes, onChange, disabled, label, error, helperText, className, readonly: _readonly, cancelVariant: _cancelVariant, ...props }: AttributesDialogFieldProps): import("react").JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { ButtonVariant } from '../../actions/button/button.js';
1
2
  import { Contact } from './models.js';
2
3
  export type ContactDialogProps = {
3
4
  open: boolean;
@@ -6,5 +7,7 @@ export type ContactDialogProps = {
6
7
  onSave: (contact: Contact) => void;
7
8
  onDelete?: () => void;
8
9
  disabled?: boolean;
10
+ /** The Cancel button's variant. Default `'tonal'`; `'outlined'` restores the earlier look. */
11
+ cancelVariant?: ButtonVariant;
9
12
  };
10
- export declare function ContactDialog({ open, onOpenChange, contact, onSave, onDelete, disabled, }: ContactDialogProps): import("react").JSX.Element;
13
+ export declare function ContactDialog({ open, onOpenChange, contact, onSave, onDelete, disabled, cancelVariant, }: ContactDialogProps): import("react").JSX.Element;
@@ -1,9 +1,12 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { UseControllerProps } from 'react-hook-form';
3
+ import { ButtonVariant } from '../../actions/button/button.js';
3
4
  export type ContactsDialogFieldProps<T extends Record<string, any>> = Pick<UseControllerProps<T>, 'control' | 'name'> & {
4
5
  className?: string;
5
6
  disabled?: boolean;
6
7
  label?: string;
8
+ /** The dialog's Cancel button variant. Default `'tonal'`; `'outlined'` restores the earlier look. */
9
+ cancelVariant?: ButtonVariant;
7
10
  } & Omit<ComponentProps<'div'>, 'name'>;
8
11
  /** `ContactsFormField` with `editing="dialog"`: a list, and a dialog per contact. */
9
- export declare function ContactsDialogField<T extends Record<string, any>>({ control, name, className, disabled, label, ...props }: ContactsDialogFieldProps<T>): import("react").JSX.Element;
12
+ export declare function ContactsDialogField<T extends Record<string, any>>({ control, name, className, disabled, label, cancelVariant, ...props }: ContactsDialogFieldProps<T>): import("react").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { UseControllerProps } from 'react-hook-form';
3
+ import { ButtonVariant } from '../../actions/button/button.js';
3
4
  export type ContactsFormFieldProps<T extends Record<string, any>> = Pick<UseControllerProps<T>, 'control' | 'name'> & {
4
5
  className?: string;
5
6
  disabled?: boolean;
@@ -12,10 +13,12 @@ export type ContactsFormFieldProps<T extends Record<string, any>> = Pick<UseCont
12
13
  editing?: 'inline' | 'dialog';
13
14
  /** `editing="inline"` only: `'list'` (default) or `'cards'`. */
14
15
  variant?: 'list' | 'cards';
16
+ /** `editing="dialog"` only: the dialog's Cancel button variant. Default `'tonal'`. */
17
+ cancelVariant?: ButtonVariant;
15
18
  } & Omit<ComponentProps<'div'>, 'name'>;
16
19
  /**
17
20
  * Contacts in a React Hook Form field (an array of `{ type, value, label?,
18
21
  * primary? }`). Inline by default; `editing="dialog"` is today's list and
19
22
  * dialog.
20
23
  */
21
- export declare function ContactsFormField<T extends Record<string, any>>({ editing, variant, ...props }: ContactsFormFieldProps<T>): import("react").JSX.Element;
24
+ export declare function ContactsFormField<T extends Record<string, any>>({ editing, variant, cancelVariant, ...props }: ContactsFormFieldProps<T>): import("react").JSX.Element;
@@ -1,10 +1,13 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { UseControllerProps } from 'react-hook-form';
3
+ import { ButtonVariant } from '../../actions/button/button.js';
3
4
  export type OpeningHoursDialogFieldProps<T extends Record<string, any>> = Pick<UseControllerProps<T>, 'control' | 'name'> & {
4
5
  className?: string;
5
6
  disabled?: boolean;
6
7
  label?: string;
7
8
  showAddAllDays?: boolean;
9
+ /** The dialog's Cancel button variant. Default `'tonal'`; `'outlined'` restores the earlier look. */
10
+ cancelVariant?: ButtonVariant;
8
11
  } & Omit<ComponentProps<'div'>, 'name'>;
9
12
  /** `OpeningHoursFormField` with `editing="dialog"`: a list, and a dialog per range. */
10
- export declare function OpeningHoursDialogField<T extends Record<string, any>>({ control, name, className, disabled, label, showAddAllDays, ...props }: OpeningHoursDialogFieldProps<T>): import("react").JSX.Element;
13
+ export declare function OpeningHoursDialogField<T extends Record<string, any>>({ control, name, className, disabled, label, showAddAllDays, cancelVariant, ...props }: OpeningHoursDialogFieldProps<T>): import("react").JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { ButtonVariant } from '../../actions/button/button.js';
1
2
  import { OpeningHour } from './models.js';
2
3
  export type OpeningHoursDialogProps = {
3
4
  open: boolean;
@@ -6,5 +7,7 @@ export type OpeningHoursDialogProps = {
6
7
  onSave: (value: OpeningHour) => void;
7
8
  onDelete?: () => void;
8
9
  disabled?: boolean;
10
+ /** The Cancel button's variant. Default `'tonal'`; `'outlined'` restores the earlier look. */
11
+ cancelVariant?: ButtonVariant;
9
12
  };
10
- export declare function OpeningHoursDialog({ open, onOpenChange, value, onSave, onDelete, disabled, }: OpeningHoursDialogProps): import("react").JSX.Element;
13
+ export declare function OpeningHoursDialog({ open, onOpenChange, value, onSave, onDelete, disabled, cancelVariant, }: OpeningHoursDialogProps): import("react").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { UseControllerProps } from 'react-hook-form';
3
+ import { ButtonVariant } from '../../actions/button/button.js';
3
4
  import { WeekStart } from './logic/week.js';
4
5
  export type OpeningHoursFormFieldProps<T extends Record<string, any>> = Pick<UseControllerProps<T>, 'control' | 'name'> & {
5
6
  className?: string;
@@ -13,6 +14,8 @@ export type OpeningHoursFormFieldProps<T extends Record<string, any>> = Pick<Use
13
14
  editing?: 'inline' | 'dialog';
14
15
  /** `editing="dialog"` only: the "Add All Days" button. */
15
16
  showAddAllDays?: boolean;
17
+ /** `editing="dialog"` only: the dialog's Cancel button variant. Default `'tonal'`. */
18
+ cancelVariant?: ButtonVariant;
16
19
  /** `editing="inline"` only: the first day of the week, `0` Sunday. */
17
20
  weekStartsOn?: WeekStart;
18
21
  /** `editing="inline"` only: the locale of day and time names. */
@@ -22,4 +25,4 @@ export type OpeningHoursFormFieldProps<T extends Record<string, any>> = Pick<Use
22
25
  * Opening hours in a React Hook Form field (an array of one entry per
23
26
  * range). Inline by default; `editing="dialog"` is today's list and dialog.
24
27
  */
25
- export declare function OpeningHoursFormField<T extends Record<string, any>>({ editing, showAddAllDays, weekStartsOn, locale, ...props }: OpeningHoursFormFieldProps<T>): import("react").JSX.Element;
28
+ export declare function OpeningHoursFormField<T extends Record<string, any>>({ editing, showAddAllDays, cancelVariant, weekStartsOn, locale, ...props }: OpeningHoursFormFieldProps<T>): import("react").JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { ButtonVariant } from '../../actions/button/button.js';
1
2
  import { PostalAddressFieldValue } from './models.js';
2
3
  export type PostalAddressDialogProps = {
3
4
  open: boolean;
@@ -6,5 +7,7 @@ export type PostalAddressDialogProps = {
6
7
  onSave: (value: PostalAddressFieldValue) => void;
7
8
  onDelete?: () => void;
8
9
  disabled?: boolean;
10
+ /** The Cancel button's variant. Default `'tonal'`; `'outlined'` restores the earlier look. */
11
+ cancelVariant?: ButtonVariant;
9
12
  };
10
- export declare function PostalAddressDialog({ open, onOpenChange, value, onSave, onDelete, disabled, }: PostalAddressDialogProps): import("react").JSX.Element;
13
+ export declare function PostalAddressDialog({ open, onOpenChange, value, onSave, onDelete, disabled, cancelVariant, }: PostalAddressDialogProps): import("react").JSX.Element;
@@ -1,8 +1,11 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { UseControllerProps } from 'react-hook-form';
3
+ import { ButtonVariant } from '../../actions/button/button.js';
3
4
  export type PostalAddressFormFieldProps<T extends Record<string, any>> = Pick<UseControllerProps<T>, 'control' | 'name'> & {
4
5
  className?: string;
5
6
  disabled?: boolean;
6
7
  label?: string;
8
+ /** The dialog's Cancel button variant. Default `'tonal'`; `'outlined'` restores the earlier look. */
9
+ cancelVariant?: ButtonVariant;
7
10
  } & Omit<ComponentProps<'div'>, 'name'>;
8
- export declare function PostalAddressFormField<T extends Record<string, any>>({ control, name, className, disabled, label, ...props }: PostalAddressFormFieldProps<T>): import("react").JSX.Element;
11
+ export declare function PostalAddressFormField<T extends Record<string, any>>({ control, name, className, disabled, label, cancelVariant, ...props }: PostalAddressFormFieldProps<T>): import("react").JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { ButtonVariant } from '../../actions/button/button.js';
1
2
  import { ImageCropResult, ImageCropShape } from './types.js';
2
3
  export type ImageCropperProps = {
3
4
  src: string;
@@ -6,6 +7,8 @@ export type ImageCropperProps = {
6
7
  fileName?: string;
7
8
  onCrop: (result: ImageCropResult) => void;
8
9
  onCancel?: () => void;
10
+ /** The Cancel button's variant. Default `'tonal'`; `'ghost'` restores the earlier look. */
11
+ cancelVariant?: ButtonVariant;
9
12
  className?: string;
10
13
  };
11
- export declare function ImageCropper({ src, aspect: aspectProp, cropShape, fileName, onCrop, onCancel, className, }: ImageCropperProps): import("react").JSX.Element;
14
+ export declare function ImageCropper({ src, aspect: aspectProp, cropShape, fileName, onCrop, onCancel, cancelVariant, className, }: ImageCropperProps): import("react").JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { ButtonVariant } from '../../actions/button/button.js';
1
2
  import { RichTextMentionSuggestion } from '../editor/extensions/mention/mention-items.js';
2
3
  import { LegacyFeatureFlags } from '../editor/kit/legacy-flags.js';
3
4
  /** The 15 on/off flags of the old editor (`options.features`); the core owns the type. */
@@ -9,6 +10,8 @@ export interface RichTextEditorOptions {
9
10
  save?: string;
10
11
  cancel?: string;
11
12
  };
13
+ /** The Cancel button's variant. Default `'tonal'`; `'ghost'` restores the earlier look. */
14
+ cancelVariant?: ButtonVariant;
12
15
  /**
13
16
  * `@` suggestions: plain names, or `MentionItem`s (the type `MentionList`
14
17
  * and `ChatComposer` take). An item inserts its `id` and shows its `label`.