@gomeniucivan/ui 1.0.48 → 1.0.49
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 +15 -4
- package/dist/index.d.ts +15 -4
- package/dist/index.js +167 -164
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +148 -145
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2430,6 +2430,10 @@ interface FormProps<T extends Record<string, any>> extends Omit<FormHTMLAttribut
|
|
|
2430
2430
|
initialValues?: T;
|
|
2431
2431
|
validate?: (values: T) => Partial<Record<keyof T, string>>;
|
|
2432
2432
|
className?: string;
|
|
2433
|
+
/**
|
|
2434
|
+
* Maximum width of the form. Accepts any CSS width value (e.g., `'56rem'`, `'800px'`, `'100%'`).
|
|
2435
|
+
*/
|
|
2436
|
+
maxWidth?: string | number;
|
|
2433
2437
|
/**
|
|
2434
2438
|
* Layout of form fields.
|
|
2435
2439
|
* - `vertical`: label/description stacked above control (default)
|
|
@@ -2472,7 +2476,7 @@ interface FormGroupProps {
|
|
|
2472
2476
|
variant?: FormVariant;
|
|
2473
2477
|
}
|
|
2474
2478
|
|
|
2475
|
-
declare function Form<T extends Record<string, any>>({ children, onSubmit, form, initialValues, validate, className, style, layout, labelWidth, variant, fieldMinWidth, ...props }: FormProps<T>): react_jsx_runtime.JSX.Element;
|
|
2479
|
+
declare function Form<T extends Record<string, any>>({ children, onSubmit, form, initialValues, validate, className, style, layout, labelWidth, variant, fieldMinWidth, maxWidth, ...props }: FormProps<T>): react_jsx_runtime.JSX.Element;
|
|
2476
2480
|
declare namespace Form {
|
|
2477
2481
|
var displayName: string;
|
|
2478
2482
|
}
|
|
@@ -2528,9 +2532,16 @@ type FormLabelProps = {
|
|
|
2528
2532
|
className?: string;
|
|
2529
2533
|
description?: react__default.ReactNode;
|
|
2530
2534
|
required?: boolean;
|
|
2535
|
+
/**
|
|
2536
|
+
* Called when the label is clicked. Used by form field components
|
|
2537
|
+
* to focus inputs, open selects, toggle switches, etc.
|
|
2538
|
+
* When provided, the native `htmlFor` behaviour is prevented
|
|
2539
|
+
* so the callback has full control.
|
|
2540
|
+
*/
|
|
2541
|
+
onLabelClick?: () => void;
|
|
2531
2542
|
};
|
|
2532
2543
|
declare const FormLabel: {
|
|
2533
|
-
({ htmlFor, children, className, description, required }: FormLabelProps): react_jsx_runtime.JSX.Element;
|
|
2544
|
+
({ htmlFor, children, className, description, required, onLabelClick, }: FormLabelProps): react_jsx_runtime.JSX.Element;
|
|
2534
2545
|
displayName: string;
|
|
2535
2546
|
};
|
|
2536
2547
|
|
|
@@ -2557,7 +2568,7 @@ type FormCheckboxProps<T extends Record<string, any>> = Omit<CheckboxProps, 'che
|
|
|
2557
2568
|
onChange?: (checked: boolean) => void;
|
|
2558
2569
|
};
|
|
2559
2570
|
declare const FormCheckbox: {
|
|
2560
|
-
<T extends Record<string, any>>({ name, label, description, form, className, rules, onChange, ...rest }: FormCheckboxProps<T>): react_jsx_runtime.JSX.Element;
|
|
2571
|
+
<T extends Record<string, any>>({ name, label, description, form, className, rules, onChange, disabled, ...rest }: FormCheckboxProps<T>): react_jsx_runtime.JSX.Element;
|
|
2561
2572
|
displayName: string;
|
|
2562
2573
|
};
|
|
2563
2574
|
|
|
@@ -2694,7 +2705,7 @@ type FormSwitchProps<T extends Record<string, any>> = Omit<SwitchProps, 'checked
|
|
|
2694
2705
|
onChange?: (checked: boolean) => void;
|
|
2695
2706
|
};
|
|
2696
2707
|
declare const FormSwitch: {
|
|
2697
|
-
<T extends Record<string, any>>({ name, label, description, form, className, rules, onChange, ...rest }: FormSwitchProps<T>): react_jsx_runtime.JSX.Element;
|
|
2708
|
+
<T extends Record<string, any>>({ name, label, description, form, className, rules, onChange, disabled, ...rest }: FormSwitchProps<T>): react_jsx_runtime.JSX.Element;
|
|
2698
2709
|
displayName: string;
|
|
2699
2710
|
};
|
|
2700
2711
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2430,6 +2430,10 @@ interface FormProps<T extends Record<string, any>> extends Omit<FormHTMLAttribut
|
|
|
2430
2430
|
initialValues?: T;
|
|
2431
2431
|
validate?: (values: T) => Partial<Record<keyof T, string>>;
|
|
2432
2432
|
className?: string;
|
|
2433
|
+
/**
|
|
2434
|
+
* Maximum width of the form. Accepts any CSS width value (e.g., `'56rem'`, `'800px'`, `'100%'`).
|
|
2435
|
+
*/
|
|
2436
|
+
maxWidth?: string | number;
|
|
2433
2437
|
/**
|
|
2434
2438
|
* Layout of form fields.
|
|
2435
2439
|
* - `vertical`: label/description stacked above control (default)
|
|
@@ -2472,7 +2476,7 @@ interface FormGroupProps {
|
|
|
2472
2476
|
variant?: FormVariant;
|
|
2473
2477
|
}
|
|
2474
2478
|
|
|
2475
|
-
declare function Form<T extends Record<string, any>>({ children, onSubmit, form, initialValues, validate, className, style, layout, labelWidth, variant, fieldMinWidth, ...props }: FormProps<T>): react_jsx_runtime.JSX.Element;
|
|
2479
|
+
declare function Form<T extends Record<string, any>>({ children, onSubmit, form, initialValues, validate, className, style, layout, labelWidth, variant, fieldMinWidth, maxWidth, ...props }: FormProps<T>): react_jsx_runtime.JSX.Element;
|
|
2476
2480
|
declare namespace Form {
|
|
2477
2481
|
var displayName: string;
|
|
2478
2482
|
}
|
|
@@ -2528,9 +2532,16 @@ type FormLabelProps = {
|
|
|
2528
2532
|
className?: string;
|
|
2529
2533
|
description?: react__default.ReactNode;
|
|
2530
2534
|
required?: boolean;
|
|
2535
|
+
/**
|
|
2536
|
+
* Called when the label is clicked. Used by form field components
|
|
2537
|
+
* to focus inputs, open selects, toggle switches, etc.
|
|
2538
|
+
* When provided, the native `htmlFor` behaviour is prevented
|
|
2539
|
+
* so the callback has full control.
|
|
2540
|
+
*/
|
|
2541
|
+
onLabelClick?: () => void;
|
|
2531
2542
|
};
|
|
2532
2543
|
declare const FormLabel: {
|
|
2533
|
-
({ htmlFor, children, className, description, required }: FormLabelProps): react_jsx_runtime.JSX.Element;
|
|
2544
|
+
({ htmlFor, children, className, description, required, onLabelClick, }: FormLabelProps): react_jsx_runtime.JSX.Element;
|
|
2534
2545
|
displayName: string;
|
|
2535
2546
|
};
|
|
2536
2547
|
|
|
@@ -2557,7 +2568,7 @@ type FormCheckboxProps<T extends Record<string, any>> = Omit<CheckboxProps, 'che
|
|
|
2557
2568
|
onChange?: (checked: boolean) => void;
|
|
2558
2569
|
};
|
|
2559
2570
|
declare const FormCheckbox: {
|
|
2560
|
-
<T extends Record<string, any>>({ name, label, description, form, className, rules, onChange, ...rest }: FormCheckboxProps<T>): react_jsx_runtime.JSX.Element;
|
|
2571
|
+
<T extends Record<string, any>>({ name, label, description, form, className, rules, onChange, disabled, ...rest }: FormCheckboxProps<T>): react_jsx_runtime.JSX.Element;
|
|
2561
2572
|
displayName: string;
|
|
2562
2573
|
};
|
|
2563
2574
|
|
|
@@ -2694,7 +2705,7 @@ type FormSwitchProps<T extends Record<string, any>> = Omit<SwitchProps, 'checked
|
|
|
2694
2705
|
onChange?: (checked: boolean) => void;
|
|
2695
2706
|
};
|
|
2696
2707
|
declare const FormSwitch: {
|
|
2697
|
-
<T extends Record<string, any>>({ name, label, description, form, className, rules, onChange, ...rest }: FormSwitchProps<T>): react_jsx_runtime.JSX.Element;
|
|
2708
|
+
<T extends Record<string, any>>({ name, label, description, form, className, rules, onChange, disabled, ...rest }: FormSwitchProps<T>): react_jsx_runtime.JSX.Element;
|
|
2698
2709
|
displayName: string;
|
|
2699
2710
|
};
|
|
2700
2711
|
|