rsuite 5.14.0 → 5.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/Table/styles/index.less +0 -1
  3. package/cjs/DateRangePicker/DateRangePicker.js +3 -1
  4. package/cjs/InputGroup/InputGroupAddon.d.ts +2 -2
  5. package/cjs/InputGroup/test/InputGroup.test.d.ts +1 -0
  6. package/cjs/InputGroup/test/InputGroup.test.js +15 -0
  7. package/cjs/Overlay/Overlay.d.ts +2 -1
  8. package/cjs/Overlay/OverlayTrigger.d.ts +5 -1
  9. package/cjs/Overlay/OverlayTrigger.js +3 -3
  10. package/cjs/Overlay/Position.d.ts +3 -1
  11. package/cjs/Overlay/Position.js +2 -2
  12. package/cjs/Overlay/positionUtils.d.ts +2 -2
  13. package/cjs/Picker/PickerToggleTrigger.d.ts +2 -3
  14. package/cjs/Table/Table.d.ts +3 -3
  15. package/cjs/Uploader/Uploader.d.ts +2 -0
  16. package/cjs/Uploader/Uploader.js +6 -2
  17. package/cjs/Whisper/test/Whisper.test.js +19 -1
  18. package/cjs/utils/ajaxUpload.d.ts +1 -0
  19. package/cjs/utils/ajaxUpload.js +3 -1
  20. package/dist/rsuite-rtl.css +24 -25
  21. package/dist/rsuite-rtl.min.css +1 -1
  22. package/dist/rsuite-rtl.min.css.map +1 -1
  23. package/dist/rsuite.css +24 -25
  24. package/dist/rsuite.js +10 -10
  25. package/dist/rsuite.min.css +1 -1
  26. package/dist/rsuite.min.css.map +1 -1
  27. package/dist/rsuite.min.js +1 -1
  28. package/dist/rsuite.min.js.map +1 -1
  29. package/esm/DateRangePicker/DateRangePicker.js +3 -1
  30. package/esm/InputGroup/InputGroupAddon.d.ts +2 -2
  31. package/esm/InputGroup/test/InputGroup.test.d.ts +1 -0
  32. package/esm/InputGroup/test/InputGroup.test.js +10 -0
  33. package/esm/Overlay/Overlay.d.ts +2 -1
  34. package/esm/Overlay/OverlayTrigger.d.ts +5 -1
  35. package/esm/Overlay/OverlayTrigger.js +3 -3
  36. package/esm/Overlay/Position.d.ts +3 -1
  37. package/esm/Overlay/Position.js +2 -2
  38. package/esm/Overlay/positionUtils.d.ts +2 -2
  39. package/esm/Picker/PickerToggleTrigger.d.ts +2 -3
  40. package/esm/Table/Table.d.ts +3 -3
  41. package/esm/Uploader/Uploader.d.ts +2 -0
  42. package/esm/Uploader/Uploader.js +6 -2
  43. package/esm/Whisper/test/Whisper.test.js +18 -1
  44. package/esm/utils/ajaxUpload.d.ts +1 -0
  45. package/esm/utils/ajaxUpload.js +3 -1
  46. package/package.json +2 -2
  47. package/styles/color-modes/dark.less +223 -184
  48. package/styles/color-modes/high-contrast.less +221 -182
  49. package/styles/color-modes/light.less +42 -3
  50. package/styles/colors/dark.less +91 -91
  51. package/styles/colors/high-contrast.less +91 -91
  52. package/styles/variables.less +3 -0
  53. package/styles/color-modes/common.less +0 -44
@@ -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);
@@ -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
 
@@ -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
- }