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.
- package/Accordion/styles/index.scss +3 -0
- package/Animation/styles/_animation.scss +95 -0
- package/Animation/styles/_bounce.scss +36 -0
- package/Animation/styles/_collapse.scss +23 -0
- package/Animation/styles/_fade.scss +10 -0
- package/Animation/styles/_mixin.scss +15 -0
- package/Animation/styles/_slide.scss +34 -0
- package/Animation/styles/_variables.scss +4 -0
- package/Animation/styles/index.scss +8 -0
- package/AutoComplete/styles/index.scss +43 -0
- package/Avatar/styles/index.scss +48 -0
- package/AvatarGroup/styles/index.scss +27 -0
- package/Badge/styles/_variables.scss +48 -0
- package/Badge/styles/index.scss +111 -0
- package/Box/styles/index.scss +1 -0
- package/Breadcrumb/styles/index.scss +50 -0
- package/Button/styles/_mixin.scss +83 -0
- package/Button/styles/_variables.scss +38 -0
- package/Button/styles/index.scss +374 -0
- package/ButtonGroup/styles/index.scss +96 -0
- package/ButtonToolbar/styles/index.scss +9 -0
- package/CHANGELOG.md +31 -0
- package/Calendar/styles/_variables.scss +16 -0
- package/Calendar/styles/index.scss +673 -0
- package/Card/styles/index.scss +63 -0
- package/CardGroup/styles/index.scss +10 -0
- package/Carousel/styles/index.scss +204 -0
- package/CascadeTree/styles/_search.scss +39 -0
- package/CascadeTree/styles/index.scss +83 -0
- package/Cascader/styles/index.scss +5 -0
- package/Center/styles/index.scss +11 -0
- package/CheckPicker/styles/index.scss +23 -0
- package/CheckTree/styles/_variables.scss +5 -0
- package/CheckTree/styles/index.scss +121 -0
- package/CheckTreePicker/styles/index.scss +20 -0
- package/Checkbox/styles/_mixin.scss +5 -0
- package/Checkbox/styles/_variables.scss +4 -0
- package/Checkbox/styles/index.scss +158 -0
- package/CheckboxGroup/styles/index.scss +14 -0
- package/Col/styles/index.scss +2 -0
- package/Container/stories/styles.scss +23 -0
- package/Container/styles/index.scss +16 -0
- package/Content/styles/index.scss +6 -0
- package/DateInput/styles/index.scss +1 -0
- package/DatePicker/styles/_mixin.scss +10 -0
- package/DatePicker/styles/index.scss +171 -0
- package/DateRangeInput/styles/index.scss +1 -0
- package/DateRangePicker/styles/index.scss +151 -0
- package/Divider/styles/index.scss +85 -0
- package/Drawer/styles/_mixin.scss +23 -0
- package/Drawer/styles/_variables.scss +18 -0
- package/Drawer/styles/index.scss +244 -0
- package/Dropdown/styles/_mixin.scss +4 -0
- package/Dropdown/styles/_variables.scss +12 -0
- package/Dropdown/styles/index.scss +334 -0
- package/FlexboxGrid/styles/index.scss +82 -0
- package/Footer/styles/index.scss +5 -0
- package/Form/styles/index.scss +3 -0
- package/FormControl/styles/_variables.scss +4 -0
- package/FormControl/styles/index.scss +82 -0
- package/FormControlLabel/styles/index.scss +7 -0
- package/FormErrorMessage/styles/_animation.scss +43 -0
- package/FormErrorMessage/styles/_variables.scss +7 -0
- package/FormErrorMessage/styles/index.scss +146 -0
- package/FormGroup/styles/index.scss +75 -0
- package/FormHelpText/styles/index.scss +21 -0
- package/FormStack/styles/index.scss +15 -0
- package/Grid/styles/_columns.scss +23 -0
- package/Grid/styles/_mixin.scss +110 -0
- package/Grid/styles/_row.scss +44 -0
- package/Grid/styles/_variables.scss +6 -0
- package/Grid/styles/index.scss +115 -0
- package/Header/styles/index.scss +5 -0
- package/Heading/styles/_variables.scss +19 -0
- package/Heading/styles/index.scss +42 -0
- package/HeadingGroup/styles/index.scss +5 -0
- package/Highlight/styles/index.scss +9 -0
- package/IconButton/styles/index.scss +90 -0
- package/Image/styles/index.scss +36 -0
- package/InlineEdit/styles/index.scss +51 -0
- package/Input/styles/_mixin.scss +39 -0
- package/Input/styles/_variables.scss +27 -0
- package/Input/styles/index.scss +23 -0
- package/InputGroup/styles/index.scss +264 -0
- package/InputNumber/styles/index.scss +1 -0
- package/InputPicker/styles/_mixin.scss +7 -0
- package/InputPicker/styles/index.scss +64 -0
- package/Kbd/styles/_mixin.scss +24 -0
- package/Kbd/styles/_variables.scss +13 -0
- package/Kbd/styles/index.scss +21 -0
- package/Link/styles/index.scss +41 -0
- package/List/styles/index.scss +111 -0
- package/Loader/styles/_mixin.scss +37 -0
- package/Loader/styles/_variables.scss +19 -0
- package/Loader/styles/index.scss +120 -0
- package/Menu/styles/index.scss +109 -0
- package/Message/styles/index.scss +189 -0
- package/Modal/styles/_animation.scss +15 -0
- package/Modal/styles/_variables.scss +16 -0
- package/Modal/styles/index.scss +186 -0
- package/MultiCascadeTree/styles/index.scss +35 -0
- package/MultiCascader/styles/index.scss +3 -0
- package/Nav/styles/index.scss +383 -0
- package/Navbar/styles/index.scss +253 -0
- package/Notification/styles/index.scss +116 -0
- package/NumberInput/styles/_mixin.scss +11 -0
- package/NumberInput/styles/index.scss +78 -0
- package/Pagination/styles/_pagination-group.scss +52 -0
- package/Pagination/styles/index.scss +77 -0
- package/Panel/styles/index.scss +122 -0
- package/PanelGroup/styles/index.scss +34 -0
- package/PasswordInput/styles/index.scss +3 -0
- package/PasswordStrengthMeter/styles/index.scss +41 -0
- package/PinInput/styles/index.scss +93 -0
- package/Placeholder/styles/_mixin.scss +9 -0
- package/Placeholder/styles/index.scss +155 -0
- package/Popover/styles/index.scss +224 -0
- package/Popover/styles/mixins.scss +54 -0
- package/Progress/styles/_animation.scss +69 -0
- package/Progress/styles/_mixins.scss +6 -0
- package/Progress/styles/_progress-line.scss +343 -0
- package/Progress/styles/index.scss +3 -0
- package/ProgressCircle/styles/index.scss +2 -0
- package/ProgressCircle/styles/progress-circle.scss +49 -0
- package/Radio/styles/_mixin.scss +5 -0
- package/Radio/styles/_variables.scss +5 -0
- package/Radio/styles/index.scss +147 -0
- package/RadioGroup/styles/_variables.scss +10 -0
- package/RadioGroup/styles/index.scss +83 -0
- package/RadioTile/styles/index.scss +80 -0
- package/RadioTileGroup/styles/index.scss +1 -0
- package/RangeSlider/styles/index.scss +4 -0
- package/Rate/styles/index.scss +141 -0
- package/Row/styles/index.scss +2 -0
- package/SegmentedControl/styles/_mixin.scss +7 -0
- package/SegmentedControl/styles/_variables.scss +43 -0
- package/SegmentedControl/styles/index.scss +147 -0
- package/SelectPicker/styles/index.scss +44 -0
- package/Sidebar/styles/index.scss +17 -0
- package/Sidenav/styles/index.scss +635 -0
- package/Sidenav/styles/mixin.scss +23 -0
- package/Slider/styles/index.scss +298 -0
- package/Stack/styles/_variables.scss +11 -0
- package/Stack/styles/index.scss +79 -0
- package/Stat/styles/index.scss +126 -0
- package/StatGroup/styles/index.scss +10 -0
- package/Steps/styles/index.scss +222 -0
- package/Table/styles/index.scss +473 -0
- package/Table/styles/mixin.scss +8 -0
- package/Tabs/styles/index.scss +24 -0
- package/Tag/styles/_variables.scss +13 -0
- package/Tag/styles/index.scss +62 -0
- package/TagGroup/styles/index.scss +14 -0
- package/TagInput/styles/index.scss +5 -0
- package/TagPicker/styles/index.scss +141 -0
- package/Text/styles/index.scss +142 -0
- package/Text/styles/variables.scss +9 -0
- package/Textarea/styles/index.scss +9 -0
- package/TimePicker/styles/index.scss +1 -0
- package/TimeRangePicker/styles/index.scss +1 -0
- package/Timeline/stories/styles.scss +29 -0
- package/Timeline/styles/_mixin.scss +13 -0
- package/Timeline/styles/index.scss +187 -0
- package/Toggle/styles/index.scss +284 -0
- package/Tooltip/styles/index.scss +160 -0
- package/Tooltip/styles/mixins.scss +56 -0
- package/Tree/styles/_indent-line.scss +8 -0
- package/Tree/styles/_toggle.scss +32 -0
- package/Tree/styles/_variables.scss +8 -0
- package/Tree/styles/index.scss +184 -0
- package/TreePicker/styles/index.scss +16 -0
- package/Uploader/styles/_mixin.scss +11 -0
- package/Uploader/styles/index.scss +491 -0
- package/VisuallyHidden/styles/index.scss +11 -0
- package/cjs/Breadcrumb/BreadcrumbItem.js +12 -7
- package/cjs/CheckTree/CheckTree.js +3 -0
- package/cjs/CheckTree/CheckTreeView.js +7 -3
- package/cjs/CheckTree/hooks/useTreeCheckState.d.ts +1 -0
- package/cjs/CheckTree/hooks/useTreeCheckState.js +54 -3
- package/cjs/CheckTree/utils.d.ts +9 -2
- package/cjs/CheckTree/utils.js +70 -11
- package/cjs/CheckTreePicker/CheckTreePicker.js +1 -0
- package/cjs/Checkbox/Checkbox.js +2 -1
- package/cjs/Checkbox/hooks/useIndeterminateCheckbox.d.ts +19 -0
- package/cjs/Checkbox/hooks/useIndeterminateCheckbox.js +32 -0
- package/cjs/DateInput/DateInput.js +24 -0
- package/cjs/DateInput/hooks/useKeyboardInputEvent.d.ts +2 -1
- package/cjs/DateInput/hooks/useKeyboardInputEvent.js +14 -0
- package/cjs/DateRangeInput/DateRangeInput.js +24 -0
- package/cjs/DateRangePicker/DateRangePicker.js +6 -0
- package/cjs/Form/Form.js +5 -1
- package/cjs/Rate/Rate.d.ts +8 -0
- package/cjs/Rate/Rate.js +3 -1
- package/cjs/Tree/hooks/useFlattenTree.d.ts +4 -0
- package/cjs/Tree/hooks/useFlattenTree.js +22 -1
- package/cjs/Tree/hooks/useFocusTree.js +19 -1
- package/cjs/Tree/hooks/useVirtualizedTreeData.d.ts +1 -0
- package/cjs/Tree/hooks/useVirtualizedTreeData.js +5 -2
- package/cjs/Tree/utils/focusableTree.d.ts +8 -0
- package/cjs/Tree/utils/focusableTree.js +40 -2
- package/cjs/Tree/utils/index.d.ts +1 -1
- package/cjs/Tree/utils/index.js +3 -1
- package/cjs/internals/Picker/utils.d.ts +2 -0
- package/cjs/internals/Picker/utils.js +13 -1
- package/cjs/internals/StyledBox/StyledBox.d.ts +1 -1
- package/cjs/internals/StyledBox/StyledBox.js +2 -2
- package/dist/rsuite.js +52 -74
- package/dist/rsuite.js.map +1 -1
- package/dist/rsuite.min.js +1 -1
- package/dist/rsuite.min.js.LICENSE.txt +0 -20
- package/dist/rsuite.min.js.map +1 -1
- package/esm/Breadcrumb/BreadcrumbItem.js +10 -5
- package/esm/CheckTree/CheckTree.js +3 -0
- package/esm/CheckTree/CheckTreeView.js +7 -3
- package/esm/CheckTree/hooks/useTreeCheckState.d.ts +1 -0
- package/esm/CheckTree/hooks/useTreeCheckState.js +55 -4
- package/esm/CheckTree/utils.d.ts +9 -2
- package/esm/CheckTree/utils.js +71 -12
- package/esm/CheckTreePicker/CheckTreePicker.js +1 -0
- package/esm/Checkbox/Checkbox.js +3 -2
- package/esm/Checkbox/hooks/useIndeterminateCheckbox.d.ts +19 -0
- package/esm/Checkbox/hooks/useIndeterminateCheckbox.js +29 -0
- package/esm/DateInput/DateInput.js +24 -0
- package/esm/DateInput/hooks/useKeyboardInputEvent.d.ts +2 -1
- package/esm/DateInput/hooks/useKeyboardInputEvent.js +14 -0
- package/esm/DateRangeInput/DateRangeInput.js +24 -0
- package/esm/DateRangePicker/DateRangePicker.js +6 -0
- package/esm/Form/Form.js +5 -1
- package/esm/Rate/Rate.d.ts +8 -0
- package/esm/Rate/Rate.js +3 -1
- package/esm/Tree/hooks/useFlattenTree.d.ts +4 -0
- package/esm/Tree/hooks/useFlattenTree.js +22 -1
- package/esm/Tree/hooks/useFocusTree.js +20 -2
- package/esm/Tree/hooks/useVirtualizedTreeData.d.ts +1 -0
- package/esm/Tree/hooks/useVirtualizedTreeData.js +5 -2
- package/esm/Tree/utils/focusableTree.d.ts +8 -0
- package/esm/Tree/utils/focusableTree.js +36 -0
- package/esm/Tree/utils/index.d.ts +1 -1
- package/esm/Tree/utils/index.js +1 -1
- package/esm/internals/Picker/utils.d.ts +2 -0
- package/esm/internals/Picker/utils.js +13 -1
- package/esm/internals/StyledBox/StyledBox.d.ts +1 -1
- package/esm/internals/StyledBox/StyledBox.js +2 -2
- package/internals/Box/styles/index.scss +31 -0
- package/internals/Burger/styles/index.scss +72 -0
- package/internals/CloseButton/styles/index.scss +14 -0
- package/internals/Picker/styles/_mixin.scss +219 -0
- package/internals/Picker/styles/_variables.scss +9 -0
- package/internals/Picker/styles/index.scss +476 -0
- package/internals/Ripple/styles/_mixins.scss +10 -0
- package/internals/Ripple/styles/index.scss +40 -0
- package/internals/ScrollView/styles/index.scss +77 -0
- package/internals/SearchBox/styles/index.scss +7 -0
- package/package.json +4 -4
- package/styles/_base.scss +37 -0
- package/styles/_css-reset.scss +345 -0
- package/styles/_themes.scss +132 -0
- package/styles/_variables.scss +48 -0
- package/styles/color-modes/_dark.scss +458 -0
- package/styles/color-modes/_high-contrast.scss +469 -0
- package/styles/color-modes/_light.scss +475 -0
- package/styles/colors/_colors-base.scss +39 -0
- package/styles/colors/_dark.scss +114 -0
- package/styles/colors/_high-contrast.scss +114 -0
- package/styles/colors/_light.scss +115 -0
- package/styles/colors/_palette.scss +413 -0
- package/styles/components.scss +114 -0
- package/styles/index.scss +2 -0
- package/styles/mixins/_color-modes.scss +20 -0
- package/styles/mixins/_combobox.scss +6 -0
- package/styles/mixins/_hacks.scss +33 -0
- package/styles/mixins/_input.scss +30 -0
- package/styles/mixins/_listbox.scss +70 -0
- package/styles/mixins/_menu.scss +12 -0
- package/styles/mixins/_utilities.scss +130 -0
- package/toaster/styles/animation.scss +54 -0
- package/toaster/styles/index.scss +109 -0
- package/useToaster/styles/index.scss +1 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
@use '../../internals/Box/styles/index' as box;
|
|
2
|
+
|
|
3
|
+
.rs-card-group {
|
|
4
|
+
--rs-card-group-columns: 4;
|
|
5
|
+
--rs-card-group-spacing: 20px;
|
|
6
|
+
|
|
7
|
+
display: grid;
|
|
8
|
+
grid-template-columns: repeat(var(--rs-card-group-columns), 1fr);
|
|
9
|
+
grid-gap: var(--rs-card-group-spacing);
|
|
10
|
+
}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
@use '../../internals/Box/styles/index' as box;
|
|
2
|
+
@use '../../styles/mixins/utilities' as utils;
|
|
3
|
+
|
|
4
|
+
// Carousel
|
|
5
|
+
// ----------------------
|
|
6
|
+
|
|
7
|
+
.rs-carousel {
|
|
8
|
+
--rs-carousel-bar-active-width: 28px;
|
|
9
|
+
--rs-carousel-bar-height: 4px;
|
|
10
|
+
--rs-carousel-bar-width: 18px;
|
|
11
|
+
--rs-carousel-dot-side-length: 10px;
|
|
12
|
+
--rs-carousel-dot-wrapper-side-length: 1.2vw; // 1.2% of the screen width.
|
|
13
|
+
--rs-carousel-handler-margin: 3px;
|
|
14
|
+
--rs-carousel-dot-margin: calc(-1 * var(--rs-carousel-handler-margin));
|
|
15
|
+
--rs-carousel-animation-duration: 0.3s;
|
|
16
|
+
--rs-carousel-handler-transition: background var(--rs-carousel-animation-duration) linear;
|
|
17
|
+
--rs-carousel-toolbar-wrapper-margin: 17px;
|
|
18
|
+
|
|
19
|
+
position: relative;
|
|
20
|
+
height: 400px;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
background-color: var(--rs-carousel-bg);
|
|
23
|
+
|
|
24
|
+
&-content {
|
|
25
|
+
position: relative;
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&-slider {
|
|
32
|
+
position: relative;
|
|
33
|
+
inset-inline-start: 0;
|
|
34
|
+
height: 100%;
|
|
35
|
+
transition: transform var(--rs-carousel-animation-duration) ease;
|
|
36
|
+
will-change: transform;
|
|
37
|
+
|
|
38
|
+
&-item {
|
|
39
|
+
background-color: var(--rs-carousel-bg);
|
|
40
|
+
float: inline-start;
|
|
41
|
+
height: 100%;
|
|
42
|
+
width: 100%;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&-slider-after {
|
|
47
|
+
position: absolute;
|
|
48
|
+
inset-inline-start: 0;
|
|
49
|
+
height: 100%;
|
|
50
|
+
width: 100%;
|
|
51
|
+
background-color: var(--rs-carousel-bg);
|
|
52
|
+
top: 0;
|
|
53
|
+
animation: moveLeftHalf var(--rs-carousel-animation-duration) ease forwards;
|
|
54
|
+
|
|
55
|
+
&-vertical {
|
|
56
|
+
animation: moveLeftHalf-vertical var(--rs-carousel-animation-duration) ease forwards;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&-toolbar {
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
position: absolute;
|
|
65
|
+
|
|
66
|
+
> ul {
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-wrap: wrap;
|
|
69
|
+
list-style: none;
|
|
70
|
+
margin: 0;
|
|
71
|
+
padding: 0;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&-label-wrapper {
|
|
76
|
+
margin: var(--rs-carousel-handler-margin);
|
|
77
|
+
|
|
78
|
+
input {
|
|
79
|
+
width: 0;
|
|
80
|
+
height: 0;
|
|
81
|
+
position: absolute;
|
|
82
|
+
opacity: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
input:checked ~ label {
|
|
86
|
+
background-color: var(--rs-carousel-indicator-active);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&-label {
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
display: block;
|
|
93
|
+
background-color: var(--rs-carousel-indicator);
|
|
94
|
+
transition: var(--rs-carousel-handler-transition);
|
|
95
|
+
transition-property: background, width, height;
|
|
96
|
+
position: relative;
|
|
97
|
+
|
|
98
|
+
&::after {
|
|
99
|
+
content: '';
|
|
100
|
+
position: absolute;
|
|
101
|
+
top: var(--rs-carousel-dot-margin);
|
|
102
|
+
bottom: var(--rs-carousel-dot-margin);
|
|
103
|
+
inset-inline-end: var(--rs-carousel-dot-margin);
|
|
104
|
+
inset-inline-start: var(--rs-carousel-dot-margin);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&:hover {
|
|
108
|
+
background-color: var(--rs-carousel-indicator-hover);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// Handler Shape
|
|
113
|
+
&-shape-dot &-label {
|
|
114
|
+
width: var(--rs-carousel-dot-side-length);
|
|
115
|
+
height: var(--rs-carousel-dot-side-length);
|
|
116
|
+
border-radius: var(--rs-radius-full);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&-shape-bar &-label {
|
|
120
|
+
border-radius: var(--rs-radius-xs);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&-placement-top.rs-carousel-shape-bar &-label,
|
|
124
|
+
&-placement-bottom.rs-carousel-shape-bar &-label {
|
|
125
|
+
width: var(--rs-carousel-bar-width);
|
|
126
|
+
height: var(--rs-carousel-bar-height);
|
|
127
|
+
|
|
128
|
+
&-wrapper input:checked ~ label {
|
|
129
|
+
width: var(--rs-carousel-bar-active-width);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&-placement-left.rs-carousel-shape-bar &-label,
|
|
134
|
+
&-placement-right.rs-carousel-shape-bar &-label {
|
|
135
|
+
width: var(--rs-carousel-bar-height);
|
|
136
|
+
height: var(--rs-carousel-bar-width);
|
|
137
|
+
|
|
138
|
+
&-wrapper input:checked ~ label {
|
|
139
|
+
height: var(--rs-carousel-bar-active-width);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// Placement
|
|
144
|
+
|
|
145
|
+
&-placement-top &-toolbar,
|
|
146
|
+
&-placement-bottom &-toolbar {
|
|
147
|
+
inset-inline-start: 0;
|
|
148
|
+
width: 100%;
|
|
149
|
+
|
|
150
|
+
> ul {
|
|
151
|
+
align-items: center;
|
|
152
|
+
justify-content: center;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&-placement-top &-toolbar {
|
|
157
|
+
top: var(--rs-carousel-toolbar-wrapper-margin);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&-placement-bottom &-toolbar {
|
|
161
|
+
bottom: var(--rs-carousel-toolbar-wrapper-margin);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&-placement-left &-toolbar,
|
|
165
|
+
&-placement-right &-toolbar {
|
|
166
|
+
top: 0;
|
|
167
|
+
width: var(--rs-carousel-dot-wrapper-side-length);
|
|
168
|
+
height: 100%;
|
|
169
|
+
|
|
170
|
+
> ul {
|
|
171
|
+
align-items: center;
|
|
172
|
+
justify-content: center;
|
|
173
|
+
flex-direction: column;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
&-placement-left &-toolbar {
|
|
178
|
+
inset-inline-start: var(--rs-carousel-toolbar-wrapper-margin);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&-placement-right &-toolbar {
|
|
182
|
+
inset-inline-end: var(--rs-carousel-toolbar-wrapper-margin);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@keyframes moveLeftHalf {
|
|
186
|
+
0% {
|
|
187
|
+
transform: none;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
100% {
|
|
191
|
+
transform: translateX(-50%);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
@keyframes moveLeftHalf-vertical {
|
|
196
|
+
0% {
|
|
197
|
+
transform: none;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
100% {
|
|
201
|
+
transform: translateY(-50%);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@use '../../styles/mixins/listbox' as listbox;
|
|
2
|
+
|
|
3
|
+
// Search panel
|
|
4
|
+
.rs-cascade-search-view-panel {
|
|
5
|
+
--rs-cascader-search-panel-max-height: 300px;
|
|
6
|
+
|
|
7
|
+
max-height: var(--rs-cascader-search-panel-max-height);
|
|
8
|
+
margin-top: 6px;
|
|
9
|
+
overflow: auto;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.rs-cascade-search-view-row {
|
|
13
|
+
@include listbox.listbox-option(flex-start);
|
|
14
|
+
|
|
15
|
+
&:hover {
|
|
16
|
+
@include listbox.listbox-option-active;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.rs-cascade-search-view-row-focus {
|
|
20
|
+
@include listbox.listbox-option-active;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&:disabled,
|
|
24
|
+
&.rs-cascade-search-view-row-disabled {
|
|
25
|
+
@include listbox.listbox-options-disabled;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.rs-cascade-search-view-col {
|
|
30
|
+
display: inline-block;
|
|
31
|
+
|
|
32
|
+
&::after {
|
|
33
|
+
content: '\00a0/\00a0'; //content:' / '
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:last-child::after {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
@use '../../internals/Box/styles/index' as box;
|
|
2
|
+
@use '../../styles/mixins/listbox' as listbox;
|
|
3
|
+
@use '../../styles/mixins/combobox' as combobox;
|
|
4
|
+
@use './search';
|
|
5
|
+
|
|
6
|
+
// CascadeTree
|
|
7
|
+
// ----------------------
|
|
8
|
+
|
|
9
|
+
.rs-cascade-tree {
|
|
10
|
+
.rs-highlight-mark {
|
|
11
|
+
padding: 0;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// Menu Items
|
|
16
|
+
.rs-cascade-tree-items {
|
|
17
|
+
padding: 6px 0;
|
|
18
|
+
display: flex;
|
|
19
|
+
|
|
20
|
+
ul,
|
|
21
|
+
li {
|
|
22
|
+
margin: 0;
|
|
23
|
+
padding: 0;
|
|
24
|
+
list-style: none;
|
|
25
|
+
font-size: var(--rs-font-size-sm);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Column
|
|
30
|
+
.rs-cascade-tree-column {
|
|
31
|
+
overflow-y: auto;
|
|
32
|
+
overflow-x: hidden;
|
|
33
|
+
|
|
34
|
+
&-loading {
|
|
35
|
+
padding: 4px;
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
|
|
40
|
+
.rs-icon {
|
|
41
|
+
margin: 4px;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Tree item
|
|
47
|
+
.rs-cascade-tree-item {
|
|
48
|
+
@include listbox.listbox-option;
|
|
49
|
+
|
|
50
|
+
position: relative;
|
|
51
|
+
word-break: break-word;
|
|
52
|
+
|
|
53
|
+
&:hover,
|
|
54
|
+
&:focus,
|
|
55
|
+
&.rs-cascade-tree-item-focus {
|
|
56
|
+
@include listbox.listbox-option-active;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.rs-cascade-tree-item-active {
|
|
60
|
+
@include listbox.listbox-option-selected;
|
|
61
|
+
|
|
62
|
+
.rs-cascade-tree-caret {
|
|
63
|
+
color: var(--rs-text-primary);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:disabled,
|
|
68
|
+
&.rs-cascade-tree-item-disabled {
|
|
69
|
+
@include listbox.listbox-options-disabled;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&-label {
|
|
73
|
+
display: inline-flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
gap: var(--rs-spacing);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.rs-cascade-tree-caret {
|
|
80
|
+
@include combobox.combobox-indicator-icon;
|
|
81
|
+
|
|
82
|
+
font-size: var(--rs-font-size-sm);
|
|
83
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@use '../../internals/Box/styles/index' as box;
|
|
2
|
+
@use '../../styles/colors/colors-base' as colors;
|
|
3
|
+
@use '../../Checkbox/styles/index' as checkbox;
|
|
4
|
+
@use '../../internals/Picker/styles/index' as picker;
|
|
5
|
+
@use '../../internals/Picker/styles/mixin' as picker-mixin;
|
|
6
|
+
|
|
7
|
+
// Check Picker
|
|
8
|
+
// ----------------------
|
|
9
|
+
|
|
10
|
+
// Menu Items
|
|
11
|
+
.rs-picker-check-menu-items {
|
|
12
|
+
--rs-check-item-padding-inline: calc(var(--rs-spacing) * 3);
|
|
13
|
+
--rs-check-item-padding-block: calc(var(--rs-spacing) * 2);
|
|
14
|
+
|
|
15
|
+
@include picker-mixin.picker-listbox-reset;
|
|
16
|
+
@include picker-mixin.picker-menu-group-common('picker');
|
|
17
|
+
@include picker-mixin.picker-menu-group-title('picker');
|
|
18
|
+
@include picker-mixin.picker-menu-group-closed('picker');
|
|
19
|
+
|
|
20
|
+
.rs-check-item.rs-checkbox-checked .rs-checkbox-checker > label {
|
|
21
|
+
@include picker-mixin.picker-item-active;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
@use '../../internals/Box/styles/index' as box;
|
|
2
|
+
@use '../../internals/Picker/styles/index' as picker;
|
|
3
|
+
@use '../../internals/Picker/styles/mixin' as picker-mixin;
|
|
4
|
+
@use '../../styles/colors/colors-base' as colors;
|
|
5
|
+
@use '../../styles/mixins/utilities' as utils;
|
|
6
|
+
@use '../../styles/mixins/color-modes' as color-modes;
|
|
7
|
+
@use '../../Checkbox/styles/index' as checkbox;
|
|
8
|
+
@use '../../Tree/styles/toggle' as tree-toggle;
|
|
9
|
+
@use '../../Tree/styles/indent-line' as tree-indent-line;
|
|
10
|
+
@use './variables';
|
|
11
|
+
|
|
12
|
+
// Check Tree
|
|
13
|
+
// ----------------------
|
|
14
|
+
|
|
15
|
+
.rs-check-tree {
|
|
16
|
+
height: 100%;
|
|
17
|
+
flex: 1 1 auto;
|
|
18
|
+
|
|
19
|
+
.rs-check-tree-node-content {
|
|
20
|
+
.rs-check-item .rs-checkbox-checker {
|
|
21
|
+
.rs-checkbox-label {
|
|
22
|
+
padding: var(--rs-spacing);
|
|
23
|
+
width: auto;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:focus-visible {
|
|
28
|
+
.rs-checkbox-label {
|
|
29
|
+
@include utils.focus-ring;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.rs-check-tree-empty {
|
|
35
|
+
padding-inline: calc(var(--rs-spacing) * 2);
|
|
36
|
+
padding-block: var(--rs-spacing);
|
|
37
|
+
color: var(--rs-text-secondary);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&-view {
|
|
41
|
+
max-height: var(--rs-tree-view-height, var(--rs-check-tree-view-max-height));
|
|
42
|
+
overflow-y: auto;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.rs-tree-virtualized &-view {
|
|
46
|
+
overflow: hidden;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.rs-highlight-mark {
|
|
50
|
+
padding: 0;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Only has the first level
|
|
55
|
+
.rs-check-tree-without-children {
|
|
56
|
+
.rs-tree-node-toggle-placeholder {
|
|
57
|
+
display: none;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.rs-check-tree-group {
|
|
62
|
+
padding-inline-start: 20px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.rs-check-tree-node {
|
|
66
|
+
position: relative;
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
|
|
70
|
+
.rs-check-item {
|
|
71
|
+
display: inline-block;
|
|
72
|
+
|
|
73
|
+
&:hover,
|
|
74
|
+
&:focus,
|
|
75
|
+
&.rs-check-item-focus {
|
|
76
|
+
background-color: transparent !important;
|
|
77
|
+
|
|
78
|
+
.rs-checkbox-label {
|
|
79
|
+
background-color: var(--rs-listbox-option-hover-bg);
|
|
80
|
+
color: var(--rs-listbox-option-hover-text);
|
|
81
|
+
border-radius: var(--rs-radius-md);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&[data-disabled='true'] {
|
|
86
|
+
.rs-checkbox-label {
|
|
87
|
+
color: var(--rs-text-disabled);
|
|
88
|
+
background: none;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&:focus .rs-check-item .rs-checkbox-checker > label {
|
|
94
|
+
@include picker-mixin.picker-item-hover;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.rs-check-item.rs-checkbox-checked .rs-checkbox-checker > label {
|
|
98
|
+
@include picker-mixin.picker-item-active;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// node children
|
|
103
|
+
.rs-check-tree-node-children {
|
|
104
|
+
> .rs-check-tree-group {
|
|
105
|
+
position: relative;
|
|
106
|
+
display: none;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&.rs-check-tree-node-expanded > .rs-check-tree-group {
|
|
110
|
+
display: block;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.rs-check-tree {
|
|
115
|
+
&-node > .rs-check-tree-node-content .rs-checkbox-label {
|
|
116
|
+
@include utils.ellipsis;
|
|
117
|
+
|
|
118
|
+
display: inline-block;
|
|
119
|
+
vertical-align: top;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@use '../../internals/Box/styles/index' as box;
|
|
2
|
+
@use '../../internals/Picker/styles/index' as picker;
|
|
3
|
+
@use '../../styles/colors/colors-base' as colors;
|
|
4
|
+
@use '../../CheckTree/styles/index' as check-tree;
|
|
5
|
+
|
|
6
|
+
// Check Tree Picker
|
|
7
|
+
// ----------------------
|
|
8
|
+
|
|
9
|
+
.rs-picker-popup {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
|
|
13
|
+
&.rs-check-tree-menu {
|
|
14
|
+
padding-top: var(--rs-picker-menu-padding);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.rs-check-tree-view {
|
|
18
|
+
padding: 2px 4px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
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 '../../styles/mixins/color-modes' as color-modes;
|
|
5
|
+
@use '../../styles/mixins/input' as input;
|
|
6
|
+
@use './variables';
|
|
7
|
+
@use './mixin';
|
|
8
|
+
|
|
9
|
+
.rs-checkbox {
|
|
10
|
+
display: var(--rs-checkbox-display);
|
|
11
|
+
|
|
12
|
+
@include input.check-radio-base;
|
|
13
|
+
|
|
14
|
+
[type='checkbox']:focus-visible ~ .rs-checkbox-inner::before {
|
|
15
|
+
@include utils.focus-ring;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.rs-checkbox-checker {
|
|
20
|
+
position: relative;
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
|
|
23
|
+
> label {
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: calc(var(--rs-spacing) * 2);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.rs-checkbox-control {
|
|
31
|
+
&::before,
|
|
32
|
+
.rs-checkbox-inner::before,
|
|
33
|
+
.rs-checkbox-inner::after {
|
|
34
|
+
content: '';
|
|
35
|
+
position: absolute;
|
|
36
|
+
inset-inline-start: 0;
|
|
37
|
+
top: 0;
|
|
38
|
+
display: block;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Check mark
|
|
42
|
+
.rs-checkbox-inner::after {
|
|
43
|
+
opacity: 0;
|
|
44
|
+
transform: rotate(45deg) scale(0);
|
|
45
|
+
transition:
|
|
46
|
+
opacity 0.2s ease-in,
|
|
47
|
+
transform 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46);
|
|
48
|
+
|
|
49
|
+
@include color-modes.high-contrast-mode {
|
|
50
|
+
transition: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.rs-checkbox[data-checked='true'] &,
|
|
54
|
+
.rs-checkbox[data-checked='mixed'] & {
|
|
55
|
+
border: solid var(--rs-checkbox-icon);
|
|
56
|
+
width: 6px;
|
|
57
|
+
height: 9px;
|
|
58
|
+
margin-top: 2px;
|
|
59
|
+
margin-inline-start: 5px;
|
|
60
|
+
opacity: 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.rs-checkbox[data-checked='true'] & {
|
|
64
|
+
border-width: 0 2px 2px 0;
|
|
65
|
+
transform: rotate(45deg) scale(1);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.rs-checkbox[data-checked='mixed'] & {
|
|
69
|
+
border-width: 0 0 2px;
|
|
70
|
+
transform: rotate(0deg) scale(1);
|
|
71
|
+
width: 10px;
|
|
72
|
+
margin-top: 0;
|
|
73
|
+
margin-inline-start: 3px;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.rs-checkbox-control {
|
|
79
|
+
position: relative;
|
|
80
|
+
display: inline-flex;
|
|
81
|
+
|
|
82
|
+
[type='checkbox'] {
|
|
83
|
+
opacity: 0;
|
|
84
|
+
width: var(--rs-checkbox-size);
|
|
85
|
+
height: var(--rs-checkbox-size);
|
|
86
|
+
z-index: 1;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&::before,
|
|
90
|
+
.rs-checkbox-inner::before,
|
|
91
|
+
.rs-checkbox-inner::after {
|
|
92
|
+
width: var(--rs-checkbox-size);
|
|
93
|
+
height: var(--rs-checkbox-size);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// Ripple effect area
|
|
97
|
+
&::before {
|
|
98
|
+
@include mixin.checkbox-inner-wrap(var(--rs-checkbox-checked-bg));
|
|
99
|
+
|
|
100
|
+
transform: scale(1);
|
|
101
|
+
opacity: 0.7;
|
|
102
|
+
visibility: hidden;
|
|
103
|
+
transition:
|
|
104
|
+
transform 0.2s linear,
|
|
105
|
+
opacity 0.2s linear;
|
|
106
|
+
|
|
107
|
+
@include color-modes.high-contrast-mode {
|
|
108
|
+
transition: none;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.rs-checkbox[data-checked='true'] & {
|
|
112
|
+
transform: scale(1.5);
|
|
113
|
+
opacity: 0;
|
|
114
|
+
visibility: visible;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// Out border
|
|
119
|
+
.rs-checkbox-inner::before {
|
|
120
|
+
@include mixin.checkbox-inner-wrap(var(--rs-checkbox-border));
|
|
121
|
+
|
|
122
|
+
transition:
|
|
123
|
+
background 0.2s linear,
|
|
124
|
+
border 0.2s linear,
|
|
125
|
+
box-shadow 0.2s linear;
|
|
126
|
+
|
|
127
|
+
@include color-modes.high-contrast-mode {
|
|
128
|
+
transition: none;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
label:hover & {
|
|
132
|
+
border-color: var(--rs-checkbox-checked-bg);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.rs-checkbox[data-disabled='true'][data-checked='false'] & {
|
|
136
|
+
border-color: var(--rs-checkbox-disabled-bg);
|
|
137
|
+
background-color: var(--rs-checkbox-disabled-bg);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.rs-checkbox[data-checked='true'] &,
|
|
141
|
+
.rs-checkbox[data-checked='mixed'] & {
|
|
142
|
+
border-color: var(--rs-checkbox-checked-bg);
|
|
143
|
+
background-color: var(--rs-checkbox-checked-bg);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.rs-checkbox[data-disabled='true'][data-checked='true'] &,
|
|
147
|
+
.rs-checkbox[data-disabled='true'][data-checked='mixed'] & {
|
|
148
|
+
opacity: 0.5;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@each $color in colors.$spectrum {
|
|
154
|
+
.rs-checkbox[data-color='#{$color}'] {
|
|
155
|
+
--rs-checkbox-checked-bg: var(--rs-#{'' + $color}-500);
|
|
156
|
+
--rs-checkbox-border: var(--rs-#{'' + $color}-500);
|
|
157
|
+
}
|
|
158
|
+
}
|