cloudmr-ux 1.3.2 → 1.3.3

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/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ButtonProps, SxProps, Theme } from '@mui/material';
3
- import React, { ReactNode, ChangeEvent, CSSProperties, FC } from 'react';
3
+ import * as React from 'react';
4
+ import React__default, { ReactNode, ChangeEvent, CSSProperties, FC } from 'react';
4
5
  import { SizeType } from 'antd/lib/config-provider/SizeContext';
5
6
  import { CollapsibleType } from 'antd/es/collapse/CollapsePanel';
6
7
  import { ExpandIconPosition } from 'antd/es/collapse/Collapse';
@@ -9,17 +10,17 @@ import { DataGridProps } from '@mui/x-data-grid';
9
10
 
10
11
  declare const CmrButton: (props: ButtonProps) => react_jsx_runtime.JSX.Element;
11
12
 
12
- interface CmrInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix' | 'type'> {
13
+ interface CmrInputProps extends Omit<React__default.InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix' | 'type'> {
13
14
  defaultValue?: string;
14
15
  id?: string;
15
16
  maxLength?: number;
16
17
  size?: SizeType;
17
18
  value?: string;
18
19
  type?: any;
19
- prefix?: React.ReactNode;
20
+ prefix?: React__default.ReactNode;
20
21
  bordered?: boolean;
21
- onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
22
- onPressEnter?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
22
+ onChange?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
23
+ onPressEnter?: (e: React__default.KeyboardEvent<HTMLInputElement>) => void;
23
24
  }
24
25
  declare const CmrInput: (props: CmrInputProps) => react_jsx_runtime.JSX.Element;
25
26
 
@@ -34,7 +35,7 @@ interface CmrRadioProps {
34
35
  defaultValue?: string;
35
36
  onChange?: (value: string) => void;
36
37
  }
37
- declare const CmrRadioGroup: React.FC<CmrRadioProps>;
38
+ declare const CmrRadioGroup: React__default.FC<CmrRadioProps>;
38
39
 
39
40
  interface Option {
40
41
  label: string;
@@ -45,7 +46,7 @@ interface CmrSelectProps {
45
46
  label: string;
46
47
  disabled?: boolean;
47
48
  }
48
- declare const CmrSelect: React.FC<CmrSelectProps>;
49
+ declare const CmrSelect: React__default.FC<CmrSelectProps>;
49
50
 
50
51
  interface CmrCollapseProps {
51
52
  accordion?: boolean;
@@ -61,14 +62,14 @@ interface CmrCollapseProps {
61
62
  }
62
63
  declare const CmrCollapse: (props: CmrCollapseProps) => react_jsx_runtime.JSX.Element;
63
64
 
64
- interface CmrPanelProps extends React.HTMLAttributes<HTMLDivElement> {
65
+ interface CmrPanelProps extends React__default.HTMLAttributes<HTMLDivElement> {
65
66
  activeKey?: string | string[];
66
67
  header: string | undefined;
67
68
  children: ReactNode;
68
69
  panelKey?: number;
69
70
  onToggle?: (key: number | undefined) => void;
70
71
  expanded?: boolean;
71
- cardProps?: React.HTMLAttributes<HTMLDivElement>;
72
+ cardProps?: React__default.HTMLAttributes<HTMLDivElement>;
72
73
  }
73
74
  declare const CmrPanel: (props: CmrPanelProps) => react_jsx_runtime.JSX.Element;
74
75
 
@@ -84,7 +85,7 @@ interface LambdaFile {
84
85
  * functionalities and call back methods evoked
85
86
  * for specific interactions
86
87
  */
87
- interface CMRUploadProps extends React.HTMLAttributes<HTMLDivElement> {
88
+ interface CMRUploadProps extends React__default.HTMLAttributes<HTMLDivElement> {
88
89
  retains?: boolean;
89
90
  maxCount: number;
90
91
  changeNameAfterUpload?: boolean;
@@ -205,7 +206,7 @@ interface CmrTabsProps {
205
206
  }
206
207
  declare function CmrTabs(props: CmrTabsProps): react_jsx_runtime.JSX.Element;
207
208
 
208
- interface CmrCheckboxProps extends React.HTMLAttributes<HTMLDivElement> {
209
+ interface CmrCheckboxProps extends React__default.HTMLAttributes<HTMLDivElement> {
209
210
  autoFocus?: boolean;
210
211
  checked?: boolean;
211
212
  defaultChecked?: boolean;
@@ -218,7 +219,7 @@ interface CmrCheckboxProps extends React.HTMLAttributes<HTMLDivElement> {
218
219
  }
219
220
  declare const CmrCheckbox: (props: CmrCheckboxProps) => react_jsx_runtime.JSX.Element;
220
221
 
221
- interface CmrLabelProps extends React.HTMLAttributes<HTMLDivElement> {
222
+ interface CmrLabelProps extends React__default.HTMLAttributes<HTMLDivElement> {
222
223
  required?: boolean;
223
224
  children?: any;
224
225
  }
@@ -233,7 +234,7 @@ interface CmrInputNumberProps {
233
234
  size?: SizeType;
234
235
  value?: number;
235
236
  onChange?: (value: number | null) => void;
236
- children?: React.ReactNode;
237
+ children?: React__default.ReactNode;
237
238
  style?: CSSProperties;
238
239
  }
239
240
  declare const CmrInputNumber: (props: CmrInputNumberProps) => react_jsx_runtime.JSX.Element;
@@ -268,6 +269,19 @@ interface UploadedFile {
268
269
  */
269
270
  declare const CMRSelectUpload: (props: CMRSelectUploadProps) => react_jsx_runtime.JSX.Element;
270
271
 
272
+ interface UploadWindowProps {
273
+ upload: (file: File, fileAlias: string, fileDatabase: string) => Promise<number>;
274
+ open: boolean;
275
+ setOpen: React.Dispatch<React.SetStateAction<boolean>>;
276
+ fileExtension?: string;
277
+ template?: {
278
+ showFileName?: boolean;
279
+ showDatabase?: boolean;
280
+ showFileSize?: boolean;
281
+ };
282
+ }
283
+ declare function CmrUploadWindow({ upload, open, setOpen, fileExtension, template, }: UploadWindowProps): react_jsx_runtime.JSX.Element;
284
+
271
285
  interface CmrTableProps extends Omit<DataGridProps, 'rows'> {
272
286
  dataSource: any[];
273
287
  idAlias?: string;
@@ -278,4 +292,4 @@ interface CmrTableProps extends Omit<DataGridProps, 'rows'> {
278
292
 
279
293
  declare const CmrTable: FC<CmrTableProps>;
280
294
 
281
- export { CMRSelectUpload, CmrUpload as CMRUpload, CmrButton, CmrCheckbox, CmrCollapse, CmrConfirmation, CmrDeletionDialog, CmrEditConfirmation, CmrInput, CmrInputNumber, CmrLabel, CmrNameDialog, CmrPanel, CmrRadioGroup, CmrSelect, CmrTable, CmrTableProps, CmrTabs, LambdaFile };
295
+ export { CMRSelectUpload, CmrUpload as CMRUpload, CmrButton, CmrCheckbox, CmrCollapse, CmrConfirmation, CmrDeletionDialog, CmrEditConfirmation, CmrInput, CmrInputNumber, CmrLabel, CmrNameDialog, CmrPanel, CmrRadioGroup, CmrSelect, CmrTable, CmrTableProps, CmrTabs, CmrUploadWindow, LambdaFile };
package/dist/index.js CHANGED
@@ -46,7 +46,8 @@ __export(src_exports, {
46
46
  CmrRadioGroup: () => CmrRadioGroup_default,
47
47
  CmrSelect: () => CmrSelect_default,
48
48
  CmrTable: () => CmrTable2,
49
- CmrTabs: () => CmrTabs
49
+ CmrTabs: () => CmrTabs,
50
+ CmrUploadWindow: () => CmrUploadWindow
50
51
  });
51
52
  module.exports = __toCommonJS(src_exports);
52
53
 
@@ -289,7 +290,7 @@ var Label_default = CmrLabel;
289
290
 
290
291
  // src/CmrComponents/upload/UploadWindow.tsx
291
292
  var import_jsx_runtime9 = require("react/jsx-runtime");
292
- function UploadWindow({
293
+ function CmrUploadWindow({
293
294
  upload,
294
295
  open,
295
296
  setOpen,
@@ -710,7 +711,7 @@ var CmrUpload = (props) => {
710
711
  "%"
711
712
  ] }),
712
713
  /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
713
- UploadWindow,
714
+ CmrUploadWindow,
714
715
  {
715
716
  open,
716
717
  setOpen,
@@ -1238,5 +1239,6 @@ var CmrTable2 = CmrTable_default;
1238
1239
  CmrRadioGroup,
1239
1240
  CmrSelect,
1240
1241
  CmrTable,
1241
- CmrTabs
1242
+ CmrTabs,
1243
+ CmrUploadWindow
1242
1244
  });
package/dist/index.mjs CHANGED
@@ -243,7 +243,7 @@ var Label_default = CmrLabel;
243
243
 
244
244
  // src/CmrComponents/upload/UploadWindow.tsx
245
245
  import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
246
- function UploadWindow({
246
+ function CmrUploadWindow({
247
247
  upload,
248
248
  open,
249
249
  setOpen,
@@ -664,7 +664,7 @@ var CmrUpload = (props) => {
664
664
  "%"
665
665
  ] }),
666
666
  /* @__PURE__ */ jsx10(
667
- UploadWindow,
667
+ CmrUploadWindow,
668
668
  {
669
669
  open,
670
670
  setOpen,
@@ -1191,5 +1191,6 @@ export {
1191
1191
  CmrRadioGroup_default as CmrRadioGroup,
1192
1192
  CmrSelect_default as CmrSelect,
1193
1193
  CmrTable2 as CmrTable,
1194
- CmrTabs
1194
+ CmrTabs,
1195
+ CmrUploadWindow
1195
1196
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudmr-ux",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "author": "erosmontin@gmail.com",
5
5
  "license": "MIT",
6
6
  "repository": "erosmontin/cloudmr-ux",