@commercetools-uikit/money-input 19.22.5 → 19.22.6
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
|
@@ -59,13 +59,13 @@ export default Example;
|
|
|
59
59
|
| `value` | `Object`<br/>[See signature.](#signature-value) | ✅ | | Value of the input. Consists of the currency code and an amount. `amount` is a string representing the amount. A dot has to be used as the decimal separator. |
|
|
60
60
|
| `currencies` | `Array: string[]` | | `[]` | List of possible currencies. When not provided or empty, the component renders a label with the value's currency instead of a dropdown. |
|
|
61
61
|
| `placeholder` | `string` | | | Placeholder text for the input |
|
|
62
|
-
| `onBlur` | `Function`<br/>[See signature.](#signature-
|
|
63
|
-
| `onFocus` | `Function`<br/>[See signature.](#signature-
|
|
62
|
+
| `onBlur` | `Function`<br/>[See signature.](#signature-onblur) | | | Called when input is blurred |
|
|
63
|
+
| `onFocus` | `Function`<br/>[See signature.](#signature-onfocus) | | | Called when input is focused |
|
|
64
64
|
| `isCondensed` | `boolean` | | | Use this property to reduce the paddings of the component for a ui compact variant |
|
|
65
65
|
| `isDisabled` | `boolean` | | | Indicates that the input cannot be modified (e.g not authorized, or changes currently saving). |
|
|
66
66
|
| `isReadOnly` | `boolean` | | | Indicates that the field is displaying read-only content |
|
|
67
67
|
| `isAutofocussed` | `boolean` | | | Focus the input on initial render |
|
|
68
|
-
| `onChange` | `Function`<br/>[See signature.](#signature-
|
|
68
|
+
| `onChange` | `Function`<br/>[See signature.](#signature-onchange) | | | Called with the event of the input or dropdown when either the currency or the amount have changed. |
|
|
69
69
|
| `menuPortalTarget` | `ReactSelectProps['menuPortalTarget']` | | | Dom element to portal the currency select menu to
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
70
70
|
| `menuPortalZIndex` | `number` | | `1` | z-index value for the currency select menu portal
<br>
Use in conjunction with `menuPortalTarget` |
|
|
71
71
|
| `menuShouldBlockScroll` | `ReactSelectProps['menuShouldBlockScroll']` | | | whether the menu should block scroll while open
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
@@ -1421,7 +1421,7 @@ MoneyInput.isTouched = touched => Boolean(touched && touched.currencyCode && tou
|
|
|
1421
1421
|
var MoneyInput$1 = MoneyInput;
|
|
1422
1422
|
|
|
1423
1423
|
// NOTE: This string will be replaced on build time with the package version.
|
|
1424
|
-
var version = "19.22.
|
|
1424
|
+
var version = "19.22.6";
|
|
1425
1425
|
|
|
1426
1426
|
exports["default"] = MoneyInput$1;
|
|
1427
1427
|
exports.version = version;
|
|
@@ -1359,7 +1359,7 @@ MoneyInput.isTouched = touched => Boolean(touched && touched.currencyCode && tou
|
|
|
1359
1359
|
var MoneyInput$1 = MoneyInput;
|
|
1360
1360
|
|
|
1361
1361
|
// NOTE: This string will be replaced on build time with the package version.
|
|
1362
|
-
var version = "19.22.
|
|
1362
|
+
var version = "19.22.6";
|
|
1363
1363
|
|
|
1364
1364
|
exports["default"] = MoneyInput$1;
|
|
1365
1365
|
exports.version = version;
|
|
@@ -1391,6 +1391,6 @@ MoneyInput.isTouched = touched => Boolean(touched && touched.currencyCode && tou
|
|
|
1391
1391
|
var MoneyInput$1 = MoneyInput;
|
|
1392
1392
|
|
|
1393
1393
|
// NOTE: This string will be replaced on build time with the package version.
|
|
1394
|
-
var version = "19.22.
|
|
1394
|
+
var version = "19.22.6";
|
|
1395
1395
|
|
|
1396
1396
|
export { MoneyInput$1 as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/money-input",
|
|
3
3
|
"description": "A controlled input component for money values with validation states.",
|
|
4
|
-
"version": "19.22.
|
|
4
|
+
"version": "19.22.6",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/constraints": "19.22.
|
|
25
|
-
"@commercetools-uikit/design-system": "19.22.
|
|
26
|
-
"@commercetools-uikit/hooks": "19.22.
|
|
27
|
-
"@commercetools-uikit/icons": "19.22.
|
|
28
|
-
"@commercetools-uikit/input-utils": "19.22.
|
|
29
|
-
"@commercetools-uikit/select-utils": "19.22.
|
|
30
|
-
"@commercetools-uikit/tooltip": "19.22.
|
|
31
|
-
"@commercetools-uikit/utils": "19.22.
|
|
24
|
+
"@commercetools-uikit/constraints": "19.22.6",
|
|
25
|
+
"@commercetools-uikit/design-system": "19.22.6",
|
|
26
|
+
"@commercetools-uikit/hooks": "19.22.6",
|
|
27
|
+
"@commercetools-uikit/icons": "19.22.6",
|
|
28
|
+
"@commercetools-uikit/input-utils": "19.22.6",
|
|
29
|
+
"@commercetools-uikit/select-utils": "19.22.6",
|
|
30
|
+
"@commercetools-uikit/tooltip": "19.22.6",
|
|
31
|
+
"@commercetools-uikit/utils": "19.22.6",
|
|
32
32
|
"@emotion/react": "^11.10.5",
|
|
33
33
|
"@emotion/styled": "^11.10.5",
|
|
34
34
|
"lodash": "4.17.21",
|