@muraldevkit/ui-toolkit 4.7.2 → 4.8.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.
@@ -11,7 +11,7 @@ export type InputKinds = 'default' | 'inline' | 'inline-label';
11
11
  export type InputSizes = 'default' | 'large';
12
12
  export declare const allowedCheckboxValues: {
13
13
  selected: readonly ["default", "checked", "indeterminate"];
14
- states: readonly ["default", "disabled", "error"];
14
+ states: readonly ["default", "disabled", "error", "read-only"];
15
15
  };
16
16
  export type CheckboxStates = (typeof allowedCheckboxValues.states)[number];
17
17
  export type CheckboxSelected = (typeof allowedCheckboxValues.selected)[number];
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { AttrsObject } from '../../../../utils';
3
3
  import './MrlTextarea.global.scss';
4
+ type MrlTextareaState = 'default' | 'disabled' | 'error' | 'read-only';
4
5
  interface MrlTextareaProps {
5
6
  /** Applies additional HTML attributes to the textarea element */
6
7
  attrs?: AttrsObject;
@@ -22,7 +23,7 @@ interface MrlTextareaProps {
22
23
  /**
23
24
  * Changes the state of the input based on user permissions or actions.
24
25
  */
25
- state?: 'disabled' | 'error';
26
+ state?: MrlTextareaState;
26
27
  /** Additional class to add to the textarea */
27
28
  className?: string;
28
29
  /** Autoexpand will automatically adjust the height of the textarea based on the amount of text within it */