@ultraviolet/ui 1.5.0 → 1.6.1
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.
|
@@ -163,6 +163,8 @@ const DateInput = _ref24 => {
|
|
|
163
163
|
className,
|
|
164
164
|
'data-testid': dataTestId
|
|
165
165
|
} = _ref24;
|
|
166
|
+
// Linked to: https://github.com/Hacker0x01/react-datepicker/issues/3834
|
|
167
|
+
const ReactDatePicker = DatePicker.default ?? DatePicker;
|
|
166
168
|
const localeCode = (typeof locale === 'string' ? locale : locale?.code) ?? 'en-GB';
|
|
167
169
|
if (typeof locale === 'object') {
|
|
168
170
|
registerLocale(localeCode, locale);
|
|
@@ -171,7 +173,7 @@ const DateInput = _ref24 => {
|
|
|
171
173
|
children: [jsx(Global, {
|
|
172
174
|
styles: css_248z
|
|
173
175
|
}), jsx(StyledWrapper, {
|
|
174
|
-
children: jsx(
|
|
176
|
+
children: jsx(ReactDatePicker, {
|
|
175
177
|
"data-testid": dataTestId,
|
|
176
178
|
className: className,
|
|
177
179
|
autoFocus: autoFocus,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultraviolet/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "Ultraviolet UI",
|
|
5
5
|
"homepage": "https://github.com/scaleway/ultraviolet#readme",
|
|
6
6
|
"repository": {
|
|
@@ -67,6 +67,6 @@
|
|
|
67
67
|
"react-toastify": "9.1.3",
|
|
68
68
|
"react-use-clipboard": "1.0.9",
|
|
69
69
|
"reakit": "1.3.11",
|
|
70
|
-
"@ultraviolet/themes": "1.
|
|
70
|
+
"@ultraviolet/themes": "1.2.0"
|
|
71
71
|
}
|
|
72
72
|
}
|