@nxgt/material 2.4.1 → 2.5.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 (170) hide show
  1. package/README.md +28 -19
  2. package/dist/{_Uint8Array-DEXn42kj.js → _Uint8Array-DuTT6911.js} +1 -1
  3. package/dist/_overRest-93z6TD9V.js +81 -0
  4. package/dist/{abnfDiagram-O67JEVCF-C7NxOWqd.js → abnfDiagram-O67JEVCF-Cl4ukf6a.js} +4 -4
  5. package/dist/{architectureDiagram-NJMV4G6O-BIvwyzEh.js → architectureDiagram-NJMV4G6O-WmFlBQF5.js} +7 -7
  6. package/dist/{client-only.utils-DhcBUmau.js → async-slice-B8Xv2BLH.js} +164 -93
  7. package/dist/{blockDiagram-BEXU5L5S-CD5PW_mQ.js → blockDiagram-BEXU5L5S-C8UXdLfB.js} +11 -11
  8. package/dist/{c4Diagram-YGBWAQC7-WgqlRIL5.js → c4Diagram-YGBWAQC7-D9xSt2QO.js} +8 -8
  9. package/dist/{channel-Ba8pEAWx.js → channel-Dg92Hoym.js} +1 -1
  10. package/dist/{chunk-3FUC2YCW-CNBUvTSg.js → chunk-3FUC2YCW-4gCRt6fO.js} +8 -8
  11. package/dist/{chunk-5DYCD2WN-Bqi3iL5i.js → chunk-5DYCD2WN-Cja1INgd.js} +3 -3
  12. package/dist/{chunk-6AEJRKK7-DDXoGWDs.js → chunk-6AEJRKK7-3YWRP4aV.js} +2 -2
  13. package/dist/{chunk-742MDFTN-nG_ROTnT.js → chunk-742MDFTN-Cs1qGiTK.js} +2 -2
  14. package/dist/{chunk-7INBJB4K-Dg64CbhT.js → chunk-7INBJB4K-BY5n77ka.js} +6 -6
  15. package/dist/{chunk-7M6MHVWA-DEh1Crrc.js → chunk-7M6MHVWA-DnPXbiTM.js} +9 -9
  16. package/dist/{chunk-7PRAP22T-DIiYRAce.js → chunk-7PRAP22T-_Av9vcXz.js} +1 -1
  17. package/dist/{chunk-GNY47TPC-vOPvRE_8.js → chunk-GNY47TPC-DLqgU2SJ.js} +11 -11
  18. package/dist/{chunk-GTNCS2PH-CzDYTYNy.js → chunk-GTNCS2PH-BZ9WMD1v.js} +3 -3
  19. package/dist/{chunk-GWA4HPMP-CmsxMX3A.js → chunk-GWA4HPMP-Co-A6dtV.js} +3 -3
  20. package/dist/{chunk-MBY4JIJT-IA2XBafa.js → chunk-MBY4JIJT-C3RQP_Nk.js} +4 -4
  21. package/dist/{chunk-NETBCI7D-CQV8lo68.js → chunk-NETBCI7D-CBowDvwz.js} +1 -1
  22. package/dist/{chunk-O7XYJQB3-C87zK8E5.js → chunk-O7XYJQB3-A66QSOPA.js} +1 -1
  23. package/dist/{chunk-UA2S7LBM-B0LGFGu3.js → chunk-UA2S7LBM-BNeHeMx9.js} +6 -6
  24. package/dist/{chunk-WEXAMYUT-C-QP0DFq.js → chunk-WEXAMYUT-CucJfehv.js} +2 -2
  25. package/dist/{chunk-XXDRQBXY-Bq4sFnO2.js → chunk-XXDRQBXY-FgXU14Bh.js} +1 -1
  26. package/dist/{chunk-Z7XXMR3K-DcqSgI9Q.js → chunk-Z7XXMR3K-dRJc1Z30.js} +8 -8
  27. package/dist/{chunk-ZIGJFQKS-HDJ6e6OJ.js → chunk-ZIGJFQKS-C3xUAXJq.js} +3 -3
  28. package/dist/{classDiagram-v2-NBCMYWYE-tU42Be-2.js → classDiagram-v2-NBCMYWYE-CQmePeL4.js} +14 -14
  29. package/dist/{components-NLbPtyeB.js → components-CUkJhBwK.js} +26367 -25835
  30. package/dist/components.js +6 -6
  31. package/dist/{cose-bilkent-JH36ORCC-11-T1rfk.js → cose-bilkent-JH36ORCC-DRUT3qBb.js} +2 -2
  32. package/dist/{cynefinDiagram-VND7K2PF-1kHi2rGa.js → cynefinDiagram-VND7K2PF-B9HrdQW8.js} +4 -4
  33. package/dist/{dagre-6A5THRUB-CXwkkHFr.js → dagre-6A5THRUB-BhyJENrD.js} +574 -615
  34. package/dist/{diagram-22UHCM2B-BswK7SlD.js → diagram-22UHCM2B-CJc0JoTV.js} +15 -15
  35. package/dist/{diagram-3UASUU5V-5p5ra9Yi.js → diagram-3UASUU5V-0P3Cnq5H.js} +7 -7
  36. package/dist/{diagram-ATOU4E4O-Clju_0RY.js → diagram-ATOU4E4O-CNY-8kl0.js} +3 -3
  37. package/dist/{diagram-CDSNMT55-w7kkJ6MU.js → diagram-CDSNMT55-C8Mk1smi.js} +5 -5
  38. package/dist/{diagram-MLGK6HIB-mUOtRVmm.js → diagram-MLGK6HIB-CpfeILwW.js} +4 -4
  39. package/dist/{diagram-MPIPVDR6-DEUw58dq.js → diagram-MPIPVDR6-Do7bUnTd.js} +4 -4
  40. package/dist/{dist-gYpAi-su.js → dist-C3YK_ean.js} +1 -1
  41. package/dist/{dist-CeHNxLJG.js → dist-CRbPtqwD.js} +1 -1
  42. package/dist/dnd.js +1 -1
  43. package/dist/{ebnfDiagram-ZINNZB2B-BYfatie5.js → ebnfDiagram-ZINNZB2B-1GewX9Zq.js} +4 -4
  44. package/dist/{elk-276RUBZZ-CuGpDp18.js → elk-276RUBZZ-CvgDuHoY.js} +13 -13
  45. package/dist/{erDiagram-OPXOYQCR-vpNBbFgR.js → erDiagram-OPXOYQCR-BFgRy8E9.js} +14 -14
  46. package/dist/{field-blur-EUOqpHbF.js → field-blur-D1eQk-49.js} +1109 -1083
  47. package/dist/flowDiagram-KWPJA3E3-DGaa9iT2.js +17 -0
  48. package/dist/{ganttDiagram-FUAMR5RP-DC1sfzgs.js → ganttDiagram-FUAMR5RP-CDGrtGHY.js} +6 -6
  49. package/dist/{gitGraphDiagram-X574FWY7-DcGaPSwy.js → gitGraphDiagram-X574FWY7-80yOq8dE.js} +3 -3
  50. package/dist/{graphlib-DvOFXJbI.js → graphlib-Dt-isUVV.js} +103 -139
  51. package/dist/hooks.js +2 -2
  52. package/dist/{i18n-provider-XTTU9ArK.js → i18n-provider-Drsc2YXX.js} +1 -1
  53. package/dist/i18n.js +6 -6
  54. package/dist/{icon-button-Dl9PDYCE.js → icon-button-BxySFfrr.js} +581 -581
  55. package/dist/{infoDiagram-VRGFBTTK-Cvj167dl.js → infoDiagram-VRGFBTTK-Cboh-B9n.js} +3 -3
  56. package/dist/isArrayLikeObject-BhWbq65y.js +28 -0
  57. package/dist/isEmpty-DdlzV8Ue.js +53 -0
  58. package/dist/{ishikawaDiagram-OU5B5YK6-ChBwjCfr.js → ishikawaDiagram-OU5B5YK6-DwTd1YxL.js} +4 -4
  59. package/dist/{journeyDiagram-ZHPQQLJL-C6djNSgq.js → journeyDiagram-ZHPQQLJL-BuLKqWS3.js} +4 -4
  60. package/dist/{kanban-definition-PNTS6WVX-BRoa-Yp5.js → kanban-definition-PNTS6WVX-S8plI4wn.js} +10 -10
  61. package/dist/lib/components/ui/actions/button/button.compound-variants.d.ts +114 -0
  62. package/dist/lib/components/ui/actions/button/button.d.ts +4 -7
  63. package/dist/lib/components/ui/actions/button/button.variants.d.ts +7 -0
  64. package/dist/lib/components/ui/actions/button/has-text-content.d.ts +10 -0
  65. package/dist/lib/components/ui/actions/icon-button/icon-button.variants.d.ts +1 -1
  66. package/dist/lib/components/ui/collections/data-table/data-table-context.d.ts +4 -0
  67. package/dist/lib/components/ui/collections/data-table/data-table-pagination.d.ts +3 -1
  68. package/dist/lib/components/ui/collections/data-table/data-table.d.ts +12 -2
  69. package/dist/lib/components/ui/collections/data-table/hooks.d.ts +13 -13
  70. package/dist/lib/components/ui/collections/data-table/partials/data-table-body.d.ts +9 -5
  71. package/dist/lib/components/ui/collections/data-table/partials/data-table-empty-row.d.ts +14 -0
  72. package/dist/lib/components/ui/collections/data-table/partials/data-table-skeleton-rows.d.ts +7 -0
  73. package/dist/lib/components/ui/collections/filter/filter-field-number-range.d.ts +15 -0
  74. package/dist/lib/components/ui/collections/pagination/index.d.ts +1 -1
  75. package/dist/lib/components/ui/collections/pagination/pagination.d.ts +9 -1
  76. package/dist/lib/components/ui/display/chip/chip.d.ts +1 -1
  77. package/dist/lib/components/ui/feedback/toast/toast.d.ts +9 -4
  78. package/dist/lib/components/ui/fields/otp-field/index.d.ts +1 -0
  79. package/dist/lib/components/ui/fields/otp-field/input-otp.d.ts +1 -1
  80. package/dist/lib/components/ui/fields/slider/slider-header.d.ts +15 -0
  81. package/dist/lib/components/ui/fields/slider/slider.d.ts +7 -0
  82. package/dist/lib/components/ui/fields/switch/switch.d.ts +7 -0
  83. package/dist/lib/components/ui/layout/stepper/stepper-step.d.ts +17 -0
  84. package/dist/lib/components/ui/media/camera/camera-content.d.ts +1 -2
  85. package/dist/lib/components/ui/media/camera/camera-context.d.ts +4 -0
  86. package/dist/lib/components/ui/media/camera/camera-provider.d.ts +2 -0
  87. package/dist/lib/components/ui/media/camera/camera.d.ts +6 -3
  88. package/dist/lib/components/ui/media/camera/capture-photo.d.ts +13 -0
  89. package/dist/lib/components/ui/media/camera/index.d.ts +9 -1
  90. package/dist/lib/components/ui/media/camera/state/camera.reducers.d.ts +1 -1
  91. package/dist/lib/components/ui/media/camera/state/camera.slice.d.ts +4 -9
  92. package/dist/lib/components/ui/media/camera/state/camera.store.d.ts +11 -5
  93. package/dist/lib/components/ui/media/camera/state/camera.thunks.d.ts +4 -4
  94. package/dist/lib/components/ui/media/camera/types.d.ts +19 -9
  95. package/dist/lib/components/ui/media/camera/use-camera.d.ts +5 -11
  96. package/dist/lib/components/ui/media/camera/utils/camera.utils.d.ts +0 -1
  97. package/dist/lib/components/ui/media/index.d.ts +1 -0
  98. package/dist/lib/components/ui/overlays/dialog/dialog-outside.d.ts +5 -0
  99. package/dist/lib/components/ui/overlays/dialog/dialog-scroll-content.d.ts +9 -0
  100. package/dist/lib/components/ui/overlays/dialog/index.d.ts +1 -0
  101. package/dist/lib/components/ui/primitives/icon/icon-context.d.ts +1 -1
  102. package/dist/lib/components/ui/primitives/table/table.d.ts +6 -1
  103. package/dist/lib/components/ui/selection/index.d.ts +1 -0
  104. package/dist/lib/components/ui/selection/native-select/index.d.ts +1 -0
  105. package/dist/lib/components/ui/selection/native-select/native-select.d.ts +11 -0
  106. package/dist/lib/components/ui/selection/radio-group/radio-group.d.ts +8 -1
  107. package/dist/lib/i18n/resources/en/en.d.ts +7 -0
  108. package/dist/lib/i18n/resources/en/material.json.d.ts +8 -1
  109. package/dist/lib/i18n/resources/fr/fr.d.ts +7 -0
  110. package/dist/lib/i18n/resources/fr/material.json.d.ts +8 -1
  111. package/dist/lib/i18n/resources/resources.d.ts +14 -0
  112. package/dist/lib/i18n/translator.d.ts +1 -1
  113. package/dist/lib/lib/redux/status-slice.d.ts +1 -1
  114. package/dist/lib.js +295 -4
  115. package/dist/main.js +16 -16
  116. package/dist/map.js +5 -5
  117. package/dist/material.css +1 -1
  118. package/dist/merge-a7J0YkZX.js +156 -0
  119. package/dist/{mermaid.core-CEDjsxgL.js → mermaid.core-CE34byhz.js} +49 -49
  120. package/dist/{mindmap-definition-NLK3R4M7-BYtcw4Io.js → mindmap-definition-NLK3R4M7-emoij-nW.js} +13 -13
  121. package/dist/{pegDiagram-GJSIUBJH-Dcm3LCQX.js → pegDiagram-GJSIUBJH-CAO6aYvj.js} +4 -4
  122. package/dist/{pieDiagram-5QR66LMP-8ETWucra.js → pieDiagram-5QR66LMP-BdG1tWLn.js} +5 -5
  123. package/dist/print.js +2 -2
  124. package/dist/{quadrantDiagram-O4NWA36T-X05JG-jZ.js → quadrantDiagram-O4NWA36T-BCd-NwsO.js} +3 -3
  125. package/dist/{railroadDiagram-XR7U4H2S-CzOJlTUA.js → railroadDiagram-XR7U4H2S-DmKDXg8V.js} +4 -4
  126. package/dist/{requirementDiagram-PLB6GJNP-BwWSE7Fn.js → requirementDiagram-PLB6GJNP-CCcH5uSr.js} +13 -13
  127. package/dist/{sankeyDiagram-IPEJSGJF-B6YxyZMn.js → sankeyDiagram-IPEJSGJF-78cK-bfe.js} +3 -3
  128. package/dist/{sequenceDiagram-PO4LG4MO-DMLeIQ03.js → sequenceDiagram-PO4LG4MO-B2qb55A5.js} +5 -5
  129. package/dist/{sortable-provider-DuRzFvwe.js → sortable-provider-VCxPasNp.js} +17 -17
  130. package/dist/{src-CJ8DNrI1.js → src-C9kQSo6K.js} +1 -1
  131. package/dist/{stateDiagram-v2-GCMORJYK-CAqcgA-x.js → stateDiagram-v2-GCMORJYK-B4ghJrhD.js} +14 -14
  132. package/dist/{stored-language-BP90Ydtg.js → stored-language-CeD7kHui.js} +20 -2
  133. package/dist/{swimlanes-2SLR337P-DRQ2gho_.js → swimlanes-2SLR337P-DmHm2yJS.js} +12 -12
  134. package/dist/swimlanesDiagram-TC7HE7FX-Dq3gGsPj.js +28 -0
  135. package/dist/{timeline-definition-EJHVYXUP-BtvpCePa.js → timeline-definition-EJHVYXUP-EqJV_QKn.js} +5 -5
  136. package/dist/{translate-material-Ctzt0Y2N.js → translate-material-DgRdhz5d.js} +2 -2
  137. package/dist/{translator-Cfug7hC5.js → translator-B4zUVm7j.js} +1 -1
  138. package/dist/{use-heading-spy-DtVo2HBk.js → use-heading-spy-1BHMXjIn.js} +2 -2
  139. package/dist/{use-material-translation-CJswHOmK.js → use-material-translation-UbARR81K.js} +2 -2
  140. package/dist/{usecaseDiagram-POWQR4AR-DsYqBvQ-.js → usecaseDiagram-POWQR4AR-CvCl0p5N.js} +13 -13
  141. package/dist/{vennDiagram-UO4OBE2U-Aql8mhcy.js → vennDiagram-UO4OBE2U-CO0yFCI8.js} +4 -4
  142. package/dist/{wardleyDiagram-VNRHLVJA-tknlhG_t.js → wardleyDiagram-VNRHLVJA-QkwghAYo.js} +4 -4
  143. package/dist/{xychartDiagram-PMCCYNJV-CEf5bvG1.js → xychartDiagram-PMCCYNJV-BphsHFKA.js} +7 -7
  144. package/docs/components/buttons-and-actions.md +8 -3
  145. package/docs/components/data-display.md +1 -1
  146. package/docs/components/data-table-filter-and-lists.md +95 -6
  147. package/docs/components/feedback-and-status.md +3 -2
  148. package/docs/components/form-fields.md +48 -4
  149. package/docs/components/media-and-files.md +46 -7
  150. package/docs/components/navigation-and-layout.md +6 -1
  151. package/docs/components/overlays-and-menus.md +27 -2
  152. package/docs/components/primitives.md +33 -2
  153. package/docs/components/rich-widgets.md +1 -1
  154. package/docs/components/selection-and-choice.md +32 -6
  155. package/docs/guides/i18n.md +14 -8
  156. package/docs/guides/ssr.md +3 -1
  157. package/docs/previews/buttons-actions-actioncard.webp +0 -0
  158. package/docs/previews/media-files-camera.webp +0 -0
  159. package/docs/previews/navigation-layout-stepper.webp +0 -0
  160. package/docs/roadmap.md +37 -3
  161. package/docs/troubleshooting.md +109 -0
  162. package/package.json +1 -1
  163. package/dist/flowDiagram-KWPJA3E3-PC80XOp8.js +0 -17
  164. package/dist/isArrayLikeObject-CCJDO2RL.js +0 -86
  165. package/dist/lib/components/ui/media/camera/camera.provider.d.ts +0 -6
  166. package/dist/lib/components/ui/media/camera/state/index.d.ts +0 -2
  167. package/dist/lib/components/ui/media/camera/utils/index.d.ts +0 -1
  168. package/dist/lib-DIj5dvbb.js +0 -367
  169. package/dist/merge-Dm-kHFxo.js +0 -172
  170. package/dist/swimlanesDiagram-TC7HE7FX-DaXG362E.js +0 -28
@@ -1,3 +1,6 @@
1
- import { ComponentProps } from 'react';
2
- export type CameraProps = {} & ComponentProps<'div'>;
3
- export declare function Camera({ ...props }: CameraProps): import("react").JSX.Element;
1
+ /**
2
+ * Webcam preview with a start / stop toggle and a still capture. It renders
3
+ * in the browser only, after mount (`getUserMedia` has no server side), as
4
+ * in `@nxgt/material-vue`.
5
+ */
6
+ export declare const Camera: import('react').ComponentType<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
@@ -0,0 +1,13 @@
1
+ import { CameraAlert, CameraState } from './types';
2
+ export type CapturePhotoResult = {
3
+ capturedImage?: string;
4
+ alert?: CameraAlert;
5
+ isProcessing: boolean;
6
+ };
7
+ /**
8
+ * Draws the current frame of `video` onto a canvas sized by
9
+ * `captureSettings`, mirrored when asked, and returns it as a data URL.
10
+ * `null` when there is nothing to capture: not streaming, no video, or no
11
+ * `document` (on the server).
12
+ */
13
+ export declare function capturePhotoFromVideo(video: HTMLVideoElement | null, state: Pick<CameraState, 'isStreaming' | 'captureSettings'>): CapturePhotoResult | null;
@@ -1 +1,9 @@
1
- export {};
1
+ export { Camera } from './camera';
2
+ export { useCameraContext } from './camera-context';
3
+ export type { CapturePhotoResult } from './capture-photo';
4
+ export { capturePhotoFromVideo } from './capture-photo';
5
+ export type { CameraStore } from './state/camera.store';
6
+ export { createCameraStore } from './state/camera.store';
7
+ export type { CameraActions, CameraAlert, CameraContextValue, CameraDeviceInfo, CameraProps, CameraState, CaptureSettings, ImageFormat, } from './types';
8
+ export { useCamera } from './use-camera';
9
+ export { getCameraDevices, isCameraSupported, requestCameraPermissions, } from './utils/camera.utils';
@@ -1,5 +1,5 @@
1
1
  import { CameraReducerCreators } from './camera.slice';
2
- export declare const createCapturePhotoReducer: (create: CameraReducerCreators) => import('@reduxjs/toolkit').CaseReducer<import('../types').CameraState, {
2
+ export declare const createCapturePhotoReducer: (create: CameraReducerCreators) => import('@reduxjs/toolkit').CaseReducer<import('..').CameraState, {
3
3
  payload: HTMLVideoElement | null;
4
4
  type: string;
5
5
  }> & {
@@ -1,8 +1,8 @@
1
1
  import { ReducerCreators } from '@reduxjs/toolkit';
2
- import { CameraAlert, CameraState } from '../types';
2
+ import { CameraAlert, CameraDeviceInfo, CameraState } from '../types';
3
3
  export declare const cameraSlice: import('@reduxjs/toolkit').Slice<CameraState, {
4
4
  readonly setDevices: import('@reduxjs/toolkit').CaseReducer<CameraState, {
5
- payload: MediaDeviceInfo[];
5
+ payload: CameraDeviceInfo[];
6
6
  type: string;
7
7
  }> & {
8
8
  _reducerDefinitionType: import("@reduxjs/toolkit").ReducerType.reducer;
@@ -49,7 +49,7 @@ export declare const cameraSlice: import('@reduxjs/toolkit').Slice<CameraState,
49
49
  cameraSupported: false;
50
50
  } | {
51
51
  hasPermission: boolean;
52
- devices: import('../types').CameraDeviceInfo[];
52
+ devices: CameraDeviceInfo[];
53
53
  cameraSupported: true;
54
54
  }, {
55
55
  rejectValue: {
@@ -84,7 +84,7 @@ export declare const cameraSlice: import('@reduxjs/toolkit').Slice<CameraState,
84
84
  cameraSupported: false;
85
85
  } | {
86
86
  hasPermission: boolean;
87
- devices: import('../types').CameraDeviceInfo[];
87
+ devices: CameraDeviceInfo[];
88
88
  cameraSupported: true;
89
89
  }, void, {
90
90
  rejectValue: {
@@ -140,9 +140,4 @@ export declare const cameraSlice: import('@reduxjs/toolkit').Slice<CameraState,
140
140
  }>;
141
141
  };
142
142
  }, "camera", "camera", import('@reduxjs/toolkit').SliceSelectors<CameraState>>;
143
- type CameraSliceActions = typeof cameraSlice.actions;
144
- export type CameraActions = {
145
- [K in keyof CameraSliceActions]: (...args: Parameters<CameraSliceActions[K]>) => void;
146
- };
147
143
  export type CameraReducerCreators = ReducerCreators<CameraState>;
148
- export {};
@@ -1,10 +1,16 @@
1
1
  import { CameraState } from '../types';
2
- export declare const store: import('@reduxjs/toolkit').EnhancedStore<CameraState, import('redux').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
2
+ /**
3
+ * A store for one `Camera`. Each instance creates its own, never a module
4
+ * singleton: two cameras on a page, or two requests on a server, would
5
+ * otherwise share one state.
6
+ */
7
+ export declare function createCameraStore(preloadedState?: Partial<CameraState>): import('@reduxjs/toolkit').EnhancedStore<CameraState, import('redux').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
3
8
  dispatch: import('redux-thunk').ThunkDispatch<CameraState, undefined, import('redux').UnknownAction>;
4
9
  }>, import('redux').StoreEnhancer]>>;
10
+ export type CameraStore = ReturnType<typeof createCameraStore>;
5
11
  export declare const useCameraActions: () => import('@reduxjs/toolkit').CaseReducerActions<{
6
12
  readonly setDevices: import('@reduxjs/toolkit').CaseReducer<CameraState, {
7
- payload: MediaDeviceInfo[];
13
+ payload: import('..').CameraDeviceInfo[];
8
14
  type: string;
9
15
  }> & {
10
16
  _reducerDefinitionType: import("@reduxjs/toolkit").ReducerType.reducer;
@@ -28,7 +34,7 @@ export declare const useCameraActions: () => import('@reduxjs/toolkit').CaseRedu
28
34
  _reducerDefinitionType: import("@reduxjs/toolkit").ReducerType.reducer;
29
35
  };
30
36
  readonly setAlert: import('@reduxjs/toolkit').CaseReducer<CameraState, {
31
- payload: import('../types').CameraAlert | null;
37
+ payload: import('..').CameraAlert | null;
32
38
  type: string;
33
39
  }> & {
34
40
  _reducerDefinitionType: import("@reduxjs/toolkit").ReducerType.reducer;
@@ -51,7 +57,7 @@ export declare const useCameraActions: () => import('@reduxjs/toolkit').CaseRedu
51
57
  cameraSupported: false;
52
58
  } | {
53
59
  hasPermission: boolean;
54
- devices: import('../types').CameraDeviceInfo[];
60
+ devices: import('..').CameraDeviceInfo[];
55
61
  cameraSupported: true;
56
62
  }, {
57
63
  rejectValue: {
@@ -86,7 +92,7 @@ export declare const useCameraActions: () => import('@reduxjs/toolkit').CaseRedu
86
92
  cameraSupported: false;
87
93
  } | {
88
94
  hasPermission: boolean;
89
- devices: import('../types').CameraDeviceInfo[];
95
+ devices: import('..').CameraDeviceInfo[];
90
96
  cameraSupported: true;
91
97
  }, void, {
92
98
  rejectValue: {
@@ -1,11 +1,11 @@
1
1
  import { CameraReducerCreators } from './camera.slice';
2
- export declare const createRequestPermissionThunk: (create: CameraReducerCreators) => import('@reduxjs/toolkit').AsyncThunkReducers<import('../types').CameraState, void, {
2
+ export declare const createRequestPermissionThunk: (create: CameraReducerCreators) => import('@reduxjs/toolkit').AsyncThunkReducers<import('..').CameraState, void, {
3
3
  hasPermission: boolean;
4
4
  devices: never[];
5
5
  cameraSupported: false;
6
6
  } | {
7
7
  hasPermission: boolean;
8
- devices: import('../types').CameraDeviceInfo[];
8
+ devices: import('..').CameraDeviceInfo[];
9
9
  cameraSupported: true;
10
10
  }, {
11
11
  rejectValue: {
@@ -40,7 +40,7 @@ export declare const createRequestPermissionThunk: (create: CameraReducerCreator
40
40
  cameraSupported: false;
41
41
  } | {
42
42
  hasPermission: boolean;
43
- devices: import('../types').CameraDeviceInfo[];
43
+ devices: import('..').CameraDeviceInfo[];
44
44
  cameraSupported: true;
45
45
  }, void, {
46
46
  rejectValue: {
@@ -55,7 +55,7 @@ export declare const createRequestPermissionThunk: (create: CameraReducerCreator
55
55
  rejectedMeta?: unknown;
56
56
  }>;
57
57
  };
58
- export declare const createStartStreamThunk: (create: CameraReducerCreators) => import('@reduxjs/toolkit').AsyncThunkReducers<import('../types').CameraState, (stream: MediaStream) => void, void, {
58
+ export declare const createStartStreamThunk: (create: CameraReducerCreators) => import('@reduxjs/toolkit').AsyncThunkReducers<import('..').CameraState, (stream: MediaStream) => void, void, {
59
59
  rejectValue: {
60
60
  message: string;
61
61
  };
@@ -1,4 +1,4 @@
1
- import { CameraActions } from './state/camera.slice';
1
+ import { ComponentProps, RefObject } from 'react';
2
2
  export type ImageFormat = 'png' | 'jpeg' | 'webp';
3
3
  export type CaptureSettings = {
4
4
  resolution: {
@@ -25,14 +25,24 @@ export type CameraState = {
25
25
  captureSettings: CaptureSettings;
26
26
  alert: CameraAlert | null;
27
27
  };
28
+ /** What `useCamera()` / `useCameraContext()` hand a part of the camera. */
29
+ export type CameraActions = {
30
+ setDevices: (devices: CameraDeviceInfo[]) => void;
31
+ selectDevice: (deviceId: string | null) => void;
32
+ setPermission: (hasPermission: boolean) => void;
33
+ setStreaming: (isStreaming: boolean) => void;
34
+ setAlert: (alert: CameraAlert | null) => void;
35
+ setCameraSupported: (cameraSupported: boolean) => void;
36
+ requestPermission: () => Promise<void>;
37
+ startStream: () => void;
38
+ stopStream: () => void;
39
+ capturePhoto: () => void;
40
+ };
28
41
  export type CameraContextValue = {
29
- videoRef: React.RefObject<HTMLVideoElement | null>;
30
- canvasRef: React.RefObject<HTMLCanvasElement | null>;
31
- streamRef: React.RefObject<MediaStream | null>;
42
+ videoRef: RefObject<HTMLVideoElement | null>;
43
+ canvasRef: RefObject<HTMLCanvasElement | null>;
44
+ streamRef: RefObject<MediaStream | null>;
32
45
  state: CameraState;
33
- actions: Omit<CameraActions, 'startStream' | 'capturePhoto'> & {
34
- capturePhoto: () => void;
35
- startStream: () => void;
36
- stopStream: () => void;
37
- };
46
+ actions: CameraActions;
38
47
  };
48
+ export type CameraProps = ComponentProps<'div'>;
@@ -1,11 +1,5 @@
1
- export declare function useCamera(): {
2
- videoRef: import('react').RefObject<HTMLVideoElement | null>;
3
- canvasRef: import('react').RefObject<HTMLCanvasElement | null>;
4
- streamRef: import('react').RefObject<MediaStream | null>;
5
- state: import('./types').CameraState;
6
- actions: Omit<import('./state').CameraActions, "capturePhoto" | "startStream"> & {
7
- capturePhoto: () => void;
8
- startStream: () => void;
9
- stopStream: () => void;
10
- };
11
- };
1
+ /**
2
+ * The camera's context, plus its lifecycle: asks for permission on mount
3
+ * and stops the stream on unmount. Inside `<Camera>` only.
4
+ */
5
+ export declare function useCamera(): import('./types').CameraContextValue;
@@ -1,5 +1,4 @@
1
1
  import { CameraDeviceInfo } from '../types';
2
- export * from './camera.utils';
3
2
  /**
4
3
  * Get available camera devices
5
4
  */
@@ -1,3 +1,4 @@
1
+ export * from './camera';
1
2
  export * from './carousel';
2
3
  export * from './file-list';
3
4
  export * from './files-form-field';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * A combobox inside a dialog portals its list outside the dialog's content;
3
+ * a pointer or focus landing there is not "outside" and must not close it.
4
+ */
5
+ export declare function keepComboboxOverlay(event: Pick<Event, 'target' | 'preventDefault'>): void;
@@ -0,0 +1,9 @@
1
+ import { Dialog as DialogPrimitive } from 'radix-ui';
2
+ import { ComponentProps } from 'react';
3
+ /**
4
+ * A dialog content for a dialog taller than the screen: the overlay scrolls,
5
+ * and the content sits in it with a margin, instead of being clipped at the
6
+ * viewport. It renders its own close button (top right).
7
+ */
8
+ declare function DialogScrollContent({ className, children, onInteractOutside, onPointerDownOutside, onFocusOutside, onOpenAutoFocus, onCloseAutoFocus, ...props }: ComponentProps<typeof DialogPrimitive.Content>): import("react").JSX.Element;
9
+ export { DialogScrollContent };
@@ -1 +1,2 @@
1
1
  export * from './dialog';
2
+ export * from './dialog-scroll-content';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * `true` inside a control that already carries an accessible name — a named
3
3
  * `IconButton`, and so `InputGroupButton` and `IconLinkButton`, which render
4
- * one. An `Icon` there with no `aria-label` of its own renders
4
+ * one, and a `Button` with text or an `aria-label`. An `Icon` there with no `aria-label` of its own renders
5
5
  * `aria-hidden="true"` instead of `role="img" aria-label="Icon {name}"`, so a
6
6
  * screen reader reads "Delete" and not "Delete, Icon trash".
7
7
  *
@@ -6,5 +6,10 @@ declare function TableFooter({ className, ...props }: ComponentProps<'tfoot'>):
6
6
  declare function TableRow({ className, ...props }: ComponentProps<'tr'>): import("react").JSX.Element;
7
7
  declare function TableHead({ className, ...props }: ComponentProps<'th'>): import("react").JSX.Element;
8
8
  declare function TableCell({ className, ...props }: ComponentProps<'td'>): import("react").JSX.Element;
9
+ /**
10
+ * A full-width row for "nothing here": one cell spanning `colSpan` columns
11
+ * (default 1), its content centred.
12
+ */
13
+ declare function TableEmpty({ className, colSpan, children, ...props }: ComponentProps<'td'>): import("react").JSX.Element;
9
14
  declare function TableCaption({ className, ...props }: ComponentProps<'caption'>): import("react").JSX.Element;
10
- export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, };
15
+ export { Table, TableBody, TableCaption, TableCell, TableEmpty, TableFooter, TableHead, TableHeader, TableRow, };
@@ -4,6 +4,7 @@ export * from './checkbox';
4
4
  export * from './checkbox-group';
5
5
  export * from './combobox';
6
6
  export * from './combobox-field';
7
+ export * from './native-select';
7
8
  export * from './radio-group';
8
9
  export * from './select';
9
10
  export * from './select-card-field';
@@ -0,0 +1 @@
1
+ export * from './native-select';
@@ -0,0 +1,11 @@
1
+ import { ComponentProps } from 'react';
2
+ export type NativeSelectProps = ComponentProps<'select'>;
3
+ /**
4
+ * The browser's own `<select>`, styled like the library's inputs, with a
5
+ * chevron. `value` / `defaultValue` / `onChange` and every other attribute go
6
+ * to the `<select>`; `className` too, the wrapper only positions the chevron.
7
+ */
8
+ declare function NativeSelect({ className, ...props }: NativeSelectProps): import("react").JSX.Element;
9
+ declare function NativeSelectOption({ className, ...props }: ComponentProps<'option'>): import("react").JSX.Element;
10
+ declare function NativeSelectOptGroup({ className, ...props }: ComponentProps<'optgroup'>): import("react").JSX.Element;
11
+ export { NativeSelect, NativeSelectOptGroup, NativeSelectOption };
@@ -13,4 +13,11 @@ export type RadioGroupProps = {
13
13
  declare function RadioGroup({ options, label, helperText, error, orientation, className, id, ...props }: RadioGroupProps): import("react").JSX.Element;
14
14
  declare function RadioGroupBase({ className, ...props }: ComponentProps<typeof RadioGroupPrimitive.Root>): import("react").JSX.Element;
15
15
  declare function RadioGroupItem({ className, ...props }: ComponentProps<typeof RadioGroupPrimitive.Item>): import("react").JSX.Element;
16
- export { RadioGroup, RadioGroupBase, RadioGroupItem };
16
+ /**
17
+ * The labelled `RadioGroup` under `@nxgt/material-vue`'s name, so code reads
18
+ * the same in both libraries. Same component, same props. The names align
19
+ * fully in 3.0; `RadioGroup` is not deprecated.
20
+ */
21
+ declare const RadioGroupField: typeof RadioGroup;
22
+ export type RadioGroupFieldProps = RadioGroupProps;
23
+ export { RadioGroup, RadioGroupBase, RadioGroupField, RadioGroupItem };
@@ -323,6 +323,7 @@ export declare const en: {
323
323
  };
324
324
  };
325
325
  table: {
326
+ loading: string;
326
327
  labels: {
327
328
  asc: string;
328
329
  desc: string;
@@ -749,6 +750,8 @@ export declare const en: {
749
750
  };
750
751
  stepper: {
751
752
  step: string;
753
+ completed: string;
754
+ error: string;
752
755
  };
753
756
  "location-field": {
754
757
  placeholder: string;
@@ -1164,6 +1167,10 @@ export declare const en: {
1164
1167
  spinner: {
1165
1168
  loading: string;
1166
1169
  };
1170
+ slider: {
1171
+ minimum: string;
1172
+ maximum: string;
1173
+ };
1167
1174
  "scroll-to-top": {
1168
1175
  label: string;
1169
1176
  };
@@ -313,6 +313,7 @@ declare const _default: {
313
313
  }
314
314
  },
315
315
  "table": {
316
+ "loading": "Loading data…",
316
317
  "labels": {
317
318
  "asc": "Asc",
318
319
  "desc": "Desc",
@@ -738,7 +739,9 @@ declare const _default: {
738
739
  "open": "Open URL"
739
740
  },
740
741
  "stepper": {
741
- "step": "Step {step}"
742
+ "step": "Step {step}",
743
+ "completed": "Completed",
744
+ "error": "Error"
742
745
  },
743
746
  "location-field": {
744
747
  "placeholder": "No location selected",
@@ -1154,6 +1157,10 @@ declare const _default: {
1154
1157
  "spinner": {
1155
1158
  "loading": "Loading..."
1156
1159
  },
1160
+ "slider": {
1161
+ "minimum": "Minimum",
1162
+ "maximum": "Maximum"
1163
+ },
1157
1164
  "scroll-to-top": {
1158
1165
  "label": "Scroll to top"
1159
1166
  },
@@ -323,6 +323,7 @@ export declare const fr: {
323
323
  };
324
324
  };
325
325
  table: {
326
+ loading: string;
326
327
  labels: {
327
328
  asc: string;
328
329
  desc: string;
@@ -749,6 +750,8 @@ export declare const fr: {
749
750
  };
750
751
  stepper: {
751
752
  step: string;
753
+ completed: string;
754
+ error: string;
752
755
  };
753
756
  "location-field": {
754
757
  placeholder: string;
@@ -1164,6 +1167,10 @@ export declare const fr: {
1164
1167
  spinner: {
1165
1168
  loading: string;
1166
1169
  };
1170
+ slider: {
1171
+ minimum: string;
1172
+ maximum: string;
1173
+ };
1167
1174
  "scroll-to-top": {
1168
1175
  label: string;
1169
1176
  };
@@ -313,6 +313,7 @@ declare const _default: {
313
313
  }
314
314
  },
315
315
  "table": {
316
+ "loading": "Chargement des données…",
316
317
  "labels": {
317
318
  "asc": "Asc",
318
319
  "desc": "Desc",
@@ -738,7 +739,9 @@ declare const _default: {
738
739
  "open": "Ouvrir l’URL"
739
740
  },
740
741
  "stepper": {
741
- "step": "Étape {step}"
742
+ "step": "Étape {step}",
743
+ "completed": "Terminée",
744
+ "error": "Erreur"
742
745
  },
743
746
  "location-field": {
744
747
  "placeholder": "Aucun emplacement sélectionné",
@@ -1154,6 +1157,10 @@ declare const _default: {
1154
1157
  "spinner": {
1155
1158
  "loading": "Chargement..."
1156
1159
  },
1160
+ "slider": {
1161
+ "minimum": "Minimum",
1162
+ "maximum": "Maximum"
1163
+ },
1157
1164
  "scroll-to-top": {
1158
1165
  "label": "Retour en haut"
1159
1166
  },
@@ -321,6 +321,7 @@ export declare const resources: {
321
321
  };
322
322
  };
323
323
  table: {
324
+ loading: string;
324
325
  labels: {
325
326
  asc: string;
326
327
  desc: string;
@@ -747,6 +748,8 @@ export declare const resources: {
747
748
  };
748
749
  stepper: {
749
750
  step: string;
751
+ completed: string;
752
+ error: string;
750
753
  };
751
754
  "location-field": {
752
755
  placeholder: string;
@@ -1162,6 +1165,10 @@ export declare const resources: {
1162
1165
  spinner: {
1163
1166
  loading: string;
1164
1167
  };
1168
+ slider: {
1169
+ minimum: string;
1170
+ maximum: string;
1171
+ };
1165
1172
  "scroll-to-top": {
1166
1173
  label: string;
1167
1174
  };
@@ -1516,6 +1523,7 @@ export declare const resources: {
1516
1523
  };
1517
1524
  };
1518
1525
  table: {
1526
+ loading: string;
1519
1527
  labels: {
1520
1528
  asc: string;
1521
1529
  desc: string;
@@ -1942,6 +1950,8 @@ export declare const resources: {
1942
1950
  };
1943
1951
  stepper: {
1944
1952
  step: string;
1953
+ completed: string;
1954
+ error: string;
1945
1955
  };
1946
1956
  "location-field": {
1947
1957
  placeholder: string;
@@ -2357,6 +2367,10 @@ export declare const resources: {
2357
2367
  spinner: {
2358
2368
  loading: string;
2359
2369
  };
2370
+ slider: {
2371
+ minimum: string;
2372
+ maximum: string;
2373
+ };
2360
2374
  "scroll-to-top": {
2361
2375
  label: string;
2362
2376
  };