@uxf/ui 1.0.0-beta.114 → 1.0.0-beta.115

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/css/modal.css CHANGED
@@ -38,6 +38,7 @@
38
38
  width: 100%;
39
39
  border-top-left-radius: theme("borderRadius.2xl");
40
40
  border-top-right-radius: theme("borderRadius.2xl");
41
+ overflow: hidden;
41
42
 
42
43
  :root .light & {
43
44
  background-color: theme("colors.white");
@@ -5,5 +5,6 @@ export interface ModalDialogProps {
5
5
  onClose: () => void;
6
6
  open: boolean;
7
7
  width?: keyof ModalWidths;
8
+ className?: string;
8
9
  }
9
10
  export declare const ModalDialog: React.NamedExoticComponent<ModalDialogProps>;
@@ -29,7 +29,7 @@ const cx_1 = require("@uxf/core/utils/cx");
29
29
  const react_2 = __importStar(require("react"));
30
30
  exports.ModalDialog = (0, react_2.memo)((props) => {
31
31
  var _a;
32
- return (react_2.default.createElement(react_1.Dialog, { className: (0, cx_1.cx)("uxf-modal", "uxf-modal--width-" + ((_a = props.width) !== null && _a !== void 0 ? _a : "default")), open: props.open, onClose: props.onClose },
32
+ return (react_2.default.createElement(react_1.Dialog, { className: (0, cx_1.cx)("uxf-modal", "uxf-modal--width-" + ((_a = props.width) !== null && _a !== void 0 ? _a : "default"), props.className), open: props.open, onClose: props.onClose },
33
33
  react_2.default.createElement(react_1.Dialog.Overlay, { className: "uxf-modal__backdrop" }),
34
34
  react_2.default.createElement("div", { className: "uxf-modal__wrapper" },
35
35
  react_2.default.createElement("div", { className: "uxf-modal__body" },
package/modal/modal.d.ts CHANGED
@@ -4,6 +4,7 @@ export interface ModalProps {
4
4
  children: ReactNode;
5
5
  onClose?: () => void;
6
6
  width?: ModalDialogProps["width"];
7
+ className?: ModalDialogProps["className"];
7
8
  }
8
9
  export interface ModalRef {
9
10
  close: () => void;
package/modal/modal.js CHANGED
@@ -46,6 +46,6 @@ exports.Modal = (0, react_1.forwardRef)((props, ref) => {
46
46
  return null;
47
47
  });
48
48
  }, []);
49
- return modal ? (react_1.default.createElement(modal_dialog_1.ModalDialog, { open: !!modal, onClose: onClose, width: modal.width }, modal.children)) : null;
49
+ return modal ? (react_1.default.createElement(modal_dialog_1.ModalDialog, { open: !!modal, onClose: onClose, width: modal.width, className: modal.className }, modal.children)) : null;
50
50
  });
51
51
  exports.Modal.displayName = "Modal";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/ui",
3
- "version": "1.0.0-beta.114",
3
+ "version": "1.0.0-beta.115",
4
4
  "description": "",
5
5
  "publishConfig": {
6
6
  "access": "public"