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.
- 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 +20 -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/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 +34 -23
- package/dist/rsuite.js.map +1 -1
- package/dist/rsuite.min.js +1 -1
- 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/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,673 @@
|
|
|
1
|
+
@use '../../internals/Box/styles/index' as box;
|
|
2
|
+
@use '../../styles/mixins/listbox';
|
|
3
|
+
@use '../../Button/styles/index' as button;
|
|
4
|
+
@use '../../internals/Picker/styles/mixin' as picker-mixin;
|
|
5
|
+
@use '../../styles/mixins/utilities' as utils;
|
|
6
|
+
@use 'variables';
|
|
7
|
+
|
|
8
|
+
// Calendar panel
|
|
9
|
+
// ----------------------
|
|
10
|
+
|
|
11
|
+
.rs-calendar {
|
|
12
|
+
padding-top: var(--rs-calendar-base-spacing);
|
|
13
|
+
position: relative;
|
|
14
|
+
min-height: 266px;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
|
|
17
|
+
&-bordered &-table {
|
|
18
|
+
border: 1px solid var(--rs-border-primary);
|
|
19
|
+
border-radius: var(--rs-calendar-border-radius);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&-bordered &-table-row:not(:last-child) &-table-cell,
|
|
23
|
+
&-bordered &-table-header-row &-table-header-cell {
|
|
24
|
+
border-bottom: 1px solid var(--rs-border-secondary);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&-bordered &-month-dropdown {
|
|
28
|
+
border: 1px solid var(--rs-border-primary);
|
|
29
|
+
border-radius: var(--rs-calendar-border-radius);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&-panel &-header {
|
|
33
|
+
width: 100%;
|
|
34
|
+
padding-bottom: 6px;
|
|
35
|
+
@include utils.clearfix;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&-panel &-header &-btn-today {
|
|
39
|
+
float: inline-end;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&-panel &-header-forward,
|
|
43
|
+
&-panel &-header-backward {
|
|
44
|
+
float: none !important;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&-panel.rs-calendar-month-view &-header-forward,
|
|
48
|
+
&-panel.rs-calendar-month-view &-header-backward {
|
|
49
|
+
display: inline-block;
|
|
50
|
+
visibility: hidden;
|
|
51
|
+
pointer-events: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&-panel &-header-month-toolbar {
|
|
55
|
+
width: auto !important;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&-panel.rs-calendar-month-view &-header-month-toolbar {
|
|
59
|
+
padding-inline-start: 0;
|
|
60
|
+
padding-inline-end: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&-panel &-month-view {
|
|
64
|
+
padding-inline-start: 0;
|
|
65
|
+
padding-inline-end: 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&-panel &-table-header-row &-table-header-cell-content {
|
|
69
|
+
padding-top: 8px; // padding + border = 10px
|
|
70
|
+
padding-bottom: 8px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&-panel &-table-cell-is-today &-table-cell-day {
|
|
74
|
+
color: var(--rs-calendar-today-text);
|
|
75
|
+
width: var(--rs-calendar-panel-today-active-side-length);
|
|
76
|
+
height: var(--rs-calendar-panel-today-active-side-length);
|
|
77
|
+
background-color: var(--rs-calendar-today-bg);
|
|
78
|
+
border-radius: var(--rs-radius-full);
|
|
79
|
+
margin-inline-start: auto;
|
|
80
|
+
margin-inline-end: auto;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&-panel &-table-cell-is-today &-table-cell-content {
|
|
84
|
+
box-shadow: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&-panel &-table-cell-selected &-table-cell-content {
|
|
88
|
+
background-color: inherit;
|
|
89
|
+
color: inherit;
|
|
90
|
+
box-shadow: inset 0 0 0 1px var(--rs-input-focus-border);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&-panel &-table-cell-day {
|
|
94
|
+
display: block;
|
|
95
|
+
text-align: center;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&-panel &-month-dropdown {
|
|
99
|
+
margin-inline-start: 10px;
|
|
100
|
+
margin-inline-end: 10px;
|
|
101
|
+
border-radius: var(--rs-radius-md);
|
|
102
|
+
width: calc(100% - 20px);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&-panel:not(.rs-calendar-compact)
|
|
106
|
+
&-table-row:not(.rs-calendar-table-header-row)
|
|
107
|
+
&-table-cell-content {
|
|
108
|
+
width: 100%;
|
|
109
|
+
height: var(--rs-calendar-panel-cell-height);
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&-panel:not(.rs-calendar-compact) &-table-cell {
|
|
114
|
+
vertical-align: top;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&-panel &-table-cell {
|
|
118
|
+
padding: 0 1px;
|
|
119
|
+
line-height: 0;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&-panel &-table-cell-content {
|
|
123
|
+
width: 100%;
|
|
124
|
+
border-radius: var(--rs-radius-none);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&-panel &-table-row:last-child :first-child &-table-cell-content {
|
|
128
|
+
border-bottom-left-radius: var(--rs-radius-md);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&-panel &-table-row:last-child :last-child &-table-cell-content {
|
|
132
|
+
border-bottom-right-radius: var(--rs-radius-md);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&-panel.rs-calendar-compact &-table-row:not(.rs-calendar-table-header-row) &-table-cell-content {
|
|
136
|
+
min-height: var(--rs-calendar-panel-compact-cell-height);
|
|
137
|
+
display: flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
justify-content: center;
|
|
140
|
+
flex-direction: column;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&-btn-close {
|
|
144
|
+
position: absolute;
|
|
145
|
+
bottom: 0;
|
|
146
|
+
inset-inline-start: 0;
|
|
147
|
+
inset-inline-end: 0;
|
|
148
|
+
height: 14px;
|
|
149
|
+
padding: 0;
|
|
150
|
+
border: 0;
|
|
151
|
+
display: flex;
|
|
152
|
+
justify-content: center;
|
|
153
|
+
background: var(--rs-bg-overlay);
|
|
154
|
+
z-index: 1;
|
|
155
|
+
|
|
156
|
+
&:hover {
|
|
157
|
+
background-color: var(--rs-btn-subtle-hover-bg);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&-panel &-btn-close {
|
|
162
|
+
bottom: 4px;
|
|
163
|
+
margin: 0 11px;
|
|
164
|
+
border-bottom-left-radius: var(--rs-radius-md);
|
|
165
|
+
border-bottom-right-radius: var(--rs-radius-md);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&-panel.rs-calendar-bordered &-btn-close {
|
|
169
|
+
bottom: 5px;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// DatePicker
|
|
174
|
+
// ----------------------
|
|
175
|
+
|
|
176
|
+
// Show month dropdown
|
|
177
|
+
.rs-calendar-month-view {
|
|
178
|
+
.rs-calendar-header-month-toolbar {
|
|
179
|
+
padding-inline-start: 24px;
|
|
180
|
+
padding-inline-end: 24px;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.rs-calendar-header-backward,
|
|
184
|
+
.rs-calendar-header-forward {
|
|
185
|
+
display: none;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.rs-calendar-header-title-date {
|
|
189
|
+
@include picker-mixin.picker-calendar-title-show;
|
|
190
|
+
|
|
191
|
+
&.rs-calendar-header-error {
|
|
192
|
+
color: var(--rs-text-error);
|
|
193
|
+
|
|
194
|
+
&:focus,
|
|
195
|
+
&:hover:active {
|
|
196
|
+
color: #fff !important;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// Show time dropdown
|
|
203
|
+
.rs-calendar-time-view {
|
|
204
|
+
.rs-calendar-header-title-time {
|
|
205
|
+
@include picker-mixin.picker-calendar-title-show;
|
|
206
|
+
|
|
207
|
+
&.rs-calendar-header-error {
|
|
208
|
+
color: var(--rs-text-error);
|
|
209
|
+
|
|
210
|
+
&:hover:active {
|
|
211
|
+
color: #fff;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// Calendar group
|
|
218
|
+
.rs-calendar-table-cell-selected,
|
|
219
|
+
.rs-calendar-table-cell-in-range {
|
|
220
|
+
position: relative;
|
|
221
|
+
|
|
222
|
+
&::before {
|
|
223
|
+
content: '';
|
|
224
|
+
display: block;
|
|
225
|
+
width: 100%;
|
|
226
|
+
margin-top: 4px;
|
|
227
|
+
height: 24px;
|
|
228
|
+
position: absolute;
|
|
229
|
+
z-index: calc(var(--rs-zindex-date-range-picker-table-cell-content) - 1);
|
|
230
|
+
top: 0;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.rs-calendar-table-cell-content {
|
|
234
|
+
z-index: var(--rs-zindex-date-range-picker-table-cell-content);
|
|
235
|
+
position: relative;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.rs-calendar-table-cell-in-range::before {
|
|
240
|
+
background-color: var(--rs-calendar-range-bg);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.rs-calendar-table-cell-in-range:hover::before {
|
|
244
|
+
display: none;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
// Reset outline for scroll list.
|
|
248
|
+
.rs-calendar-month-dropdown-scroll div:focus {
|
|
249
|
+
outline: none;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.rs-calendar-header {
|
|
253
|
+
width: var(--rs-calendar-header-width);
|
|
254
|
+
padding-inline-start: var(--rs-calendar-base-spacing);
|
|
255
|
+
padding-inline-end: var(--rs-calendar-base-spacing);
|
|
256
|
+
@include utils.clearfix;
|
|
257
|
+
|
|
258
|
+
// Month toolbar && Time toolbar
|
|
259
|
+
&-month-toolbar,
|
|
260
|
+
&-time-toolbar {
|
|
261
|
+
display: inline-block;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
&-month-toolbar {
|
|
265
|
+
float: inline-start;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
&-time-toolbar {
|
|
269
|
+
float: inline-end;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
&-title {
|
|
273
|
+
margin: 0 var(--rs-calendar-header-title-margin);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
&-meridiem {
|
|
277
|
+
// Designer think it's nice!
|
|
278
|
+
font-size: var(--rs-font-size-xs);
|
|
279
|
+
margin-inline-start: 4px;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
&-error {
|
|
283
|
+
@include button.btn-error;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
&-btn-disabled {
|
|
287
|
+
&,
|
|
288
|
+
&:hover,
|
|
289
|
+
&:hover:focus {
|
|
290
|
+
cursor: not-allowed;
|
|
291
|
+
opacity: 0.3;
|
|
292
|
+
background: none;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
&::after {
|
|
296
|
+
display: none !important;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
// Only Has month
|
|
301
|
+
&-has-month:not(&-has-time) {
|
|
302
|
+
margin: 0 auto;
|
|
303
|
+
padding-inline: var(--rs-calendar-base-spacing);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
&-has-month:not(&-has-time) &-month-toolbar {
|
|
307
|
+
display: block;
|
|
308
|
+
text-align: center;
|
|
309
|
+
width: 100%;
|
|
310
|
+
@include utils.clearfix;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
&-has-month:not(&-has-time) &-backward {
|
|
314
|
+
float: inline-start;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
&-has-month:not(&-has-time) &-forward {
|
|
318
|
+
float: inline-end;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
// Only Has time
|
|
322
|
+
&-has-time:not(&-has-month) {
|
|
323
|
+
margin: 0 auto;
|
|
324
|
+
text-align: center;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
&-has-time:not(&-has-month) &-time-toolbar {
|
|
328
|
+
float: none;
|
|
329
|
+
display: inline-block;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
// Has month && time
|
|
333
|
+
&-has-month.rs-calendar-header-has-time {
|
|
334
|
+
margin: 0 auto;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
[dir='rtl'] .rs-calendar-header {
|
|
339
|
+
&-backward,
|
|
340
|
+
&-forward {
|
|
341
|
+
.rs-icon {
|
|
342
|
+
transform: rotate(180deg);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.rs-calendar-body {
|
|
348
|
+
padding: var(--rs-calendar-base-spacing);
|
|
349
|
+
padding-top: var(--rs-calendar-body-padding-top);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
// Calendar Table
|
|
353
|
+
// TODO-Doma Use CSS grid layout.
|
|
354
|
+
.rs-calendar-table {
|
|
355
|
+
display: table;
|
|
356
|
+
table-layout: fixed;
|
|
357
|
+
width: var(--rs-calendar-table-width);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.rs-calendar-table-row {
|
|
361
|
+
display: table-row;
|
|
362
|
+
|
|
363
|
+
&:nth-child(2) {
|
|
364
|
+
.rs-calendar-table-cell-week-number {
|
|
365
|
+
border-top-left-radius: var(--rs-radius-md);
|
|
366
|
+
border-top-right-radius: var(--rs-radius-md);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
&:last-child {
|
|
371
|
+
.rs-calendar-table-cell-week-number {
|
|
372
|
+
border-bottom-left-radius: var(--rs-radius-md);
|
|
373
|
+
border-bottom-right-radius: var(--rs-radius-md);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.rs-calendar-table-cell,
|
|
379
|
+
.rs-calendar-table-header-cell {
|
|
380
|
+
display: table-cell;
|
|
381
|
+
width: 1%;
|
|
382
|
+
padding: var(--rs-calendar-table-cell-padding) 0;
|
|
383
|
+
text-align: center;
|
|
384
|
+
vertical-align: middle;
|
|
385
|
+
|
|
386
|
+
&-un-same-month &-content,
|
|
387
|
+
&-disabled &-content {
|
|
388
|
+
&,
|
|
389
|
+
&:hover {
|
|
390
|
+
color: var(--rs-text-disabled);
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
&-disabled &-content {
|
|
395
|
+
&,
|
|
396
|
+
&:hover {
|
|
397
|
+
background: none;
|
|
398
|
+
text-decoration: line-through;
|
|
399
|
+
cursor: not-allowed;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
&-disabled.rs-calendar-table-cell-is-today.rs-calendar-table-cell-selected &-content {
|
|
404
|
+
&:hover {
|
|
405
|
+
@include picker-mixin.picker-calendar-cell-content-selected;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
&-disabled.rs-calendar-table-cell-selected &-content {
|
|
410
|
+
opacity: 0.3;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.rs-calendar-table-cell-content {
|
|
415
|
+
@include picker-mixin.picker-calendar-cell-content;
|
|
416
|
+
|
|
417
|
+
.rs-calendar-table-cell-is-today & {
|
|
418
|
+
box-shadow: inset 0 0 0 1px var(--rs-input-focus-border);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.rs-calendar-table-cell-selected & {
|
|
422
|
+
@include picker-mixin.picker-calendar-cell-content-selected;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
// Table header row
|
|
427
|
+
.rs-calendar-table-header-cell-content {
|
|
428
|
+
display: inline-block;
|
|
429
|
+
color: var(--rs-text-secondary);
|
|
430
|
+
font-size: var(--rs-font-size-xs);
|
|
431
|
+
line-height: var(--rs-line-height-sm);
|
|
432
|
+
padding-top: 2px;
|
|
433
|
+
padding-bottom: 2px;
|
|
434
|
+
|
|
435
|
+
&,
|
|
436
|
+
&:hover,
|
|
437
|
+
&:focus,
|
|
438
|
+
&:hover:focus {
|
|
439
|
+
background: none;
|
|
440
|
+
cursor: auto;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.rs-calendar-table-cell-week-number {
|
|
445
|
+
display: table-cell;
|
|
446
|
+
min-width: 30px;
|
|
447
|
+
padding: var(--rs-calendar-table-cell-padding);
|
|
448
|
+
text-align: center;
|
|
449
|
+
vertical-align: middle;
|
|
450
|
+
color: var(--rs-text-secondary);
|
|
451
|
+
background-color: var(--rs-bg-well);
|
|
452
|
+
font-size: var(--rs-font-size-xs);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
// Calendar month dropdown
|
|
456
|
+
.rs-calendar-month-dropdown {
|
|
457
|
+
display: none;
|
|
458
|
+
position: absolute;
|
|
459
|
+
top: var(--rs-calendar-dropdown-top);
|
|
460
|
+
border-top: 1px solid var(--rs-border-primary);
|
|
461
|
+
margin-top: 0;
|
|
462
|
+
width: 100%;
|
|
463
|
+
background-color: var(--rs-bg-overlay);
|
|
464
|
+
overflow: hidden;
|
|
465
|
+
z-index: var(--rs-zindex-date-range-picker-table-cell-content);
|
|
466
|
+
height: calc(100% - 48px);
|
|
467
|
+
|
|
468
|
+
.rs-calendar-month-view & {
|
|
469
|
+
display: block;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.rs-calendar-month-view &-scroll {
|
|
473
|
+
animation: 0.3s linear slideDown;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
&-scroll {
|
|
477
|
+
height: 100%;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
&-row {
|
|
481
|
+
position: relative;
|
|
482
|
+
padding-inline-start: calc(
|
|
483
|
+
var(--rs-calendar-base-spacing) + 38px
|
|
484
|
+
); // 30px for the year label + 8px gap
|
|
485
|
+
padding-inline-end: var(--rs-calendar-base-spacing);
|
|
486
|
+
padding-top: 5px;
|
|
487
|
+
padding-bottom: 5px;
|
|
488
|
+
|
|
489
|
+
&:not(:last-child) {
|
|
490
|
+
border-bottom: 1px dashed var(--rs-border-primary);
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
&-year {
|
|
495
|
+
position: absolute;
|
|
496
|
+
top: calc(50% - 0.5em);
|
|
497
|
+
inset-inline-start: var(--rs-calendar-base-spacing);
|
|
498
|
+
|
|
499
|
+
&-active {
|
|
500
|
+
color: var(--rs-text-active);
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
&-list {
|
|
505
|
+
display: grid;
|
|
506
|
+
grid-template-columns: repeat(4, 25%);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
&-cell {
|
|
510
|
+
margin: 1px;
|
|
511
|
+
text-align: center;
|
|
512
|
+
vertical-align: middle;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
&-cell-content {
|
|
516
|
+
@include picker-mixin.picker-calendar-cell-content;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
&-cell:not(.rs-calendar-month-dropdown-cell-active).disabled &-cell-content {
|
|
520
|
+
color: var(--rs-text-disabled);
|
|
521
|
+
background: none;
|
|
522
|
+
text-decoration: line-through;
|
|
523
|
+
cursor: not-allowed;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
&-cell-active.disabled &-cell-content {
|
|
527
|
+
opacity: 0.3;
|
|
528
|
+
cursor: not-allowed;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
&-cell-active &-cell-content {
|
|
532
|
+
@include picker-mixin.picker-calendar-cell-content-selected;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
// Calendar time dropdown
|
|
537
|
+
.rs-calendar-time-dropdown {
|
|
538
|
+
display: none;
|
|
539
|
+
position: absolute;
|
|
540
|
+
top: var(--rs-calendar-dropdown-top);
|
|
541
|
+
padding-inline: var(--rs-calendar-base-spacing);
|
|
542
|
+
width: 100%;
|
|
543
|
+
background-color: var(--rs-bg-overlay);
|
|
544
|
+
color: var(--rs-text-primary);
|
|
545
|
+
overflow: hidden;
|
|
546
|
+
z-index: var(--rs-zindex-date-range-picker-table-cell-content);
|
|
547
|
+
|
|
548
|
+
.rs-calendar-time-view & {
|
|
549
|
+
display: block;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.rs-calendar-time-view &-content {
|
|
553
|
+
animation: 0.3s linear slideDown;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
&-row {
|
|
557
|
+
display: table;
|
|
558
|
+
width: 100%;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
&-column {
|
|
562
|
+
display: table-cell;
|
|
563
|
+
width: 1%;
|
|
564
|
+
|
|
565
|
+
.rs-scroll-view::after {
|
|
566
|
+
content: '';
|
|
567
|
+
display: block;
|
|
568
|
+
height: calc(100% - 30px);
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
> ul,
|
|
572
|
+
> ul > li {
|
|
573
|
+
list-style: none;
|
|
574
|
+
margin: 0;
|
|
575
|
+
padding: 0;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
> ul {
|
|
579
|
+
height: 230px;
|
|
580
|
+
overflow-y: auto;
|
|
581
|
+
scroll-behavior: smooth;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
&-column-title {
|
|
586
|
+
width: 100%;
|
|
587
|
+
background-color: var(--rs-calendar-time-unit-bg);
|
|
588
|
+
color: var(--rs-text-secondary);
|
|
589
|
+
text-align: center;
|
|
590
|
+
font-size: var(--rs-font-size-xs);
|
|
591
|
+
line-height: var(--rs-line-height-sm);
|
|
592
|
+
padding-top: 2px;
|
|
593
|
+
padding-bottom: 2px;
|
|
594
|
+
margin-bottom: 2px;
|
|
595
|
+
|
|
596
|
+
.rs-calendar-only-time & {
|
|
597
|
+
border-top: none;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
&-cell {
|
|
602
|
+
font-size: var(--rs-font-size-sm);
|
|
603
|
+
line-height: var(--rs-line-height-base);
|
|
604
|
+
color: inherit;
|
|
605
|
+
padding: 5px;
|
|
606
|
+
display: block;
|
|
607
|
+
text-align: center;
|
|
608
|
+
cursor: pointer;
|
|
609
|
+
margin: 1px;
|
|
610
|
+
|
|
611
|
+
&,
|
|
612
|
+
&:hover,
|
|
613
|
+
&:focus {
|
|
614
|
+
text-decoration: none;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
&:hover {
|
|
618
|
+
@include listbox.listbox-option-active;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
&.rs-calendar-time-dropdown-cell-active {
|
|
622
|
+
background-color: var(--rs-bg-active);
|
|
623
|
+
color: var(--rs-calendar-date-selected-text);
|
|
624
|
+
|
|
625
|
+
@media (forced-colors: active) {
|
|
626
|
+
&:hover {
|
|
627
|
+
@include listbox.listbox-option-active;
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
&.rs-calendar-time-dropdown-cell-disabled {
|
|
633
|
+
color: var(--rs-text-disabled);
|
|
634
|
+
background: none;
|
|
635
|
+
cursor: not-allowed;
|
|
636
|
+
text-decoration: line-through;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
&.rs-calendar-time-dropdown-cell-active.rs-calendar-time-dropdown-cell-disabled {
|
|
640
|
+
opacity: 0.3;
|
|
641
|
+
cursor: not-allowed;
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
.rs-calendar-only-time {
|
|
647
|
+
padding-top: var(--rs-calendar-base-spacing);
|
|
648
|
+
display: block;
|
|
649
|
+
|
|
650
|
+
.rs-calendar-time-dropdown {
|
|
651
|
+
position: relative;
|
|
652
|
+
top: 2px;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.rs-calendar-time-dropdown-row {
|
|
656
|
+
display: flex;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
.rs-calendar-time-dropdown-column {
|
|
660
|
+
min-width: 60px;
|
|
661
|
+
flex: 1;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
@keyframes slideDown {
|
|
666
|
+
from {
|
|
667
|
+
transform: translateY(-100%);
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
to {
|
|
671
|
+
transform: translateY(0);
|
|
672
|
+
}
|
|
673
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
@use '../../internals/Box/styles/index' as box;
|
|
2
|
+
|
|
3
|
+
//
|
|
4
|
+
// Card
|
|
5
|
+
// --------------------------------------------------
|
|
6
|
+
|
|
7
|
+
.rs-card {
|
|
8
|
+
--rs-card-width: 100%;
|
|
9
|
+
--rs-card-padding: calc(var(--rs-spacing) * 4);
|
|
10
|
+
--rs-card-shadow: var(--rs-shadow-md);
|
|
11
|
+
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
border-radius: var(--rs-radius-md);
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
position: relative;
|
|
18
|
+
width: var(--rs-card-width);
|
|
19
|
+
|
|
20
|
+
&[data-bordered='true'] {
|
|
21
|
+
border: 1px solid var(--rs-border-primary);
|
|
22
|
+
background-color: var(--rs-card-bg);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&[data-shaded='true'] {
|
|
26
|
+
box-shadow: var(--rs-card-shadow);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&[data-shaded='hover']:hover {
|
|
30
|
+
box-shadow: var(--rs-card-shadow);
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&[data-size='sm'] {
|
|
35
|
+
--rs-card-padding: calc(var(--rs-spacing) * 2);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&[data-size='md'] {
|
|
39
|
+
--rs-card-padding: calc(var(--rs-spacing) * 4);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&[data-size='lg'] {
|
|
43
|
+
--rs-card-padding: calc(var(--rs-spacing) * 6);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&[data-direction='row'] {
|
|
47
|
+
flex-direction: row;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&-header {
|
|
51
|
+
padding: var(--rs-card-padding) var(--rs-card-padding) 0 var(--rs-card-padding);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&-body {
|
|
55
|
+
padding: var(--rs-card-padding);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&-footer {
|
|
59
|
+
display: flex;
|
|
60
|
+
gap: 8px;
|
|
61
|
+
padding: 0 var(--rs-card-padding) var(--rs-card-padding) var(--rs-card-padding);
|
|
62
|
+
}
|
|
63
|
+
}
|