@ultraviolet/ui 1.4.1 → 1.4.2
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
|
|
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:",
|
|
31
|
+
})("overflow-x:scroll;overflow-y:hidden;white-space:nowrap;padding:", _ref3 => {
|
|
27
32
|
let {
|
|
28
33
|
theme
|
|
29
|
-
} =
|
|
34
|
+
} = _ref3;
|
|
30
35
|
return theme.space['2'];
|
|
31
|
-
}, " 100px;>*:not(:last-child){margin-right:",
|
|
36
|
+
}, " 100px;>*:not(:last-child){margin-right:", _ref4 => {
|
|
32
37
|
let {
|
|
33
38
|
theme
|
|
34
|
-
} =
|
|
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 ",
|
|
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
|
-
} =
|
|
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:",
|
|
52
|
+
})("display:inline-block;border-radius:", _ref6 => {
|
|
48
53
|
let {
|
|
49
54
|
theme
|
|
50
|
-
} =
|
|
55
|
+
} = _ref6;
|
|
51
56
|
return theme.radii.default;
|
|
52
|
-
}, ";border:1px solid ",
|
|
57
|
+
}, ";border:1px solid ", _ref7 => {
|
|
53
58
|
let {
|
|
54
59
|
theme
|
|
55
|
-
} =
|
|
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 ",
|
|
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
|
-
} =
|
|
65
|
+
} = _ref8;
|
|
61
66
|
return theme.colors.primary.border;
|
|
62
|
-
}, ";transition:box-shadow 0.2s ease;box-shadow:",
|
|
67
|
+
}, ";transition:box-shadow 0.2s ease;box-shadow:", _ref9 => {
|
|
63
68
|
let {
|
|
64
69
|
theme
|
|
65
|
-
} =
|
|
70
|
+
} = _ref9;
|
|
66
71
|
return theme.shadows.focusPrimary;
|
|
67
|
-
}, ";}img{border-radius:",
|
|
72
|
+
}, ";}img{border-radius:", _ref10 => {
|
|
68
73
|
let {
|
|
69
74
|
theme
|
|
70
|
-
} =
|
|
75
|
+
} = _ref10;
|
|
71
76
|
return theme.radii.default;
|
|
72
|
-
}, " ",
|
|
77
|
+
}, " ", _ref11 => {
|
|
73
78
|
let {
|
|
74
79
|
theme
|
|
75
|
-
} =
|
|
80
|
+
} = _ref11;
|
|
76
81
|
return theme.radii.default;
|
|
77
82
|
}, " 0 0;}");
|
|
78
|
-
const CarouselItem =
|
|
83
|
+
const CarouselItem = _ref12 => {
|
|
79
84
|
let {
|
|
80
85
|
children
|
|
81
|
-
} =
|
|
86
|
+
} = _ref12;
|
|
82
87
|
return jsx(StyledBorderWrapper, {
|
|
83
88
|
draggable: "true",
|
|
84
89
|
children: children
|
|
85
90
|
});
|
|
86
91
|
};
|
|
87
|
-
const Carousel =
|
|
92
|
+
const Carousel = _ref13 => {
|
|
88
93
|
let {
|
|
89
94
|
children,
|
|
90
95
|
className,
|
|
91
96
|
'data-testid': dataTestId = 'scrollbar'
|
|
92
|
-
} =
|
|
97
|
+
} = _ref13;
|
|
93
98
|
const scrollRef = useRef(null);
|
|
94
99
|
let intervalLeft;
|
|
95
100
|
let intervalRight;
|
|
@@ -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
|
-
}, "
|
|
94
|
+
}, ";&[data-is-selected='false']{", StyledBadge, "{background-color:", _ref16 => {
|
|
96
95
|
let {
|
|
97
|
-
isSelected,
|
|
98
96
|
theme
|
|
99
97
|
} = _ref16;
|
|
100
|
-
return
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|
-
} =
|
|
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
|
-
|
|
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',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultraviolet/ui",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
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.2"
|
|
69
69
|
}
|
|
70
70
|
}
|