rsuite 5.65.1 → 5.67.0
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/Accordion/styles/index.css +9 -9
- package/AutoComplete/styles/index.css +59 -56
- package/Avatar/styles/index.css +2 -2
- package/Breadcrumb/styles/index.css +4 -4
- package/Button/styles/index.css +20 -21
- package/Button/styles/index.less +0 -1
- package/CHANGELOG.md +32 -0
- package/Calendar/styles/index.css +32 -33
- package/Carousel/styles/index.css +4 -4
- package/CascadeTree/styles/index.css +9 -9
- package/Cascader/styles/index.css +63 -60
- package/CheckPicker/styles/index.css +61 -58
- package/CheckTree/styles/index.css +62 -59
- package/CheckTreePicker/styles/index.css +62 -59
- package/Checkbox/styles/index.css +6 -6
- package/DateInput/styles/index.css +11 -11
- package/DatePicker/styles/index.css +70 -67
- package/DateRangeInput/styles/index.css +11 -11
- package/DateRangePicker/styles/index.css +71 -68
- package/Divider/styles/index.css +1 -1
- package/Drawer/styles/index.css +7 -7
- package/Dropdown/styles/index.css +26 -27
- package/FormControlLabel/styles/index.css +2 -2
- package/FormHelpText/styles/index.css +2 -2
- package/IconButton/styles/index.css +21 -22
- package/InlineEdit/styles/index.css +1 -1
- package/Input/styles/index.css +11 -11
- package/InputGroup/styles/index.css +28 -29
- package/InputNumber/styles/index.css +34 -35
- package/InputPicker/styles/index.css +62 -59
- package/List/styles/index.css +3 -3
- package/Loader/styles/index.css +10 -6
- package/Loader/styles/index.less +4 -0
- package/Message/styles/index.css +12 -12
- package/Modal/styles/index.css +9 -9
- package/MultiCascadeTree/styles/index.css +64 -61
- package/MultiCascader/styles/index.css +64 -61
- package/Nav/styles/index.css +30 -31
- package/NavItem/package.json +3 -3
- package/Navbar/styles/index.css +30 -31
- package/Notification/styles/index.css +6 -6
- package/Pagination/styles/index.css +69 -66
- package/Panel/styles/index.css +9 -9
- package/PanelGroup/styles/index.css +1 -1
- package/Placeholder/styles/index.css +3 -3
- package/Popover/styles/index.css +3 -3
- package/Progress/styles/index.css +3 -3
- package/Radio/styles/index.css +6 -6
- package/RadioGroup/styles/index.css +5 -5
- package/RangeSlider/styles/index.css +12 -12
- package/Rate/styles/index.css +2 -2
- package/SelectPicker/styles/index.css +62 -59
- package/Sidenav/styles/index.css +12 -12
- package/Slider/styles/index.css +12 -12
- package/Steps/styles/index.css +8 -8
- package/Table/styles/index.css +9 -9
- package/Tabs/styles/index.css +30 -31
- package/Tag/styles/index.css +3 -3
- package/TagInput/styles/index.css +63 -60
- package/TagPicker/styles/index.css +63 -60
- package/Text/styles/index.css +5 -5
- package/Timeline/styles/index.css +1 -1
- package/Toggle/styles/index.css +9 -9
- package/Tooltip/styles/index.css +9 -9
- package/Tree/styles/index.css +9 -9
- package/TreePicker/styles/index.css +9 -9
- package/Uploader/styles/index.css +40 -41
- package/cjs/CheckTree/CheckTreeView.d.ts +4 -0
- package/cjs/CheckTreePicker/CheckTreePicker.js +1 -0
- package/cjs/Loader/Loader.d.ts +1 -1
- package/cjs/Loader/Loader.js +1 -1
- package/cjs/Nav/AdaptiveNavItem.d.ts +9 -0
- package/cjs/Nav/AdaptiveNavItem.js +89 -0
- package/cjs/Nav/Nav.js +3 -73
- package/cjs/Stack/Stack.js +6 -1
- package/cjs/Tree/TreeView.d.ts +4 -0
- package/cjs/TreePicker/TreePicker.js +1 -0
- package/cjs/Uploader/Uploader.d.ts +2 -2
- package/cjs/Uploader/Uploader.js +11 -9
- package/cjs/locales/ca_ES.d.ts +120 -0
- package/cjs/locales/ca_ES.js +87 -0
- package/cjs/locales/index.d.ts +1 -0
- package/cjs/locales/index.js +3 -1
- package/dist/rsuite-no-reset-rtl.css +202 -199
- package/dist/rsuite-no-reset-rtl.min.css +1 -1
- package/dist/rsuite-no-reset-rtl.min.css.map +1 -1
- package/dist/rsuite-no-reset.css +202 -199
- package/dist/rsuite-no-reset.min.css +1 -1
- package/dist/rsuite-no-reset.min.css.map +1 -1
- package/dist/rsuite-rtl.css +204 -201
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +204 -201
- package/dist/rsuite.js +23 -12
- package/dist/rsuite.js.map +1 -1
- package/dist/rsuite.min.css +1 -1
- package/dist/rsuite.min.css.map +1 -1
- package/dist/rsuite.min.js +1 -1
- package/dist/rsuite.min.js.map +1 -1
- package/esm/CheckTree/CheckTreeView.d.ts +4 -0
- package/esm/CheckTreePicker/CheckTreePicker.js +1 -0
- package/esm/Loader/Loader.d.ts +1 -1
- package/esm/Loader/Loader.js +1 -1
- package/esm/Nav/AdaptiveNavItem.d.ts +9 -0
- package/esm/Nav/AdaptiveNavItem.js +83 -0
- package/esm/Nav/Nav.js +5 -75
- package/esm/Stack/Stack.js +6 -1
- package/esm/Tree/TreeView.d.ts +4 -0
- package/esm/TreePicker/TreePicker.js +1 -0
- package/esm/Uploader/Uploader.d.ts +2 -2
- package/esm/Uploader/Uploader.js +11 -9
- package/esm/locales/ca_ES.d.ts +120 -0
- package/esm/locales/ca_ES.js +82 -0
- package/esm/locales/index.d.ts +1 -0
- package/esm/locales/index.js +1 -0
- package/locales/ca_ES/package.json +7 -0
- package/package.json +1 -1
- package/styles/color-modes/light.less +2 -2
- package/styles/colors/light.less +6 -6
- package/styles/variables.less +1 -0
package/cjs/Uploader/Uploader.js
CHANGED
|
@@ -307,13 +307,15 @@ var Uploader = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
307
307
|
return;
|
|
308
308
|
}
|
|
309
309
|
var upload = function upload() {
|
|
310
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(nextFileList);
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
310
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(nextFileList, event);
|
|
311
|
+
if (rootRef.current) {
|
|
312
|
+
dispatch({
|
|
313
|
+
type: 'push',
|
|
314
|
+
files: newFileList
|
|
315
|
+
}, function () {
|
|
316
|
+
autoUpload && handleAjaxUpload();
|
|
317
|
+
});
|
|
318
|
+
}
|
|
317
319
|
};
|
|
318
320
|
if (checkState instanceof Promise) {
|
|
319
321
|
checkState.then(function (res) {
|
|
@@ -323,7 +325,7 @@ var Uploader = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
323
325
|
}
|
|
324
326
|
upload();
|
|
325
327
|
};
|
|
326
|
-
var handleRemoveFile = function handleRemoveFile(fileKey) {
|
|
328
|
+
var handleRemoveFile = function handleRemoveFile(fileKey, event) {
|
|
327
329
|
var _xhrs$current, _xhrs$current$file$fi;
|
|
328
330
|
var file = (0, _find.default)(fileList.current, function (f) {
|
|
329
331
|
return f.fileKey === fileKey;
|
|
@@ -340,7 +342,7 @@ var Uploader = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
340
342
|
fileKey: fileKey
|
|
341
343
|
});
|
|
342
344
|
onRemove === null || onRemove === void 0 ? void 0 : onRemove(file);
|
|
343
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(nextFileList);
|
|
345
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(nextFileList, event);
|
|
344
346
|
cleanInputValue();
|
|
345
347
|
};
|
|
346
348
|
var handleReupload = function handleReupload(file) {
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
common: {
|
|
3
|
+
loading: string;
|
|
4
|
+
emptyMessage: string;
|
|
5
|
+
remove: string;
|
|
6
|
+
clear: string;
|
|
7
|
+
};
|
|
8
|
+
Plaintext: {
|
|
9
|
+
unfilled: string;
|
|
10
|
+
notSelected: string;
|
|
11
|
+
notUploaded: string;
|
|
12
|
+
};
|
|
13
|
+
Pagination: {
|
|
14
|
+
more: string;
|
|
15
|
+
prev: string;
|
|
16
|
+
next: string;
|
|
17
|
+
first: string;
|
|
18
|
+
last: string;
|
|
19
|
+
limit: string;
|
|
20
|
+
total: string;
|
|
21
|
+
skip: string;
|
|
22
|
+
};
|
|
23
|
+
Calendar: {
|
|
24
|
+
sunday: string;
|
|
25
|
+
monday: string;
|
|
26
|
+
tuesday: string;
|
|
27
|
+
wednesday: string;
|
|
28
|
+
thursday: string;
|
|
29
|
+
friday: string;
|
|
30
|
+
saturday: string;
|
|
31
|
+
ok: string;
|
|
32
|
+
today: string;
|
|
33
|
+
yesterday: string;
|
|
34
|
+
hours: string;
|
|
35
|
+
minutes: string;
|
|
36
|
+
seconds: string;
|
|
37
|
+
/**
|
|
38
|
+
* Format of the string is based on Unicode Technical Standard #35:
|
|
39
|
+
* https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
|
|
40
|
+
**/
|
|
41
|
+
formattedMonthPattern: string;
|
|
42
|
+
formattedDayPattern: string;
|
|
43
|
+
dateLocale: Locale;
|
|
44
|
+
};
|
|
45
|
+
DatePicker: {
|
|
46
|
+
sunday: string;
|
|
47
|
+
monday: string;
|
|
48
|
+
tuesday: string;
|
|
49
|
+
wednesday: string;
|
|
50
|
+
thursday: string;
|
|
51
|
+
friday: string;
|
|
52
|
+
saturday: string;
|
|
53
|
+
ok: string;
|
|
54
|
+
today: string;
|
|
55
|
+
yesterday: string;
|
|
56
|
+
hours: string;
|
|
57
|
+
minutes: string;
|
|
58
|
+
seconds: string;
|
|
59
|
+
/**
|
|
60
|
+
* Format of the string is based on Unicode Technical Standard #35:
|
|
61
|
+
* https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
|
|
62
|
+
**/
|
|
63
|
+
formattedMonthPattern: string;
|
|
64
|
+
formattedDayPattern: string;
|
|
65
|
+
dateLocale: Locale;
|
|
66
|
+
};
|
|
67
|
+
DateRangePicker: {
|
|
68
|
+
last7Days: string;
|
|
69
|
+
sunday: string;
|
|
70
|
+
monday: string;
|
|
71
|
+
tuesday: string;
|
|
72
|
+
wednesday: string;
|
|
73
|
+
thursday: string;
|
|
74
|
+
friday: string;
|
|
75
|
+
saturday: string;
|
|
76
|
+
ok: string;
|
|
77
|
+
today: string;
|
|
78
|
+
yesterday: string;
|
|
79
|
+
hours: string;
|
|
80
|
+
minutes: string;
|
|
81
|
+
seconds: string;
|
|
82
|
+
/**
|
|
83
|
+
* Format of the string is based on Unicode Technical Standard #35:
|
|
84
|
+
* https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
|
|
85
|
+
**/
|
|
86
|
+
formattedMonthPattern: string;
|
|
87
|
+
formattedDayPattern: string;
|
|
88
|
+
dateLocale: Locale;
|
|
89
|
+
};
|
|
90
|
+
Picker: {
|
|
91
|
+
noResultsText: string;
|
|
92
|
+
placeholder: string;
|
|
93
|
+
searchPlaceholder: string;
|
|
94
|
+
checkAll: string;
|
|
95
|
+
};
|
|
96
|
+
InputPicker: {
|
|
97
|
+
newItem: string;
|
|
98
|
+
createOption: string;
|
|
99
|
+
};
|
|
100
|
+
Uploader: {
|
|
101
|
+
inited: string;
|
|
102
|
+
progress: string;
|
|
103
|
+
error: string;
|
|
104
|
+
complete: string;
|
|
105
|
+
emptyFile: string;
|
|
106
|
+
upload: string;
|
|
107
|
+
removeFile: string;
|
|
108
|
+
};
|
|
109
|
+
CloseButton: {
|
|
110
|
+
closeLabel: string;
|
|
111
|
+
};
|
|
112
|
+
Breadcrumb: {
|
|
113
|
+
expandText: string;
|
|
114
|
+
};
|
|
115
|
+
Toggle: {
|
|
116
|
+
on: string;
|
|
117
|
+
off: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
export default _default;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
|
+
var _ca = _interopRequireDefault(require("date-fns/locale/ca"));
|
|
9
|
+
var Calendar = {
|
|
10
|
+
sunday: 'Dg',
|
|
11
|
+
monday: 'Dl',
|
|
12
|
+
tuesday: 'Dt',
|
|
13
|
+
wednesday: 'Dc',
|
|
14
|
+
thursday: 'Dj',
|
|
15
|
+
friday: 'Dv',
|
|
16
|
+
saturday: 'Ds',
|
|
17
|
+
ok: 'Acceptar',
|
|
18
|
+
today: 'Avui',
|
|
19
|
+
yesterday: 'Ahir',
|
|
20
|
+
hours: 'Hores',
|
|
21
|
+
minutes: 'Minuts',
|
|
22
|
+
seconds: 'Segons',
|
|
23
|
+
/**
|
|
24
|
+
* Format of the string is based on Unicode Technical Standard #35:
|
|
25
|
+
* https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
|
|
26
|
+
**/
|
|
27
|
+
formattedMonthPattern: 'MMM yyyy',
|
|
28
|
+
formattedDayPattern: 'dd MMM yyyy',
|
|
29
|
+
dateLocale: _ca.default
|
|
30
|
+
};
|
|
31
|
+
var _default = exports.default = {
|
|
32
|
+
common: {
|
|
33
|
+
loading: 'Carregant...',
|
|
34
|
+
emptyMessage: 'Sense dades',
|
|
35
|
+
remove: 'Eliminar',
|
|
36
|
+
clear: 'Netejar'
|
|
37
|
+
},
|
|
38
|
+
Plaintext: {
|
|
39
|
+
unfilled: 'Sense omplir',
|
|
40
|
+
notSelected: 'No seleccionat',
|
|
41
|
+
notUploaded: 'No pujat'
|
|
42
|
+
},
|
|
43
|
+
Pagination: {
|
|
44
|
+
more: 'Més',
|
|
45
|
+
prev: 'Anterior',
|
|
46
|
+
next: 'Següent',
|
|
47
|
+
first: 'Primer',
|
|
48
|
+
last: 'Últim',
|
|
49
|
+
limit: '{0} / pàgines',
|
|
50
|
+
total: 'Total: {0}',
|
|
51
|
+
skip: 'Anar{0}'
|
|
52
|
+
},
|
|
53
|
+
Calendar: Calendar,
|
|
54
|
+
DatePicker: (0, _extends2.default)({}, Calendar),
|
|
55
|
+
DateRangePicker: (0, _extends2.default)({}, Calendar, {
|
|
56
|
+
last7Days: 'Últims 7 dies'
|
|
57
|
+
}),
|
|
58
|
+
Picker: {
|
|
59
|
+
noResultsText: "No s'han trobat resultats",
|
|
60
|
+
placeholder: 'Seleccionar',
|
|
61
|
+
searchPlaceholder: 'Cercar',
|
|
62
|
+
checkAll: 'Tots'
|
|
63
|
+
},
|
|
64
|
+
InputPicker: {
|
|
65
|
+
newItem: 'Nou',
|
|
66
|
+
createOption: 'Crear opció "{0}"'
|
|
67
|
+
},
|
|
68
|
+
Uploader: {
|
|
69
|
+
inited: 'Inicial',
|
|
70
|
+
progress: 'Pujant',
|
|
71
|
+
error: 'Error',
|
|
72
|
+
complete: 'Completat',
|
|
73
|
+
emptyFile: 'Buit',
|
|
74
|
+
upload: 'Pujar',
|
|
75
|
+
removeFile: 'Eliminar fitxer'
|
|
76
|
+
},
|
|
77
|
+
CloseButton: {
|
|
78
|
+
closeLabel: 'Tancar'
|
|
79
|
+
},
|
|
80
|
+
Breadcrumb: {
|
|
81
|
+
expandText: 'Mostrar ruta'
|
|
82
|
+
},
|
|
83
|
+
Toggle: {
|
|
84
|
+
on: 'Encendre',
|
|
85
|
+
off: 'Apagar'
|
|
86
|
+
}
|
|
87
|
+
};
|
package/cjs/locales/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export { default as enGB } from './en_GB';
|
|
|
6
6
|
export { default as enUS } from './en_US';
|
|
7
7
|
export { default as esAR } from './es_AR';
|
|
8
8
|
export { default as esES } from './es_ES';
|
|
9
|
+
export { default as caES } from './ca_ES';
|
|
9
10
|
export { default as fiFI } from './fi_FI';
|
|
10
11
|
export { default as huHU } from './hu_HU';
|
|
11
12
|
export { default as itIT } from './it_IT';
|
package/cjs/locales/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
5
|
exports.__esModule = true;
|
|
6
|
-
exports.zhTW = exports.zhCN = exports.trTR = exports.svSE = exports.ruRU = exports.ptBR = exports.nlNL = exports.neNP = exports.koKR = exports.kkKZ = exports.jaJP = exports.itIT = exports.huHU = exports.frFR = exports.fiFI = exports.faIR = exports.esES = exports.esAR = exports.enUS = exports.enGB = exports.deDE = exports.daDK = exports.csCZ = exports.arEG = void 0;
|
|
6
|
+
exports.zhTW = exports.zhCN = exports.trTR = exports.svSE = exports.ruRU = exports.ptBR = exports.nlNL = exports.neNP = exports.koKR = exports.kkKZ = exports.jaJP = exports.itIT = exports.huHU = exports.frFR = exports.fiFI = exports.faIR = exports.esES = exports.esAR = exports.enUS = exports.enGB = exports.deDE = exports.daDK = exports.csCZ = exports.caES = exports.arEG = void 0;
|
|
7
7
|
var _ar_EG = _interopRequireDefault(require("./ar_EG"));
|
|
8
8
|
exports.arEG = _ar_EG.default;
|
|
9
9
|
var _da_DK = _interopRequireDefault(require("./da_DK"));
|
|
@@ -18,6 +18,8 @@ var _es_AR = _interopRequireDefault(require("./es_AR"));
|
|
|
18
18
|
exports.esAR = _es_AR.default;
|
|
19
19
|
var _es_ES = _interopRequireDefault(require("./es_ES"));
|
|
20
20
|
exports.esES = _es_ES.default;
|
|
21
|
+
var _ca_ES = _interopRequireDefault(require("./ca_ES"));
|
|
22
|
+
exports.caES = _ca_ES.default;
|
|
21
23
|
var _fi_FI = _interopRequireDefault(require("./fi_FI"));
|
|
22
24
|
exports.fiFI = _fi_FI.default;
|
|
23
25
|
var _hu_HU = _interopRequireDefault(require("./hu_HU"));
|