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,16 @@
1
+ :root {
2
+ --rs-modal-shadow: var(--rs-shadow-lg);
3
+ --rs-modal-margin-top: 4rem;
4
+ --rs-modal-title-font-size: var(--rs-font-size-lg);
5
+ --rs-modal-title-line-height: var(--rs-text-line-height-lg);
6
+ --rs-modal-body-padding: calc(var(--rs-spacing) * 5);
7
+ --rs-modal-content-padding: calc(var(--rs-spacing) * 5);
8
+ --rs-modal-btn-close-spacing: calc(var(--rs-spacing) * 5);
9
+ --rs-modal-footer-gap: calc(var(--rs-spacing) * 2.5);
10
+ --rs-modal-size-xs: 400px;
11
+ --rs-modal-size-sm: 600px;
12
+ --rs-modal-size-md: 800px;
13
+ --rs-modal-size-lg: 968px;
14
+ --rs-modal-max-width: 100%;
15
+ --rs-modal-padding-inline: calc(var(--rs-spacing) * 5);
16
+ }
@@ -0,0 +1,186 @@
1
+ @use '../../internals/Box/styles/index' as box;
2
+ @use '../../styles/colors/colors-base' as colors;
3
+ @use '../../styles/mixins/utilities' as utils;
4
+ @use './animation';
5
+ @use './variables';
6
+
7
+ //
8
+ // Modals
9
+ // Figma: https://www.figma.com/file/uEq9QBplcKUYZrcWWA3RK2/NXT-UI?node-id=0%3A1348&t=H5h3Dd3AnJVgbAbz-4
10
+ // --------------------------------------------------
11
+
12
+ // Container that the modal scrolls within
13
+ .rs-modal {
14
+ display: none;
15
+ overflow: visible;
16
+ // Prevent Chrome on Windows from adding a focus outline. For details, see
17
+ // https://github.com/twbs/bootstrap/pull/10951.
18
+ outline: 0;
19
+ margin: var(--rs-modal-margin-top) auto 0 auto;
20
+ position: relative;
21
+ width: var(--rs-modal-size, auto);
22
+ max-width: var(--rs-modal-max-width);
23
+ padding-inline: var(--rs-modal-padding-inline);
24
+ z-index: var(--rs-zindex-modal);
25
+
26
+ // Size variants
27
+ $sizes: lg, md, sm, xs;
28
+
29
+ @each $size in $sizes {
30
+ &.rs-modal-#{$size} {
31
+ --rs-modal-size: var(--rs-modal-size-#{$size});
32
+ }
33
+ }
34
+
35
+ &.rs-modal-full {
36
+ --rs-modal-padding-inline: 0;
37
+
38
+ margin: 0;
39
+ height: 100%;
40
+
41
+ .rs-modal-dialog {
42
+ position: absolute;
43
+ height: 100%;
44
+ width: 100%;
45
+ border-radius: var(--rs-radius-none);
46
+ display: flex;
47
+ flex-direction: column;
48
+
49
+ .rs-modal-header {
50
+ flex: 0 0 auto;
51
+ }
52
+
53
+ .rs-modal-body {
54
+ flex: 1 1 auto;
55
+ overflow: auto;
56
+ }
57
+
58
+ .rs-modal-footer {
59
+ flex: 0 0 auto;
60
+ }
61
+ }
62
+ }
63
+
64
+ &.rs-modal-fill {
65
+ .rs-modal-dialog,
66
+ .rs-modal-body {
67
+ margin: 0;
68
+ padding: 0;
69
+ }
70
+ }
71
+
72
+ // Actual modal
73
+ .rs-modal-dialog {
74
+ position: relative;
75
+ background-color: var(--rs-bg-overlay);
76
+ border: var(--rs-modal-border, none);
77
+ border-radius: var(--rs-radius-md);
78
+ // Remove focus outline from opened modal
79
+ outline: 0;
80
+ box-shadow: var(--rs-modal-shadow);
81
+ padding: var(--rs-modal-content-padding);
82
+ overflow: auto;
83
+ }
84
+
85
+ // Modal header
86
+ // Top section of the modal w/ title and dismiss
87
+ .rs-modal-header {
88
+ @include utils.clearfix;
89
+
90
+ padding-inline-end: var(--rs-line-height-base);
91
+
92
+ .rs-modal-header-close {
93
+ position: absolute;
94
+ padding: 0;
95
+ top: var(--rs-modal-btn-close-spacing);
96
+ inset-inline-end: var(--rs-modal-btn-close-spacing);
97
+ }
98
+ }
99
+
100
+ .rs-modal-title {
101
+ font-weight: normal;
102
+ font-size: var(--rs-modal-title-font-size);
103
+ line-height: var(--rs-modal-title-line-height);
104
+ width: 100%;
105
+ display: block;
106
+ color: var(--rs-text-heading);
107
+ margin: 0;
108
+ @include utils.ellipsis;
109
+ }
110
+
111
+ // Modal body
112
+ // Where all modal content resides (sibling of .modal-header and .modal-footer)
113
+ .rs-modal-body {
114
+ position: relative;
115
+
116
+ margin-top: var(--rs-modal-body-padding);
117
+ // Make sure input error message don't overflow.
118
+ padding-bottom: var(--rs-modal-body-padding);
119
+ }
120
+
121
+ // Footer (for actions)
122
+ .rs-modal-footer {
123
+ display: flex;
124
+ justify-content: flex-end;
125
+ gap: var(--rs-modal-footer-gap);
126
+ }
127
+ }
128
+
129
+ // Modal background
130
+ .rs-modal-backdrop {
131
+ position: fixed;
132
+ top: 0;
133
+ inset-inline-start: 0;
134
+ width: 100vw;
135
+ height: 100vh;
136
+ z-index: calc(var(--rs-zindex-modal) - 1);
137
+ background-color: var(--rs-bg-backdrop);
138
+
139
+ // Fade for backdrop
140
+ &.rs-anim-fade {
141
+ opacity: 0;
142
+ transition: opacity 0.3s ease-in;
143
+ }
144
+
145
+ &.rs-anim-in {
146
+ opacity: 1;
147
+ }
148
+ }
149
+
150
+ // Kill the scroll on the body
151
+ .rs-modal-open {
152
+ overflow: hidden;
153
+ }
154
+
155
+ .rs-modal-wrapper {
156
+ position: fixed;
157
+ overflow: auto;
158
+ z-index: var(--rs-zindex-modal);
159
+ top: 0;
160
+ inset-inline-start: 0;
161
+ width: 100%;
162
+ height: 100%;
163
+
164
+ &.rs-modal-centered {
165
+ display: flex;
166
+ justify-content: center;
167
+ align-items: center;
168
+
169
+ .rs-modal {
170
+ margin: auto;
171
+ }
172
+ }
173
+ }
174
+
175
+ .rs-modal-shake .rs-modal-dialog {
176
+ animation: 0.3s linear shakeHead;
177
+ }
178
+
179
+ // Measure scrollbar width for padding body during modal show/hide
180
+ .rs-modal-scrollbar-measure {
181
+ position: absolute;
182
+ top: -9999px;
183
+ width: 50px;
184
+ height: 50px;
185
+ overflow: scroll;
186
+ }
@@ -0,0 +1,35 @@
1
+ @use '../../internals/Box/styles/index' as box;
2
+ @use '../../CascadeTree/styles/index' as cascade-tree;
3
+ @use '../../Checkbox/styles/index' as checkbox;
4
+ @use '../../internals/Picker/styles/index' as picker;
5
+
6
+ // MultiCascadeTree
7
+ // ----------------------
8
+
9
+ .rs-cascade-tree {
10
+ &-items {
11
+ --rs-check-item-padding-inline: calc(var(--rs-spacing) * 3);
12
+ --rs-check-item-padding-block: calc(var(--rs-spacing) * 2);
13
+ }
14
+
15
+ &-items .rs-checkbox-label {
16
+ display: flex;
17
+ align-items: center;
18
+ justify-content: space-between;
19
+ gap: var(--rs-spacing);
20
+ flex: 1 1 auto;
21
+ }
22
+
23
+ &-items .rs-check-item.rs-check-item-focus,
24
+ &-items .rs-check-item.rs-checkbox-checked {
25
+ .rs-checkbox-checker > label {
26
+ font-weight: bold;
27
+ }
28
+ }
29
+
30
+ &-column.rs-cascade-tree-column-uncheckable {
31
+ .rs-check-item .rs-checkbox-checker > label {
32
+ padding-inline-start: var(--rs-picker-item-content-padding-horizontal);
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,3 @@
1
+ @use '../../internals/Box/styles/index';
2
+ @use '../../MultiCascadeTree/styles/index' as multi-cascade-tree;
3
+ @use '../../internals/Picker/styles/index' as picker;
@@ -0,0 +1,383 @@
1
+ @use '../../internals/Box/styles/index' as box;
2
+ @use '../../internals/Ripple/styles/index' as ripple;
3
+ @use '../../styles/mixins/utilities' as utilities;
4
+ @use '../../styles/mixins/hacks' as hacks;
5
+ @use '../../styles/mixins/color-modes' as color-modes;
6
+ @use '../../Dropdown/styles/index' as dropdown;
7
+
8
+ //
9
+ // Navs
10
+ // --------------------------------------------------
11
+
12
+ // Base class
13
+ // --------------------------------------------------
14
+ .rs-nav {
15
+ --rs-nav-caret-font-size: var(--rs-font-size-md);
16
+ --rs-nav-pills-item-shadow: var(--rs-shadow-sm);
17
+ --rs-nav-item-transition: color 0.15s ease-out, background-color 0.15s ease-out;
18
+
19
+ position: relative;
20
+ outline: 0;
21
+
22
+ // Rest dropdown height
23
+ .rs-dropdown > .rs-dropdown-toggle {
24
+ height: 36px;
25
+ vertical-align: bottom;
26
+ }
27
+
28
+ // Ripple
29
+ &[data-appearance='default'] &-item,
30
+ &[data-appearance='tabs'] &-item {
31
+ @include ripple.with-ripple;
32
+
33
+ & {
34
+ transition: var(--rs-nav-item-transition);
35
+ }
36
+ }
37
+ }
38
+
39
+ // Nav item
40
+ .rs-nav-item {
41
+ padding: 8px 12px;
42
+ cursor: pointer;
43
+ color: var(--rs-navs-text);
44
+ font-size: var(--rs-font-size-sm);
45
+ background: transparent;
46
+ transition: var(--rs-nav-item-transition);
47
+ @include utilities.ellipsis-basic;
48
+ @include hacks.safari-border-radius-overflow-hidden;
49
+
50
+ & {
51
+ outline: none;
52
+ }
53
+ @include utilities.reset-link-text-decoration(none);
54
+
55
+ @include color-modes.high-contrast-mode {
56
+ transition: none;
57
+ }
58
+
59
+ &:hover,
60
+ &:focus,
61
+ &.rs-nav-item-focus {
62
+ color: var(--rs-navs-text-hover);
63
+
64
+ @include color-modes.high-contrast-mode {
65
+ text-decoration: underline;
66
+ }
67
+ }
68
+
69
+ &:focus-visible {
70
+ @include utilities.focus-ring-slim;
71
+ z-index: 2;
72
+ }
73
+
74
+ &:active {
75
+ color: var(--rs-navs-text-active);
76
+
77
+ @include color-modes.high-contrast-mode {
78
+ text-decoration: underline;
79
+ }
80
+ }
81
+
82
+ &[data-disabled='true'] {
83
+ cursor: not-allowed;
84
+ pointer-events: none;
85
+ color: var(--rs-text-disabled);
86
+ }
87
+
88
+ &[data-active='true'] {
89
+ position: relative;
90
+ color: var(--rs-navs-selected);
91
+ z-index: 1;
92
+
93
+ @include color-modes.high-contrast-mode {
94
+ text-decoration: underline;
95
+ }
96
+ }
97
+
98
+ &-icon {
99
+ margin-inline-end: 6px;
100
+ }
101
+
102
+ &-caret {
103
+ font-size: var(--rs-nav-caret-font-size);
104
+ vertical-align: text-bottom;
105
+ margin-inline-start: 6px;
106
+ }
107
+ }
108
+
109
+ // Orientations
110
+ .rs-nav[data-direction='horizontal'] {
111
+ white-space: nowrap;
112
+
113
+ > .rs-nav-item {
114
+ display: inline-flex;
115
+ align-items: center;
116
+ justify-content: center;
117
+ vertical-align: top;
118
+ }
119
+
120
+ // Waterline
121
+ .rs-nav-bar {
122
+ position: absolute;
123
+ bottom: 0;
124
+ width: 100%;
125
+ }
126
+
127
+ // ** Reversed
128
+ &[data-reversed='true'] .rs-nav-bar {
129
+ bottom: auto;
130
+ top: 0;
131
+ }
132
+ }
133
+
134
+ .rs-nav[data-direction='vertical'] {
135
+ > .rs-nav-item {
136
+ display: flex;
137
+ align-items: center;
138
+ }
139
+
140
+ > .rs-dropdown {
141
+ width: 100%;
142
+
143
+ > .rs-dropdown-toggle {
144
+ width: 100%;
145
+ text-align: start;
146
+ z-index: 0;
147
+ }
148
+ }
149
+
150
+ // Waterline
151
+ .rs-nav-bar {
152
+ display: block;
153
+ position: absolute;
154
+ top: 0;
155
+ bottom: 0;
156
+ inset-inline-end: 0;
157
+ }
158
+
159
+ // ** Reversed
160
+ &[data-reversed='true'] .rs-nav-bar {
161
+ inset-inline-end: auto;
162
+ }
163
+ }
164
+
165
+ // Alternate Navs
166
+ // --------------------------------------------------
167
+
168
+ // Default Nav
169
+ .rs-nav[data-appearance='default'] {
170
+ .rs-nav-item {
171
+ border-radius: var(--rs-radius-md);
172
+
173
+ &:hover {
174
+ background: var(--rs-navs-bg-hover);
175
+ }
176
+ }
177
+ }
178
+
179
+ // Tab Nav
180
+ .rs-nav[data-appearance='tabs'] {
181
+ .rs-nav-item {
182
+ &:hover,
183
+ &:focus {
184
+ background: var(--rs-navs-bg-hover);
185
+ }
186
+
187
+ &[data-active='true'] {
188
+ border: 1px solid var(--rs-navs-tab-border);
189
+ background-color: var(--rs-bg-card);
190
+ z-index: 1;
191
+ }
192
+ }
193
+
194
+ // Horizontal
195
+ &[data-direction='horizontal'] {
196
+ //Nav content
197
+ > .rs-nav-item,
198
+ > .rs-dropdown .rs-dropdown-toggle {
199
+ border-top-left-radius: var(--rs-radius-md);
200
+ border-top-right-radius: var(--rs-radius-md);
201
+ }
202
+
203
+ // ** Waterline
204
+ .rs-nav-bar {
205
+ border-top: 1px solid var(--rs-navs-tab-border);
206
+ }
207
+
208
+ // ** Active
209
+ .rs-nav-item[data-active='true'] {
210
+ border-bottom-width: 0;
211
+ }
212
+
213
+ // Reversed
214
+ &[data-reversed='true'] {
215
+ > .rs-nav-item,
216
+ > .rs-dropdown .rs-dropdown-toggle {
217
+ border-top-left-radius: var(--rs-radius-none);
218
+ border-top-right-radius: var(--rs-radius-none);
219
+ border-bottom-left-radius: var(--rs-radius-md);
220
+ border-bottom-right-radius: var(--rs-radius-md);
221
+ }
222
+ .rs-nav-item[data-active='true'] {
223
+ border-bottom-width: 1px;
224
+ border-top-width: 0;
225
+ }
226
+ }
227
+ }
228
+
229
+ // Vertical
230
+ &[data-direction='vertical'] {
231
+ //Nav content
232
+ > .rs-nav-item,
233
+ > .rs-dropdown .rs-dropdown-toggle {
234
+ border-end-start-radius: var(--rs-radius-md);
235
+ border-start-start-radius: var(--rs-radius-md);
236
+ }
237
+
238
+ // ** Waterline
239
+ .rs-nav-bar {
240
+ width: 1px;
241
+ background: var(--rs-navs-tab-border);
242
+ }
243
+
244
+ // ** Active
245
+ .rs-nav-item[data-active='true'] {
246
+ border-inline-end-width: 0;
247
+ }
248
+
249
+ // Reversed active item
250
+ &[data-reversed='true'] {
251
+ > .rs-nav-item,
252
+ > .rs-dropdown .rs-dropdown-toggle {
253
+ border-start-start-radius: var(--rs-radius-none);
254
+ border-end-start-radius: var(--rs-radius-none);
255
+ border-start-end-radius: var(--rs-radius-md);
256
+ border-end-end-radius: var(--rs-radius-md);
257
+ }
258
+ .rs-nav-item[data-active='true'] {
259
+ border-inline-start-width: 0;
260
+ border-inline-end-width: 1px;
261
+ }
262
+ }
263
+ }
264
+ }
265
+
266
+ // Subtle Nav
267
+ .rs-nav[data-appearance='subtle'] {
268
+ .rs-nav-item {
269
+ position: relative;
270
+
271
+ &:hover,
272
+ &:focus {
273
+ color: var(--rs-navs-selected);
274
+ }
275
+
276
+ &[data-active='true']::before {
277
+ content: '';
278
+ position: absolute;
279
+ background-color: var(--rs-navs-selected);
280
+ display: block;
281
+ z-index: 1;
282
+ }
283
+ }
284
+
285
+ // Horizontal
286
+ &[data-direction='horizontal'] {
287
+ //Waterline
288
+ .rs-nav-bar {
289
+ border-top: 2px solid var(--rs-navs-subtle-border);
290
+ }
291
+
292
+ // Active item
293
+ .rs-nav-item[data-active='true']::before {
294
+ bottom: 0;
295
+ inset-inline-start: 0;
296
+ inset-inline-end: 0;
297
+ height: 2px;
298
+ }
299
+
300
+ // Reversed
301
+ &[data-reversed='true'] .rs-nav-item[data-active='true']::before {
302
+ bottom: auto;
303
+ top: 0;
304
+ }
305
+ }
306
+
307
+ // Vertical
308
+ &[data-direction='vertical'] {
309
+ display: flex;
310
+ flex-direction: column;
311
+
312
+ // Waterline
313
+ .rs-nav-bar {
314
+ width: 2px;
315
+ background: var(--rs-navs-subtle-border);
316
+ }
317
+
318
+ // Active item
319
+ .rs-nav-item[data-active='true']::before {
320
+ inset-inline-end: 0;
321
+ top: 0;
322
+ bottom: 0;
323
+ width: 2px;
324
+ }
325
+
326
+ // Reversed
327
+ &[data-reversed='true'] .rs-nav-item[data-active='true']::before {
328
+ inset-inline-end: auto;
329
+ inset-inline-start: 0;
330
+ }
331
+ }
332
+ }
333
+
334
+ // Pills Nav
335
+ .rs-nav[data-appearance='pills'] {
336
+ display: inline-flex;
337
+ background-color: var(--rs-navs-pills-bg);
338
+ border-radius: var(--rs-radius-md);
339
+ padding: 4px;
340
+ width: max-content;
341
+
342
+ .rs-nav-item {
343
+ border-radius: var(--rs-radius-md);
344
+ position: relative;
345
+ padding: 4px 12px;
346
+ color: var(--rs-navs-pills-item-color);
347
+
348
+ &[data-active='true'] {
349
+ background-color: var(--rs-navs-pills-item-active-bg);
350
+ color: var(--rs-navs-pills-item-active-color);
351
+ box-shadow: var(--rs-nav-pills-item-shadow);
352
+ }
353
+
354
+ &[data-disabled='true'] {
355
+ color: var(--rs-navs-pills-item-disabled-color);
356
+ }
357
+ }
358
+
359
+ &[data-direction='vertical'] {
360
+ flex-direction: column;
361
+
362
+ .rs-nav-item {
363
+ padding: 6px 12px;
364
+ justify-content: center;
365
+ }
366
+ }
367
+ }
368
+
369
+ // Justified
370
+ .rs-nav[data-justified='true'] {
371
+ display: flex;
372
+ width: 100%;
373
+
374
+ > .rs-nav-item,
375
+ > .rs-dropdown {
376
+ flex: 1 1 1%;
377
+ }
378
+
379
+ > .rs-dropdown .rs-dropdown-toggle {
380
+ width: 100%;
381
+ text-align: start;
382
+ }
383
+ }