tccd-ui 0.1.0 → 0.1.2
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
|
@@ -1214,7 +1214,7 @@ function DateTimePicker({
|
|
|
1214
1214
|
type: "button",
|
|
1215
1215
|
onClick: () => !disabled && setIsOpen(!isOpen),
|
|
1216
1216
|
disabled,
|
|
1217
|
-
className: `w-full border-
|
|
1217
|
+
className: `w-full border-gray-600 rounded-full px-3 sm:px-4 md:px-5 py-1.5 sm:py-2 border outline-none text-left text-xs sm:text-sm ${error ? dark ? "border-red-700 focus:border-red-600" : "border-red-300 focus:border-red-500 focus:ring-red-500/30" : dark ? "focus:border-primary border-gray-700" : "focus:border-primary"} ${disabled ? dark ? "bg-gray-700 cursor-not-allowed opacity-60" : "bg-gray-100 cursor-not-allowed opacity-60" : dark ? "bg-gray-900 cursor-pointer text-gray-200" : "bg-white cursor-pointer"} transition-all duration-300 ease-in-out pr-8 sm:pr-10`,
|
|
1218
1218
|
children: getDisplayValue()
|
|
1219
1219
|
}
|
|
1220
1220
|
),
|
|
@@ -1726,7 +1726,7 @@ function DropDownMenu({
|
|
|
1726
1726
|
htmlFor: id,
|
|
1727
1727
|
className: (0, import_tailwind_merge4.twMerge)(
|
|
1728
1728
|
"text-[14px] md:text-[15px] lg:text-[16px] mb-2 font-semibold items-center",
|
|
1729
|
-
dark ? "text-gray-200" : "text-
|
|
1729
|
+
dark ? "text-gray-200" : "text-label",
|
|
1730
1730
|
labelClassName
|
|
1731
1731
|
),
|
|
1732
1732
|
children: label
|
|
@@ -1742,12 +1742,12 @@ function DropDownMenu({
|
|
|
1742
1742
|
disabled,
|
|
1743
1743
|
className: `flex items-center justify-between w-full text-left px-2 py-1.5 md:px-3 md:py-2 border outline-none
|
|
1744
1744
|
${isOpen ? "rounded-t-2xl" : "rounded-2xl"}
|
|
1745
|
-
${dark ? "border-gray-600 bg-gray-900 text-
|
|
1745
|
+
${dark ? "border-gray-600 bg-gray-900 text-gray-200" : "border-gray-400 text-label bg-transparent"}
|
|
1746
1746
|
${error ? dark ? "border-red-700 focus:border-red-600" : "border-red-300 focus:border-red-500 focus:ring-red-500/30" : dark ? "" : ""}
|
|
1747
1747
|
transition-all duration-300 ease-in-out text-sm
|
|
1748
1748
|
${!selectedOption ? dark ? "text-gray-400" : "text-gray-400" : ""}
|
|
1749
1749
|
${disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`,
|
|
1750
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: `truncate w-full text-center ${dark ? "text-gray-200" : "text-
|
|
1750
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: `truncate w-full text-center ${dark ? "text-gray-200" : "text-contrast"}`, children: selectedOption ? selectedOption.label : placeholder })
|
|
1751
1751
|
}
|
|
1752
1752
|
),
|
|
1753
1753
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
@@ -1774,7 +1774,7 @@ function DropDownMenu({
|
|
|
1774
1774
|
w-full px-3 py-2 text-left text-sm transition-colors duration-150
|
|
1775
1775
|
${option.disabled ? "text-gray-400 cursor-not-allowed" : dark ? "text-text hover:bg-surface-glass-bg hover:text-text cursor-pointer" : "text-contrast hover:bg-secondary/10 hover:text-secondary cursor-pointer"}
|
|
1776
1776
|
${value === option.value ? dark ? "bg-surface-glass-bg/50 text-text font-medium" : "bg-secondary/20 text-secondary font-medium" : ""}
|
|
1777
|
-
|
|
1777
|
+
last:rounded-b-2xl
|
|
1778
1778
|
`,
|
|
1779
1779
|
children: option.label
|
|
1780
1780
|
},
|