@semcore/input-number 16.0.11 → 17.0.0-prerelease.17

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.
@@ -1,24 +1,20 @@
1
1
  import React from "react";
2
- var IncrementIcon = function IncrementIcon2() {
3
- return /* @__PURE__ */ React.createElement("svg", {
4
- fill: "currentColor",
5
- width: "10",
6
- height: "5",
7
- viewBox: "0 0 10 5"
8
- }, /* @__PURE__ */ React.createElement("path", {
9
- d: "M0,5l5,-5l5,5Z"
10
- }));
11
- };
12
- var DecrementIcon = function DecrementIcon2() {
13
- return /* @__PURE__ */ React.createElement("svg", {
14
- fill: "currentColor",
15
- width: "10",
16
- height: "5",
17
- viewBox: "0 0 10 5"
18
- }, /* @__PURE__ */ React.createElement("path", {
19
- d: "M0,0l10,0l-5,5Z"
20
- }));
21
- };
2
+ const IncrementIcon = () => /* @__PURE__ */ React.createElement("svg", {
3
+ fill: "currentColor",
4
+ width: "10",
5
+ height: "5",
6
+ viewBox: "0 0 10 5"
7
+ }, /* @__PURE__ */ React.createElement("path", {
8
+ d: "M0,5l5,-5l5,5Z"
9
+ }));
10
+ const DecrementIcon = () => /* @__PURE__ */ React.createElement("svg", {
11
+ fill: "currentColor",
12
+ width: "10",
13
+ height: "5",
14
+ viewBox: "0 0 10 5"
15
+ }, /* @__PURE__ */ React.createElement("path", {
16
+ d: "M0,0l10,0l-5,5Z"
17
+ }));
22
18
  export {
23
19
  DecrementIcon,
24
20
  IncrementIcon
@@ -12,7 +12,7 @@ import sv from "./sv.json.mjs";
12
12
  import tr from "./tr.json.mjs";
13
13
  import vi from "./vi.json.mjs";
14
14
  import zh from "./zh.json.mjs";
15
- var localizedMessages = {
15
+ const localizedMessages = {
16
16
  de,
17
17
  en,
18
18
  es,
@@ -1,12 +1,10 @@
1
- import type { Intergalactic, PropGetterFn, UnknownProperties } from '@semcore/core';
1
+ import type { Intergalactic, PropGetterFn } from '@semcore/core';
2
2
  import type { InputAddonProps, InputProps, InputValueProps } from '@semcore/input';
3
3
  import type React from 'react';
4
4
 
5
5
  export type InputNumberValue = string;
6
6
  export type InputNumberSize = 'm' | 'l';
7
7
 
8
- /** @deprecated */
9
- export interface IInputNumberProps extends InputNumberProps, UnknownProperties {}
10
8
  export type InputNumberProps = InputProps & {
11
9
  /** Input size
12
10
  * @default m
@@ -18,8 +16,6 @@ export type InputNumberProps = InputProps & {
18
16
  locale?: string;
19
17
  };
20
18
 
21
- /** @deprecated */
22
- export interface IInputNumberValueProps extends InputNumberValueProps, UnknownProperties {}
23
19
  export type InputNumberValueProps = InputValueProps & {
24
20
  /** Minimum value
25
21
  * @default Number.MIN_SAFE_INTEGER
@@ -39,8 +35,6 @@ export type InputNumberValueProps = InputValueProps & {
39
35
  onChange?: (value: InputNumberValue, event?: React.SyntheticEvent<HTMLInputElement>) => void;
40
36
  };
41
37
 
42
- /** @deprecated */
43
- export interface IInputNumberControlsProps extends InputNumberControlsProps, UnknownProperties {}
44
38
  export type InputNumberControlsProps = InputAddonProps & {
45
39
  /** Always displays controls (steppers)
46
40
  * @default false
@@ -48,8 +42,6 @@ export type InputNumberControlsProps = InputAddonProps & {
48
42
  showControls?: boolean;
49
43
  };
50
44
 
51
- /** @deprecated */
52
- export interface IInputNumberCtx extends InputNumberCtx, UnknownProperties {}
53
45
  export type InputNumberCtx = {
54
46
  getValueProps: PropGetterFn;
55
47
  getControlsProps: PropGetterFn;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/input-number",
3
3
  "description": "Semrush InputNumber Component",
4
- "version": "16.0.11",
4
+ "version": "17.0.0-prerelease.17",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -14,11 +14,10 @@
14
14
  "types": "./lib/types/index.d.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@semcore/input": "16.1.1",
18
- "@semcore/flex-box": "16.0.11"
17
+ "@semcore/input": "^16.1.2-prerelease.17"
19
18
  },
20
19
  "peerDependencies": {
21
- "@semcore/base-components": "^16.0.0"
20
+ "@semcore/base-components": "^17.0.0-prerelease.17"
22
21
  },
23
22
  "repository": {
24
23
  "type": "git",
@@ -26,8 +25,9 @@
26
25
  "directory": "semcore/input-number"
27
26
  },
28
27
  "devDependencies": {
29
- "@semcore/core": "16.5.1",
30
- "@semcore/testing-utils": "1.0.0"
28
+ "@semcore/base-components": "17.0.0-prerelease.17",
29
+ "@semcore/testing-utils": "1.0.0",
30
+ "@semcore/core": "17.0.0-prerelease.17"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "pnpm semcore-builder --source=js && pnpm vite build"