@react-ui-org/react-ui 0.44.0 → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/CONTRIBUTING.md +7 -0
  2. package/dist/lib.development.js +209 -305
  3. package/dist/lib.js +1 -1
  4. package/package.json +10 -13
  5. package/src/lib/components/Alert/Alert.jsx +4 -3
  6. package/src/lib/components/Alert/Alert.scss +48 -48
  7. package/src/lib/components/Alert/_settings.scss +4 -4
  8. package/src/lib/components/Alert/_theme.scss +50 -50
  9. package/src/lib/components/Alert/_tools.scss +6 -6
  10. package/src/lib/components/Badge/Badge.jsx +6 -8
  11. package/src/lib/components/Badge/Badge.scss +57 -57
  12. package/src/lib/components/Button/Button.jsx +10 -9
  13. package/src/lib/components/Button/Button.scss +2 -2
  14. package/src/lib/components/Button/README.mdx +8 -3
  15. package/src/lib/components/Button/_base.scss +65 -65
  16. package/src/lib/components/Button/_priorities.scss +49 -49
  17. package/src/lib/components/Button/_settings.scss +10 -10
  18. package/src/lib/components/Button/_theme.scss +18 -15
  19. package/src/lib/components/Button/_tools.scss +98 -100
  20. package/src/lib/components/ButtonGroup/ButtonGroup.jsx +31 -22
  21. package/src/lib/components/ButtonGroup/ButtonGroup.scss +3 -3
  22. package/src/lib/components/ButtonGroup/README.mdx +4 -4
  23. package/src/lib/components/Card/Card.jsx +7 -6
  24. package/src/lib/components/Card/Card.scss +28 -28
  25. package/src/lib/components/Card/CardBody.jsx +5 -11
  26. package/src/lib/components/Card/CardFooter.jsx +10 -5
  27. package/src/lib/components/Card/README.mdx +2 -2
  28. package/src/lib/components/Card/_theme.scss +50 -50
  29. package/src/lib/components/Card/_tools.scss +6 -6
  30. package/src/lib/components/CheckboxField/CheckboxField.jsx +18 -17
  31. package/src/lib/components/CheckboxField/CheckboxField.scss +20 -20
  32. package/src/lib/components/CheckboxField/README.mdx +3 -3
  33. package/src/lib/components/FileInputField/FileInputField.jsx +13 -12
  34. package/src/lib/components/FileInputField/FileInputField.scss +19 -19
  35. package/src/lib/components/FileInputField/README.mdx +1 -1
  36. package/src/lib/components/FormLayout/FormLayout.jsx +16 -14
  37. package/src/lib/components/FormLayout/FormLayout.scss +17 -17
  38. package/src/lib/components/FormLayout/FormLayoutCustomField.jsx +15 -9
  39. package/src/lib/components/FormLayout/FormLayoutCustomField.scss +18 -18
  40. package/src/lib/components/FormLayout/README.mdx +27 -49
  41. package/src/lib/components/Grid/Grid.jsx +4 -3
  42. package/src/lib/components/Grid/Grid.scss +32 -23
  43. package/src/lib/components/Grid/GridSpan.jsx +4 -3
  44. package/src/lib/components/Grid/{helpers → _helpers}/generateResponsiveCustomProperties.js +0 -2
  45. package/src/lib/components/Grid/_theme.scss +9 -9
  46. package/src/lib/components/Grid/_tools.scss +20 -20
  47. package/src/lib/components/List/List.jsx +14 -12
  48. package/src/lib/components/List/List.scss +21 -21
  49. package/src/lib/components/List/ListItem.jsx +3 -2
  50. package/src/lib/components/List/README.mdx +1 -1
  51. package/src/lib/components/Media/Media.jsx +12 -5
  52. package/src/lib/components/Media/Media.scss +6 -6
  53. package/src/lib/components/Media/MediaBody.jsx +18 -7
  54. package/src/lib/components/Media/MediaObject.jsx +18 -7
  55. package/src/lib/components/Modal/Modal.jsx +8 -6
  56. package/src/lib/components/Modal/Modal.scss +73 -73
  57. package/src/lib/components/Modal/README.mdx +2 -2
  58. package/src/lib/components/Modal/_settings.scss +5 -5
  59. package/src/lib/components/Modal/_theme.scss +17 -17
  60. package/src/lib/components/Paper/Paper.jsx +6 -6
  61. package/src/lib/components/Paper/Paper.scss +8 -8
  62. package/src/lib/components/Paper/README.mdx +1 -1
  63. package/src/lib/components/Radio/README.mdx +4 -4
  64. package/src/lib/components/Radio/Radio.jsx +12 -11
  65. package/src/lib/components/Radio/Radio.scss +26 -26
  66. package/src/lib/components/ScrollView/README.mdx +4 -1
  67. package/src/lib/components/ScrollView/ScrollView.jsx +11 -9
  68. package/src/lib/components/ScrollView/ScrollView.scss +113 -113
  69. package/src/lib/{services/elementPositionService.js → components/ScrollView/_helpers/getElementsPositionDifference.js} +0 -2
  70. package/src/lib/{hooks → components/ScrollView/_hooks}/useLoadResizeHook.js +1 -1
  71. package/src/lib/{hooks → components/ScrollView/_hooks}/useScrollPositionHook.js +1 -1
  72. package/src/lib/components/SelectField/README.mdx +4 -4
  73. package/src/lib/components/SelectField/SelectField.jsx +14 -13
  74. package/src/lib/components/SelectField/SelectField.scss +30 -30
  75. package/src/lib/components/Table/README.mdx +3 -3
  76. package/src/lib/components/Table/Table.scss +28 -35
  77. package/src/lib/components/Table/_settings.scss +5 -5
  78. package/src/lib/components/Tabs/README.mdx +1 -1
  79. package/src/lib/components/Tabs/Tabs.jsx +1 -2
  80. package/src/lib/components/Tabs/Tabs.scss +21 -21
  81. package/src/lib/components/Tabs/TabsItem.jsx +4 -3
  82. package/src/lib/components/Tabs/TabsItem.scss +78 -78
  83. package/src/lib/components/Text/README.mdx +1 -1
  84. package/src/lib/components/Text/Text.jsx +13 -6
  85. package/src/lib/components/Text/Text.scss +23 -13
  86. package/src/lib/components/Text/_helpers/getRootClampClassName.js +11 -0
  87. package/src/lib/components/Text/{helpers → _helpers}/getRootHyphensClassName.js +1 -1
  88. package/src/lib/components/Text/{helpers → _helpers}/getRootWordWrappingClassName.js +1 -1
  89. package/src/lib/components/TextArea/README.mdx +1 -1
  90. package/src/lib/components/TextArea/TextArea.jsx +18 -14
  91. package/src/lib/components/TextArea/TextArea.scss +27 -27
  92. package/src/lib/components/TextField/README.mdx +1 -1
  93. package/src/lib/components/TextField/TextField.jsx +16 -14
  94. package/src/lib/components/TextField/TextField.scss +28 -28
  95. package/src/lib/components/TextLink/README.mdx +77 -0
  96. package/src/lib/components/{Link/Link.jsx → TextLink/TextLink.jsx} +12 -13
  97. package/src/lib/components/TextLink/TextLink.scss +11 -0
  98. package/src/lib/components/TextLink/_theme.scss +4 -0
  99. package/src/lib/components/TextLink/index.js +1 -0
  100. package/src/lib/components/Toggle/README.mdx +3 -3
  101. package/src/lib/components/Toggle/Toggle.jsx +18 -17
  102. package/src/lib/components/Toggle/Toggle.scss +20 -20
  103. package/src/lib/components/Toolbar/README.mdx +19 -3
  104. package/src/lib/components/Toolbar/Toolbar.jsx +23 -14
  105. package/src/lib/components/Toolbar/Toolbar.scss +35 -30
  106. package/src/lib/components/Toolbar/ToolbarGroup.jsx +18 -13
  107. package/src/lib/components/Toolbar/ToolbarItem.jsx +26 -7
  108. package/src/lib/{helpers → components/_helpers}/getRootColorClassName.js +1 -1
  109. package/src/lib/{helpers → components/_helpers}/getRootSizeClassName.js +1 -1
  110. package/src/lib/{helpers → components/_helpers}/getRootValidationStateClassName.js +1 -1
  111. package/src/lib/components/_helpers/isChildrenEmpty.js +3 -0
  112. package/src/lib/{helpers → components/_helpers}/resolveContextOrProp.js +0 -0
  113. package/src/lib/{utils → components/_helpers}/transferProps.js +1 -1
  114. package/src/lib/foundation.scss +11 -11
  115. package/src/lib/helpers.scss +2 -2
  116. package/src/lib/index.js +4 -8
  117. package/src/lib/styles/_utilities.scss +13 -13
  118. package/src/lib/styles/elements/_code.scss +7 -7
  119. package/src/lib/styles/elements/_links.scss +8 -8
  120. package/src/lib/styles/elements/_lists.scss +3 -3
  121. package/src/lib/styles/elements/_page.scss +14 -14
  122. package/src/lib/styles/elements/_rulers.scss +6 -6
  123. package/src/lib/styles/elements/_small.scss +2 -2
  124. package/src/lib/styles/generic/_box-sizing.scss +3 -2
  125. package/src/lib/styles/generic/_forms.scss +3 -3
  126. package/src/lib/styles/generic/_reset.scss +6 -6
  127. package/src/lib/styles/generic/_shared.scss +3 -3
  128. package/src/lib/styles/helpers/_animation.scss +8 -8
  129. package/src/lib/styles/settings/_breakpoints.scss +7 -7
  130. package/src/lib/styles/settings/_escaped-characters.scss +5 -5
  131. package/src/lib/styles/settings/_form-fields.scss +24 -24
  132. package/src/lib/styles/settings/_utilities.scss +112 -100
  133. package/src/lib/styles/theme/_colors.scss +50 -50
  134. package/src/lib/styles/theme/_form-fields.scss +32 -32
  135. package/src/lib/styles/theme/_spacing.scss +11 -11
  136. package/src/lib/styles/theme/_typography.scss +12 -11
  137. package/src/lib/styles/theme-constants/_breakpoints.scss +2 -2
  138. package/src/lib/styles/theme-constants/_colors.scss +2 -2
  139. package/src/lib/styles/theme-constants/_svg.scss +1 -2
  140. package/src/lib/styles/tools/_accessibility.scss +29 -29
  141. package/src/lib/styles/tools/_breakpoint.scss +11 -14
  142. package/src/lib/styles/tools/_caret.scss +8 -8
  143. package/src/lib/styles/tools/_colors.scss +3 -3
  144. package/src/lib/styles/tools/_reset.scss +24 -21
  145. package/src/lib/styles/tools/_scrollbar.scss +4 -4
  146. package/src/lib/styles/tools/_spacing.scss +17 -21
  147. package/src/lib/styles/tools/_string.scss +9 -9
  148. package/src/lib/styles/tools/_svg.scss +13 -16
  149. package/src/lib/styles/tools/_transition.scss +42 -44
  150. package/src/lib/styles/tools/_utilities.scss +19 -19
  151. package/src/lib/styles/tools/form-fields/_box-field-elements.scss +88 -88
  152. package/src/lib/styles/tools/form-fields/_box-field-layout.scss +147 -147
  153. package/src/lib/styles/tools/form-fields/_box-field-sizes.scss +13 -15
  154. package/src/lib/styles/tools/form-fields/_foundation.scss +12 -12
  155. package/src/lib/styles/tools/form-fields/_inline-field-elements.scss +82 -71
  156. package/src/lib/styles/tools/form-fields/_inline-field-layout.scss +88 -47
  157. package/src/lib/styles/tools/form-fields/_variants.scss +104 -106
  158. package/src/lib/theme.scss +958 -954
  159. package/src/lib/utils/classNames.js +8 -0
  160. package/src/lib/components/CTA/CTA.jsx +0 -60
  161. package/src/lib/components/CTA/CTA.scss +0 -71
  162. package/src/lib/components/CTA/CTACenter.jsx +0 -27
  163. package/src/lib/components/CTA/CTAEnd.jsx +0 -27
  164. package/src/lib/components/CTA/CTAStart.jsx +0 -27
  165. package/src/lib/components/CTA/README.mdx +0 -119
  166. package/src/lib/components/CTA/index.js +0 -4
  167. package/src/lib/components/Center/Center.jsx +0 -27
  168. package/src/lib/components/Center/Center.scss +0 -7
  169. package/src/lib/components/Center/README.mdx +0 -52
  170. package/src/lib/components/Center/index.js +0 -1
  171. package/src/lib/components/Link/Link.scss +0 -11
  172. package/src/lib/components/Link/README.mdx +0 -85
  173. package/src/lib/components/Link/_theme.scss +0 -4
  174. 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/ui/badge) can be added to buttons to provide additional
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 `button` HTML element. This enables making the component
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 'sass:map';
2
- @use '../../styles/tools/breakpoint';
3
- @use 'settings';
4
- @use 'theme';
5
- @use 'tools';
1
+ @use "sass:map";
2
+ @use "../../styles/tools/breakpoint";
3
+ @use "settings";
4
+ @use "theme";
5
+ @use "tools";
6
6
 
7
7
  .root {
8
- @include tools.button();
8
+ @include tools.button();
9
9
  }
10
10
 
11
11
  .label {
12
- display: block;
12
+ display: block;
13
13
  }
14
14
 
15
15
  .beforeLabel,
@@ -17,88 +17,88 @@
17
17
  .startCorner,
18
18
  .endCorner,
19
19
  .feedbackIcon {
20
- display: flex;
21
- align-items: baseline;
22
- justify-content: center;
20
+ display: flex;
21
+ align-items: baseline;
22
+ justify-content: center;
23
23
  }
24
24
 
25
25
  .startCorner,
26
26
  .endCorner {
27
- position: absolute;
28
- top: -0.35rem;
29
- z-index: 2;
27
+ position: absolute;
28
+ top: -0.35rem;
29
+ z-index: 2;
30
30
  }
31
31
 
32
32
  .startCorner {
33
- left: 0;
34
- margin-left: -0.35rem;
33
+ left: 0;
34
+ margin-left: -0.35rem;
35
35
  }
36
36
 
37
37
  .endCorner {
38
- right: 0;
39
- margin-right: -0.35rem;
38
+ right: 0;
39
+ margin-right: -0.35rem;
40
40
  }
41
41
 
42
42
  .feedbackIcon {
43
- position: absolute;
44
- top: 0;
45
- right: 0;
46
- bottom: 0;
47
- left: 0;
48
- z-index: 1;
49
- align-items: center;
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
- @include tools.button-size(small);
53
+ @include tools.button-size(small);
54
54
  }
55
55
 
56
56
  .rootSizeMedium {
57
- @include tools.button-size(medium);
57
+ @include tools.button-size(medium);
58
58
  }
59
59
 
60
60
  .rootSizeLarge {
61
- @include tools.button-size(large);
61
+ @include tools.button-size(large);
62
62
  }
63
63
 
64
64
  .rootBlock {
65
- width: 100%;
65
+ width: 100%;
66
66
  }
67
67
 
68
68
  .hasRootFeedback:disabled {
69
- opacity: theme.$feedback-opacity;
70
- cursor: theme.$feedback-cursor;
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
- color: transparent;
76
+ color: transparent;
77
77
  }
78
78
 
79
79
  .rootGrouped {
80
- z-index: map.get(settings.$group-z-indexes, button);
80
+ z-index: map.get(settings.$group-z-indexes, button);
81
81
 
82
- &:not(:first-child) {
83
- margin-left: var(--local-gap);
84
- border-top-left-radius: 0;
85
- border-bottom-left-radius: 0;
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
- &:not(:last-child) {
89
- border-top-right-radius: 0;
90
- border-bottom-right-radius: 0;
91
- }
88
+ &:not(:last-child) {
89
+ border-top-right-radius: 0;
90
+ border-bottom-right-radius: 0;
91
+ }
92
92
 
93
- &:focus,
94
- &:not(:disabled):hover {
95
- z-index: map.get(settings.$group-z-indexes, button-hover);
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
- z-index: map.get(settings.$group-z-indexes, button-overflowing-elements);
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
- @include tools.hide-label();
111
+ @include tools.hide-label();
112
112
  }
113
113
 
114
114
  .withLabelVisibleSm {
115
- @include breakpoint.up(sm) {
116
- @include tools.show-label();
117
- }
115
+ @include breakpoint.up(sm) {
116
+ @include tools.show-label();
117
+ }
118
118
  }
119
119
 
120
120
  .withLabelVisibleMd {
121
- @include breakpoint.up(md) {
122
- @include tools.show-label();
123
- }
121
+ @include breakpoint.up(md) {
122
+ @include tools.show-label();
123
+ }
124
124
  }
125
125
 
126
126
  .withLabelVisibleLg {
127
- @include breakpoint.up(lg) {
128
- @include tools.show-label();
129
- }
127
+ @include breakpoint.up(lg) {
128
+ @include tools.show-label();
129
+ }
130
130
  }
131
131
 
132
132
  .withLabelVisibleXl {
133
- @include breakpoint.up(xl) {
134
- @include tools.show-label();
135
- }
133
+ @include breakpoint.up(xl) {
134
+ @include tools.show-label();
135
+ }
136
136
  }
137
137
 
138
138
  .withLabelVisibleXxl {
139
- @include breakpoint.up(xxl) {
140
- @include tools.show-label();
141
- }
139
+ @include breakpoint.up(xxl) {
140
+ @include tools.show-label();
141
+ }
142
142
  }
143
143
 
144
144
  .withLabelVisibleXxxl {
145
- @include breakpoint.up(xxxl) {
146
- @include tools.show-label();
147
- }
145
+ @include breakpoint.up(xxxl) {
146
+ @include tools.show-label();
147
+ }
148
148
  }
@@ -1,152 +1,152 @@
1
- @use 'sass:map';
2
- @use 'settings';
3
- @use 'theme';
4
- @use 'tools';
1
+ @use "sass:map";
2
+ @use "settings";
3
+ @use "theme";
4
+ @use "tools";
5
5
 
6
6
  .rootPriorityFilled.rootColorPrimary {
7
- @include tools.button-color(filled, primary);
7
+ @include tools.button-color(filled, primary);
8
8
  }
9
9
 
10
10
  .rootPriorityFilled.rootColorSecondary {
11
- @include tools.button-color(filled, secondary);
11
+ @include tools.button-color(filled, secondary);
12
12
  }
13
13
 
14
14
  .rootPriorityFilled.rootColorSuccess {
15
- @include tools.button-color(filled, success);
15
+ @include tools.button-color(filled, success);
16
16
  }
17
17
 
18
18
  .rootPriorityFilled.rootColorWarning {
19
- @include tools.button-color(filled, warning);
19
+ @include tools.button-color(filled, warning);
20
20
  }
21
21
 
22
22
  .rootPriorityFilled.rootColorDanger {
23
- @include tools.button-color(filled, danger);
23
+ @include tools.button-color(filled, danger);
24
24
  }
25
25
 
26
26
  .rootPriorityFilled.rootColorHelp {
27
- @include tools.button-color(filled, help);
27
+ @include tools.button-color(filled, help);
28
28
  }
29
29
 
30
30
  .rootPriorityFilled.rootColorInfo {
31
- @include tools.button-color(filled, info);
31
+ @include tools.button-color(filled, info);
32
32
  }
33
33
 
34
34
  .rootPriorityFilled.rootColorNote {
35
- @include tools.button-color(filled, note);
35
+ @include tools.button-color(filled, note);
36
36
  }
37
37
 
38
38
  .rootPriorityFilled.rootColorLight {
39
- @include tools.button-color(filled, light);
39
+ @include tools.button-color(filled, light);
40
40
  }
41
41
 
42
42
  .rootPriorityFilled.rootColorDark {
43
- @include tools.button-color(filled, dark);
43
+ @include tools.button-color(filled, dark);
44
44
  }
45
45
 
46
46
  .rootPriorityOutline.rootColorPrimary {
47
- @include tools.button-color(outline, primary);
47
+ @include tools.button-color(outline, primary);
48
48
  }
49
49
 
50
50
  .rootPriorityOutline.rootColorSecondary {
51
- @include tools.button-color(outline, secondary);
51
+ @include tools.button-color(outline, secondary);
52
52
  }
53
53
 
54
54
  .rootPriorityOutline.rootColorSuccess {
55
- @include tools.button-color(outline, success);
55
+ @include tools.button-color(outline, success);
56
56
  }
57
57
 
58
58
  .rootPriorityOutline.rootColorWarning {
59
- @include tools.button-color(outline, warning);
59
+ @include tools.button-color(outline, warning);
60
60
  }
61
61
 
62
62
  .rootPriorityOutline.rootColorDanger {
63
- @include tools.button-color(outline, danger);
63
+ @include tools.button-color(outline, danger);
64
64
  }
65
65
 
66
66
  .rootPriorityOutline.rootColorHelp {
67
- @include tools.button-color(outline, help);
67
+ @include tools.button-color(outline, help);
68
68
  }
69
69
 
70
70
  .rootPriorityOutline.rootColorInfo {
71
- @include tools.button-color(outline, info);
71
+ @include tools.button-color(outline, info);
72
72
  }
73
73
 
74
74
  .rootPriorityOutline.rootColorNote {
75
- @include tools.button-color(outline, note);
75
+ @include tools.button-color(outline, note);
76
76
  }
77
77
 
78
78
  .rootPriorityOutline.rootColorLight {
79
- @include tools.button-color(outline, light);
79
+ @include tools.button-color(outline, light);
80
80
  }
81
81
 
82
82
  .rootPriorityOutline.rootColorDark {
83
- @include tools.button-color(outline, dark);
83
+ @include tools.button-color(outline, dark);
84
84
  }
85
85
 
86
86
  .rootPriorityFlat.rootColorPrimary {
87
- @include tools.button-color(flat, primary);
87
+ @include tools.button-color(flat, primary);
88
88
  }
89
89
 
90
90
  .rootPriorityFlat.rootColorSecondary {
91
- @include tools.button-color(flat, secondary);
91
+ @include tools.button-color(flat, secondary);
92
92
  }
93
93
 
94
94
  .rootPriorityFlat.rootColorSuccess {
95
- @include tools.button-color(flat, success);
95
+ @include tools.button-color(flat, success);
96
96
  }
97
97
 
98
98
  .rootPriorityFlat.rootColorWarning {
99
- @include tools.button-color(flat, warning);
99
+ @include tools.button-color(flat, warning);
100
100
  }
101
101
 
102
102
  .rootPriorityFlat.rootColorDanger {
103
- @include tools.button-color(flat, danger);
103
+ @include tools.button-color(flat, danger);
104
104
  }
105
105
 
106
106
  .rootPriorityFlat.rootColorHelp {
107
- @include tools.button-color(flat, help);
107
+ @include tools.button-color(flat, help);
108
108
  }
109
109
 
110
110
  .rootPriorityFlat.rootColorInfo {
111
- @include tools.button-color(flat, info);
111
+ @include tools.button-color(flat, info);
112
112
  }
113
113
 
114
114
  .rootPriorityFlat.rootColorNote {
115
- @include tools.button-color(flat, note);
115
+ @include tools.button-color(flat, note);
116
116
  }
117
117
 
118
118
  .rootPriorityFlat.rootColorLight {
119
- @include tools.button-color(flat, light);
119
+ @include tools.button-color(flat, light);
120
120
  }
121
121
 
122
122
  .rootPriorityFlat.rootColorDark {
123
- @include tools.button-color(flat, dark);
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
- 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(--local-separator-width) solid var(--local-separator-color);
135
- transform: translateX(calc(-0.5 * var(--local-gap) - 50%));
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
- --local-gap: #{theme.$group-filled-gap};
140
- --local-separator-width: #{theme.$group-filled-separator-width};
141
- --local-separator-color: #{theme.$group-filled-separator-color};
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
- --local-gap: #{theme.$group-flat-gap};
146
- --local-separator-width: #{theme.$group-flat-separator-width};
147
- --local-separator-color: #{theme.$group-flat-separator-color};
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
- --local-gap: #{theme.$group-outline-gap};
151
+ --rui-local-gap: #{theme.$group-outline-gap};
152
152
  }
@@ -1,21 +1,21 @@
1
- @use '../../styles/theme/typography';
2
- @use '../../styles/tools/spacing';
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-base;
5
+ $line-height: typography.$line-height-small;
6
6
  $icon-spacing: spacing.of(2);
7
7
 
8
8
  $group-z-indexes: (
9
- button: auto,
10
- button-hover: 1,
11
- separator: 2,
12
- button-overflowing-elements: 3,
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
- filled: (color, border-color, background, box-shadow),
19
- outline: (color, border-color, background),
20
- flat: (color, background),
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
- small: (
27
- height: var(--rui-Button--small__height),
28
- padding-x: var(--rui-Button--small__padding-x),
29
- font-size: var(--rui-Button--small__font-size),
30
- ),
31
- medium: (
32
- height: var(--rui-Button--medium__height),
33
- padding-x: var(--rui-Button--medium__padding-x),
34
- font-size: var(--rui-Button--medium__font-size),
35
- ),
36
- large: (
37
- height: var(--rui-Button--large__height),
38
- padding-x: var(--rui-Button--large__padding-x),
39
- font-size: var(--rui-Button--large__font-size),
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
  );