@react-ui-org/react-ui 0.44.0 → 0.46.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CONTRIBUTING.md +7 -0
- package/dist/lib.development.js +209 -305
- package/dist/lib.js +1 -1
- package/package.json +10 -13
- package/src/lib/components/Alert/Alert.jsx +4 -3
- package/src/lib/components/Alert/Alert.scss +48 -48
- package/src/lib/components/Alert/_settings.scss +4 -4
- package/src/lib/components/Alert/_theme.scss +50 -50
- package/src/lib/components/Alert/_tools.scss +6 -6
- package/src/lib/components/Badge/Badge.jsx +6 -8
- package/src/lib/components/Badge/Badge.scss +57 -57
- package/src/lib/components/Button/Button.jsx +10 -9
- package/src/lib/components/Button/Button.scss +2 -2
- package/src/lib/components/Button/README.mdx +8 -3
- package/src/lib/components/Button/_base.scss +65 -65
- package/src/lib/components/Button/_priorities.scss +49 -49
- package/src/lib/components/Button/_settings.scss +10 -10
- package/src/lib/components/Button/_theme.scss +18 -15
- package/src/lib/components/Button/_tools.scss +98 -100
- package/src/lib/components/ButtonGroup/ButtonGroup.jsx +31 -22
- package/src/lib/components/ButtonGroup/ButtonGroup.scss +3 -3
- package/src/lib/components/ButtonGroup/README.mdx +4 -4
- package/src/lib/components/Card/Card.jsx +7 -6
- package/src/lib/components/Card/Card.scss +28 -28
- package/src/lib/components/Card/CardBody.jsx +5 -11
- package/src/lib/components/Card/CardFooter.jsx +10 -5
- package/src/lib/components/Card/README.mdx +2 -2
- package/src/lib/components/Card/_theme.scss +50 -50
- package/src/lib/components/Card/_tools.scss +6 -6
- package/src/lib/components/CheckboxField/CheckboxField.jsx +18 -17
- package/src/lib/components/CheckboxField/CheckboxField.scss +20 -20
- package/src/lib/components/CheckboxField/README.mdx +3 -3
- package/src/lib/components/FileInputField/FileInputField.jsx +13 -12
- package/src/lib/components/FileInputField/FileInputField.scss +19 -19
- package/src/lib/components/FileInputField/README.mdx +1 -1
- package/src/lib/components/FormLayout/FormLayout.jsx +16 -14
- package/src/lib/components/FormLayout/FormLayout.scss +17 -17
- package/src/lib/components/FormLayout/FormLayoutCustomField.jsx +15 -9
- package/src/lib/components/FormLayout/FormLayoutCustomField.scss +18 -18
- package/src/lib/components/FormLayout/README.mdx +27 -49
- package/src/lib/components/Grid/Grid.jsx +4 -3
- package/src/lib/components/Grid/Grid.scss +32 -23
- package/src/lib/components/Grid/GridSpan.jsx +4 -3
- package/src/lib/components/Grid/{helpers → _helpers}/generateResponsiveCustomProperties.js +0 -2
- package/src/lib/components/Grid/_theme.scss +9 -9
- package/src/lib/components/Grid/_tools.scss +20 -20
- package/src/lib/components/List/List.jsx +14 -12
- package/src/lib/components/List/List.scss +21 -21
- package/src/lib/components/List/ListItem.jsx +3 -2
- package/src/lib/components/List/README.mdx +1 -1
- package/src/lib/components/Media/Media.jsx +12 -5
- package/src/lib/components/Media/Media.scss +6 -6
- package/src/lib/components/Media/MediaBody.jsx +18 -7
- package/src/lib/components/Media/MediaObject.jsx +18 -7
- package/src/lib/components/Modal/Modal.jsx +8 -6
- package/src/lib/components/Modal/Modal.scss +73 -73
- package/src/lib/components/Modal/README.mdx +2 -2
- package/src/lib/components/Modal/_settings.scss +5 -5
- package/src/lib/components/Modal/_theme.scss +17 -17
- package/src/lib/components/Paper/Paper.jsx +6 -6
- package/src/lib/components/Paper/Paper.scss +8 -8
- package/src/lib/components/Paper/README.mdx +1 -1
- package/src/lib/components/Radio/README.mdx +4 -4
- package/src/lib/components/Radio/Radio.jsx +12 -11
- package/src/lib/components/Radio/Radio.scss +26 -26
- package/src/lib/components/ScrollView/README.mdx +4 -1
- package/src/lib/components/ScrollView/ScrollView.jsx +11 -9
- package/src/lib/components/ScrollView/ScrollView.scss +113 -113
- package/src/lib/{services/elementPositionService.js → components/ScrollView/_helpers/getElementsPositionDifference.js} +0 -2
- package/src/lib/{hooks → components/ScrollView/_hooks}/useLoadResizeHook.js +1 -1
- package/src/lib/{hooks → components/ScrollView/_hooks}/useScrollPositionHook.js +1 -1
- package/src/lib/components/SelectField/README.mdx +4 -4
- package/src/lib/components/SelectField/SelectField.jsx +14 -13
- package/src/lib/components/SelectField/SelectField.scss +30 -30
- package/src/lib/components/Table/README.mdx +3 -3
- package/src/lib/components/Table/Table.scss +28 -35
- package/src/lib/components/Table/_settings.scss +5 -5
- package/src/lib/components/Tabs/README.mdx +1 -1
- package/src/lib/components/Tabs/Tabs.jsx +1 -2
- package/src/lib/components/Tabs/Tabs.scss +21 -21
- package/src/lib/components/Tabs/TabsItem.jsx +4 -3
- package/src/lib/components/Tabs/TabsItem.scss +78 -78
- package/src/lib/components/Text/README.mdx +1 -1
- package/src/lib/components/Text/Text.jsx +13 -6
- package/src/lib/components/Text/Text.scss +23 -13
- package/src/lib/components/Text/_helpers/getRootClampClassName.js +11 -0
- package/src/lib/components/Text/{helpers → _helpers}/getRootHyphensClassName.js +1 -1
- package/src/lib/components/Text/{helpers → _helpers}/getRootWordWrappingClassName.js +1 -1
- package/src/lib/components/TextArea/README.mdx +1 -1
- package/src/lib/components/TextArea/TextArea.jsx +18 -14
- package/src/lib/components/TextArea/TextArea.scss +27 -27
- package/src/lib/components/TextField/README.mdx +1 -1
- package/src/lib/components/TextField/TextField.jsx +16 -14
- package/src/lib/components/TextField/TextField.scss +28 -28
- package/src/lib/components/TextLink/README.mdx +77 -0
- package/src/lib/components/{Link/Link.jsx → TextLink/TextLink.jsx} +12 -13
- package/src/lib/components/TextLink/TextLink.scss +11 -0
- package/src/lib/components/TextLink/_theme.scss +4 -0
- package/src/lib/components/TextLink/index.js +1 -0
- package/src/lib/components/Toggle/README.mdx +3 -3
- package/src/lib/components/Toggle/Toggle.jsx +18 -17
- package/src/lib/components/Toggle/Toggle.scss +20 -20
- package/src/lib/components/Toolbar/README.mdx +19 -3
- package/src/lib/components/Toolbar/Toolbar.jsx +23 -14
- package/src/lib/components/Toolbar/Toolbar.scss +35 -30
- package/src/lib/components/Toolbar/ToolbarGroup.jsx +18 -13
- package/src/lib/components/Toolbar/ToolbarItem.jsx +26 -7
- package/src/lib/{helpers → components/_helpers}/getRootColorClassName.js +1 -1
- package/src/lib/{helpers → components/_helpers}/getRootSizeClassName.js +1 -1
- package/src/lib/{helpers → components/_helpers}/getRootValidationStateClassName.js +1 -1
- package/src/lib/components/_helpers/isChildrenEmpty.js +3 -0
- package/src/lib/{helpers → components/_helpers}/resolveContextOrProp.js +0 -0
- package/src/lib/{utils → components/_helpers}/transferProps.js +1 -1
- package/src/lib/foundation.scss +11 -11
- package/src/lib/helpers.scss +2 -2
- package/src/lib/index.js +4 -8
- package/src/lib/styles/_utilities.scss +13 -13
- package/src/lib/styles/elements/_code.scss +7 -7
- package/src/lib/styles/elements/_links.scss +8 -8
- package/src/lib/styles/elements/_lists.scss +3 -3
- package/src/lib/styles/elements/_page.scss +14 -14
- package/src/lib/styles/elements/_rulers.scss +6 -6
- package/src/lib/styles/elements/_small.scss +2 -2
- package/src/lib/styles/generic/_box-sizing.scss +3 -2
- package/src/lib/styles/generic/_forms.scss +3 -3
- package/src/lib/styles/generic/_reset.scss +6 -6
- package/src/lib/styles/generic/_shared.scss +3 -3
- package/src/lib/styles/helpers/_animation.scss +8 -8
- package/src/lib/styles/settings/_breakpoints.scss +7 -7
- package/src/lib/styles/settings/_escaped-characters.scss +5 -5
- package/src/lib/styles/settings/_form-fields.scss +24 -24
- package/src/lib/styles/settings/_utilities.scss +112 -100
- package/src/lib/styles/theme/_colors.scss +50 -50
- package/src/lib/styles/theme/_form-fields.scss +32 -32
- package/src/lib/styles/theme/_spacing.scss +11 -11
- package/src/lib/styles/theme/_typography.scss +12 -11
- package/src/lib/styles/theme-constants/_breakpoints.scss +2 -2
- package/src/lib/styles/theme-constants/_colors.scss +2 -2
- package/src/lib/styles/theme-constants/_svg.scss +1 -2
- package/src/lib/styles/tools/_accessibility.scss +29 -29
- package/src/lib/styles/tools/_breakpoint.scss +11 -14
- package/src/lib/styles/tools/_caret.scss +8 -8
- package/src/lib/styles/tools/_colors.scss +3 -3
- package/src/lib/styles/tools/_reset.scss +24 -21
- package/src/lib/styles/tools/_scrollbar.scss +4 -4
- package/src/lib/styles/tools/_spacing.scss +17 -21
- package/src/lib/styles/tools/_string.scss +9 -9
- package/src/lib/styles/tools/_svg.scss +13 -16
- package/src/lib/styles/tools/_transition.scss +42 -44
- package/src/lib/styles/tools/_utilities.scss +19 -19
- package/src/lib/styles/tools/form-fields/_box-field-elements.scss +88 -88
- package/src/lib/styles/tools/form-fields/_box-field-layout.scss +147 -147
- package/src/lib/styles/tools/form-fields/_box-field-sizes.scss +13 -15
- package/src/lib/styles/tools/form-fields/_foundation.scss +12 -12
- package/src/lib/styles/tools/form-fields/_inline-field-elements.scss +82 -71
- package/src/lib/styles/tools/form-fields/_inline-field-layout.scss +88 -47
- package/src/lib/styles/tools/form-fields/_variants.scss +104 -106
- package/src/lib/theme.scss +958 -954
- package/src/lib/utils/classNames.js +8 -0
- package/src/lib/components/CTA/CTA.jsx +0 -60
- package/src/lib/components/CTA/CTA.scss +0 -71
- package/src/lib/components/CTA/CTACenter.jsx +0 -27
- package/src/lib/components/CTA/CTAEnd.jsx +0 -27
- package/src/lib/components/CTA/CTAStart.jsx +0 -27
- package/src/lib/components/CTA/README.mdx +0 -119
- package/src/lib/components/CTA/index.js +0 -4
- package/src/lib/components/Center/Center.jsx +0 -27
- package/src/lib/components/Center/Center.scss +0 -7
- package/src/lib/components/Center/README.mdx +0 -52
- package/src/lib/components/Center/index.js +0 -1
- package/src/lib/components/Link/Link.scss +0 -11
- package/src/lib/components/Link/README.mdx +0 -85
- package/src/lib/components/Link/_theme.scss +0 -4
- package/src/lib/components/Link/index.js +0 -1
@@ -207,7 +207,7 @@ of your choice and display label once you know there is enough room for it.
|
|
207
207
|
|
208
208
|
## Buttons with Badges
|
209
209
|
|
210
|
-
A [Badge](/components/
|
210
|
+
A [Badge](/components/badge) can be added to buttons to provide additional
|
211
211
|
information or to draw user's attention.
|
212
212
|
|
213
213
|
<Playground>
|
@@ -399,7 +399,7 @@ animation is made.
|
|
399
399
|
|
400
400
|
In addition to the options below, you can specify [React synthetic events] or
|
401
401
|
any custom HTML attributes that do not interfere with the API, and they will be
|
402
|
-
passed to the
|
402
|
+
passed to the `<button>` HTML element. This enables making the component
|
403
403
|
interactive and helps improve its accessibility.
|
404
404
|
|
405
405
|
<Props table of={Button} />
|
@@ -448,7 +448,11 @@ Where:
|
|
448
448
|
|
449
449
|
- `<SIZE>` is one of `small`, `medium`, or `large` (see [Sizes](#sizes) and
|
450
450
|
[API](#api))
|
451
|
-
- `<PROPERTY>` is one of `height`, `padding-x`, or `font-size`
|
451
|
+
- `<PROPERTY>` is one of `height`, `padding-x`, `padding-y`, or `font-size`
|
452
|
+
|
453
|
+
👉 Button sizes are linked to
|
454
|
+
[box field sizes](/customize/theming/forms#box-field-sizes) sizes so they align
|
455
|
+
nicely when placed in row.
|
452
456
|
|
453
457
|
### Example Theme
|
454
458
|
|
@@ -464,6 +468,7 @@ Where:
|
|
464
468
|
0.1em 0.1em 0.5em rgba(0, 0, 0, 0.3);
|
465
469
|
--rui-Button--medium__height: 3rem;
|
466
470
|
--rui-Button--medium__padding-x: 1.25rem;
|
471
|
+
--rui-Button--medium__padding-y: 0.25rem;
|
467
472
|
}
|
468
473
|
`}
|
469
474
|
</style>
|
@@ -1,15 +1,15 @@
|
|
1
|
-
@use
|
2
|
-
@use
|
3
|
-
@use
|
4
|
-
@use
|
5
|
-
@use
|
1
|
+
@use "sass:map";
|
2
|
+
@use "../../styles/tools/breakpoint";
|
3
|
+
@use "settings";
|
4
|
+
@use "theme";
|
5
|
+
@use "tools";
|
6
6
|
|
7
7
|
.root {
|
8
|
-
|
8
|
+
@include tools.button();
|
9
9
|
}
|
10
10
|
|
11
11
|
.label {
|
12
|
-
|
12
|
+
display: block;
|
13
13
|
}
|
14
14
|
|
15
15
|
.beforeLabel,
|
@@ -17,88 +17,88 @@
|
|
17
17
|
.startCorner,
|
18
18
|
.endCorner,
|
19
19
|
.feedbackIcon {
|
20
|
-
|
21
|
-
|
22
|
-
|
20
|
+
display: flex;
|
21
|
+
align-items: baseline;
|
22
|
+
justify-content: center;
|
23
23
|
}
|
24
24
|
|
25
25
|
.startCorner,
|
26
26
|
.endCorner {
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
position: absolute;
|
28
|
+
top: -0.35rem;
|
29
|
+
z-index: 2;
|
30
30
|
}
|
31
31
|
|
32
32
|
.startCorner {
|
33
|
-
|
34
|
-
|
33
|
+
left: 0;
|
34
|
+
margin-left: -0.35rem;
|
35
35
|
}
|
36
36
|
|
37
37
|
.endCorner {
|
38
|
-
|
39
|
-
|
38
|
+
right: 0;
|
39
|
+
margin-right: -0.35rem;
|
40
40
|
}
|
41
41
|
|
42
42
|
.feedbackIcon {
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
43
|
+
position: absolute;
|
44
|
+
top: 0;
|
45
|
+
right: 0;
|
46
|
+
bottom: 0;
|
47
|
+
left: 0;
|
48
|
+
z-index: 1;
|
49
|
+
align-items: center;
|
50
50
|
}
|
51
51
|
|
52
52
|
.rootSizeSmall {
|
53
|
-
|
53
|
+
@include tools.button-size(small);
|
54
54
|
}
|
55
55
|
|
56
56
|
.rootSizeMedium {
|
57
|
-
|
57
|
+
@include tools.button-size(medium);
|
58
58
|
}
|
59
59
|
|
60
60
|
.rootSizeLarge {
|
61
|
-
|
61
|
+
@include tools.button-size(large);
|
62
62
|
}
|
63
63
|
|
64
64
|
.rootBlock {
|
65
|
-
|
65
|
+
width: 100%;
|
66
66
|
}
|
67
67
|
|
68
68
|
.hasRootFeedback:disabled {
|
69
|
-
|
70
|
-
|
69
|
+
opacity: theme.$feedback-opacity;
|
70
|
+
cursor: theme.$feedback-cursor;
|
71
71
|
}
|
72
72
|
|
73
73
|
.hasRootFeedback .label,
|
74
74
|
.hasRootFeedback .beforeLabel,
|
75
75
|
.hasRootFeedback .afterLabel {
|
76
|
-
|
76
|
+
color: transparent;
|
77
77
|
}
|
78
78
|
|
79
79
|
.rootGrouped {
|
80
|
-
|
80
|
+
z-index: map.get(settings.$group-z-indexes, button);
|
81
81
|
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
82
|
+
&:not(:first-child) {
|
83
|
+
margin-left: var(--rui-local-gap);
|
84
|
+
border-top-left-radius: 0;
|
85
|
+
border-bottom-left-radius: 0;
|
86
|
+
}
|
87
87
|
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
88
|
+
&:not(:last-child) {
|
89
|
+
border-top-right-radius: 0;
|
90
|
+
border-bottom-right-radius: 0;
|
91
|
+
}
|
92
92
|
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
93
|
+
&:focus,
|
94
|
+
&:not(:disabled):hover {
|
95
|
+
z-index: map.get(settings.$group-z-indexes, button-hover);
|
96
|
+
}
|
97
97
|
}
|
98
98
|
|
99
99
|
.rootGrouped .startCorner,
|
100
100
|
.rootGrouped .endCorner {
|
101
|
-
|
101
|
+
z-index: map.get(settings.$group-z-indexes, button-overflowing-elements);
|
102
102
|
}
|
103
103
|
|
104
104
|
.withLabelHidden,
|
@@ -108,41 +108,41 @@
|
|
108
108
|
.withLabelVisibleXl,
|
109
109
|
.withLabelVisibleXxl,
|
110
110
|
.withLabelVisibleXxxl {
|
111
|
-
|
111
|
+
@include tools.hide-label();
|
112
112
|
}
|
113
113
|
|
114
114
|
.withLabelVisibleSm {
|
115
|
-
|
116
|
-
|
117
|
-
|
115
|
+
@include breakpoint.up(sm) {
|
116
|
+
@include tools.show-label();
|
117
|
+
}
|
118
118
|
}
|
119
119
|
|
120
120
|
.withLabelVisibleMd {
|
121
|
-
|
122
|
-
|
123
|
-
|
121
|
+
@include breakpoint.up(md) {
|
122
|
+
@include tools.show-label();
|
123
|
+
}
|
124
124
|
}
|
125
125
|
|
126
126
|
.withLabelVisibleLg {
|
127
|
-
|
128
|
-
|
129
|
-
|
127
|
+
@include breakpoint.up(lg) {
|
128
|
+
@include tools.show-label();
|
129
|
+
}
|
130
130
|
}
|
131
131
|
|
132
132
|
.withLabelVisibleXl {
|
133
|
-
|
134
|
-
|
135
|
-
|
133
|
+
@include breakpoint.up(xl) {
|
134
|
+
@include tools.show-label();
|
135
|
+
}
|
136
136
|
}
|
137
137
|
|
138
138
|
.withLabelVisibleXxl {
|
139
|
-
|
140
|
-
|
141
|
-
|
139
|
+
@include breakpoint.up(xxl) {
|
140
|
+
@include tools.show-label();
|
141
|
+
}
|
142
142
|
}
|
143
143
|
|
144
144
|
.withLabelVisibleXxxl {
|
145
|
-
|
146
|
-
|
147
|
-
|
145
|
+
@include breakpoint.up(xxxl) {
|
146
|
+
@include tools.show-label();
|
147
|
+
}
|
148
148
|
}
|
@@ -1,152 +1,152 @@
|
|
1
|
-
@use
|
2
|
-
@use
|
3
|
-
@use
|
4
|
-
@use
|
1
|
+
@use "sass:map";
|
2
|
+
@use "settings";
|
3
|
+
@use "theme";
|
4
|
+
@use "tools";
|
5
5
|
|
6
6
|
.rootPriorityFilled.rootColorPrimary {
|
7
|
-
|
7
|
+
@include tools.button-color(filled, primary);
|
8
8
|
}
|
9
9
|
|
10
10
|
.rootPriorityFilled.rootColorSecondary {
|
11
|
-
|
11
|
+
@include tools.button-color(filled, secondary);
|
12
12
|
}
|
13
13
|
|
14
14
|
.rootPriorityFilled.rootColorSuccess {
|
15
|
-
|
15
|
+
@include tools.button-color(filled, success);
|
16
16
|
}
|
17
17
|
|
18
18
|
.rootPriorityFilled.rootColorWarning {
|
19
|
-
|
19
|
+
@include tools.button-color(filled, warning);
|
20
20
|
}
|
21
21
|
|
22
22
|
.rootPriorityFilled.rootColorDanger {
|
23
|
-
|
23
|
+
@include tools.button-color(filled, danger);
|
24
24
|
}
|
25
25
|
|
26
26
|
.rootPriorityFilled.rootColorHelp {
|
27
|
-
|
27
|
+
@include tools.button-color(filled, help);
|
28
28
|
}
|
29
29
|
|
30
30
|
.rootPriorityFilled.rootColorInfo {
|
31
|
-
|
31
|
+
@include tools.button-color(filled, info);
|
32
32
|
}
|
33
33
|
|
34
34
|
.rootPriorityFilled.rootColorNote {
|
35
|
-
|
35
|
+
@include tools.button-color(filled, note);
|
36
36
|
}
|
37
37
|
|
38
38
|
.rootPriorityFilled.rootColorLight {
|
39
|
-
|
39
|
+
@include tools.button-color(filled, light);
|
40
40
|
}
|
41
41
|
|
42
42
|
.rootPriorityFilled.rootColorDark {
|
43
|
-
|
43
|
+
@include tools.button-color(filled, dark);
|
44
44
|
}
|
45
45
|
|
46
46
|
.rootPriorityOutline.rootColorPrimary {
|
47
|
-
|
47
|
+
@include tools.button-color(outline, primary);
|
48
48
|
}
|
49
49
|
|
50
50
|
.rootPriorityOutline.rootColorSecondary {
|
51
|
-
|
51
|
+
@include tools.button-color(outline, secondary);
|
52
52
|
}
|
53
53
|
|
54
54
|
.rootPriorityOutline.rootColorSuccess {
|
55
|
-
|
55
|
+
@include tools.button-color(outline, success);
|
56
56
|
}
|
57
57
|
|
58
58
|
.rootPriorityOutline.rootColorWarning {
|
59
|
-
|
59
|
+
@include tools.button-color(outline, warning);
|
60
60
|
}
|
61
61
|
|
62
62
|
.rootPriorityOutline.rootColorDanger {
|
63
|
-
|
63
|
+
@include tools.button-color(outline, danger);
|
64
64
|
}
|
65
65
|
|
66
66
|
.rootPriorityOutline.rootColorHelp {
|
67
|
-
|
67
|
+
@include tools.button-color(outline, help);
|
68
68
|
}
|
69
69
|
|
70
70
|
.rootPriorityOutline.rootColorInfo {
|
71
|
-
|
71
|
+
@include tools.button-color(outline, info);
|
72
72
|
}
|
73
73
|
|
74
74
|
.rootPriorityOutline.rootColorNote {
|
75
|
-
|
75
|
+
@include tools.button-color(outline, note);
|
76
76
|
}
|
77
77
|
|
78
78
|
.rootPriorityOutline.rootColorLight {
|
79
|
-
|
79
|
+
@include tools.button-color(outline, light);
|
80
80
|
}
|
81
81
|
|
82
82
|
.rootPriorityOutline.rootColorDark {
|
83
|
-
|
83
|
+
@include tools.button-color(outline, dark);
|
84
84
|
}
|
85
85
|
|
86
86
|
.rootPriorityFlat.rootColorPrimary {
|
87
|
-
|
87
|
+
@include tools.button-color(flat, primary);
|
88
88
|
}
|
89
89
|
|
90
90
|
.rootPriorityFlat.rootColorSecondary {
|
91
|
-
|
91
|
+
@include tools.button-color(flat, secondary);
|
92
92
|
}
|
93
93
|
|
94
94
|
.rootPriorityFlat.rootColorSuccess {
|
95
|
-
|
95
|
+
@include tools.button-color(flat, success);
|
96
96
|
}
|
97
97
|
|
98
98
|
.rootPriorityFlat.rootColorWarning {
|
99
|
-
|
99
|
+
@include tools.button-color(flat, warning);
|
100
100
|
}
|
101
101
|
|
102
102
|
.rootPriorityFlat.rootColorDanger {
|
103
|
-
|
103
|
+
@include tools.button-color(flat, danger);
|
104
104
|
}
|
105
105
|
|
106
106
|
.rootPriorityFlat.rootColorHelp {
|
107
|
-
|
107
|
+
@include tools.button-color(flat, help);
|
108
108
|
}
|
109
109
|
|
110
110
|
.rootPriorityFlat.rootColorInfo {
|
111
|
-
|
111
|
+
@include tools.button-color(flat, info);
|
112
112
|
}
|
113
113
|
|
114
114
|
.rootPriorityFlat.rootColorNote {
|
115
|
-
|
115
|
+
@include tools.button-color(flat, note);
|
116
116
|
}
|
117
117
|
|
118
118
|
.rootPriorityFlat.rootColorLight {
|
119
|
-
|
119
|
+
@include tools.button-color(flat, light);
|
120
120
|
}
|
121
121
|
|
122
122
|
.rootPriorityFlat.rootColorDark {
|
123
|
-
|
123
|
+
@include tools.button-color(flat, dark);
|
124
124
|
}
|
125
125
|
|
126
126
|
.rootPriorityFilled.rootGrouped:not(:first-child)::before,
|
127
127
|
.rootPriorityFlat.rootGrouped:not(:first-child)::before {
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
128
|
+
content: "";
|
129
|
+
position: absolute;
|
130
|
+
top: calc(-1 * #{theme.$border-width});
|
131
|
+
bottom: calc(-1 * #{theme.$border-width});
|
132
|
+
left: calc(-1 * #{theme.$border-width});
|
133
|
+
z-index: map.get(settings.$group-z-indexes, separator);
|
134
|
+
border-left: var(--rui-local-separator-width) solid var(--rui-local-separator-color);
|
135
|
+
transform: translateX(calc(-0.5 * var(--rui-local-gap) - 50%));
|
136
136
|
}
|
137
137
|
|
138
138
|
.rootPriorityFilled.rootGrouped:not(:first-child) {
|
139
|
-
|
140
|
-
|
141
|
-
|
139
|
+
--rui-local-gap: #{theme.$group-filled-gap};
|
140
|
+
--rui-local-separator-width: #{theme.$group-filled-separator-width};
|
141
|
+
--rui-local-separator-color: #{theme.$group-filled-separator-color};
|
142
142
|
}
|
143
143
|
|
144
144
|
.rootPriorityFlat.rootGrouped:not(:first-child) {
|
145
|
-
|
146
|
-
|
147
|
-
|
145
|
+
--rui-local-gap: #{theme.$group-flat-gap};
|
146
|
+
--rui-local-separator-width: #{theme.$group-flat-separator-width};
|
147
|
+
--rui-local-separator-color: #{theme.$group-flat-separator-color};
|
148
148
|
}
|
149
149
|
|
150
150
|
.rootPriorityOutline.rootGrouped:not(:first-child) {
|
151
|
-
|
151
|
+
--rui-local-gap: #{theme.$group-outline-gap};
|
152
152
|
}
|
@@ -1,21 +1,21 @@
|
|
1
|
-
@use
|
2
|
-
@use
|
1
|
+
@use "../../styles/theme/typography";
|
2
|
+
@use "../../styles/tools/spacing";
|
3
3
|
|
4
4
|
$font-family: typography.$font-family-base;
|
5
|
-
$line-height: typography.$line-height-
|
5
|
+
$line-height: typography.$line-height-small;
|
6
6
|
$icon-spacing: spacing.of(2);
|
7
7
|
|
8
8
|
$group-z-indexes: (
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
button: auto,
|
10
|
+
button-hover: 1,
|
11
|
+
separator: 2,
|
12
|
+
button-overflowing-elements: 3,
|
13
13
|
);
|
14
14
|
|
15
15
|
$themeable-variants: (primary, secondary, success, warning, danger, help, info, note, light, dark);
|
16
16
|
$themeable-states: (default, hover, active, disabled);
|
17
17
|
$themeable-priority-properties: (
|
18
|
-
|
19
|
-
|
20
|
-
|
18
|
+
filled: (color, border-color, background, box-shadow),
|
19
|
+
outline: (color, border-color, background),
|
20
|
+
flat: (color, background),
|
21
21
|
);
|
@@ -23,19 +23,22 @@ $group-flat-separator-color: var(--rui-ButtonGroup--flat__separator__color);
|
|
23
23
|
$group-outline-gap: var(--rui-ButtonGroup--outline__gap);
|
24
24
|
|
25
25
|
$sizes: (
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
26
|
+
small: (
|
27
|
+
height: var(--rui-Button--small__height),
|
28
|
+
padding-y: var(--rui-Button--small__padding-y),
|
29
|
+
padding-x: var(--rui-Button--small__padding-x),
|
30
|
+
font-size: var(--rui-Button--small__font-size),
|
31
|
+
),
|
32
|
+
medium: (
|
33
|
+
height: var(--rui-Button--medium__height),
|
34
|
+
padding-y: var(--rui-Button--medium__padding-y),
|
35
|
+
padding-x: var(--rui-Button--medium__padding-x),
|
36
|
+
font-size: var(--rui-Button--medium__font-size),
|
37
|
+
),
|
38
|
+
large: (
|
39
|
+
height: var(--rui-Button--large__height),
|
40
|
+
padding-y: var(--rui-Button--large__padding-y),
|
41
|
+
padding-x: var(--rui-Button--large__padding-x),
|
42
|
+
font-size: var(--rui-Button--large__font-size),
|
43
|
+
),
|
41
44
|
);
|