@vellira-ui/types 2.44.4 → 2.45.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.
@@ -1,3 +1,5 @@
1
+ export type FormFieldMessageTone = 'neutral' | 'success' | 'warning' | 'danger';
2
+ export type FormFieldMessageLive = 'off' | 'polite';
1
3
  export interface BaseFormFieldProps {
2
4
  /** Visible field label. */
3
5
  label?: string;
@@ -5,6 +7,12 @@ export interface BaseFormFieldProps {
5
7
  description?: string;
6
8
  /** Error message linked to the control. Also implies invalid state. */
7
9
  error?: string;
10
+ /** Supporting result/status message rendered below the control. Replaced by error when present. */
11
+ message?: string;
12
+ /** Visual tone for message. Error always uses danger tone. */
13
+ messageTone?: FormFieldMessageTone;
14
+ /** Live region behavior for non-error message content. */
15
+ messageLive?: FormFieldMessageLive;
8
16
  /** Marks the field and compatible child controls as required. */
9
17
  required?: boolean;
10
18
  /** Disables the field and compatible child controls. */
@@ -19,6 +27,8 @@ export interface BaseFormFieldProps {
19
27
  size?: 'sm' | 'md' | 'lg';
20
28
  /** Additional label content, such as an info affordance. */
21
29
  labelInfo?: string;
30
+ /** Action rendered next to the label without nesting inside the label element. */
31
+ labelAction?: string;
22
32
  /** Optional marker shown for non-required fields. Do not combine with required. */
23
33
  optionalText?: string;
24
34
  }
@@ -1 +1 @@
1
- {"version":3,"file":"formField.d.ts","sourceRoot":"","sources":["../src/formField.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,iEAAiE;IACjE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,OAAO,CA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A4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mFAAmF;IACnF,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellira-ui/types",
3
- "version": "2.44.4",
3
+ "version": "2.45.0",
4
4
  "description": "Shared TypeScript types for Vellira Design System",
5
5
  "author": "Roman Bakurov",
6
6
  "license": "MIT",