tccd-ui 0.0.55 → 0.0.57
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 +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -72,7 +72,7 @@ var Button = ({ buttonText, buttonIcon, onClick, type, disabled = false, loading
|
|
|
72
72
|
const stylePresets = {
|
|
73
73
|
primary: "bg-primary text-text border-primary",
|
|
74
74
|
secondary: "bg-secondary text-text border-secondary",
|
|
75
|
-
tertiary: "bg-
|
|
75
|
+
tertiary: "bg-background-tertiary text-text border-contrast",
|
|
76
76
|
danger: "border-primary text-primary",
|
|
77
77
|
ghost: "text-secondary border-secondary",
|
|
78
78
|
basic: "border-contrast"
|
|
@@ -244,9 +244,9 @@ function DropdownMenu({
|
|
|
244
244
|
width: ButtonWidths.FULL
|
|
245
245
|
}
|
|
246
246
|
),
|
|
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" : ""}` })
|
|
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 dark:text- text-secondary transition-transform duration-200 pointer-events-none ${isOpen ? "rotate-180" : ""}` })
|
|
248
248
|
] }),
|
|
249
|
-
isOpen && !disabled && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "absolute z-50 w-full mt-1 bg-
|
|
249
|
+
isOpen && !disabled && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "absolute z-50 w-full mt-1 bg-background 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-text", children: "No options available" }) : options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
250
250
|
"button",
|
|
251
251
|
{
|
|
252
252
|
type: "button",
|
|
@@ -1136,10 +1136,10 @@ function TextDisplayEdit({ label, value, onChange, disabled = false, icon, place
|
|
|
1136
1136
|
onChange(e.target.value);
|
|
1137
1137
|
}
|
|
1138
1138
|
};
|
|
1139
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "space-y-
|
|
1139
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "space-y-0.5 w-full", children: [
|
|
1140
1140
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex gap-1.5 items-center", children: [
|
|
1141
1141
|
icon && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-secondary", children: icon }),
|
|
1142
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "text-[
|
|
1142
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "text-[14px] md:text-[15px] lg:text-[16px] font-semibold text-contrast", children: label })
|
|
1143
1143
|
] }),
|
|
1144
1144
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("input", { disabled, value, onChange: handleChange, className: "text-contrast text-[14px] md:text-[15px] lg:text-[16px] border-b-2 border-primary/50 focus:outline-none focus:border-primary transition-colors w-full", placeholder })
|
|
1145
1145
|
] });
|