@hexure/ui 1.13.13 → 1.13.15
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/README.md +1 -1
- package/dist/cjs/index.js +1277 -1266
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Input/Input.d.ts +2 -23
- package/dist/esm/index.js +1230 -1218
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Input/Input.d.ts +2 -23
- package/dist/index.d.ts +2 -23
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -342,48 +342,27 @@ interface styleProps$2 {
|
|
|
342
342
|
width?: number | string;
|
|
343
343
|
}
|
|
344
344
|
interface InputProps extends AccessibleProps {
|
|
345
|
-
/** Force a specific format/mask for the Input value */
|
|
346
345
|
format?: 'phone' | 'currency' | 'currency_decimal' | 'ssn';
|
|
347
|
-
/** Set the height of input. */
|
|
348
346
|
height?: string;
|
|
349
|
-
/** Display a read only suffix. Example: kg, lbs, etc */
|
|
350
347
|
suffix?: string;
|
|
351
|
-
/** Display the input as invalid, with a red border and red text */
|
|
352
348
|
invalid?: boolean;
|
|
353
|
-
|
|
349
|
+
loading?: boolean;
|
|
354
350
|
max?: string;
|
|
355
|
-
/** Use with a text input to define the max number of characters */
|
|
356
351
|
maxLength?: number;
|
|
357
|
-
/** Use with a number input to define the min allowed number */
|
|
358
352
|
min?: string;
|
|
359
|
-
/** A method to be called when the focus moves away from the input */
|
|
360
353
|
onBlur?: (e?: any) => void;
|
|
361
|
-
/** A method to be called when the focus moves onto the input */
|
|
362
354
|
onFocus?: (e?: any) => void;
|
|
363
|
-
/** A method to be called when the value of the input changes */
|
|
364
355
|
onChange?: (e?: any) => void;
|
|
365
|
-
/** A method to be called when the use presses a key */
|
|
366
356
|
onKeyDown?: (e?: any) => void;
|
|
367
|
-
/** A method to be called when a suggested value is selected */
|
|
368
357
|
onSuggestedSelect?: (e?: any) => void;
|
|
369
|
-
/** Display placeholder text in the input */
|
|
370
358
|
placeholder?: string;
|
|
371
|
-
/** Display the input as read only, preventing the user from inteacting with it */
|
|
372
359
|
readOnly?: boolean;
|
|
373
|
-
/** Use with a number input to define how the number increments */
|
|
374
|
-
step?: number;
|
|
375
|
-
/** Show the number of characters that have been entered */
|
|
376
360
|
showCharCount?: boolean;
|
|
377
|
-
|
|
361
|
+
step?: number;
|
|
378
362
|
style?: styleProps$2;
|
|
379
|
-
/** Define the type of input to be displayed */
|
|
380
363
|
type?: 'date' | 'datetime-local' | 'email' | 'number' | 'password' | 'tel' | 'text' | 'url' | 'textarea' | 'search';
|
|
381
|
-
/** Set the value of the input. This should be used by the parent component to control the input's value. */
|
|
382
364
|
value?: string;
|
|
383
|
-
/** Display a list of suggested values to pick from. This should be used with the onChange or onKeyDown event handlers. Doesn't work with textarea inputs. */
|
|
384
365
|
suggestedValues?: string[];
|
|
385
|
-
/** Display a loading indicator to the far right of the input */
|
|
386
|
-
loading?: boolean;
|
|
387
366
|
}
|
|
388
367
|
declare const Input: FC<InputProps>;
|
|
389
368
|
|