@mamrp/components 1.0.48 → 1.0.50
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.mts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -0
- package/dist/index.mjs.map +1 -1
- package/dist/selectors/index.d.mts +4 -1
- package/dist/selectors/index.d.ts +4 -1
- package/dist/selectors/index.js +4 -5
- package/dist/selectors/index.js.map +1 -1
- package/dist/selectors/index.mjs +4 -5
- package/dist/selectors/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import React__default, { ReactNode, CSSProperties, Dispatch, SetStateAction } from 'react';
|
|
3
3
|
import { Control, FieldValues, Path, FieldErrors, UseFormSetValue } from 'react-hook-form';
|
|
4
4
|
import { Moment } from 'moment-jalaali';
|
|
5
|
-
import { SxProps, Theme } from '@mui/material';
|
|
5
|
+
import { SxProps, Theme, PaperProps } from '@mui/material';
|
|
6
6
|
import { GridColDef, GridRowSelectionModel, GridRowParams } from '@mui/x-data-grid';
|
|
7
7
|
import { TextFieldProps } from '@mui/material/TextField';
|
|
8
8
|
|
|
@@ -316,4 +316,10 @@ type ConnectToBasculeButtonProps = {
|
|
|
316
316
|
};
|
|
317
317
|
declare const ConnectToBasculeButton: React__default.FC<ConnectToBasculeButtonProps>;
|
|
318
318
|
|
|
319
|
-
|
|
319
|
+
interface DraggablePaperProps extends PaperProps {
|
|
320
|
+
handle?: string;
|
|
321
|
+
cancel?: string;
|
|
322
|
+
}
|
|
323
|
+
declare function DraggablePaper({ handle, cancel, ...props }: DraggablePaperProps): React.JSX.Element;
|
|
324
|
+
|
|
325
|
+
export { Page as Accordion, AdvancedSearchButton, ConfirmationDialog$1 as ConfirmationDialog, ConnectToBasculeButton, CustomCheckbox, CustomTimePicker, DateFilter, DateFilterRange, JalaliDatePicker$2 as DatePicker, JalaliDatePicker$1 as DateTimePicker, JalaliDateTimeRangePicker as DateTimeRangePicker, DraggablePaper, FormInputNumber, FormInputText, HorizontalStepper, LicensePlate, JalaliDatePicker as MobileDateTimePicker, ConfirmationDialog as Modal, NestedSelect as NestedSelectort, NoResult, PaginationList, RadioButton, SearchLicensePlate, MultipleSelectChip as Selector, SkeletonCard, SonarSpinner, SwitchButton, Table, UploadImage };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import React__default, { ReactNode, CSSProperties, Dispatch, SetStateAction } from 'react';
|
|
3
3
|
import { Control, FieldValues, Path, FieldErrors, UseFormSetValue } from 'react-hook-form';
|
|
4
4
|
import { Moment } from 'moment-jalaali';
|
|
5
|
-
import { SxProps, Theme } from '@mui/material';
|
|
5
|
+
import { SxProps, Theme, PaperProps } from '@mui/material';
|
|
6
6
|
import { GridColDef, GridRowSelectionModel, GridRowParams } from '@mui/x-data-grid';
|
|
7
7
|
import { TextFieldProps } from '@mui/material/TextField';
|
|
8
8
|
|
|
@@ -316,4 +316,10 @@ type ConnectToBasculeButtonProps = {
|
|
|
316
316
|
};
|
|
317
317
|
declare const ConnectToBasculeButton: React__default.FC<ConnectToBasculeButtonProps>;
|
|
318
318
|
|
|
319
|
-
|
|
319
|
+
interface DraggablePaperProps extends PaperProps {
|
|
320
|
+
handle?: string;
|
|
321
|
+
cancel?: string;
|
|
322
|
+
}
|
|
323
|
+
declare function DraggablePaper({ handle, cancel, ...props }: DraggablePaperProps): React.JSX.Element;
|
|
324
|
+
|
|
325
|
+
export { Page as Accordion, AdvancedSearchButton, ConfirmationDialog$1 as ConfirmationDialog, ConnectToBasculeButton, CustomCheckbox, CustomTimePicker, DateFilter, DateFilterRange, JalaliDatePicker$2 as DatePicker, JalaliDatePicker$1 as DateTimePicker, JalaliDateTimeRangePicker as DateTimeRangePicker, DraggablePaper, FormInputNumber, FormInputText, HorizontalStepper, LicensePlate, JalaliDatePicker as MobileDateTimePicker, ConfirmationDialog as Modal, NestedSelect as NestedSelectort, NoResult, PaginationList, RadioButton, SearchLicensePlate, MultipleSelectChip as Selector, SkeletonCard, SonarSpinner, SwitchButton, Table, UploadImage };
|
package/dist/index.js
CHANGED
|
@@ -41,6 +41,7 @@ __export(src_exports, {
|
|
|
41
41
|
DatePicker: () => date_picker_default,
|
|
42
42
|
DateTimePicker: () => date_time_picker_default,
|
|
43
43
|
DateTimeRangePicker: () => date_time_range_picker_default,
|
|
44
|
+
DraggablePaper: () => DraggablePaper,
|
|
44
45
|
FormInputNumber: () => number_type_default,
|
|
45
46
|
FormInputText: () => text_type_default,
|
|
46
47
|
HorizontalStepper: () => HorizontalStepper,
|
|
@@ -3933,6 +3934,29 @@ var ConnectToBasculeButton = ({
|
|
|
3933
3934
|
));
|
|
3934
3935
|
};
|
|
3935
3936
|
var bascule_connection_button_default = ConnectToBasculeButton;
|
|
3937
|
+
|
|
3938
|
+
// src/draggable-paper/index.tsx
|
|
3939
|
+
var import_material26 = require("@mui/material");
|
|
3940
|
+
var import_react27 = require("react");
|
|
3941
|
+
var import_react_draggable = __toESM(require("react-draggable"));
|
|
3942
|
+
function DraggablePaper({
|
|
3943
|
+
handle = "#draggable-dialog",
|
|
3944
|
+
cancel = '[class*="MuiDialogContent-root"]',
|
|
3945
|
+
...props
|
|
3946
|
+
}) {
|
|
3947
|
+
const nodeRef = (0, import_react27.useRef)(null);
|
|
3948
|
+
return /* @__PURE__ */ React.createElement(
|
|
3949
|
+
import_react_draggable.default,
|
|
3950
|
+
{
|
|
3951
|
+
nodeRef,
|
|
3952
|
+
handle,
|
|
3953
|
+
cancel,
|
|
3954
|
+
bounds: "parent",
|
|
3955
|
+
defaultPosition: { x: 0, y: 0 }
|
|
3956
|
+
},
|
|
3957
|
+
/* @__PURE__ */ React.createElement(import_material26.Paper, { ref: nodeRef, ...props })
|
|
3958
|
+
);
|
|
3959
|
+
}
|
|
3936
3960
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3937
3961
|
0 && (module.exports = {
|
|
3938
3962
|
Accordion,
|
|
@@ -3946,6 +3970,7 @@ var bascule_connection_button_default = ConnectToBasculeButton;
|
|
|
3946
3970
|
DatePicker,
|
|
3947
3971
|
DateTimePicker,
|
|
3948
3972
|
DateTimeRangePicker,
|
|
3973
|
+
DraggablePaper,
|
|
3949
3974
|
FormInputNumber,
|
|
3950
3975
|
FormInputText,
|
|
3951
3976
|
HorizontalStepper,
|