rsuite 5.13.0 → 5.15.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 -0
- package/CHANGELOG.md +45 -0
- package/Dropdown/styles/index.less +8 -3
- package/Grid/styles/index.less +42 -10
- package/Sidenav/styles/index.less +45 -11
- package/Table/styles/index.less +0 -2
- package/Tooltip/styles/index.less +4 -4
- package/cjs/@types/common.d.ts +6 -0
- package/cjs/Cascader/utils.d.ts +1 -1
- package/cjs/Col/Col.d.ts +25 -5
- package/cjs/Col/Col.js +9 -1
- package/cjs/CustomProvider/CustomProvider.d.ts +20 -7
- package/cjs/CustomProvider/CustomProvider.js +24 -3
- package/cjs/Dropdown/useRenderDropdownItem.d.ts +1 -1
- package/cjs/Form/Form.d.ts +8 -8
- package/cjs/Form/test/Form.test.d.ts +1 -0
- package/cjs/Form/test/Form.test.js +18 -0
- package/cjs/Modal/test/Modal.test.d.ts +1 -0
- package/cjs/Modal/test/Modal.test.js +14 -0
- package/cjs/Modal/utils.d.ts +1 -1
- package/cjs/Nav/NavDropdownMenu.d.ts +12 -1
- package/cjs/Nav/NavDropdownMenu.js +9 -3
- package/cjs/Nav/test/Nav.test.d.ts +1 -0
- package/cjs/Nav/test/Nav.test.js +17 -0
- package/cjs/Navbar/NavbarDropdownMenu.d.ts +12 -1
- package/cjs/Navbar/NavbarDropdownMenu.js +9 -3
- package/cjs/Overlay/Modal.d.ts +1 -4
- package/cjs/Overlay/Overlay.d.ts +3 -1
- package/cjs/Overlay/Overlay.js +6 -2
- package/cjs/Overlay/OverlayTrigger.d.ts +8 -4
- package/cjs/Overlay/OverlayTrigger.js +32 -4
- package/cjs/Overlay/Position.d.ts +3 -1
- package/cjs/Overlay/Position.js +12 -4
- package/cjs/Overlay/positionUtils.d.ts +11 -4
- package/cjs/Overlay/positionUtils.js +48 -2
- package/cjs/Panel/Panel.js +9 -6
- package/cjs/Picker/utils.d.ts +1 -1
- package/cjs/Popover/Popover.d.ts +2 -0
- package/cjs/Popover/Popover.js +6 -3
- package/cjs/Sidenav/SidenavDropdownToggle.js +2 -1
- package/cjs/Sidenav/SidenavItem.d.ts +4 -0
- package/cjs/Sidenav/SidenavItem.js +40 -31
- package/cjs/Sidenav/SidenavToggle.d.ts +5 -1
- package/cjs/Sidenav/SidenavToggle.js +25 -9
- package/cjs/Toggle/Toggle.d.ts +1 -1
- package/cjs/Tooltip/Tooltip.d.ts +3 -1
- package/cjs/Tooltip/Tooltip.js +8 -3
- package/cjs/Whisper/Whisper.d.ts +3 -5
- package/cjs/Whisper/Whisper.js +6 -1
- package/cjs/Whisper/test/Whisper.test.d.ts +1 -0
- package/cjs/Whisper/test/Whisper.test.js +23 -0
- package/cjs/index.d.ts +3 -3
- package/cjs/index.js +3 -2
- package/cjs/toaster/ToastContainer.d.ts +1 -0
- package/cjs/toaster/ToastContainer.js +4 -1
- package/cjs/toaster/index.d.ts +1 -0
- package/cjs/toaster/index.js +4 -1
- package/cjs/toaster/toaster.d.ts +0 -1
- package/cjs/toaster/useToaster.d.ts +12 -0
- package/cjs/toaster/useToaster.js +43 -0
- package/cjs/utils/constants.d.ts +1 -0
- package/cjs/utils/constants.js +3 -1
- package/cjs/utils/stringToObject.d.ts +1 -1
- package/cjs/utils/tplTransform.d.ts +1 -1
- package/cjs/utils/treeUtils.d.ts +3 -3
- package/cjs/utils/treeUtils.js +8 -10
- package/cjs/utils/useCustom.d.ts +1 -1
- package/cjs/utils/useCustom.js +5 -3
- package/cjs/utils/useFocus.d.ts +1 -1
- package/dist/rsuite-rtl.css +741 -71
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +741 -71
- package/dist/rsuite.js +92 -103
- 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/common.d.ts +6 -0
- package/esm/Cascader/utils.d.ts +1 -1
- package/esm/Col/Col.d.ts +25 -5
- package/esm/Col/Col.js +10 -2
- package/esm/CustomProvider/CustomProvider.d.ts +20 -7
- package/esm/CustomProvider/CustomProvider.js +22 -3
- package/esm/Dropdown/useRenderDropdownItem.d.ts +1 -1
- package/esm/Form/Form.d.ts +8 -8
- package/esm/Form/test/Form.test.d.ts +1 -0
- package/esm/Form/test/Form.test.js +11 -0
- package/esm/Modal/test/Modal.test.d.ts +1 -0
- package/esm/Modal/test/Modal.test.js +9 -0
- package/esm/Modal/utils.d.ts +1 -1
- package/esm/Nav/NavDropdownMenu.d.ts +12 -1
- package/esm/Nav/NavDropdownMenu.js +8 -3
- package/esm/Nav/test/Nav.test.d.ts +1 -0
- package/esm/Nav/test/Nav.test.js +11 -0
- package/esm/Navbar/NavbarDropdownMenu.d.ts +12 -1
- package/esm/Navbar/NavbarDropdownMenu.js +8 -3
- package/esm/Overlay/Modal.d.ts +1 -4
- package/esm/Overlay/Overlay.d.ts +3 -1
- package/esm/Overlay/Overlay.js +6 -2
- package/esm/Overlay/OverlayTrigger.d.ts +8 -4
- package/esm/Overlay/OverlayTrigger.js +33 -5
- package/esm/Overlay/Position.d.ts +3 -1
- package/esm/Overlay/Position.js +12 -4
- package/esm/Overlay/positionUtils.d.ts +11 -4
- package/esm/Overlay/positionUtils.js +46 -2
- package/esm/Panel/Panel.js +9 -6
- package/esm/Picker/utils.d.ts +1 -1
- package/esm/Popover/Popover.d.ts +2 -0
- package/esm/Popover/Popover.js +6 -3
- package/esm/Sidenav/SidenavDropdownToggle.js +2 -1
- package/esm/Sidenav/SidenavItem.d.ts +4 -0
- package/esm/Sidenav/SidenavItem.js +38 -31
- package/esm/Sidenav/SidenavToggle.d.ts +5 -1
- package/esm/Sidenav/SidenavToggle.js +22 -9
- package/esm/Toggle/Toggle.d.ts +1 -1
- package/esm/Tooltip/Tooltip.d.ts +3 -1
- package/esm/Tooltip/Tooltip.js +8 -3
- package/esm/Whisper/Whisper.d.ts +3 -5
- package/esm/Whisper/Whisper.js +6 -1
- package/esm/Whisper/test/Whisper.test.d.ts +1 -0
- package/esm/Whisper/test/Whisper.test.js +16 -0
- package/esm/index.d.ts +3 -3
- package/esm/index.js +1 -1
- package/esm/toaster/ToastContainer.d.ts +1 -0
- package/esm/toaster/ToastContainer.js +1 -0
- package/esm/toaster/index.d.ts +1 -0
- package/esm/toaster/index.js +1 -0
- package/esm/toaster/toaster.d.ts +0 -1
- package/esm/toaster/useToaster.d.ts +12 -0
- package/esm/toaster/useToaster.js +34 -0
- package/esm/utils/constants.d.ts +1 -0
- package/esm/utils/constants.js +1 -0
- package/esm/utils/stringToObject.d.ts +1 -1
- package/esm/utils/tplTransform.d.ts +1 -1
- package/esm/utils/treeUtils.d.ts +3 -3
- package/esm/utils/treeUtils.js +8 -10
- package/esm/utils/useCustom.d.ts +1 -1
- package/esm/utils/useCustom.js +5 -3
- package/esm/utils/useFocus.d.ts +1 -1
- package/package.json +1 -1
- package/styles/color-modes/dark.less +223 -181
- package/styles/color-modes/high-contrast.less +221 -179
- package/styles/color-modes/light.less +47 -5
- package/styles/colors/dark.less +91 -91
- package/styles/colors/high-contrast.less +91 -91
- package/styles/variables.less +35 -12
- package/styles/color-modes/common.less +0 -44
package/styles/colors/dark.less
CHANGED
|
@@ -1,105 +1,105 @@
|
|
|
1
1
|
@plugin '../plugins/palette';
|
|
2
2
|
|
|
3
3
|
// Highlight levels
|
|
4
|
-
@H050: palette(@primary-color-dark, 50);
|
|
5
|
-
@H100: palette(@primary-color-dark, 100);
|
|
6
|
-
@H200: palette(@primary-color-dark, 200);
|
|
7
|
-
@H300: palette(@primary-color-dark, 300);
|
|
8
|
-
@H400: palette(@primary-color-dark, 400);
|
|
9
|
-
@H500: @primary-color-dark;
|
|
10
|
-
@H600: palette(@primary-color-dark, 600);
|
|
11
|
-
@H700: palette(@primary-color-dark, 700);
|
|
12
|
-
@H800: palette(@primary-color-dark, 800);
|
|
13
|
-
@H900: palette(@primary-color-dark, 900);
|
|
4
|
+
@H050-dark: palette(@primary-color-dark, 50);
|
|
5
|
+
@H100-dark: palette(@primary-color-dark, 100);
|
|
6
|
+
@H200-dark: palette(@primary-color-dark, 200);
|
|
7
|
+
@H300-dark: palette(@primary-color-dark, 300);
|
|
8
|
+
@H400-dark: palette(@primary-color-dark, 400);
|
|
9
|
+
@H500-dark: @primary-color-dark;
|
|
10
|
+
@H600-dark: palette(@primary-color-dark, 600);
|
|
11
|
+
@H700-dark: palette(@primary-color-dark, 700);
|
|
12
|
+
@H800-dark: palette(@primary-color-dark, 800);
|
|
13
|
+
@H900-dark: palette(@primary-color-dark, 900);
|
|
14
14
|
|
|
15
15
|
// Gray levels
|
|
16
|
-
@B000: #fff;
|
|
17
|
-
@B050: #e9ebf0;
|
|
18
|
-
@B100: #cbced4;
|
|
19
|
-
@B200: #a4a9b3;
|
|
20
|
-
@B300: #858b94;
|
|
21
|
-
@B400: #6a6f76;
|
|
22
|
-
@B500: #5c6066;
|
|
23
|
-
@B600: #3c3f43;
|
|
24
|
-
@B700: #292d33;
|
|
25
|
-
@B800: #1a1d24;
|
|
26
|
-
@B900: #0f131a;
|
|
16
|
+
@B000-dark: #fff;
|
|
17
|
+
@B050-dark: #e9ebf0;
|
|
18
|
+
@B100-dark: #cbced4;
|
|
19
|
+
@B200-dark: #a4a9b3;
|
|
20
|
+
@B300-dark: #858b94;
|
|
21
|
+
@B400-dark: #6a6f76;
|
|
22
|
+
@B500-dark: #5c6066;
|
|
23
|
+
@B600-dark: #3c3f43;
|
|
24
|
+
@B700-dark: #292d33;
|
|
25
|
+
@B800-dark: #1a1d24;
|
|
26
|
+
@B900-dark: #0f131a;
|
|
27
27
|
|
|
28
28
|
// Secondary palette
|
|
29
29
|
|
|
30
|
-
@red-50: palette(@red-dark, 50);
|
|
31
|
-
@red-100: palette(@red-dark, 100);
|
|
32
|
-
@red-200: palette(@red-dark, 200);
|
|
33
|
-
@red-300: palette(@red-dark, 300);
|
|
34
|
-
@red-400: palette(@red-dark, 400);
|
|
35
|
-
@red-500: @red-dark;
|
|
36
|
-
@red-600: palette(@red-dark, 600);
|
|
37
|
-
@red-700: palette(@red-dark, 700);
|
|
38
|
-
@red-800: palette(@red-dark, 800);
|
|
39
|
-
@red-900: palette(@red-dark, 900);
|
|
30
|
+
@red-50-dark: palette(@red-dark, 50);
|
|
31
|
+
@red-100-dark: palette(@red-dark, 100);
|
|
32
|
+
@red-200-dark: palette(@red-dark, 200);
|
|
33
|
+
@red-300-dark: palette(@red-dark, 300);
|
|
34
|
+
@red-400-dark: palette(@red-dark, 400);
|
|
35
|
+
@red-500-dark: @red-dark;
|
|
36
|
+
@red-600-dark: palette(@red-dark, 600);
|
|
37
|
+
@red-700-dark: palette(@red-dark, 700);
|
|
38
|
+
@red-800-dark: palette(@red-dark, 800);
|
|
39
|
+
@red-900-dark: palette(@red-dark, 900);
|
|
40
40
|
|
|
41
|
-
@orange-50: palette(@orange-dark, 50);
|
|
42
|
-
@orange-100: palette(@orange-dark, 100);
|
|
43
|
-
@orange-200: palette(@orange-dark, 200);
|
|
44
|
-
@orange-300: palette(@orange-dark, 300);
|
|
45
|
-
@orange-400: palette(@orange-dark, 400);
|
|
46
|
-
@orange-500: @orange-dark;
|
|
47
|
-
@orange-600: palette(@orange-dark, 600);
|
|
48
|
-
@orange-700: palette(@orange-dark, 700);
|
|
49
|
-
@orange-800: palette(@orange-dark, 800);
|
|
50
|
-
@orange-900: palette(@orange-dark, 900);
|
|
41
|
+
@orange-50-dark: palette(@orange-dark, 50);
|
|
42
|
+
@orange-100-dark: palette(@orange-dark, 100);
|
|
43
|
+
@orange-200-dark: palette(@orange-dark, 200);
|
|
44
|
+
@orange-300-dark: palette(@orange-dark, 300);
|
|
45
|
+
@orange-400-dark: palette(@orange-dark, 400);
|
|
46
|
+
@orange-500-dark: @orange-dark;
|
|
47
|
+
@orange-600-dark: palette(@orange-dark, 600);
|
|
48
|
+
@orange-700-dark: palette(@orange-dark, 700);
|
|
49
|
+
@orange-800-dark: palette(@orange-dark, 800);
|
|
50
|
+
@orange-900-dark: palette(@orange-dark, 900);
|
|
51
51
|
|
|
52
|
-
@yellow-50: palette(@yellow-dark, 50);
|
|
53
|
-
@yellow-100: palette(@yellow-dark, 100);
|
|
54
|
-
@yellow-200: palette(@yellow-dark, 200);
|
|
55
|
-
@yellow-300: palette(@yellow-dark, 300);
|
|
56
|
-
@yellow-400: palette(@yellow-dark, 400);
|
|
57
|
-
@yellow-500: @yellow-dark;
|
|
58
|
-
@yellow-600: palette(@yellow-dark, 600);
|
|
59
|
-
@yellow-700: palette(@yellow-dark, 700);
|
|
60
|
-
@yellow-800: palette(@yellow-dark, 800);
|
|
61
|
-
@yellow-900: palette(@yellow-dark, 900);
|
|
52
|
+
@yellow-50-dark: palette(@yellow-dark, 50);
|
|
53
|
+
@yellow-100-dark: palette(@yellow-dark, 100);
|
|
54
|
+
@yellow-200-dark: palette(@yellow-dark, 200);
|
|
55
|
+
@yellow-300-dark: palette(@yellow-dark, 300);
|
|
56
|
+
@yellow-400-dark: palette(@yellow-dark, 400);
|
|
57
|
+
@yellow-500-dark: @yellow-dark;
|
|
58
|
+
@yellow-600-dark: palette(@yellow-dark, 600);
|
|
59
|
+
@yellow-700-dark: palette(@yellow-dark, 700);
|
|
60
|
+
@yellow-800-dark: palette(@yellow-dark, 800);
|
|
61
|
+
@yellow-900-dark: palette(@yellow-dark, 900);
|
|
62
62
|
|
|
63
|
-
@green-50: palette(@green-dark, 50);
|
|
64
|
-
@green-100: palette(@green-dark, 100);
|
|
65
|
-
@green-200: palette(@green-dark, 200);
|
|
66
|
-
@green-300: palette(@green-dark, 300);
|
|
67
|
-
@green-400: palette(@green-dark, 400);
|
|
68
|
-
@green-500: @green-dark;
|
|
69
|
-
@green-600: palette(@green-dark, 600);
|
|
70
|
-
@green-700: palette(@green-dark, 700);
|
|
71
|
-
@green-800: palette(@green-dark, 800);
|
|
72
|
-
@green-900: palette(@green-dark, 900);
|
|
63
|
+
@green-50-dark: palette(@green-dark, 50);
|
|
64
|
+
@green-100-dark: palette(@green-dark, 100);
|
|
65
|
+
@green-200-dark: palette(@green-dark, 200);
|
|
66
|
+
@green-300-dark: palette(@green-dark, 300);
|
|
67
|
+
@green-400-dark: palette(@green-dark, 400);
|
|
68
|
+
@green-500-dark: @green-dark;
|
|
69
|
+
@green-600-dark: palette(@green-dark, 600);
|
|
70
|
+
@green-700-dark: palette(@green-dark, 700);
|
|
71
|
+
@green-800-dark: palette(@green-dark, 800);
|
|
72
|
+
@green-900-dark: palette(@green-dark, 900);
|
|
73
73
|
|
|
74
|
-
@cyan-50: palette(@cyan-dark, 50);
|
|
75
|
-
@cyan-100: palette(@cyan-dark, 100);
|
|
76
|
-
@cyan-200: palette(@cyan-dark, 200);
|
|
77
|
-
@cyan-300: palette(@cyan-dark, 300);
|
|
78
|
-
@cyan-400: palette(@cyan-dark, 400);
|
|
79
|
-
@cyan-500: @cyan-dark;
|
|
80
|
-
@cyan-600: palette(@cyan-dark, 600);
|
|
81
|
-
@cyan-700: palette(@cyan-dark, 700);
|
|
82
|
-
@cyan-800: palette(@cyan-dark, 800);
|
|
83
|
-
@cyan-900: palette(@cyan-dark, 900);
|
|
74
|
+
@cyan-50-dark: palette(@cyan-dark, 50);
|
|
75
|
+
@cyan-100-dark: palette(@cyan-dark, 100);
|
|
76
|
+
@cyan-200-dark: palette(@cyan-dark, 200);
|
|
77
|
+
@cyan-300-dark: palette(@cyan-dark, 300);
|
|
78
|
+
@cyan-400-dark: palette(@cyan-dark, 400);
|
|
79
|
+
@cyan-500-dark: @cyan-dark;
|
|
80
|
+
@cyan-600-dark: palette(@cyan-dark, 600);
|
|
81
|
+
@cyan-700-dark: palette(@cyan-dark, 700);
|
|
82
|
+
@cyan-800-dark: palette(@cyan-dark, 800);
|
|
83
|
+
@cyan-900-dark: palette(@cyan-dark, 900);
|
|
84
84
|
|
|
85
|
-
@blue-50: palette(@blue-dark, 50);
|
|
86
|
-
@blue-100: palette(@blue-dark, 100);
|
|
87
|
-
@blue-200: palette(@blue-dark, 200);
|
|
88
|
-
@blue-300: palette(@blue-dark, 300);
|
|
89
|
-
@blue-400: palette(@blue-dark, 400);
|
|
90
|
-
@blue-500: @blue-dark;
|
|
91
|
-
@blue-600: palette(@blue-dark, 600);
|
|
92
|
-
@blue-700: palette(@blue-dark, 700);
|
|
93
|
-
@blue-800: palette(@blue-dark, 800);
|
|
94
|
-
@blue-900: palette(@blue-dark, 900);
|
|
85
|
+
@blue-50-dark: palette(@blue-dark, 50);
|
|
86
|
+
@blue-100-dark: palette(@blue-dark, 100);
|
|
87
|
+
@blue-200-dark: palette(@blue-dark, 200);
|
|
88
|
+
@blue-300-dark: palette(@blue-dark, 300);
|
|
89
|
+
@blue-400-dark: palette(@blue-dark, 400);
|
|
90
|
+
@blue-500-dark: @blue-dark;
|
|
91
|
+
@blue-600-dark: palette(@blue-dark, 600);
|
|
92
|
+
@blue-700-dark: palette(@blue-dark, 700);
|
|
93
|
+
@blue-800-dark: palette(@blue-dark, 800);
|
|
94
|
+
@blue-900-dark: palette(@blue-dark, 900);
|
|
95
95
|
|
|
96
|
-
@violet-50: palette(@violet-dark, 50);
|
|
97
|
-
@violet-100: palette(@violet-dark, 100);
|
|
98
|
-
@violet-200: palette(@violet-dark, 200);
|
|
99
|
-
@violet-300: palette(@violet-dark, 300);
|
|
100
|
-
@violet-400: palette(@violet-dark, 400);
|
|
101
|
-
@violet-500: @violet-dark;
|
|
102
|
-
@violet-600: palette(@violet-dark, 600);
|
|
103
|
-
@violet-700: palette(@violet-dark, 700);
|
|
104
|
-
@violet-800: palette(@violet-dark, 800);
|
|
105
|
-
@violet-900: palette(@violet-dark, 900);
|
|
96
|
+
@violet-50-dark: palette(@violet-dark, 50);
|
|
97
|
+
@violet-100-dark: palette(@violet-dark, 100);
|
|
98
|
+
@violet-200-dark: palette(@violet-dark, 200);
|
|
99
|
+
@violet-300-dark: palette(@violet-dark, 300);
|
|
100
|
+
@violet-400-dark: palette(@violet-dark, 400);
|
|
101
|
+
@violet-500-dark: @violet-dark;
|
|
102
|
+
@violet-600-dark: palette(@violet-dark, 600);
|
|
103
|
+
@violet-700-dark: palette(@violet-dark, 700);
|
|
104
|
+
@violet-800-dark: palette(@violet-dark, 800);
|
|
105
|
+
@violet-900-dark: palette(@violet-dark, 900);
|
|
@@ -1,105 +1,105 @@
|
|
|
1
1
|
@plugin '../plugins/palette';
|
|
2
2
|
|
|
3
3
|
// Highlight levels
|
|
4
|
-
@H050: #fffef2;
|
|
5
|
-
@H100: #fffbc2;
|
|
6
|
-
@H200: #fffa91;
|
|
7
|
-
@H300: #fffa61;
|
|
8
|
-
@H400: #fffc30;
|
|
9
|
-
@H500: #ffff00;
|
|
10
|
-
@H600: #f1f500;
|
|
11
|
-
@H700: #d9e000;
|
|
12
|
-
@H800: #b8c200;
|
|
13
|
-
@H900: #8f9900;
|
|
4
|
+
@H050-high-contrast: #fffef2;
|
|
5
|
+
@H100-high-contrast: #fffbc2;
|
|
6
|
+
@H200-high-contrast: #fffa91;
|
|
7
|
+
@H300-high-contrast: #fffa61;
|
|
8
|
+
@H400-high-contrast: #fffc30;
|
|
9
|
+
@H500-high-contrast: #ffff00;
|
|
10
|
+
@H600-high-contrast: #f1f500;
|
|
11
|
+
@H700-high-contrast: #d9e000;
|
|
12
|
+
@H800-high-contrast: #b8c200;
|
|
13
|
+
@H900-high-contrast: #8f9900;
|
|
14
14
|
|
|
15
15
|
// Gray levels
|
|
16
|
-
@B000: #fff;
|
|
17
|
-
@B050: #e9ebf0;
|
|
18
|
-
@B100: #cbced4;
|
|
19
|
-
@B200: #a4a9b3;
|
|
20
|
-
@B300: #858b94;
|
|
21
|
-
@B400: #6a6f76;
|
|
22
|
-
@B500: #5c6066;
|
|
23
|
-
@B600: #3c3f43;
|
|
24
|
-
@B700: #292d33;
|
|
25
|
-
@B800: #1a1d24;
|
|
26
|
-
@B900: #0f131a;
|
|
16
|
+
@B000-high-contrast: #fff;
|
|
17
|
+
@B050-high-contrast: #e9ebf0;
|
|
18
|
+
@B100-high-contrast: #cbced4;
|
|
19
|
+
@B200-high-contrast: #a4a9b3;
|
|
20
|
+
@B300-high-contrast: #858b94;
|
|
21
|
+
@B400-high-contrast: #6a6f76;
|
|
22
|
+
@B500-high-contrast: #5c6066;
|
|
23
|
+
@B600-high-contrast: #3c3f43;
|
|
24
|
+
@B700-high-contrast: #292d33;
|
|
25
|
+
@B800-high-contrast: #1a1d24;
|
|
26
|
+
@B900-high-contrast: #0f131a;
|
|
27
27
|
|
|
28
28
|
// Secondary palette
|
|
29
29
|
|
|
30
|
-
@red-50: palette(@red-high-contrast, 50);
|
|
31
|
-
@red-100: palette(@red-high-contrast, 100);
|
|
32
|
-
@red-200: palette(@red-high-contrast, 200);
|
|
33
|
-
@red-300: palette(@red-high-contrast, 300);
|
|
34
|
-
@red-400: palette(@red-high-contrast, 400);
|
|
35
|
-
@red-500: @red-high-contrast;
|
|
36
|
-
@red-600: palette(@red-high-contrast, 600);
|
|
37
|
-
@red-700: palette(@red-high-contrast, 700);
|
|
38
|
-
@red-800: palette(@red-high-contrast, 800);
|
|
39
|
-
@red-900: palette(@red-high-contrast, 900);
|
|
30
|
+
@red-50-high-contrast: palette(@red-high-contrast, 50);
|
|
31
|
+
@red-100-high-contrast: palette(@red-high-contrast, 100);
|
|
32
|
+
@red-200-high-contrast: palette(@red-high-contrast, 200);
|
|
33
|
+
@red-300-high-contrast: palette(@red-high-contrast, 300);
|
|
34
|
+
@red-400-high-contrast: palette(@red-high-contrast, 400);
|
|
35
|
+
@red-500-high-contrast: @red-high-contrast;
|
|
36
|
+
@red-600-high-contrast: palette(@red-high-contrast, 600);
|
|
37
|
+
@red-700-high-contrast: palette(@red-high-contrast, 700);
|
|
38
|
+
@red-800-high-contrast: palette(@red-high-contrast, 800);
|
|
39
|
+
@red-900-high-contrast: palette(@red-high-contrast, 900);
|
|
40
40
|
|
|
41
|
-
@orange-50: palette(@orange-high-contrast, 50);
|
|
42
|
-
@orange-100: palette(@orange-high-contrast, 100);
|
|
43
|
-
@orange-200: palette(@orange-high-contrast, 200);
|
|
44
|
-
@orange-300: palette(@orange-high-contrast, 300);
|
|
45
|
-
@orange-400: palette(@orange-high-contrast, 400);
|
|
46
|
-
@orange-500: @orange-high-contrast;
|
|
47
|
-
@orange-600: palette(@orange-high-contrast, 600);
|
|
48
|
-
@orange-700: palette(@orange-high-contrast, 700);
|
|
49
|
-
@orange-800: palette(@orange-high-contrast, 800);
|
|
50
|
-
@orange-900: palette(@orange-high-contrast, 900);
|
|
41
|
+
@orange-50-high-contrast: palette(@orange-high-contrast, 50);
|
|
42
|
+
@orange-100-high-contrast: palette(@orange-high-contrast, 100);
|
|
43
|
+
@orange-200-high-contrast: palette(@orange-high-contrast, 200);
|
|
44
|
+
@orange-300-high-contrast: palette(@orange-high-contrast, 300);
|
|
45
|
+
@orange-400-high-contrast: palette(@orange-high-contrast, 400);
|
|
46
|
+
@orange-500-high-contrast: @orange-high-contrast;
|
|
47
|
+
@orange-600-high-contrast: palette(@orange-high-contrast, 600);
|
|
48
|
+
@orange-700-high-contrast: palette(@orange-high-contrast, 700);
|
|
49
|
+
@orange-800-high-contrast: palette(@orange-high-contrast, 800);
|
|
50
|
+
@orange-900-high-contrast: palette(@orange-high-contrast, 900);
|
|
51
51
|
|
|
52
|
-
@yellow-50: palette(@yellow-high-contrast, 50);
|
|
53
|
-
@yellow-100: palette(@yellow-high-contrast, 100);
|
|
54
|
-
@yellow-200: palette(@yellow-high-contrast, 200);
|
|
55
|
-
@yellow-300: palette(@yellow-high-contrast, 300);
|
|
56
|
-
@yellow-400: palette(@yellow-high-contrast, 400);
|
|
57
|
-
@yellow-500: @yellow-high-contrast;
|
|
58
|
-
@yellow-600: palette(@yellow-high-contrast, 600);
|
|
59
|
-
@yellow-700: palette(@yellow-high-contrast, 700);
|
|
60
|
-
@yellow-800: palette(@yellow-high-contrast, 800);
|
|
61
|
-
@yellow-900: palette(@yellow-high-contrast, 900);
|
|
52
|
+
@yellow-50-high-contrast: palette(@yellow-high-contrast, 50);
|
|
53
|
+
@yellow-100-high-contrast: palette(@yellow-high-contrast, 100);
|
|
54
|
+
@yellow-200-high-contrast: palette(@yellow-high-contrast, 200);
|
|
55
|
+
@yellow-300-high-contrast: palette(@yellow-high-contrast, 300);
|
|
56
|
+
@yellow-400-high-contrast: palette(@yellow-high-contrast, 400);
|
|
57
|
+
@yellow-500-high-contrast: @yellow-high-contrast;
|
|
58
|
+
@yellow-600-high-contrast: palette(@yellow-high-contrast, 600);
|
|
59
|
+
@yellow-700-high-contrast: palette(@yellow-high-contrast, 700);
|
|
60
|
+
@yellow-800-high-contrast: palette(@yellow-high-contrast, 800);
|
|
61
|
+
@yellow-900-high-contrast: palette(@yellow-high-contrast, 900);
|
|
62
62
|
|
|
63
|
-
@green-50: palette(@green-high-contrast, 50);
|
|
64
|
-
@green-100: palette(@green-high-contrast, 100);
|
|
65
|
-
@green-200: palette(@green-high-contrast, 200);
|
|
66
|
-
@green-300: palette(@green-high-contrast, 300);
|
|
67
|
-
@green-400: palette(@green-high-contrast, 400);
|
|
68
|
-
@green-500: @green-high-contrast;
|
|
69
|
-
@green-600: palette(@green-high-contrast, 600);
|
|
70
|
-
@green-700: palette(@green-high-contrast, 700);
|
|
71
|
-
@green-800: palette(@green-high-contrast, 800);
|
|
72
|
-
@green-900: palette(@green-high-contrast, 900);
|
|
63
|
+
@green-50-high-contrast: palette(@green-high-contrast, 50);
|
|
64
|
+
@green-100-high-contrast: palette(@green-high-contrast, 100);
|
|
65
|
+
@green-200-high-contrast: palette(@green-high-contrast, 200);
|
|
66
|
+
@green-300-high-contrast: palette(@green-high-contrast, 300);
|
|
67
|
+
@green-400-high-contrast: palette(@green-high-contrast, 400);
|
|
68
|
+
@green-500-high-contrast: @green-high-contrast;
|
|
69
|
+
@green-600-high-contrast: palette(@green-high-contrast, 600);
|
|
70
|
+
@green-700-high-contrast: palette(@green-high-contrast, 700);
|
|
71
|
+
@green-800-high-contrast: palette(@green-high-contrast, 800);
|
|
72
|
+
@green-900-high-contrast: palette(@green-high-contrast, 900);
|
|
73
73
|
|
|
74
|
-
@cyan-50: palette(@cyan-high-contrast, 50);
|
|
75
|
-
@cyan-100: palette(@cyan-high-contrast, 100);
|
|
76
|
-
@cyan-200: palette(@cyan-high-contrast, 200);
|
|
77
|
-
@cyan-300: palette(@cyan-high-contrast, 300);
|
|
78
|
-
@cyan-400: palette(@cyan-high-contrast, 400);
|
|
79
|
-
@cyan-500: @cyan-high-contrast;
|
|
80
|
-
@cyan-600: palette(@cyan-high-contrast, 600);
|
|
81
|
-
@cyan-700: palette(@cyan-high-contrast, 700);
|
|
82
|
-
@cyan-800: palette(@cyan-high-contrast, 800);
|
|
83
|
-
@cyan-900: palette(@cyan-high-contrast, 900);
|
|
74
|
+
@cyan-50-high-contrast: palette(@cyan-high-contrast, 50);
|
|
75
|
+
@cyan-100-high-contrast: palette(@cyan-high-contrast, 100);
|
|
76
|
+
@cyan-200-high-contrast: palette(@cyan-high-contrast, 200);
|
|
77
|
+
@cyan-300-high-contrast: palette(@cyan-high-contrast, 300);
|
|
78
|
+
@cyan-400-high-contrast: palette(@cyan-high-contrast, 400);
|
|
79
|
+
@cyan-500-high-contrast: @cyan-high-contrast;
|
|
80
|
+
@cyan-600-high-contrast: palette(@cyan-high-contrast, 600);
|
|
81
|
+
@cyan-700-high-contrast: palette(@cyan-high-contrast, 700);
|
|
82
|
+
@cyan-800-high-contrast: palette(@cyan-high-contrast, 800);
|
|
83
|
+
@cyan-900-high-contrast: palette(@cyan-high-contrast, 900);
|
|
84
84
|
|
|
85
|
-
@blue-50: palette(@blue-high-contrast, 50);
|
|
86
|
-
@blue-100: palette(@blue-high-contrast, 100);
|
|
87
|
-
@blue-200: palette(@blue-high-contrast, 200);
|
|
88
|
-
@blue-300: palette(@blue-high-contrast, 300);
|
|
89
|
-
@blue-400: palette(@blue-high-contrast, 400);
|
|
90
|
-
@blue-500: @blue-high-contrast;
|
|
91
|
-
@blue-600: palette(@blue-high-contrast, 600);
|
|
92
|
-
@blue-700: palette(@blue-high-contrast, 700);
|
|
93
|
-
@blue-800: palette(@blue-high-contrast, 800);
|
|
94
|
-
@blue-900: palette(@blue-high-contrast, 900);
|
|
85
|
+
@blue-50-high-contrast: palette(@blue-high-contrast, 50);
|
|
86
|
+
@blue-100-high-contrast: palette(@blue-high-contrast, 100);
|
|
87
|
+
@blue-200-high-contrast: palette(@blue-high-contrast, 200);
|
|
88
|
+
@blue-300-high-contrast: palette(@blue-high-contrast, 300);
|
|
89
|
+
@blue-400-high-contrast: palette(@blue-high-contrast, 400);
|
|
90
|
+
@blue-500-high-contrast: @blue-high-contrast;
|
|
91
|
+
@blue-600-high-contrast: palette(@blue-high-contrast, 600);
|
|
92
|
+
@blue-700-high-contrast: palette(@blue-high-contrast, 700);
|
|
93
|
+
@blue-800-high-contrast: palette(@blue-high-contrast, 800);
|
|
94
|
+
@blue-900-high-contrast: palette(@blue-high-contrast, 900);
|
|
95
95
|
|
|
96
|
-
@violet-50: palette(@violet-high-contrast, 50);
|
|
97
|
-
@violet-100: palette(@violet-high-contrast, 100);
|
|
98
|
-
@violet-200: palette(@violet-high-contrast, 200);
|
|
99
|
-
@violet-300: palette(@violet-high-contrast, 300);
|
|
100
|
-
@violet-400: palette(@violet-high-contrast, 400);
|
|
101
|
-
@violet-500: @violet-high-contrast;
|
|
102
|
-
@violet-600: palette(@violet-high-contrast, 600);
|
|
103
|
-
@violet-700: palette(@violet-high-contrast, 700);
|
|
104
|
-
@violet-800: palette(@violet-high-contrast, 800);
|
|
105
|
-
@violet-900: palette(@violet-high-contrast, 900);
|
|
96
|
+
@violet-50-high-contrast: palette(@violet-high-contrast, 50);
|
|
97
|
+
@violet-100-high-contrast: palette(@violet-high-contrast, 100);
|
|
98
|
+
@violet-200-high-contrast: palette(@violet-high-contrast, 200);
|
|
99
|
+
@violet-300-high-contrast: palette(@violet-high-contrast, 300);
|
|
100
|
+
@violet-400-high-contrast: palette(@violet-high-contrast, 400);
|
|
101
|
+
@violet-500-high-contrast: @violet-high-contrast;
|
|
102
|
+
@violet-600-high-contrast: palette(@violet-high-contrast, 600);
|
|
103
|
+
@violet-700-high-contrast: palette(@violet-high-contrast, 700);
|
|
104
|
+
@violet-800-high-contrast: palette(@violet-high-contrast, 800);
|
|
105
|
+
@violet-900-high-contrast: palette(@violet-high-contrast, 900);
|
package/styles/variables.less
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
// All variables declared in this file is supposed to be customizable by the user
|
|
3
3
|
// This file is ignored by prettier for better alignment
|
|
4
4
|
// See .prettierignore
|
|
5
|
+
@import 'colors/light.less';
|
|
6
|
+
@import 'colors/dark.less';
|
|
7
|
+
@import 'colors/high-contrast.less';
|
|
5
8
|
|
|
6
9
|
// Controls
|
|
7
10
|
|
|
@@ -23,17 +26,25 @@
|
|
|
23
26
|
// Media queries breakpoints
|
|
24
27
|
// Define the breakpoints at which your layout will change, adapting to different screen sizes.
|
|
25
28
|
|
|
26
|
-
//
|
|
27
|
-
// @screen-
|
|
28
|
-
@screen-
|
|
29
|
+
// Small screen / phone
|
|
30
|
+
// @screen-sm
|
|
31
|
+
@screen-sm: 576px;
|
|
29
32
|
|
|
30
33
|
// Medium screen / desktop
|
|
31
34
|
// @screen-md
|
|
32
|
-
@screen-
|
|
35
|
+
@screen-md: 768px;
|
|
33
36
|
|
|
34
37
|
// Large screen / wide desktop
|
|
35
38
|
// @screen-lg
|
|
36
|
-
@screen-lg
|
|
39
|
+
@screen-lg: 992px;
|
|
40
|
+
|
|
41
|
+
// Extra large devices / extra wide desktop
|
|
42
|
+
// @screen-xl
|
|
43
|
+
@screen-xl: 1200px;
|
|
44
|
+
|
|
45
|
+
// Extra extra large devices / ultra wide desktop
|
|
46
|
+
// @screen-xxl
|
|
47
|
+
@screen-xxl: 1400px;
|
|
37
48
|
|
|
38
49
|
|
|
39
50
|
// Grid system
|
|
@@ -48,16 +59,24 @@
|
|
|
48
59
|
// Define the maximum width of `.container` for different screen sizes.
|
|
49
60
|
|
|
50
61
|
// Small screen / phone / tablet
|
|
51
|
-
@container-phone:
|
|
52
|
-
@container-sm:
|
|
62
|
+
@container-phone: (540px + @grid-gutter-width);
|
|
63
|
+
@container-sm: @container-phone;
|
|
53
64
|
|
|
54
65
|
// Medium screen / desktop
|
|
55
|
-
@container-desktop:
|
|
56
|
-
@container-md:
|
|
66
|
+
@container-desktop: (720px + @grid-gutter-width);
|
|
67
|
+
@container-md: @container-desktop;
|
|
57
68
|
|
|
58
69
|
// Large screen / wide desktop
|
|
59
|
-
@container-large-desktop:
|
|
60
|
-
@container-lg:
|
|
70
|
+
@container-large-desktop: (960px + @grid-gutter-width);
|
|
71
|
+
@container-lg: @container-large-desktop;
|
|
72
|
+
|
|
73
|
+
// Extra large devices / ultra wide desktop
|
|
74
|
+
@container-extra-large-desktop: (1140px + @grid-gutter-width);
|
|
75
|
+
@container-xl: @container-large-desktop;
|
|
76
|
+
|
|
77
|
+
// Extra large devices / ultra wide desktop
|
|
78
|
+
@container-extra-extra-large-desktop: (1320px + @grid-gutter-width);
|
|
79
|
+
@container-xxl: @container-large-desktop;
|
|
61
80
|
|
|
62
81
|
// Color system
|
|
63
82
|
|
|
@@ -199,7 +218,6 @@
|
|
|
199
218
|
@table-header-sort-wrapper-margin-left: 5px;
|
|
200
219
|
|
|
201
220
|
@table-column-resize-spanner-width: 3px;
|
|
202
|
-
@table-column-resize-spanner-gap-width: 3px;
|
|
203
221
|
@table-column-resize-spanner-triangle-side-length: 3px;
|
|
204
222
|
|
|
205
223
|
@table-body-content-padding-vertical: 13px; // @deprecated use @table-cell-padding-y instead
|
|
@@ -323,6 +341,9 @@
|
|
|
323
341
|
@dropdown-divider-bg: @divider-border-color;
|
|
324
342
|
@dropdown-shadow: 0 0 10px rgba(0, 0, 0, 0.06), 0 4px 4px rgba(0, 0, 0, 0.12);
|
|
325
343
|
|
|
344
|
+
@dropdown-menu-radius: @border-radius;
|
|
345
|
+
@dropdown-menu-padding-y: @dropdown-menu-radius;
|
|
346
|
+
|
|
326
347
|
@dropdown-item-padding-vertical: 8px; // @deprecated use @dropdown-item-padding-y instead
|
|
327
348
|
@dropdown-item-padding-horizontal: 12px; // @deprecated use @dropdown-item-padding-x instead
|
|
328
349
|
|
|
@@ -400,9 +421,11 @@
|
|
|
400
421
|
@sidenav-padding-horizontal: 20px;
|
|
401
422
|
@sidenav-collapse-in-width: 100%;
|
|
402
423
|
@sidenav-default-width: 56px;
|
|
424
|
+
@sidenav-compact-width: @sidenav-default-width; // TODO Replace sidenav-default-width
|
|
403
425
|
@sidenav-item-height: (@sidenav-padding-vertical * 2 + @line-height-computed);
|
|
404
426
|
@sidenav-menu-max-height: (@sidenav-item-height * 40);
|
|
405
427
|
@sidenav-menu-animation-time: 1.5s;
|
|
428
|
+
@sidenav-footer-height: @sidenav-item-height; // Footer is same height as a sidenav item
|
|
406
429
|
@sidenav-level1-item-font-size: @font-size-large;
|
|
407
430
|
@sidenav-level1-item-line-height: unit((@line-height-computed / @font-size-large));
|
|
408
431
|
@sidenav-icon-spacing: 20px;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
& {
|
|
2
|
-
// Gray levels
|
|
3
|
-
--rs-gray-50: @B050;
|
|
4
|
-
--rs-gray-100: @B100;
|
|
5
|
-
--rs-gray-200: @B200;
|
|
6
|
-
--rs-gray-300: @B300;
|
|
7
|
-
--rs-gray-400: @B400;
|
|
8
|
-
--rs-gray-500: @B500;
|
|
9
|
-
--rs-gray-600: @B600;
|
|
10
|
-
--rs-gray-700: @B700;
|
|
11
|
-
--rs-gray-800: @B800;
|
|
12
|
-
--rs-gray-900: @B900;
|
|
13
|
-
|
|
14
|
-
// Highlight levels
|
|
15
|
-
--rs-primary-50: @H050;
|
|
16
|
-
--rs-primary-100: @H100;
|
|
17
|
-
--rs-primary-200: @H200;
|
|
18
|
-
--rs-primary-300: @H300;
|
|
19
|
-
--rs-primary-400: @H400;
|
|
20
|
-
--rs-primary-500: @H500;
|
|
21
|
-
--rs-primary-600: @H600;
|
|
22
|
-
--rs-primary-700: @H700;
|
|
23
|
-
--rs-primary-800: @H800;
|
|
24
|
-
--rs-primary-900: @H900;
|
|
25
|
-
|
|
26
|
-
// Spectrum levels
|
|
27
|
-
each(@spectrum, .(@color-name) {
|
|
28
|
-
@color: @@color-name;
|
|
29
|
-
@color-name-50: ~'@{color-name}-50';
|
|
30
|
-
--rs-@{color-name}-50: @@color-name-50;
|
|
31
|
-
|
|
32
|
-
each(range(9), {
|
|
33
|
-
@level: @{index}00;
|
|
34
|
-
@color-name-level: ~'@{color-name}-@{level}';
|
|
35
|
-
--rs-@{color-name}-@{level}: @@color-name-level;
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
// Stateful colors
|
|
40
|
-
--rs-state-success: @green;
|
|
41
|
-
--rs-state-info: @blue;
|
|
42
|
-
--rs-state-warning: @yellow;
|
|
43
|
-
--rs-state-error: @red;
|
|
44
|
-
}
|