@opencxh/ui-kit 3.136.3 → 3.136.4
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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +310 -316
- package/dist/index.js.map +1 -1
- package/dist/src/input/TextField.d.ts +17 -2
- package/package.json +1 -1
|
@@ -41,8 +41,23 @@ export interface TextFieldProps extends Omit<React.InputHTMLAttributes<HTMLInput
|
|
|
41
41
|
*/
|
|
42
42
|
labelClassName?: string;
|
|
43
43
|
}
|
|
44
|
-
/**
|
|
45
|
-
|
|
44
|
+
/**
|
|
45
|
+
* Shared with TextArea / Select / DatePicker.
|
|
46
|
+
*
|
|
47
|
+
* Sentence case, not the uppercase small-caps it used to be: a form is a page
|
|
48
|
+
* now, and every field label shouting in caps competes with the section titles
|
|
49
|
+
* beside them. Uppercase is still the section-label treatment (`tracking-label`),
|
|
50
|
+
* one level up.
|
|
51
|
+
*/
|
|
52
|
+
export declare const fieldLabelClasses = "mb-1.5 block text-sm font-medium";
|
|
53
|
+
/**
|
|
54
|
+
* Shared field frame. A resting 1px edge in `border-strong` — a form field has
|
|
55
|
+
* to read as an empty box you can type in, which the lighter `border` used for
|
|
56
|
+
* structural rules does not do at this size.
|
|
57
|
+
*/
|
|
58
|
+
export declare const fieldFrameClasses: string;
|
|
59
|
+
/** Resting / error edge, shared so every control agrees on what "invalid" looks like. */
|
|
60
|
+
export declare const fieldEdgeClasses: (hasError: boolean) => "border-border-strong" | "border-danger-border bg-danger-soft";
|
|
46
61
|
/**
|
|
47
62
|
* TextField component with theme integration and validation states
|
|
48
63
|
*
|