vaderjs-daisyui 0.0.6 → 0.0.7

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.
@@ -14,6 +14,7 @@ interface ModalProps {
14
14
  onClose?: () => void;
15
15
  title?: string;
16
16
  children?:VNode |VNode[] | string;
17
+ classname?: string; // extra classes for modal-box
17
18
  modalid?: string; // for accessibility and testing
18
19
  size?: string; // DaisyUI sizes: w-11/12 max-w-md etc.
19
20
  placement?: "top" | "middle" | "bottom";
@@ -51,6 +52,7 @@ export const Modal = component((props: ModalProps) => {
51
52
  backdrop = true,
52
53
  openClass = "",
53
54
  modalid = "vader-modal",
55
+ classname = "",
54
56
  } = props;
55
57
 
56
58
  let modalRef: HTMLDivElement | null = null;
@@ -117,7 +119,7 @@ export const Modal = component((props: ModalProps) => {
117
119
  return createElement(
118
120
  "div",
119
121
  {
120
- className: `modal modal-open ${placementClass} ${openClass}`,
122
+ className: `modal modal-open ${placementClass} ${openClass} ${horizontalClass} ${classname}`,
121
123
  "aria-modal": "true",
122
124
  id: modalid,
123
125
  role: "dialog",
package/package.json CHANGED
@@ -11,5 +11,5 @@
11
11
  "postcss": "^8.5.6",
12
12
  "tailwindcss": "^4.1.18"
13
13
  },
14
- "version": "0.0.6"
14
+ "version": "0.0.7"
15
15
  }