rsuite 5.77.0 → 5.78.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/CHANGELOG.md +26 -0
- package/Dropdown/styles/index.css +0 -1
- package/Dropdown/styles/index.less +0 -1
- package/Nav/styles/index.css +0 -1
- package/Navbar/styles/index.css +0 -1
- package/Tabs/styles/index.css +0 -1
- package/cjs/CheckPicker/CheckPicker.d.ts +4 -2
- package/cjs/DatePicker/DatePicker.js +2 -1
- package/cjs/DatePicker/types.d.ts +2 -2
- package/cjs/DateRangePicker/DateRangePicker.js +5 -1
- package/cjs/DateRangePicker/types.d.ts +3 -8
- package/cjs/InputPicker/InputPicker.d.ts +2 -1
- package/cjs/MultiCascader/MultiCascader.d.ts +11 -4
- package/cjs/SelectPicker/SelectPicker.d.ts +2 -2
- package/cjs/SelectPicker/index.d.ts +1 -1
- package/cjs/TagPicker/index.d.ts +4 -1
- package/cjs/TagPicker/index.js +5 -2
- package/cjs/internals/Menu/Menubar.js +4 -1
- package/cjs/internals/types/index.d.ts +1 -1
- package/cjs/locales/index.d.ts +1 -0
- package/cjs/locales/index.js +4 -2
- package/cjs/locales/pl_PL.d.ts +151 -0
- package/cjs/locales/pl_PL.js +91 -0
- package/dist/rsuite-no-reset-rtl.css +0 -1
- 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 +0 -1
- package/dist/rsuite-no-reset.min.css +1 -1
- package/dist/rsuite-no-reset.min.css.map +1 -1
- package/dist/rsuite-rtl.css +0 -1
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +0 -1
- package/dist/rsuite.js +10 -64
- 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.LICENSE.txt +0 -35
- package/dist/rsuite.min.js.map +1 -1
- package/esm/CheckPicker/CheckPicker.d.ts +4 -2
- package/esm/DatePicker/DatePicker.js +2 -1
- package/esm/DatePicker/types.d.ts +2 -2
- package/esm/DateRangePicker/DateRangePicker.js +5 -1
- package/esm/DateRangePicker/types.d.ts +3 -8
- package/esm/InputPicker/InputPicker.d.ts +2 -1
- package/esm/MultiCascader/MultiCascader.d.ts +11 -4
- package/esm/SelectPicker/SelectPicker.d.ts +2 -2
- package/esm/SelectPicker/index.d.ts +1 -1
- package/esm/TagPicker/index.d.ts +4 -1
- package/esm/TagPicker/index.js +5 -2
- package/esm/internals/Menu/Menubar.js +4 -1
- package/esm/internals/types/index.d.ts +1 -1
- package/esm/locales/index.d.ts +1 -0
- package/esm/locales/index.js +2 -1
- package/esm/locales/pl_PL.d.ts +151 -0
- package/esm/locales/pl_PL.js +86 -0
- package/locales/pl_PL/package.json +7 -0
- package/package.json +4 -4
|
@@ -2,13 +2,15 @@ import React from 'react';
|
|
|
2
2
|
import { PickerLocale } from '../locales';
|
|
3
3
|
import { PickerHandle, PickerToggleProps } from '../internals/Picker';
|
|
4
4
|
import { ItemDataType, FormControlPickerProps } from '../internals/types';
|
|
5
|
-
import type {
|
|
5
|
+
import type { SelectProps } from '../SelectPicker';
|
|
6
6
|
export type ValueType = (number | string)[];
|
|
7
|
-
export interface CheckPickerProps<T = any> extends FormControlPickerProps<T[], PickerLocale, ItemDataType<T>>,
|
|
7
|
+
export interface CheckPickerProps<T = any> extends FormControlPickerProps<T[], PickerLocale, ItemDataType<T>>, Omit<SelectProps<T>, 'renderValue'>, Pick<PickerToggleProps, 'label' | 'caretAs' | 'loading'> {
|
|
8
8
|
/** Top the selected option in the options */
|
|
9
9
|
sticky?: boolean;
|
|
10
10
|
/** A picker that can be counted */
|
|
11
11
|
countable?: boolean;
|
|
12
|
+
/** Custom render selected items */
|
|
13
|
+
renderValue?: (value: T[], item: ItemDataType<T>[], selectedElement: React.ReactNode) => React.ReactNode;
|
|
12
14
|
}
|
|
13
15
|
export interface CheckPickerComponent {
|
|
14
16
|
<T>(props: CheckPickerProps<T> & {
|
|
@@ -430,6 +430,7 @@ var DatePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
430
430
|
};
|
|
431
431
|
var hasValue = isValid(value);
|
|
432
432
|
var _usePickerClassName = usePickerClassName(_extends({}, props, {
|
|
433
|
+
className: className,
|
|
433
434
|
classPrefix: classPrefix,
|
|
434
435
|
name: 'date',
|
|
435
436
|
appearance: appearance,
|
|
@@ -485,7 +486,7 @@ var DatePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
485
486
|
onExit: createChainedFunction(events.onInactive, onExit),
|
|
486
487
|
speaker: renderCalendarOverlay
|
|
487
488
|
}, /*#__PURE__*/React.createElement(Component, {
|
|
488
|
-
className: merge(
|
|
489
|
+
className: merge(classes, (_merge = {}, _merge[prefix('error')] = invalidValue, _merge)),
|
|
489
490
|
style: style,
|
|
490
491
|
ref: root
|
|
491
492
|
}, plaintext ? /*#__PURE__*/React.createElement(DateInput, {
|
|
@@ -3,11 +3,11 @@ export type ToolbarValue = Date | [Date?, Date?];
|
|
|
3
3
|
export interface RangeType<T> {
|
|
4
4
|
label: ReactNode;
|
|
5
5
|
closeOverlay?: boolean;
|
|
6
|
-
value: T | ((value: T) => T);
|
|
6
|
+
value: T | ((value: T) => T) | null;
|
|
7
7
|
placement?: 'bottom' | 'left';
|
|
8
8
|
}
|
|
9
9
|
export interface InnerRange<T> extends Omit<RangeType<T>, 'value'> {
|
|
10
|
-
value: T;
|
|
10
|
+
value: T | null;
|
|
11
11
|
}
|
|
12
12
|
export interface DeprecatedProps {
|
|
13
13
|
/**
|
|
@@ -585,6 +585,9 @@ var DateRangePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
585
585
|
if (selectedDates === void 0) {
|
|
586
586
|
selectedDates = [];
|
|
587
587
|
}
|
|
588
|
+
if (selectedDates === null) {
|
|
589
|
+
return false;
|
|
590
|
+
}
|
|
588
591
|
var _selectedDates = selectedDates,
|
|
589
592
|
startDate = _selectedDates[0],
|
|
590
593
|
endDate = _selectedDates[1];
|
|
@@ -740,6 +743,7 @@ var DateRangePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
740
743
|
var hasValue = !isNil(value) && value.length > 1;
|
|
741
744
|
var _usePickerClassName = usePickerClassName(_extends({}, props, {
|
|
742
745
|
classPrefix: classPrefix,
|
|
746
|
+
className: className,
|
|
743
747
|
name: 'daterange',
|
|
744
748
|
appearance: appearance,
|
|
745
749
|
hasValue: hasValue,
|
|
@@ -811,7 +815,7 @@ var DateRangePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
811
815
|
speaker: renderCalendarOverlay
|
|
812
816
|
}, /*#__PURE__*/React.createElement(Component, {
|
|
813
817
|
ref: root,
|
|
814
|
-
className: merge(
|
|
818
|
+
className: merge(classes, (_merge = {}, _merge[prefix('error')] = invalidValue, _merge)),
|
|
815
819
|
style: style
|
|
816
820
|
}, plaintext ? /*#__PURE__*/React.createElement(DateRangeInput, {
|
|
817
821
|
value: value,
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { DATERANGE_DISABLED_TARGET } from '../internals/constants';
|
|
3
|
-
|
|
2
|
+
import type { RangeType as DatePickerRangeType } from '../DatePicker/types';
|
|
3
|
+
export type ValueType = [Date?, Date?] | null;
|
|
4
4
|
export type DateRange = [Date, Date];
|
|
5
|
-
export
|
|
6
|
-
label: React.ReactNode;
|
|
7
|
-
value: T | ((value?: T) => T);
|
|
8
|
-
closeOverlay?: boolean;
|
|
9
|
-
placement?: 'bottom' | 'left';
|
|
10
|
-
}
|
|
5
|
+
export type RangeType<T = DateRange> = DatePickerRangeType<T>;
|
|
11
6
|
export type DisabledDateFunction = (
|
|
12
7
|
/**
|
|
13
8
|
* Date used to determine if disabling is required.
|
|
@@ -5,7 +5,7 @@ import type { ItemDataType, FormControlPickerProps } from '../internals/types';
|
|
|
5
5
|
import type { InputPickerLocale } from '../locales';
|
|
6
6
|
import type { SelectProps } from '../SelectPicker';
|
|
7
7
|
export type ValueType = any;
|
|
8
|
-
export interface InputPickerProps<V = ValueType> extends FormControlPickerProps<V, InputPickerLocale, InputItemDataType>, SelectProps<V>, Pick<PickerToggleProps, 'caretAs' | 'loading'> {
|
|
8
|
+
export interface InputPickerProps<V = ValueType> extends FormControlPickerProps<V, InputPickerLocale, InputItemDataType>, Omit<SelectProps<V>, 'renderValue'>, Pick<PickerToggleProps, 'caretAs' | 'loading'> {
|
|
9
9
|
tabIndex?: number;
|
|
10
10
|
/** Settings can create new options */
|
|
11
11
|
creatable?: boolean;
|
|
@@ -26,6 +26,7 @@ export interface InputPickerProps<V = ValueType> extends FormControlPickerProps<
|
|
|
26
26
|
* @param filteredData The items filtered by the searchKeyword
|
|
27
27
|
*/
|
|
28
28
|
shouldDisplayCreateOption?: (searchKeyword: string, filteredData: InputItemDataType<V>[]) => boolean;
|
|
29
|
+
renderValue?: (value: V, item: ItemDataType<V>, selectedElement: React.ReactNode) => React.ReactNode;
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
31
32
|
* Single item selector with text box input.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PickerLocale } from '../locales';
|
|
3
|
-
import {
|
|
4
|
-
import { FormControlPickerProps, ItemDataType
|
|
3
|
+
import { PickerHandle, PickerToggleProps } from '../internals/Picker';
|
|
4
|
+
import { FormControlPickerProps, ItemDataType } from '../internals/types';
|
|
5
5
|
import type { MultiCascadeTreeProps } from '../MultiCascadeTree';
|
|
6
|
-
export interface MultiCascaderProps<T
|
|
6
|
+
export interface MultiCascaderProps<T = any> extends FormControlPickerProps<T[], PickerLocale, ItemDataType<T>, T>, MultiCascadeTreeProps<T, T[], PickerLocale>, Pick<PickerToggleProps, 'label' | 'caretAs' | 'loading'> {
|
|
7
7
|
/**
|
|
8
8
|
* A picker that can be counted
|
|
9
9
|
*/
|
|
@@ -62,9 +62,16 @@ export interface MultiCascaderProps<T extends DataItemValue = any> extends FormC
|
|
|
62
62
|
*/
|
|
63
63
|
onClean?: (event: React.SyntheticEvent) => void;
|
|
64
64
|
}
|
|
65
|
+
export interface MultiCascaderComponent {
|
|
66
|
+
<T>(props: MultiCascaderProps<T> & {
|
|
67
|
+
ref?: React.Ref<PickerHandle>;
|
|
68
|
+
}): JSX.Element | null;
|
|
69
|
+
displayName?: string;
|
|
70
|
+
propTypes?: React.WeakValidationMap<MultiCascaderProps<any>>;
|
|
71
|
+
}
|
|
65
72
|
/**
|
|
66
73
|
* The `MultiCascader` component is used to select multiple values from cascading options.
|
|
67
74
|
* @see https://rsuitejs.com/components/multi-cascader/
|
|
68
75
|
*/
|
|
69
|
-
declare const MultiCascader:
|
|
76
|
+
declare const MultiCascader: MultiCascaderComponent;
|
|
70
77
|
export default MultiCascader;
|
|
@@ -25,9 +25,9 @@ export interface SelectProps<T> {
|
|
|
25
25
|
/** Custom render menu group */
|
|
26
26
|
renderMenuGroup?: (title: React.ReactNode, item: ItemDataType) => React.ReactNode;
|
|
27
27
|
/** Custom render selected items */
|
|
28
|
-
renderValue?: (value: T, item: ItemDataType
|
|
28
|
+
renderValue?: (value: T, item: ItemDataType<T>, selectedElement: React.ReactNode) => React.ReactNode;
|
|
29
29
|
/** Called when the option is selected */
|
|
30
|
-
onSelect?: (value: any, item: ItemDataType
|
|
30
|
+
onSelect?: (value: any, item: ItemDataType<T>, event: React.SyntheticEvent) => void;
|
|
31
31
|
/** Called after clicking the group title */
|
|
32
32
|
onGroupTitleClick?: (event: React.SyntheticEvent) => void;
|
|
33
33
|
/** Called when searching */
|
package/esm/TagPicker/index.d.ts
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { InputPickerProps } from '../InputPicker/InputPicker';
|
|
3
3
|
import { TagOnlyProps } from '../InputPicker/InputPickerContext';
|
|
4
|
+
import type { ItemDataType } from '../internals/types';
|
|
4
5
|
import type { PickerComponent } from '../internals/Picker/types';
|
|
5
6
|
import type { CheckboxProps } from '../Checkbox';
|
|
6
|
-
export interface TagPickerProps extends InputPickerProps
|
|
7
|
+
export interface TagPickerProps<V = any> extends Omit<InputPickerProps<V>, 'renderValue'>, Partial<TagOnlyProps> {
|
|
7
8
|
/**
|
|
8
9
|
* Custom render checkbox on menu item
|
|
9
10
|
* @version 5.47.0
|
|
10
11
|
**/
|
|
11
12
|
renderMenuItemCheckbox?: (checkboxProps: CheckboxProps) => React.ReactNode;
|
|
13
|
+
/** Custom render selected items */
|
|
14
|
+
renderValue?: (values: V[], items: ItemDataType<V>[], selectedElement: React.ReactNode) => React.ReactNode;
|
|
12
15
|
}
|
|
13
16
|
/**
|
|
14
17
|
* `TagPicker` component enables multi-selection by tags and supports new options.
|
package/esm/TagPicker/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
|
-
var _excluded = ["tagProps", "trigger", "onTagRemove", "renderMenuItemCheckbox"];
|
|
4
|
+
var _excluded = ["tagProps", "trigger", "onTagRemove", "renderMenuItemCheckbox", "renderValue"];
|
|
5
5
|
import React, { useMemo } from 'react';
|
|
6
6
|
import InputPicker from "../InputPicker/InputPicker.js";
|
|
7
7
|
import { TagProvider } from "../InputPicker/InputPickerContext.js";
|
|
@@ -20,6 +20,7 @@ var TagPicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
20
20
|
trigger = _propsWithDefaults$tr === void 0 ? 'Enter' : _propsWithDefaults$tr,
|
|
21
21
|
onTagRemove = propsWithDefaults.onTagRemove,
|
|
22
22
|
renderMenuItemCheckbox = propsWithDefaults.renderMenuItemCheckbox,
|
|
23
|
+
renderValue = propsWithDefaults.renderValue,
|
|
23
24
|
rest = _objectWithoutPropertiesLoose(propsWithDefaults, _excluded);
|
|
24
25
|
var contextValue = useMemo(function () {
|
|
25
26
|
return {
|
|
@@ -32,7 +33,9 @@ var TagPicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
32
33
|
}, [onTagRemove, renderMenuItemCheckbox, tagProps, trigger]);
|
|
33
34
|
return /*#__PURE__*/React.createElement(TagProvider, {
|
|
34
35
|
value: contextValue
|
|
35
|
-
}, /*#__PURE__*/React.createElement(InputPicker, _extends({
|
|
36
|
+
}, /*#__PURE__*/React.createElement(InputPicker, _extends({
|
|
37
|
+
renderValue: renderValue
|
|
38
|
+
}, rest, {
|
|
36
39
|
ref: ref
|
|
37
40
|
})));
|
|
38
41
|
});
|
|
@@ -29,7 +29,10 @@ export default function Menubar(_ref) {
|
|
|
29
29
|
if (isFocusEntering(event) &&
|
|
30
30
|
// Skip if focus is moving to a focusable element within this menu
|
|
31
31
|
!(event.target !== event.currentTarget && isFocusableElement(event.target))) {
|
|
32
|
-
|
|
32
|
+
var disabled = event.target.getAttribute('aria-disabled');
|
|
33
|
+
|
|
34
|
+
// Skip if the item is disabled
|
|
35
|
+
if (activeItemIndex === null && disabled !== 'true') {
|
|
33
36
|
dispatch({
|
|
34
37
|
type: MenuActionTypes.MoveFocus,
|
|
35
38
|
to: MoveFocusTo.First
|
|
@@ -179,7 +179,7 @@ export interface SVGIcon {
|
|
|
179
179
|
id: string;
|
|
180
180
|
}
|
|
181
181
|
export interface ItemDataType<T = number | string> extends Record<string, any> {
|
|
182
|
-
label?:
|
|
182
|
+
label?: React.ReactNode;
|
|
183
183
|
value?: T;
|
|
184
184
|
groupBy?: string;
|
|
185
185
|
parent?: ItemDataType<T>;
|
package/esm/locales/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export { default as frFR } from './fr_FR';
|
|
|
25
25
|
export { default as jaJP } from './ja_JP';
|
|
26
26
|
export { default as neNP } from './ne_NP';
|
|
27
27
|
export { default as csCZ } from './cs_CZ';
|
|
28
|
+
export { default as plPL } from './pl_PL';
|
|
28
29
|
type PickKeys<T> = {
|
|
29
30
|
[keys in keyof T]?: T[keys];
|
|
30
31
|
};
|
package/esm/locales/index.js
CHANGED
|
@@ -23,4 +23,5 @@ export { default as faIR } from "./fa_IR.js";
|
|
|
23
23
|
export { default as frFR } from "./fr_FR.js";
|
|
24
24
|
export { default as jaJP } from "./ja_JP.js";
|
|
25
25
|
export { default as neNP } from "./ne_NP.js";
|
|
26
|
-
export { default as csCZ } from "./cs_CZ.js";
|
|
26
|
+
export { default as csCZ } from "./cs_CZ.js";
|
|
27
|
+
export { default as plPL } from "./pl_PL.js";
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
code: string;
|
|
3
|
+
common: {
|
|
4
|
+
loading: string;
|
|
5
|
+
emptyMessage: string;
|
|
6
|
+
remove: string;
|
|
7
|
+
clear: string;
|
|
8
|
+
};
|
|
9
|
+
Plaintext: {
|
|
10
|
+
unfilled: string;
|
|
11
|
+
notSelected: string;
|
|
12
|
+
notUploaded: string;
|
|
13
|
+
};
|
|
14
|
+
Pagination: {
|
|
15
|
+
more: string;
|
|
16
|
+
prev: string;
|
|
17
|
+
next: string;
|
|
18
|
+
first: string;
|
|
19
|
+
last: string;
|
|
20
|
+
limit: string;
|
|
21
|
+
total: string;
|
|
22
|
+
skip: string;
|
|
23
|
+
};
|
|
24
|
+
DateTimeFormats: {
|
|
25
|
+
sunday: string;
|
|
26
|
+
monday: string;
|
|
27
|
+
tuesday: string;
|
|
28
|
+
wednesday: string;
|
|
29
|
+
thursday: string;
|
|
30
|
+
friday: string;
|
|
31
|
+
saturday: string;
|
|
32
|
+
ok: string;
|
|
33
|
+
today: string;
|
|
34
|
+
yesterday: string;
|
|
35
|
+
now: string;
|
|
36
|
+
hours: string;
|
|
37
|
+
minutes: string;
|
|
38
|
+
seconds: string;
|
|
39
|
+
formattedMonthPattern: string;
|
|
40
|
+
formattedDayPattern: string;
|
|
41
|
+
shortDateFormat: string;
|
|
42
|
+
shortTimeFormat: string;
|
|
43
|
+
dateLocale: any;
|
|
44
|
+
};
|
|
45
|
+
Calendar: {
|
|
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
|
+
now: string;
|
|
57
|
+
hours: string;
|
|
58
|
+
minutes: string;
|
|
59
|
+
seconds: string;
|
|
60
|
+
formattedMonthPattern: string;
|
|
61
|
+
formattedDayPattern: string;
|
|
62
|
+
shortDateFormat: string;
|
|
63
|
+
shortTimeFormat: string;
|
|
64
|
+
dateLocale: any;
|
|
65
|
+
};
|
|
66
|
+
DatePicker: {
|
|
67
|
+
sunday: string;
|
|
68
|
+
monday: string;
|
|
69
|
+
tuesday: string;
|
|
70
|
+
wednesday: string;
|
|
71
|
+
thursday: string;
|
|
72
|
+
friday: string;
|
|
73
|
+
saturday: string;
|
|
74
|
+
ok: string;
|
|
75
|
+
today: string;
|
|
76
|
+
yesterday: string;
|
|
77
|
+
now: string;
|
|
78
|
+
hours: string;
|
|
79
|
+
minutes: string;
|
|
80
|
+
seconds: string;
|
|
81
|
+
formattedMonthPattern: string;
|
|
82
|
+
formattedDayPattern: string;
|
|
83
|
+
shortDateFormat: string;
|
|
84
|
+
shortTimeFormat: string;
|
|
85
|
+
dateLocale: any;
|
|
86
|
+
};
|
|
87
|
+
DateRangePicker: {
|
|
88
|
+
last7Days: string;
|
|
89
|
+
sunday: string;
|
|
90
|
+
monday: string;
|
|
91
|
+
tuesday: string;
|
|
92
|
+
wednesday: string;
|
|
93
|
+
thursday: string;
|
|
94
|
+
friday: string;
|
|
95
|
+
saturday: string;
|
|
96
|
+
ok: string;
|
|
97
|
+
today: string;
|
|
98
|
+
yesterday: string;
|
|
99
|
+
now: string;
|
|
100
|
+
hours: string;
|
|
101
|
+
minutes: string;
|
|
102
|
+
seconds: string;
|
|
103
|
+
formattedMonthPattern: string;
|
|
104
|
+
formattedDayPattern: string;
|
|
105
|
+
shortDateFormat: string;
|
|
106
|
+
shortTimeFormat: string;
|
|
107
|
+
dateLocale: any;
|
|
108
|
+
};
|
|
109
|
+
Combobox: {
|
|
110
|
+
noResultsText: string;
|
|
111
|
+
placeholder: string;
|
|
112
|
+
searchPlaceholder: string;
|
|
113
|
+
checkAll: string;
|
|
114
|
+
};
|
|
115
|
+
InputPicker: {
|
|
116
|
+
newItem: string;
|
|
117
|
+
createOption: string;
|
|
118
|
+
noResultsText: string;
|
|
119
|
+
placeholder: string;
|
|
120
|
+
searchPlaceholder: string;
|
|
121
|
+
checkAll: string;
|
|
122
|
+
};
|
|
123
|
+
TagPicker: {
|
|
124
|
+
newItem: string;
|
|
125
|
+
createOption: string;
|
|
126
|
+
noResultsText: string;
|
|
127
|
+
placeholder: string;
|
|
128
|
+
searchPlaceholder: string;
|
|
129
|
+
checkAll: string;
|
|
130
|
+
};
|
|
131
|
+
Uploader: {
|
|
132
|
+
inited: string;
|
|
133
|
+
progress: string;
|
|
134
|
+
error: string;
|
|
135
|
+
complete: string;
|
|
136
|
+
emptyFile: string;
|
|
137
|
+
upload: string;
|
|
138
|
+
removeFile: string;
|
|
139
|
+
};
|
|
140
|
+
CloseButton: {
|
|
141
|
+
closeLabel: string;
|
|
142
|
+
};
|
|
143
|
+
Breadcrumb: {
|
|
144
|
+
expandText: string;
|
|
145
|
+
};
|
|
146
|
+
Toggle: {
|
|
147
|
+
on: string;
|
|
148
|
+
off: string;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
export default _default;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
+
import pl from 'date-fns/locale/pl';
|
|
4
|
+
var DateTimeFormats = {
|
|
5
|
+
sunday: 'Ndz',
|
|
6
|
+
monday: 'Pon',
|
|
7
|
+
tuesday: 'Wt',
|
|
8
|
+
wednesday: 'Śr',
|
|
9
|
+
thursday: 'Czw',
|
|
10
|
+
friday: 'Pt',
|
|
11
|
+
saturday: 'Sob',
|
|
12
|
+
ok: 'OK',
|
|
13
|
+
today: 'Dzisiaj',
|
|
14
|
+
yesterday: 'Wczoraj',
|
|
15
|
+
now: 'Teraz',
|
|
16
|
+
hours: 'Godziny',
|
|
17
|
+
minutes: 'Minuty',
|
|
18
|
+
seconds: 'Sekundy',
|
|
19
|
+
formattedMonthPattern: 'MMM, yyyy',
|
|
20
|
+
formattedDayPattern: 'dd MMM, yyyy',
|
|
21
|
+
shortDateFormat: 'dd.MM.yyyy',
|
|
22
|
+
shortTimeFormat: 'HH:mm',
|
|
23
|
+
dateLocale: pl
|
|
24
|
+
};
|
|
25
|
+
var Combobox = {
|
|
26
|
+
noResultsText: 'Nie znaleziono',
|
|
27
|
+
placeholder: 'Wybierz',
|
|
28
|
+
searchPlaceholder: 'Szukaj',
|
|
29
|
+
checkAll: 'Wszystkie'
|
|
30
|
+
};
|
|
31
|
+
var CreatableComboBox = _extends({}, Combobox, {
|
|
32
|
+
newItem: 'Nowy item',
|
|
33
|
+
createOption: 'Stwórz opcję "{0}"'
|
|
34
|
+
});
|
|
35
|
+
export default {
|
|
36
|
+
code: 'pl-PL',
|
|
37
|
+
common: {
|
|
38
|
+
loading: 'Ładowanie...',
|
|
39
|
+
emptyMessage: 'Nie znaleziono',
|
|
40
|
+
remove: 'Usuń',
|
|
41
|
+
clear: 'Wyczyść'
|
|
42
|
+
},
|
|
43
|
+
Plaintext: {
|
|
44
|
+
unfilled: 'Nie wypełnione',
|
|
45
|
+
notSelected: 'Nie wybrane',
|
|
46
|
+
notUploaded: 'Nie wysłane'
|
|
47
|
+
},
|
|
48
|
+
Pagination: {
|
|
49
|
+
more: 'Więcej',
|
|
50
|
+
prev: 'Poprzednie',
|
|
51
|
+
next: 'Następne',
|
|
52
|
+
first: 'Pierwsze',
|
|
53
|
+
last: 'Ostatnie',
|
|
54
|
+
limit: '{0} / stron',
|
|
55
|
+
total: 'Wierszy: {0}',
|
|
56
|
+
skip: 'Omiń{0}'
|
|
57
|
+
},
|
|
58
|
+
DateTimeFormats: DateTimeFormats,
|
|
59
|
+
Calendar: DateTimeFormats,
|
|
60
|
+
DatePicker: DateTimeFormats,
|
|
61
|
+
DateRangePicker: _extends({}, DateTimeFormats, {
|
|
62
|
+
last7Days: 'Ostatnie 7 dni'
|
|
63
|
+
}),
|
|
64
|
+
Combobox: Combobox,
|
|
65
|
+
InputPicker: CreatableComboBox,
|
|
66
|
+
TagPicker: CreatableComboBox,
|
|
67
|
+
Uploader: {
|
|
68
|
+
inited: 'Początkowy',
|
|
69
|
+
progress: 'Wysyłanie',
|
|
70
|
+
error: 'Błąd',
|
|
71
|
+
complete: 'Ukończone',
|
|
72
|
+
emptyFile: 'Pusty',
|
|
73
|
+
upload: 'Wyślij',
|
|
74
|
+
removeFile: 'Usuń plik'
|
|
75
|
+
},
|
|
76
|
+
CloseButton: {
|
|
77
|
+
closeLabel: 'Zamknij'
|
|
78
|
+
},
|
|
79
|
+
Breadcrumb: {
|
|
80
|
+
expandText: 'Pokaż ścieżkę'
|
|
81
|
+
},
|
|
82
|
+
Toggle: {
|
|
83
|
+
on: 'Otwórz',
|
|
84
|
+
off: 'Zamknij'
|
|
85
|
+
}
|
|
86
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rsuite",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.78.0",
|
|
4
4
|
"description": "A suite of react components",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -28,18 +28,18 @@
|
|
|
28
28
|
"@babel/runtime": "^7.20.1",
|
|
29
29
|
"@juggle/resize-observer": "^3.4.0",
|
|
30
30
|
"@rsuite/icons": "^1.3.0",
|
|
31
|
-
"@types/lodash": "^4.
|
|
31
|
+
"@types/lodash": "^4.17.15",
|
|
32
32
|
"@types/prop-types": "^15.7.5",
|
|
33
33
|
"@types/react-window": "^1.8.5",
|
|
34
34
|
"classnames": "^2.3.1",
|
|
35
35
|
"date-fns": "^2.29.3",
|
|
36
36
|
"dom-lib": "^3.3.1",
|
|
37
|
-
"lodash": "^4.17.
|
|
37
|
+
"lodash": "^4.17.21",
|
|
38
38
|
"prop-types": "^15.8.1",
|
|
39
39
|
"react-use-set": "^1.0.0",
|
|
40
40
|
"react-window": "^1.8.8",
|
|
41
41
|
"rsuite-table": "^5.19.1",
|
|
42
|
-
"schema-typed": "^2.
|
|
42
|
+
"schema-typed": "^2.3.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=16.8.0",
|