@ultraviolet/ui 1.4.1 → 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.
@@ -15,81 +15,86 @@ const StyledWrapper = /*#__PURE__*/_styled("div", {
15
15
  });
16
16
  const StyledBeforeScroll = /*#__PURE__*/_styled("span", {
17
17
  target: "e1id70w03"
18
- })("position:absolute;width:100px;height:100%;content:'';background:linear-gradient(\n -90deg,\n rgba(255, 255, 255, 0),\n ", _ref => {
18
+ })("position:absolute;width:100px;height:100%;content:'';background:linear-gradient(\n -90deg,\n ", _ref => {
19
19
  let {
20
20
  theme
21
21
  } = _ref;
22
22
  return theme.colors.neutral.background;
23
+ }, "ff,\n ", _ref2 => {
24
+ let {
25
+ theme
26
+ } = _ref2;
27
+ return theme.colors.neutral.background;
23
28
  }, "\n );cursor:w-resize;z-index:auto;");
24
29
  const StyledScrollableWrapper = /*#__PURE__*/_styled("div", {
25
30
  target: "e1id70w02"
26
- })("overflow-x:scroll;overflow-y:hidden;white-space:nowrap;padding:", _ref2 => {
31
+ })("overflow-x:scroll;overflow-y:hidden;white-space:nowrap;padding:", _ref3 => {
27
32
  let {
28
33
  theme
29
- } = _ref2;
34
+ } = _ref3;
30
35
  return theme.space['2'];
31
- }, " 100px;>*:not(:last-child){margin-right:", _ref3 => {
36
+ }, " 100px;>*:not(:last-child){margin-right:", _ref4 => {
32
37
  let {
33
38
  theme
34
- } = _ref3;
39
+ } = _ref4;
35
40
  return theme.space['2'];
36
41
  }, ";}");
37
42
  const StyledAfterScroll = /*#__PURE__*/_styled("span", {
38
43
  target: "e1id70w01"
39
- })("position:absolute;bottom:0;right:0;width:100px;height:100%;content:'';cursor:e-resize;z-index:auto;background:linear-gradient(\n -90deg,\n ", _ref4 => {
44
+ })("position:absolute;bottom:0;right:0;width:100px;height:100%;content:'';cursor:e-resize;z-index:auto;background:linear-gradient(\n -90deg,\n ", _ref5 => {
40
45
  let {
41
46
  theme
42
- } = _ref4;
47
+ } = _ref5;
43
48
  return theme.colors.neutral.backgroundWeak;
44
49
  }, ",\n rgba(255, 255, 255, 0)\n );");
45
50
  const StyledBorderWrapper = /*#__PURE__*/_styled("div", {
46
51
  target: "e1id70w00"
47
- })("display:inline-block;border-radius:", _ref5 => {
52
+ })("display:inline-block;border-radius:", _ref6 => {
48
53
  let {
49
54
  theme
50
- } = _ref5;
55
+ } = _ref6;
51
56
  return theme.radii.default;
52
- }, ";border:1px solid ", _ref6 => {
57
+ }, ";border:1px solid ", _ref7 => {
53
58
  let {
54
59
  theme
55
- } = _ref6;
60
+ } = _ref7;
56
61
  return theme.colors.neutral.borderWeak;
57
- }, ";height:261px;width:248px;max-width:240px;overflow-wrap:break-word;white-space:normal;cursor:grab;&:hover,&:active,&:focus{border:1px solid ", _ref7 => {
62
+ }, ";height:261px;width:248px;max-width:240px;overflow-wrap:break-word;white-space:normal;cursor:grab;&:hover,&:active,&:focus{border:1px solid ", _ref8 => {
58
63
  let {
59
64
  theme
60
- } = _ref7;
65
+ } = _ref8;
61
66
  return theme.colors.primary.border;
62
- }, ";transition:box-shadow 0.2s ease;box-shadow:", _ref8 => {
67
+ }, ";transition:box-shadow 0.2s ease;box-shadow:", _ref9 => {
63
68
  let {
64
69
  theme
65
- } = _ref8;
70
+ } = _ref9;
66
71
  return theme.shadows.focusPrimary;
67
- }, ";}img{border-radius:", _ref9 => {
72
+ }, ";}img{border-radius:", _ref10 => {
68
73
  let {
69
74
  theme
70
- } = _ref9;
75
+ } = _ref10;
71
76
  return theme.radii.default;
72
- }, " ", _ref10 => {
77
+ }, " ", _ref11 => {
73
78
  let {
74
79
  theme
75
- } = _ref10;
80
+ } = _ref11;
76
81
  return theme.radii.default;
77
82
  }, " 0 0;}");
78
- const CarouselItem = _ref11 => {
83
+ const CarouselItem = _ref12 => {
79
84
  let {
80
85
  children
81
- } = _ref11;
86
+ } = _ref12;
82
87
  return jsx(StyledBorderWrapper, {
83
88
  draggable: "true",
84
89
  children: children
85
90
  });
86
91
  };
87
- const Carousel = _ref12 => {
92
+ const Carousel = _ref13 => {
88
93
  let {
89
94
  children,
90
95
  className,
91
96
  'data-testid': dataTestId = 'scrollbar'
92
- } = _ref12;
97
+ } = _ref13;
93
98
  const scrollRef = useRef(null);
94
99
  let intervalLeft;
95
100
  let intervalRight;
@@ -16,7 +16,7 @@ const StyledIconContainer = /*#__PURE__*/_styled(Stack, {
16
16
  let {
17
17
  theme
18
18
  } = _ref;
19
- return theme.colors.neutral.textWeak;
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.textWeak;
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.textWeak;
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.textWeak;
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.textWeak;
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.borderWeak;
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.borderWeak;
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.borderWeak;
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.borderWeak;
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.borderWeakHover;
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.borderWeakHover;
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.borderWeak;
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.borderWeak,
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.borderWeak,
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.borderWeak;
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.borderWeak;
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.borderWeakDisabled;
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.borderWeak;
64
+ return theme.colors.primary.border;
65
65
  }, ";&[data-cheked='false']{box-shadow:", _ref12 => {
66
66
  let {
67
67
  theme
@@ -7,7 +7,7 @@ const StyledHeader = /*#__PURE__*/_styled('thead', {
7
7
  let {
8
8
  theme
9
9
  } = _ref;
10
- return theme.colors.neutral.borderStrong;
10
+ return theme.colors.neutral.border;
11
11
  }, ";");
12
12
  const Header = _ref2 => {
13
13
  let {
@@ -30,7 +30,6 @@ const BadgeContainer = /*#__PURE__*/_styled("span", {
30
30
  return theme.space['1'];
31
31
  }, ";display:flex;");
32
32
  const StyledTabButton = /*#__PURE__*/_styled('button', {
33
- shouldForwardProp: prop => !['isSelected'].includes(prop),
34
33
  target: "e1hzf7cr0"
35
34
  })("display:flex;flex-direction:row;padding:", _ref4 => {
36
35
  let {
@@ -92,18 +91,23 @@ const StyledTabButton = /*#__PURE__*/_styled('button', {
92
91
  theme
93
92
  } = _ref15;
94
93
  return theme.colors.primary.borderWeak;
95
- }, ";", StyledBadge, "{", _ref16 => {
94
+ }, ";&[data-is-selected='false']{", StyledBadge, "{background-color:", _ref16 => {
96
95
  let {
97
- isSelected,
98
96
  theme
99
97
  } = _ref16;
100
- return !isSelected ? `
101
- background-color: ${theme.colors.primary.background};
102
- border-color: ${theme.colors.primary.background};
103
- color: ${theme.colors.primary.text};
104
- ` : null;
105
- }, ";}}}&[aria-disabled='true'],&:disabled{cursor:not-allowed;filter:grayscale(1) opacity(50%);}");
106
- const Tab = /*#__PURE__*/forwardRef((_ref17, ref) => {
98
+ return theme.colors.primary.background;
99
+ }, ";border-color:", _ref17 => {
100
+ let {
101
+ theme
102
+ } = _ref17;
103
+ return theme.colors.primary.background;
104
+ }, ";color:", _ref18 => {
105
+ let {
106
+ theme
107
+ } = _ref18;
108
+ return theme.colors.primary.text;
109
+ }, ";}}}}&[aria-disabled='true'],&:disabled{cursor:not-allowed;filter:grayscale(1) opacity(50%);}");
110
+ const Tab = /*#__PURE__*/forwardRef((_ref19, ref) => {
107
111
  let {
108
112
  as,
109
113
  badge,
@@ -116,7 +120,7 @@ const Tab = /*#__PURE__*/forwardRef((_ref17, ref) => {
116
120
  onKeyDown,
117
121
  tooltip,
118
122
  ...props
119
- } = _ref17;
123
+ } = _ref19;
120
124
  const {
121
125
  selected,
122
126
  onChange
@@ -145,7 +149,7 @@ const Tab = /*#__PURE__*/forwardRef((_ref17, ref) => {
145
149
  onKeyDown?.(event);
146
150
  if (!event.defaultPrevented && !disabled && value) onChange(value);
147
151
  },
148
- isSelected: isSelected,
152
+ "data-is-selected": isSelected,
149
153
  ...props,
150
154
  children: [children, typeof counter === 'number' || typeof counter === 'string' ? jsx(StyledBadge, {
151
155
  sentiment: isSelected ? 'primary' : 'neutral',
@@ -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.borderWeak};
24
+ border: 1px solid ${colors.neutral.border};
25
25
  &:focus-within {
26
- border: 1px solid ${colors.primary.borderWeak};
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.borderWeak};
31
+ border: 1px solid ${colors.primary.border};
32
32
  }
33
33
 
34
34
  & > * {
@@ -167,7 +167,7 @@ const StyledInput = /*#__PURE__*/_styled('input', {
167
167
  colors
168
168
  }
169
169
  } = _ref15;
170
- return colors.neutral.borderWeak;
170
+ return colors.neutral.border;
171
171
  }, ";border-radius:", _ref16 => {
172
172
  let {
173
173
  theme: {
@@ -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.borderWeak;
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.borderWeakHover : theme.colors.primary.borderWeakHover;
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.1",
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.1"
68
+ "@ultraviolet/themes": "1.1.3"
69
69
  }
70
70
  }