@commercetools-uikit/localized-rich-text-input 18.0.0 → 18.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/README.md CHANGED
@@ -49,28 +49,29 @@ export default Example;
49
49
 
50
50
  ## Properties
51
51
 
52
- | Props | Type | Required | Default | Description |
53
- | ------------------------------- | ----------------------------------------------------------------------------------------- | :------: | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
54
- | `id` | `string` | | | Used as prefix of HTML `id` property. Each input field id will have the language as a suffix (`${idPrefix}.${lang}`), e.g. \`foo.en |
55
- | `name` | `string` | | | Used as HTML `name` property for each input field. Each input field name will have the language as a suffix (`${namePrefix}.${lang}`), e.g. `foo.en` |
56
- | `value` | `Record` | ✅ | | Values to use. Keyed by language, the values are the actual values, e.g. \`{ en: '<p>Horse</p>', de: '<p>Pferd</p>' } |
57
- | `onChange` | `Function`<br/>[See signature.](#signature-onChange) | | | Gets called when any input is changed. Is called with the change event of the changed input. |
58
- | `selectedLanguage` | `string` | ✅ | | Specifies which language will be shown in case the `LocalizedRichTextInput` is collapsed. |
59
- | `onBlur` | `FocusEventHandler` | | | Called when any field is blurred. Is called with the `event` of that field. |
60
- | `onFocus` | `FocusEventHandler` | | | Called when any field is focussed. Is called with the `event` of that field. |
61
- | `defaultExpandMultilineText` | `boolean` | | | Expands input components holding multiline values instead of collapsing them by default. |
62
- | `hideLanguageExpansionControls` | `boolean` | | | Will hide the language expansion controls when set to `true`. All languages will be shown when set to `true` |
63
- | `defaultExpandLanguages` | `boolean` | | | Controls whether one or all languages are visible by default. Pass `true` to show all languages by default. |
64
- | `isDisabled` | `boolean` | | | Disables all input |
65
- | `isReadOnly` | `boolean` | | | Disables all input fields and shows them in read-only mode. |
66
- | `placeholder` | `Record` | | | Placeholders for each language. Object of the same shape as |
67
- | `horizontalConstraint` | `union`<br/>Possible values:<br/>`, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto'` | | `'scale'` | Horizontal size limit of the input fields. |
68
- | `hasError` | `boolean` | | | Will apply the error state to each input without showing any error message. |
69
- | `hasWarning` | `boolean` | | | Will apply the warning state to each input without showing any warning message. |
70
- | `errors` | `Record` | | | Used to show errors underneath the inputs of specific languages. Pass an object whose key is a language and whose value is the error to show for that key. |
71
- | `warnings` | `Record` | | | Used to show warnings underneath the inputs of specific languages. Pass an object whose key is a language and whose value is the warning to show for that key. |
72
- | `showExpandIcon` | `boolean` | | `false` | Shows an `expand` icon in the toolbar |
73
- | `onClickExpand` | `Function`<br/>[See signature.](#signature-onClickExpand) | | | Called when the `expand` button is clicked |
52
+ | Props | Type | Required | Default | Description |
53
+ | ------------------------------- | ----------------------------------------------------------------------------------------- | :------: | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
54
+ | `id` | `string` | | | Used as prefix of HTML `id` property. Each input field id will have the language as a suffix (`${idPrefix}.${lang}`), e.g. \`foo.en |
55
+ | `name` | `string` | | | Used as HTML `name` property for each input field. Each input field name will have the language as a suffix (`${namePrefix}.${lang}`), e.g. `foo.en` |
56
+ | `value` | `Record` | ✅ | | Values to use. Keyed by language, the values are the actual values, e.g. \`{ en: '<p>Horse</p>', de: '<p>Pferd</p>' } |
57
+ | `onChange` | `Function`<br/>[See signature.](#signature-onChange) | | | Gets called when any input is changed. Is called with the change event of the changed input. |
58
+ | `selectedLanguage` | `string` | ✅ | | Specifies which language will be shown in case the `LocalizedRichTextInput` is collapsed. |
59
+ | `onBlur` | `FocusEventHandler` | | | Called when any field is blurred. Is called with the `event` of that field. |
60
+ | `onFocus` | `FocusEventHandler` | | | Called when any field is focussed. Is called with the `event` of that field. |
61
+ | `defaultExpandMultilineText` | `boolean` | | | Expands input components holding multiline values instead of collapsing them by default. |
62
+ | `hideLanguageExpansionControls` | `boolean` | | | Will hide the language expansion controls when set to `true`. All languages will be shown when set to `true` |
63
+ | `defaultExpandLanguages` | `boolean` | | | Controls whether one or all languages are visible by default. Pass `true` to show all languages by default. |
64
+ | `isDisabled` | `boolean` | | | Disables all input |
65
+ | `isReadOnly` | `boolean` | | | Disables all input fields and shows them in read-only mode. |
66
+ | `placeholder` | `Record` | | | Placeholders for each language. Object of the same shape as |
67
+ | `horizontalConstraint` | `union`<br/>Possible values:<br/>`, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto'` | | `'scale'` | Horizontal size limit of the input fields. |
68
+ | `hasError` | `boolean` | | | Will apply the error state to each input without showing any error message. |
69
+ | `hasWarning` | `boolean` | | | Will apply the warning state to each input without showing any warning message. |
70
+ | `errors` | `Record` | | | Used to show errors underneath the inputs of specific languages. Pass an object whose key is a language and whose value is the error to show for that key. |
71
+ | `warnings` | `Record` | | | Used to show warnings underneath the inputs of specific languages. Pass an object whose key is a language and whose value is the warning to show for that key. |
72
+ | `additionalInfo` | `Record` | | | An object mapping locales to additional messages to be rendered below each input element.&#xA;Example:&#xA;{&#xA;en: 'Some value',&#xA;es: 'Algún valor',&#xA;} |
73
+ | `showExpandIcon` | `boolean` | | `false` | Shows an `expand` icon in the toolbar |
74
+ | `onClickExpand` | `Function`<br/>[See signature.](#signature-onClickExpand) | | | Called when the `expand` button is clicked |
74
75
 
75
76
  ## Signatures
76
77