nexaas-ui-components 1.0.33 → 1.0.35
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.cjs +16 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +16 -4
- package/dist/index.js.map +1 -1
- package/package.json +15 -3
package/dist/index.cjs
CHANGED
|
@@ -116,6 +116,9 @@ var variants = {
|
|
|
116
116
|
success: {
|
|
117
117
|
text: "shadow-button text-white bg-gradient-to-b from-success-start to-success-end hover:from-[#40f09b] hover:to-[#28c67a] active:from-success-600 active:to-success-600 disabled:opacity-50 disabled:from-success-start disabled:to-success-end active:shadow-none"
|
|
118
118
|
},
|
|
119
|
+
successOutline: {
|
|
120
|
+
text: "active:shadow-none shadow-green-sm text-green-500 font-bold bg-white border-[0.5px] border-green-500 hover:bg-green-100 active:bg-green-100 active:text-white disabled:opacity-50 disabled:bg-white disabled:text-green-500"
|
|
121
|
+
},
|
|
119
122
|
warn: {
|
|
120
123
|
text: "shadow-button text-white bg-gradient-to-b from-warning-start to-warning-end hover:from-[#febd5b] hover:to-[#f4a52e] active:from-warning-600 active:to-warning-600 disabled:opacity-50 disabled:from-warning-start disabled:to-warning-end active:shadow-none"
|
|
121
124
|
},
|
|
@@ -2521,7 +2524,9 @@ var ModalDialog = ({
|
|
|
2521
2524
|
size = "sm",
|
|
2522
2525
|
info,
|
|
2523
2526
|
description,
|
|
2524
|
-
children
|
|
2527
|
+
children,
|
|
2528
|
+
showFooter = true,
|
|
2529
|
+
showHeader = true
|
|
2525
2530
|
}) => {
|
|
2526
2531
|
const customStyles6 = {
|
|
2527
2532
|
content: {
|
|
@@ -2557,15 +2562,22 @@ var ModalDialog = ({
|
|
|
2557
2562
|
style: customStyles6,
|
|
2558
2563
|
contentLabel: "Example Modal",
|
|
2559
2564
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx9__default.default(sizes3[size]), children: [
|
|
2560
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "pb-[6px] border-b border-b-neutral-200 flex items-center justify-between", children: [
|
|
2565
|
+
showHeader && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "pb-[6px] border-b border-b-neutral-200 flex items-center justify-between", children: [
|
|
2561
2566
|
/* @__PURE__ */ jsxRuntime.jsxs("h3", { className: "text-[24px] font-bold flex items-center gap-2", children: [
|
|
2562
2567
|
alertType && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx9__default.default([alertTypes[alertType]], "text-[30px]"), children: icon }),
|
|
2563
2568
|
title
|
|
2564
2569
|
] }),
|
|
2565
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2570
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2571
|
+
"button",
|
|
2572
|
+
{
|
|
2573
|
+
onClick: onCancel,
|
|
2574
|
+
className: "text-neutral-500 text-[24px]",
|
|
2575
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("i", { className: "uil uil-times" })
|
|
2576
|
+
}
|
|
2577
|
+
)
|
|
2566
2578
|
] }),
|
|
2567
2579
|
/* @__PURE__ */ jsxRuntime.jsx("div", { children }),
|
|
2568
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "pt-6 border-t border-t-neutral-200 flex w-full items-center justify-between", children: [
|
|
2580
|
+
showFooter && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "pt-6 border-t border-t-neutral-200 flex w-full items-center justify-between", children: [
|
|
2569
2581
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2570
2582
|
"div",
|
|
2571
2583
|
{
|