rsuite 5.44.0 → 5.46.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/Button/styles/index.less +1 -1
- package/CHANGELOG.md +25 -0
- package/DatePicker/styles/index.less +15 -0
- package/Drawer/styles/index.less +1 -1
- package/Modal/styles/index.less +24 -2
- package/cjs/Calendar/MonthDropdown.js +1 -2
- package/cjs/Calendar/MonthDropdownItem.js +26 -13
- package/cjs/Calendar/TableCell.d.ts +14 -0
- package/cjs/Calendar/TableCell.js +72 -0
- package/cjs/Calendar/TableHeaderRow.js +3 -1
- package/cjs/Calendar/TableRow.js +22 -46
- package/cjs/Calendar/useCalendarDate.d.ts +1 -1
- package/cjs/Calendar/utils.d.ts +7 -0
- package/cjs/Calendar/utils.js +15 -0
- package/cjs/Cascader/Cascader.js +13 -3
- package/cjs/DatePicker/DatePicker.js +145 -38
- package/cjs/Drawer/Drawer.d.ts +2 -0
- package/cjs/Drawer/Drawer.js +16 -5
- package/cjs/Drawer/DrawerContext.d.ts +9 -0
- package/cjs/Drawer/DrawerContext.js +10 -0
- package/cjs/FormControl/FormControl.js +1 -1
- package/cjs/InputPicker/InputPicker.js +7 -4
- package/cjs/Modal/Modal.d.ts +2 -4
- package/cjs/Modal/Modal.js +24 -13
- package/cjs/Modal/ModalBody.js +14 -8
- package/cjs/Modal/ModalContext.d.ts +1 -3
- package/cjs/Modal/ModalHeader.js +9 -6
- package/cjs/Modal/index.d.ts +1 -0
- package/cjs/Modal/utils.d.ts +4 -1
- package/cjs/Modal/utils.js +9 -4
- package/cjs/Picker/PickerToggle.js +3 -0
- package/cjs/Picker/utils.js +21 -12
- package/cjs/Table/Table.d.ts +7 -7
- package/dist/rsuite-no-reset-rtl.css +141 -64
- 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 +141 -64
- package/dist/rsuite-no-reset.min.css +1 -1
- package/dist/rsuite-no-reset.min.css.map +1 -1
- package/dist/rsuite-rtl.css +141 -64
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +141 -64
- package/dist/rsuite.js +73 -19
- 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/Calendar/MonthDropdown.js +1 -2
- package/esm/Calendar/MonthDropdownItem.js +28 -15
- package/esm/Calendar/TableCell.d.ts +14 -0
- package/esm/Calendar/TableCell.js +66 -0
- package/esm/Calendar/TableHeaderRow.js +3 -1
- package/esm/Calendar/TableRow.js +23 -47
- package/esm/Calendar/useCalendarDate.d.ts +1 -1
- package/esm/Calendar/utils.d.ts +7 -0
- package/esm/Calendar/utils.js +12 -0
- package/esm/Cascader/Cascader.js +13 -3
- package/esm/DatePicker/DatePicker.js +147 -40
- package/esm/Drawer/Drawer.d.ts +2 -0
- package/esm/Drawer/Drawer.js +15 -5
- package/esm/Drawer/DrawerContext.d.ts +9 -0
- package/esm/Drawer/DrawerContext.js +4 -0
- package/esm/FormControl/FormControl.js +1 -1
- package/esm/InputPicker/InputPicker.js +7 -4
- package/esm/Modal/Modal.d.ts +2 -4
- package/esm/Modal/Modal.js +25 -14
- package/esm/Modal/ModalBody.js +14 -8
- package/esm/Modal/ModalContext.d.ts +1 -3
- package/esm/Modal/ModalHeader.js +9 -6
- package/esm/Modal/index.d.ts +1 -0
- package/esm/Modal/utils.d.ts +4 -1
- package/esm/Modal/utils.js +9 -4
- package/esm/Picker/PickerToggle.js +3 -0
- package/esm/Picker/utils.js +21 -12
- package/esm/Table/Table.d.ts +7 -7
- package/package.json +2 -2
- package/styles/color-modes/dark.less +0 -40
- package/styles/color-modes/high-contrast.less +0 -35
- package/styles/color-modes/light.less +0 -46
package/esm/Modal/ModalHeader.js
CHANGED
|
@@ -8,7 +8,9 @@ import { ModalContext } from './ModalContext';
|
|
|
8
8
|
import CloseButton from '../CloseButton';
|
|
9
9
|
import Close from '@rsuite/icons/Close';
|
|
10
10
|
import IconButton from '../IconButton';
|
|
11
|
+
import DrawerContext from '../Drawer/DrawerContext';
|
|
11
12
|
var ModalHeader = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
13
|
+
var _useContext, _useContext2;
|
|
12
14
|
var _props$as = props.as,
|
|
13
15
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
|
14
16
|
_props$classPrefix = props.classPrefix,
|
|
@@ -24,16 +26,17 @@ var ModalHeader = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
24
26
|
withClassPrefix = _useClassNames.withClassPrefix,
|
|
25
27
|
prefix = _useClassNames.prefix;
|
|
26
28
|
var classes = merge(className, withClassPrefix());
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
onClick: createChainedFunction(onClose, context === null || context === void 0 ? void 0 : context.onModalClose)
|
|
31
|
-
}) : /*#__PURE__*/React.createElement(IconButton, {
|
|
29
|
+
var onModalClose = (_useContext = useContext(ModalContext)) === null || _useContext === void 0 ? void 0 : _useContext.onModalClose;
|
|
30
|
+
var isDrawer = (_useContext2 = useContext(DrawerContext)) === null || _useContext2 === void 0 ? void 0 : _useContext2.isDrawer;
|
|
31
|
+
var buttonElement = isDrawer ? /*#__PURE__*/React.createElement(IconButton, {
|
|
32
32
|
icon: /*#__PURE__*/React.createElement(Close, null),
|
|
33
33
|
appearance: "subtle",
|
|
34
34
|
size: "sm",
|
|
35
35
|
className: prefix('close'),
|
|
36
|
-
onClick: createChainedFunction(onClose,
|
|
36
|
+
onClick: createChainedFunction(onClose, onModalClose)
|
|
37
|
+
}) : /*#__PURE__*/React.createElement(CloseButton, {
|
|
38
|
+
className: prefix('close'),
|
|
39
|
+
onClick: createChainedFunction(onClose, onModalClose)
|
|
37
40
|
});
|
|
38
41
|
return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
39
42
|
ref: ref,
|
package/esm/Modal/index.d.ts
CHANGED
|
@@ -5,4 +5,5 @@ export type { ModalDialogProps } from './ModalDialog';
|
|
|
5
5
|
export type { ModalFooterProps } from './ModalFooter';
|
|
6
6
|
export type { ModalHeaderProps } from './ModalHeader';
|
|
7
7
|
export type { ModalTitleProps } from './ModalTitle';
|
|
8
|
+
export type { ModalSize } from './utils';
|
|
8
9
|
export default Modal;
|
package/esm/Modal/utils.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { TypeAttributes } from '../@types/common';
|
|
3
|
+
export declare type ModalSize = TypeAttributes.Size | 'full' | number | string;
|
|
2
4
|
export declare const useBodyStyles: (ref: React.RefObject<HTMLElement>, options: {
|
|
3
5
|
overflow: boolean;
|
|
4
6
|
drawer: boolean;
|
|
7
|
+
size?: ModalSize | undefined;
|
|
5
8
|
prefix: (...classes: any) => string;
|
|
6
|
-
}) => [import("react").CSSProperties, (entering?: boolean) => void, () => void];
|
|
9
|
+
}) => [import("react").CSSProperties | null, (entering?: boolean) => void, () => void];
|
package/esm/Modal/utils.js
CHANGED
|
@@ -9,7 +9,8 @@ export var useBodyStyles = function useBodyStyles(ref, options) {
|
|
|
9
9
|
setBodyStyles = _useState[1];
|
|
10
10
|
var overflow = options.overflow,
|
|
11
11
|
drawer = options.drawer,
|
|
12
|
-
prefix = options.prefix
|
|
12
|
+
prefix = options.prefix,
|
|
13
|
+
size = options.size;
|
|
13
14
|
var windowResizeListener = useRef();
|
|
14
15
|
var contentElement = useRef(null);
|
|
15
16
|
var contentElementResizeObserver = useRef();
|
|
@@ -46,7 +47,11 @@ export var useBodyStyles = function useBodyStyles(ref, options) {
|
|
|
46
47
|
contentElementResizeObserver.current = null;
|
|
47
48
|
}, []);
|
|
48
49
|
var onChangeBodyStyles = useCallback(function (entering) {
|
|
49
|
-
if (
|
|
50
|
+
if (drawer || size === 'full') {
|
|
51
|
+
setBodyStyles(null);
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
if (overflow && ref.current) {
|
|
50
55
|
updateBodyStyles(undefined, entering);
|
|
51
56
|
contentElement.current = ref.current.querySelector("." + prefix('content'));
|
|
52
57
|
if (!windowResizeListener.current) {
|
|
@@ -59,10 +64,10 @@ export var useBodyStyles = function useBodyStyles(ref, options) {
|
|
|
59
64
|
contentElementResizeObserver.current.observe(contentElement.current);
|
|
60
65
|
}
|
|
61
66
|
}
|
|
62
|
-
}, [drawer, overflow, prefix, ref, updateBodyStyles]);
|
|
67
|
+
}, [drawer, overflow, prefix, ref, size, updateBodyStyles]);
|
|
63
68
|
useEffect(function () {
|
|
64
69
|
return onDestroyEvents;
|
|
65
70
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
66
71
|
}, []);
|
|
67
|
-
return [overflow ? bodyStyles :
|
|
72
|
+
return [overflow ? bodyStyles : null, onChangeBodyStyles, onDestroyEvents];
|
|
68
73
|
};
|
|
@@ -142,6 +142,8 @@ var PickerToggle = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
142
142
|
}, [editable, onInputPressEnter, onInputBackspace]);
|
|
143
143
|
var renderInput = useCallback(function (ref, props) {
|
|
144
144
|
return /*#__PURE__*/React.createElement("input", _extends({
|
|
145
|
+
type: "text",
|
|
146
|
+
autoComplete: "off",
|
|
145
147
|
ref: mergeRefs(inputRef, ref),
|
|
146
148
|
name: name,
|
|
147
149
|
style: {
|
|
@@ -191,6 +193,7 @@ var PickerToggle = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
191
193
|
},
|
|
192
194
|
"data-testid": "spinner"
|
|
193
195
|
}) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TextMask, {
|
|
196
|
+
keepCharPositions: true,
|
|
194
197
|
mask: inputMask,
|
|
195
198
|
value: Array.isArray(inputValue) ? inputValue.toString() : inputValue,
|
|
196
199
|
onBlur: handleInputBlur,
|
package/esm/Picker/utils.js
CHANGED
|
@@ -182,6 +182,12 @@ export var useFocusItemValue = function useFocusItemValue(defaultFocusItemValue,
|
|
|
182
182
|
var _useState3 = useState([]),
|
|
183
183
|
keys = _useState3[0],
|
|
184
184
|
setKeys = _useState3[1];
|
|
185
|
+
var focusCallback = useCallback(function (value, event) {
|
|
186
|
+
var menu = isFunction(target) ? target() : target;
|
|
187
|
+
var focusElement = menu === null || menu === void 0 ? void 0 : menu.querySelector("[data-key=\"" + value + "\"]");
|
|
188
|
+
focusElement === null || focusElement === void 0 ? void 0 : focusElement.focus();
|
|
189
|
+
callback === null || callback === void 0 ? void 0 : callback(value, event);
|
|
190
|
+
}, [callback, target]);
|
|
185
191
|
var getScrollContainer = useCallback(function () {
|
|
186
192
|
var menu = isFunction(target) ? target() : target;
|
|
187
193
|
|
|
@@ -267,11 +273,11 @@ export var useFocusItemValue = function useFocusItemValue(defaultFocusItemValue,
|
|
|
267
273
|
var focusItem = items[nextIndex];
|
|
268
274
|
if (!isUndefined(focusItem)) {
|
|
269
275
|
setFocusItemValue(focusItem[valueKey]);
|
|
270
|
-
|
|
276
|
+
focusCallback(focusItem[valueKey], event);
|
|
271
277
|
scrollListItem('bottom', focusItem[valueKey], willOverflow);
|
|
272
278
|
}
|
|
273
279
|
});
|
|
274
|
-
}, [
|
|
280
|
+
}, [focusCallback, findFocusItemIndex, scrollListItem, valueKey]);
|
|
275
281
|
var focusPrevMenuItem = useCallback(function (event) {
|
|
276
282
|
findFocusItemIndex(function (items, index) {
|
|
277
283
|
var willOverflow = index === 0;
|
|
@@ -279,11 +285,11 @@ export var useFocusItemValue = function useFocusItemValue(defaultFocusItemValue,
|
|
|
279
285
|
var focusItem = items[nextIndex];
|
|
280
286
|
if (!isUndefined(focusItem)) {
|
|
281
287
|
setFocusItemValue(focusItem[valueKey]);
|
|
282
|
-
|
|
288
|
+
focusCallback(focusItem[valueKey], event);
|
|
283
289
|
scrollListItem('top', focusItem[valueKey], willOverflow);
|
|
284
290
|
}
|
|
285
291
|
});
|
|
286
|
-
}, [
|
|
292
|
+
}, [focusCallback, findFocusItemIndex, scrollListItem, valueKey]);
|
|
287
293
|
var getSubMenuKeys = useCallback(function (nextLayer) {
|
|
288
294
|
var menu = isFunction(target) ? target() : target;
|
|
289
295
|
var subMenu = menu === null || menu === void 0 ? void 0 : menu.querySelector("[data-layer=\"" + nextLayer + "\"]");
|
|
@@ -303,9 +309,9 @@ export var useFocusItemValue = function useFocusItemValue(defaultFocusItemValue,
|
|
|
303
309
|
setKeys(nextKeys);
|
|
304
310
|
setLayer(nextLayer);
|
|
305
311
|
setFocusItemValue(nextKeys[0]);
|
|
306
|
-
|
|
312
|
+
focusCallback(nextKeys[0], event);
|
|
307
313
|
}
|
|
308
|
-
}, [
|
|
314
|
+
}, [focusCallback, getSubMenuKeys, layer]);
|
|
309
315
|
var focusPrevLevelMenu = useCallback(function (event) {
|
|
310
316
|
var nextLayer = layer - 1;
|
|
311
317
|
var nextKeys = getSubMenuKeys(nextLayer);
|
|
@@ -319,10 +325,10 @@ export var useFocusItemValue = function useFocusItemValue(defaultFocusItemValue,
|
|
|
319
325
|
var parentItemValue = (_getParent = getParent(focusItem)) === null || _getParent === void 0 ? void 0 : _getParent[valueKey];
|
|
320
326
|
if (parentItemValue) {
|
|
321
327
|
setFocusItemValue(parentItemValue);
|
|
322
|
-
|
|
328
|
+
focusCallback(parentItemValue, event);
|
|
323
329
|
}
|
|
324
330
|
}
|
|
325
|
-
}, [
|
|
331
|
+
}, [focusCallback, data, focusItemValue, getParent, getSubMenuKeys, layer, valueKey]);
|
|
326
332
|
var handleKeyDown = useCallback(function (event) {
|
|
327
333
|
var _onMenuKeyDown;
|
|
328
334
|
onMenuKeyDown(event, (_onMenuKeyDown = {
|
|
@@ -363,10 +369,13 @@ export var useToggleKeyDownEvent = function useToggleKeyDownEvent(props) {
|
|
|
363
369
|
onMenuPressEnter = props.onMenuPressEnter,
|
|
364
370
|
onMenuPressBackspace = props.onMenuPressBackspace;
|
|
365
371
|
var handleClose = useCallback(function () {
|
|
366
|
-
var _triggerRef$current, _triggerRef$current$c;
|
|
372
|
+
var _triggerRef$current, _triggerRef$current$c, _targetRef$current, _targetRef$current$fo;
|
|
367
373
|
(_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0 ? void 0 : (_triggerRef$current$c = _triggerRef$current.close) === null || _triggerRef$current$c === void 0 ? void 0 : _triggerRef$current$c.call(_triggerRef$current);
|
|
374
|
+
|
|
375
|
+
// The focus is on the trigger button after closing
|
|
376
|
+
(_targetRef$current = targetRef.current) === null || _targetRef$current === void 0 ? void 0 : (_targetRef$current$fo = _targetRef$current.focus) === null || _targetRef$current$fo === void 0 ? void 0 : _targetRef$current$fo.call(_targetRef$current);
|
|
368
377
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
369
|
-
}, [onClose, triggerRef]);
|
|
378
|
+
}, [onClose, targetRef, triggerRef]);
|
|
370
379
|
var handleOpen = useCallback(function () {
|
|
371
380
|
var _triggerRef$current2, _triggerRef$current2$;
|
|
372
381
|
(_triggerRef$current2 = triggerRef.current) === null || _triggerRef$current2 === void 0 ? void 0 : (_triggerRef$current2$ = _triggerRef$current2.open) === null || _triggerRef$current2$ === void 0 ? void 0 : _triggerRef$current2$.call(_triggerRef$current2);
|
|
@@ -527,8 +536,8 @@ export function usePublicMethods(ref, parmas) {
|
|
|
527
536
|
return (_overlayRef$current = overlayRef === null || overlayRef === void 0 ? void 0 : overlayRef.current) !== null && _overlayRef$current !== void 0 ? _overlayRef$current : null;
|
|
528
537
|
},
|
|
529
538
|
get target() {
|
|
530
|
-
var _targetRef$
|
|
531
|
-
return (_targetRef$
|
|
539
|
+
var _targetRef$current2;
|
|
540
|
+
return (_targetRef$current2 = targetRef === null || targetRef === void 0 ? void 0 : targetRef.current) !== null && _targetRef$current2 !== void 0 ? _targetRef$current2 : null;
|
|
532
541
|
},
|
|
533
542
|
get list() {
|
|
534
543
|
if (!(listRef !== null && listRef !== void 0 && listRef.current)) {
|
package/esm/Table/Table.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Column, TableProps, RowDataType, TableInstance, CellProps as TableCellProps } from 'rsuite-table';
|
|
3
|
-
export interface CellProps<
|
|
2
|
+
import { Column, TableProps, RowDataType, TableInstance, CellProps as TableCellProps, RowKeyType } from 'rsuite-table';
|
|
3
|
+
export interface CellProps<Row extends RowDataType> extends Omit<TableCellProps<Row>, 'rowData' | 'dataKey'> {
|
|
4
4
|
/** Data binding key, but also a sort of key */
|
|
5
|
-
dataKey?: string | keyof
|
|
5
|
+
dataKey?: string | keyof Row;
|
|
6
6
|
/** Row Data */
|
|
7
|
-
rowData?:
|
|
7
|
+
rowData?: Row;
|
|
8
8
|
}
|
|
9
|
-
declare const _default: (<Row extends RowDataType<never>, Key>(props: TableProps<Row, Key> & React.RefAttributes<TableInstance<Row, Key>>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
|
|
10
|
-
Cell:
|
|
9
|
+
declare const _default: (<Row extends RowDataType<never>, Key extends RowKeyType>(props: TableProps<Row, Key> & React.RefAttributes<TableInstance<Row, Key>>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
|
|
10
|
+
Cell: <Row_1 extends RowDataType<never>, Key_1 extends RowKeyType>(props: import("rsuite-table/lib/Cell").InnerCellProps<Row_1, Key_1> & React.RefAttributes<HTMLDivElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
11
11
|
Column: typeof Column;
|
|
12
|
-
HeaderCell:
|
|
12
|
+
HeaderCell: <Row_2 extends RowDataType<never>, Key_2 extends RowKeyType>(props: import("rsuite-table").HeaderCellProps<Row_2, Key_2> & React.RefAttributes<HTMLDivElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
13
13
|
ColumnGroup: React.ForwardRefExoticComponent<import("rsuite-table").ColumnGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
14
|
};
|
|
15
15
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rsuite",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.46.0",
|
|
4
4
|
"description": "A suite of react components",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"prop-types": "^15.8.1",
|
|
39
39
|
"react-use-set": "^1.0.0",
|
|
40
40
|
"react-window": "^1.8.8",
|
|
41
|
-
"rsuite-table": "^5.
|
|
41
|
+
"rsuite-table": "^5.18.1",
|
|
42
42
|
"schema-typed": "^2.1.3"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
@@ -363,44 +363,4 @@
|
|
|
363
363
|
|
|
364
364
|
// Popover
|
|
365
365
|
--rs-popover-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
|
|
366
|
-
|
|
367
|
-
// CSS relative color syntax is not supported
|
|
368
|
-
// https://developer.chrome.com/blog/css-relative-color-syntax/
|
|
369
|
-
@supports not (color: rgb(from white r g b)) {
|
|
370
|
-
// Misc
|
|
371
|
-
--rs-bg-backdrop: fade(@B900-dark, 80%);
|
|
372
|
-
--rs-color-focus-ring: 0 0 0 3px fade(@H500-dark, 25%);
|
|
373
|
-
--rs-state-focus-shadow: 0 0 0 3px fade(@H500-dark, 25%);
|
|
374
|
-
--rs-state-focus-outline: 3px solid fade(@H500-dark, 25%);
|
|
375
|
-
|
|
376
|
-
// Loader
|
|
377
|
-
--rs-loader-ring: fade(@B050-dark, 30);
|
|
378
|
-
--rs-loader-backdrop: fade(@B900-dark, 83%);
|
|
379
|
-
--rs-loader-ring-inverse: fade(@B050-dark, 80);
|
|
380
|
-
--rs-loader-backdrop-inverse: fade(@B000-dark, 90);
|
|
381
|
-
|
|
382
|
-
// Dropdown
|
|
383
|
-
--rs-dropdown-item-bg-active: fade(@H900-dark, 20);
|
|
384
|
-
|
|
385
|
-
// ARIA Listboxes
|
|
386
|
-
--rs-listbox-option-selected-bg: fade(@H900-dark, 20%);
|
|
387
|
-
|
|
388
|
-
// Slider
|
|
389
|
-
--rs-slider-thumb-hover-shadow: 0 0 0 8px fade(@H500-dark, 25);
|
|
390
|
-
|
|
391
|
-
// Uploader
|
|
392
|
-
--rs-uploader-overlay-bg: fade(@B600-dark, 80);
|
|
393
|
-
|
|
394
|
-
// Carousel
|
|
395
|
-
--rs-carousel-indicator: fade(@B000-dark, 40);
|
|
396
|
-
|
|
397
|
-
// List
|
|
398
|
-
--rs-list-placeholder-bg: fade(@H900-dark, 20%);
|
|
399
|
-
|
|
400
|
-
// Calendar
|
|
401
|
-
--rs-calendar-range-bg: fade(@H900-dark, 50%);
|
|
402
|
-
|
|
403
|
-
// Placeholder
|
|
404
|
-
--rs-placeholder-active: lighten(@B600-dark, 5%);
|
|
405
|
-
}
|
|
406
366
|
}
|
|
@@ -379,39 +379,4 @@
|
|
|
379
379
|
|
|
380
380
|
// Popover
|
|
381
381
|
--rs-popover-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
|
|
382
|
-
|
|
383
|
-
// CSS relative color syntax is not supported
|
|
384
|
-
// https://developer.chrome.com/blog/css-relative-color-syntax/
|
|
385
|
-
@supports not (color: rgb(from white r g b)) {
|
|
386
|
-
// Misc
|
|
387
|
-
--rs-bg-backdrop: fade(@B900-high-contrast, 80%);
|
|
388
|
-
--rs-state-focus-outline: 3px solid fade(@H500-high-contrast, 25%);
|
|
389
|
-
|
|
390
|
-
// Loader
|
|
391
|
-
--rs-loader-ring: fade(@B050-high-contrast, 30);
|
|
392
|
-
--rs-loader-backdrop: fade(@B900-high-contrast, 83%);
|
|
393
|
-
--rs-loader-ring-inverse: fade(@B050-high-contrast, 80);
|
|
394
|
-
--rs-loader-backdrop-inverse: fade(@B000-high-contrast, 90);
|
|
395
|
-
|
|
396
|
-
// Dropdown
|
|
397
|
-
--rs-dropdown-item-bg-active: fade(@H900-high-contrast, 20);
|
|
398
|
-
|
|
399
|
-
// Slider
|
|
400
|
-
--rs-slider-thumb-hover-shadow: 0 0 0 8px fade(@H500-high-contrast, 25);
|
|
401
|
-
|
|
402
|
-
// Uploader
|
|
403
|
-
--rs-uploader-overlay-bg: fade(@B600-high-contrast, 80);
|
|
404
|
-
|
|
405
|
-
// Carousel
|
|
406
|
-
--rs-carousel-indicator: fade(@B000-high-contrast, 40);
|
|
407
|
-
|
|
408
|
-
// List
|
|
409
|
-
--rs-list-placeholder-bg: fade(@H900-high-contrast, 20%);
|
|
410
|
-
|
|
411
|
-
// Calendar
|
|
412
|
-
--rs-calendar-range-bg: fade(@H900-high-contrast, 50%);
|
|
413
|
-
|
|
414
|
-
// Placeholder
|
|
415
|
-
--rs-placeholder-active: lighten(@B600-high-contrast, 5%);
|
|
416
|
-
}
|
|
417
382
|
}
|
|
@@ -373,50 +373,4 @@
|
|
|
373
373
|
|
|
374
374
|
// Popover
|
|
375
375
|
--rs-popover-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
|
|
376
|
-
|
|
377
|
-
// CSS relative color syntax is not supported
|
|
378
|
-
// https://developer.chrome.com/blog/css-relative-color-syntax/
|
|
379
|
-
@supports not (color: rgb(from white r g b)) {
|
|
380
|
-
// Misc
|
|
381
|
-
--rs-bg-backdrop: fade(@B900, 30%);
|
|
382
|
-
--rs-color-focus-ring: fade(@H500, 25%);
|
|
383
|
-
--rs-state-focus-shadow: 0 0 0 3px fade(@H500, 25%);
|
|
384
|
-
--rs-state-focus-outline: 3px solid fade(@H500, 25%);
|
|
385
|
-
|
|
386
|
-
// Loader
|
|
387
|
-
--rs-loader-ring: fade(@B050, 80);
|
|
388
|
-
--rs-loader-backdrop: fade(@B000, 90%);
|
|
389
|
-
--rs-loader-ring-inverse: fade(@B050, 30%);
|
|
390
|
-
--rs-loader-backdrop-inverse: fade(@B900, 83%);
|
|
391
|
-
|
|
392
|
-
// Dropdown
|
|
393
|
-
--rs-dropdown-item-bg-hover: fade(@H100, 50%);
|
|
394
|
-
|
|
395
|
-
// ARIA menu
|
|
396
|
-
--rs-menuitem-active-bg: fade(@H100, 50);
|
|
397
|
-
|
|
398
|
-
// ARIA Listboxes
|
|
399
|
-
--rs-listbox-option-hover-bg: fade(@H100, 50%);
|
|
400
|
-
|
|
401
|
-
// Toggle
|
|
402
|
-
--rs-toggle-loader-ring: fade(@B050, 30%);
|
|
403
|
-
|
|
404
|
-
// Slider
|
|
405
|
-
--rs-slider-thumb-hover-shadow: 0 0 0 8px fade(@H500, 25%);
|
|
406
|
-
|
|
407
|
-
// Uploader
|
|
408
|
-
--rs-uploader-overlay-bg: fade(#fff, 80);
|
|
409
|
-
|
|
410
|
-
// Carousel
|
|
411
|
-
--rs-carousel-indicator: fade(@B000, 40);
|
|
412
|
-
|
|
413
|
-
// List
|
|
414
|
-
--rs-list-placeholder-bg: fade(@H050, 50%);
|
|
415
|
-
|
|
416
|
-
// Table
|
|
417
|
-
--rs-table-scrollbar-vertical-track: fade(@B200, 40%);
|
|
418
|
-
|
|
419
|
-
// Calendar
|
|
420
|
-
--rs-calendar-range-bg: fade(@H100, 50%);
|
|
421
|
-
}
|
|
422
376
|
}
|