@kaizen/components 1.68.5 → 1.68.6
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/dist/cjs/__actions__/Button/v3/Button.cjs +5 -3
- package/dist/esm/__actions__/Button/v3/Button.mjs +5 -3
- package/dist/styles.css +106 -294
- package/dist/types/__actions__/Button/v3/Button.d.ts +5 -0
- package/package.json +1 -1
- package/src/AvatarGroup/AvatarGroup.module.scss +1 -4
- package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.scss +1 -5
- package/src/DateRangePicker/DateRangePicker.module.scss +5 -29
- package/src/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.module.scss +1 -5
- package/src/GuidanceBlock/GuidanceBlock.module.css +5 -42
- package/src/Input/Input/Input.module.scss +5 -40
- package/src/LikertScaleLegacy/LikertScaleLegacy.module.scss +11 -63
- package/src/Tag/_docs/Tag.mdx +7 -6
- package/src/TextField/_docs/TextField.mdx +1 -1
- package/src/TitleBlockZen/subcomponents/NavigationTabs.module.scss +2 -14
- package/src/TitleBlockZen/subcomponents/TitleBlockMenuItem.module.scss +1 -5
- package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss +2 -14
- package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.css +1 -7
- package/src/__actions__/Button/v3/Button.tsx +9 -2
- package/src/__actions__/Button/v3/_docs/Button--api-specification.mdx +2 -2
- package/src/__actions__/Menu/v1/subcomponents/MenuDropdown/MenuDropdown.module.scss +1 -5
- package/src/__actions__/Menu/v1/subcomponents/MenuItem/MenuItem.module.scss +1 -5
- package/src/__future__/Icon/Icon.module.css +7 -11
- package/src/__future__/Tag/Tag/_docs/Tag.mdx +1 -3
|
@@ -18,6 +18,11 @@ type ButtonBaseProps = Omit<RACButtonProps, "children"> & {
|
|
|
18
18
|
iconPosition?: "start" | "end";
|
|
19
19
|
/** Controls if the button inherits width from its parent. @default "false" */
|
|
20
20
|
isFullWidth?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Controls the reversed style of Button
|
|
23
|
+
* @deprecated Use the ReversedColors Provider instead. This is here to support gradual migration to the ReversedColors Provider and will take precedence if a value is provided. {@link https://cultureamp.design/?path=/docs/actions-button-button-v3-api-specification--docs#variants}
|
|
24
|
+
*/
|
|
25
|
+
isReversed?: boolean;
|
|
21
26
|
};
|
|
22
27
|
export type ButtonProps = ButtonBaseProps & PendingButtonProps;
|
|
23
28
|
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
package/package.json
CHANGED
|
@@ -19,6 +19,7 @@ $avatar-lg: 4.5rem;
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.AvatarCounter {
|
|
22
|
+
direction: ltr;
|
|
22
23
|
align-items: center;
|
|
23
24
|
background: $color-gray-300;
|
|
24
25
|
border: 3px solid $color-white;
|
|
@@ -28,10 +29,6 @@ $avatar-lg: 4.5rem;
|
|
|
28
29
|
display: flex;
|
|
29
30
|
justify-content: center;
|
|
30
31
|
overflow: hidden;
|
|
31
|
-
|
|
32
|
-
[dir="rtl"] & {
|
|
33
|
-
direction: ltr;
|
|
34
|
-
}
|
|
35
32
|
}
|
|
36
33
|
|
|
37
34
|
.small {
|
|
@@ -14,13 +14,9 @@ $input-disabled-opacity: 0.3;
|
|
|
14
14
|
border: $border-solid-border-width $border-solid-border-style transparent;
|
|
15
15
|
border-radius: $border-solid-border-radius;
|
|
16
16
|
position: relative;
|
|
17
|
-
|
|
17
|
+
inset-inline-end: -0.35rem;
|
|
18
18
|
top: -40%;
|
|
19
19
|
|
|
20
|
-
[dir="rtl"] & {
|
|
21
|
-
right: 0.25rem;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
20
|
:focus {
|
|
25
21
|
outline: none;
|
|
26
22
|
}
|
|
@@ -26,7 +26,7 @@ $placeholder-opacity: 0.7;
|
|
|
26
26
|
font-weight: $typography-paragraph-body-font-weight;
|
|
27
27
|
line-height: 1.5;
|
|
28
28
|
letter-spacing: $typography-paragraph-body-letter-spacing;
|
|
29
|
-
text-align:
|
|
29
|
+
text-align: start;
|
|
30
30
|
background-color: $color-white;
|
|
31
31
|
background-clip: padding-box;
|
|
32
32
|
border: $border-solid-border-width $border-solid-border-style $color-gray-500;
|
|
@@ -34,10 +34,6 @@ $placeholder-opacity: 0.7;
|
|
|
34
34
|
margin-top: $spacing-6;
|
|
35
35
|
padding: 0 $button-base-padding-horizontal;
|
|
36
36
|
|
|
37
|
-
[dir="rtl"] & {
|
|
38
|
-
text-align: right;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
37
|
&:focus-visible:not([disabled]),
|
|
42
38
|
&:hover:not([disabled]) {
|
|
43
39
|
background-color: $color-gray-200;
|
|
@@ -63,14 +59,7 @@ $placeholder-opacity: 0.7;
|
|
|
63
59
|
}
|
|
64
60
|
|
|
65
61
|
.value {
|
|
66
|
-
padding-
|
|
67
|
-
padding-left: 1.75rem;
|
|
68
|
-
|
|
69
|
-
&[dir="rtl"],
|
|
70
|
-
[dir="rtl"] & {
|
|
71
|
-
padding-right: 1.75rem;
|
|
72
|
-
padding-left: $button-base-padding-horizontal;
|
|
73
|
-
}
|
|
62
|
+
padding-inline: 1.75rem $button-base-padding-horizontal;
|
|
74
63
|
}
|
|
75
64
|
}
|
|
76
65
|
|
|
@@ -93,14 +82,7 @@ $placeholder-opacity: 0.7;
|
|
|
93
82
|
|
|
94
83
|
color: $color-purple-800;
|
|
95
84
|
opacity: $disabled-opacity;
|
|
96
|
-
|
|
97
|
-
left: $spacing-sm;
|
|
98
|
-
|
|
99
|
-
&[dir="rtl"],
|
|
100
|
-
[dir="rtl"] & {
|
|
101
|
-
right: $spacing-sm;
|
|
102
|
-
left: auto;
|
|
103
|
-
}
|
|
85
|
+
inset-inline: $spacing-sm auto;
|
|
104
86
|
}
|
|
105
87
|
|
|
106
88
|
&:focus-within:not(.disabled),
|
|
@@ -111,14 +93,8 @@ $placeholder-opacity: 0.7;
|
|
|
111
93
|
}
|
|
112
94
|
|
|
113
95
|
.button {
|
|
114
|
-
padding-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
&[dir="rtl"],
|
|
118
|
-
[dir="rtl"] & {
|
|
119
|
-
padding-right: calc(#{$spacing-md} + #{$button-icon-size});
|
|
120
|
-
padding-left: $button-base-padding-horizontal;
|
|
121
|
-
}
|
|
96
|
+
padding-inline: calc(#{$spacing-md} + #{$button-icon-size})
|
|
97
|
+
$button-base-padding-horizontal;
|
|
122
98
|
}
|
|
123
99
|
}
|
|
124
100
|
/* stylelint-enable no-descending-specificity */
|
|
@@ -17,10 +17,6 @@ $menu-container-max-height: 312px;
|
|
|
17
17
|
box-shadow: $shadow-large-box-shadow;
|
|
18
18
|
padding: $spacing-sm 0;
|
|
19
19
|
margin-top: $spacing-xs;
|
|
20
|
-
text-align:
|
|
20
|
+
text-align: start;
|
|
21
21
|
width: $menu-container-width;
|
|
22
|
-
|
|
23
|
-
[dir="rtl"] & {
|
|
24
|
-
text-align: right;
|
|
25
|
-
}
|
|
26
22
|
}
|
|
@@ -97,20 +97,13 @@
|
|
|
97
97
|
|
|
98
98
|
@media (width >= 1024px) {
|
|
99
99
|
padding: 0 var(--spacing-12);
|
|
100
|
-
text-align:
|
|
100
|
+
text-align: start;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
@media (width <= 767px) {
|
|
104
104
|
margin: var(--spacing-12);
|
|
105
105
|
max-width: 100%;
|
|
106
106
|
}
|
|
107
|
-
|
|
108
|
-
[dir="rtl"] & {
|
|
109
|
-
@media (width >= 1024px) {
|
|
110
|
-
padding: 0 var(--spacing-12);
|
|
111
|
-
text-align: right;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
107
|
}
|
|
115
108
|
|
|
116
109
|
.descriptionAndActions {
|
|
@@ -144,10 +137,6 @@
|
|
|
144
137
|
width: 100%;
|
|
145
138
|
margin-top: var(--spacing-6);
|
|
146
139
|
}
|
|
147
|
-
|
|
148
|
-
[dir="rtl"] & svg {
|
|
149
|
-
transform: rotate(180deg);
|
|
150
|
-
}
|
|
151
140
|
}
|
|
152
141
|
|
|
153
142
|
.hidden {
|
|
@@ -202,12 +191,7 @@
|
|
|
202
191
|
}
|
|
203
192
|
|
|
204
193
|
.illustrationWrapper {
|
|
205
|
-
margin-
|
|
206
|
-
|
|
207
|
-
[dir="rtl"] & {
|
|
208
|
-
margin-left: var(--spacing-12);
|
|
209
|
-
margin-right: inherit;
|
|
210
|
-
}
|
|
194
|
+
margin-inline-end: var(--spacing-12);
|
|
211
195
|
|
|
212
196
|
@media (768px <= width <= 1023px) {
|
|
213
197
|
padding: 0;
|
|
@@ -223,7 +207,7 @@
|
|
|
223
207
|
}
|
|
224
208
|
|
|
225
209
|
.descriptionContainer {
|
|
226
|
-
text-align:
|
|
210
|
+
text-align: start;
|
|
227
211
|
max-width: unset;
|
|
228
212
|
min-width: 320px;
|
|
229
213
|
|
|
@@ -234,18 +218,10 @@
|
|
|
234
218
|
@media (width <= 767px) {
|
|
235
219
|
margin: 0;
|
|
236
220
|
}
|
|
237
|
-
|
|
238
|
-
[dir="rtl"] & {
|
|
239
|
-
text-align: right;
|
|
240
|
-
|
|
241
|
-
@media (width >= 1024px) {
|
|
242
|
-
padding: 0;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
221
|
}
|
|
246
222
|
|
|
247
223
|
.buttonContainer {
|
|
248
|
-
padding-
|
|
224
|
+
padding-inline-start: var(--spacing-12);
|
|
249
225
|
justify-content: flex-start;
|
|
250
226
|
width: unset;
|
|
251
227
|
min-width: unset;
|
|
@@ -254,11 +230,6 @@
|
|
|
254
230
|
flex-direction: row-reverse;
|
|
255
231
|
}
|
|
256
232
|
|
|
257
|
-
[dir="rtl"] & {
|
|
258
|
-
padding-left: 0;
|
|
259
|
-
padding-right: var(--spacing-12);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
233
|
> * {
|
|
263
234
|
width: unset;
|
|
264
235
|
}
|
|
@@ -283,10 +254,6 @@
|
|
|
283
254
|
.descriptionContainer {
|
|
284
255
|
text-align: center;
|
|
285
256
|
min-width: unset;
|
|
286
|
-
|
|
287
|
-
[dir="rtl"] & {
|
|
288
|
-
text-align: center;
|
|
289
|
-
}
|
|
290
257
|
}
|
|
291
258
|
|
|
292
259
|
.buttonContainer {
|
|
@@ -299,11 +266,7 @@
|
|
|
299
266
|
|
|
300
267
|
&.centerContent.smallScreenTextAlignment {
|
|
301
268
|
.descriptionContainer {
|
|
302
|
-
text-align:
|
|
303
|
-
|
|
304
|
-
[dir="rtl"] & {
|
|
305
|
-
text-align: right;
|
|
306
|
-
}
|
|
269
|
+
text-align: start;
|
|
307
270
|
}
|
|
308
271
|
}
|
|
309
272
|
}
|
|
@@ -98,14 +98,7 @@ $input-with-icon-padding: calc(
|
|
|
98
98
|
.startIconAdornment {
|
|
99
99
|
@include vertically-center-icon;
|
|
100
100
|
|
|
101
|
-
|
|
102
|
-
left: $spacing-sm;
|
|
103
|
-
|
|
104
|
-
&[dir="rtl"],
|
|
105
|
-
[dir="rtl"] & {
|
|
106
|
-
right: $spacing-sm;
|
|
107
|
-
left: auto;
|
|
108
|
-
}
|
|
101
|
+
inset-inline: $spacing-sm auto;
|
|
109
102
|
}
|
|
110
103
|
|
|
111
104
|
&.withDisabled {
|
|
@@ -115,14 +108,7 @@ $input-with-icon-padding: calc(
|
|
|
115
108
|
}
|
|
116
109
|
|
|
117
110
|
.input {
|
|
118
|
-
padding-
|
|
119
|
-
padding-left: $input-with-icon-padding;
|
|
120
|
-
|
|
121
|
-
&[dir="rtl"],
|
|
122
|
-
[dir="rtl"] & {
|
|
123
|
-
padding-right: $input-with-icon-padding;
|
|
124
|
-
padding-left: $input-base-padding-horizontal;
|
|
125
|
-
}
|
|
111
|
+
padding-inline: $input-with-icon-padding $input-base-padding-horizontal;
|
|
126
112
|
}
|
|
127
113
|
}
|
|
128
114
|
|
|
@@ -130,14 +116,7 @@ $input-with-icon-padding: calc(
|
|
|
130
116
|
.endIconAdornment {
|
|
131
117
|
@include vertically-center-icon;
|
|
132
118
|
|
|
133
|
-
|
|
134
|
-
left: auto;
|
|
135
|
-
|
|
136
|
-
&[dir="rtl"],
|
|
137
|
-
[dir="rtl"] & {
|
|
138
|
-
right: auto;
|
|
139
|
-
left: $spacing-sm;
|
|
140
|
-
}
|
|
119
|
+
inset-inline: auto $spacing-sm;
|
|
141
120
|
}
|
|
142
121
|
|
|
143
122
|
&.withDisabled {
|
|
@@ -147,27 +126,13 @@ $input-with-icon-padding: calc(
|
|
|
147
126
|
}
|
|
148
127
|
|
|
149
128
|
.input {
|
|
150
|
-
padding-
|
|
151
|
-
padding-left: $input-base-padding-horizontal;
|
|
152
|
-
|
|
153
|
-
&[dir="rtl"],
|
|
154
|
-
[dir="rtl"] & {
|
|
155
|
-
padding-right: $input-base-padding-horizontal;
|
|
156
|
-
padding-left: $input-with-icon-padding;
|
|
157
|
-
}
|
|
129
|
+
padding-inline: $input-base-padding-horizontal $input-with-icon-padding;
|
|
158
130
|
}
|
|
159
131
|
}
|
|
160
132
|
|
|
161
133
|
.withStartIconAdornment.withEndIconAdornment {
|
|
162
134
|
.input {
|
|
163
|
-
padding-
|
|
164
|
-
padding-left: $input-with-icon-padding;
|
|
165
|
-
|
|
166
|
-
&[dir="rtl"],
|
|
167
|
-
[dir="rtl"] & {
|
|
168
|
-
padding-right: $input-with-icon-padding;
|
|
169
|
-
padding-left: $input-with-icon-padding;
|
|
170
|
-
}
|
|
135
|
+
padding-inline: $input-with-icon-padding $input-with-icon-padding;
|
|
171
136
|
}
|
|
172
137
|
}
|
|
173
138
|
|
|
@@ -39,55 +39,17 @@ $blue-fifth: $color-blue-500;
|
|
|
39
39
|
-webkit-animation: pop cubic-bezier(0, 0.94, 0.32, 1) 0.7s 1;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
@mixin right-likert-item($height) {
|
|
43
|
-
border-top-right-radius: $height;
|
|
44
|
-
border-bottom-right-radius: $height;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@mixin left-likert-item($height) {
|
|
48
|
-
border-top-left-radius: $height;
|
|
49
|
-
border-bottom-left-radius: $height;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
42
|
@mixin fill($height) {
|
|
53
|
-
&:first-child .likertItemFill
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
border-radius: 0;
|
|
58
|
-
|
|
59
|
-
@include right-likert-item($height);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&::after {
|
|
63
|
-
@include left-likert-item($height);
|
|
64
|
-
|
|
65
|
-
[dir="rtl"] & {
|
|
66
|
-
border-radius: 0;
|
|
67
|
-
|
|
68
|
-
@include right-likert-item($height);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
43
|
+
&:first-child .likertItemFill,
|
|
44
|
+
&:first-child .likertItemFill::after {
|
|
45
|
+
border-start-start-radius: $height;
|
|
46
|
+
border-end-start-radius: $height;
|
|
71
47
|
}
|
|
72
48
|
|
|
73
|
-
&:last-child .likertItemFill
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
border-radius: 0;
|
|
78
|
-
|
|
79
|
-
@include left-likert-item($height);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&::after {
|
|
83
|
-
@include right-likert-item($height);
|
|
84
|
-
|
|
85
|
-
[dir="rtl"] & {
|
|
86
|
-
border-radius: 0;
|
|
87
|
-
|
|
88
|
-
@include left-likert-item($height);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
49
|
+
&:last-child .likertItemFill,
|
|
50
|
+
&:last-child .likertItemFill::after {
|
|
51
|
+
border-start-end-radius: $height;
|
|
52
|
+
border-end-end-radius: $height;
|
|
91
53
|
}
|
|
92
54
|
}
|
|
93
55
|
|
|
@@ -168,8 +130,7 @@ $blue-fifth: $color-blue-500;
|
|
|
168
130
|
}
|
|
169
131
|
|
|
170
132
|
.likertItem {
|
|
171
|
-
margin-
|
|
172
|
-
margin-left: 2px;
|
|
133
|
+
margin-inline: 2px;
|
|
173
134
|
font-size: 1px;
|
|
174
135
|
line-height: 1;
|
|
175
136
|
padding: 0;
|
|
@@ -178,27 +139,14 @@ $blue-fifth: $color-blue-500;
|
|
|
178
139
|
width: 18.5%; // 5 columns
|
|
179
140
|
position: relative;
|
|
180
141
|
|
|
181
|
-
&[dir="rtl"],
|
|
182
|
-
[dir="rtl"] & {
|
|
183
|
-
&:first-child {
|
|
184
|
-
margin-left: 2px;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
&:last-child {
|
|
188
|
-
margin-right: 2px;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
142
|
@include fill($block-height);
|
|
193
143
|
|
|
194
144
|
&:first-child {
|
|
195
|
-
margin-
|
|
196
|
-
margin-left: 0;
|
|
145
|
+
margin-inline-start: 0;
|
|
197
146
|
}
|
|
198
147
|
|
|
199
148
|
&:last-child {
|
|
200
|
-
margin-
|
|
201
|
-
margin-right: 0;
|
|
149
|
+
margin-inline-end: 0;
|
|
202
150
|
}
|
|
203
151
|
|
|
204
152
|
// Hack to bridge the gaps between items so mouse always hovers on something
|
package/src/Tag/_docs/Tag.mdx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Canvas, Controls , Meta } from "@storybook/blocks"
|
|
1
|
+
import { Canvas, Controls , Meta, Unstyled } from "@storybook/blocks"
|
|
2
2
|
import { InlineNotification } from "~components/Notification"
|
|
3
3
|
import { ResourceLinks, KAIOInstallation } from "~storybook/components"
|
|
4
4
|
import * as TagStories from "./Tag.stories"
|
|
@@ -14,11 +14,12 @@ import * as TagStories from "./Tag.stories"
|
|
|
14
14
|
|
|
15
15
|
/>
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
<InlineNotification type="cautionary" persistent>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
</InlineNotification>
|
|
17
|
+
<Unstyled>
|
|
18
|
+
<InlineNotification type="cautionary" persistent>
|
|
19
|
+
{`This version of the Tag will soon be deprecated and will be removed in the next major release.
|
|
20
|
+
Import Tag from "@kaizen/components/future" for the latest version and veiw our migration guide in the Future folder` }
|
|
21
|
+
</InlineNotification>
|
|
22
|
+
</Unstyled>
|
|
22
23
|
|
|
23
24
|
<KAIOInstallation exportNames="Tag" />
|
|
24
25
|
|
|
@@ -34,7 +34,7 @@ Composed of <LinkTo pageId="components-label">Label</LinkTo>, <LinkTo pageId="co
|
|
|
34
34
|
<Canvas of={TextFieldStories.Description} />
|
|
35
35
|
|
|
36
36
|
### Icon
|
|
37
|
-
<Canvas of={TextFieldStories.
|
|
37
|
+
<Canvas of={TextFieldStories.IconStory} />
|
|
38
38
|
|
|
39
39
|
### Validation
|
|
40
40
|
<Canvas of={TextFieldStories.Validation} />
|
|
@@ -24,13 +24,7 @@
|
|
|
24
24
|
letter-spacing: $typography-heading-4-letter-spacing;
|
|
25
25
|
text-decoration: none;
|
|
26
26
|
white-space: nowrap;
|
|
27
|
-
margin-
|
|
28
|
-
|
|
29
|
-
&[dir="rtl"],
|
|
30
|
-
[dir="rtl"] & {
|
|
31
|
-
margin-left: $spacing-md;
|
|
32
|
-
margin-right: 0;
|
|
33
|
-
}
|
|
27
|
+
margin-inline-end: $spacing-md;
|
|
34
28
|
|
|
35
29
|
&:hover {
|
|
36
30
|
color: $color-white;
|
|
@@ -46,13 +40,7 @@
|
|
|
46
40
|
}
|
|
47
41
|
|
|
48
42
|
@include title-block-under-1440 {
|
|
49
|
-
margin-
|
|
50
|
-
|
|
51
|
-
&[dir="rtl"],
|
|
52
|
-
[dir="rtl"] & {
|
|
53
|
-
margin-left: $spacing-xs;
|
|
54
|
-
margin-right: 0;
|
|
55
|
-
}
|
|
43
|
+
margin-inline-end: $spacing-xs;
|
|
56
44
|
}
|
|
57
45
|
|
|
58
46
|
@media (max-width: 1189px) {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
box-sizing: border-box;
|
|
17
17
|
background: none;
|
|
18
18
|
border: 2px transparent solid;
|
|
19
|
-
text-align:
|
|
19
|
+
text-align: start;
|
|
20
20
|
padding: 6px calc(#{$spacing-sm} - 2px);
|
|
21
21
|
margin: 0 $spacing-xs;
|
|
22
22
|
min-height: calc(1.75 * #{$spacing-md});
|
|
@@ -59,10 +59,6 @@
|
|
|
59
59
|
&:focus-visible {
|
|
60
60
|
border-color: $color-blue-500;
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
[dir="rtl"] & {
|
|
64
|
-
text-align: right;
|
|
65
|
-
}
|
|
66
62
|
}
|
|
67
63
|
|
|
68
64
|
.menuItem--disabled {
|
|
@@ -78,13 +78,7 @@ $focus-ring-offset: 1px;
|
|
|
78
78
|
.thumb {
|
|
79
79
|
position: relative;
|
|
80
80
|
right: auto;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
&[dir="rtl"],
|
|
84
|
-
[dir="rtl"] & {
|
|
85
|
-
right: calc(#{$spacing-md} * 1.1);
|
|
86
|
-
left: auto;
|
|
87
|
-
}
|
|
81
|
+
inset-inline-start: calc(#{$spacing-md} * 1.1);
|
|
88
82
|
}
|
|
89
83
|
|
|
90
84
|
.checkIcon {
|
|
@@ -103,13 +97,7 @@ $focus-ring-offset: 1px;
|
|
|
103
97
|
.thumb {
|
|
104
98
|
position: relative;
|
|
105
99
|
right: auto;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
&[dir="rtl"],
|
|
109
|
-
[dir="rtl"] & {
|
|
110
|
-
right: calc(#{$spacing-md} * -0.05);
|
|
111
|
-
left: auto;
|
|
112
|
-
}
|
|
100
|
+
inset-inline-start: calc(#{$spacing-md} * -0.05);
|
|
113
101
|
}
|
|
114
102
|
}
|
|
115
103
|
|
package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.css
CHANGED
|
@@ -79,17 +79,11 @@
|
|
|
79
79
|
border: solid var(--spacing-1) var(--color-gray-300);
|
|
80
80
|
margin: 0;
|
|
81
81
|
border-radius: var(--border-solid-border-radius);
|
|
82
|
-
|
|
82
|
+
inset-inline-start: 100%;
|
|
83
83
|
|
|
84
84
|
/* sets fron the bottom to the centre of the dot */
|
|
85
85
|
top: calc(100% - calc(var(--progress-stepper-indicator-size) / 2));
|
|
86
86
|
transform: translateX(-50%);
|
|
87
|
-
|
|
88
|
-
[dir="rtl"] & {
|
|
89
|
-
left: unset;
|
|
90
|
-
right: 100%;
|
|
91
|
-
transform: translateX(50%);
|
|
92
|
-
}
|
|
93
87
|
}
|
|
94
88
|
|
|
95
89
|
.stepperDescription {
|
|
@@ -26,6 +26,11 @@ type ButtonBaseProps = Omit<RACButtonProps, "children"> & {
|
|
|
26
26
|
iconPosition?: "start" | "end"
|
|
27
27
|
/** Controls if the button inherits width from its parent. @default "false" */
|
|
28
28
|
isFullWidth?: boolean
|
|
29
|
+
/**
|
|
30
|
+
* Controls the reversed style of Button
|
|
31
|
+
* @deprecated Use the ReversedColors Provider instead. This is here to support gradual migration to the ReversedColors Provider and will take precedence if a value is provided. {@link https://cultureamp.design/?path=/docs/actions-button-button-v3-api-specification--docs#variants}
|
|
32
|
+
*/
|
|
33
|
+
isReversed?: boolean
|
|
29
34
|
}
|
|
30
35
|
|
|
31
36
|
export type ButtonProps = ButtonBaseProps & PendingButtonProps
|
|
@@ -45,11 +50,13 @@ export const Button = forwardRef(
|
|
|
45
50
|
isPending,
|
|
46
51
|
hasHiddenPendingLabel: propsHasHiddenPendingLabel = false,
|
|
47
52
|
pendingLabel,
|
|
53
|
+
isReversed,
|
|
48
54
|
...restProps
|
|
49
55
|
}: ButtonProps,
|
|
50
56
|
ref: React.ForwardedRef<HTMLButtonElement>
|
|
51
57
|
) => {
|
|
52
|
-
const
|
|
58
|
+
const shouldUseReverse = useReversedColors()
|
|
59
|
+
const isReversedVariant = isReversed ?? shouldUseReverse
|
|
53
60
|
const pendingProps: PendingButtonProps = isPending
|
|
54
61
|
? {
|
|
55
62
|
isPending,
|
|
@@ -71,7 +78,7 @@ export const Button = forwardRef(
|
|
|
71
78
|
styles[size],
|
|
72
79
|
hasHiddenLabel && styles[`${size}IconButton`],
|
|
73
80
|
isDisabled && styles.isDisabled,
|
|
74
|
-
|
|
81
|
+
isReversedVariant ? styles[`${variant}Reversed`] : styles[variant],
|
|
75
82
|
isFullWidth && styles.fullWidth,
|
|
76
83
|
className
|
|
77
84
|
)}
|
|
@@ -25,7 +25,7 @@ The following example and table showcases the essential props that enable the co
|
|
|
25
25
|
|
|
26
26
|
<Canvas of={exampleStories.Playground} />
|
|
27
27
|
|
|
28
|
-
<Controls of={exampleStories.Playground} className="mb-64" include={["children", "hasHiddenLabel", "className", "size", "variant", "onPress", "icon", "iconPosition", "isFullWidth", "isDisabled", "isPending","pendingLabel", "hasHiddenPendingLabel" ]} />
|
|
28
|
+
<Controls of={exampleStories.Playground} className="mb-64" include={["children", "hasHiddenLabel", "className", "size", "variant", "isReversed", "onPress", "icon", "iconPosition", "isFullWidth", "isDisabled", "isPending","pendingLabel", "hasHiddenPendingLabel" ]} />
|
|
29
29
|
|
|
30
30
|
## Buttons and links
|
|
31
31
|
|
|
@@ -43,7 +43,7 @@ This is built on top of [React Aria's Button component](https://react-spectrum.a
|
|
|
43
43
|
|
|
44
44
|
<Canvas of={exampleStories.ButtonVariants} />
|
|
45
45
|
|
|
46
|
-
Reversed variants are handled via the `ReversedColors` Provider
|
|
46
|
+
Reversed variants are handled via the `ReversedColors` Provider.
|
|
47
47
|
|
|
48
48
|
<DocsStory of={exampleStories.ButtonVariantsReversed} expanded={false} />
|
|
49
49
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
box-sizing: border-box;
|
|
15
15
|
background: none;
|
|
16
16
|
border: 2px transparent solid;
|
|
17
|
-
text-align:
|
|
17
|
+
text-align: start;
|
|
18
18
|
padding: 6px calc(#{$spacing-sm} - 2px);
|
|
19
19
|
margin: 0 $spacing-xs;
|
|
20
20
|
min-height: calc(1.75 * #{$spacing-md});
|
|
@@ -57,10 +57,6 @@
|
|
|
57
57
|
&:focus-visible {
|
|
58
58
|
border-color: $color-blue-500;
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
[dir="rtl"] & {
|
|
62
|
-
text-align: right;
|
|
63
|
-
}
|
|
64
60
|
}
|
|
65
61
|
|
|
66
62
|
.menuItem--disabled {
|
|
@@ -32,22 +32,18 @@
|
|
|
32
32
|
--icon-fill: 1;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
.shouldMirrorInRTL {
|
|
36
|
-
|
|
37
|
-
transform: scale(-1, 1);
|
|
38
|
-
}
|
|
35
|
+
[dir="rtl"] .shouldMirrorInRTL {
|
|
36
|
+
transform: scale(-1, 1);
|
|
39
37
|
}
|
|
40
38
|
|
|
41
|
-
.iconLTR {
|
|
42
|
-
|
|
43
|
-
display: none;
|
|
44
|
-
}
|
|
39
|
+
[dir="rtl"] .iconLTR {
|
|
40
|
+
display: none;
|
|
45
41
|
}
|
|
46
42
|
|
|
47
43
|
.iconRTL {
|
|
48
44
|
display: none;
|
|
45
|
+
}
|
|
49
46
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
47
|
+
[dir="rtl"] .iconRTL {
|
|
48
|
+
display: inherit;
|
|
53
49
|
}
|