tccd-ui 0.0.49 → 0.0.51
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.js +3 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -110,12 +110,12 @@ var Button = ({ buttonText, buttonIcon, onClick, type, disabled = false, loading
|
|
|
110
110
|
${!isDisabled ? hoverStyles[type] : ""}
|
|
111
111
|
${isDisabled ? disabledStyles : ""}
|
|
112
112
|
${widthStyles[width]}
|
|
113
|
-
rounded-full px-3 md:px-6 py-1 md:py-2 border font-bold text-[
|
|
113
|
+
rounded-full px-3 md:px-6 py-1.5 md:py-2 border font-bold text-[11px] lg:text-[12px] whitespace-nowrap
|
|
114
114
|
transition-all duration-200 ease-in-out flex items-center justify-center h-fit
|
|
115
115
|
${isDisabled ? "cursor-not-allowed" : "cursor-pointer"}
|
|
116
116
|
`,
|
|
117
117
|
children: [
|
|
118
|
-
loading && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
118
|
+
loading && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ai.AiOutlineLoading3Quarters, { className: "animate-spin -ml-1 mr-2 h-4 w-4" }),
|
|
119
119
|
loading ? "Loading..." : buttonText,
|
|
120
120
|
buttonIcon && !loading && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: `${buttonText ? "ml-2" : ""} inline-block`, children: buttonIcon })
|
|
121
121
|
]
|
|
@@ -244,13 +244,7 @@ function DropdownMenu({
|
|
|
244
244
|
width: ButtonWidths.FULL
|
|
245
245
|
}
|
|
246
246
|
),
|
|
247
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
248
|
-
"span",
|
|
249
|
-
{
|
|
250
|
-
className: `absolute right-3 top-1/2 transform -translate-y-1/2 w-5 h-5 text-secondary transition-transform duration-200 pointer-events-none ${isOpen ? "rotate-180" : ""}`,
|
|
251
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_io5.IoChevronDown, {})
|
|
252
|
-
}
|
|
253
|
-
)
|
|
247
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_io5.IoChevronDown, { className: `absolute right-3 top-1/2 transform -translate-y-1/2 w-5 h-5 text-secondary transition-transform duration-200 pointer-events-none ${isOpen ? "rotate-180" : ""}` })
|
|
254
248
|
] }),
|
|
255
249
|
isOpen && !disabled && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "absolute z-50 w-full mt-1 bg-white border border-secondary/30 rounded-xl shadow-lg max-h-60 overflow-y-auto", children: options.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "px-3 py-2 text-sm text-muted-secondary", children: "No options available" }) : options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
256
250
|
"button",
|