@d4gger/design-system 4.2.0 → 4.2.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/dist/components/empty-state.css +4 -1
- package/dist/components/field.css +5 -1
- package/dist/components/input-group.css +6 -0
- package/dist/components/result.css +2 -2
- package/dist/components/stepper.css +6 -2
- package/dist/docs/component-index.json +1 -1
- package/dist/docs/components/field.md +1 -1
- package/dist/styles.css +53 -6
- package/dist/tokens.dtcg.json +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
.dsx-empty-state__title {
|
|
5
5
|
margin: 0;
|
|
6
|
+
overflow-wrap: break-word;
|
|
7
|
+
word-break: normal;
|
|
8
|
+
hyphens: none;
|
|
6
9
|
font-family: var(--dsx-typography-headline-large-font-family), sans-serif;
|
|
7
10
|
font-size: var(--dsx-typography-headline-large-font-size);
|
|
8
11
|
font-weight: var(--dsx-typography-headline-large-font-weight);
|
|
@@ -25,7 +28,7 @@
|
|
|
25
28
|
display: flex;
|
|
26
29
|
min-width: 0;
|
|
27
30
|
max-width: 100%;
|
|
28
|
-
overflow-wrap:
|
|
31
|
+
overflow-wrap: break-word;
|
|
29
32
|
flex-direction: column;
|
|
30
33
|
align-items: center;
|
|
31
34
|
justify-content: center;
|
|
@@ -46,7 +46,11 @@
|
|
|
46
46
|
.dsx-field__label[data-invalid='true'],
|
|
47
47
|
.dsx-field__label[data-state='invalid'],
|
|
48
48
|
.dsx-field__error {
|
|
49
|
-
|
|
49
|
+
/* Error text on surface/Card: ramp step 11 (low-contrast text) — step 9
|
|
50
|
+
#dc1e40 fails AA on Card raised (dark 3.13 on #23252d, light 4.02 on
|
|
51
|
+
#e7e9ed); step 11 passes (dark 7.80 #ff9f9f, light 8.22 #8a0021).
|
|
52
|
+
DESIGN.md ramp: 9-10 = solid fill, 11 = low-contrast text. Borders stay step 9. */
|
|
53
|
+
color: var(--dsx-color-error-11);
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
.dsx-field[data-state='disabled'],
|
|
@@ -18,6 +18,10 @@
|
|
|
18
18
|
.dsx-input-group > .dsx-input-shell,
|
|
19
19
|
.dsx-input-group > .dsx-textarea {
|
|
20
20
|
flex: 1;
|
|
21
|
+
/* let the field shrink below its intrinsic input width so a long read-only
|
|
22
|
+
value (e.g. a referral URL in CopyField) never forces the group past the
|
|
23
|
+
card edge at narrow widths — the value scrolls inside the input instead */
|
|
24
|
+
min-width: 0;
|
|
21
25
|
}
|
|
22
26
|
|
|
23
27
|
.dsx-input-group__addon,
|
|
@@ -32,6 +36,8 @@
|
|
|
32
36
|
|
|
33
37
|
.dsx-input-group__button {
|
|
34
38
|
border-color: var(--dsx-control-separator-color);
|
|
39
|
+
/* keep the trailing action (Copy) from being squeezed off the row */
|
|
40
|
+
flex-shrink: 0;
|
|
35
41
|
}
|
|
36
42
|
|
|
37
43
|
/* Horizontal: flatten inner radii and collapse shared border */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.dsx-result { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--dsx-space-md); min-width: 0; max-width: 100%; overflow-wrap:
|
|
1
|
+
.dsx-result { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--dsx-space-md); min-width: 0; max-width: 100%; overflow-wrap: break-word; min-height: var(--dsx-empty-state-min-height); padding: var(--dsx-space-xl); text-align: center; color: var(--dsx-color-on-surface); }
|
|
2
2
|
.dsx-result > * { min-width: 0; max-width: 100%; }
|
|
3
3
|
.dsx-result__icon { display: inline-flex; color: var(--_result-icon-color, var(--dsx-color-on-surface-variant)); }
|
|
4
4
|
.dsx-result__illustration { display: block; flex: none; color: var(--_result-icon-color, var(--dsx-color-on-surface-variant)); }
|
|
5
5
|
.dsx-result[data-tone='success'] { --_result-icon-color: var(--dsx-color-success); }
|
|
6
6
|
.dsx-result[data-tone='warning'] { --_result-icon-color: var(--dsx-color-warning); }
|
|
7
7
|
.dsx-result[data-tone='danger'] { --_result-icon-color: var(--dsx-color-error); }
|
|
8
|
-
.dsx-result__title { margin: 0; font-family: var(--dsx-typography-headline-large-font-family); font-size: var(--dsx-typography-headline-large-font-size); font-weight: var(--dsx-typography-headline-large-font-weight); line-height: var(--dsx-typography-headline-large-line-height); }
|
|
8
|
+
.dsx-result__title { margin: 0; overflow-wrap: break-word; word-break: normal; hyphens: none; font-family: var(--dsx-typography-headline-large-font-family); font-size: var(--dsx-typography-headline-large-font-size); font-weight: var(--dsx-typography-headline-large-font-weight); line-height: var(--dsx-typography-headline-large-line-height); }
|
|
9
9
|
.dsx-result__description { max-width: var(--dsx-empty-state-max-width); margin: 0; color: var(--dsx-color-on-surface-variant); }
|
|
10
10
|
.dsx-result__metadata { color: var(--dsx-color-on-surface-variant); font-family: var(--dsx-typography-label-medium-font-family); font-size: var(--dsx-typography-label-medium-font-size); line-height: var(--dsx-typography-label-medium-line-height); }
|
|
11
11
|
.dsx-result__steps { margin: 0; padding-inline-start: var(--dsx-space-lg); text-align: start; }
|
|
@@ -161,7 +161,9 @@
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
.dsx-stepper__label {
|
|
164
|
-
overflow-wrap:
|
|
164
|
+
overflow-wrap: break-word;
|
|
165
|
+
word-break: normal;
|
|
166
|
+
hyphens: none;
|
|
165
167
|
font-family: var(--dsx-typography-label-large-font-family), sans-serif;
|
|
166
168
|
font-size: var(--dsx-typography-label-large-font-size);
|
|
167
169
|
font-weight: var(--dsx-typography-label-large-font-weight);
|
|
@@ -177,7 +179,9 @@
|
|
|
177
179
|
}
|
|
178
180
|
|
|
179
181
|
.dsx-stepper__description {
|
|
180
|
-
overflow-wrap:
|
|
182
|
+
overflow-wrap: break-word;
|
|
183
|
+
word-break: normal;
|
|
184
|
+
hyphens: none;
|
|
181
185
|
font-family: var(--dsx-typography-body-medium-font-family), sans-serif;
|
|
182
186
|
font-size: var(--dsx-typography-body-medium-font-size);
|
|
183
187
|
color: var(--dsx-color-on-surface-variant);
|
|
@@ -114,7 +114,7 @@ Every CSS value the component paints is a `var(--dsx-*)` token.
|
|
|
114
114
|
| Label color | `var(--dsx-color-on-surface)` | Default label. |
|
|
115
115
|
| Label color (invalid) | `var(--dsx-color-error)` | Label color when the row is invalid. |
|
|
116
116
|
| Description color | `var(--dsx-color-on-surface-variant)` | Helper text. |
|
|
117
|
-
| Error color | `var(--dsx-color-error)` | Error message. |
|
|
117
|
+
| Error color | `var(--dsx-color-error-11)` | Error message. |
|
|
118
118
|
| Error typography | `var(--dsx-typography-body-medium-*)` | Error message ramp. |
|
|
119
119
|
| Title typography | `var(--dsx-typography-headline-medium-*)` | Optional title ramp. |
|
|
120
120
|
| Disabled opacity | `var(--dsx-opacity-disabled)` | Disabled rows. |
|
package/dist/styles.css
CHANGED
|
@@ -5036,6 +5036,9 @@ textarea {
|
|
|
5036
5036
|
|
|
5037
5037
|
.dsx-empty-state__title {
|
|
5038
5038
|
margin: 0;
|
|
5039
|
+
overflow-wrap: break-word;
|
|
5040
|
+
word-break: normal;
|
|
5041
|
+
hyphens: none;
|
|
5039
5042
|
font-family: var(--dsx-typography-headline-large-font-family), sans-serif;
|
|
5040
5043
|
font-size: var(--dsx-typography-headline-large-font-size);
|
|
5041
5044
|
font-weight: var(--dsx-typography-headline-large-font-weight);
|
|
@@ -5058,7 +5061,7 @@ textarea {
|
|
|
5058
5061
|
display: flex;
|
|
5059
5062
|
min-width: 0;
|
|
5060
5063
|
max-width: 100%;
|
|
5061
|
-
overflow-wrap:
|
|
5064
|
+
overflow-wrap: break-word;
|
|
5062
5065
|
flex-direction: column;
|
|
5063
5066
|
align-items: center;
|
|
5064
5067
|
justify-content: center;
|
|
@@ -10006,7 +10009,11 @@ textarea {
|
|
|
10006
10009
|
.dsx-field__label[data-invalid='true'],
|
|
10007
10010
|
.dsx-field__label[data-state='invalid'],
|
|
10008
10011
|
.dsx-field__error {
|
|
10009
|
-
|
|
10012
|
+
/* Error text on surface/Card: ramp step 11 (low-contrast text) — step 9
|
|
10013
|
+
#dc1e40 fails AA on Card raised (dark 3.13 on #23252d, light 4.02 on
|
|
10014
|
+
#e7e9ed); step 11 passes (dark 7.80 #ff9f9f, light 8.22 #8a0021).
|
|
10015
|
+
DESIGN.md ramp: 9-10 = solid fill, 11 = low-contrast text. Borders stay step 9. */
|
|
10016
|
+
color: var(--dsx-color-error-11);
|
|
10010
10017
|
}
|
|
10011
10018
|
|
|
10012
10019
|
.dsx-field[data-state='disabled'],
|
|
@@ -10351,6 +10358,10 @@ textarea {
|
|
|
10351
10358
|
.dsx-input-group > .dsx-input-shell,
|
|
10352
10359
|
.dsx-input-group > .dsx-textarea {
|
|
10353
10360
|
flex: 1;
|
|
10361
|
+
/* let the field shrink below its intrinsic input width so a long read-only
|
|
10362
|
+
value (e.g. a referral URL in CopyField) never forces the group past the
|
|
10363
|
+
card edge at narrow widths — the value scrolls inside the input instead */
|
|
10364
|
+
min-width: 0;
|
|
10354
10365
|
}
|
|
10355
10366
|
|
|
10356
10367
|
.dsx-input-group__addon,
|
|
@@ -10365,6 +10376,8 @@ textarea {
|
|
|
10365
10376
|
|
|
10366
10377
|
.dsx-input-group__button {
|
|
10367
10378
|
border-color: var(--dsx-control-separator-color);
|
|
10379
|
+
/* keep the trailing action (Copy) from being squeezed off the row */
|
|
10380
|
+
flex-shrink: 0;
|
|
10368
10381
|
}
|
|
10369
10382
|
|
|
10370
10383
|
/* Horizontal: flatten inner radii and collapse shared border */
|
|
@@ -15305,7 +15318,7 @@ textarea {
|
|
|
15305
15318
|
|
|
15306
15319
|
.dsx-prose th, .dsx-prose td { padding: var(--dsx-space-sm); border: var(--dsx-border-width-sm) solid var(--dsx-color-outline); text-align: start; white-space: nowrap; }
|
|
15307
15320
|
|
|
15308
|
-
.dsx-result { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--dsx-space-md); min-width: 0; max-width: 100%; overflow-wrap:
|
|
15321
|
+
.dsx-result { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--dsx-space-md); min-width: 0; max-width: 100%; overflow-wrap: break-word; min-height: var(--dsx-empty-state-min-height); padding: var(--dsx-space-xl); text-align: center; color: var(--dsx-color-on-surface); }
|
|
15309
15322
|
|
|
15310
15323
|
.dsx-result > * { min-width: 0; max-width: 100%; }
|
|
15311
15324
|
|
|
@@ -15319,7 +15332,7 @@ textarea {
|
|
|
15319
15332
|
|
|
15320
15333
|
.dsx-result[data-tone='danger'] { --_result-icon-color: var(--dsx-color-error); }
|
|
15321
15334
|
|
|
15322
|
-
.dsx-result__title { margin: 0; font-family: var(--dsx-typography-headline-large-font-family); font-size: var(--dsx-typography-headline-large-font-size); font-weight: var(--dsx-typography-headline-large-font-weight); line-height: var(--dsx-typography-headline-large-line-height); }
|
|
15335
|
+
.dsx-result__title { margin: 0; overflow-wrap: break-word; word-break: normal; hyphens: none; font-family: var(--dsx-typography-headline-large-font-family); font-size: var(--dsx-typography-headline-large-font-size); font-weight: var(--dsx-typography-headline-large-font-weight); line-height: var(--dsx-typography-headline-large-line-height); }
|
|
15323
15336
|
|
|
15324
15337
|
.dsx-result__description { max-width: var(--dsx-empty-state-max-width); margin: 0; color: var(--dsx-color-on-surface-variant); }
|
|
15325
15338
|
|
|
@@ -17964,7 +17977,9 @@ span.dsx-filter-bar__condition-label {
|
|
|
17964
17977
|
}
|
|
17965
17978
|
|
|
17966
17979
|
.dsx-stepper__label {
|
|
17967
|
-
overflow-wrap:
|
|
17980
|
+
overflow-wrap: break-word;
|
|
17981
|
+
word-break: normal;
|
|
17982
|
+
hyphens: none;
|
|
17968
17983
|
font-family: var(--dsx-typography-label-large-font-family), sans-serif;
|
|
17969
17984
|
font-size: var(--dsx-typography-label-large-font-size);
|
|
17970
17985
|
font-weight: var(--dsx-typography-label-large-font-weight);
|
|
@@ -17980,7 +17995,9 @@ span.dsx-filter-bar__condition-label {
|
|
|
17980
17995
|
}
|
|
17981
17996
|
|
|
17982
17997
|
.dsx-stepper__description {
|
|
17983
|
-
overflow-wrap:
|
|
17998
|
+
overflow-wrap: break-word;
|
|
17999
|
+
word-break: normal;
|
|
18000
|
+
hyphens: none;
|
|
17984
18001
|
font-family: var(--dsx-typography-body-medium-font-family), sans-serif;
|
|
17985
18002
|
font-size: var(--dsx-typography-body-medium-font-size);
|
|
17986
18003
|
color: var(--dsx-color-on-surface-variant);
|
|
@@ -21919,6 +21936,10 @@ span.dsx-filter-bar__condition-label {
|
|
|
21919
21936
|
|
|
21920
21937
|
.dsx-r-tw-pretty {
|
|
21921
21938
|
white-space: normal;
|
|
21939
|
+
/* An ancestor (e.g. Card) may hand down `overflow-wrap: anywhere`, which
|
|
21940
|
+
permits mid-word breaks and defeats the wrap mode. Opting into pretty
|
|
21941
|
+
or balance means typeset-this-well: word boundaries hold. */
|
|
21942
|
+
overflow-wrap: normal;
|
|
21922
21943
|
}
|
|
21923
21944
|
|
|
21924
21945
|
@supports (text-wrap: pretty) {
|
|
@@ -21929,6 +21950,7 @@ span.dsx-filter-bar__condition-label {
|
|
|
21929
21950
|
|
|
21930
21951
|
.dsx-r-tw-balance {
|
|
21931
21952
|
white-space: normal;
|
|
21953
|
+
overflow-wrap: normal;
|
|
21932
21954
|
}
|
|
21933
21955
|
|
|
21934
21956
|
@supports (text-wrap: balance) {
|
|
@@ -21946,6 +21968,10 @@ span.dsx-filter-bar__condition-label {
|
|
|
21946
21968
|
}
|
|
21947
21969
|
.sm\:dsx-r-tw-pretty {
|
|
21948
21970
|
white-space: normal;
|
|
21971
|
+
/* An ancestor (e.g. Card) may hand down `overflow-wrap: anywhere`, which
|
|
21972
|
+
permits mid-word breaks and defeats the wrap mode. Opting into pretty
|
|
21973
|
+
or balance means typeset-this-well: word boundaries hold. */
|
|
21974
|
+
overflow-wrap: normal;
|
|
21949
21975
|
}
|
|
21950
21976
|
@supports (text-wrap: pretty) {
|
|
21951
21977
|
.dsx-r-tw-pretty {
|
|
@@ -21954,6 +21980,7 @@ span.dsx-filter-bar__condition-label {
|
|
|
21954
21980
|
}
|
|
21955
21981
|
.sm\:dsx-r-tw-balance {
|
|
21956
21982
|
white-space: normal;
|
|
21983
|
+
overflow-wrap: normal;
|
|
21957
21984
|
}
|
|
21958
21985
|
@supports (text-wrap: balance) {
|
|
21959
21986
|
.dsx-r-tw-balance {
|
|
@@ -21971,6 +21998,10 @@ span.dsx-filter-bar__condition-label {
|
|
|
21971
21998
|
}
|
|
21972
21999
|
.md\:dsx-r-tw-pretty {
|
|
21973
22000
|
white-space: normal;
|
|
22001
|
+
/* An ancestor (e.g. Card) may hand down `overflow-wrap: anywhere`, which
|
|
22002
|
+
permits mid-word breaks and defeats the wrap mode. Opting into pretty
|
|
22003
|
+
or balance means typeset-this-well: word boundaries hold. */
|
|
22004
|
+
overflow-wrap: normal;
|
|
21974
22005
|
}
|
|
21975
22006
|
@supports (text-wrap: pretty) {
|
|
21976
22007
|
.dsx-r-tw-pretty {
|
|
@@ -21979,6 +22010,7 @@ span.dsx-filter-bar__condition-label {
|
|
|
21979
22010
|
}
|
|
21980
22011
|
.md\:dsx-r-tw-balance {
|
|
21981
22012
|
white-space: normal;
|
|
22013
|
+
overflow-wrap: normal;
|
|
21982
22014
|
}
|
|
21983
22015
|
@supports (text-wrap: balance) {
|
|
21984
22016
|
.dsx-r-tw-balance {
|
|
@@ -21996,6 +22028,10 @@ span.dsx-filter-bar__condition-label {
|
|
|
21996
22028
|
}
|
|
21997
22029
|
.lg\:dsx-r-tw-pretty {
|
|
21998
22030
|
white-space: normal;
|
|
22031
|
+
/* An ancestor (e.g. Card) may hand down `overflow-wrap: anywhere`, which
|
|
22032
|
+
permits mid-word breaks and defeats the wrap mode. Opting into pretty
|
|
22033
|
+
or balance means typeset-this-well: word boundaries hold. */
|
|
22034
|
+
overflow-wrap: normal;
|
|
21999
22035
|
}
|
|
22000
22036
|
@supports (text-wrap: pretty) {
|
|
22001
22037
|
.dsx-r-tw-pretty {
|
|
@@ -22004,6 +22040,7 @@ span.dsx-filter-bar__condition-label {
|
|
|
22004
22040
|
}
|
|
22005
22041
|
.lg\:dsx-r-tw-balance {
|
|
22006
22042
|
white-space: normal;
|
|
22043
|
+
overflow-wrap: normal;
|
|
22007
22044
|
}
|
|
22008
22045
|
@supports (text-wrap: balance) {
|
|
22009
22046
|
.dsx-r-tw-balance {
|
|
@@ -22021,6 +22058,10 @@ span.dsx-filter-bar__condition-label {
|
|
|
22021
22058
|
}
|
|
22022
22059
|
.xl\:dsx-r-tw-pretty {
|
|
22023
22060
|
white-space: normal;
|
|
22061
|
+
/* An ancestor (e.g. Card) may hand down `overflow-wrap: anywhere`, which
|
|
22062
|
+
permits mid-word breaks and defeats the wrap mode. Opting into pretty
|
|
22063
|
+
or balance means typeset-this-well: word boundaries hold. */
|
|
22064
|
+
overflow-wrap: normal;
|
|
22024
22065
|
}
|
|
22025
22066
|
@supports (text-wrap: pretty) {
|
|
22026
22067
|
.dsx-r-tw-pretty {
|
|
@@ -22029,6 +22070,7 @@ span.dsx-filter-bar__condition-label {
|
|
|
22029
22070
|
}
|
|
22030
22071
|
.xl\:dsx-r-tw-balance {
|
|
22031
22072
|
white-space: normal;
|
|
22073
|
+
overflow-wrap: normal;
|
|
22032
22074
|
}
|
|
22033
22075
|
@supports (text-wrap: balance) {
|
|
22034
22076
|
.dsx-r-tw-balance {
|
|
@@ -22046,6 +22088,10 @@ span.dsx-filter-bar__condition-label {
|
|
|
22046
22088
|
}
|
|
22047
22089
|
.\32 xl\:dsx-r-tw-pretty {
|
|
22048
22090
|
white-space: normal;
|
|
22091
|
+
/* An ancestor (e.g. Card) may hand down `overflow-wrap: anywhere`, which
|
|
22092
|
+
permits mid-word breaks and defeats the wrap mode. Opting into pretty
|
|
22093
|
+
or balance means typeset-this-well: word boundaries hold. */
|
|
22094
|
+
overflow-wrap: normal;
|
|
22049
22095
|
}
|
|
22050
22096
|
@supports (text-wrap: pretty) {
|
|
22051
22097
|
.dsx-r-tw-pretty {
|
|
@@ -22054,6 +22100,7 @@ span.dsx-filter-bar__condition-label {
|
|
|
22054
22100
|
}
|
|
22055
22101
|
.\32 xl\:dsx-r-tw-balance {
|
|
22056
22102
|
white-space: normal;
|
|
22103
|
+
overflow-wrap: normal;
|
|
22057
22104
|
}
|
|
22058
22105
|
@supports (text-wrap: balance) {
|
|
22059
22106
|
.dsx-r-tw-balance {
|
package/dist/tokens.dtcg.json
CHANGED