@nxgt/material 3.71.0 → 3.73.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 (86) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +1 -1
  3. package/dist/{alert-dialog-y2pbowVh.js → alert-dialog-A8K8zai1.js} +1 -1
  4. package/dist/{async-slice-CGfWBOaV.js → async-slice-B8933IHY.js} +1 -1
  5. package/dist/{button-D54Hrjo0.js → button-C8moFnIT.js} +1 -1
  6. package/dist/charts.js +3 -3
  7. package/dist/{chip-B5MhXBfm.js → chip-B6AY1E91.js} +2 -2
  8. package/dist/{code-editor-mULs4SL8.js → code-editor-DQZIKL54.js} +5 -5
  9. package/dist/code-editor.js +5 -5
  10. package/dist/{code-language-items-BWDnqUqn.js → code-language-items-8VL0aMKG.js} +2 -2
  11. package/dist/components/ui/fields/attributes/attribute-values-form/attribute-values-form.css +5 -0
  12. package/dist/{components-B_taYVcd.js → components-Cvp2F9uk.js} +16928 -16733
  13. package/dist/components.js +28 -28
  14. package/dist/{dialog-AjCYZ2Vz.js → dialog-WuLTwxkr.js} +5 -5
  15. package/dist/dnd.js +1 -1
  16. package/dist/{dropdown-menu-LN60hu_3.js → dropdown-menu-tadySeGH.js} +1 -1
  17. package/dist/editor.js +10 -10
  18. package/dist/{empty-state-Bo8G8W8G.js → empty-state-ZYiFSSBQ.js} +2 -2
  19. package/dist/{field-blur-Cnd6FfCH.js → field-blur-BYR0yE5L.js} +1 -1
  20. package/dist/{field-blur-context-bUFZj8iN.js → field-blur-context-bEhByoK-.js} +1 -1
  21. package/dist/{hooks-Dt4PkQiZ.js → hooks-GpwD8iDu.js} +2 -2
  22. package/dist/hooks.js +2 -2
  23. package/dist/{hover-card-QtGnvsnc.js → hover-card-BowaI_ra.js} +1 -1
  24. package/dist/i18n.js +3 -3
  25. package/dist/{icon-badge-DLbpCQIm.js → icon-badge-B1B0Lg02.js} +3 -3
  26. package/dist/{icon-button-C59DqL7L.js → icon-button-BbGU17cb.js} +1 -1
  27. package/dist/lib/components/ui/collections/filter/use-filter-field-config.d.ts +3 -0
  28. package/dist/lib/components/ui/fields/attributes/attribute-values-form-field-set/attribute-values-form-field-set.d.ts +5 -1
  29. package/dist/lib/components/ui/fields/choice-list/choice-list-focus.d.ts +42 -0
  30. package/dist/lib/components/ui/fields/contacts/contact-dialog.d.ts +8 -2
  31. package/dist/lib/components/ui/fields/contacts/contacts-dialog-form-field.d.ts +4 -1
  32. package/dist/lib/components/ui/fields/contacts/contacts-editor.d.ts +15 -2
  33. package/dist/lib/components/ui/fields/contacts/contacts-form-field.d.ts +6 -1
  34. package/dist/lib/components/ui/fields/contacts/logic/offered-types.d.ts +3 -0
  35. package/dist/lib/components/ui/fields/contacts/models.d.ts +2 -0
  36. package/dist/lib/components/ui/fields/contacts/partials/contact-fields.d.ts +4 -2
  37. package/dist/lib/components/ui/fields/contacts/partials/contact-groups.d.ts +4 -2
  38. package/dist/lib/components/ui/fields/contacts/partials/contact-row.d.ts +4 -2
  39. package/dist/lib/components/ui/fields/contacts/partials/phone-sheet.d.ts +4 -2
  40. package/dist/lib/components/ui/fields/contacts/partials/quick-add.d.ts +4 -2
  41. package/dist/lib/components/ui/fields/contacts/partials/row-actions.d.ts +3 -1
  42. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  43. package/dist/lib/components/ui/media/upload/network-upload-field/network-upload-field.d.ts +5 -0
  44. package/dist/lib/components/ui/media/upload/network-upload-field/partials/network-upload-field-items.d.ts +2 -1
  45. package/dist/lib/components/ui/media/upload/network-upload-field/upload-constraints.d.ts +10 -2
  46. package/dist/lib/components/ui/overlays/dialog/dialog-body-overflow.d.ts +7 -0
  47. package/dist/lib/components/ui/overlays/dialog/dialog-body.d.ts +10 -0
  48. package/dist/lib/components/ui/overlays/dialog/dialog-variants.d.ts +4 -0
  49. package/dist/lib/components/ui/overlays/dialog/dialog.d.ts +1 -0
  50. package/dist/lib/components/ui/selection/autocomplete/autocomplete-enter.d.ts +7 -3
  51. package/dist/lib/i18n/resources/en/en.d.ts +7 -0
  52. package/dist/lib/i18n/resources/en/material.json.d.ts +7 -0
  53. package/dist/lib/i18n/resources/fr/fr.d.ts +7 -0
  54. package/dist/lib/i18n/resources/fr/material.json.d.ts +7 -0
  55. package/dist/lib/i18n/resources/resources.d.ts +14 -0
  56. package/dist/lib/i18n/translator.d.ts +1 -1
  57. package/dist/lib.js +1 -1
  58. package/dist/main.js +42 -42
  59. package/dist/map.js +8 -8
  60. package/dist/material.css +1 -1
  61. package/dist/pdf-reader.js +1 -1
  62. package/dist/print.js +1 -1
  63. package/dist/{public-BSaSCwy7.js → public-CFj2qn7l.js} +9 -9
  64. package/dist/{rich-code-block-BFVj1GWz.js → rich-code-block-B7Teg7-e.js} +5 -5
  65. package/dist/{sortable-provider-REwyjiOZ.js → sortable-provider-DU2zp_jn.js} +19 -13
  66. package/dist/{spinner-BFZxqdWC.js → spinner-C5Kb6MWu.js} +1 -1
  67. package/dist/theme-picker.js +2 -2
  68. package/dist/{theme-toggle-BHi6miz-.js → theme-toggle-B1JZg7mU.js} +1 -1
  69. package/dist/{toolbar-items-BTtoKVlx.js → toolbar-items-m_1FTFPQ.js} +3 -3
  70. package/dist/{translate-material-R-uLthBy.js → translate-material-D1ndrd7a.js} +1 -1
  71. package/dist/{translator-ClbXOGQO.js → translator-CtEC_AQa.js} +14 -0
  72. package/dist/{typography-v-PJ4Zco.js → typography-prQHb3gI.js} +1 -1
  73. package/dist/{use-chat-composer-Rhan4Xv0.js → use-chat-composer-BAoUsyKN.js} +1924 -1911
  74. package/dist/{use-heading-spy-CJnBkCY0.js → use-heading-spy-Bzj5mIUZ.js} +4 -4
  75. package/dist/{use-material-translation-CCWUeiEn.js → use-material-translation-C6H0B4kE.js} +1 -1
  76. package/dist/{use-return-focus-Duk40DZI.js → use-return-focus-CkUX1HFl.js} +1 -1
  77. package/docs/components/form-fields.md +72 -3
  78. package/docs/components/media-and-files.md +4 -1
  79. package/docs/components/overlays-and-menus.md +20 -1
  80. package/docs/components/primitives.md +2 -1
  81. package/docs/components/selection-and-choice.md +4 -2
  82. package/docs/guides/forms.md +8 -3
  83. package/docs/guides/i18n.md +1 -1
  84. package/docs/troubleshooting.md +114 -1
  85. package/lib/components/ui/fields/attributes/attribute-values-form/attribute-values-form.css +5 -0
  86. package/package.json +3 -2
@@ -16,6 +16,7 @@ type DialogContentProps = ComponentProps<typeof DialogPrimitive.Content> & Dialo
16
16
  container?: HTMLElement | null;
17
17
  };
18
18
  declare function DialogContent({ className, children, onInteractOutside, onPointerDownOutside, onFocusOutside, onOpenAutoFocus, onCloseAutoFocus, onEscapeKeyDown, size, mobilePresentation, scrim, container, ref, ...props }: DialogContentProps): import("react").JSX.Element;
19
+ export { DialogBody } from './dialog-body.js';
19
20
  export { DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from './dialog-parts.js';
20
21
  export type { DialogScrim } from './dialog-variants.js';
21
22
  export type { DialogContentProps };
@@ -4,6 +4,8 @@ type Enter = {
4
4
  /** Typed text that matches no option: the "Add" button shows. */
5
5
  showAddButton: boolean;
6
6
  open: boolean;
7
+ /** `mode="multiple"`: Enter never submits the form. */
8
+ multiple?: boolean;
7
9
  onAdd: () => void;
8
10
  };
9
11
  /**
@@ -11,8 +13,10 @@ type Enter = {
11
13
  * the list, so it never submits the surrounding form while it has something to
12
14
  * do. A highlighted option is picked (Base UI), else a `freeSolo` text with no
13
15
  * match is added; either way, as with an open list, the default action (the
14
- * form's implicit submission) is cancelled. Enter on a closed list, or with
15
- * nothing typed, still submits as a plain input does.
16
+ * form's implicit submission) is cancelled. In `mode="multiple"` it is always
17
+ * cancelled: the field is a tags box, so the Enter that follows a pick (list
18
+ * closed, input empty) must not save the form (#2199). In `single` mode, Enter
19
+ * on a closed list with nothing typed still submits as a plain input does.
16
20
  */
17
- export declare function enterHandler({ freeSolo, showAddButton, open, onAdd }: Enter): (event: KeyboardEvent<HTMLInputElement>) => void;
21
+ export declare function enterHandler({ freeSolo, showAddButton, open, multiple, onAdd, }: Enter): (event: KeyboardEvent<HTMLInputElement>) => void;
18
22
  export {};
@@ -119,6 +119,13 @@ export declare const en: {
119
119
  "on-this-page": string;
120
120
  };
121
121
  upload: {
122
+ accept: {
123
+ images: string;
124
+ audio: string;
125
+ video: string;
126
+ text: string;
127
+ application: string;
128
+ };
122
129
  dropzone: {
123
130
  idle: string;
124
131
  "at-capacity": string;
@@ -109,6 +109,13 @@ declare const _default: {
109
109
  "on-this-page": "On this page"
110
110
  },
111
111
  "upload": {
112
+ "accept": {
113
+ "images": "Images",
114
+ "audio": "Audio",
115
+ "video": "Videos",
116
+ "text": "Text files",
117
+ "application": "Documents"
118
+ },
112
119
  "dropzone": {
113
120
  "idle": "Drag & drop files here, or click to browse",
114
121
  "at-capacity": "Maximum number of files reached",
@@ -119,6 +119,13 @@ export declare const fr: {
119
119
  "on-this-page": string;
120
120
  };
121
121
  upload: {
122
+ accept: {
123
+ images: string;
124
+ audio: string;
125
+ video: string;
126
+ text: string;
127
+ application: string;
128
+ };
122
129
  dropzone: {
123
130
  idle: string;
124
131
  "at-capacity": string;
@@ -109,6 +109,13 @@ declare const _default: {
109
109
  "on-this-page": "Sur cette page"
110
110
  },
111
111
  "upload": {
112
+ "accept": {
113
+ "images": "Images",
114
+ "audio": "Audio",
115
+ "video": "Vidéos",
116
+ "text": "Fichiers texte",
117
+ "application": "Documents"
118
+ },
112
119
  "dropzone": {
113
120
  "idle": "Glissez-déposez des fichiers ici, ou cliquez pour parcourir",
114
121
  "at-capacity": "Nombre maximum de fichiers atteint",
@@ -117,6 +117,13 @@ export declare const resources: {
117
117
  "on-this-page": string;
118
118
  };
119
119
  upload: {
120
+ accept: {
121
+ images: string;
122
+ audio: string;
123
+ video: string;
124
+ text: string;
125
+ application: string;
126
+ };
120
127
  dropzone: {
121
128
  idle: string;
122
129
  "at-capacity": string;
@@ -3158,6 +3165,13 @@ export declare const resources: {
3158
3165
  "on-this-page": string;
3159
3166
  };
3160
3167
  upload: {
3168
+ accept: {
3169
+ images: string;
3170
+ audio: string;
3171
+ video: string;
3172
+ text: string;
3173
+ application: string;
3174
+ };
3161
3175
  dropzone: {
3162
3176
  idle: string;
3163
3177
  "at-capacity": string;