rsuite 6.0.1 → 6.1.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.
Files changed (275) hide show
  1. package/Accordion/styles/index.scss +3 -0
  2. package/Animation/styles/_animation.scss +95 -0
  3. package/Animation/styles/_bounce.scss +36 -0
  4. package/Animation/styles/_collapse.scss +23 -0
  5. package/Animation/styles/_fade.scss +10 -0
  6. package/Animation/styles/_mixin.scss +15 -0
  7. package/Animation/styles/_slide.scss +34 -0
  8. package/Animation/styles/_variables.scss +4 -0
  9. package/Animation/styles/index.scss +8 -0
  10. package/AutoComplete/styles/index.scss +43 -0
  11. package/Avatar/styles/index.scss +48 -0
  12. package/AvatarGroup/styles/index.scss +27 -0
  13. package/Badge/styles/_variables.scss +48 -0
  14. package/Badge/styles/index.scss +111 -0
  15. package/Box/styles/index.scss +1 -0
  16. package/Breadcrumb/styles/index.scss +50 -0
  17. package/Button/styles/_mixin.scss +83 -0
  18. package/Button/styles/_variables.scss +38 -0
  19. package/Button/styles/index.scss +374 -0
  20. package/ButtonGroup/styles/index.scss +96 -0
  21. package/ButtonToolbar/styles/index.scss +9 -0
  22. package/CHANGELOG.md +20 -0
  23. package/Calendar/styles/_variables.scss +16 -0
  24. package/Calendar/styles/index.scss +673 -0
  25. package/Card/styles/index.scss +63 -0
  26. package/CardGroup/styles/index.scss +10 -0
  27. package/Carousel/styles/index.scss +204 -0
  28. package/CascadeTree/styles/_search.scss +39 -0
  29. package/CascadeTree/styles/index.scss +83 -0
  30. package/Cascader/styles/index.scss +5 -0
  31. package/Center/styles/index.scss +11 -0
  32. package/CheckPicker/styles/index.scss +23 -0
  33. package/CheckTree/styles/_variables.scss +5 -0
  34. package/CheckTree/styles/index.scss +121 -0
  35. package/CheckTreePicker/styles/index.scss +20 -0
  36. package/Checkbox/styles/_mixin.scss +5 -0
  37. package/Checkbox/styles/_variables.scss +4 -0
  38. package/Checkbox/styles/index.scss +158 -0
  39. package/CheckboxGroup/styles/index.scss +14 -0
  40. package/Col/styles/index.scss +2 -0
  41. package/Container/stories/styles.scss +23 -0
  42. package/Container/styles/index.scss +16 -0
  43. package/Content/styles/index.scss +6 -0
  44. package/DateInput/styles/index.scss +1 -0
  45. package/DatePicker/styles/_mixin.scss +10 -0
  46. package/DatePicker/styles/index.scss +171 -0
  47. package/DateRangeInput/styles/index.scss +1 -0
  48. package/DateRangePicker/styles/index.scss +151 -0
  49. package/Divider/styles/index.scss +85 -0
  50. package/Drawer/styles/_mixin.scss +23 -0
  51. package/Drawer/styles/_variables.scss +18 -0
  52. package/Drawer/styles/index.scss +244 -0
  53. package/Dropdown/styles/_mixin.scss +4 -0
  54. package/Dropdown/styles/_variables.scss +12 -0
  55. package/Dropdown/styles/index.scss +334 -0
  56. package/FlexboxGrid/styles/index.scss +82 -0
  57. package/Footer/styles/index.scss +5 -0
  58. package/Form/styles/index.scss +3 -0
  59. package/FormControl/styles/_variables.scss +4 -0
  60. package/FormControl/styles/index.scss +82 -0
  61. package/FormControlLabel/styles/index.scss +7 -0
  62. package/FormErrorMessage/styles/_animation.scss +43 -0
  63. package/FormErrorMessage/styles/_variables.scss +7 -0
  64. package/FormErrorMessage/styles/index.scss +146 -0
  65. package/FormGroup/styles/index.scss +75 -0
  66. package/FormHelpText/styles/index.scss +21 -0
  67. package/FormStack/styles/index.scss +15 -0
  68. package/Grid/styles/_columns.scss +23 -0
  69. package/Grid/styles/_mixin.scss +110 -0
  70. package/Grid/styles/_row.scss +44 -0
  71. package/Grid/styles/_variables.scss +6 -0
  72. package/Grid/styles/index.scss +115 -0
  73. package/Header/styles/index.scss +5 -0
  74. package/Heading/styles/_variables.scss +19 -0
  75. package/Heading/styles/index.scss +42 -0
  76. package/HeadingGroup/styles/index.scss +5 -0
  77. package/Highlight/styles/index.scss +9 -0
  78. package/IconButton/styles/index.scss +90 -0
  79. package/Image/styles/index.scss +36 -0
  80. package/InlineEdit/styles/index.scss +51 -0
  81. package/Input/styles/_mixin.scss +39 -0
  82. package/Input/styles/_variables.scss +27 -0
  83. package/Input/styles/index.scss +23 -0
  84. package/InputGroup/styles/index.scss +264 -0
  85. package/InputNumber/styles/index.scss +1 -0
  86. package/InputPicker/styles/_mixin.scss +7 -0
  87. package/InputPicker/styles/index.scss +64 -0
  88. package/Kbd/styles/_mixin.scss +24 -0
  89. package/Kbd/styles/_variables.scss +13 -0
  90. package/Kbd/styles/index.scss +21 -0
  91. package/Link/styles/index.scss +41 -0
  92. package/List/styles/index.scss +111 -0
  93. package/Loader/styles/_mixin.scss +37 -0
  94. package/Loader/styles/_variables.scss +19 -0
  95. package/Loader/styles/index.scss +120 -0
  96. package/Menu/styles/index.scss +109 -0
  97. package/Message/styles/index.scss +189 -0
  98. package/Modal/styles/_animation.scss +15 -0
  99. package/Modal/styles/_variables.scss +16 -0
  100. package/Modal/styles/index.scss +186 -0
  101. package/MultiCascadeTree/styles/index.scss +35 -0
  102. package/MultiCascader/styles/index.scss +3 -0
  103. package/Nav/styles/index.scss +383 -0
  104. package/Navbar/styles/index.scss +253 -0
  105. package/Notification/styles/index.scss +116 -0
  106. package/NumberInput/styles/_mixin.scss +11 -0
  107. package/NumberInput/styles/index.scss +78 -0
  108. package/Pagination/styles/_pagination-group.scss +52 -0
  109. package/Pagination/styles/index.scss +77 -0
  110. package/Panel/styles/index.scss +122 -0
  111. package/PanelGroup/styles/index.scss +34 -0
  112. package/PasswordInput/styles/index.scss +3 -0
  113. package/PasswordStrengthMeter/styles/index.scss +41 -0
  114. package/PinInput/styles/index.scss +93 -0
  115. package/Placeholder/styles/_mixin.scss +9 -0
  116. package/Placeholder/styles/index.scss +155 -0
  117. package/Popover/styles/index.scss +224 -0
  118. package/Popover/styles/mixins.scss +54 -0
  119. package/Progress/styles/_animation.scss +69 -0
  120. package/Progress/styles/_mixins.scss +6 -0
  121. package/Progress/styles/_progress-line.scss +343 -0
  122. package/Progress/styles/index.scss +3 -0
  123. package/ProgressCircle/styles/index.scss +2 -0
  124. package/ProgressCircle/styles/progress-circle.scss +49 -0
  125. package/Radio/styles/_mixin.scss +5 -0
  126. package/Radio/styles/_variables.scss +5 -0
  127. package/Radio/styles/index.scss +147 -0
  128. package/RadioGroup/styles/_variables.scss +10 -0
  129. package/RadioGroup/styles/index.scss +83 -0
  130. package/RadioTile/styles/index.scss +80 -0
  131. package/RadioTileGroup/styles/index.scss +1 -0
  132. package/RangeSlider/styles/index.scss +4 -0
  133. package/Rate/styles/index.scss +141 -0
  134. package/Row/styles/index.scss +2 -0
  135. package/SegmentedControl/styles/_mixin.scss +7 -0
  136. package/SegmentedControl/styles/_variables.scss +43 -0
  137. package/SegmentedControl/styles/index.scss +147 -0
  138. package/SelectPicker/styles/index.scss +44 -0
  139. package/Sidebar/styles/index.scss +17 -0
  140. package/Sidenav/styles/index.scss +635 -0
  141. package/Sidenav/styles/mixin.scss +23 -0
  142. package/Slider/styles/index.scss +298 -0
  143. package/Stack/styles/_variables.scss +11 -0
  144. package/Stack/styles/index.scss +79 -0
  145. package/Stat/styles/index.scss +126 -0
  146. package/StatGroup/styles/index.scss +10 -0
  147. package/Steps/styles/index.scss +222 -0
  148. package/Table/styles/index.scss +473 -0
  149. package/Table/styles/mixin.scss +8 -0
  150. package/Tabs/styles/index.scss +24 -0
  151. package/Tag/styles/_variables.scss +13 -0
  152. package/Tag/styles/index.scss +62 -0
  153. package/TagGroup/styles/index.scss +14 -0
  154. package/TagInput/styles/index.scss +5 -0
  155. package/TagPicker/styles/index.scss +141 -0
  156. package/Text/styles/index.scss +142 -0
  157. package/Text/styles/variables.scss +9 -0
  158. package/Textarea/styles/index.scss +9 -0
  159. package/TimePicker/styles/index.scss +1 -0
  160. package/TimeRangePicker/styles/index.scss +1 -0
  161. package/Timeline/stories/styles.scss +29 -0
  162. package/Timeline/styles/_mixin.scss +13 -0
  163. package/Timeline/styles/index.scss +187 -0
  164. package/Toggle/styles/index.scss +284 -0
  165. package/Tooltip/styles/index.scss +160 -0
  166. package/Tooltip/styles/mixins.scss +56 -0
  167. package/Tree/styles/_indent-line.scss +8 -0
  168. package/Tree/styles/_toggle.scss +32 -0
  169. package/Tree/styles/_variables.scss +8 -0
  170. package/Tree/styles/index.scss +184 -0
  171. package/TreePicker/styles/index.scss +16 -0
  172. package/Uploader/styles/_mixin.scss +11 -0
  173. package/Uploader/styles/index.scss +491 -0
  174. package/VisuallyHidden/styles/index.scss +11 -0
  175. package/cjs/Breadcrumb/BreadcrumbItem.js +12 -7
  176. package/cjs/CheckTree/CheckTree.js +3 -0
  177. package/cjs/CheckTree/CheckTreeView.js +7 -3
  178. package/cjs/CheckTree/hooks/useTreeCheckState.d.ts +1 -0
  179. package/cjs/CheckTree/hooks/useTreeCheckState.js +54 -3
  180. package/cjs/CheckTree/utils.d.ts +9 -2
  181. package/cjs/CheckTree/utils.js +70 -11
  182. package/cjs/CheckTreePicker/CheckTreePicker.js +1 -0
  183. package/cjs/Checkbox/Checkbox.js +2 -1
  184. package/cjs/Checkbox/hooks/useIndeterminateCheckbox.d.ts +19 -0
  185. package/cjs/Checkbox/hooks/useIndeterminateCheckbox.js +32 -0
  186. package/cjs/DateInput/DateInput.js +24 -0
  187. package/cjs/DateInput/hooks/useKeyboardInputEvent.d.ts +2 -1
  188. package/cjs/DateInput/hooks/useKeyboardInputEvent.js +14 -0
  189. package/cjs/DateRangeInput/DateRangeInput.js +24 -0
  190. package/cjs/Form/Form.js +5 -1
  191. package/cjs/Rate/Rate.d.ts +8 -0
  192. package/cjs/Rate/Rate.js +3 -1
  193. package/cjs/Tree/hooks/useFlattenTree.d.ts +4 -0
  194. package/cjs/Tree/hooks/useFlattenTree.js +22 -1
  195. package/cjs/Tree/hooks/useFocusTree.js +19 -1
  196. package/cjs/Tree/hooks/useVirtualizedTreeData.d.ts +1 -0
  197. package/cjs/Tree/hooks/useVirtualizedTreeData.js +5 -2
  198. package/cjs/Tree/utils/focusableTree.d.ts +8 -0
  199. package/cjs/Tree/utils/focusableTree.js +40 -2
  200. package/cjs/Tree/utils/index.d.ts +1 -1
  201. package/cjs/Tree/utils/index.js +3 -1
  202. package/cjs/internals/Picker/utils.d.ts +2 -0
  203. package/cjs/internals/Picker/utils.js +13 -1
  204. package/cjs/internals/StyledBox/StyledBox.d.ts +1 -1
  205. package/cjs/internals/StyledBox/StyledBox.js +2 -2
  206. package/dist/rsuite.js +34 -23
  207. package/dist/rsuite.js.map +1 -1
  208. package/dist/rsuite.min.js +1 -1
  209. package/dist/rsuite.min.js.map +1 -1
  210. package/esm/Breadcrumb/BreadcrumbItem.js +10 -5
  211. package/esm/CheckTree/CheckTree.js +3 -0
  212. package/esm/CheckTree/CheckTreeView.js +7 -3
  213. package/esm/CheckTree/hooks/useTreeCheckState.d.ts +1 -0
  214. package/esm/CheckTree/hooks/useTreeCheckState.js +55 -4
  215. package/esm/CheckTree/utils.d.ts +9 -2
  216. package/esm/CheckTree/utils.js +71 -12
  217. package/esm/CheckTreePicker/CheckTreePicker.js +1 -0
  218. package/esm/Checkbox/Checkbox.js +3 -2
  219. package/esm/Checkbox/hooks/useIndeterminateCheckbox.d.ts +19 -0
  220. package/esm/Checkbox/hooks/useIndeterminateCheckbox.js +29 -0
  221. package/esm/DateInput/DateInput.js +24 -0
  222. package/esm/DateInput/hooks/useKeyboardInputEvent.d.ts +2 -1
  223. package/esm/DateInput/hooks/useKeyboardInputEvent.js +14 -0
  224. package/esm/DateRangeInput/DateRangeInput.js +24 -0
  225. package/esm/Form/Form.js +5 -1
  226. package/esm/Rate/Rate.d.ts +8 -0
  227. package/esm/Rate/Rate.js +3 -1
  228. package/esm/Tree/hooks/useFlattenTree.d.ts +4 -0
  229. package/esm/Tree/hooks/useFlattenTree.js +22 -1
  230. package/esm/Tree/hooks/useFocusTree.js +20 -2
  231. package/esm/Tree/hooks/useVirtualizedTreeData.d.ts +1 -0
  232. package/esm/Tree/hooks/useVirtualizedTreeData.js +5 -2
  233. package/esm/Tree/utils/focusableTree.d.ts +8 -0
  234. package/esm/Tree/utils/focusableTree.js +36 -0
  235. package/esm/Tree/utils/index.d.ts +1 -1
  236. package/esm/Tree/utils/index.js +1 -1
  237. package/esm/internals/Picker/utils.d.ts +2 -0
  238. package/esm/internals/Picker/utils.js +13 -1
  239. package/esm/internals/StyledBox/StyledBox.d.ts +1 -1
  240. package/esm/internals/StyledBox/StyledBox.js +2 -2
  241. package/internals/Box/styles/index.scss +31 -0
  242. package/internals/Burger/styles/index.scss +72 -0
  243. package/internals/CloseButton/styles/index.scss +14 -0
  244. package/internals/Picker/styles/_mixin.scss +219 -0
  245. package/internals/Picker/styles/_variables.scss +9 -0
  246. package/internals/Picker/styles/index.scss +476 -0
  247. package/internals/Ripple/styles/_mixins.scss +10 -0
  248. package/internals/Ripple/styles/index.scss +40 -0
  249. package/internals/ScrollView/styles/index.scss +77 -0
  250. package/internals/SearchBox/styles/index.scss +7 -0
  251. package/package.json +4 -4
  252. package/styles/_base.scss +37 -0
  253. package/styles/_css-reset.scss +345 -0
  254. package/styles/_themes.scss +132 -0
  255. package/styles/_variables.scss +48 -0
  256. package/styles/color-modes/_dark.scss +458 -0
  257. package/styles/color-modes/_high-contrast.scss +469 -0
  258. package/styles/color-modes/_light.scss +475 -0
  259. package/styles/colors/_colors-base.scss +39 -0
  260. package/styles/colors/_dark.scss +114 -0
  261. package/styles/colors/_high-contrast.scss +114 -0
  262. package/styles/colors/_light.scss +115 -0
  263. package/styles/colors/_palette.scss +413 -0
  264. package/styles/components.scss +114 -0
  265. package/styles/index.scss +2 -0
  266. package/styles/mixins/_color-modes.scss +20 -0
  267. package/styles/mixins/_combobox.scss +6 -0
  268. package/styles/mixins/_hacks.scss +33 -0
  269. package/styles/mixins/_input.scss +30 -0
  270. package/styles/mixins/_listbox.scss +70 -0
  271. package/styles/mixins/_menu.scss +12 -0
  272. package/styles/mixins/_utilities.scss +130 -0
  273. package/toaster/styles/animation.scss +54 -0
  274. package/toaster/styles/index.scss +109 -0
  275. package/useToaster/styles/index.scss +1 -0
@@ -0,0 +1,345 @@
1
+ body {
2
+ // Remove default margin.
3
+ margin: 0;
4
+
5
+ // Optimize for the retina screen
6
+ -webkit-font-smoothing: antialiased;
7
+ -moz-osx-font-smoothing: grayscale;
8
+ }
9
+
10
+ // Address `[hidden]` styling not present in IE 10.
11
+ // Hide the `template` element in IE 10/11, Safari, and Firefox < 22.
12
+ [hidden],
13
+ template {
14
+ display: none;
15
+ }
16
+
17
+ // Links
18
+ // ==========================================================================
19
+
20
+ a {
21
+ color: var(--rs-text-link);
22
+ text-decoration: none;
23
+ background-color: transparent;
24
+
25
+ &:hover,
26
+ &:focus {
27
+ outline: 0;
28
+ color: var(--rs-text-link-hover);
29
+ text-decoration: var(--rs-link-hover-decoration);
30
+ }
31
+
32
+ &:active {
33
+ outline: 0;
34
+ color: var(--rs-text-link-active);
35
+ text-decoration: var(--rs-link-active-decoration);
36
+ }
37
+ }
38
+
39
+ // Text-level semantics
40
+ // ==========================================================================
41
+
42
+ // Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
43
+ b,
44
+ strong {
45
+ font-weight: bold;
46
+ }
47
+
48
+ // Prevent `sub` and `sup` affecting `line-height` in all browsers.
49
+ sub,
50
+ sup {
51
+ font-size: 75%;
52
+ line-height: 0;
53
+ position: relative;
54
+ vertical-align: baseline;
55
+ }
56
+
57
+ sup {
58
+ top: -0.5em;
59
+ }
60
+
61
+ sub {
62
+ bottom: -0.25em;
63
+ }
64
+
65
+ // Embedded content
66
+ // ==========================================================================
67
+
68
+ // Correct overflow not hidden in IE 10/11.
69
+ svg:not(:root) {
70
+ overflow: hidden;
71
+ }
72
+
73
+ // Address differences between Firefox and other browsers.
74
+ hr {
75
+ box-sizing: content-box;
76
+ height: 0;
77
+ margin-block: var(--rs-line-height-base);
78
+ border: 0;
79
+ border-top: 1px solid var(--rs-divider-border);
80
+ }
81
+
82
+ // Contain overflow in all browsers.
83
+ pre {
84
+ overflow: auto;
85
+ }
86
+
87
+ // Forms
88
+ // ==========================================================================
89
+
90
+ // Known limitation: by default, Chrome and Safari on OS X allow very limited
91
+ // styling of `select`, unless a `border` property is set.
92
+
93
+ // 1. Correct color not being inherited.
94
+ // Known issue: affects color of disabled elements.
95
+ // 2. Correct font properties not being inherited.
96
+ // 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
97
+ button,
98
+ input,
99
+ optgroup,
100
+ select,
101
+ textarea {
102
+ color: inherit; // 1
103
+ font: inherit; // 2
104
+ margin: 0; // 3
105
+ }
106
+
107
+ button {
108
+ // Address `overflow` set to `hidden` in IE 10/11.
109
+ overflow: visible;
110
+
111
+ // Remove border radius in Chrome 62+
112
+ border-radius: var(--rs-radius-none);
113
+ }
114
+
115
+ // Address inconsistent `text-transform` inheritance for `button` and `select`.
116
+ // All other form control elements do not inherit `text-transform` values.
117
+ // Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
118
+ // Correct `select` style inheritance in Firefox.
119
+ button,
120
+ select {
121
+ text-transform: none;
122
+ }
123
+
124
+ // 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
125
+ // and `video` controls.
126
+ // 2. Correct inability to style clickable `input` types in iOS.
127
+ // 3. Improve usability and consistency of cursor style between image-type
128
+ // `input` and others.
129
+ button,
130
+ input[type='reset'],
131
+ input[type='submit'] {
132
+ appearance: auto;
133
+ cursor: pointer;
134
+ }
135
+
136
+ // Re-set default cursor for disabled elements.
137
+ button[disabled],
138
+ html input[disabled] {
139
+ cursor: not-allowed;
140
+ }
141
+
142
+ // Remove inner padding and border in Firefox 4+.
143
+ button::-moz-focus-inner,
144
+ input::-moz-focus-inner {
145
+ border: 0;
146
+ padding: 0;
147
+ }
148
+
149
+ // Address Firefox 4+ setting `line-height` on `input` using `!important` in
150
+ // the UA stylesheet.
151
+ input {
152
+ line-height: normal;
153
+ }
154
+
155
+ // It's recommended that you don't attempt to style these elements.
156
+ // Firefox's implementation doesn't respect box-sizing, padding, or width.
157
+ // 1. Address box sizing set to `content-box` in IE 10.
158
+ // 2. Remove excess padding in IE 10.
159
+ input[type='checkbox'],
160
+ input[type='radio'] {
161
+ box-sizing: border-box; // 1
162
+ padding: 0; // 2
163
+ }
164
+
165
+ // Fix the cursor style for Chrome's increment/decrement buttons. For certain
166
+ // `font-size` values of the `input`, it causes the cursor style of the
167
+ // decrement button to change from `default` to `text`.
168
+ input[type='number']::-webkit-inner-spin-button,
169
+ input[type='number']::-webkit-outer-spin-button {
170
+ height: auto;
171
+ }
172
+
173
+ // Remove default vertical scrollbar in IE 10/11.
174
+ textarea {
175
+ overflow: auto;
176
+ }
177
+
178
+ // Tables
179
+ // ==========================================================================
180
+
181
+ // Remove most spacing between table cells.
182
+ table {
183
+ border-collapse: collapse;
184
+ border-spacing: 0;
185
+ }
186
+
187
+ td,
188
+ th {
189
+ padding: 0;
190
+ }
191
+
192
+ // Remove tabIndex component outline
193
+ [tabindex='-1'] {
194
+ outline: none;
195
+ }
196
+
197
+ // Remove Default button Style
198
+ button,
199
+ input[type='button'],
200
+ input[type='submit'],
201
+ input[type='reset'] {
202
+ border-width: 0;
203
+ }
204
+
205
+ // Remove IE10's "clear field" X button on certain inputs
206
+ input::-ms-clear {
207
+ display: none;
208
+ }
209
+
210
+ // Remove File button Style
211
+ input[type='file']::-webkit-file-upload-button,
212
+ input[type='file']::-ms-browse {
213
+ border-width: 0;
214
+ background: transparent;
215
+ color: currentcolor;
216
+ }
217
+
218
+ // Reset fonts for relevant elements
219
+ input,
220
+ button,
221
+ select,
222
+ textarea {
223
+ font-family: inherit;
224
+ font-size: inherit;
225
+ line-height: inherit;
226
+ }
227
+
228
+ // Images
229
+ img {
230
+ vertical-align: middle;
231
+
232
+ // Remove border when inside `a` element in IE 10.
233
+ border: 0;
234
+ }
235
+
236
+ [role='button'] {
237
+ cursor: pointer;
238
+ }
239
+
240
+ // Typography
241
+ // --------------------------------------------------
242
+
243
+ // Headings
244
+ // -------------------------
245
+
246
+ h1,
247
+ h2,
248
+ h3,
249
+ h4,
250
+ h5,
251
+ h6 {
252
+ font-family: var(--rs-heading-font-family);
253
+ font-weight: var(--rs-heading-font-weight);
254
+ color: var(--rs-heading-color);
255
+ }
256
+
257
+ h1 {
258
+ font-size: var(--rs-heading-h1-font-size);
259
+ line-height: var(--rs-heading-h1-line-height);
260
+ }
261
+
262
+ h2 {
263
+ font-size: var(--rs-heading-h2-font-size);
264
+ line-height: var(--rs-heading-h2-line-height);
265
+ }
266
+
267
+ h3 {
268
+ font-size: var(--rs-heading-h3-font-size);
269
+ line-height: var(--rs-heading-h3-line-height);
270
+ }
271
+
272
+ h4 {
273
+ font-size: var(--rs-heading-h4-font-size);
274
+ line-height: var(--rs-heading-h4-line-height);
275
+ }
276
+
277
+ h5 {
278
+ font-size: var(--rs-heading-h5-font-size);
279
+ line-height: var(--rs-heading-h5-line-height);
280
+ }
281
+
282
+ h6 {
283
+ font-size: var(--rs-heading-h6-font-size);
284
+ line-height: var(--rs-heading-h6-line-height);
285
+ }
286
+
287
+ // Emphasis & misc
288
+ // -------------------------
289
+
290
+ // Ex: (12px small font / 14px base font) * 100% = about 85%
291
+ small {
292
+ font-size: var(--rs-font-size-xs);
293
+ }
294
+
295
+ h1 small,
296
+ h2 small,
297
+ h3 small,
298
+ h4 small,
299
+ h5 small,
300
+ h6 small {
301
+ font-weight: normal;
302
+ line-height: 1;
303
+ color: var(--rs-text-disabled);
304
+ }
305
+
306
+ mark {
307
+ background-color: var(--rs-bg-warning);
308
+ padding: 0.2em;
309
+ font-weight: bolder;
310
+ }
311
+
312
+ // Lists
313
+ // -------------------------
314
+
315
+ // Unordered and Ordered lists
316
+ ul,
317
+ ol {
318
+ margin-top: 0;
319
+ margin-bottom: calc(var(--rs-line-height-base) / 2);
320
+
321
+ ul,
322
+ ol {
323
+ margin-bottom: 0;
324
+ }
325
+ }
326
+
327
+ // Description Lists
328
+ dl {
329
+ margin-top: 0; // Remove browser default
330
+ margin-bottom: calc(var(--rs-line-height-base) / 2);
331
+ }
332
+
333
+ dt,
334
+ dd {
335
+ line-height: var(--rs-line-height-md);
336
+ }
337
+
338
+ dt {
339
+ font-weight: bold;
340
+ }
341
+
342
+ dd {
343
+ margin-inline-start: 0; // Undo browser default
344
+ margin-bottom: calc(var(--rs-line-height-base) / 2);
345
+ }
@@ -0,0 +1,132 @@
1
+ // Import color mode stylesheets with CSS custom properties
2
+ @use 'color-modes/light' as light-theme;
3
+ @use 'color-modes/dark' as dark-theme;
4
+ @use 'color-modes/high-contrast' as high-contrast-theme;
5
+
6
+ :root {
7
+ // Font family
8
+ --rs-font-family-base: -apple-system, BlinkMacSystemFont, Arial, Helvetica, 'PingFang SC',
9
+ 'Hiragino Sans GB', 'Microsoft YaHei', STXihei, sans-serif;
10
+ --rs-font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
11
+ 'Courier New', monospace;
12
+
13
+ // Font size
14
+ --rs-font-size-4xs: 0.375rem; // 6px
15
+ --rs-font-size-3xs: 0.5rem; // 8px
16
+ --rs-font-size-2xs: 0.625rem; // 10px
17
+ --rs-font-size-xs: 0.75rem; // 12px
18
+ --rs-font-size-sm: 0.875rem; // 14px
19
+ --rs-font-size-md: 1rem; // 16px
20
+ --rs-font-size-lg: 1.125rem; // 18px
21
+ --rs-font-size-xl: 1.25rem; // 20px
22
+ --rs-font-size-2xl: 1.5rem; // 24px
23
+ --rs-font-size-3xl: 1.875rem; // 30px
24
+ --rs-font-size-4xl: 2.25rem; // 36px
25
+ --rs-font-size-5xl: 3rem; // 48px
26
+ --rs-font-size-6xl: 3.75rem; // 60px
27
+ --rs-font-size-base: var(--rs-font-size-sm);
28
+
29
+ // Line height
30
+ --rs-line-height-base: 20px;
31
+ --rs-line-height-plus: 22px;
32
+ --rs-line-height-xs: calc(20 / 12);
33
+ --rs-line-height-sm: calc(20 / 12);
34
+ --rs-line-height-md: calc(20 / 14);
35
+ --rs-line-height-lg: calc(22 / 16);
36
+
37
+ // Text line height
38
+ --rs-text-line-height-xs: calc(1 / 0.75);
39
+ --rs-text-line-height-sm: calc(1.25 / 0.875);
40
+ --rs-text-line-height-md: calc(1.5 / 1);
41
+ --rs-text-line-height-lg: calc(1.75 / 1.125);
42
+ --rs-text-line-height-xl: calc(1.75 / 1.25);
43
+ --rs-text-line-height-2xl: calc(2 / 1.5);
44
+ --rs-text-line-height-3xl: calc(2.25 / 1.875);
45
+ --rs-text-line-height-4xl: calc(2.5 / 2.25);
46
+ --rs-text-line-height-5xl: 1;
47
+ --rs-text-line-height-6xl: 1;
48
+
49
+ // Spacing
50
+ --rs-spacing: 0.25rem; // 4px
51
+ --rs-spacing-inline-xs: 8px;
52
+ --rs-spacing-block-xs: 2px;
53
+ --rs-spacing-inline-sm: 10px;
54
+ --rs-spacing-block-sm: 5px;
55
+ --rs-spacing-inline-lg: 16px;
56
+ --rs-spacing-block-lg: 10px;
57
+ --rs-padding-inline-md: 12px;
58
+ --rs-padding-block-md: 8px;
59
+
60
+ // Scale
61
+ --rs-scale: 1;
62
+
63
+ // Radius
64
+ --rs-radius-none: 0;
65
+ --rs-radius-xs: 0.125rem; // 2px
66
+ --rs-radius-sm: 0.25rem; // 4px
67
+ --rs-radius-md: 0.375rem; // 6px
68
+ --rs-radius-lg: 0.5rem; // 8px
69
+ --rs-radius-xl: 0.75rem; // 12px
70
+ --rs-radius-2xl: 1rem; // 16px
71
+ --rs-radius-3xl: 1.5rem; // 24px
72
+ --rs-radius-4xl: 2rem; // 32px
73
+ --rs-radius-full: 62.5rem; // 1000px
74
+
75
+ // Shadow colors
76
+ --rs-shadow-color: rgb(0 0 0 / 10%);
77
+ --rs-shadow-color-deep: rgb(0 0 0 / 25%);
78
+
79
+ // Shadows
80
+ --rs-shadow-none: 0 0 #0000;
81
+ --rs-shadow-xs: 0 1px 2px 0 var(--rs-shadow-color);
82
+ --rs-shadow-sm: 0 1px 3px 0 var(--rs-shadow-color), 0 1px 2px 0 var(--rs-shadow-color);
83
+ --rs-shadow-md: 0 4px 6px -1px var(--rs-shadow-color), 0 2px 4px 0 var(--rs-shadow-color);
84
+ --rs-shadow-lg: 0 10px 15px -3px var(--rs-shadow-color), 0 4px 6px 0 var(--rs-shadow-color);
85
+ --rs-shadow-xl: 0 20px 25px -5px var(--rs-shadow-color), 0 8px 10px 0 var(--rs-shadow-color);
86
+ --rs-shadow-2xl: 0 25px 50px -12px var(--rs-shadow-color-deep);
87
+
88
+ // Cursor
89
+ --rs-cursor-disabled: not-allowed;
90
+
91
+ // Link
92
+ --rs-link-hover-decoration: underline;
93
+ --rs-link-active-decoration: underline;
94
+
95
+ // Ripple
96
+ --rs-ripple-bg: rgb(0 0 0 / 20%);
97
+
98
+ // Loader
99
+ --rs-loader-default-size: 1.125rem;
100
+
101
+ // -- Z-index master list
102
+ // Keep this section at the bottom of this file for easier lookup
103
+ // Warning: Avoid customizing these values. They're used for a bird's eye view
104
+ // of components dependent on the z-axis and are designed to all work together.
105
+
106
+ --rs-zindex-date-range-picker-calendar-dropdown: 1;
107
+ --rs-zindex-date-range-picker-table-cell-content: 1;
108
+ --rs-zindex-badge-content: 1;
109
+ --rs-zindex-message-full: 3;
110
+ --rs-zindex-dropdown: 5;
111
+ --rs-zindex-picker-toggle: 5;
112
+ --rs-zindex-picker-input: 6; // picker-toggle + 1
113
+ --rs-zindex-picker-popup: 7; // picker-toggle + 2
114
+ --rs-zindex-list-helper: 99;
115
+ --rs-zindex-modal: 1050;
116
+ --rs-zindex-drawer: 1050;
117
+ --rs-zindex-popover: 1060;
118
+ --rs-zindex-tooltip: 1070;
119
+ --rs-zindex-notification: 1080;
120
+ --rs-zindex-uploader-picture-preview: 1;
121
+ --rs-zindex-uploader-picture-loading-wrapper: 2;
122
+ --rs-zindex-uploader-picture-error-wrapper: 3;
123
+ --rs-zindex-uploader-picture-remove-button: 4;
124
+ --rs-zindex-form-error-message: 5;
125
+ --rs-zindex-table-body-row-wrapper: 0;
126
+ --rs-zindex-table-header-row-wrapper: 2;
127
+ --rs-zindex-table-column-resize-spanner: 3;
128
+ --rs-zindex-table-cell-group-fixed: 4;
129
+ --rs-zindex-table-row-cell-group-shadow: 5;
130
+ --rs-zindex-table-mouse-area: 6;
131
+ --rs-zindex-rate-character-before: 1;
132
+ }
@@ -0,0 +1,48 @@
1
+ // Variables
2
+ // All variables declared in this file is supposed to be customizable by the user
3
+ // This file is ignored by prettier for better alignment
4
+ // See .prettierignore
5
+
6
+ // Import color base and themes - using @forward to make these variables available
7
+ // to files that import this variables file
8
+ @forward 'colors/colors-base';
9
+ @forward 'colors/light';
10
+ @forward 'colors/dark';
11
+ @forward 'colors/high-contrast';
12
+
13
+ // Controls
14
+
15
+ // CSS Resets
16
+ $enable-css-reset: true !default;
17
+
18
+ // Global button ripple switch
19
+ $enable-ripple-effect: true !default;
20
+
21
+ // Whether include styles for dark mode
22
+ $enable-dark-mode: true !default;
23
+
24
+ // Whether include styles for high-contrast mode
25
+ $enable-high-contrast: true !default;
26
+
27
+ // Media queries breakpoints
28
+ // Define the breakpoints at which your layout will change, adapting to different screen sizes.
29
+
30
+ // Small screen / phone
31
+ // $screen-sm
32
+ $screen-sm: 576px !default;
33
+
34
+ // Medium screen / desktop
35
+ // $screen-md
36
+ $screen-md: 768px !default;
37
+
38
+ // Large screen / wide desktop
39
+ // $screen-lg
40
+ $screen-lg: 992px !default;
41
+
42
+ // Extra large devices / extra wide desktop
43
+ // $screen-xl
44
+ $screen-xl: 1200px !default;
45
+
46
+ // Extra extra large devices / ultra wide desktop
47
+ // $screen-xxl
48
+ $screen-xxl: 1400px !default;