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,82 @@
|
|
|
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 './variables';
|
|
5
|
+
|
|
6
|
+
// Full container.
|
|
7
|
+
.rs-form-stack-fluid {
|
|
8
|
+
.rs-form-control-wrapper {
|
|
9
|
+
width: 100%;
|
|
10
|
+
|
|
11
|
+
> .rs-number-input,
|
|
12
|
+
> .rs-input {
|
|
13
|
+
width: 100%;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.rs-form-stack-vertical .rs-form-group {
|
|
18
|
+
.rs-input-group {
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Fixed width.
|
|
25
|
+
.rs-form-control-wrapper {
|
|
26
|
+
// Used to provide relation for error message
|
|
27
|
+
position: relative;
|
|
28
|
+
|
|
29
|
+
> .rs-number-input,
|
|
30
|
+
> .rs-input {
|
|
31
|
+
width: var(--rs-form-control-width);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&.read-only {
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
touch-action: none;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Vertical forms
|
|
41
|
+
.rs-form-stack-vertical .rs-form-group {
|
|
42
|
+
.rs-input-group {
|
|
43
|
+
width: var(--rs-form-control-width);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.rs-form-control-wrapper {
|
|
47
|
+
display: inline-block;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Horizontal forms
|
|
52
|
+
//
|
|
53
|
+
// Horizontal forms are built on grid classes and allow you to create forms with
|
|
54
|
+
// labels on the left and inputs on the right.
|
|
55
|
+
|
|
56
|
+
.rs-form-stack-horizontal .rs-form-group {
|
|
57
|
+
.rs-form-control-wrapper {
|
|
58
|
+
float: inline-start;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.rs-form-control-wrapper + .rs-form-help-text {
|
|
62
|
+
clear: both;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Inline
|
|
67
|
+
.rs-form-stack-inline .rs-form-group {
|
|
68
|
+
.rs-form-control-wrapper {
|
|
69
|
+
display: inline-block;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// Form control wrapper behind Screen only dom no need margin left.
|
|
73
|
+
.rs-sr-only + .rs-form-control-wrapper {
|
|
74
|
+
margin-inline-start: 0;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.rs-input-group > .rs-form-control > .rs-input {
|
|
79
|
+
border-radius: var(--rs-radius-none);
|
|
80
|
+
border: none;
|
|
81
|
+
outline: none;
|
|
82
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@keyframes errorMessageSlideUpIn {
|
|
2
|
+
0% {
|
|
3
|
+
transform: translate3d(0, 2px, 0);
|
|
4
|
+
visibility: visible;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
100% {
|
|
8
|
+
transform: translate3d(0, 0, 0);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@keyframes errorMessageSlideDownIn {
|
|
13
|
+
0% {
|
|
14
|
+
transform: translate3d(0, -2px, 0);
|
|
15
|
+
visibility: visible;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
100% {
|
|
19
|
+
transform: translate3d(0, 0, 0);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@keyframes errorMessageSlideLeftIn {
|
|
24
|
+
0% {
|
|
25
|
+
transform: translate3d(-2px, 0, 0);
|
|
26
|
+
visibility: visible;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
100% {
|
|
30
|
+
transform: translate3d(0, 0, 0);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@keyframes errorMessageSlideRightIn {
|
|
35
|
+
0% {
|
|
36
|
+
transform: translate3d(2px, 0, 0);
|
|
37
|
+
visibility: visible;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
100% {
|
|
41
|
+
transform: translate3d(0, 0, 0);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
@use '../../internals/Box/styles/index' as box;
|
|
2
|
+
@use './animation';
|
|
3
|
+
@use './variables';
|
|
4
|
+
|
|
5
|
+
// Mixins for common arrow styles
|
|
6
|
+
@mixin arrow-base {
|
|
7
|
+
&::before,
|
|
8
|
+
&::after {
|
|
9
|
+
content: '';
|
|
10
|
+
position: absolute;
|
|
11
|
+
border-color: transparent;
|
|
12
|
+
border-style: solid;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin arrow-position($position, $offset) {
|
|
17
|
+
&::before,
|
|
18
|
+
&::after {
|
|
19
|
+
#{$position}: $offset;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@mixin arrow-border($direction, $w1, $w2, $w3, $position, $offset) {
|
|
24
|
+
&::before,
|
|
25
|
+
&::after {
|
|
26
|
+
border-width: $w1 $w2 $w3;
|
|
27
|
+
border-#{$direction}-color: var(--rs-form-errormessage-border);
|
|
28
|
+
#{$position}: -1 * $offset;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&::after {
|
|
32
|
+
#{$position}: -1 * ($offset - 1);
|
|
33
|
+
border-#{$direction}-color: var(--rs-form-errormessage-bg);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.rs-form-error-message {
|
|
38
|
+
position: absolute;
|
|
39
|
+
padding: 3px 7px;
|
|
40
|
+
background-color: var(--rs-form-errormessage-bg);
|
|
41
|
+
border: 1px solid var(--rs-form-errormessage-border);
|
|
42
|
+
border-radius: var(--rs-radius-md);
|
|
43
|
+
filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.1));
|
|
44
|
+
z-index: var(--rs-zindex-form-error-message);
|
|
45
|
+
color: var(--rs-form-errormessage-text);
|
|
46
|
+
font-size: var(--rs-form-errormessage-font-size);
|
|
47
|
+
line-height: var(--rs-form-errormessage-line-height);
|
|
48
|
+
display: none;
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
|
|
51
|
+
&-show {
|
|
52
|
+
display: block;
|
|
53
|
+
animation-duration: 0.3s;
|
|
54
|
+
animation-timing-function: ease-out;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&-arrow {
|
|
58
|
+
@include arrow-base;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.rs-form-error-message-wrapper {
|
|
63
|
+
position: absolute;
|
|
64
|
+
|
|
65
|
+
&[data-placement='static'] {
|
|
66
|
+
--rs-form-errormessage-text: var(--rs-color-red);
|
|
67
|
+
--rs-form-errormessage-bg: transparent;
|
|
68
|
+
|
|
69
|
+
position: static;
|
|
70
|
+
margin-top: var(--rs-spacing);
|
|
71
|
+
display: block;
|
|
72
|
+
width: 100%;
|
|
73
|
+
|
|
74
|
+
.rs-form-error-message {
|
|
75
|
+
position: static;
|
|
76
|
+
display: block;
|
|
77
|
+
width: 100%;
|
|
78
|
+
white-space: normal;
|
|
79
|
+
word-wrap: break-word;
|
|
80
|
+
padding: 0;
|
|
81
|
+
filter: none;
|
|
82
|
+
border: none;
|
|
83
|
+
border-radius: 0;
|
|
84
|
+
|
|
85
|
+
&-show {
|
|
86
|
+
animation: none;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&-arrow {
|
|
90
|
+
display: none;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// Vertical placements (top/bottom)
|
|
96
|
+
&:where([data-placement='bottom-start'], [data-placement='bottom-end']) {
|
|
97
|
+
bottom: 0;
|
|
98
|
+
|
|
99
|
+
.rs-form-error-message {
|
|
100
|
+
top: 0;
|
|
101
|
+
&-show {
|
|
102
|
+
animation-name: errorMessageSlideDownIn;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.rs-form-error-message-arrow {
|
|
107
|
+
@include arrow-border(bottom, 0, 6px, 6px, top, 6px);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&:where([data-placement='top-start'], [data-placement='top-end']) {
|
|
112
|
+
top: 0;
|
|
113
|
+
|
|
114
|
+
.rs-form-error-message {
|
|
115
|
+
bottom: 0;
|
|
116
|
+
&-show {
|
|
117
|
+
animation-name: errorMessageSlideUpIn;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.rs-form-error-message-arrow {
|
|
122
|
+
@include arrow-border(top, 6px, 6px, 0, bottom, 6px);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// Inline start/end positions
|
|
127
|
+
&:where([data-placement='bottom-start'], [data-placement='top-start']) {
|
|
128
|
+
inset-inline-start: 0;
|
|
129
|
+
.rs-form-error-message {
|
|
130
|
+
inset-inline-start: 0;
|
|
131
|
+
}
|
|
132
|
+
.rs-form-error-message-arrow {
|
|
133
|
+
@include arrow-position(inset-inline-start, var(--rs-form-errormessage-triangle-gap));
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&:where([data-placement='bottom-end'], [data-placement='top-end']) {
|
|
138
|
+
inset-inline-end: 0;
|
|
139
|
+
.rs-form-error-message {
|
|
140
|
+
inset-inline-end: 0;
|
|
141
|
+
}
|
|
142
|
+
.rs-form-error-message-arrow {
|
|
143
|
+
@include arrow-position(inset-inline-end, var(--rs-form-errormessage-triangle-gap));
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
@use '../../internals/Box/styles/index' as box;
|
|
2
|
+
|
|
3
|
+
//
|
|
4
|
+
// FormGroup
|
|
5
|
+
// --------------------------------------------------
|
|
6
|
+
.rs-form-group {
|
|
7
|
+
position: relative;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: var(--rs-form-group-direction);
|
|
10
|
+
gap: var(--rs-form-group-spacing);
|
|
11
|
+
|
|
12
|
+
.rs-input {
|
|
13
|
+
display: inline-block;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// Fixed inline element will produce a whitespace
|
|
17
|
+
textarea.rs-input {
|
|
18
|
+
vertical-align: bottom;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// Vertical forms
|
|
23
|
+
.rs-form-stack-vertical .rs-form-group {
|
|
24
|
+
.rs-form-control-label {
|
|
25
|
+
display: block;
|
|
26
|
+
width: fit-content;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.rs-form-stack {
|
|
31
|
+
--rs-form-group-spacing: var(--rs-spacing);
|
|
32
|
+
--rs-form-group-direction: column;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// Horizontal forms
|
|
36
|
+
//
|
|
37
|
+
// Horizontal forms are built on grid classes and allow you to create forms with
|
|
38
|
+
// labels on the left and inputs on the right.
|
|
39
|
+
|
|
40
|
+
.rs-form-stack-horizontal {
|
|
41
|
+
--rs-form-control-label-width: 170px;
|
|
42
|
+
--rs-form-group-spacing: calc(var(--rs-spacing) * 3);
|
|
43
|
+
--rs-form-group-direction: row;
|
|
44
|
+
|
|
45
|
+
.rs-form-group {
|
|
46
|
+
align-items: baseline;
|
|
47
|
+
|
|
48
|
+
.rs-form-control-label {
|
|
49
|
+
display: inline-block;
|
|
50
|
+
font-size: var(--rs-font-size-sm);
|
|
51
|
+
width: var(--rs-form-control-label-width);
|
|
52
|
+
text-align: end;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.rs-btn-toolbar {
|
|
56
|
+
padding-inline-start: calc(var(--rs-form-control-label-width) + var(--rs-form-group-spacing));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Inline
|
|
62
|
+
.rs-form-stack-inline {
|
|
63
|
+
--rs-form-group-direction: row;
|
|
64
|
+
--rs-form-group-spacing: calc(var(--rs-spacing) * 3);
|
|
65
|
+
|
|
66
|
+
.rs-form-group {
|
|
67
|
+
align-items: center;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.rs-form-stack-fluid {
|
|
72
|
+
.rs-form-group {
|
|
73
|
+
width: 100%;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@use '../../internals/Box/styles/index' as box;
|
|
2
|
+
|
|
3
|
+
// Help text
|
|
4
|
+
//
|
|
5
|
+
// Apply to any element you wish to create light text for placement immediately
|
|
6
|
+
// below a form control. Use for general help, formatting, or instructional text.
|
|
7
|
+
|
|
8
|
+
.rs-form-help-text {
|
|
9
|
+
display: block; // account for any element using form-help-text
|
|
10
|
+
color: var(--rs-text-secondary); // lighten the text some for contrast
|
|
11
|
+
//Sometimes help info is more than one line,so height can't set a fixed value
|
|
12
|
+
min-height: var(--rs-line-height-base);
|
|
13
|
+
line-height: var(--rs-line-height-sm);
|
|
14
|
+
font-size: var(--rs-font-size-xs);
|
|
15
|
+
|
|
16
|
+
&-tooltip {
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
font-size: var(--rs-font-size-md);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@use '../../internals/Box/styles/index' as box;
|
|
2
|
+
|
|
3
|
+
.rs-form-stack {
|
|
4
|
+
--rs-form-stack-dir: column;
|
|
5
|
+
--rs-form-stack-spacing: calc(var(--rs-spacing) * 4);
|
|
6
|
+
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: var(--rs-form-stack-dir);
|
|
9
|
+
gap: var(--rs-form-stack-spacing);
|
|
10
|
+
align-items: flex-start;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.rs-form-stack-inline {
|
|
14
|
+
--rs-form-stack-dir: row;
|
|
15
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@use './mixin' as grid;
|
|
2
|
+
|
|
3
|
+
// Columns
|
|
4
|
+
//
|
|
5
|
+
// Common styles for small and large grid columns
|
|
6
|
+
.rs-col {
|
|
7
|
+
position: relative;
|
|
8
|
+
display: block;
|
|
9
|
+
max-width: 100%;
|
|
10
|
+
min-height: 1px;
|
|
11
|
+
padding-inline: var(--rs-col-gutter);
|
|
12
|
+
|
|
13
|
+
&[class*='rs-col-auto-'] {
|
|
14
|
+
flex-grow: var(--rs-col-auto-flex-grow);
|
|
15
|
+
flex-basis: var(--rs-col-auto-flex-basis);
|
|
16
|
+
max-width: var(--rs-col-auto-max-width);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Auto column styles for xs (default)
|
|
21
|
+
.rs-col-auto-xs {
|
|
22
|
+
@include grid.rs-col-auto-styles;
|
|
23
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
@use '../../styles/mixins/utilities' as utils;
|
|
2
|
+
@use 'sass:math';
|
|
3
|
+
|
|
4
|
+
// Grid system
|
|
5
|
+
//
|
|
6
|
+
// Generate semantic grid columns with these mixins.
|
|
7
|
+
|
|
8
|
+
// Centered container element
|
|
9
|
+
@mixin container-fixed {
|
|
10
|
+
margin-inline-end: auto;
|
|
11
|
+
margin-inline-start: auto;
|
|
12
|
+
padding-inline-start: calc(var(--rs-grid-gutter) / 2);
|
|
13
|
+
padding-inline-end: calc(var(--rs-grid-gutter) / 2);
|
|
14
|
+
@include utils.clearfix;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// Auto column styles
|
|
18
|
+
@mixin rs-col-auto-styles {
|
|
19
|
+
--rs-col-auto-flex-grow: 1;
|
|
20
|
+
--rs-col-auto-flex-basis: 0;
|
|
21
|
+
--rs-col-auto-max-width: 100%;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Mixin for responsive alignment
|
|
25
|
+
@mixin responsive-align($size) {
|
|
26
|
+
&-#{$size}-top {
|
|
27
|
+
align-items: flex-start;
|
|
28
|
+
}
|
|
29
|
+
&-#{$size}-middle {
|
|
30
|
+
align-items: center;
|
|
31
|
+
}
|
|
32
|
+
&-#{$size}-bottom {
|
|
33
|
+
align-items: flex-end;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Mixin for responsive justify
|
|
38
|
+
@mixin responsive-justify($size) {
|
|
39
|
+
&-#{$size}-start {
|
|
40
|
+
justify-content: flex-start;
|
|
41
|
+
}
|
|
42
|
+
&-#{$size}-end {
|
|
43
|
+
justify-content: flex-end;
|
|
44
|
+
}
|
|
45
|
+
&-#{$size}-center {
|
|
46
|
+
justify-content: center;
|
|
47
|
+
}
|
|
48
|
+
&-#{$size}-space-between {
|
|
49
|
+
justify-content: space-between;
|
|
50
|
+
}
|
|
51
|
+
&-#{$size}-space-around {
|
|
52
|
+
justify-content: space-around;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Create grid for specific class
|
|
57
|
+
@mixin make-grid($size) {
|
|
58
|
+
@for $value from 1 through 24 {
|
|
59
|
+
.rs-col-#{$size}-#{$value} {
|
|
60
|
+
width: math.percentage(math.div($value, 24));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.rs-col-#{$size}-pull-#{$value} {
|
|
64
|
+
inset-inline-end: math.percentage(math.div($value, 24));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.rs-col-#{$size}-push-#{$value} {
|
|
68
|
+
inset-inline-start: math.percentage(math.div($value, 24));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.rs-col-#{$size}-offset-#{$value} {
|
|
72
|
+
margin-inline-start: math.percentage(math.div($value, 24));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.rs-col-#{$size}-order-#{$value} {
|
|
76
|
+
order: $value;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.rs-col-#{$size}-pull-0 {
|
|
81
|
+
inset-inline-end: auto;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.rs-col-#{$size}-push-0 {
|
|
85
|
+
inset-inline-start: auto;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.rs-col-auto-#{$size} {
|
|
89
|
+
@include rs-col-auto-styles;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.rs-col {
|
|
93
|
+
--rs-col-gutter: calc(var(--rs-grid-gutter-#{$size}, var(--rs-grid-gutter)) / 2);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.rs-row {
|
|
97
|
+
--rs-row-gutter: calc(var(--rs-grid-gutter-#{$size}, var(--rs-grid-gutter)) / -2);
|
|
98
|
+
--rs-row-gap: var(--rs-grid-row-gutter-#{$size}, var(--rs-grid-row-gutter));
|
|
99
|
+
|
|
100
|
+
@include responsive-align($size);
|
|
101
|
+
@include responsive-justify($size);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// Hidden styles
|
|
106
|
+
@mixin hidden($size) {
|
|
107
|
+
.rs-hidden-#{$size} {
|
|
108
|
+
display: none;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
@use './mixin' as grid;
|
|
2
|
+
|
|
3
|
+
// Row
|
|
4
|
+
//
|
|
5
|
+
// Rows contain and clear the floats of your columns.
|
|
6
|
+
.rs-row {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-flow: row wrap;
|
|
9
|
+
|
|
10
|
+
// Base styles (xs breakpoint)
|
|
11
|
+
margin-inline: var(--rs-row-gutter);
|
|
12
|
+
row-gap: var(--rs-row-gap);
|
|
13
|
+
|
|
14
|
+
// Default alignment without breakpoint prefix
|
|
15
|
+
&-top {
|
|
16
|
+
align-items: flex-start;
|
|
17
|
+
}
|
|
18
|
+
&-middle {
|
|
19
|
+
align-items: center;
|
|
20
|
+
}
|
|
21
|
+
&-bottom {
|
|
22
|
+
align-items: flex-end;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Default justify without breakpoint prefix
|
|
26
|
+
&-start {
|
|
27
|
+
justify-content: flex-start;
|
|
28
|
+
}
|
|
29
|
+
&-end {
|
|
30
|
+
justify-content: flex-end;
|
|
31
|
+
}
|
|
32
|
+
&-center {
|
|
33
|
+
justify-content: center;
|
|
34
|
+
}
|
|
35
|
+
&-space-between {
|
|
36
|
+
justify-content: space-between;
|
|
37
|
+
}
|
|
38
|
+
&-space-around {
|
|
39
|
+
justify-content: space-around;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@include grid.responsive-align(xs);
|
|
43
|
+
@include grid.responsive-justify(xs);
|
|
44
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
@use '../../internals/Box/styles/index' as box;
|
|
2
|
+
@use '../../styles/colors/colors-base' as colors;
|
|
3
|
+
@use '../../styles/_variables' as vars;
|
|
4
|
+
@use './variables';
|
|
5
|
+
@use './mixin';
|
|
6
|
+
@use './row';
|
|
7
|
+
@use './columns';
|
|
8
|
+
|
|
9
|
+
//
|
|
10
|
+
// Grid system
|
|
11
|
+
// --------------------------------------------------
|
|
12
|
+
|
|
13
|
+
// Container widths
|
|
14
|
+
//
|
|
15
|
+
// Set the container width, and override it for fixed navbars in media queries.
|
|
16
|
+
|
|
17
|
+
.rs-grid-container {
|
|
18
|
+
--rs-grid-gutter-width: calc(var(--rs-spacing) * 3);
|
|
19
|
+
--rs-grid-container-sm: calc(540px + var(--rs-grid-gutter-width));
|
|
20
|
+
--rs-grid-container-md: calc(720px + var(--rs-grid-gutter-width));
|
|
21
|
+
--rs-grid-container-lg: calc(960px + var(--rs-grid-gutter-width));
|
|
22
|
+
--rs-grid-container-xl: calc(1140px + var(--rs-grid-gutter-width));
|
|
23
|
+
--rs-grid-container-xxl: calc(1320px + var(--rs-grid-gutter-width));
|
|
24
|
+
|
|
25
|
+
@include mixin.container-fixed;
|
|
26
|
+
|
|
27
|
+
@media (min-width: vars.$screen-sm) {
|
|
28
|
+
width: var(--rs-grid-container-sm);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@media (min-width: vars.$screen-md) {
|
|
32
|
+
width: var(--rs-grid-container-md);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@media (min-width: vars.$screen-lg) {
|
|
36
|
+
width: var(--rs-grid-container-lg);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@media (min-width: vars.$screen-xl) {
|
|
40
|
+
width: var(--rs-grid-container-xl);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@media (min-width: vars.$screen-xxl) {
|
|
44
|
+
width: var(--rs-grid-container-xxl);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Fluid container
|
|
49
|
+
//
|
|
50
|
+
// Utilizes the mixin meant for fixed width containers, but without any defined
|
|
51
|
+
// width for fluid, full width layouts.
|
|
52
|
+
|
|
53
|
+
.rs-grid-container-fluid {
|
|
54
|
+
@include mixin.container-fixed;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Extra small grid
|
|
58
|
+
//
|
|
59
|
+
// Columns, offsets, pushes, and pulls for extra small devices like
|
|
60
|
+
// smartphones.
|
|
61
|
+
|
|
62
|
+
@include mixin.make-grid(xs);
|
|
63
|
+
|
|
64
|
+
// Small grid
|
|
65
|
+
//
|
|
66
|
+
// Columns, offsets, pushes, and pulls for the small device range, from phones
|
|
67
|
+
// to tablets / phones.
|
|
68
|
+
|
|
69
|
+
@media (min-width: vars.$screen-sm) {
|
|
70
|
+
@include mixin.make-grid(sm);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@media (min-width: vars.$screen-md) {
|
|
74
|
+
@include mixin.make-grid(md);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@media (min-width: vars.$screen-lg) {
|
|
78
|
+
@include mixin.make-grid(lg);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@media (min-width: vars.$screen-xl) {
|
|
82
|
+
@include mixin.make-grid(xl);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@media (min-width: vars.$screen-xxl) {
|
|
86
|
+
@include mixin.make-grid(xxl);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// Hiddens
|
|
90
|
+
//
|
|
91
|
+
// All hidden styles.
|
|
92
|
+
|
|
93
|
+
@media (max-width: (vars.$screen-sm - 1)) {
|
|
94
|
+
@include mixin.hidden(xs);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@media (min-width: vars.$screen-sm) and (max-width: (vars.$screen-md - 1)) {
|
|
98
|
+
@include mixin.hidden(sm);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@media (min-width: vars.$screen-md) and (max-width: (vars.$screen-lg - 1)) {
|
|
102
|
+
@include mixin.hidden(md);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@media (min-width: vars.$screen-lg) and (max-width: (vars.$screen-xl - 1)) {
|
|
106
|
+
@include mixin.hidden(lg);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@media (min-width: vars.$screen-xl) and (max-width: (vars.$screen-xxl - 1)) {
|
|
110
|
+
@include mixin.hidden(xl);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@media (min-width: vars.$screen-xxl) {
|
|
114
|
+
@include mixin.hidden(xxl);
|
|
115
|
+
}
|