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.
Files changed (120) hide show
  1. package/Accordion/styles/index.css +9 -9
  2. package/AutoComplete/styles/index.css +59 -56
  3. package/Avatar/styles/index.css +2 -2
  4. package/Breadcrumb/styles/index.css +4 -4
  5. package/Button/styles/index.css +20 -21
  6. package/Button/styles/index.less +0 -1
  7. package/CHANGELOG.md +32 -0
  8. package/Calendar/styles/index.css +32 -33
  9. package/Carousel/styles/index.css +4 -4
  10. package/CascadeTree/styles/index.css +9 -9
  11. package/Cascader/styles/index.css +63 -60
  12. package/CheckPicker/styles/index.css +61 -58
  13. package/CheckTree/styles/index.css +62 -59
  14. package/CheckTreePicker/styles/index.css +62 -59
  15. package/Checkbox/styles/index.css +6 -6
  16. package/DateInput/styles/index.css +11 -11
  17. package/DatePicker/styles/index.css +70 -67
  18. package/DateRangeInput/styles/index.css +11 -11
  19. package/DateRangePicker/styles/index.css +71 -68
  20. package/Divider/styles/index.css +1 -1
  21. package/Drawer/styles/index.css +7 -7
  22. package/Dropdown/styles/index.css +26 -27
  23. package/FormControlLabel/styles/index.css +2 -2
  24. package/FormHelpText/styles/index.css +2 -2
  25. package/IconButton/styles/index.css +21 -22
  26. package/InlineEdit/styles/index.css +1 -1
  27. package/Input/styles/index.css +11 -11
  28. package/InputGroup/styles/index.css +28 -29
  29. package/InputNumber/styles/index.css +34 -35
  30. package/InputPicker/styles/index.css +62 -59
  31. package/List/styles/index.css +3 -3
  32. package/Loader/styles/index.css +10 -6
  33. package/Loader/styles/index.less +4 -0
  34. package/Message/styles/index.css +12 -12
  35. package/Modal/styles/index.css +9 -9
  36. package/MultiCascadeTree/styles/index.css +64 -61
  37. package/MultiCascader/styles/index.css +64 -61
  38. package/Nav/styles/index.css +30 -31
  39. package/NavItem/package.json +3 -3
  40. package/Navbar/styles/index.css +30 -31
  41. package/Notification/styles/index.css +6 -6
  42. package/Pagination/styles/index.css +69 -66
  43. package/Panel/styles/index.css +9 -9
  44. package/PanelGroup/styles/index.css +1 -1
  45. package/Placeholder/styles/index.css +3 -3
  46. package/Popover/styles/index.css +3 -3
  47. package/Progress/styles/index.css +3 -3
  48. package/Radio/styles/index.css +6 -6
  49. package/RadioGroup/styles/index.css +5 -5
  50. package/RangeSlider/styles/index.css +12 -12
  51. package/Rate/styles/index.css +2 -2
  52. package/SelectPicker/styles/index.css +62 -59
  53. package/Sidenav/styles/index.css +12 -12
  54. package/Slider/styles/index.css +12 -12
  55. package/Steps/styles/index.css +8 -8
  56. package/Table/styles/index.css +9 -9
  57. package/Tabs/styles/index.css +30 -31
  58. package/Tag/styles/index.css +3 -3
  59. package/TagInput/styles/index.css +63 -60
  60. package/TagPicker/styles/index.css +63 -60
  61. package/Text/styles/index.css +5 -5
  62. package/Timeline/styles/index.css +1 -1
  63. package/Toggle/styles/index.css +9 -9
  64. package/Tooltip/styles/index.css +9 -9
  65. package/Tree/styles/index.css +9 -9
  66. package/TreePicker/styles/index.css +9 -9
  67. package/Uploader/styles/index.css +40 -41
  68. package/cjs/CheckTree/CheckTreeView.d.ts +4 -0
  69. package/cjs/CheckTreePicker/CheckTreePicker.js +1 -0
  70. package/cjs/Loader/Loader.d.ts +1 -1
  71. package/cjs/Loader/Loader.js +1 -1
  72. package/cjs/Nav/AdaptiveNavItem.d.ts +9 -0
  73. package/cjs/Nav/AdaptiveNavItem.js +89 -0
  74. package/cjs/Nav/Nav.js +3 -73
  75. package/cjs/Stack/Stack.js +6 -1
  76. package/cjs/Tree/TreeView.d.ts +4 -0
  77. package/cjs/TreePicker/TreePicker.js +1 -0
  78. package/cjs/Uploader/Uploader.d.ts +2 -2
  79. package/cjs/Uploader/Uploader.js +11 -9
  80. package/cjs/locales/ca_ES.d.ts +120 -0
  81. package/cjs/locales/ca_ES.js +87 -0
  82. package/cjs/locales/index.d.ts +1 -0
  83. package/cjs/locales/index.js +3 -1
  84. package/dist/rsuite-no-reset-rtl.css +202 -199
  85. package/dist/rsuite-no-reset-rtl.min.css +1 -1
  86. package/dist/rsuite-no-reset-rtl.min.css.map +1 -1
  87. package/dist/rsuite-no-reset.css +202 -199
  88. package/dist/rsuite-no-reset.min.css +1 -1
  89. package/dist/rsuite-no-reset.min.css.map +1 -1
  90. package/dist/rsuite-rtl.css +204 -201
  91. package/dist/rsuite-rtl.min.css +1 -1
  92. package/dist/rsuite-rtl.min.css.map +1 -1
  93. package/dist/rsuite.css +204 -201
  94. package/dist/rsuite.js +23 -12
  95. package/dist/rsuite.js.map +1 -1
  96. package/dist/rsuite.min.css +1 -1
  97. package/dist/rsuite.min.css.map +1 -1
  98. package/dist/rsuite.min.js +1 -1
  99. package/dist/rsuite.min.js.map +1 -1
  100. package/esm/CheckTree/CheckTreeView.d.ts +4 -0
  101. package/esm/CheckTreePicker/CheckTreePicker.js +1 -0
  102. package/esm/Loader/Loader.d.ts +1 -1
  103. package/esm/Loader/Loader.js +1 -1
  104. package/esm/Nav/AdaptiveNavItem.d.ts +9 -0
  105. package/esm/Nav/AdaptiveNavItem.js +83 -0
  106. package/esm/Nav/Nav.js +5 -75
  107. package/esm/Stack/Stack.js +6 -1
  108. package/esm/Tree/TreeView.d.ts +4 -0
  109. package/esm/TreePicker/TreePicker.js +1 -0
  110. package/esm/Uploader/Uploader.d.ts +2 -2
  111. package/esm/Uploader/Uploader.js +11 -9
  112. package/esm/locales/ca_ES.d.ts +120 -0
  113. package/esm/locales/ca_ES.js +82 -0
  114. package/esm/locales/index.d.ts +1 -0
  115. package/esm/locales/index.js +1 -0
  116. package/locales/ca_ES/package.json +7 -0
  117. package/package.json +1 -1
  118. package/styles/color-modes/light.less +2 -2
  119. package/styles/colors/light.less +6 -6
  120. package/styles/variables.less +1 -0
@@ -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
- dispatch({
312
- type: 'push',
313
- files: newFileList
314
- }, function () {
315
- autoUpload && handleAjaxUpload();
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
+ };
@@ -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';
@@ -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"));