@2urgseui/core 0.1.4 → 0.1.6
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 +381 -319
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +374 -312
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -538,6 +538,8 @@ interface FormFieldProps<TFieldValues extends FieldValues> {
|
|
|
538
538
|
name: Path<TFieldValues>;
|
|
539
539
|
/** When omitted, no visible label is rendered; use `aria-label` on controls or descriptions for a11y. */
|
|
540
540
|
label?: React.ReactNode;
|
|
541
|
+
/** Optional hint shown in a tooltip on hover next to the label. Plain text, HTML string, or React node. */
|
|
542
|
+
labelTooltip?: React.ReactNode;
|
|
541
543
|
register?: UseFormRegister<TFieldValues>;
|
|
542
544
|
control?: Control<TFieldValues>;
|
|
543
545
|
rules?: RegisterOptions<TFieldValues, Path<TFieldValues>>;
|
|
@@ -577,7 +579,7 @@ interface FormFieldProps<TFieldValues extends FieldValues> {
|
|
|
577
579
|
value?: InputProps["value"] | AsyncSelectOption | null;
|
|
578
580
|
}) => React.ReactNode;
|
|
579
581
|
}
|
|
580
|
-
declare function FormField<TFieldValues extends FieldValues>({ name, label, register, control, rules, description, required, error, variant, inputProps, textareaProps, checkboxProps, switchProps, selectProps, radioProps, otpProps, richTextProps, dropzoneProps, asyncSelectProps, numericInput, maskInput, className, renderInput, }: FormFieldProps<TFieldValues>): react_jsx_runtime.JSX.Element;
|
|
582
|
+
declare function FormField<TFieldValues extends FieldValues>({ name, label, labelTooltip, register, control, rules, description, required, error, variant, inputProps, textareaProps, checkboxProps, switchProps, selectProps, radioProps, otpProps, richTextProps, dropzoneProps, asyncSelectProps, numericInput, maskInput, className, renderInput, }: FormFieldProps<TFieldValues>): react_jsx_runtime.JSX.Element;
|
|
581
583
|
/** Maps react-hook-form field values to `AsyncSelect`’s `value` prop (supports `{ value, label }`, legacy `string`, `null`/`undefined`). */
|
|
582
584
|
declare function formValueToAsyncSelectOption(v: unknown): AsyncSelectOption | undefined;
|
|
583
585
|
|
|
@@ -657,6 +659,8 @@ declare const labelVariants: (props?: ({
|
|
|
657
659
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
658
660
|
interface LabelProps extends React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>, VariantProps<typeof labelVariants> {
|
|
659
661
|
required?: boolean;
|
|
662
|
+
/** Optional hint shown in a tooltip on hover next to the label. Plain text, HTML string, or React node. */
|
|
663
|
+
tooltip?: React.ReactNode;
|
|
660
664
|
}
|
|
661
665
|
declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
662
666
|
|
package/dist/index.d.ts
CHANGED
|
@@ -538,6 +538,8 @@ interface FormFieldProps<TFieldValues extends FieldValues> {
|
|
|
538
538
|
name: Path<TFieldValues>;
|
|
539
539
|
/** When omitted, no visible label is rendered; use `aria-label` on controls or descriptions for a11y. */
|
|
540
540
|
label?: React.ReactNode;
|
|
541
|
+
/** Optional hint shown in a tooltip on hover next to the label. Plain text, HTML string, or React node. */
|
|
542
|
+
labelTooltip?: React.ReactNode;
|
|
541
543
|
register?: UseFormRegister<TFieldValues>;
|
|
542
544
|
control?: Control<TFieldValues>;
|
|
543
545
|
rules?: RegisterOptions<TFieldValues, Path<TFieldValues>>;
|
|
@@ -577,7 +579,7 @@ interface FormFieldProps<TFieldValues extends FieldValues> {
|
|
|
577
579
|
value?: InputProps["value"] | AsyncSelectOption | null;
|
|
578
580
|
}) => React.ReactNode;
|
|
579
581
|
}
|
|
580
|
-
declare function FormField<TFieldValues extends FieldValues>({ name, label, register, control, rules, description, required, error, variant, inputProps, textareaProps, checkboxProps, switchProps, selectProps, radioProps, otpProps, richTextProps, dropzoneProps, asyncSelectProps, numericInput, maskInput, className, renderInput, }: FormFieldProps<TFieldValues>): react_jsx_runtime.JSX.Element;
|
|
582
|
+
declare function FormField<TFieldValues extends FieldValues>({ name, label, labelTooltip, register, control, rules, description, required, error, variant, inputProps, textareaProps, checkboxProps, switchProps, selectProps, radioProps, otpProps, richTextProps, dropzoneProps, asyncSelectProps, numericInput, maskInput, className, renderInput, }: FormFieldProps<TFieldValues>): react_jsx_runtime.JSX.Element;
|
|
581
583
|
/** Maps react-hook-form field values to `AsyncSelect`’s `value` prop (supports `{ value, label }`, legacy `string`, `null`/`undefined`). */
|
|
582
584
|
declare function formValueToAsyncSelectOption(v: unknown): AsyncSelectOption | undefined;
|
|
583
585
|
|
|
@@ -657,6 +659,8 @@ declare const labelVariants: (props?: ({
|
|
|
657
659
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
658
660
|
interface LabelProps extends React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>, VariantProps<typeof labelVariants> {
|
|
659
661
|
required?: boolean;
|
|
662
|
+
/** Optional hint shown in a tooltip on hover next to the label. Plain text, HTML string, or React node. */
|
|
663
|
+
tooltip?: React.ReactNode;
|
|
660
664
|
}
|
|
661
665
|
declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
662
666
|
|