@ostack.tech/ui 0.16.0 → 0.16.2
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/ostack-ui.css +10 -4
- package/package.json +1 -1
- package/scss/components/Feedback/_Feedback-variables.scss +1 -1
- package/scss/components/Feedback/_Feedback.scss +10 -6
- package/scss/components/HelperText/_HelperText-variables.scss +1 -0
- package/scss/components/HelperText/_HelperText.scss +6 -0
package/dist/ostack-ui.css
CHANGED
|
@@ -2204,23 +2204,26 @@ a > .o-ui-code {
|
|
|
2204
2204
|
transition-timing-function: var(--o-ui-transition-timing-function);
|
|
2205
2205
|
}
|
|
2206
2206
|
}
|
|
2207
|
-
.o-ui-feedback:not(:first-child), .o-ui-feedback__list:not(:first-child
|
|
2207
|
+
.o-ui-feedback:not(:first-child), .o-ui-feedback__list:not(:first-child) {
|
|
2208
2208
|
margin-top: var(--o-ui-space) !important;
|
|
2209
2209
|
}
|
|
2210
|
+
:is(.o-ui-feedback, .o-ui-feedback__list:not(:empty), .o-ui-helper-text) + :is(.o-ui-feedback, .o-ui-feedback__list) {
|
|
2211
|
+
margin-top: calc(var(--o-ui-space) * 0.5) !important;
|
|
2212
|
+
}
|
|
2210
2213
|
[data-has-code] ~ .o-ui-feedback {
|
|
2211
2214
|
margin-left: calc(40px + var(--o-ui-space) * 0.5);
|
|
2212
2215
|
}
|
|
2213
2216
|
[data-has-code] ~ .o-ui-feedback__list {
|
|
2214
2217
|
padding-left: calc(40px + var(--o-ui-space) * 0.5);
|
|
2215
2218
|
}
|
|
2216
|
-
.o-ui-feedback ~ .o-ui-feedback {
|
|
2217
|
-
margin-top: calc(var(--o-ui-space) * 0.5);
|
|
2218
|
-
}
|
|
2219
2219
|
.o-ui-feedback__list {
|
|
2220
2220
|
width: fit-content;
|
|
2221
2221
|
margin: 0;
|
|
2222
2222
|
padding: 0;
|
|
2223
2223
|
}
|
|
2224
|
+
.o-ui-feedback__list:empty {
|
|
2225
|
+
display: none;
|
|
2226
|
+
}
|
|
2224
2227
|
.o-ui-feedback__list > .o-ui-feedback {
|
|
2225
2228
|
margin-left: calc(var(--o-ui-space) * 3.5) !important;
|
|
2226
2229
|
text-align: left !important;
|
|
@@ -2571,6 +2574,9 @@ a > .o-ui-code {
|
|
|
2571
2574
|
.o-ui-helper-text:not(:first-child) {
|
|
2572
2575
|
margin-top: var(--o-ui-space) !important;
|
|
2573
2576
|
}
|
|
2577
|
+
:is(.o-ui-helper-text, .o-ui-feedback__list:not(:empty), .o-ui-feedback) + .o-ui-helper-text {
|
|
2578
|
+
margin-top: calc(var(--o-ui-space) * 0.5) !important;
|
|
2579
|
+
}
|
|
2574
2580
|
[data-has-code] ~ .o-ui-helper-text {
|
|
2575
2581
|
margin-left: calc(40px + var(--o-ui-space) * 0.5);
|
|
2576
2582
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
@use "../../scss/utils/spacing" as *;
|
|
5
5
|
|
|
6
6
|
$feedback-margin-top: $helper-text-margin-top !default;
|
|
7
|
-
$feedback-gap-y:
|
|
7
|
+
$feedback-gap-y: $helper-text-gap-y !default;
|
|
8
8
|
|
|
9
9
|
$feedback-font-size: $helper-text-font-size !default;
|
|
10
10
|
$feedback-line-height: $helper-text-line-height !default;
|
|
@@ -23,10 +23,15 @@
|
|
|
23
23
|
|
|
24
24
|
// Top margin
|
|
25
25
|
&:not(:first-child),
|
|
26
|
-
&__list:not(:first-child
|
|
26
|
+
&__list:not(:first-child) {
|
|
27
27
|
margin-top: $feedback-margin-top !important;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
// Spacing between feedbacks/helper texts
|
|
31
|
+
:is(&, &__list:not(:empty), .#{$prefix}helper-text) + :is(&, &__list) {
|
|
32
|
+
margin-top: $feedback-gap-y !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
30
35
|
// Left margin due to control code
|
|
31
36
|
[data-has-code] ~ & {
|
|
32
37
|
margin-left: $feedback-has-code-margin-left;
|
|
@@ -38,17 +43,16 @@
|
|
|
38
43
|
padding-left: $feedback-has-code-margin-left;
|
|
39
44
|
}
|
|
40
45
|
|
|
41
|
-
// Spacing between feedbacks
|
|
42
|
-
& ~ & {
|
|
43
|
-
margin-top: $feedback-gap-y;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
46
|
// List
|
|
47
47
|
&__list {
|
|
48
48
|
width: fit-content;
|
|
49
49
|
margin: 0;
|
|
50
50
|
padding: 0;
|
|
51
51
|
|
|
52
|
+
&:empty {
|
|
53
|
+
display: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
52
56
|
@if $feedback-text-align == right {
|
|
53
57
|
:not(
|
|
54
58
|
.#{$prefix}checkbox__root,
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
@use "../../scss/utils/spacing" as *;
|
|
4
4
|
|
|
5
5
|
$helper-text-margin-top: $field-spacing-y !default;
|
|
6
|
+
$helper-text-gap-y: spacing(0.5) !default;
|
|
6
7
|
|
|
7
8
|
$helper-text-font-size: var(--#{$prefix}font-size-xs) !default;
|
|
8
9
|
$helper-text-line-height: var(--#{$prefix}line-height-xs) !default;
|
|
@@ -16,10 +16,16 @@
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
// Top margin
|
|
19
20
|
&:not(:first-child) {
|
|
20
21
|
margin-top: $helper-text-margin-top !important;
|
|
21
22
|
}
|
|
22
23
|
|
|
24
|
+
// Spacing between feedbacks/helper texts
|
|
25
|
+
:is(&, .#{$prefix}feedback__list:not(:empty), .#{$prefix}feedback) + & {
|
|
26
|
+
margin-top: $helper-text-gap-y !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
23
29
|
// Left margin due to control code
|
|
24
30
|
[data-has-code] ~ & {
|
|
25
31
|
margin-left: $helper-text-has-code-margin-left;
|