@contentful/field-editor-number 1.5.1 → 1.5.2

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.
@@ -148,16 +148,12 @@ function InnerNumberEditor({ disabled, errors, field, setValue, value: sdkValue,
148
148
  className: _NumberEditorstyles.styles.control,
149
149
  onClick: ()=>changeValueByStep("increment"),
150
150
  onPointerDown: handleControlPointerDown
151
- }, /*#__PURE__*/ _react.createElement(_f36icons.ArrowUpTrimmedIcon, {
152
- size: "medium"
153
- })), /*#__PURE__*/ _react.createElement("button", {
151
+ }, /*#__PURE__*/ _react.createElement(_f36icons.CaretUpIcon, null)), /*#__PURE__*/ _react.createElement("button", {
154
152
  tabIndex: -1,
155
153
  className: _NumberEditorstyles.styles.control,
156
154
  onClick: ()=>changeValueByStep("decrement"),
157
155
  onPointerDown: handleControlPointerDown
158
- }, /*#__PURE__*/ _react.createElement(_f36icons.ArrowDownTrimmedIcon, {
159
- size: "medium"
160
- }))));
156
+ }, /*#__PURE__*/ _react.createElement(_f36icons.CaretDownIcon, null))));
161
157
  }
162
158
  function NumberEditor(props) {
163
159
  const { field, id } = props;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
6
6
  const _fieldeditortestutils = require("@contentful/field-editor-test-utils");
7
- require("@testing-library/jest-dom/extend-expect");
7
+ require("@testing-library/jest-dom");
8
8
  const _react1 = require("@testing-library/react");
9
9
  const _userevent = /*#__PURE__*/ _interop_require_default(require("@testing-library/user-event"));
10
10
  const _NumberEditor = require("./NumberEditor");
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { TextInput } from '@contentful/f36-components';
3
- import { ArrowUpTrimmedIcon, ArrowDownTrimmedIcon } from '@contentful/f36-icons';
3
+ import { CaretDownIcon, CaretUpIcon } from '@contentful/f36-icons';
4
4
  import { FieldConnector } from '@contentful/field-editor-shared';
5
5
  import { styles } from './NumberEditor.styles';
6
6
  import { isNumberInputValueValid, parseNumber } from './parseNumber';
@@ -97,16 +97,12 @@ function InnerNumberEditor({ disabled, errors, field, setValue, value: sdkValue,
97
97
  className: styles.control,
98
98
  onClick: ()=>changeValueByStep("increment"),
99
99
  onPointerDown: handleControlPointerDown
100
- }, /*#__PURE__*/ React.createElement(ArrowUpTrimmedIcon, {
101
- size: "medium"
102
- })), /*#__PURE__*/ React.createElement("button", {
100
+ }, /*#__PURE__*/ React.createElement(CaretUpIcon, null)), /*#__PURE__*/ React.createElement("button", {
103
101
  tabIndex: -1,
104
102
  className: styles.control,
105
103
  onClick: ()=>changeValueByStep("decrement"),
106
104
  onPointerDown: handleControlPointerDown
107
- }, /*#__PURE__*/ React.createElement(ArrowDownTrimmedIcon, {
108
- size: "medium"
109
- }))));
105
+ }, /*#__PURE__*/ React.createElement(CaretDownIcon, null))));
110
106
  }
111
107
  export function NumberEditor(props) {
112
108
  const { field, id } = props;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { createFakeFieldAPI } from '@contentful/field-editor-test-utils';
3
- import '@testing-library/jest-dom/extend-expect';
3
+ import '@testing-library/jest-dom';
4
4
  import { cleanup, configure, render, screen, waitFor } from '@testing-library/react';
5
5
  import userEvent from '@testing-library/user-event';
6
6
  import { NumberEditor } from './NumberEditor';
@@ -1 +1 @@
1
- import '@testing-library/jest-dom/extend-expect';
1
+ import '@testing-library/jest-dom';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-number",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -36,13 +36,13 @@
36
36
  "tsc": "tsc -p ./ --noEmit"
37
37
  },
38
38
  "dependencies": {
39
- "@contentful/f36-components": "^4.70.0",
40
- "@contentful/f36-tokens": "^4.0.5",
41
- "@contentful/field-editor-shared": "^2.11.1",
39
+ "@contentful/f36-components": "5.1.1",
40
+ "@contentful/f36-tokens": "5.1.0",
41
+ "@contentful/field-editor-shared": "^2.11.2",
42
42
  "emotion": "^10.0.17"
43
43
  },
44
44
  "devDependencies": {
45
- "@contentful/field-editor-test-utils": "^1.6.0",
45
+ "@contentful/field-editor-test-utils": "^1.6.1",
46
46
  "@testing-library/jest-dom": "^5.12.0",
47
47
  "@testing-library/react": "^12.1.5",
48
48
  "@testing-library/user-event": "^13.1.9"
@@ -53,5 +53,5 @@
53
53
  "publishConfig": {
54
54
  "registry": "https://npm.pkg.github.com/"
55
55
  },
56
- "gitHead": "9456bac33e2d0d4f05cadc302ba4a25f2de6e034"
56
+ "gitHead": "8ab6bd7a3ce2979634ab53673c6b122a6b1b5efb"
57
57
  }