rsuite 5.53.2 → 5.55.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 (158) hide show
  1. package/AutoComplete/styles/index.css +0 -2
  2. package/CHANGELOG.md +36 -0
  3. package/Cascader/styles/index.css +0 -2
  4. package/CheckPicker/styles/index.css +0 -2
  5. package/CheckTree/styles/index.css +0 -2
  6. package/CheckTreePicker/styles/index.css +0 -2
  7. package/DatePicker/styles/index.css +0 -2
  8. package/DateRangePicker/styles/index.css +0 -2
  9. package/FormGroup/styles/index.css +3 -0
  10. package/FormGroup/styles/index.less +2 -0
  11. package/InlineEdit/package.json +7 -0
  12. package/InlineEdit/styles/index.css +112 -0
  13. package/InlineEdit/styles/index.less +48 -0
  14. package/InputGroup/styles/index.css +0 -2
  15. package/InputGroup/styles/index.less +0 -2
  16. package/InputNumber/styles/index.css +0 -2
  17. package/InputPicker/styles/index.css +0 -2
  18. package/MultiCascader/styles/index.css +0 -2
  19. package/Pagination/styles/index.css +3 -2
  20. package/Pagination/styles/pagination-group.less +4 -0
  21. package/SelectPicker/styles/index.css +0 -2
  22. package/TagInput/styles/index.css +1 -4
  23. package/TagPicker/styles/index.css +1 -4
  24. package/TagPicker/styles/index.less +1 -2
  25. package/cjs/Calendar/CalendarContainer.d.ts +4 -0
  26. package/cjs/Calendar/CalendarContainer.js +3 -1
  27. package/cjs/Calendar/TableCell.js +3 -2
  28. package/cjs/Calendar/types.d.ts +1 -0
  29. package/cjs/Cascader/DropdownMenu.js +3 -1
  30. package/cjs/Cascader/TreeView.js +3 -1
  31. package/cjs/DOMHelper/index.d.ts +23 -32
  32. package/cjs/DatePicker/DatePicker.d.ts +6 -0
  33. package/cjs/DatePicker/DatePicker.js +4 -3
  34. package/cjs/DateRangePicker/DateRangePicker.js +8 -2
  35. package/cjs/InlineEdit/EditableControls.d.ts +8 -0
  36. package/cjs/InlineEdit/EditableControls.js +34 -0
  37. package/cjs/InlineEdit/InlineEdit.d.ts +56 -0
  38. package/cjs/InlineEdit/InlineEdit.js +98 -0
  39. package/cjs/InlineEdit/index.d.ts +3 -0
  40. package/cjs/InlineEdit/index.js +9 -0
  41. package/cjs/InlineEdit/renderChildren.d.ts +12 -0
  42. package/cjs/InlineEdit/renderChildren.js +40 -0
  43. package/cjs/InlineEdit/useEditState.d.ts +22 -0
  44. package/cjs/InlineEdit/useEditState.js +82 -0
  45. package/cjs/InlineEdit/useFocusEvent.d.ts +14 -0
  46. package/cjs/InlineEdit/useFocusEvent.js +61 -0
  47. package/cjs/Input/Input.js +6 -3
  48. package/cjs/InputNumber/InputNumber.d.ts +36 -11
  49. package/cjs/InputNumber/InputNumber.js +47 -28
  50. package/cjs/InputPicker/InputPicker.js +6 -5
  51. package/cjs/Pagination/LimitPicker.d.ts +15 -0
  52. package/cjs/Pagination/LimitPicker.js +51 -0
  53. package/cjs/Pagination/Pagination.js +7 -8
  54. package/cjs/Pagination/PaginationButton.js +3 -18
  55. package/cjs/Pagination/PaginationGroup.d.ts +35 -7
  56. package/cjs/Pagination/PaginationGroup.js +77 -98
  57. package/cjs/RangeSlider/RangeSlider.js +14 -11
  58. package/cjs/Slider/Handle.js +19 -62
  59. package/cjs/Slider/ProgressBar.js +2 -1
  60. package/cjs/Slider/Slider.d.ts +2 -0
  61. package/cjs/Slider/Slider.js +18 -12
  62. package/cjs/Slider/useDrag.d.ts +16 -0
  63. package/cjs/Slider/useDrag.js +88 -0
  64. package/cjs/Slider/utils.d.ts +6 -2
  65. package/cjs/Slider/utils.js +15 -1
  66. package/cjs/index.d.ts +2 -0
  67. package/cjs/index.js +3 -1
  68. package/cjs/internals/Overlay/positionUtils.d.ts +1 -6
  69. package/cjs/internals/Picker/Listbox.d.ts +5 -1
  70. package/cjs/internals/Picker/Listbox.js +6 -5
  71. package/cjs/internals/Picker/hooks/usePickerRef.js +2 -0
  72. package/cjs/internals/Picker/types.d.ts +2 -0
  73. package/cjs/internals/symbols.d.ts +2 -0
  74. package/cjs/internals/symbols.js +9 -0
  75. package/cjs/locales/cs_CZ.d.ts +120 -0
  76. package/cjs/locales/cs_CZ.js +88 -0
  77. package/cjs/locales/index.d.ts +1 -0
  78. package/cjs/locales/index.js +4 -2
  79. package/cjs/utils/getDataGroupBy.d.ts +0 -1
  80. package/cjs/utils/getDataGroupBy.js +3 -5
  81. package/dist/rsuite-no-reset-rtl.css +94 -4
  82. package/dist/rsuite-no-reset-rtl.min.css +1 -1
  83. package/dist/rsuite-no-reset-rtl.min.css.map +1 -1
  84. package/dist/rsuite-no-reset.css +94 -4
  85. package/dist/rsuite-no-reset.min.css +1 -1
  86. package/dist/rsuite-no-reset.min.css.map +1 -1
  87. package/dist/rsuite-rtl.css +94 -4
  88. package/dist/rsuite-rtl.min.css +1 -1
  89. package/dist/rsuite-rtl.min.css.map +1 -1
  90. package/dist/rsuite.css +94 -4
  91. package/dist/rsuite.js +171 -61
  92. package/dist/rsuite.js.map +1 -1
  93. package/dist/rsuite.min.css +1 -1
  94. package/dist/rsuite.min.css.map +1 -1
  95. package/dist/rsuite.min.js +1 -1
  96. package/dist/rsuite.min.js.map +1 -1
  97. package/esm/Calendar/CalendarContainer.d.ts +4 -0
  98. package/esm/Calendar/CalendarContainer.js +3 -1
  99. package/esm/Calendar/TableCell.js +5 -4
  100. package/esm/Calendar/types.d.ts +1 -0
  101. package/esm/Cascader/DropdownMenu.js +3 -1
  102. package/esm/Cascader/TreeView.js +3 -1
  103. package/esm/DOMHelper/index.d.ts +23 -32
  104. package/esm/DatePicker/DatePicker.d.ts +6 -0
  105. package/esm/DatePicker/DatePicker.js +4 -3
  106. package/esm/DateRangePicker/DateRangePicker.js +8 -2
  107. package/esm/InlineEdit/EditableControls.d.ts +8 -0
  108. package/esm/InlineEdit/EditableControls.js +28 -0
  109. package/esm/InlineEdit/InlineEdit.d.ts +56 -0
  110. package/esm/InlineEdit/InlineEdit.js +92 -0
  111. package/esm/InlineEdit/index.d.ts +3 -0
  112. package/esm/InlineEdit/index.js +3 -0
  113. package/esm/InlineEdit/renderChildren.d.ts +12 -0
  114. package/esm/InlineEdit/renderChildren.js +34 -0
  115. package/esm/InlineEdit/useEditState.d.ts +22 -0
  116. package/esm/InlineEdit/useEditState.js +76 -0
  117. package/esm/InlineEdit/useFocusEvent.d.ts +14 -0
  118. package/esm/InlineEdit/useFocusEvent.js +56 -0
  119. package/esm/Input/Input.js +6 -3
  120. package/esm/InputNumber/InputNumber.d.ts +36 -11
  121. package/esm/InputNumber/InputNumber.js +49 -30
  122. package/esm/InputPicker/InputPicker.js +6 -5
  123. package/esm/Pagination/LimitPicker.d.ts +15 -0
  124. package/esm/Pagination/LimitPicker.js +44 -0
  125. package/esm/Pagination/Pagination.js +7 -7
  126. package/esm/Pagination/PaginationButton.js +4 -18
  127. package/esm/Pagination/PaginationGroup.d.ts +35 -7
  128. package/esm/Pagination/PaginationGroup.js +79 -98
  129. package/esm/RangeSlider/RangeSlider.js +15 -12
  130. package/esm/Slider/Handle.js +19 -61
  131. package/esm/Slider/ProgressBar.js +2 -1
  132. package/esm/Slider/Slider.d.ts +2 -0
  133. package/esm/Slider/Slider.js +20 -14
  134. package/esm/Slider/useDrag.d.ts +16 -0
  135. package/esm/Slider/useDrag.js +82 -0
  136. package/esm/Slider/utils.d.ts +6 -2
  137. package/esm/Slider/utils.js +15 -3
  138. package/esm/index.d.ts +2 -0
  139. package/esm/index.js +1 -0
  140. package/esm/internals/Overlay/positionUtils.d.ts +1 -6
  141. package/esm/internals/Picker/Listbox.d.ts +5 -1
  142. package/esm/internals/Picker/Listbox.js +7 -6
  143. package/esm/internals/Picker/hooks/usePickerRef.js +2 -0
  144. package/esm/internals/Picker/types.d.ts +2 -0
  145. package/esm/internals/symbols.d.ts +2 -0
  146. package/esm/internals/symbols.js +3 -0
  147. package/esm/locales/cs_CZ.d.ts +120 -0
  148. package/esm/locales/cs_CZ.js +82 -0
  149. package/esm/locales/index.d.ts +1 -0
  150. package/esm/locales/index.js +2 -1
  151. package/esm/utils/getDataGroupBy.d.ts +0 -1
  152. package/esm/utils/getDataGroupBy.js +2 -3
  153. package/locales/cs_CZ/package.json +7 -0
  154. package/package.json +2 -2
  155. package/styles/color-modes/dark.less +3 -0
  156. package/styles/color-modes/high-contrast.less +3 -0
  157. package/styles/color-modes/light.less +3 -0
  158. package/styles/index.less +1 -0
@@ -1,3 +1,7 @@
1
+ /// <reference types="react" />
1
2
  export declare const precisionMath: (value: any) => number;
2
- declare function checkValue<T extends number | undefined>(value: T, min: number, max: number): T extends undefined ? undefined : number;
3
- export { checkValue };
3
+ export declare function checkValue<T extends number | undefined | null>(value: T, min: number, max: number): number | T;
4
+ export declare function getPosition(e: React.MouseEvent | React.TouchEvent): {
5
+ pageX: number;
6
+ pageY: number;
7
+ };
@@ -2,8 +2,8 @@
2
2
  export var precisionMath = function precisionMath(value) {
3
3
  return parseFloat(value.toFixed(10));
4
4
  };
5
- function checkValue(value, min, max) {
6
- if (typeof value === 'undefined') {
5
+ export function checkValue(value, min, max) {
6
+ if (typeof value === 'undefined' || value === null) {
7
7
  return value;
8
8
  }
9
9
  if (value < min) {
@@ -14,4 +14,16 @@ function checkValue(value, min, max) {
14
14
  }
15
15
  return value;
16
16
  }
17
- export { checkValue };
17
+ export function getPosition(e) {
18
+ var _event, _event2;
19
+ var event = 'touches' in e ? e.touches[0] : e;
20
+
21
+ // For touchend event, we need to use `changedTouches` instead of `touches`
22
+ if (e.type === 'touchend' && 'changedTouches' in e) {
23
+ event = e.changedTouches[0];
24
+ }
25
+ return {
26
+ pageX: ((_event = event) === null || _event === void 0 ? void 0 : _event.pageX) || 0,
27
+ pageY: ((_event2 = event) === null || _event2 === void 0 ? void 0 : _event2.pageY) || 0
28
+ };
29
+ }
package/esm/index.d.ts CHANGED
@@ -108,6 +108,8 @@ export { default as RangeSlider } from './RangeSlider';
108
108
  export type { RangeSliderProps } from './RangeSlider';
109
109
  export { default as Rate } from './Rate';
110
110
  export type { RateProps } from './Rate';
111
+ export { default as InlineEdit } from './InlineEdit';
112
+ export type { InlineEditProps } from './InlineEdit';
111
113
  export { default as Tree } from './Tree';
112
114
  export type { TreeProps } from './Tree';
113
115
  export { default as CheckTree } from './CheckTree';
package/esm/index.js CHANGED
@@ -57,6 +57,7 @@ export { default as Uploader } from './Uploader';
57
57
  export { default as Slider } from './Slider';
58
58
  export { default as RangeSlider } from './RangeSlider';
59
59
  export { default as Rate } from './Rate';
60
+ export { default as InlineEdit } from './InlineEdit';
60
61
  // Data display
61
62
  export { default as Tree } from './Tree';
62
63
  export { default as CheckTree } from './CheckTree';
@@ -30,12 +30,7 @@ export interface Dimensions {
30
30
  scrollY: number;
31
31
  }
32
32
  declare const _default: (props: UtilProps) => {
33
- getPosition(target: HTMLElement, container: HTMLElement): {
34
- top: number;
35
- left: number;
36
- height: number;
37
- width: number;
38
- } | DOMRect | null;
33
+ getPosition(target: HTMLElement, container: HTMLElement): import("dom-lib/getOffset").Offset | DOMRect | null;
39
34
  getCursorOffsetPosition(target: HTMLElement, container: HTMLElement, cursorPosition: CursorPosition): Offset;
40
35
  calcAutoPlacement(targetOffset: any, container: any, overlay: any): any;
41
36
  calcOverlayPosition(overlayNode: HTMLElement, target: HTMLElement, container: HTMLElement, cursorPosition?: CursorPosition | null): PositionType;
@@ -1,9 +1,13 @@
1
1
  import React from 'react';
2
2
  import { ListProps, ListHandle } from '../../internals/Windowing';
3
3
  import { StandardProps, ItemDataType } from '../../@types/common';
4
+ import { RSUITE_PICKER_GROUP_KEY } from '../../internals/symbols';
5
+ interface InnerItemDataType extends ItemDataType {
6
+ [RSUITE_PICKER_GROUP_KEY]?: boolean;
7
+ }
4
8
  export interface ListboxProps<Multiple = false> extends StandardProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
5
9
  classPrefix: string;
6
- data?: ItemDataType[];
10
+ data?: InnerItemDataType[];
7
11
  group?: boolean;
8
12
  groupBy?: string;
9
13
  disabledItemValues?: any[];
@@ -17,8 +17,9 @@ import { List, AutoSizer, VariableSizeList } from '../../internals/Windowing';
17
17
  import shallowEqual from '../../utils/shallowEqual';
18
18
  import { mergeRefs, useClassNames, useMount, useEventCallback } from '../../utils';
19
19
  import ListItemGroup from './ListItemGroup';
20
- import { KEY_GROUP, KEY_GROUP_TITLE } from '../../utils/getDataGroupBy';
20
+ import { KEY_GROUP_TITLE } from '../../utils/getDataGroupBy';
21
21
  import useCombobox from './hooks/useCombobox';
22
+ import { RSUITE_PICKER_GROUP_KEY } from '../../internals/symbols';
22
23
  var Listbox = /*#__PURE__*/React.forwardRef(function (props, ref) {
23
24
  var _props$data = props.data,
24
25
  data = _props$data === void 0 ? [] : _props$data,
@@ -86,7 +87,7 @@ var Listbox = /*#__PURE__*/React.forwardRef(function (props, ref) {
86
87
  });
87
88
  var getRowHeight = function getRowHeight(list, index) {
88
89
  var item = list[index];
89
- if (group && item[KEY_GROUP] && index !== 0) {
90
+ if (group && item[RSUITE_PICKER_GROUP_KEY] && index !== 0) {
90
91
  return rowGroupHeight;
91
92
  }
92
93
  return rowHeight;
@@ -115,7 +116,7 @@ var Listbox = /*#__PURE__*/React.forwardRef(function (props, ref) {
115
116
  var filteredItems = group ? data.filter(function (item) {
116
117
  var _item$parent;
117
118
  // Display group title items
118
- if (item[KEY_GROUP]) return true;
119
+ if (item[RSUITE_PICKER_GROUP_KEY]) return true;
119
120
 
120
121
  // Display items under the unfolded group
121
122
  // FIXME-Doma
@@ -139,7 +140,7 @@ var Listbox = /*#__PURE__*/React.forwardRef(function (props, ref) {
139
140
  var item = itemData || data[index];
140
141
  var value = item[valueKey];
141
142
  var label = item[labelKey];
142
- if (isUndefined(label) && !item[KEY_GROUP]) {
143
+ if (isUndefined(label) && !item[RSUITE_PICKER_GROUP_KEY]) {
143
144
  throw Error("labelKey \"" + labelKey + "\" is not defined in \"data\" : " + index);
144
145
  }
145
146
 
@@ -150,7 +151,7 @@ var Listbox = /*#__PURE__*/React.forwardRef(function (props, ref) {
150
151
  * Render <ListboxGroup>
151
152
  * when if `group` is enabled
152
153
  */
153
- if (group && item[KEY_GROUP]) {
154
+ if (group && item[RSUITE_PICKER_GROUP_KEY]) {
154
155
  var groupValue = item[KEY_GROUP_TITLE];
155
156
  // TODO: grouped options should be owned by group
156
157
  return /*#__PURE__*/React.createElement(ListItemGroup, {
@@ -164,7 +165,7 @@ var Listbox = /*#__PURE__*/React.forwardRef(function (props, ref) {
164
165
  key: "group-" + groupValue,
165
166
  onClick: handleGroupTitleClick.bind(null, groupValue)
166
167
  }, renderMenuGroup ? renderMenuGroup(groupValue, item) : groupValue);
167
- } else if (isUndefined(value) && !isUndefined(item[KEY_GROUP])) {
168
+ } else if (isUndefined(value) && !isUndefined(item[RSUITE_PICKER_GROUP_KEY])) {
168
169
  throw Error("valueKey \"" + valueKey + "\" is not defined in \"data\" : " + index + " ");
169
170
  }
170
171
  var disabled = disabledItemValues === null || disabledItemValues === void 0 ? void 0 : disabledItemValues.some(function (disabledValue) {
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
  import { useImperativeHandle, useRef } from 'react';
3
3
  import useEventCallback from '../../../utils/useEventCallback';
4
+ import { RSUITE_PICKER_TYPE } from '../../../internals/symbols';
4
5
  /**
5
6
  * A hook of the exposed method of Picker
6
7
  */
@@ -64,6 +65,7 @@ function usePickerRef(ref, parmas) {
64
65
  }
65
66
  return list === null || list === void 0 ? void 0 : list.current;
66
67
  },
68
+ type: RSUITE_PICKER_TYPE,
67
69
  updatePosition: handleUpdatePosition,
68
70
  open: handleOpen,
69
71
  close: handleClose
@@ -1,7 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { RsRefForwardingComponent } from '../../@types/common';
3
3
  import type { ListHandle } from '../../internals/Windowing';
4
+ import { RSUITE_PICKER_TYPE } from '../../internals/symbols';
4
5
  export interface PickerHandle {
6
+ type?: typeof RSUITE_PICKER_TYPE;
5
7
  root: HTMLElement | null;
6
8
  list?: ListHandle;
7
9
  overlay?: HTMLElement | null;
@@ -0,0 +1,2 @@
1
+ export declare const RSUITE_PICKER_TYPE: symbol;
2
+ export declare const RSUITE_PICKER_GROUP_KEY: unique symbol;
@@ -0,0 +1,3 @@
1
+ 'use client';
2
+ export var RSUITE_PICKER_TYPE = Symbol.for('rsuite.picker');
3
+ export var RSUITE_PICKER_GROUP_KEY = Symbol.for('rsuite.picker_group_key');
@@ -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: any;
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: any;
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: any;
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,82 @@
1
+ 'use client';
2
+ import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import cs from 'date-fns/locale/cs';
4
+ var Calendar = {
5
+ sunday: 'Ne',
6
+ monday: 'Po',
7
+ tuesday: 'Út',
8
+ wednesday: 'St',
9
+ thursday: 'Čt',
10
+ friday: 'Pá',
11
+ saturday: 'So',
12
+ ok: 'OK',
13
+ today: 'Dnes',
14
+ yesterday: 'Včera',
15
+ hours: 'Hodiny',
16
+ minutes: 'Minuty',
17
+ seconds: 'Sekundy',
18
+ /**
19
+ * Format of the string is based on Unicode Technical Standard #35:
20
+ * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
21
+ **/
22
+ formattedMonthPattern: 'MMM yyyy',
23
+ formattedDayPattern: 'dd. MMM yyyy',
24
+ dateLocale: cs
25
+ };
26
+ export default {
27
+ common: {
28
+ loading: 'Načítaní...',
29
+ emptyMessage: 'Nejsou k dispozici žádné data',
30
+ remove: 'Odstarnit',
31
+ clear: 'Vymazat'
32
+ },
33
+ Plaintext: {
34
+ unfilled: 'Nevyplněno',
35
+ notSelected: 'Nevybráno',
36
+ notUploaded: 'Nenahráno'
37
+ },
38
+ Pagination: {
39
+ more: 'Víc',
40
+ prev: 'Předchozí',
41
+ next: 'Další',
42
+ first: 'První',
43
+ last: 'Poslední',
44
+ limit: '{0} / stránku',
45
+ total: 'Celkový počet řádků : {0}',
46
+ skip: 'Jít na {0}'
47
+ },
48
+ Calendar: Calendar,
49
+ DatePicker: _extends({}, Calendar),
50
+ DateRangePicker: _extends({}, Calendar, {
51
+ last7Days: 'Posledních 7 dní'
52
+ }),
53
+ Picker: {
54
+ noResultsText: 'Nenalezeny žádné výsledky',
55
+ placeholder: 'Vybrat',
56
+ searchPlaceholder: 'Vyhledat',
57
+ checkAll: 'Vybrat vše'
58
+ },
59
+ InputPicker: {
60
+ newItem: 'Nová položka ',
61
+ createOption: 'Vytvořit možnost "{0}"'
62
+ },
63
+ Uploader: {
64
+ inited: 'Púvodní',
65
+ progress: 'Nahrávání',
66
+ error: 'Error',
67
+ complete: 'Dokočeno',
68
+ emptyFile: 'Prázdný soubor',
69
+ upload: 'Nahrát',
70
+ removeFile: 'Odstranit soubor'
71
+ },
72
+ CloseButton: {
73
+ closeLabel: 'Zavřít'
74
+ },
75
+ Breadcrumb: {
76
+ expandText: 'Zobrazit cestu'
77
+ },
78
+ Toggle: {
79
+ on: 'Otevřít',
80
+ off: 'Zavřít'
81
+ }
82
+ };
@@ -22,6 +22,7 @@ export { default as faIR } from './fa_IR';
22
22
  export { default as frFR } from './fr_FR';
23
23
  export { default as jaJP } from './ja_JP';
24
24
  export { default as neNP } from './ne_NP';
25
+ export { default as csCZ } from './cs_CZ';
25
26
  declare type PickKeys<T> = {
26
27
  [keys in keyof T]?: T[keys];
27
28
  };
@@ -21,4 +21,5 @@ export { default as zhTW } from './zh_TW';
21
21
  export { default as faIR } from './fa_IR';
22
22
  export { default as frFR } from './fr_FR';
23
23
  export { default as jaJP } from './ja_JP';
24
- export { default as neNP } from './ne_NP';
24
+ export { default as neNP } from './ne_NP';
25
+ export { default as csCZ } from './cs_CZ';
@@ -1,4 +1,3 @@
1
- export declare const KEY_GROUP: string | symbol;
2
1
  export declare const KEY_GROUP_TITLE = "groupTitle";
3
2
  export declare function getDataGroupBy<T>(data: readonly T[], key: string, sort?: (isGroup: boolean) => <T>(a: T, b: T) => number): (T | {
4
3
  groupTitle: string;
@@ -1,8 +1,7 @@
1
1
  'use client';
2
2
  import _groupBy from "lodash/groupBy";
3
3
  import { WalkTreeStrategy, flattenTree } from '../utils/treeUtils';
4
- var hasSymbol = typeof Symbol === 'function';
5
- export var KEY_GROUP = hasSymbol ? Symbol('_$grouped') : '_$grouped';
4
+ import { RSUITE_PICKER_GROUP_KEY } from '../internals/symbols';
6
5
  export var KEY_GROUP_TITLE = 'groupTitle';
7
6
  export function getDataGroupBy(data, key, sort) {
8
7
  var groupMap = _groupBy(data, key);
@@ -13,7 +12,7 @@ export function getDataGroupBy(data, key, sort) {
13
12
  children = _ref[1];
14
13
  return _ref2 = {
15
14
  children: isSort ? children.sort(sort(false)) : children
16
- }, _ref2[KEY_GROUP_TITLE] = groupTitle, _ref2[KEY_GROUP] = true, _ref2;
15
+ }, _ref2[KEY_GROUP_TITLE] = groupTitle, _ref2[RSUITE_PICKER_GROUP_KEY] = true, _ref2;
17
16
  });
18
17
  if (isSort) {
19
18
  groups.sort(sort(true));
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "rsuite/locales/cs_CZ",
3
+ "private": true,
4
+ "main": "../../cjs/locales/cs_CZ.js",
5
+ "module": "../../esm/locales/cs_CZ.js",
6
+ "types": "../../esm/locales/cs_CZ.d.ts"
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rsuite",
3
- "version": "5.53.2",
3
+ "version": "5.55.0",
4
4
  "description": "A suite of react components",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",
@@ -33,7 +33,7 @@
33
33
  "@types/react-window": "^1.8.5",
34
34
  "classnames": "^2.3.1",
35
35
  "date-fns": "^2.29.3",
36
- "dom-lib": "^3.1.3",
36
+ "dom-lib": "^3.3.1",
37
37
  "lodash": "^4.17.11",
38
38
  "prop-types": "^15.8.1",
39
39
  "react-use-set": "^1.0.0",
@@ -242,6 +242,9 @@
242
242
  --rs-input-focus-border: var(--rs-primary-500);
243
243
  --rs-input-disabled-bg: var(--rs-gray-700);
244
244
 
245
+ // InlineEdit
246
+ --rs-inline-edit-hover-bg: var(--rs-gray-500);
247
+
245
248
  // ARIA Listboxes
246
249
  --rs-listbox-option-hover-bg: var(--rs-gray-600);
247
250
  --rs-listbox-option-hover-text: currentColor;
@@ -247,6 +247,9 @@
247
247
  --rs-input-focus-border: var(--rs-primary-500);
248
248
  --rs-input-disabled-bg: var(--rs-gray-700);
249
249
 
250
+ // InlineEdit
251
+ --rs-inline-edit-hover-bg: transparent;
252
+
250
253
  // ARIA Listboxes
251
254
  --rs-listbox-option-hover-bg: transparent;
252
255
  --rs-listbox-option-hover-text: var(--rs-primary-500);
@@ -253,6 +253,9 @@
253
253
  --rs-input-focus-border: var(--rs-primary-500);
254
254
  --rs-input-disabled-bg: var(--rs-gray-50);
255
255
 
256
+ // InlineEdit
257
+ --rs-inline-edit-hover-bg: var(--rs-gray-200);
258
+
256
259
  // ARIA Listboxes
257
260
  --rs-listbox-option-hover-bg: rgb(from var(--rs-primary-100) r g b / 50%);
258
261
  --rs-listbox-option-hover-text: var(--rs-primary-700);
package/styles/index.less CHANGED
@@ -41,6 +41,7 @@
41
41
  @import '../InputGroup/styles/index';
42
42
  @import '../InputNumber/styles/index';
43
43
  @import '../InputPicker/styles/index';
44
+ @import '../InlineEdit/styles/index';
44
45
  @import '../List/styles/index';
45
46
  @import '../Loader/styles/index';
46
47
  @import '../Message/styles/index';