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,13 @@
1
+ :root {
2
+ --rs-tag-border-radius: var(--rs-radius-md);
3
+ --rs-tag-spacing: 0.25rem;
4
+ --rs-tag-font-size-sm: var(--rs-font-size-xs);
5
+ --rs-tag-font-size-md: var(--rs-font-size-xs);
6
+ --rs-tag-font-size-lg: var(--rs-font-size-sm);
7
+ --rs-tag-padding-sm: 0 8px;
8
+ --rs-tag-padding-md: 2px 8px;
9
+ --rs-tag-padding-lg: 5px 10px;
10
+ --rs-tag-line-height-sm: var(--rs-line-height-sm);
11
+ --rs-tag-line-height-md: var(--rs-line-height-sm);
12
+ --rs-tag-line-height-lg: var(--rs-line-height-md);
13
+ }
@@ -0,0 +1,62 @@
1
+ @use '../../internals/Box/styles/index' as box;
2
+ @use '../../internals/CloseButton/styles/index' as close-button;
3
+ @use '../../styles/mixins/utilities' as utils;
4
+ @use '../../styles/mixins/color-modes' as color-modes;
5
+ @use 'variables';
6
+
7
+ //
8
+ // Tags
9
+ // --------------------------------------------------
10
+
11
+ .rs-tag {
12
+ // Base styles
13
+ display: inline-flex;
14
+ align-items: center;
15
+ box-sizing: border-box;
16
+ gap: var(--rs-tag-spacing);
17
+ border-radius: var(--rs-tag-border-radius);
18
+ padding: var(--rs-tag-padding, var(--rs-tag-padding-md));
19
+ font-size: var(--rs-tag-font-size, var(--rs-tag-font-size-md));
20
+ line-height: var(--rs-tag-line-height, var(--rs-tag-line-height-md));
21
+ background-color: var(--rs-tag-bg);
22
+ color: var(--rs-tag-text, var(--rs-text-primary));
23
+
24
+ // Close icon
25
+ &-icon-close {
26
+ padding: 0;
27
+ }
28
+
29
+ // Size variants
30
+ @each $size in (lg, md, sm) {
31
+ &[data-size='#{$size}'] {
32
+ --rs-tag-padding: var(--rs-tag-padding-#{$size});
33
+ --rs-tag-font-size: var(--rs-tag-font-size-#{$size});
34
+ --rs-tag-line-height: var(--rs-tag-line-height-#{$size});
35
+ }
36
+ }
37
+
38
+ // Colorful tags
39
+ @each $color
40
+ in (
41
+ 'primary',
42
+ 'secondary',
43
+ 'success',
44
+ 'warning',
45
+ 'error',
46
+ 'info',
47
+ 'dark',
48
+ 'cyan',
49
+ 'violet',
50
+ 'orange',
51
+ 'yellow',
52
+ 'green',
53
+ 'red',
54
+ 'blue'
55
+ )
56
+ {
57
+ &[data-color='#{$color}'] {
58
+ --rs-tag-bg: var(--rs-#{$color}-500);
59
+ --rs-tag-text: #fff;
60
+ }
61
+ }
62
+ }
@@ -0,0 +1,14 @@
1
+ @use '../../internals/Box/styles/index' as box;
2
+
3
+ //
4
+ // Tag Group
5
+ // --------------------------------------------------
6
+
7
+ .rs-tag-group {
8
+ --rs-tag-group-gap: 0.625rem; // 10px
9
+
10
+ display: flex;
11
+ align-items: center;
12
+ flex-wrap: wrap;
13
+ gap: var(--rs-tag-group-gap);
14
+ }
@@ -0,0 +1,5 @@
1
+ @use '../../TagPicker/styles/index';
2
+
3
+ .rs-picker[data-disabled-options='true'] {
4
+ --rs-picker-textbox-margin-inline: var(--rs-picker-textbox-min-height);
5
+ }
@@ -0,0 +1,141 @@
1
+ @use '../../internals/Box/styles/index' as box;
2
+ @use '../../styles/mixins/utilities' as utils;
3
+ @use '../../styles/mixins/color-modes' as color-modes;
4
+ @use '../../InputPicker/styles/index' as input-picker;
5
+ @use '../../CheckPicker/styles/index' as check-picker;
6
+ @use '../../internals/Picker/styles/mixin' as picker-mixin;
7
+
8
+ .rs-picker[data-picker='tag'] {
9
+ --rs-tag-picker-input-font-size-xs: var(--rs-font-size-xs);
10
+ --rs-tag-picker-input-font-size-sm: var(--rs-font-size-sm);
11
+ --rs-tag-picker-input-font-size-md: var(--rs-font-size-sm);
12
+ --rs-tag-picker-input-font-size-lg: var(--rs-font-size-md);
13
+ --rs-tag-border-radius: var(--rs-radius-sm);
14
+ --rs-tag-picker-padding-block: calc(var(--rs-padding-block-md) - 1px);
15
+
16
+ position: relative;
17
+ border-width: 1px;
18
+ border-style: solid;
19
+ border-color: var(--rs-picker-toggle-border-color, var(--rs-border-primary));
20
+ border-radius: var(--rs-radius-md);
21
+ transition: var(--rs-picker-transition);
22
+ background-color: var(--rs-input-bg);
23
+ overflow: hidden;
24
+
25
+ .rs-picker-toggle {
26
+ position: absolute;
27
+ height: 100%;
28
+ width: 100%;
29
+ border: none !important;
30
+ height: var(--rs-picker-input-height, 100%);
31
+ inset-inline-start: 0;
32
+ cursor: text;
33
+ box-shadow: none;
34
+ padding-block: var(--rs-tag-picker-padding-block);
35
+ }
36
+
37
+ .rs-picker-textbox {
38
+ // Set the minimum width of the text box according to the default 20 characters in the browser
39
+ // Consistent with InputPicker
40
+ min-width: calc(20 * 0.5875rem);
41
+ margin-inline-end: var(--rs-picker-textbox-min-height);
42
+ }
43
+
44
+ .rs-tag {
45
+ vertical-align: top;
46
+ @include utils.ellipsis-basic();
47
+ }
48
+
49
+ .rs-picker-search {
50
+ > input {
51
+ background: none;
52
+ outline: none;
53
+ border: none;
54
+ width: 100%;
55
+ }
56
+
57
+ &,
58
+ &-input,
59
+ &-input > input {
60
+ display: inline-block;
61
+ width: auto;
62
+ min-width: 14px;
63
+ }
64
+
65
+ &-input > input {
66
+ padding: 0;
67
+ border: transparent;
68
+ background: transparent;
69
+ }
70
+ }
71
+
72
+ .rs-picker-textbox {
73
+ min-height: var(--rs-picker-textbox-min-height, 34px);
74
+ position: relative;
75
+ // make sure tag in front of toggle
76
+ z-index: calc(var(--rs-zindex-picker-toggle) + 1);
77
+
78
+ .rs-picker-search-input {
79
+ font-size: var(--rs-tag-picker-input-font-size, 0.875rem);
80
+ padding: var(--rs-tag-picker-input-padding, 2px 4px);
81
+ }
82
+ }
83
+
84
+ .rs-picker-tag-list {
85
+ display: inline-flex;
86
+ flex-wrap: wrap;
87
+ align-items: flex-start;
88
+ gap: var(--rs-tag-spacing, 4px);
89
+ padding: var(--rs-tag-list-padding, 4px);
90
+ padding-inline-end: 0;
91
+
92
+ .rs-tag {
93
+ border-radius: var(--rs-tag-border-radius);
94
+ }
95
+ }
96
+ }
97
+
98
+ .rs-plaintext .rs-tag {
99
+ margin: 0;
100
+ }
101
+
102
+ // Tag Picker Size
103
+ // --------------------------------------------------
104
+ .rs-picker[data-picker='tag'] {
105
+ &[data-size='lg'] {
106
+ --rs-tag-spacing: 5px;
107
+ --rs-tag-list-padding: 5px;
108
+ --rs-picker-textbox-min-height: 40px;
109
+ --rs-tag-picker-input-font-size: var(--rs-tag-picker-input-font-size-lg);
110
+ --rs-tag-picker-input-padding: 3px 5px;
111
+ --rs-tag-picker-padding-block: var(--rs-btn-padding-block-lg);
112
+ }
113
+
114
+ // Default size
115
+ &[data-size='md'] {
116
+ --rs-tag-spacing: 5px;
117
+ --rs-tag-list-padding: 5px;
118
+ --rs-picker-textbox-min-height: 34px;
119
+ --rs-tag-picker-input-font-size: var(--rs-tag-picker-input-font-size-md);
120
+ --rs-tag-picker-input-padding: 2px 4px;
121
+ --rs-tag-picker-padding-block: var(--rs-btn-padding-block-md);
122
+ }
123
+
124
+ &[data-size='sm'] {
125
+ --rs-tag-spacing: 4px;
126
+ --rs-tag-list-padding: 4px;
127
+ --rs-picker-textbox-min-height: 28px;
128
+ --rs-tag-picker-input-font-size: var(--rs-tag-picker-input-font-size-sm);
129
+ --rs-tag-picker-input-padding: 0 2px;
130
+ --rs-tag-picker-padding-block: var(--rs-btn-padding-block-sm);
131
+ }
132
+
133
+ &[data-size='xs'] {
134
+ --rs-tag-spacing: 2px;
135
+ --rs-tag-list-padding: 1px;
136
+ --rs-picker-textbox-min-height: 22px;
137
+ --rs-tag-picker-input-font-size: var(--rs-tag-picker-input-font-size-xs);
138
+ --rs-tag-picker-input-padding: 0 1px;
139
+ --rs-tag-picker-padding-block: var(--rs-btn-padding-block-xs);
140
+ }
141
+ }
@@ -0,0 +1,142 @@
1
+ @use '../../internals/Box/styles/index' as box;
2
+ @use '../../styles/mixins/utilities' as utils;
3
+ @use '../../styles/mixins/color-modes' as color-modes;
4
+ @use './variables';
5
+ @use '../../Kbd/styles/mixin' as kbd;
6
+
7
+ // Heading
8
+ // -------------------------
9
+
10
+ .rs-text {
11
+ // Base styles
12
+ font-family: var(--rs-font-family-base);
13
+ margin: 0;
14
+ color: var(--rs-text-color, var(--rs-text-primary));
15
+ font-size: var(--rs-font-size);
16
+ line-height: var(--rs-text-line-height, var(--rs-line-height-md));
17
+ line-clamp: var(--rs-text-max-lines);
18
+
19
+ &.rs-text-muted {
20
+ color: var(--rs-text-secondary);
21
+ }
22
+
23
+ // Text Align: left | center | right | justify
24
+ &-left {
25
+ text-align: start;
26
+ }
27
+
28
+ &-center {
29
+ text-align: center;
30
+ }
31
+
32
+ &-right {
33
+ text-align: end;
34
+ }
35
+
36
+ &-justify {
37
+ text-align: justify;
38
+ }
39
+
40
+ // Text Transform: none | uppercase | lowercase | capitalize
41
+ &-uppercase {
42
+ text-transform: uppercase;
43
+ }
44
+
45
+ &-lowercase {
46
+ text-transform: lowercase;
47
+ }
48
+
49
+ &-capitalize {
50
+ text-transform: capitalize;
51
+ }
52
+
53
+ // Text Weight: thin | light | regular | medium | semibold | bold | extrabold
54
+ &-thin {
55
+ font-weight: var(--rs-text-weight-thin);
56
+ }
57
+
58
+ &-light {
59
+ font-weight: var(--rs-text-weight-light);
60
+ }
61
+
62
+ &-medium {
63
+ font-weight: var(--rs-text-weight-medium);
64
+ }
65
+
66
+ &-semibold {
67
+ font-weight: var(--rs-text-weight-semibold);
68
+ }
69
+
70
+ &-bold {
71
+ font-weight: var(--rs-text-weight-bold);
72
+ }
73
+
74
+ &-extrabold {
75
+ font-weight: var(--rs-text-weight-extrabold);
76
+ }
77
+
78
+ &-pre-line {
79
+ white-space: pre-line;
80
+ }
81
+
82
+ &-ellipsis {
83
+ overflow: hidden;
84
+
85
+ @supports (-webkit-line-clamp: 1) {
86
+ & {
87
+ display: -webkit-box;
88
+ -webkit-box-orient: vertical;
89
+ }
90
+ }
91
+
92
+ @supports not (-webkit-line-clamp: 1) {
93
+ & {
94
+ text-overflow: ellipsis;
95
+ white-space: nowrap;
96
+ word-wrap: break-word;
97
+ }
98
+ }
99
+ }
100
+
101
+ // Colorful tags
102
+ @each $color
103
+ in (
104
+ 'primary',
105
+ 'secondary',
106
+ 'success',
107
+ 'warning',
108
+ 'error',
109
+ 'info',
110
+ 'dark',
111
+ 'cyan',
112
+ 'violet',
113
+ 'orange',
114
+ 'yellow',
115
+ 'green',
116
+ 'red',
117
+ 'blue'
118
+ )
119
+ {
120
+ &-#{$color} {
121
+ --rs-text-color: var(--rs-#{$color}-500);
122
+ }
123
+ }
124
+
125
+ // Size variants
126
+ $sizes: xs, sm, md, lg, xl, 2xl, 3xl, 4xl, 5xl, 6xl;
127
+ @each $size in $sizes {
128
+ &:where([style*='size-#{$size}']) {
129
+ --rs-text-line-height: var(--rs-text-line-height-#{$size});
130
+ }
131
+ }
132
+ }
133
+
134
+ kbd.rs-text {
135
+ @include kbd.kbd();
136
+ }
137
+
138
+ blockquote.rs-text {
139
+ font-style: italic;
140
+ padding-inline-start: 1.5rem;
141
+ border-left: 2px solid var(--rs-gray-200);
142
+ }
@@ -0,0 +1,9 @@
1
+ :root {
2
+ --rs-text-weight-thin: 100;
3
+ --rs-text-weight-light: 300;
4
+ --rs-text-weight-regular: 400;
5
+ --rs-text-weight-medium: 500;
6
+ --rs-text-weight-semibold: 600;
7
+ --rs-text-weight-bold: 700;
8
+ --rs-text-weight-extrabold: 800;
9
+ }
@@ -0,0 +1,9 @@
1
+ @use '../../internals/Box/styles/index' as box;
2
+
3
+ .rs-textarea {
4
+ --rs-textarea-resize: none;
5
+
6
+ overflow: auto;
7
+ resize: var(--rs-textarea-resize);
8
+ height: auto;
9
+ }
@@ -0,0 +1 @@
1
+ @use '../../DatePicker/styles/index';
@@ -0,0 +1 @@
1
+ @use '../../DateRangePicker/styles/index';
@@ -0,0 +1,29 @@
1
+ .custom-timeline {
2
+ margin-inline-start: 20px;
3
+
4
+ .rs-timeline-item-custom-dot {
5
+ .rs-icon {
6
+ position: absolute;
7
+ background: #fff;
8
+ top: 0;
9
+ inset-inline-start: -2px;
10
+ border: 2px solid #ddd;
11
+ width: 40px;
12
+ height: 40px;
13
+ border-radius: var(--rs-radius-full);
14
+ font-size: var(--rs-font-size-lg);
15
+ color: #999;
16
+ margin-inline-start: -13px;
17
+ justify-content: center;
18
+ padding: 8px;
19
+ }
20
+ }
21
+
22
+ .rs-timeline-item-content {
23
+ margin-inline-start: 24px;
24
+ }
25
+ }
26
+
27
+ .rs-timeline-item-content p {
28
+ margin: 0;
29
+ }
@@ -0,0 +1,13 @@
1
+ @mixin time-line-align($align: left) {
2
+ &-align-#{$align} &-item-dot {
3
+ #{$align}: 0;
4
+ }
5
+
6
+ &-align-#{$align} &-item-tail {
7
+ #{$align}: calc(var(--rs-time-line-dot-side-length) / 2 - var(--rs-time-line-tail-width) / 2);
8
+ }
9
+
10
+ &-align-#{$align} &-item {
11
+ padding-#{$align}: var(--rs-time-line-item-content-margin-left);
12
+ }
13
+ }
@@ -0,0 +1,187 @@
1
+ @use '../../internals/Box/styles/index' as box;
2
+ @use '../../styles/mixins/utilities' as utils;
3
+ @use '../../styles/mixins/color-modes' as color-modes;
4
+ @use './mixin';
5
+
6
+ //
7
+ // Time lines
8
+ // --------------------------------------------------
9
+
10
+ .rs-timeline {
11
+ // CSS Variables
12
+ --rs-time-line-tail-min-height: 2.375rem; // 20px + 18px
13
+ --rs-time-line-item-content-margin: 12px;
14
+ --rs-time-line-dot-side-length: 10px;
15
+ --rs-time-line-alternate-time-offset: calc(
16
+ var(--rs-time-line-dot-side-length) / 2 + var(--rs-time-line-item-content-margin)
17
+ ); // 5px + 12px
18
+ --rs-time-line-dot-center-gap: calc(var(--rs-time-line-dot-side-length) / 2);
19
+ --rs-time-line-item-content-padding-bottom: 18px;
20
+ --rs-time-line-tail-width: 2px;
21
+ --rs-time-line-item-padding: calc(
22
+ var(--rs-time-line-item-content-margin) + var(--rs-time-line-dot-side-length)
23
+ );
24
+
25
+ // Base styles
26
+ list-style: none;
27
+ padding: 0;
28
+ margin-bottom: 0;
29
+ direction: ltr;
30
+
31
+ &-item {
32
+ position: relative;
33
+ text-align: start;
34
+ }
35
+
36
+ &-item:not(:last-child) &-item-content {
37
+ padding-bottom: var(--rs-time-line-item-content-padding-bottom);
38
+ }
39
+
40
+ &-item-dot {
41
+ position: absolute;
42
+ top: var(--rs-time-line-dot-center-gap);
43
+
44
+ &::before {
45
+ content: '';
46
+ display: block;
47
+ width: var(--rs-time-line-dot-side-length);
48
+ height: var(--rs-time-line-dot-side-length);
49
+ background-color: var(--rs-timeline-indicator-bg);
50
+ border-radius: var(--rs-radius-full);
51
+ }
52
+ }
53
+
54
+ &-item-custom-dot {
55
+ text-align: center;
56
+
57
+ &::before {
58
+ display: none;
59
+ }
60
+ }
61
+
62
+ &-item-active &-item-dot::before {
63
+ background-color: var(--rs-timeline-indicator-active-bg);
64
+ }
65
+
66
+ &-item-tail {
67
+ position: absolute;
68
+ top: 0;
69
+ bottom: 0;
70
+ width: var(--rs-time-line-tail-width);
71
+ background-color: var(--rs-timeline-indicator-bg);
72
+ }
73
+
74
+ // The first tail need reserved a space.
75
+ &-item:first-child &-item-tail {
76
+ top: var(--rs-time-line-dot-center-gap);
77
+ }
78
+
79
+ // Last item tail need set height.
80
+ &-item:last-child &-item-tail {
81
+ bottom: auto;
82
+ height: calc(var(--rs-time-line-dot-center-gap) + var(--rs-time-line-dot-side-length));
83
+ }
84
+
85
+ &-endless &-item:last-child &-item-tail {
86
+ height: auto;
87
+ min-height: var(--rs-time-line-tail-min-height);
88
+ }
89
+
90
+ &-item:only-child &-item-tail {
91
+ display: none;
92
+ }
93
+
94
+ // Align left
95
+ @include mixin.time-line-align(left);
96
+
97
+ &-align-left &-item {
98
+ padding-inline-start: var(--rs-time-line-item-padding);
99
+ }
100
+
101
+ // Align right
102
+ @include mixin.time-line-align(right);
103
+
104
+ &-align-right &-item {
105
+ padding-inline-end: var(--rs-time-line-item-padding);
106
+ }
107
+
108
+ &-align-right &-item-content {
109
+ text-align: end;
110
+ }
111
+
112
+ // Align alternate
113
+ &-align-alternate &-item-dot {
114
+ inset-inline-start: calc(50% - var(--rs-time-line-dot-side-length) / 2);
115
+ }
116
+
117
+ &-align-alternate &-item-tail {
118
+ inset-inline-start: calc(50% - var(--rs-time-line-tail-width) / 2);
119
+ }
120
+
121
+ &-align-alternate &-item-content {
122
+ width: 50%;
123
+ }
124
+
125
+ &-align-alternate &-item:nth-child(even) &-item-content {
126
+ text-align: end;
127
+ }
128
+
129
+ &-align-alternate &-item:nth-child(odd) {
130
+ text-align: end;
131
+ }
132
+
133
+ &-align-alternate &-item:nth-child(odd) &-item-content {
134
+ display: inline-block;
135
+ text-align: start;
136
+ }
137
+
138
+ // With time
139
+ &-with-time &-item {
140
+ display: flex;
141
+ padding-inline-start: 0;
142
+ }
143
+
144
+ &-with-time &-item-dot {
145
+ inset-inline-start: calc(50% - var(--rs-time-line-dot-side-length) / 2);
146
+ }
147
+
148
+ &-with-time &-item-tail {
149
+ inset-inline-start: calc(50% - var(--rs-time-line-tail-width) / 2);
150
+ }
151
+
152
+ &-with-time &-item-time,
153
+ &-with-time &-item-content {
154
+ flex: 1 0 50%;
155
+ }
156
+
157
+ &-align-alternate &-item:nth-child(2n),
158
+ &-with-time.rs-timeline-align-right &-item {
159
+ flex-direction: row-reverse;
160
+ }
161
+
162
+ &-with-time.rs-timeline-align-right &-item {
163
+ padding-inline-end: 0;
164
+ }
165
+
166
+ &-with-time.rs-timeline-align-left &-item-time {
167
+ text-align: end;
168
+ }
169
+
170
+ &-with-time.rs-timeline-align-right &-item-time {
171
+ text-align: start;
172
+ }
173
+
174
+ &-with-time.rs-timeline-align-left &-item-time,
175
+ &-with-time.rs-timeline-align-right &-item-content,
176
+ &-align-alternate &-item:nth-child(2n + 1) &-item-time,
177
+ &-align-alternate &-item:nth-child(2n) &-item-content {
178
+ padding-inline-end: var(--rs-time-line-alternate-time-offset);
179
+ }
180
+
181
+ &-with-time.rs-timeline-align-left &-item-content,
182
+ &-with-time.rs-timeline-align-right &-item-time,
183
+ &-align-alternate &-item:nth-child(2n + 1) &-item-content,
184
+ &-align-alternate &-item:nth-child(2n) &-item-time {
185
+ padding-inline-start: var(--rs-time-line-alternate-time-offset);
186
+ }
187
+ }