@dloizides/ui-forms 1.61.0 → 1.63.0
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 +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +150 -137
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +150 -137
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -510,6 +510,8 @@ interface FormFieldProps extends Omit<TextInputProps, 'style'> {
|
|
|
510
510
|
/** Grows a multi-line box to fit its text, so nothing scrolls inside it; never fewer rows than this. */
|
|
511
511
|
autoGrowMinRows?: number;
|
|
512
512
|
labelVariant?: FieldLabelVariant;
|
|
513
|
+
/** A decorative icon drawn inside the start of the input (a search glyph); not used with `recentKey`. */
|
|
514
|
+
icon?: React.ReactNode;
|
|
513
515
|
}
|
|
514
516
|
declare const FormField: ({ autoGrowMinRows, ...fieldProps }: FormFieldProps) => React.ReactElement;
|
|
515
517
|
|
|
@@ -1061,6 +1063,8 @@ interface DateRangeControlProps {
|
|
|
1061
1063
|
fromPlaceholder?: string;
|
|
1062
1064
|
/** @deprecated Ignored: a date input shows no typed format hint (DATE-INPUT-1). */
|
|
1063
1065
|
toPlaceholder?: string;
|
|
1066
|
+
/** Draw the web `<from> – <to>` label; false when the caller already labels the field (default true). */
|
|
1067
|
+
showLabel?: boolean;
|
|
1064
1068
|
/** PRE-LOCALIZED hint applied to BOTH inputs; defaults to `<fromLabel> – <toLabel>`. */
|
|
1065
1069
|
accessibilityHint?: string;
|
|
1066
1070
|
/** Merged LAST onto the row wrapper. */
|
|
@@ -1069,7 +1073,7 @@ interface DateRangeControlProps {
|
|
|
1069
1073
|
testID: string;
|
|
1070
1074
|
}
|
|
1071
1075
|
/** An inclusive from/to date range: one field with a range calendar on web, two `DateField`s on native. */
|
|
1072
|
-
declare function DateRangeControl({ value, onChange, onSubmit, fromLabel, toLabel, accessibilityHint, style, testID, }: DateRangeControlProps): React.ReactElement;
|
|
1076
|
+
declare function DateRangeControl({ value, onChange, onSubmit, fromLabel, toLabel, accessibilityHint, showLabel, style, testID, }: DateRangeControlProps): React.ReactElement;
|
|
1073
1077
|
|
|
1074
1078
|
interface DateFieldProps {
|
|
1075
1079
|
/** PRE-LOCALIZED label; also the accessible name. */
|
package/dist/index.d.ts
CHANGED
|
@@ -510,6 +510,8 @@ interface FormFieldProps extends Omit<TextInputProps, 'style'> {
|
|
|
510
510
|
/** Grows a multi-line box to fit its text, so nothing scrolls inside it; never fewer rows than this. */
|
|
511
511
|
autoGrowMinRows?: number;
|
|
512
512
|
labelVariant?: FieldLabelVariant;
|
|
513
|
+
/** A decorative icon drawn inside the start of the input (a search glyph); not used with `recentKey`. */
|
|
514
|
+
icon?: React.ReactNode;
|
|
513
515
|
}
|
|
514
516
|
declare const FormField: ({ autoGrowMinRows, ...fieldProps }: FormFieldProps) => React.ReactElement;
|
|
515
517
|
|
|
@@ -1061,6 +1063,8 @@ interface DateRangeControlProps {
|
|
|
1061
1063
|
fromPlaceholder?: string;
|
|
1062
1064
|
/** @deprecated Ignored: a date input shows no typed format hint (DATE-INPUT-1). */
|
|
1063
1065
|
toPlaceholder?: string;
|
|
1066
|
+
/** Draw the web `<from> – <to>` label; false when the caller already labels the field (default true). */
|
|
1067
|
+
showLabel?: boolean;
|
|
1064
1068
|
/** PRE-LOCALIZED hint applied to BOTH inputs; defaults to `<fromLabel> – <toLabel>`. */
|
|
1065
1069
|
accessibilityHint?: string;
|
|
1066
1070
|
/** Merged LAST onto the row wrapper. */
|
|
@@ -1069,7 +1073,7 @@ interface DateRangeControlProps {
|
|
|
1069
1073
|
testID: string;
|
|
1070
1074
|
}
|
|
1071
1075
|
/** An inclusive from/to date range: one field with a range calendar on web, two `DateField`s on native. */
|
|
1072
|
-
declare function DateRangeControl({ value, onChange, onSubmit, fromLabel, toLabel, accessibilityHint, style, testID, }: DateRangeControlProps): React.ReactElement;
|
|
1076
|
+
declare function DateRangeControl({ value, onChange, onSubmit, fromLabel, toLabel, accessibilityHint, showLabel, style, testID, }: DateRangeControlProps): React.ReactElement;
|
|
1073
1077
|
|
|
1074
1078
|
interface DateFieldProps {
|
|
1075
1079
|
/** PRE-LOCALIZED label; also the accessible name. */
|