rsuite 5.24.1 → 5.26.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/Breadcrumb/styles/index.less +4 -0
- package/Button/styles/index.less +14 -10
- package/CHANGELOG.md +30 -0
- package/Picker/styles/index.less +5 -8
- package/Picker/styles/mixin.less +3 -20
- package/cjs/@types/global.d.ts +6 -0
- package/cjs/Breadcrumb/BreadcrumbItem.js +1 -1
- package/cjs/Calendar/MonthDropdown.js +2 -4
- package/cjs/Calendar/useCalendarDate.d.ts +1 -1
- package/cjs/Calendar/useCalendarDate.js +11 -5
- package/cjs/CustomProvider/CustomProvider.d.ts +2 -0
- package/cjs/CustomProvider/CustomProvider.js +5 -3
- package/cjs/DatePicker/DatePicker.js +1 -1
- package/cjs/FormControl/FormControl.js +15 -4
- package/cjs/InputPicker/InputPicker.js +8 -2
- package/cjs/Navbar/NavbarDropdown.js +7 -4
- package/cjs/Overlay/OverlayTrigger.js +4 -0
- package/cjs/Picker/PickerToggle.js +1 -1
- package/cjs/Picker/PickerToggleTrigger.js +6 -7
- package/cjs/Ripple/Ripple.js +8 -0
- package/cjs/TagInput/index.d.ts +4 -2
- package/cjs/locales/index.d.ts +1 -0
- package/cjs/locales/index.js +5 -1
- package/cjs/locales/nl_NL.d.ts +105 -0
- package/cjs/locales/nl_NL.js +84 -0
- package/cjs/utils/useCustom.js +3 -1
- package/dist/rsuite-rtl.css +132 -168
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +132 -168
- package/dist/rsuite.js +24 -14
- 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/@types/global.d.ts +6 -0
- package/esm/Breadcrumb/BreadcrumbItem.js +1 -1
- package/esm/Calendar/MonthDropdown.js +2 -4
- package/esm/Calendar/useCalendarDate.d.ts +1 -1
- package/esm/Calendar/useCalendarDate.js +11 -5
- package/esm/CustomProvider/CustomProvider.d.ts +2 -0
- package/esm/CustomProvider/CustomProvider.js +5 -3
- package/esm/DatePicker/DatePicker.js +1 -1
- package/esm/FormControl/FormControl.js +18 -4
- package/esm/InputPicker/InputPicker.js +8 -2
- package/esm/Navbar/NavbarDropdown.js +7 -4
- package/esm/Overlay/OverlayTrigger.js +4 -0
- package/esm/Picker/PickerToggle.js +1 -1
- package/esm/Picker/PickerToggleTrigger.js +7 -5
- package/esm/Ripple/Ripple.js +9 -1
- package/esm/TagInput/index.d.ts +4 -2
- package/esm/locales/index.d.ts +1 -0
- package/esm/locales/index.js +1 -0
- package/esm/locales/nl_NL.d.ts +105 -0
- package/esm/locales/nl_NL.js +74 -0
- package/esm/utils/useCustom.js +3 -1
- package/locales/nl_NL/package.json +7 -0
- package/package.json +1 -1
- package/styles/color-modes/dark.less +5 -2
- package/styles/color-modes/high-contrast.less +3 -0
- package/styles/color-modes/light.less +4 -1
package/esm/@types/global.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import SafeAnchor from '../SafeAnchor';
|
|
|
6
6
|
import { useClassNames } from '../utils';
|
|
7
7
|
var BreadcrumbItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
8
8
|
var _props$as = props.as,
|
|
9
|
-
Component = _props$as === void 0 ? SafeAnchor : _props$as,
|
|
9
|
+
Component = _props$as === void 0 ? props.href ? SafeAnchor : 'span' : _props$as,
|
|
10
10
|
href = props.href,
|
|
11
11
|
_props$classPrefix = props.classPrefix,
|
|
12
12
|
classPrefix = _props$classPrefix === void 0 ? 'breadcrumb-item' : _props$classPrefix,
|
|
@@ -57,8 +57,7 @@ var MonthDropdown = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
57
57
|
|
|
58
58
|
return false;
|
|
59
59
|
}, [disabledMonth]);
|
|
60
|
-
|
|
61
|
-
var rowRenderer = function rowRenderer(_ref) {
|
|
60
|
+
var rowRenderer = useCallback(function (_ref) {
|
|
62
61
|
var index = _ref.index,
|
|
63
62
|
style = _ref.style;
|
|
64
63
|
var selectedMonth = DateUtils.getMonth(date);
|
|
@@ -91,8 +90,7 @@ var MonthDropdown = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
91
90
|
year: year
|
|
92
91
|
});
|
|
93
92
|
})));
|
|
94
|
-
};
|
|
95
|
-
|
|
93
|
+
}, [date, isMonthDisabled, merge, prefix, rowCount, startYear]);
|
|
96
94
|
var classes = merge(className, withClassPrefix(), {
|
|
97
95
|
show: show
|
|
98
96
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const useCalendarDate: (value: Date | null | undefined, defaultDate: Date | undefined) => {
|
|
2
2
|
calendarDate: Date;
|
|
3
3
|
setCalendarDate: (date: Date | undefined) => void;
|
|
4
|
-
resetCalendarDate: () => void;
|
|
4
|
+
resetCalendarDate: (nextValue?: any) => void;
|
|
5
5
|
};
|
|
6
6
|
export default useCalendarDate;
|
|
@@ -15,19 +15,25 @@ var useCalendarDate = function useCalendarDate(value, defaultDate) {
|
|
|
15
15
|
setValue(date);
|
|
16
16
|
}
|
|
17
17
|
}, [calendarDate]);
|
|
18
|
-
var resetCalendarDate = useCallback(function () {
|
|
19
|
-
var _ref2;
|
|
18
|
+
var resetCalendarDate = useCallback(function (nextValue) {
|
|
19
|
+
var _ref2, _nextValue;
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
if (nextValue === void 0) {
|
|
22
|
+
nextValue = value;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
setValue((_ref2 = (_nextValue = nextValue) !== null && _nextValue !== void 0 ? _nextValue : defaultDate) !== null && _ref2 !== void 0 ? _ref2 : new Date());
|
|
22
26
|
}, [defaultDate, value]);
|
|
23
27
|
useUpdateEffect(function () {
|
|
24
28
|
var _valueRef$current;
|
|
25
29
|
|
|
26
30
|
if ((value === null || value === void 0 ? void 0 : value.valueOf()) !== ((_valueRef$current = valueRef.current) === null || _valueRef$current === void 0 ? void 0 : _valueRef$current.valueOf())) {
|
|
27
|
-
|
|
31
|
+
var _ref3;
|
|
32
|
+
|
|
33
|
+
setCalendarDate((_ref3 = value !== null && value !== void 0 ? value : defaultDate) !== null && _ref3 !== void 0 ? _ref3 : new Date());
|
|
28
34
|
valueRef.current = value;
|
|
29
35
|
}
|
|
30
|
-
}, [value]);
|
|
36
|
+
}, [value, defaultDate]);
|
|
31
37
|
return {
|
|
32
38
|
calendarDate: calendarDate,
|
|
33
39
|
setCalendarDate: setCalendarDate,
|
|
@@ -38,6 +38,8 @@ export interface CustomValue<T = Locale> {
|
|
|
38
38
|
* A Map of toast containers
|
|
39
39
|
*/
|
|
40
40
|
toasters?: React.MutableRefObject<Map<string, ToastContainerInstance>>;
|
|
41
|
+
/** If true, the ripple effect is disabled. Affected components include: Button, Nav.Item, Pagination. */
|
|
42
|
+
disableRipple?: boolean;
|
|
41
43
|
}
|
|
42
44
|
export interface CustomProviderProps<T = Locale> extends Partial<CustomValue<T>> {
|
|
43
45
|
/** Supported themes */
|
|
@@ -14,7 +14,8 @@ var CustomProvider = function CustomProvider(props) {
|
|
|
14
14
|
classPrefix = _props$classPrefix === void 0 ? getClassNamePrefix() : _props$classPrefix,
|
|
15
15
|
theme = props.theme,
|
|
16
16
|
container = props.toastContainer,
|
|
17
|
-
|
|
17
|
+
disableRipple = props.disableRipple,
|
|
18
|
+
rest = _objectWithoutPropertiesLoose(props, ["children", "classPrefix", "theme", "toastContainer", "disableRipple"]);
|
|
18
19
|
|
|
19
20
|
var toasters = React.useRef(new Map());
|
|
20
21
|
|
|
@@ -28,9 +29,10 @@ var CustomProvider = function CustomProvider(props) {
|
|
|
28
29
|
return _extends({
|
|
29
30
|
classPrefix: classPrefix,
|
|
30
31
|
theme: theme,
|
|
31
|
-
toasters: toasters
|
|
32
|
+
toasters: toasters,
|
|
33
|
+
disableRipple: disableRipple
|
|
32
34
|
}, rest);
|
|
33
|
-
}, [classPrefix, theme, rest]);
|
|
35
|
+
}, [classPrefix, theme, disableRipple, rest]);
|
|
34
36
|
useEffect(function () {
|
|
35
37
|
if (canUseDOM && theme) {
|
|
36
38
|
addClass(document.body, prefix(classPrefix, "theme-" + theme)); // Remove the className that will cause style conflicts
|
|
@@ -192,7 +192,7 @@ var DatePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
192
192
|
|
|
193
193
|
var handleClean = useCallback(function (event) {
|
|
194
194
|
updateValue(event, null);
|
|
195
|
-
resetCalendarDate();
|
|
195
|
+
resetCalendarDate(null);
|
|
196
196
|
}, [resetCalendarDate, updateValue]);
|
|
197
197
|
/**
|
|
198
198
|
* Handle keyboard events.
|
|
@@ -14,7 +14,14 @@ import FormContext, { FormValueContext } from '../Form/FormContext';
|
|
|
14
14
|
import { FormGroupContext } from '../FormGroup/FormGroup';
|
|
15
15
|
import { useWillUnmount } from '../utils';
|
|
16
16
|
import useRegisterModel from './useRegisterModel';
|
|
17
|
+
import Toggle from '../Toggle';
|
|
18
|
+
/**
|
|
19
|
+
* Props that FormControl passes to its accepter
|
|
20
|
+
*/
|
|
21
|
+
|
|
17
22
|
var FormControl = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
23
|
+
var _accepterProps;
|
|
24
|
+
|
|
18
25
|
var _useContext = useContext(FormContext),
|
|
19
26
|
readOnlyContext = _useContext.readOnly,
|
|
20
27
|
plaintextContext = _useContext.plaintext,
|
|
@@ -139,6 +146,15 @@ var FormControl = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
139
146
|
var ariaDescribedby = controlId ? controlId + "-help-text" : null;
|
|
140
147
|
var fieldHasError = Boolean(messageNode);
|
|
141
148
|
var ariaErrormessage = fieldHasError && controlId ? controlId + "-error-message" : undefined;
|
|
149
|
+
var valueKey = 'value';
|
|
150
|
+
var defaultValueKey = 'defaultValue'; // Toggle component is a special case that uses `checked` and `defaultChecked` instead of `value` and `defaultValue` props.
|
|
151
|
+
|
|
152
|
+
if (AccepterComponent === Toggle) {
|
|
153
|
+
valueKey = 'checked';
|
|
154
|
+
defaultValueKey = 'defaultChecked';
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
var accepterProps = (_accepterProps = {}, _accepterProps[valueKey] = val, _accepterProps[defaultValueKey] = defaultValue !== null && defaultValue !== void 0 ? defaultValue : formDefaultValue[name], _accepterProps);
|
|
142
158
|
return /*#__PURE__*/React.createElement(Component, {
|
|
143
159
|
className: classes,
|
|
144
160
|
ref: ref
|
|
@@ -148,15 +164,13 @@ var FormControl = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
148
164
|
"aria-describedby": ariaDescribedby,
|
|
149
165
|
"aria-invalid": fieldHasError || undefined,
|
|
150
166
|
"aria-errormessage": ariaErrormessage
|
|
151
|
-
}, rest, {
|
|
167
|
+
}, rest, accepterProps, {
|
|
152
168
|
readOnly: readOnly,
|
|
153
169
|
plaintext: plaintext,
|
|
154
170
|
disabled: disabled,
|
|
155
171
|
name: name,
|
|
156
172
|
onChange: handleFieldChange,
|
|
157
|
-
onBlur: handleFieldBlur
|
|
158
|
-
defaultValue: defaultValue !== null && defaultValue !== void 0 ? defaultValue : formDefaultValue[name],
|
|
159
|
-
value: val
|
|
173
|
+
onBlur: handleFieldBlur
|
|
160
174
|
})), /*#__PURE__*/React.createElement(FormErrorMessage, {
|
|
161
175
|
id: controlId + "-error-message",
|
|
162
176
|
role: "alert",
|
|
@@ -437,9 +437,15 @@ var InputPicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
437
437
|
setValue(null);
|
|
438
438
|
setFocusItemValue(null);
|
|
439
439
|
setSearchKeyword('');
|
|
440
|
-
|
|
440
|
+
|
|
441
|
+
if (multi) {
|
|
442
|
+
handleChange([], event);
|
|
443
|
+
} else {
|
|
444
|
+
handleChange(null, event);
|
|
445
|
+
}
|
|
446
|
+
|
|
441
447
|
onClean === null || onClean === void 0 ? void 0 : onClean(event);
|
|
442
|
-
}, [disabled, searchKeyword,
|
|
448
|
+
}, [disabled, searchKeyword, setValue, setFocusItemValue, setSearchKeyword, multi, onClean, handleChange]);
|
|
443
449
|
var events = {
|
|
444
450
|
onMenuPressBackspace: multi ? removeLastItem : handleClean,
|
|
445
451
|
onMenuKeyDown: onKeyDown,
|
|
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
3
|
import React, { useContext } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
|
+
import castArray from 'lodash/castArray';
|
|
5
6
|
import omit from 'lodash/omit';
|
|
6
7
|
import { mergeRefs, PLACEMENT_8, placementPolyfill, useClassNames } from '../utils';
|
|
7
8
|
import deprecatePropType from '../utils/deprecatePropType';
|
|
@@ -52,7 +53,7 @@ var NavbarDropdown = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
52
53
|
mergeMenuClassName = _useClassNames2.merge;
|
|
53
54
|
|
|
54
55
|
return /*#__PURE__*/React.createElement(Disclosure, {
|
|
55
|
-
trigger: trigger,
|
|
56
|
+
trigger: castArray(trigger),
|
|
56
57
|
hideOnClickOutside: true,
|
|
57
58
|
onToggle: function onToggle(open) {
|
|
58
59
|
_onToggle === null || _onToggle === void 0 ? void 0 : _onToggle(open);
|
|
@@ -66,13 +67,15 @@ var NavbarDropdown = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
66
67
|
}, function (_ref, containerRef) {
|
|
67
68
|
var _withClassPrefix;
|
|
68
69
|
|
|
69
|
-
var open = _ref.open
|
|
70
|
+
var open = _ref.open,
|
|
71
|
+
props = _objectWithoutPropertiesLoose(_ref, ["open"]);
|
|
72
|
+
|
|
70
73
|
var classes = merge(className, withClassPrefix((_withClassPrefix = {}, _withClassPrefix["placement-" + kebabCase(placementPolyfill(placement))] = !!placement, _withClassPrefix.disabled = disabled, _withClassPrefix.open = open, _withClassPrefix)));
|
|
71
|
-
return /*#__PURE__*/React.createElement(Component, {
|
|
74
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
72
75
|
ref: mergeRefs(ref, containerRef),
|
|
73
76
|
className: classes,
|
|
74
77
|
style: style
|
|
75
|
-
}, /*#__PURE__*/React.createElement(Disclosure.Button, null, function (buttonProps, buttonRef) {
|
|
78
|
+
}, props), /*#__PURE__*/React.createElement(Disclosure.Button, null, function (buttonProps, buttonRef) {
|
|
76
79
|
return /*#__PURE__*/React.createElement(NavbarDropdownToggle, _extends({
|
|
77
80
|
ref: buttonRef,
|
|
78
81
|
as: toggleAs,
|
|
@@ -372,6 +372,10 @@ var OverlayTrigger = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
372
372
|
} : speaker);
|
|
373
373
|
};
|
|
374
374
|
|
|
375
|
+
if (typeof children === 'object' && children.type === React.Fragment || typeof children === 'string') {
|
|
376
|
+
console.error('[rsuite] The OverlayTrigger component does not accept strings or Fragments as child.');
|
|
377
|
+
}
|
|
378
|
+
|
|
375
379
|
return /*#__PURE__*/React.createElement(React.Fragment, null, typeof children === 'function' ? children(triggerEvents, triggerRef) : /*#__PURE__*/React.cloneElement(children, _extends({
|
|
376
380
|
ref: triggerRef,
|
|
377
381
|
'aria-describedby': controlId
|
|
@@ -224,7 +224,7 @@ var PickerToggle = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
224
224
|
closeLabel: 'Clear'
|
|
225
225
|
},
|
|
226
226
|
onClick: handleClean
|
|
227
|
-
}), caret && /*#__PURE__*/React.createElement(Caret, {
|
|
227
|
+
}), caret && !showCleanButton && /*#__PURE__*/React.createElement(Caret, {
|
|
228
228
|
className: prefix(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["caret"])))
|
|
229
229
|
})));
|
|
230
230
|
});
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
-
import React
|
|
3
|
+
import React from 'react';
|
|
4
4
|
import pick from 'lodash/pick';
|
|
5
5
|
import OverlayTrigger from '../Overlay/OverlayTrigger';
|
|
6
|
-
import { placementPolyfill } from '../utils';
|
|
7
|
-
import { CustomContext } from '../CustomProvider';
|
|
6
|
+
import { placementPolyfill, useCustom } from '../utils';
|
|
8
7
|
export var omitTriggerPropKeys = ['onEntered', 'onExited', 'onEnter', 'onEntering', 'onExit', 'onExiting', 'open', 'defaultOpen', 'onHide', 'container', 'containerPadding', 'preventOverflow'];
|
|
9
8
|
export var pickTriggerPropKeys = [].concat(omitTriggerPropKeys, ['disabled', 'plaintext', 'readOnly', 'loading']);
|
|
10
9
|
var PickerToggleTrigger = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -16,12 +15,15 @@ var PickerToggleTrigger = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
16
15
|
rest = _objectWithoutPropertiesLoose(props, ["pickerProps", "speaker", "placement", "trigger"]);
|
|
17
16
|
|
|
18
17
|
var pickerTriggerProps = pick(pickerProps, pickTriggerPropKeys);
|
|
19
|
-
|
|
18
|
+
|
|
19
|
+
var _useCustom = useCustom(),
|
|
20
|
+
rtl = _useCustom.rtl;
|
|
21
|
+
|
|
20
22
|
return /*#__PURE__*/React.createElement(OverlayTrigger, _extends({}, rest, pickerTriggerProps, {
|
|
21
23
|
disabled: pickerTriggerProps.disabled || pickerTriggerProps.loading,
|
|
22
24
|
ref: ref,
|
|
23
25
|
trigger: trigger,
|
|
24
|
-
placement: placementPolyfill(placement,
|
|
26
|
+
placement: placementPolyfill(placement, rtl),
|
|
25
27
|
speaker: speaker
|
|
26
28
|
}));
|
|
27
29
|
});
|
package/esm/Ripple/Ripple.js
CHANGED
|
@@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
import getOffset from 'dom-lib/getOffset';
|
|
6
6
|
import on from 'dom-lib/on';
|
|
7
7
|
import Transition from '../Animation/Transition';
|
|
8
|
-
import { mergeRefs, useClassNames } from '../utils';
|
|
8
|
+
import { mergeRefs, useClassNames, useCustom } from '../utils';
|
|
9
9
|
|
|
10
10
|
var getPosition = function getPosition(target, event) {
|
|
11
11
|
var offset = getOffset(target);
|
|
@@ -23,6 +23,9 @@ var getPosition = function getPosition(target, event) {
|
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
var Ripple = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
26
|
+
var _useCustom = useCustom(),
|
|
27
|
+
disableRipple = _useCustom.disableRipple;
|
|
28
|
+
|
|
26
29
|
var _props$as = props.as,
|
|
27
30
|
Component = _props$as === void 0 ? 'span' : _props$as,
|
|
28
31
|
className = props.className,
|
|
@@ -72,6 +75,11 @@ var Ripple = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
72
75
|
};
|
|
73
76
|
}
|
|
74
77
|
}, [handleMouseDown]);
|
|
78
|
+
|
|
79
|
+
if (disableRipple) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
|
|
75
83
|
return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
76
84
|
className: classes,
|
|
77
85
|
ref: mergeRefs(triggerRef, ref)
|
package/esm/TagInput/index.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { InputPickerProps, TriggerType } from '../InputPicker/InputPicker';
|
|
2
2
|
import type { PickerComponent } from '../Picker/types';
|
|
3
3
|
import type { TagProps } from '../Tag';
|
|
4
|
-
export interface TagInputProps extends InputPickerProps {
|
|
4
|
+
export interface TagInputProps extends Omit<InputPickerProps<readonly string[]>, 'data'> {
|
|
5
5
|
/** Tag related props. */
|
|
6
6
|
tagProps?: TagProps;
|
|
7
7
|
/**
|
|
8
8
|
* Set the trigger for creating tags. only valid when creatable
|
|
9
|
+
*
|
|
10
|
+
* @todo Declare as readonly array
|
|
9
11
|
*/
|
|
10
|
-
trigger
|
|
12
|
+
trigger?: TriggerType | TriggerType[];
|
|
11
13
|
}
|
|
12
14
|
declare const TagInput: PickerComponent<TagInputProps>;
|
|
13
15
|
export default TagInput;
|
package/esm/locales/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export { default as fiFI } from './fi_FI';
|
|
|
10
10
|
export { default as itIT } from './it_IT';
|
|
11
11
|
export { default as kkKZ } from './kk_KZ';
|
|
12
12
|
export { default as koKR } from './ko_KR';
|
|
13
|
+
export { default as nlNL } from './nl_NL';
|
|
13
14
|
export { default as ptBR } from './pt_BR';
|
|
14
15
|
export { default as ruRU } from './ru_RU';
|
|
15
16
|
export { default as svSE } from './sv_SE';
|
package/esm/locales/index.js
CHANGED
|
@@ -9,6 +9,7 @@ export { default as fiFI } from './fi_FI';
|
|
|
9
9
|
export { default as itIT } from './it_IT';
|
|
10
10
|
export { default as kkKZ } from './kk_KZ';
|
|
11
11
|
export { default as koKR } from './ko_KR';
|
|
12
|
+
export { default as nlNL } from './nl_NL';
|
|
12
13
|
export { default as ptBR } from './pt_BR';
|
|
13
14
|
export { default as ruRU } from './ru_RU';
|
|
14
15
|
export { default as svSE } from './sv_SE';
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
common: {
|
|
3
|
+
loading: string;
|
|
4
|
+
emptyMessage: string;
|
|
5
|
+
};
|
|
6
|
+
Plaintext: {
|
|
7
|
+
unfilled: string;
|
|
8
|
+
notSelected: string;
|
|
9
|
+
notUploaded: string;
|
|
10
|
+
};
|
|
11
|
+
Pagination: {
|
|
12
|
+
more: string;
|
|
13
|
+
prev: string;
|
|
14
|
+
next: string;
|
|
15
|
+
first: string;
|
|
16
|
+
last: string;
|
|
17
|
+
limit: string;
|
|
18
|
+
total: string;
|
|
19
|
+
skip: string;
|
|
20
|
+
};
|
|
21
|
+
Calendar: {
|
|
22
|
+
sunday: string;
|
|
23
|
+
monday: string;
|
|
24
|
+
tuesday: string;
|
|
25
|
+
wednesday: string;
|
|
26
|
+
thursday: string;
|
|
27
|
+
friday: string;
|
|
28
|
+
saturday: string;
|
|
29
|
+
ok: string;
|
|
30
|
+
today: string;
|
|
31
|
+
yesterday: string;
|
|
32
|
+
hours: string;
|
|
33
|
+
minutes: string;
|
|
34
|
+
seconds: string;
|
|
35
|
+
formattedMonthPattern: string;
|
|
36
|
+
formattedDayPattern: string;
|
|
37
|
+
dateLocale: any;
|
|
38
|
+
};
|
|
39
|
+
DatePicker: {
|
|
40
|
+
sunday: string;
|
|
41
|
+
monday: string;
|
|
42
|
+
tuesday: string;
|
|
43
|
+
wednesday: string;
|
|
44
|
+
thursday: string;
|
|
45
|
+
friday: string;
|
|
46
|
+
saturday: string;
|
|
47
|
+
ok: string;
|
|
48
|
+
today: string;
|
|
49
|
+
yesterday: string;
|
|
50
|
+
hours: string;
|
|
51
|
+
minutes: string;
|
|
52
|
+
seconds: string;
|
|
53
|
+
formattedMonthPattern: string;
|
|
54
|
+
formattedDayPattern: string;
|
|
55
|
+
dateLocale: any;
|
|
56
|
+
};
|
|
57
|
+
DateRangePicker: {
|
|
58
|
+
last7Days: string;
|
|
59
|
+
sunday: string;
|
|
60
|
+
monday: string;
|
|
61
|
+
tuesday: string;
|
|
62
|
+
wednesday: string;
|
|
63
|
+
thursday: string;
|
|
64
|
+
friday: string;
|
|
65
|
+
saturday: string;
|
|
66
|
+
ok: string;
|
|
67
|
+
today: string;
|
|
68
|
+
yesterday: string;
|
|
69
|
+
hours: string;
|
|
70
|
+
minutes: string;
|
|
71
|
+
seconds: string;
|
|
72
|
+
formattedMonthPattern: string;
|
|
73
|
+
formattedDayPattern: string;
|
|
74
|
+
dateLocale: any;
|
|
75
|
+
};
|
|
76
|
+
Picker: {
|
|
77
|
+
noResultsText: string;
|
|
78
|
+
placeholder: string;
|
|
79
|
+
searchPlaceholder: string;
|
|
80
|
+
checkAll: string;
|
|
81
|
+
};
|
|
82
|
+
InputPicker: {
|
|
83
|
+
newItem: string;
|
|
84
|
+
createOption: string;
|
|
85
|
+
};
|
|
86
|
+
Uploader: {
|
|
87
|
+
inited: string;
|
|
88
|
+
progress: string;
|
|
89
|
+
error: string;
|
|
90
|
+
complete: string;
|
|
91
|
+
emptyFile: string;
|
|
92
|
+
upload: string;
|
|
93
|
+
};
|
|
94
|
+
CloseButton: {
|
|
95
|
+
closeLabel: string;
|
|
96
|
+
};
|
|
97
|
+
Breadcrumb: {
|
|
98
|
+
expandText: string;
|
|
99
|
+
};
|
|
100
|
+
Toggle: {
|
|
101
|
+
on: string;
|
|
102
|
+
off: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
export default _default;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import nl from 'date-fns/locale/nl';
|
|
3
|
+
var Calendar = {
|
|
4
|
+
sunday: 'Zo',
|
|
5
|
+
monday: 'Ma',
|
|
6
|
+
tuesday: 'Di',
|
|
7
|
+
wednesday: 'Wo',
|
|
8
|
+
thursday: 'Do',
|
|
9
|
+
friday: 'Vr',
|
|
10
|
+
saturday: 'Za',
|
|
11
|
+
ok: 'Oke',
|
|
12
|
+
today: 'Vandaag',
|
|
13
|
+
yesterday: 'Gisteren',
|
|
14
|
+
hours: 'Uren',
|
|
15
|
+
minutes: 'Mimnuten',
|
|
16
|
+
seconds: 'Seconden',
|
|
17
|
+
formattedMonthPattern: 'MMM, yyyy',
|
|
18
|
+
formattedDayPattern: 'dd MMM, yyyy',
|
|
19
|
+
dateLocale: nl
|
|
20
|
+
};
|
|
21
|
+
export default {
|
|
22
|
+
common: {
|
|
23
|
+
loading: 'Laden...',
|
|
24
|
+
emptyMessage: 'Geen data gevonden'
|
|
25
|
+
},
|
|
26
|
+
Plaintext: {
|
|
27
|
+
unfilled: 'Ongevuld',
|
|
28
|
+
notSelected: 'Niet geselecteerd',
|
|
29
|
+
notUploaded: 'Niet geupload'
|
|
30
|
+
},
|
|
31
|
+
Pagination: {
|
|
32
|
+
more: 'Meer',
|
|
33
|
+
prev: 'Vorige',
|
|
34
|
+
next: 'Volgende',
|
|
35
|
+
first: 'Eerste',
|
|
36
|
+
last: 'Laatste',
|
|
37
|
+
limit: '{0} / pagina',
|
|
38
|
+
total: 'Totaal Rijen: {0}',
|
|
39
|
+
skip: 'Ga naar{0}'
|
|
40
|
+
},
|
|
41
|
+
Calendar: Calendar,
|
|
42
|
+
DatePicker: _extends({}, Calendar),
|
|
43
|
+
DateRangePicker: _extends({}, Calendar, {
|
|
44
|
+
last7Days: 'Laatste 7 Dagen'
|
|
45
|
+
}),
|
|
46
|
+
Picker: {
|
|
47
|
+
noResultsText: 'Geen resultaten gevonden',
|
|
48
|
+
placeholder: 'Selecteren',
|
|
49
|
+
searchPlaceholder: 'Zoeken',
|
|
50
|
+
checkAll: 'Alles'
|
|
51
|
+
},
|
|
52
|
+
InputPicker: {
|
|
53
|
+
newItem: 'Nieuw item',
|
|
54
|
+
createOption: 'Creëer optie "{0}"'
|
|
55
|
+
},
|
|
56
|
+
Uploader: {
|
|
57
|
+
inited: 'Gestart',
|
|
58
|
+
progress: 'Uploaden',
|
|
59
|
+
error: 'Error',
|
|
60
|
+
complete: 'Voltooid',
|
|
61
|
+
emptyFile: 'Leeg',
|
|
62
|
+
upload: 'Upload'
|
|
63
|
+
},
|
|
64
|
+
CloseButton: {
|
|
65
|
+
closeLabel: 'Sluiten'
|
|
66
|
+
},
|
|
67
|
+
Breadcrumb: {
|
|
68
|
+
expandText: 'Toon pad'
|
|
69
|
+
},
|
|
70
|
+
Toggle: {
|
|
71
|
+
on: 'Open',
|
|
72
|
+
off: 'Sluit'
|
|
73
|
+
}
|
|
74
|
+
};
|
package/esm/utils/useCustom.js
CHANGED
|
@@ -30,7 +30,8 @@ function useCustom(keys, overrideLocale) {
|
|
|
30
30
|
rtl = _useContext$rtl === void 0 ? getDefaultRTL() : _useContext$rtl,
|
|
31
31
|
formatDate = _useContext.formatDate,
|
|
32
32
|
parseDate = _useContext.parseDate,
|
|
33
|
-
toasters = _useContext.toasters
|
|
33
|
+
toasters = _useContext.toasters,
|
|
34
|
+
disableRipple = _useContext.disableRipple;
|
|
34
35
|
|
|
35
36
|
var componentLocale = _extends({}, locale === null || locale === void 0 ? void 0 : locale.common, typeof keys === 'string' ? locale === null || locale === void 0 ? void 0 : locale[keys] : typeof keys === 'object' ? mergeObject(keys.map(function (key) {
|
|
36
37
|
return locale === null || locale === void 0 ? void 0 : locale[key];
|
|
@@ -59,6 +60,7 @@ function useCustom(keys, overrideLocale) {
|
|
|
59
60
|
locale: componentLocale,
|
|
60
61
|
rtl: rtl,
|
|
61
62
|
toasters: toasters,
|
|
63
|
+
disableRipple: disableRipple,
|
|
62
64
|
formatDate: formatDate || defaultFormatDate,
|
|
63
65
|
parseDate: parseDate || defaultParseDate
|
|
64
66
|
};
|
package/package.json
CHANGED
|
@@ -78,13 +78,13 @@
|
|
|
78
78
|
--rs-btn-default-active-bg: @B300-dark;
|
|
79
79
|
--rs-btn-default-active-text: @B000-dark;
|
|
80
80
|
--rs-btn-default-disabled-bg: @B600-dark;
|
|
81
|
-
--rs-btn-default-disabled-text: @
|
|
81
|
+
--rs-btn-default-disabled-text: @B400-dark;
|
|
82
82
|
--rs-btn-primary-bg: @H700-dark;
|
|
83
83
|
--rs-btn-primary-text: @B000-dark;
|
|
84
84
|
--rs-btn-primary-hover-bg: @H600-dark;
|
|
85
85
|
--rs-btn-primary-active-bg: @H400-dark;
|
|
86
86
|
--rs-btn-subtle-text: @B200-dark;
|
|
87
|
-
--rs-btn-subtle-hover-bg: @
|
|
87
|
+
--rs-btn-subtle-hover-bg: @B500-dark;
|
|
88
88
|
--rs-btn-subtle-hover-text: @B050-dark;
|
|
89
89
|
--rs-btn-subtle-active-bg: @B400-dark;
|
|
90
90
|
--rs-btn-subtle-active-text: @B000-dark;
|
|
@@ -150,6 +150,9 @@
|
|
|
150
150
|
--rs-placeholder: @B600-dark;
|
|
151
151
|
--rs-placeholder-active: lighten(@B600-dark, 5%);
|
|
152
152
|
|
|
153
|
+
// Breadcrumb
|
|
154
|
+
--rs-breadcrumb-item-active-text: #fff;
|
|
155
|
+
|
|
153
156
|
// Dropdown
|
|
154
157
|
--rs-dropdown-divider: @B600-dark;
|
|
155
158
|
--rs-dropdown-item-bg-hover: @B600-dark;
|
|
@@ -157,6 +157,9 @@
|
|
|
157
157
|
--rs-placeholder: @B600-high-contrast;
|
|
158
158
|
--rs-placeholder-active: lighten(@B600-high-contrast, 5%);
|
|
159
159
|
|
|
160
|
+
// Breadcrumb
|
|
161
|
+
--rs-breadcrumb-item-active-text: #fff;
|
|
162
|
+
|
|
160
163
|
// Dropdown
|
|
161
164
|
--rs-dropdown-divider: @B600-high-contrast;
|
|
162
165
|
--rs-dropdown-item-bg-hover: @B600-high-contrast;
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
--rs-btn-primary-hover-bg: @H600;
|
|
92
92
|
--rs-btn-primary-active-bg: @H700;
|
|
93
93
|
--rs-btn-subtle-text: @B600;
|
|
94
|
-
--rs-btn-subtle-hover-bg: @
|
|
94
|
+
--rs-btn-subtle-hover-bg: @B200;
|
|
95
95
|
--rs-btn-subtle-hover-text: @B800;
|
|
96
96
|
--rs-btn-subtle-active-bg: @B200;
|
|
97
97
|
--rs-btn-subtle-active-text: @B900;
|
|
@@ -157,6 +157,9 @@
|
|
|
157
157
|
--rs-placeholder: @B100;
|
|
158
158
|
--rs-placeholder-active: @B200;
|
|
159
159
|
|
|
160
|
+
// Breadcrumb
|
|
161
|
+
--rs-breadcrumb-item-active-text: @B900;
|
|
162
|
+
|
|
160
163
|
// Dropdown
|
|
161
164
|
--rs-dropdown-divider: @B200;
|
|
162
165
|
--rs-dropdown-item-bg-hover: fade(@H100, 50%);
|