@commercetools-uikit/money-field 15.8.0 → 15.10.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.
@@ -217,7 +217,7 @@ MoneyField.propTypes = process.env.NODE_ENV !== "production" ? {
217
217
  var MoneyField$1 = MoneyField;
218
218
 
219
219
  // NOTE: This string will be replaced on build time with the package version.
220
- var version = "15.8.0";
220
+ var version = "15.10.0";
221
221
 
222
222
  exports["default"] = MoneyField$1;
223
223
  exports.version = version;
@@ -177,7 +177,7 @@ MoneyField.propTypes = {};
177
177
  var MoneyField$1 = MoneyField;
178
178
 
179
179
  // NOTE: This string will be replaced on build time with the package version.
180
- var version = "15.8.0";
180
+ var version = "15.10.0";
181
181
 
182
182
  exports["default"] = MoneyField$1;
183
183
  exports.version = version;
@@ -191,6 +191,6 @@ MoneyField.propTypes = process.env.NODE_ENV !== "production" ? {
191
191
  var MoneyField$1 = MoneyField;
192
192
 
193
193
  // NOTE: This string will be replaced on build time with the package version.
194
- var version = "15.8.0";
194
+ var version = "15.10.0";
195
195
 
196
196
  export { MoneyField$1 as default, version };
@@ -1,20 +1,20 @@
1
1
  import { Component, type ReactElement, type ReactNode } from 'react';
2
2
  import { type Props as ReactSelectProps } from 'react-select';
3
3
  import { type TCurrencyCode } from '@commercetools-uikit/money-input';
4
- declare type TErrorRenderer = (key: string, error?: boolean) => ReactNode;
5
- declare type TFieldErrors = Record<string, boolean>;
6
- declare type TCustomFormErrors<Values> = {
4
+ type TErrorRenderer = (key: string, error?: boolean) => ReactNode;
5
+ type TFieldErrors = Record<string, boolean>;
6
+ type TCustomFormErrors<Values> = {
7
7
  [K in keyof Values]?: TFieldErrors;
8
8
  };
9
- declare type TTouched = {
9
+ type TTouched = {
10
10
  amount?: boolean;
11
11
  currencyCode?: boolean;
12
12
  };
13
- declare type TValue = {
13
+ type TValue = {
14
14
  amount: string;
15
15
  currencyCode: TCurrencyCode;
16
16
  };
17
- declare type TCustomEvent = {
17
+ type TCustomEvent = {
18
18
  target: {
19
19
  id?: string;
20
20
  name?: string;
@@ -22,7 +22,7 @@ declare type TCustomEvent = {
22
22
  };
23
23
  persist?: () => void;
24
24
  };
25
- declare type TMoneyFieldProps = {
25
+ type TMoneyFieldProps = {
26
26
  id?: string;
27
27
  horizontalConstraint?: 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 'scale' | 'auto';
28
28
  errors?: TFieldErrors;
@@ -51,7 +51,7 @@ declare type TMoneyFieldProps = {
51
51
  hintIcon?: ReactElement;
52
52
  hasHighPrecisionBadge?: boolean;
53
53
  };
54
- declare type TMoneyFieldState = Pick<TMoneyFieldProps, 'id'>;
54
+ type TMoneyFieldState = Pick<TMoneyFieldProps, 'id'>;
55
55
  declare class MoneyField extends Component<TMoneyFieldProps, TMoneyFieldState> {
56
56
  static displayName: string;
57
57
  static defaultProps: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/money-field",
3
3
  "description": "A controlled input component for money values with validation states and a label.",
4
- "version": "15.8.0",
4
+ "version": "15.10.0",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -21,13 +21,13 @@
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.19.0",
23
23
  "@babel/runtime-corejs3": "^7.19.1",
24
- "@commercetools-uikit/constraints": "15.8.0",
25
- "@commercetools-uikit/design-system": "15.8.0",
26
- "@commercetools-uikit/field-errors": "15.8.0",
27
- "@commercetools-uikit/field-label": "15.8.0",
28
- "@commercetools-uikit/money-input": "15.8.0",
29
- "@commercetools-uikit/spacings": "15.8.0",
30
- "@commercetools-uikit/utils": "15.8.0",
24
+ "@commercetools-uikit/constraints": "15.10.0",
25
+ "@commercetools-uikit/design-system": "15.10.0",
26
+ "@commercetools-uikit/field-errors": "15.10.0",
27
+ "@commercetools-uikit/field-label": "15.10.0",
28
+ "@commercetools-uikit/money-input": "15.10.0",
29
+ "@commercetools-uikit/spacings": "15.10.0",
30
+ "@commercetools-uikit/utils": "15.10.0",
31
31
  "@emotion/react": "^11.4.0",
32
32
  "@emotion/styled": "^11.3.0",
33
33
  "lodash": "4.17.21",