+
- {dialogTitle && (
-
+
+
{dialogTitle}
- )}
+
{dialogDescription && (
- {dialogDescription}
+
+ {dialogDescription}
+
)}
- {children}
- {buttons}
+
+ {children}
+
+
+
{footer}
+
{
+ e.preventDefault();
+ e.stopPropagation();
+ setResizing(true);
+ }}
+ className="gw-w-6 gw-h-6 gw-cursor-se-resize gw-ml-auto gw-mt-8"
+ style={{
+ backgroundImage:
+ "linear-gradient(135deg, transparent 45%, #4b5563 45%, #4b5563 55%, transparent 55%)," +
+ "linear-gradient(135deg, transparent 65%, #4b5563 65%, #4b5563 75%, transparent 75%)",
+ backgroundRepeat: "no-repeat",
+ backgroundPosition: "bottom right",
+ backgroundSize: "100% 100%",
+ }}
+ title="Resize"
+ />
+
diff --git a/lib/utils/sizes.js b/lib/utils/sizes.js
deleted file mode 100644
index 3652a5e0..00000000
--- a/lib/utils/sizes.js
+++ /dev/null
@@ -1,13 +0,0 @@
-const WIDTH_OPTIONS = {
- xs: "max-w-xs",
- sm: "max-w-sm",
- md: "max-w-md",
- lg: "max-w-lg",
- xl: "max-w-xl",
- "2xl": "max-w-2xl",
- "3xl": "max-w-3xl",
- "4xl": "max-w-4xl",
- "5xl": "max-w-5xl",
-};
-
-export { WIDTH_OPTIONS };
diff --git a/src/app-pages/documentation/display/modal.jsx b/src/app-pages/documentation/display/modal.jsx
index 9fb7e745..bd684a12 100644
--- a/src/app-pages/documentation/display/modal.jsx
+++ b/src/app-pages/documentation/display/modal.jsx
@@ -41,10 +41,10 @@ const componentProps = [
desc: "Description of the modal dialog.",
},
{
- name: "buttons",
+ name: "footer",
type: "ReactNode",
default: "null",
- desc: "Button components to display at the bottom of the modal.",
+ desc: "Footer components to display at the bottom of the modal.",
},
{
name: "children",
@@ -92,7 +92,7 @@ function ModalDocs() {
dialogDescription="1-7 Day Quantitative Precipitation Forecast"
size="2xl"
staticWidth={true}
- buttons={
+ footer={