tccd-ui 0.0.96 → 0.0.98
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.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -187,9 +187,10 @@ declare function SearchField({ value, onChange, placeholder, className, }: Searc
|
|
|
187
187
|
|
|
188
188
|
declare function SuccessScreen({ title, message }: InfoScreenProps): react_jsx_runtime.JSX.Element;
|
|
189
189
|
|
|
190
|
-
declare function TextAreaField({ label, value, placeholder, onChange, error, maxLength, id, }: {
|
|
190
|
+
declare function TextAreaField({ label, labelClassName, value, placeholder, onChange, error, maxLength, id, }: {
|
|
191
191
|
label: string;
|
|
192
192
|
id: string;
|
|
193
|
+
labelClassName?: string;
|
|
193
194
|
value: string;
|
|
194
195
|
placeholder: string;
|
|
195
196
|
maxLength?: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -187,9 +187,10 @@ declare function SearchField({ value, onChange, placeholder, className, }: Searc
|
|
|
187
187
|
|
|
188
188
|
declare function SuccessScreen({ title, message }: InfoScreenProps): react_jsx_runtime.JSX.Element;
|
|
189
189
|
|
|
190
|
-
declare function TextAreaField({ label, value, placeholder, onChange, error, maxLength, id, }: {
|
|
190
|
+
declare function TextAreaField({ label, labelClassName, value, placeholder, onChange, error, maxLength, id, }: {
|
|
191
191
|
label: string;
|
|
192
192
|
id: string;
|
|
193
|
+
labelClassName?: string;
|
|
193
194
|
value: string;
|
|
194
195
|
placeholder: string;
|
|
195
196
|
maxLength?: number;
|
package/dist/index.js
CHANGED
|
@@ -1893,7 +1893,7 @@ function SearchField({
|
|
|
1893
1893
|
value,
|
|
1894
1894
|
onChange: (e) => onChange(e.target.value),
|
|
1895
1895
|
placeholder,
|
|
1896
|
-
className: `w-full rounded-2xl pl-12 pr-4 py-1.5 text-[14px] md:text-[15px] lg:text-[16px] border focus:border-primary focus:outline-none transition-all duration-300 ease-in-out ${dark ? "bg-gray-900 border-gray-600 placeholder-gray-400 text-white" : "bg-background/50 border-
|
|
1896
|
+
className: `w-full rounded-2xl pl-12 pr-4 py-1.5 text-[14px] md:text-[15px] lg:text-[16px] border focus:border-primary focus:outline-none transition-all duration-300 ease-in-out ${dark ? "bg-gray-900 border-gray-600 placeholder-gray-400 text-white" : "bg-background/50 border-gray-400 placeholder:text-muted-secondary"}`
|
|
1897
1897
|
}
|
|
1898
1898
|
)
|
|
1899
1899
|
] }) });
|
|
@@ -1927,9 +1927,11 @@ function SuccessScreen({
|
|
|
1927
1927
|
|
|
1928
1928
|
// src/components/TextAreaField.tsx
|
|
1929
1929
|
var import_react20 = require("react");
|
|
1930
|
+
var import_tailwind_merge7 = require("tailwind-merge");
|
|
1930
1931
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1931
1932
|
function TextAreaField({
|
|
1932
1933
|
label,
|
|
1934
|
+
labelClassName,
|
|
1933
1935
|
value,
|
|
1934
1936
|
placeholder,
|
|
1935
1937
|
onChange,
|
|
@@ -1962,7 +1964,11 @@ function TextAreaField({
|
|
|
1962
1964
|
onChange(e);
|
|
1963
1965
|
}
|
|
1964
1966
|
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex flex-col w-full", children: [
|
|
1965
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("label", { className:
|
|
1967
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("label", { className: (0, import_tailwind_merge7.twMerge)(
|
|
1968
|
+
"text-[14px] md:text-[15px] lg:text-[16px] mb-2 font-semibold",
|
|
1969
|
+
isDark ? "text-gray-200" : "text-label",
|
|
1970
|
+
labelClassName
|
|
1971
|
+
), children: label }),
|
|
1966
1972
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1967
1973
|
"textarea",
|
|
1968
1974
|
{
|
|
@@ -2246,7 +2252,7 @@ function TimePicker({
|
|
|
2246
2252
|
type: "button",
|
|
2247
2253
|
onClick: () => !disabled && setIsOpen(!isOpen),
|
|
2248
2254
|
disabled,
|
|
2249
|
-
className: `w-full border-
|
|
2255
|
+
className: `w-full border-gray-400 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-white" : "bg-white cursor-pointer"} transition-all duration-300 ease-in-out pr-8 sm:pr-10`,
|
|
2250
2256
|
children: getDisplayTime()
|
|
2251
2257
|
}
|
|
2252
2258
|
),
|