@codapet/design-system 0.6.8 → 0.6.9
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.mjs +10 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -404,25 +404,24 @@ import { jsx as jsx7 } from "react/jsx-runtime";
|
|
|
404
404
|
var textareaBaseStyles = [
|
|
405
405
|
// Base styles aligned with Input
|
|
406
406
|
"placeholder:text-gray-subtle selection:bg-primary selection:text-primary-foreground",
|
|
407
|
-
"flex w-full min-w-0 rounded-
|
|
407
|
+
"flex w-full min-w-0 rounded-lg border bg-transparent text-base font-medium transition-all duration-400",
|
|
408
408
|
"outline-none font-sans",
|
|
409
409
|
// Disabled
|
|
410
|
-
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-
|
|
411
|
-
// Responsive text size
|
|
412
|
-
"md:text-sm",
|
|
410
|
+
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-40",
|
|
413
411
|
// Default state
|
|
414
|
-
"border-
|
|
412
|
+
"border-gray-stroke-default bg-background",
|
|
415
413
|
// Hover/Focus/Active states
|
|
416
|
-
"hover:border-
|
|
417
|
-
"focus:border-focus-ring",
|
|
418
|
-
"active:border-
|
|
414
|
+
"hover:border-focus-ring",
|
|
415
|
+
"focus:border-2 focus:border-focus-ring",
|
|
416
|
+
"active:border-focus-ring",
|
|
419
417
|
// Textarea specific
|
|
420
418
|
"field-sizing-content min-h-16 resize-y px-3 py-2"
|
|
421
419
|
].join(" ");
|
|
422
420
|
var errorStyles = [
|
|
423
|
-
"border-
|
|
424
|
-
"
|
|
425
|
-
"
|
|
421
|
+
"border-error-stroke-default bg-white",
|
|
422
|
+
"hover:border-error-stroke-default",
|
|
423
|
+
"focus:border-2 focus:border-error-stroke-default",
|
|
424
|
+
"active:border-error-stroke-default"
|
|
426
425
|
].join(" ");
|
|
427
426
|
var Textarea = React6.forwardRef(
|
|
428
427
|
({ className, error, ...props }, ref) => {
|