@webority/ui-react 0.9.5 → 0.9.7
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default function AppButton({ children, variant, size, type, loading, disabled, block, leftIcon, rightIcon, href, className, ...rest }: {
|
|
1
|
+
export default function AppButton({ children, variant, size, type, loading, disabled, block, leftIcon, rightIcon, href, static: isStatic, className, ...rest }: {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
block?: boolean;
|
|
4
4
|
children: any;
|
|
@@ -9,6 +9,7 @@ export default function AppButton({ children, variant, size, type, loading, disa
|
|
|
9
9
|
loading?: boolean;
|
|
10
10
|
rightIcon?: any;
|
|
11
11
|
size?: string;
|
|
12
|
+
static?: boolean;
|
|
12
13
|
type?: string;
|
|
13
14
|
variant?: string;
|
|
14
15
|
}): import("react").JSX.Element;
|
|
@@ -34,6 +34,10 @@
|
|
|
34
34
|
* @param {number} [props.maxLength] Character cap; the count turns red as it is approached.
|
|
35
35
|
* @param {import('react').ReactNode} [props.prefix] A bordered box before the input (e.g. ₹, https://).
|
|
36
36
|
* @param {import('react').ReactNode} [props.suffix] A bordered box after the input (e.g. .00, .com).
|
|
37
|
+
* @param {import('react').ReactNode} [props.action] A control rendered BESIDE the field, outside its
|
|
38
|
+
* border — a labelled action button (verify, apply, send code), or a confirmation once the field
|
|
39
|
+
* is resolved. The field flexes to fill the row; the action keeps its natural width. Exclusive
|
|
40
|
+
* with the in-field shells (unit / password / affix / trailing icon); pairs with a leading icon.
|
|
37
41
|
* @param {boolean} [props.floatingLabel=false] Label sits inside as a placeholder, then slides up
|
|
38
42
|
* on focus/fill. Opt-in variant; standalone only (no icon/unit/prefix in the same field).
|
|
39
43
|
* @param {"bare"} [props.variant] Borderless variant — no border/background, inherits the
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
* @param {string} [props.name]
|
|
16
16
|
* @param {number} [props.rows=4]
|
|
17
17
|
* @param {boolean} [props.autoGrow=false] Grow the height to fit the content as the user types.
|
|
18
|
+
* @param {boolean} [props.showCount=false] Show a live `count / maxLength` under the field.
|
|
19
|
+
* @param {number} [props.maxLength] Character cap; the count turns red as it is approached.
|
|
18
20
|
* @param {string} [props.className]
|
|
19
21
|
* @param {string} [props.fieldClassName]
|
|
20
22
|
* @param {import('react').Ref<HTMLTextAreaElement>} [ref]
|