rsuite 6.0.1 → 6.1.1

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 (278) 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 +31 -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/DateRangePicker/DateRangePicker.js +6 -0
  191. package/cjs/Form/Form.js +5 -1
  192. package/cjs/Rate/Rate.d.ts +8 -0
  193. package/cjs/Rate/Rate.js +3 -1
  194. package/cjs/Tree/hooks/useFlattenTree.d.ts +4 -0
  195. package/cjs/Tree/hooks/useFlattenTree.js +22 -1
  196. package/cjs/Tree/hooks/useFocusTree.js +19 -1
  197. package/cjs/Tree/hooks/useVirtualizedTreeData.d.ts +1 -0
  198. package/cjs/Tree/hooks/useVirtualizedTreeData.js +5 -2
  199. package/cjs/Tree/utils/focusableTree.d.ts +8 -0
  200. package/cjs/Tree/utils/focusableTree.js +40 -2
  201. package/cjs/Tree/utils/index.d.ts +1 -1
  202. package/cjs/Tree/utils/index.js +3 -1
  203. package/cjs/internals/Picker/utils.d.ts +2 -0
  204. package/cjs/internals/Picker/utils.js +13 -1
  205. package/cjs/internals/StyledBox/StyledBox.d.ts +1 -1
  206. package/cjs/internals/StyledBox/StyledBox.js +2 -2
  207. package/dist/rsuite.js +52 -74
  208. package/dist/rsuite.js.map +1 -1
  209. package/dist/rsuite.min.js +1 -1
  210. package/dist/rsuite.min.js.LICENSE.txt +0 -20
  211. package/dist/rsuite.min.js.map +1 -1
  212. package/esm/Breadcrumb/BreadcrumbItem.js +10 -5
  213. package/esm/CheckTree/CheckTree.js +3 -0
  214. package/esm/CheckTree/CheckTreeView.js +7 -3
  215. package/esm/CheckTree/hooks/useTreeCheckState.d.ts +1 -0
  216. package/esm/CheckTree/hooks/useTreeCheckState.js +55 -4
  217. package/esm/CheckTree/utils.d.ts +9 -2
  218. package/esm/CheckTree/utils.js +71 -12
  219. package/esm/CheckTreePicker/CheckTreePicker.js +1 -0
  220. package/esm/Checkbox/Checkbox.js +3 -2
  221. package/esm/Checkbox/hooks/useIndeterminateCheckbox.d.ts +19 -0
  222. package/esm/Checkbox/hooks/useIndeterminateCheckbox.js +29 -0
  223. package/esm/DateInput/DateInput.js +24 -0
  224. package/esm/DateInput/hooks/useKeyboardInputEvent.d.ts +2 -1
  225. package/esm/DateInput/hooks/useKeyboardInputEvent.js +14 -0
  226. package/esm/DateRangeInput/DateRangeInput.js +24 -0
  227. package/esm/DateRangePicker/DateRangePicker.js +6 -0
  228. package/esm/Form/Form.js +5 -1
  229. package/esm/Rate/Rate.d.ts +8 -0
  230. package/esm/Rate/Rate.js +3 -1
  231. package/esm/Tree/hooks/useFlattenTree.d.ts +4 -0
  232. package/esm/Tree/hooks/useFlattenTree.js +22 -1
  233. package/esm/Tree/hooks/useFocusTree.js +20 -2
  234. package/esm/Tree/hooks/useVirtualizedTreeData.d.ts +1 -0
  235. package/esm/Tree/hooks/useVirtualizedTreeData.js +5 -2
  236. package/esm/Tree/utils/focusableTree.d.ts +8 -0
  237. package/esm/Tree/utils/focusableTree.js +36 -0
  238. package/esm/Tree/utils/index.d.ts +1 -1
  239. package/esm/Tree/utils/index.js +1 -1
  240. package/esm/internals/Picker/utils.d.ts +2 -0
  241. package/esm/internals/Picker/utils.js +13 -1
  242. package/esm/internals/StyledBox/StyledBox.d.ts +1 -1
  243. package/esm/internals/StyledBox/StyledBox.js +2 -2
  244. package/internals/Box/styles/index.scss +31 -0
  245. package/internals/Burger/styles/index.scss +72 -0
  246. package/internals/CloseButton/styles/index.scss +14 -0
  247. package/internals/Picker/styles/_mixin.scss +219 -0
  248. package/internals/Picker/styles/_variables.scss +9 -0
  249. package/internals/Picker/styles/index.scss +476 -0
  250. package/internals/Ripple/styles/_mixins.scss +10 -0
  251. package/internals/Ripple/styles/index.scss +40 -0
  252. package/internals/ScrollView/styles/index.scss +77 -0
  253. package/internals/SearchBox/styles/index.scss +7 -0
  254. package/package.json +4 -4
  255. package/styles/_base.scss +37 -0
  256. package/styles/_css-reset.scss +345 -0
  257. package/styles/_themes.scss +132 -0
  258. package/styles/_variables.scss +48 -0
  259. package/styles/color-modes/_dark.scss +458 -0
  260. package/styles/color-modes/_high-contrast.scss +469 -0
  261. package/styles/color-modes/_light.scss +475 -0
  262. package/styles/colors/_colors-base.scss +39 -0
  263. package/styles/colors/_dark.scss +114 -0
  264. package/styles/colors/_high-contrast.scss +114 -0
  265. package/styles/colors/_light.scss +115 -0
  266. package/styles/colors/_palette.scss +413 -0
  267. package/styles/components.scss +114 -0
  268. package/styles/index.scss +2 -0
  269. package/styles/mixins/_color-modes.scss +20 -0
  270. package/styles/mixins/_combobox.scss +6 -0
  271. package/styles/mixins/_hacks.scss +33 -0
  272. package/styles/mixins/_input.scss +30 -0
  273. package/styles/mixins/_listbox.scss +70 -0
  274. package/styles/mixins/_menu.scss +12 -0
  275. package/styles/mixins/_utilities.scss +130 -0
  276. package/toaster/styles/animation.scss +54 -0
  277. package/toaster/styles/index.scss +109 -0
  278. package/useToaster/styles/index.scss +1 -0
@@ -0,0 +1,114 @@
1
+ // Import common styles
2
+ @use './themes';
3
+ @use './base';
4
+
5
+ // Import component styles
6
+ @use '../Accordion/styles/index' as accordion;
7
+ @use '../Animation/styles/index' as animation;
8
+ @use '../AutoComplete/styles/index' as auto-complete;
9
+ @use '../Avatar/styles/index' as avatar;
10
+ @use '../AvatarGroup/styles/index' as avatar-group;
11
+ @use '../Badge/styles/index' as badge;
12
+ @use '../Breadcrumb/styles/index' as breadcrumb;
13
+ @use '../Button/styles/index' as button;
14
+ @use '../ButtonGroup/styles/index' as button-group;
15
+ @use '../ButtonToolbar/styles/index' as button-toolbar;
16
+ @use '../Calendar/styles/index' as calendar;
17
+ @use '../Container/styles/index' as container;
18
+ @use '../Content/styles/index' as content;
19
+ @use '../Card/styles/index' as card;
20
+ @use '../CardGroup/styles/index' as card-group;
21
+ @use '../Carousel/styles/index' as carousel;
22
+ @use '../Cascader/styles/index' as cascader;
23
+ @use '../CascadeTree/styles/index' as cascade-tree;
24
+ @use '../Center/styles/index' as center;
25
+ @use '../Checkbox/styles/index' as checkbox;
26
+ @use '../CheckboxGroup/styles/index' as checkbox-group;
27
+ @use '../CheckPicker/styles/index' as check-picker;
28
+ @use '../CheckTree/styles/index' as check-tree;
29
+ @use '../CheckTreePicker/styles/index' as check-tree-picker;
30
+ @use '../DateInput/styles/index' as date-input;
31
+ @use '../DatePicker/styles/index' as date-picker;
32
+ @use '../DateRangePicker/styles/index' as date-range-picker;
33
+ @use '../DateRangeInput/styles/index' as date-range-input;
34
+ @use '../Divider/styles/index' as divider;
35
+ @use '../Drawer/styles/index' as drawer;
36
+ @use '../Dropdown/styles/index' as dropdown;
37
+ @use '../FlexboxGrid/styles/index' as flexbox-grid;
38
+ @use '../FormControl/styles/index' as form-control;
39
+ @use '../FormControlLabel/styles/index' as form-control-label;
40
+ @use '../FormErrorMessage/styles/index' as form-error-message;
41
+ @use '../FormGroup/styles/index' as form-group;
42
+ @use '../FormHelpText/styles/index' as form-help-text;
43
+ @use '../FormStack/styles/index' as form-stack;
44
+ @use '../Grid/styles/index' as grid;
45
+ @use '../Header/styles/index' as header;
46
+ @use '../HeadingGroup/styles/index' as heading-group;
47
+ @use '../Heading/styles/index' as heading;
48
+ @use '../Highlight/styles/index' as highlight;
49
+ @use '../IconButton/styles/index' as icon-button;
50
+ @use '../Image/styles/index' as image;
51
+ @use '../InlineEdit/styles/index' as inline-edit;
52
+ @use '../Kbd/styles/index' as kbd;
53
+ @use '../List/styles/index' as list;
54
+ @use '../Menu/styles/index' as menu;
55
+ @use '../Message/styles/index' as message;
56
+ @use '../Input/styles/index' as input;
57
+ @use '../InputGroup/styles/index' as input-group;
58
+ @use '../InputPicker/styles/index' as input-picker;
59
+ @use '../Link/styles/index' as link;
60
+ @use '../Loader/styles/index' as loader;
61
+ @use '../Modal/styles/index' as modal;
62
+ @use '../MultiCascader/styles/index' as multi-cascader;
63
+ @use '../MultiCascadeTree/styles/index' as multi-cascade-tree;
64
+ @use '../Nav/styles/index' as nav;
65
+ @use '../Navbar/styles/index' as navbar;
66
+ @use '../Notification/styles/index' as notification;
67
+ @use '../NumberInput/styles/index' as number-input;
68
+ @use '../Pagination/styles/index' as pagination;
69
+ @use '../Panel/styles/index' as panel;
70
+ @use '../PanelGroup/styles/index' as panel-group;
71
+ @use '../PasswordInput/styles/index' as password-input;
72
+ @use '../PasswordStrengthMeter/styles/index' as password-strength-meter;
73
+ @use '../PinInput/styles/index' as pin-input;
74
+ @use '../Placeholder/styles/index' as placeholder;
75
+ @use '../Popover/styles/index' as popover;
76
+ @use '../Progress/styles/index' as progress;
77
+ @use '../ProgressCircle/styles/index' as progress-circle;
78
+ @use '../Radio/styles/index' as radio;
79
+ @use '../RadioGroup/styles/index' as radio-group;
80
+ @use '../RadioTile/styles/index' as radio-tile;
81
+ @use '../Rate/styles/index' as rate;
82
+ @use '../SelectPicker/styles/index' as select-picker;
83
+ @use '../SegmentedControl/styles/index' as segmented-control;
84
+ @use '../Sidenav/styles/index' as sidenav;
85
+ @use '../Sidebar/styles/index' as sidebar;
86
+ @use '../Slider/styles/index' as slider;
87
+ @use '../Stack/styles/index' as stack;
88
+ @use '../Stat/styles/index' as stat;
89
+ @use '../StatGroup/styles/index' as stat-group;
90
+ @use '../Steps/styles/index' as steps;
91
+ @use '../Table/styles/index' as table;
92
+ @use '../Tabs/styles/index' as tabs;
93
+ @use '../Tag/styles/index' as tag;
94
+ @use '../TagGroup/styles/index' as tag-group;
95
+ @use '../TagInput/styles/index' as tag-input;
96
+ @use '../TagPicker/styles/index' as tag-picker;
97
+ @use '../Text/styles/index' as text;
98
+ @use '../Textarea/styles/index' as textarea;
99
+ @use '../Timeline/styles/index' as timeline;
100
+ @use '../Toggle/styles/index' as toggle;
101
+ @use '../toaster/styles/index' as toaster;
102
+ @use '../Tooltip/styles/index' as tooltip;
103
+ @use '../Tree/styles/index' as tree;
104
+ @use '../TreePicker/styles/index' as tree-picker;
105
+ @use '../Uploader/styles/index' as uploader;
106
+ @use '../VisuallyHidden/styles/index' as visually-hidden;
107
+
108
+ // Internal Components
109
+ @use '../internals/Burger/styles/index' as burger;
110
+ @use '../internals/Box/styles/index' as box;
111
+ @use '../internals/CloseButton/styles/index' as close-button;
112
+ @use '../internals/Picker/styles/index' as picker;
113
+ @use '../internals/SearchBox/styles/index' as search-box;
114
+ @use '../internals/ScrollView/styles/index' as scroll-view;
@@ -0,0 +1,2 @@
1
+ @use './css-reset';
2
+ @use './components';
@@ -0,0 +1,20 @@
1
+ @use '../variables' as vars;
2
+
3
+ // Rules that take effect in dark mode.
4
+ @mixin dark-mode {
5
+ @if (vars.$enable-dark-mode) {
6
+ [data-theme='dark'] &,
7
+ .rs-theme-dark & {
8
+ @content;
9
+ }
10
+ }
11
+ }
12
+
13
+ @mixin high-contrast-mode {
14
+ @if (vars.$enable-high-contrast) {
15
+ [data-theme='high-contrast'] &,
16
+ .rs-theme-high-contrast & {
17
+ @content;
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,6 @@
1
+ @mixin combobox-indicator-icon {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ height: var(--rs-line-height-base);
5
+ font-size: var(--rs-font-size-sm);
6
+ }
@@ -0,0 +1,33 @@
1
+ // All hacks syntax for all kinds of browsers
2
+
3
+
4
+ // Safari
5
+ // ---------------------
6
+ @mixin safari-display($value) {
7
+ @media not all and (min-resolution: 0.001dpcm) {
8
+ & {
9
+ display: $value;
10
+ }
11
+ }
12
+ }
13
+
14
+ // Safari border-radius + overflow: hidden + CSS transform fix
15
+ // @link https://gist.github.com/ayamflow/b602ab436ac9f05660d9c15190f4fd7b
16
+ @mixin safari-border-radius-overflow-hidden {
17
+ @media not all and (min-resolution: 0.001dpcm) {
18
+ & {
19
+ /* stylelint-disable */
20
+ -webkit-mask-image: -webkit-radial-gradient(white, black);
21
+ mask-image: radial-gradient(white, black);
22
+ /* stylelint-enable */
23
+ }
24
+ }
25
+ }
26
+
27
+ @mixin safari-visibility($value) {
28
+ @media not all and (min-resolution: 0.001dpcm) {
29
+ & {
30
+ visibility: $value;
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,30 @@
1
+ // Radio and Checkbox common styles
2
+ @mixin check-radio-base {
3
+ position: relative;
4
+ align-items: center;
5
+
6
+ // These classes are used on elements with <label> descendants
7
+ &[data-disabled='true'] {
8
+ label {
9
+ cursor: var(--rs-cursor-disabled);
10
+ }
11
+ }
12
+
13
+ label {
14
+ font-weight: normal;
15
+ cursor: pointer;
16
+ }
17
+
18
+ &-inner::before {
19
+ border-color: var(--rs-checkbox-checked-bg);
20
+ }
21
+
22
+ &[data-disabled='true'] label {
23
+ cursor: var(--rs-cursor-disabled);
24
+ }
25
+
26
+ // Disabled text styles.
27
+ &[data-disabled='true'] > &-checker > label {
28
+ color: var(--rs-text-disabled);
29
+ }
30
+ }
@@ -0,0 +1,70 @@
1
+ // ARIA Listboxes and Options
2
+ // used in picker menus, e.g. SelectPicker, CheckPicker, Cascader etc
3
+ //
4
+ // Common usage: (note the orders of different states)
5
+ //
6
+ // .item {
7
+ // @include listbox-option;
8
+ //
9
+ // &:hover,
10
+ // &:focus {
11
+ // @include listbox-option-active;
12
+ // }
13
+ //
14
+ // &-selected {
15
+ // @include listbox-option-selected;
16
+ // }
17
+ //
18
+ // &-disabled {
19
+ // @include listbox-options-disabled;
20
+ // }
21
+ // }
22
+ @use './color-modes' as color-modes;
23
+ @use './utilities' as utils;
24
+
25
+ @mixin listbox {
26
+ list-style: none;
27
+ }
28
+
29
+ @mixin listbox-option($justify: space-between) {
30
+ display: flex;
31
+ justify-content: $justify;
32
+ padding-inline: var(--rs-picker-item-content-padding-horizontal);
33
+ padding-block: var(--rs-picker-item-content-padding-vertical);
34
+ clear: both;
35
+ font-weight: normal;
36
+ line-height: var(--rs-line-height-md);
37
+ color: var(--rs-text-primary);
38
+ cursor: pointer;
39
+ text-decoration: none;
40
+ width: 100%;
41
+ }
42
+
43
+ // "-active" for aria-activedescendant
44
+ @mixin listbox-option-active {
45
+ background-color: var(--rs-listbox-option-hover-bg);
46
+ color: var(--rs-listbox-option-hover-text);
47
+
48
+ @include color-modes.high-contrast-mode {
49
+ @include utils.focus-ring-slim-inset;
50
+
51
+ color: var(--rs-listbox-option-hover-text);
52
+ text-decoration: underline;
53
+ }
54
+ }
55
+
56
+ @mixin listbox-option-selected {
57
+ background-color: var(--rs-listbox-option-selected-bg);
58
+ font-weight: bold;
59
+ color: var(--rs-listbox-option-selected-text);
60
+
61
+ @include color-modes.high-contrast-mode {
62
+ text-decoration: underline;
63
+ }
64
+ }
65
+
66
+ @mixin listbox-options-disabled {
67
+ color: var(--rs-listbox-option-disabled-text);
68
+ background: none;
69
+ cursor: not-allowed;
70
+ }
@@ -0,0 +1,12 @@
1
+ @use './color-modes' as color-modes;
2
+
3
+ // "-active" for `aria-activedescendant`
4
+ @mixin menuitem-active {
5
+ background-color: var(--rs-menuitem-active-bg);
6
+ color: var(--rs-menuitem-active-text);
7
+
8
+ @include color-modes.high-contrast-mode {
9
+ text-decoration: underline;
10
+ box-shadow: inset 0 0 0 2px #fff;
11
+ }
12
+ }
@@ -0,0 +1,130 @@
1
+ // WebKit-style focus
2
+ @mixin tab-focus {
3
+ outline: 0;
4
+ }
5
+
6
+ @mixin reset-link-text-decoration($text-decoration: none) {
7
+ & {
8
+ text-decoration: $text-decoration;
9
+ }
10
+
11
+ &:hover,
12
+ &:focus,
13
+ &:active {
14
+ text-decoration: $text-decoration;
15
+ }
16
+ }
17
+
18
+ @mixin text-emphasis-variant($color) {
19
+ color: $color;
20
+
21
+ a&:hover,
22
+ a&:focus {
23
+ color: darken($color, 10%);
24
+ }
25
+ }
26
+
27
+ // Text overflow
28
+ // Requires inline-block or block for proper styling
29
+
30
+ @mixin ellipsis-basic {
31
+ overflow: hidden;
32
+ text-overflow: ellipsis;
33
+ white-space: nowrap;
34
+ }
35
+
36
+ @mixin ellipsis($substract: 0) {
37
+ @include ellipsis-basic;
38
+ width: 100% - $substract;
39
+ }
40
+
41
+ // Drop shadow
42
+ @mixin drop-shadow($shadow) {
43
+ filter: drop-shadow($shadow);
44
+ }
45
+
46
+ @mixin set-translate-transition($translateX: 0, $translateY: 0) {
47
+ transform: translate(0, 0);
48
+
49
+ &.rs-anim-in {
50
+ transform: translate($translateX, $translateY);
51
+ }
52
+ }
53
+
54
+ @mixin icon-bolder($width: 2px) {
55
+ stroke: currentColor;
56
+ stroke-width: $width;
57
+ stroke-linecap: round;
58
+ }
59
+
60
+ // Useful when adding focus ring to an element
61
+ @mixin with-focus-ring {
62
+ &:focus-visible {
63
+ @include focus-ring;
64
+ }
65
+ }
66
+
67
+ // Useful when appending the ring into an existing :focus rule
68
+ @mixin focus-ring {
69
+ outline: 2px solid var(--rs-focus-ring-color);
70
+ outline-offset: -1px;
71
+ }
72
+
73
+ @mixin focus-ring-slim {
74
+ @include focus-ring;
75
+ outline-width: 2px;
76
+ outline-offset: 0;
77
+ }
78
+
79
+ @mixin focus-ring-inset {
80
+ @include focus-ring;
81
+ outline-offset: -3px;
82
+ }
83
+
84
+ @mixin focus-ring-slim-inset {
85
+ @include focus-ring-inset;
86
+ outline-width: 2px;
87
+ }
88
+
89
+ @mixin focus-ring-outline {
90
+ outline: var(--rs-state-focus-outline);
91
+ }
92
+
93
+ // Border radius helpers
94
+ @mixin border-top-radius($radius) {
95
+ border-start-end-radius: $radius;
96
+ border-start-start-radius: $radius;
97
+ }
98
+
99
+ @mixin border-right-radius($radius) {
100
+ border-end-end-radius: $radius;
101
+ border-start-end-radius: $radius;
102
+ }
103
+
104
+ @mixin border-bottom-radius($radius) {
105
+ border-end-end-radius: $radius;
106
+ border-end-start-radius: $radius;
107
+ }
108
+
109
+ @mixin border-left-radius($radius) {
110
+ border-end-start-radius: $radius;
111
+ border-start-start-radius: $radius;
112
+ }
113
+
114
+ // Make sure events pass through
115
+ @mixin pointer-event-none {
116
+ pointer-events: none;
117
+ }
118
+
119
+ // Clearfix
120
+ @mixin clearfix {
121
+ &::before,
122
+ &::after {
123
+ content: ' ';
124
+ display: table;
125
+ }
126
+
127
+ &::after {
128
+ clear: both;
129
+ }
130
+ }
@@ -0,0 +1,54 @@
1
+ @keyframes notificationMoveIn {
2
+ 0% {
3
+ opacity: 0;
4
+ transform-origin: 0% 0%;
5
+ transform: scaleY(0.8);
6
+ }
7
+
8
+ 100% {
9
+ opacity: 1;
10
+ transform-origin: 0% 0%;
11
+ transform: scaleY(1);
12
+ }
13
+ }
14
+
15
+ @keyframes notificationMoveInLeft {
16
+ from {
17
+ opacity: 0;
18
+ transform: translate3d(-100%, 0, 0);
19
+ }
20
+
21
+ to {
22
+ opacity: 1;
23
+ transform: none;
24
+ }
25
+ }
26
+
27
+ @keyframes notificationMoveInRight {
28
+ from {
29
+ opacity: 0;
30
+ transform: translate3d(100%, 0, 0);
31
+ }
32
+
33
+ to {
34
+ opacity: 1;
35
+ transform: none;
36
+ }
37
+ }
38
+
39
+ @keyframes notificationMoveOut {
40
+ 0% {
41
+ opacity: 1;
42
+ transform-origin: 0% 0%;
43
+ transform: scaleY(1);
44
+ max-height: 100px;
45
+ }
46
+
47
+ 100% {
48
+ opacity: 0;
49
+ transform-origin: 0% 0%;
50
+ transform: scaleY(0.8);
51
+ max-height: 0;
52
+ overflow: hidden;
53
+ }
54
+ }
@@ -0,0 +1,109 @@
1
+ @use './animation';
2
+
3
+ //
4
+ // toaster
5
+ // --------------------------------------------------
6
+
7
+ .rs-toast {
8
+ --rs-toast-shadow: var(--rs-shadow-md);
9
+
10
+ // Reset pointer events ,to overwrite line:16
11
+ pointer-events: auto;
12
+ }
13
+
14
+ .rs-toast-container {
15
+ --rs-toast-spacing: 1.5rem;
16
+
17
+ position: fixed;
18
+ z-index: var(--rs-zindex-notification);
19
+ // Make sure the mouse can penetrate through the gap area.
20
+ pointer-events: none;
21
+ display: flex;
22
+ flex-direction: column;
23
+
24
+ // Notification has box-shadow on rs-notification-content
25
+ .rs-toast:not(.rs-notification) {
26
+ box-shadow: var(--rs-toast-shadow);
27
+ }
28
+
29
+ &-top-center,
30
+ &-bottom-center {
31
+ align-items: center;
32
+ width: 100%;
33
+
34
+ .rs-toast-fade-entered {
35
+ animation-name: notificationMoveIn;
36
+ }
37
+ }
38
+
39
+ &-bottom-start,
40
+ &-top-start {
41
+ align-items: flex-start;
42
+ inset-inline-start: var(--rs-toast-spacing);
43
+
44
+ .rs-toast-fade-entered {
45
+ animation-name: notificationMoveInLeft;
46
+
47
+ [dir='rtl'] & {
48
+ animation-name: notificationMoveInRight;
49
+ }
50
+ }
51
+ }
52
+
53
+ &-bottom-end,
54
+ &-top-end {
55
+ align-items: flex-end;
56
+ inset-inline-end: var(--rs-toast-spacing);
57
+
58
+ .rs-toast-fade-entered {
59
+ margin-inline-start: auto;
60
+ animation-name: notificationMoveInRight;
61
+
62
+ [dir='rtl'] & {
63
+ animation-name: notificationMoveInLeft;
64
+ }
65
+ }
66
+ }
67
+
68
+ &-top-center,
69
+ &-top-start,
70
+ &-top-end {
71
+ top: var(--rs-toast-spacing);
72
+ }
73
+
74
+ &-bottom-center,
75
+ &-bottom-start,
76
+ &-bottom-end {
77
+ bottom: var(--rs-toast-spacing);
78
+ }
79
+ }
80
+
81
+ // Animations
82
+ .rs-toast-fade-entered,
83
+ .rs-toast-fade-exiting {
84
+ animation-fill-mode: forwards;
85
+ }
86
+
87
+ .rs-toast-fade-entered {
88
+ animation-duration: 0.4s;
89
+ animation-timing-function: cubic-bezier(0.99, 0.44, 0.44, 1.35);
90
+ }
91
+
92
+ .rs-toast-fade-exited,
93
+ .rs-toast-fade-entering {
94
+ opacity: 0;
95
+ }
96
+
97
+ // The same to @keyframe notificationMoveOut 100%.
98
+ .rs-toast-fade-exited {
99
+ transform-origin: 0 0;
100
+ transform: scaleY(0.8);
101
+ max-height: 0;
102
+ overflow: hidden;
103
+ }
104
+
105
+ .rs-toast-fade-exiting {
106
+ animation-duration: 0.3s;
107
+ animation-timing-function: cubic-bezier(0.64, 0.65, 0.57, 1.13);
108
+ animation-name: notificationMoveOut;
109
+ }
@@ -0,0 +1 @@
1
+ @use '../../toaster/styles/index';