@ultraviolet/plus 0.17.8 → 0.17.9

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
@@ -8,7 +8,7 @@ We are going to make breaking changes regularly until the first version is relea
8
8
 
9
9
  Ultraviolet Plus is a set of complex components that are built on top of Ultraviolet UI.
10
10
 
11
- ## Installation
11
+ ## Get Started
12
12
 
13
13
  ```sh
14
14
  $ pnpm add @ultraviolet/plus
@@ -11,7 +11,8 @@ const NumberInput = ({
11
11
  minValue = 0,
12
12
  maxValue = 100,
13
13
  getAmountValue,
14
- itemCallback
14
+ itemCallback,
15
+ controls = true
15
16
  }) => {
16
17
  const {
17
18
  isOverlay
@@ -24,6 +25,6 @@ const NumberInput = ({
24
25
  setValue(newValue);
25
26
  itemCallback?.(newValue, true);
26
27
  getAmountValue?.(newValue);
27
- }, value });
28
+ }, value, controls });
28
29
  };
29
30
  exports.NumberInput = NumberInput;
@@ -4,6 +4,7 @@ type NumberInputProps = {
4
4
  getAmountValue?: (amount?: number | null) => void;
5
5
  minValue?: number;
6
6
  maxValue?: number;
7
+ controls?: boolean;
7
8
  };
8
- export declare const NumberInput: ({ amount, minValue, maxValue, getAmountValue, itemCallback, }: NumberInputProps) => import("@emotion/react/jsx-runtime").JSX.Element;
9
+ export declare const NumberInput: ({ amount, minValue, maxValue, getAmountValue, itemCallback, controls, }: NumberInputProps) => import("@emotion/react/jsx-runtime").JSX.Element;
9
10
  export {};
@@ -9,7 +9,8 @@ const NumberInput = ({
9
9
  minValue = 0,
10
10
  maxValue = 100,
11
11
  getAmountValue,
12
- itemCallback
12
+ itemCallback,
13
+ controls = true
13
14
  }) => {
14
15
  const {
15
16
  isOverlay
@@ -22,7 +23,7 @@ const NumberInput = ({
22
23
  setValue(newValue);
23
24
  itemCallback?.(newValue, true);
24
25
  getAmountValue?.(newValue);
25
- }, value });
26
+ }, value, controls });
26
27
  };
27
28
  export {
28
29
  NumberInput
@@ -46,12 +46,13 @@ declare const EstimateCost: {
46
46
  tooltipInfo?: string | undefined;
47
47
  unit?: (string & {}) | "seconds" | "minutes" | "hours" | "days" | "months" | "mb" | "gb" | "tb" | "years" | undefined;
48
48
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
49
- NumberInput: ({ amount, minValue, maxValue, getAmountValue, itemCallback, }: {
49
+ NumberInput: ({ amount, minValue, maxValue, getAmountValue, itemCallback, controls, }: {
50
50
  amount?: number | undefined;
51
51
  itemCallback?: ((amount?: number | null | undefined, isVariant?: boolean | undefined) => void) | undefined;
52
52
  getAmountValue?: ((amount?: number | null | undefined) => void) | undefined;
53
53
  minValue?: number | undefined;
54
54
  maxValue?: number | undefined;
55
+ controls?: boolean | undefined;
55
56
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
56
57
  Unit: ({ amount, itemCallback, getAmountValue, unit, }: {
57
58
  amount?: number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultraviolet/plus",
3
- "version": "0.17.8",
3
+ "version": "0.17.9",
4
4
  "description": "Ultraviolet Plus",
5
5
  "homepage": "https://github.com/scaleway/ultraviolet#readme",
6
6
  "repository": {
@@ -60,11 +60,11 @@
60
60
  "@babel/core": "7.24.7",
61
61
  "@emotion/react": "11.11.4",
62
62
  "@emotion/styled": "11.11.5",
63
- "@types/react": "18.3.1",
63
+ "@types/react": "18.3.3",
64
64
  "@types/react-dom": "18.3.0",
65
65
  "react": "18.3.1",
66
66
  "react-dom": "18.3.1",
67
- "@ultraviolet/icons": "2.12.14",
67
+ "@ultraviolet/icons": "2.12.15",
68
68
  "@ultraviolet/illustrations": "2.0.0",
69
69
  "@utils/test": "0.0.1"
70
70
  },
@@ -73,9 +73,9 @@
73
73
  "@uiw/codemirror-theme-material": "4.22.2",
74
74
  "@uiw/react-codemirror": "4.22.2",
75
75
  "react-intersection-observer": "9.10.3",
76
- "@ultraviolet/icons": "2.12.14",
76
+ "@ultraviolet/icons": "2.12.15",
77
77
  "@ultraviolet/themes": "1.12.0",
78
- "@ultraviolet/ui": "1.55.3"
78
+ "@ultraviolet/ui": "1.56.0"
79
79
  },
80
80
  "scripts": {
81
81
  "prebuild": "shx rm -rf dist",