@lumx/vue 4.19.0-next.0 → 4.19.0-next.1

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.
@@ -1,8 +1,11 @@
1
+ import { VNode } from 'vue';
1
2
  import { TextFieldProps as UIProps, TextFieldPropsToOverride } from '@lumx/core/js/components/TextField/TextField';
2
3
  import { InputLabelProps } from '@lumx/core/js/components/InputLabel';
3
4
  import { CLASSNAME, COMPONENT_NAME } from '@lumx/core/js/components/TextField/constants';
4
5
  import { VueToJSXProps } from '../../utils/VueToJSX';
5
6
  export type TextFieldProps = VueToJSXProps<UIProps, TextFieldPropsToOverride | 'chips'> & {
7
+ /** Character counter message formatter. Receives remaining character count, returns accessible label (e.g. \"{n} characters remaining\"). */
8
+ charCounterMessage?: (charCount: number) => string | VNode;
6
9
  /** Native input id property (generated if not provided). */
7
10
  id?: string;
8
11
  /** Props to pass to the clear button. If not specified, the button won't be displayed. */
@@ -46,6 +49,8 @@ declare const TextField: import('vue').DefineSetupFnComponent<TextFieldProps, {
46
49
  }, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "chips" | TextFieldPropsToOverride> & {
47
50
  class?: import('../../utils/VueToJSX').ClassValue;
48
51
  } & {
52
+ /** Character counter message formatter. Receives remaining character count, returns accessible label (e.g. \"{n} characters remaining\"). */
53
+ charCounterMessage?: (charCount: number) => string | VNode;
49
54
  /** Native input id property (generated if not provided). */
50
55
  id?: string;
51
56
  /** Props to pass to the clear button. If not specified, the button won't be displayed. */
@@ -73,6 +73,7 @@ export declare const MaxLength: {
73
73
  args: {
74
74
  value: string;
75
75
  maxLength: number;
76
+ charCounterMessage: (n: number) => string;
76
77
  label: string;
77
78
  helper: string;
78
79
  };