@ultraviolet/plus 0.6.5 → 0.6.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _styled from '@emotion/styled/base';
|
|
2
|
-
import {
|
|
2
|
+
import { Row, TextInput, SelectInput } from '@ultraviolet/ui';
|
|
3
3
|
import { jsxs, jsx } from '@emotion/react/jsx-runtime';
|
|
4
4
|
|
|
5
5
|
const sizesHeight = {
|
|
@@ -49,7 +49,6 @@ const UnitInput = ({
|
|
|
49
49
|
value,
|
|
50
50
|
unitValue,
|
|
51
51
|
textBoxWidth = 100,
|
|
52
|
-
selectInputWidth = 200,
|
|
53
52
|
disabled = false,
|
|
54
53
|
options,
|
|
55
54
|
className,
|
|
@@ -60,8 +59,8 @@ const UnitInput = ({
|
|
|
60
59
|
unitError,
|
|
61
60
|
type = 'number',
|
|
62
61
|
'data-testid': dataTestId
|
|
63
|
-
}) => jsxs(
|
|
64
|
-
|
|
62
|
+
}) => jsxs(Row, {
|
|
63
|
+
templateColumns: "1fr auto",
|
|
65
64
|
"data-testid": dataTestId,
|
|
66
65
|
children: [jsx(CustomTextInput, {
|
|
67
66
|
height: sizesHeight[size],
|
|
@@ -93,7 +92,6 @@ const UnitInput = ({
|
|
|
93
92
|
label: label,
|
|
94
93
|
error: valueError
|
|
95
94
|
}), jsx(CustomSelectInput, {
|
|
96
|
-
width: selectInputWidth,
|
|
97
95
|
noTopLabel: true,
|
|
98
96
|
height: sizesHeight[size],
|
|
99
97
|
id: `${name}-unit`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultraviolet/plus",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6",
|
|
4
4
|
"description": "Ultraviolet Plus",
|
|
5
5
|
"homepage": "https://github.com/scaleway/ultraviolet#readme",
|
|
6
6
|
"repository": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"react-dom": "18.2.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@babel/core": "7.23.
|
|
42
|
+
"@babel/core": "7.23.9",
|
|
43
43
|
"@emotion/babel-plugin": "11.11.0",
|
|
44
44
|
"@emotion/react": "11.11.3",
|
|
45
45
|
"@emotion/styled": "11.11.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@types/react-dom": "18.2.18",
|
|
48
48
|
"react": "18.2.0",
|
|
49
49
|
"react-dom": "18.2.0",
|
|
50
|
-
"@ultraviolet/icons": "2.8.
|
|
50
|
+
"@ultraviolet/icons": "2.8.3"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@uiw/codemirror-extensions-langs": "4.21.21",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"@uiw/react-codemirror": "4.21.21",
|
|
56
56
|
"react-flatten-children": "1.1.2",
|
|
57
57
|
"react-intersection-observer": "9.5.3",
|
|
58
|
-
"@ultraviolet/themes": "1.
|
|
59
|
-
"@ultraviolet/ui": "1.31.
|
|
58
|
+
"@ultraviolet/themes": "1.8.0",
|
|
59
|
+
"@ultraviolet/ui": "1.31.5"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build": "rollup -c ../../rollup.config.mjs",
|