kui-basic 1.0.59 → 1.1.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.ts CHANGED
@@ -285,6 +285,22 @@ type HeadingType = (props: HeadingProps) => React.ReactElement
285
285
 
286
286
  declare const Heading: HeadingType
287
287
 
288
+ type InputMessageVariant = "error" | "warning" | "success"
289
+
290
+ interface InputMessageProps
291
+ extends React.DetailedHTMLProps<
292
+ React.HTMLAttributes<HTMLDivElement>,
293
+ HTMLDivElement
294
+ >,
295
+ React.AriaAttributes {
296
+ msg?: string
297
+ variant?: InputMessageVariant
298
+ }
299
+
300
+ type InputMessageType = (props: InputMessageProps) => React.ReactElement
301
+
302
+ declare const InputMessage: InputMessageType
303
+
288
304
  interface InputProps
289
305
  extends React.DetailedHTMLProps<
290
306
  React.InputHTMLAttributes<HTMLInputElement>,
@@ -300,8 +316,11 @@ interface InputProps
300
316
  endIcon?: string | React.ReactElement | boolean
301
317
  messageClassName?: string
302
318
  labelInlineStyles?: string
319
+ message?: string | null
320
+ messageVariant?: InputMessageVariant
303
321
  errorMessage?: string | null
304
322
  warningMessage?: string | null
323
+ successMessa
305
324
  inputValue?: string | number | undefined
306
325
  type?: HTMLInputTypeAttribute
307
326
  }
@@ -324,22 +343,6 @@ type InputFileType = (props: InputFileProps) => React.ReactElement
324
343
 
325
344
  declare const InputFile: InputFileType
326
345
 
327
- type InputMessageVariant = "error" | "warning" | "success"
328
-
329
- interface InputMessageProps
330
- extends React.DetailedHTMLProps<
331
- React.HTMLAttributes<HTMLDivElement>,
332
- HTMLDivElement
333
- >,
334
- React.AriaAttributes {
335
- msg?: string
336
- variant?: InputMessageVariant
337
- }
338
-
339
- type InputMessageType = (props: InputMessageProps) => React.ReactElement
340
-
341
- declare const InputMessage: InputMessageType
342
-
343
346
  interface InputWithAdornmentsProps extends InputProps {
344
347
  cornerLabel?: string
345
348
  }