@mamrp/components 1.7.7 → 1.7.9

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 CHANGED
@@ -614,13 +614,15 @@ type PaletteColor = "primary" | "secondary" | "error" | "warning" | "info" | "su
614
614
  interface CustomDialogProps {
615
615
  title: string;
616
616
  icon?: IconType;
617
- iconColor?: PaletteColor | string;
617
+ iconColor?: PaletteColor;
618
618
  open: boolean;
619
619
  onClose: () => void;
620
620
  maxWidth?: DialogProps["maxWidth"];
621
621
  fullWidth?: boolean;
622
622
  children: ReactNode;
623
+ actions?: ReactNode;
624
+ isSubmiting?: boolean;
623
625
  }
624
- declare function CustomDialog({ title, icon: Icon, iconColor, open, onClose, maxWidth, fullWidth, children, }: CustomDialogProps): React$1.JSX.Element;
626
+ declare function CustomDialog({ title, icon: Icon, iconColor, open, onClose, maxWidth, fullWidth, children, actions, isSubmiting, }: CustomDialogProps): React$1.JSX.Element;
625
627
 
626
- export { Page as Accordion, AdvancedSearchButton, ConfirmationDialog$1 as ConfirmationDialog, ConnectToBasculeButton, CustomCheckbox, CustomDialog, CustomTimePicker, DataTable, DateFilter, DateFilterRange, DateMonthPicker, JalaliDatePicker$2 as DatePicker, JalaliDatePicker$1 as DateTimePicker, JalaliDateTimeRangePicker as DateTimeRangePicker, DraggablePaper, UploadImage as EnhancedUploadImage, FormInputNumber, FormInputText, HorizontalStepper, LicensePlate, JalaliDatePicker as MobileDateTimePicker, ConfirmationDialog as Modal, NestedSelect as NestedSelectort, NoResult, PaginationList, PatternTextField, RadioButton, SearchLicensePlate, MultipleSelectChip as Selector, SkeletonCard, SonarSpinner, SwitchButton, Table, UploadImage$1 as UploadImage };
628
+ export { Page as Accordion, AdvancedSearchButton, ConfirmationDialog$1 as ConfirmationDialog, ConnectToBasculeButton, CustomCheckbox, CustomDialog, type CustomDialogProps, CustomTimePicker, DataTable, DateFilter, DateFilterRange, DateMonthPicker, JalaliDatePicker$2 as DatePicker, JalaliDatePicker$1 as DateTimePicker, JalaliDateTimeRangePicker as DateTimeRangePicker, DraggablePaper, UploadImage as EnhancedUploadImage, FormInputNumber, FormInputText, HorizontalStepper, LicensePlate, JalaliDatePicker as MobileDateTimePicker, ConfirmationDialog as Modal, NestedSelect as NestedSelectort, NoResult, PaginationList, type PaletteColor, PatternTextField, RadioButton, SearchLicensePlate, MultipleSelectChip as Selector, SkeletonCard, SonarSpinner, SwitchButton, Table, UploadImage$1 as UploadImage };
package/dist/index.d.ts CHANGED
@@ -614,13 +614,15 @@ type PaletteColor = "primary" | "secondary" | "error" | "warning" | "info" | "su
614
614
  interface CustomDialogProps {
615
615
  title: string;
616
616
  icon?: IconType;
617
- iconColor?: PaletteColor | string;
617
+ iconColor?: PaletteColor;
618
618
  open: boolean;
619
619
  onClose: () => void;
620
620
  maxWidth?: DialogProps["maxWidth"];
621
621
  fullWidth?: boolean;
622
622
  children: ReactNode;
623
+ actions?: ReactNode;
624
+ isSubmiting?: boolean;
623
625
  }
624
- declare function CustomDialog({ title, icon: Icon, iconColor, open, onClose, maxWidth, fullWidth, children, }: CustomDialogProps): React$1.JSX.Element;
626
+ declare function CustomDialog({ title, icon: Icon, iconColor, open, onClose, maxWidth, fullWidth, children, actions, isSubmiting, }: CustomDialogProps): React$1.JSX.Element;
625
627
 
626
- export { Page as Accordion, AdvancedSearchButton, ConfirmationDialog$1 as ConfirmationDialog, ConnectToBasculeButton, CustomCheckbox, CustomDialog, CustomTimePicker, DataTable, DateFilter, DateFilterRange, DateMonthPicker, JalaliDatePicker$2 as DatePicker, JalaliDatePicker$1 as DateTimePicker, JalaliDateTimeRangePicker as DateTimeRangePicker, DraggablePaper, UploadImage as EnhancedUploadImage, FormInputNumber, FormInputText, HorizontalStepper, LicensePlate, JalaliDatePicker as MobileDateTimePicker, ConfirmationDialog as Modal, NestedSelect as NestedSelectort, NoResult, PaginationList, PatternTextField, RadioButton, SearchLicensePlate, MultipleSelectChip as Selector, SkeletonCard, SonarSpinner, SwitchButton, Table, UploadImage$1 as UploadImage };
628
+ export { Page as Accordion, AdvancedSearchButton, ConfirmationDialog$1 as ConfirmationDialog, ConnectToBasculeButton, CustomCheckbox, CustomDialog, type CustomDialogProps, CustomTimePicker, DataTable, DateFilter, DateFilterRange, DateMonthPicker, JalaliDatePicker$2 as DatePicker, JalaliDatePicker$1 as DateTimePicker, JalaliDateTimeRangePicker as DateTimeRangePicker, DraggablePaper, UploadImage as EnhancedUploadImage, FormInputNumber, FormInputText, HorizontalStepper, LicensePlate, JalaliDatePicker as MobileDateTimePicker, ConfirmationDialog as Modal, NestedSelect as NestedSelectort, NoResult, PaginationList, type PaletteColor, PatternTextField, RadioButton, SearchLicensePlate, MultipleSelectChip as Selector, SkeletonCard, SonarSpinner, SwitchButton, Table, UploadImage$1 as UploadImage };
package/dist/index.js CHANGED
@@ -5233,7 +5233,9 @@ function CustomDialog({
5233
5233
  onClose,
5234
5234
  maxWidth = "sm",
5235
5235
  fullWidth = true,
5236
- children
5236
+ children,
5237
+ actions,
5238
+ isSubmiting = false
5237
5239
  }) {
5238
5240
  return /* @__PURE__ */ React.createElement(
5239
5241
  import_material31.Dialog,
@@ -5301,12 +5303,14 @@ function CustomDialog({
5301
5303
  right: 8,
5302
5304
  top: 8,
5303
5305
  color: (theme3) => theme3.palette.grey[500]
5304
- }
5306
+ },
5307
+ disabled: isSubmiting
5305
5308
  },
5306
5309
  /* @__PURE__ */ React.createElement(import_md9.MdClose, null)
5307
5310
  )),
5308
5311
  /* @__PURE__ */ React.createElement(import_material31.Divider, null),
5309
- /* @__PURE__ */ React.createElement(import_material31.DialogContent, null, children)
5312
+ /* @__PURE__ */ React.createElement(import_material31.DialogContent, null, children),
5313
+ actions && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(import_material31.DialogActions, null, actions))
5310
5314
  );
5311
5315
  }
5312
5316
  // Annotate the CommonJS export names for ESM import in node: