@swiftwc/ui 0.0.0-dev.59 → 0.0.0-dev.60
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/generated/css/index.css
CHANGED
|
@@ -297,10 +297,10 @@
|
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
html:has(color-scheme[dark]) {
|
|
300
|
-
color-scheme: dark;
|
|
300
|
+
color-scheme: dark only;
|
|
301
301
|
}
|
|
302
302
|
html:has(color-scheme[light]) {
|
|
303
|
-
color-scheme: light;
|
|
303
|
+
color-scheme: light only;
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
@layer sw-base, sw-components, sw-nav-components, sw-list-components, sw-tab-components, sw-utils, sw-colors, sw-actions, sw-transitions, sw-final;
|
|
@@ -3093,7 +3093,7 @@
|
|
|
3093
3093
|
}
|
|
3094
3094
|
:where(labeled-content)::part(labeled-content-stack) {
|
|
3095
3095
|
display: flex;
|
|
3096
|
-
flex-
|
|
3096
|
+
flex-flow: var(--labeled-content--value-stack-flex-flow, row wrap);
|
|
3097
3097
|
justify-content: space-between;
|
|
3098
3098
|
row-gap: var(--labeled-content-row-gap);
|
|
3099
3099
|
column-gap: var(--labeled-content-column-gap);
|
|
@@ -3104,14 +3104,22 @@
|
|
|
3104
3104
|
}
|
|
3105
3105
|
:where(labeled-content)::part(labeled-content-value-stack) {
|
|
3106
3106
|
color: var(--secondary);
|
|
3107
|
-
justify-items: flex-end;
|
|
3107
|
+
justify-items: var(--labeled-content--value-stack-justify-items, flex-end);
|
|
3108
3108
|
word-break: break-all;
|
|
3109
3109
|
}
|
|
3110
|
-
:
|
|
3111
|
-
|
|
3110
|
+
@media (pointer: fine) {
|
|
3111
|
+
:where(labeled-content) {
|
|
3112
|
+
--labeled-content--value-stack-flex-flow: column;
|
|
3113
|
+
--labeled-content--value-stack-justify-items: flex-start;
|
|
3114
|
+
}
|
|
3112
3115
|
}
|
|
3113
|
-
:where(labeled-content)[labeled-content-style]
|
|
3114
|
-
|
|
3116
|
+
:where(labeled-content)[labeled-content-style=vertical] {
|
|
3117
|
+
--labeled-content--value-stack-flex-flow: column;
|
|
3118
|
+
--labeled-content--value-stack-justify-items: flex-start;
|
|
3119
|
+
}
|
|
3120
|
+
:where(labeled-content)[labeled-content-style=horizontal] {
|
|
3121
|
+
--labeled-content--value-stack-flex-flow: row wrap;
|
|
3122
|
+
--labeled-content--value-stack-justify-items: flex-end;
|
|
3115
3123
|
}
|
|
3116
3124
|
:where(labeled-content > :nth-child(n+2 of [slot=label]),
|
|
3117
3125
|
labeled-content > [slot=header],
|
|
@@ -4625,7 +4633,7 @@
|
|
|
4625
4633
|
:where(text-field)::part(text-field-stack) {
|
|
4626
4634
|
grid-template-columns: auto minmax(0, 1fr);
|
|
4627
4635
|
grid-template-rows: minmax(0, 1fr);
|
|
4628
|
-
column-gap:
|
|
4636
|
+
column-gap: var(--labeled-content-column-gap);
|
|
4629
4637
|
}
|
|
4630
4638
|
:where(text-field)::part(text-field-input-stack) {
|
|
4631
4639
|
place-items: stretch;
|
|
@@ -4663,6 +4671,12 @@
|
|
|
4663
4671
|
:where(picker-view) {
|
|
4664
4672
|
grid-template-columns: minmax(0, 1fr);
|
|
4665
4673
|
grid-template-rows: minmax(0, 1fr);
|
|
4674
|
+
padding-inline: var(--picker--stack-grid-padding-inline, );
|
|
4675
|
+
padding-block: var(--picker--stack-grid-padding-block, );
|
|
4676
|
+
background: var(--picker--stack-grid-background, );
|
|
4677
|
+
border-radius: var(--picker--stack-grid-border-radius, );
|
|
4678
|
+
border: var(--picker--stack-grid-border, );
|
|
4679
|
+
color: var(--picker--stack-grid-color, );
|
|
4666
4680
|
}
|
|
4667
4681
|
:where(picker-view > :not([slot])) {
|
|
4668
4682
|
place-self: var(--picker--input-stack-child-place-self, );
|
|
@@ -4673,12 +4687,6 @@
|
|
|
4673
4687
|
justify-content: var(--picker--stack-justify-content, );
|
|
4674
4688
|
row-gap: var(--picker--stack-row-gap, );
|
|
4675
4689
|
column-gap: var(--picker--stack-column-gap, );
|
|
4676
|
-
padding-inline: var(--picker--stack-grid-padding-inline, );
|
|
4677
|
-
padding-block: var(--picker--stack-grid-padding-block, );
|
|
4678
|
-
background: var(--picker--stack-grid-background, );
|
|
4679
|
-
border-radius: var(--picker--stack-grid-border-radius, );
|
|
4680
|
-
border: var(--picker--stack-grid-border, );
|
|
4681
|
-
color: var(--picker--stack-grid-color, );
|
|
4682
4690
|
}
|
|
4683
4691
|
:where(picker-view)::part(picker-input-stack) {
|
|
4684
4692
|
flex-shrink: var(--picker--input-stack-flex-shrink, );
|
|
@@ -4692,7 +4700,7 @@
|
|
|
4692
4700
|
}
|
|
4693
4701
|
@container style(--picker-style: menu) {
|
|
4694
4702
|
:where(picker-view menu-view > menu-view > label-view[slot=label]) {
|
|
4695
|
-
margin-inline-start:
|
|
4703
|
+
margin-inline-start: 3rem;
|
|
4696
4704
|
}
|
|
4697
4705
|
}
|
|
4698
4706
|
@container not style(--picker-style) {
|
|
@@ -4820,7 +4828,7 @@
|
|
|
4820
4828
|
--picker--input-stack-max-width: 70%;
|
|
4821
4829
|
}
|
|
4822
4830
|
:where(:where(picker-view[picker-style=menu]) menu-view > menu-view > label-view[slot=label]) {
|
|
4823
|
-
margin-inline-start:
|
|
4831
|
+
margin-inline-start: 3rem;
|
|
4824
4832
|
}
|
|
4825
4833
|
:where(form picker-view[picker-style=navigation-link]) {
|
|
4826
4834
|
--picker--labelstack-display: grid;
|
|
@@ -4839,7 +4847,7 @@
|
|
|
4839
4847
|
--picker--input-stack-max-width: 70%;
|
|
4840
4848
|
}
|
|
4841
4849
|
:where(:where(picker-view[picker-style=navigation-link]) menu-view > menu-view > label-view[slot=label]) {
|
|
4842
|
-
margin-inline-start:
|
|
4850
|
+
margin-inline-start: 3rem;
|
|
4843
4851
|
}
|
|
4844
4852
|
:where(form picker-view[picker-style=sheet]) {
|
|
4845
4853
|
--picker--labelstack-display: grid;
|
|
@@ -4858,7 +4866,7 @@
|
|
|
4858
4866
|
--picker--input-stack-max-width: 70%;
|
|
4859
4867
|
}
|
|
4860
4868
|
:where(:where(picker-view[picker-style=sheet]) menu-view > menu-view > label-view[slot=label]) {
|
|
4861
|
-
margin-inline-start:
|
|
4869
|
+
margin-inline-start: 3rem;
|
|
4862
4870
|
}
|
|
4863
4871
|
}
|
|
4864
4872
|
}
|
package/package.json
CHANGED
package/scss/_vars.scss
CHANGED
package/scss/base/_root.scss
CHANGED
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
&::part(labeled-content-stack) {
|
|
15
15
|
display: flex;
|
|
16
16
|
|
|
17
|
-
flex-
|
|
17
|
+
flex-flow: var(--labeled-content--value-stack-flex-flow, row wrap);
|
|
18
|
+
// flex-wrap: wrap;
|
|
18
19
|
|
|
19
20
|
justify-content: space-between;
|
|
20
21
|
|
|
@@ -31,16 +32,27 @@
|
|
|
31
32
|
&::part(labeled-content-value-stack) {
|
|
32
33
|
color: var(--secondary);
|
|
33
34
|
|
|
34
|
-
justify-items: flex-end;
|
|
35
|
+
justify-items: var(--labeled-content--value-stack-justify-items, flex-end);
|
|
35
36
|
|
|
36
37
|
word-break: break-all;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
|
-
|
|
40
|
-
flex-flow: column;
|
|
40
|
+
@media (pointer: fine) {
|
|
41
|
+
--labeled-content--value-stack-flex-flow: column;
|
|
42
|
+
|
|
43
|
+
--labeled-content--value-stack-justify-items: flex-start;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&[labeled-content-style='vertical'] {
|
|
47
|
+
--labeled-content--value-stack-flex-flow: column;
|
|
48
|
+
|
|
49
|
+
--labeled-content--value-stack-justify-items: flex-start;
|
|
41
50
|
}
|
|
42
|
-
|
|
43
|
-
|
|
51
|
+
|
|
52
|
+
&[labeled-content-style='horizontal'] {
|
|
53
|
+
--labeled-content--value-stack-flex-flow: row wrap;
|
|
54
|
+
|
|
55
|
+
--labeled-content--value-stack-justify-items: flex-end;
|
|
44
56
|
}
|
|
45
57
|
}
|
|
46
58
|
|
|
@@ -99,6 +99,14 @@ $picker-ifs: (
|
|
|
99
99
|
grid-template-columns: minmax(0, 1fr);
|
|
100
100
|
|
|
101
101
|
grid-template-rows: minmax(0, 1fr);
|
|
102
|
+
|
|
103
|
+
// wire these to mimic componentize
|
|
104
|
+
padding-inline: var(--picker--stack-grid-padding-inline,);
|
|
105
|
+
padding-block: var(--picker--stack-grid-padding-block,);
|
|
106
|
+
background: var(--picker--stack-grid-background,);
|
|
107
|
+
border-radius: var(--picker--stack-grid-border-radius,);
|
|
108
|
+
border: var(--picker--stack-grid-border,);
|
|
109
|
+
color: var(--picker--stack-grid-color,);
|
|
102
110
|
}
|
|
103
111
|
|
|
104
112
|
> :not([slot]) {
|
|
@@ -122,12 +130,13 @@ $picker-ifs: (
|
|
|
122
130
|
|
|
123
131
|
// column-gap: 1rem;
|
|
124
132
|
|
|
125
|
-
|
|
126
|
-
padding-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
border: var(--picker--stack-grid-border,);
|
|
130
|
-
|
|
133
|
+
// // wire these to mimic componentize
|
|
134
|
+
// padding-inline: var(--picker--stack-grid-padding-inline,);
|
|
135
|
+
// padding-block: var(--picker--stack-grid-padding-block,);
|
|
136
|
+
// background: var(--picker--stack-grid-background,);
|
|
137
|
+
// border-radius: var(--picker--stack-grid-border-radius,);
|
|
138
|
+
// border: var(--picker--stack-grid-border,);
|
|
139
|
+
// color: var(--picker--stack-grid-color,);
|
|
131
140
|
}
|
|
132
141
|
|
|
133
142
|
:where(&)::part(picker-input-stack) {
|
|
@@ -163,7 +172,7 @@ $picker-ifs: (
|
|
|
163
172
|
|
|
164
173
|
:where(& menu-view > menu-view > label-view[slot='label']) {
|
|
165
174
|
@container style(--picker-style: menu) {
|
|
166
|
-
margin-inline-start:
|
|
175
|
+
margin-inline-start: 3rem;
|
|
167
176
|
}
|
|
168
177
|
}
|
|
169
178
|
// NOTE: make first inline list item secondary
|
|
@@ -219,7 +228,7 @@ $picker-ifs: (
|
|
|
219
228
|
);
|
|
220
229
|
--picker--input-stack-child-place-self: if(style(--picker-style: sheet): flex-end ; style(--picker-style: navigation-link): flex-end ; style(--picker-style: menu): flex-end ;);
|
|
221
230
|
|
|
222
|
-
// SECTION
|
|
231
|
+
// SECTION experimental only in chrome
|
|
223
232
|
--picker--input-stack-flex-shrink: if(
|
|
224
233
|
style(--picker-style: sheet) or style(--picker-style: navigation-link) or
|
|
225
234
|
style(--picker-style: menu): if(style(--label-value-placement: vertical) or style(--label-value-placement: auto): 1 ; else: 0 ;)
|
|
@@ -257,7 +266,7 @@ $picker-ifs: (
|
|
|
257
266
|
}
|
|
258
267
|
:where(&[picker-style='#{$v}']) {
|
|
259
268
|
:where(& menu-view > menu-view > label-view[slot='label']) {
|
|
260
|
-
margin-inline-start:
|
|
269
|
+
margin-inline-start: 3rem;
|
|
261
270
|
}
|
|
262
271
|
|
|
263
272
|
// :where(& menu-view > button, & menu-view > [is='disclosure-group'] > button, & menu-view > [is='disclosure-group'] > summary) {
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
text-field {
|
|
5
5
|
:where(&) {
|
|
6
6
|
grid-template-columns: minmax(0, 1fr);
|
|
7
|
+
|
|
7
8
|
grid-template-rows: minmax(0, 1fr);
|
|
8
9
|
|
|
9
10
|
// padding-inline: var(--toolbaritempadistart,) var(--toolbaritempadiend,);
|
|
@@ -14,9 +15,10 @@
|
|
|
14
15
|
// display: grid;
|
|
15
16
|
|
|
16
17
|
grid-template-columns: auto minmax(0, 1fr);
|
|
18
|
+
|
|
17
19
|
grid-template-rows: minmax(0, 1fr);
|
|
18
20
|
|
|
19
|
-
column-gap:
|
|
21
|
+
column-gap: var(--labeled-content-column-gap);
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
:where(&)::part(text-field-label-stack) {
|