@ultraviolet/ui 1.4.2 → 1.4.3
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/dist/src/components/List/HeaderCell.js +5 -5
- package/dist/src/components/List/Row.js +2 -2
- package/dist/src/components/NumberInput/index.js +4 -4
- package/dist/src/components/SelectInput/index.js +3 -4
- package/dist/src/components/SelectableCard/index.js +4 -4
- package/dist/src/components/Table/Header.js +1 -1
- package/dist/src/components/TagInput/index.js +3 -3
- package/dist/src/components/TextInput/index.js +1 -1
- package/dist/src/components/VerificationCode/index.js +2 -2
- package/package.json +2 -2
|
@@ -16,7 +16,7 @@ const StyledIconContainer = /*#__PURE__*/_styled(Stack, {
|
|
|
16
16
|
let {
|
|
17
17
|
theme
|
|
18
18
|
} = _ref;
|
|
19
|
-
return theme.colors.neutral.
|
|
19
|
+
return theme.colors.neutral.text;
|
|
20
20
|
}, ";&[aria-disabled='true']{cursor:not-allowed;}");
|
|
21
21
|
const SortIcon = () => jsxs(StyledIconContainer, {
|
|
22
22
|
children: [jsx(ArrowUpIcon, {
|
|
@@ -48,7 +48,7 @@ const StyledHeaderCell = /*#__PURE__*/_styled("div", {
|
|
|
48
48
|
let {
|
|
49
49
|
theme
|
|
50
50
|
} = _ref5;
|
|
51
|
-
return theme.colors.neutral.
|
|
51
|
+
return theme.colors.neutral.text;
|
|
52
52
|
}, ";gap:", _ref6 => {
|
|
53
53
|
let {
|
|
54
54
|
theme
|
|
@@ -58,17 +58,17 @@ const StyledHeaderCell = /*#__PURE__*/_styled("div", {
|
|
|
58
58
|
let {
|
|
59
59
|
theme
|
|
60
60
|
} = _ref7;
|
|
61
|
-
return theme.colors.primary.
|
|
61
|
+
return theme.colors.primary.text;
|
|
62
62
|
}, ";}&[aria-sort='ascending'] ", ArrowUpIcon, "{color:", _ref8 => {
|
|
63
63
|
let {
|
|
64
64
|
theme
|
|
65
65
|
} = _ref8;
|
|
66
|
-
return theme.colors.primary.
|
|
66
|
+
return theme.colors.primary.text;
|
|
67
67
|
}, ";}&[aria-sort='descending'] ", ArrowDownIcon, "{color:", _ref9 => {
|
|
68
68
|
let {
|
|
69
69
|
theme
|
|
70
70
|
} = _ref9;
|
|
71
|
-
return theme.colors.primary.
|
|
71
|
+
return theme.colors.primary.text;
|
|
72
72
|
}, ";}");
|
|
73
73
|
const HeaderCell = _ref10 => {
|
|
74
74
|
let {
|
|
@@ -13,7 +13,7 @@ const ExpandableWrapper = /*#__PURE__*/_styled("div", {
|
|
|
13
13
|
let {
|
|
14
14
|
theme
|
|
15
15
|
} = _ref;
|
|
16
|
-
return theme.colors.neutral.
|
|
16
|
+
return theme.colors.neutral.border;
|
|
17
17
|
}, ";margin:0 -", _ref2 => {
|
|
18
18
|
let {
|
|
19
19
|
theme
|
|
@@ -32,7 +32,7 @@ const StyledRow = /*#__PURE__*/_styled('div', {
|
|
|
32
32
|
let {
|
|
33
33
|
theme
|
|
34
34
|
} = _ref4;
|
|
35
|
-
return theme.colors.neutral.
|
|
35
|
+
return theme.colors.neutral.border;
|
|
36
36
|
}, ";border-radius:", _ref5 => {
|
|
37
37
|
let {
|
|
38
38
|
theme
|
|
@@ -106,7 +106,7 @@ const StyledContainer = /*#__PURE__*/_styled('div', {
|
|
|
106
106
|
let {
|
|
107
107
|
theme
|
|
108
108
|
} = _ref14;
|
|
109
|
-
return theme.colors.neutral.
|
|
109
|
+
return theme.colors.neutral.border;
|
|
110
110
|
}, ";border-radius:", _ref15 => {
|
|
111
111
|
let {
|
|
112
112
|
theme
|
|
@@ -116,7 +116,7 @@ const StyledContainer = /*#__PURE__*/_styled('div', {
|
|
|
116
116
|
let {
|
|
117
117
|
theme
|
|
118
118
|
} = _ref16;
|
|
119
|
-
return theme.colors.danger.
|
|
119
|
+
return theme.colors.danger.border;
|
|
120
120
|
}, ";}&[aria-disabled='true']{background:", _ref17 => {
|
|
121
121
|
let {
|
|
122
122
|
theme
|
|
@@ -126,7 +126,7 @@ const StyledContainer = /*#__PURE__*/_styled('div', {
|
|
|
126
126
|
let {
|
|
127
127
|
theme
|
|
128
128
|
} = _ref18;
|
|
129
|
-
return theme.colors.primary.
|
|
129
|
+
return theme.colors.primary.borderHover;
|
|
130
130
|
}, ";}", StyledCenterBox, ":focus-within{box-shadow:", _ref19 => {
|
|
131
131
|
let {
|
|
132
132
|
theme
|
|
@@ -136,7 +136,7 @@ const StyledContainer = /*#__PURE__*/_styled('div', {
|
|
|
136
136
|
let {
|
|
137
137
|
theme
|
|
138
138
|
} = _ref20;
|
|
139
|
-
return theme.colors.primary.
|
|
139
|
+
return theme.colors.primary.borderHover;
|
|
140
140
|
}, ";}}");
|
|
141
141
|
const NumberInput = _ref21 => {
|
|
142
142
|
let {
|
|
@@ -18,7 +18,7 @@ const StyledSeparator = /*#__PURE__*/_styled(Separator, {
|
|
|
18
18
|
let {
|
|
19
19
|
theme
|
|
20
20
|
} = _ref;
|
|
21
|
-
return theme.colors.neutral.
|
|
21
|
+
return theme.colors.neutral.border;
|
|
22
22
|
}, ";height:100%;");
|
|
23
23
|
const getControlColor = _ref2 => {
|
|
24
24
|
let {
|
|
@@ -74,7 +74,7 @@ const getSelectStyles = _ref5 => {
|
|
|
74
74
|
control: (provided, state) => ({
|
|
75
75
|
...provided,
|
|
76
76
|
backgroundColor: state.isDisabled ? theme.colors.neutral.backgroundDisabled : theme.colors.neutral.background,
|
|
77
|
-
borderColor: error ? theme.colors.danger.border : theme.colors.neutral.
|
|
77
|
+
borderColor: error ? theme.colors.danger.border : theme.colors.neutral.border,
|
|
78
78
|
borderRadius: '4px',
|
|
79
79
|
borderStyle: 'solid',
|
|
80
80
|
borderWidth: '1px',
|
|
@@ -114,7 +114,7 @@ const getSelectStyles = _ref5 => {
|
|
|
114
114
|
}),
|
|
115
115
|
indicatorSeparator: (provided, state) => ({
|
|
116
116
|
...provided,
|
|
117
|
-
backgroundColor: theme.colors.neutral.
|
|
117
|
+
backgroundColor: theme.colors.neutral.border,
|
|
118
118
|
display: 'none',
|
|
119
119
|
...(customStyle(state)?.['indicatorSeparator'] || {})
|
|
120
120
|
}),
|
|
@@ -528,7 +528,6 @@ const ClearIndicator = props => {
|
|
|
528
528
|
children: jsx(Icon, {
|
|
529
529
|
...restInnerProps,
|
|
530
530
|
name: "close",
|
|
531
|
-
size: 20,
|
|
532
531
|
cursor: "pointer",
|
|
533
532
|
color: checked && 'primary' || error && 'danger' || 'neutral'
|
|
534
533
|
})
|
|
@@ -26,7 +26,7 @@ const Container = /*#__PURE__*/_styled("div", {
|
|
|
26
26
|
let {
|
|
27
27
|
theme
|
|
28
28
|
} = _ref4;
|
|
29
|
-
return theme.colors.neutral.
|
|
29
|
+
return theme.colors.neutral.border;
|
|
30
30
|
}, ";color:", _ref5 => {
|
|
31
31
|
let {
|
|
32
32
|
theme
|
|
@@ -36,7 +36,7 @@ const Container = /*#__PURE__*/_styled("div", {
|
|
|
36
36
|
let {
|
|
37
37
|
theme
|
|
38
38
|
} = _ref6;
|
|
39
|
-
return theme.colors.primary.
|
|
39
|
+
return theme.colors.primary.border;
|
|
40
40
|
}, ";}&[data-error='true']{border:1px solid ", _ref7 => {
|
|
41
41
|
let {
|
|
42
42
|
theme
|
|
@@ -46,7 +46,7 @@ const Container = /*#__PURE__*/_styled("div", {
|
|
|
46
46
|
let {
|
|
47
47
|
theme
|
|
48
48
|
} = _ref8;
|
|
49
|
-
return theme.colors.neutral.
|
|
49
|
+
return theme.colors.neutral.borderDisabled;
|
|
50
50
|
}, ";color:", _ref9 => {
|
|
51
51
|
let {
|
|
52
52
|
theme
|
|
@@ -61,7 +61,7 @@ const Container = /*#__PURE__*/_styled("div", {
|
|
|
61
61
|
let {
|
|
62
62
|
theme
|
|
63
63
|
} = _ref11;
|
|
64
|
-
return theme.colors.primary.
|
|
64
|
+
return theme.colors.primary.border;
|
|
65
65
|
}, ";&[data-cheked='false']{box-shadow:", _ref12 => {
|
|
66
66
|
let {
|
|
67
67
|
theme
|
|
@@ -21,14 +21,14 @@ const variants = {
|
|
|
21
21
|
padding: 8px;
|
|
22
22
|
cursor: text;
|
|
23
23
|
border-radius: ${radii.default};
|
|
24
|
-
border: 1px solid ${colors.neutral.
|
|
24
|
+
border: 1px solid ${colors.neutral.border};
|
|
25
25
|
&:focus-within {
|
|
26
|
-
border: 1px solid ${colors.primary.
|
|
26
|
+
border: 1px solid ${colors.primary.border};
|
|
27
27
|
box-shadow: ${shadows.focusPrimary};
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
&:hover {
|
|
31
|
-
border: 1px solid ${colors.primary.
|
|
31
|
+
border: 1px solid ${colors.primary.border};
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
& > * {
|
|
@@ -14,7 +14,7 @@ const StyledInput = /*#__PURE__*/_styled("input", {
|
|
|
14
14
|
'aria-invalid': error,
|
|
15
15
|
theme
|
|
16
16
|
} = _ref2;
|
|
17
|
-
return error ? theme.colors.danger.borderWeak : theme.colors.neutral.
|
|
17
|
+
return error ? theme.colors.danger.borderWeak : theme.colors.neutral.border;
|
|
18
18
|
}, ";font-size:24px;color:", _ref3 => {
|
|
19
19
|
let {
|
|
20
20
|
'aria-invalid': error,
|
|
@@ -36,7 +36,7 @@ const StyledInput = /*#__PURE__*/_styled("input", {
|
|
|
36
36
|
'aria-invalid': error,
|
|
37
37
|
theme
|
|
38
38
|
} = _ref6;
|
|
39
|
-
return error ? theme.colors.danger.
|
|
39
|
+
return error ? theme.colors.danger.borderHover : theme.colors.primary.borderHover;
|
|
40
40
|
}, ";}&:focus{box-shadow:", _ref7 => {
|
|
41
41
|
let {
|
|
42
42
|
'aria-invalid': error,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultraviolet/ui",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"description": "Ultraviolet UI",
|
|
5
5
|
"homepage": "https://github.com/scaleway/ultraviolet#readme",
|
|
6
6
|
"repository": {
|
|
@@ -65,6 +65,6 @@
|
|
|
65
65
|
"react-toastify": "9.1.3",
|
|
66
66
|
"react-use-clipboard": "1.0.9",
|
|
67
67
|
"reakit": "1.3.11",
|
|
68
|
-
"@ultraviolet/themes": "1.1.
|
|
68
|
+
"@ultraviolet/themes": "1.1.3"
|
|
69
69
|
}
|
|
70
70
|
}
|