@swiftwc/ui 0.0.0-dev.111 → 0.0.0-dev.113
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/components/h-flex-stack.d.ts +16 -0
- package/generated/components/h-flex-stack.js +18 -0
- package/generated/components/index.d.ts +2 -0
- package/generated/components/index.js +2 -0
- package/generated/components/picker-view.d.ts +3 -20
- package/generated/components/picker-view.js +306 -257
- package/generated/components/tab-view.js +6 -9
- package/generated/components/v-flex-stack.d.ts +16 -0
- package/generated/components/v-flex-stack.js +18 -0
- package/generated/css/index.css +317 -175
- package/html-data/en.json +97 -21
- package/package.json +1 -1
- package/scss/_maps.scss +1 -1
- package/scss/_utils.scss +1 -1
- package/scss/base/_reboot.scss +0 -27
- package/scss/base/_root.scss +2 -2
- package/scss/colors/_index.scss +47 -3
- package/scss/components/_h-flex-stack.scss +2 -0
- package/scss/components/_index.scss +1 -1
- package/scss/components/_picker-view.scss +157 -117
- package/scss/components/_scroll-view.scss +0 -12
- package/scss/components/_v-flex-stack.scss +2 -0
- package/scss/utils/_index.scss +44 -22
- package/scss/utils/_stacks.scss +3 -1
- /package/scss/utils/{_scroll-view.scss → _scroll-view.scss.txt} +0 -0
package/html-data/en.json
CHANGED
|
@@ -309,6 +309,23 @@
|
|
|
309
309
|
"name": "h-divider",
|
|
310
310
|
"description": "undefined\n\n```ts\ninterface HDividerSignature {}\n\nclass HDivider extends HTMLElement<HDividerSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'h-divider': HDivider // <h-divider></h-divider>\n }\n}\n\n```\n"
|
|
311
311
|
},
|
|
312
|
+
{
|
|
313
|
+
"name": "h-flex-stack",
|
|
314
|
+
"references": [
|
|
315
|
+
{
|
|
316
|
+
"name": "Documentation",
|
|
317
|
+
"url": "https://swiftwc.github.io/ui/web-components/h-flex-stack"
|
|
318
|
+
}
|
|
319
|
+
],
|
|
320
|
+
"attributes": [
|
|
321
|
+
{
|
|
322
|
+
"name": "spacing",
|
|
323
|
+
"description": "\nDescription: The gap between the primary axis",
|
|
324
|
+
"valueSet": "Spacing"
|
|
325
|
+
}
|
|
326
|
+
],
|
|
327
|
+
"description": "A view that arranges its children side by side.\n---\n\n```ts\ninterface HFlexStackSignature {\n Attributes: {\n spacing?: Spacing // The gap between the primary axis\n }\n}\n\nclass HFlexStack extends HTMLElement<HFlexStackSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'h-flex-stack': HFlexStack // <h-flex-stack></h-flex-stack>\n }\n}\n\n```\n"
|
|
328
|
+
},
|
|
312
329
|
{
|
|
313
330
|
"name": "h-stack",
|
|
314
331
|
"references": [
|
|
@@ -562,6 +579,37 @@
|
|
|
562
579
|
}
|
|
563
580
|
],
|
|
564
581
|
"attributes": [
|
|
582
|
+
{
|
|
583
|
+
"name": "label-value-placement",
|
|
584
|
+
"description": "Value Type: “vertical” | “horizontal” | “auto”",
|
|
585
|
+
"values": [
|
|
586
|
+
{
|
|
587
|
+
"name": "vertical"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"name": "horizontal"
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"name": "auto"
|
|
594
|
+
}
|
|
595
|
+
]
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"name": "horizontal-radio-group-layout",
|
|
599
|
+
"description": "Value Type: boolean"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"name": "prompt"
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
"name": "prompt-icon"
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"name": "label"
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
"name": "name"
|
|
612
|
+
},
|
|
565
613
|
{
|
|
566
614
|
"name": "picker-style",
|
|
567
615
|
"description": "Value Type: “menu” | “inline” | “navigation-link” | “sheet” | “automatic”",
|
|
@@ -583,36 +631,33 @@
|
|
|
583
631
|
}
|
|
584
632
|
]
|
|
585
633
|
},
|
|
634
|
+
{
|
|
635
|
+
"name": "selection"
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"name": "searchable",
|
|
639
|
+
"description": "Value Type: boolean"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"name": "current-value-label"
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"name": "current-value-icon"
|
|
646
|
+
},
|
|
586
647
|
{
|
|
587
648
|
"name": "help",
|
|
588
|
-
"description": "
|
|
649
|
+
"description": "Adds a help tooltip to the trigger of the picker, if style supports one"
|
|
589
650
|
},
|
|
590
651
|
{
|
|
591
652
|
"name": "dictionary",
|
|
592
|
-
"description": "Value Type:
|
|
593
|
-
"values": [
|
|
594
|
-
{
|
|
595
|
-
"name": "DictEntry[]"
|
|
596
|
-
}
|
|
597
|
-
]
|
|
653
|
+
"description": "Value Type: Array.<DictEntry>\nDescription: Renders all options using this array"
|
|
598
654
|
},
|
|
599
655
|
{
|
|
600
|
-
"name": "
|
|
601
|
-
"description": "Value Type:
|
|
602
|
-
"values": [
|
|
603
|
-
{
|
|
604
|
-
"name": "vertical"
|
|
605
|
-
},
|
|
606
|
-
{
|
|
607
|
-
"name": "horizontal"
|
|
608
|
-
},
|
|
609
|
-
{
|
|
610
|
-
"name": "auto"
|
|
611
|
-
}
|
|
612
|
-
]
|
|
656
|
+
"name": "required",
|
|
657
|
+
"description": "Value Type: boolean"
|
|
613
658
|
}
|
|
614
659
|
],
|
|
615
|
-
"description": "A control that selects one value from a set of options.\n---\n\n```ts\ninterface PickerViewSignature {\n Attributes: {\n 'picker-style'?:\n | 'menu'\n | 'inline'\n | 'navigation-link'\n | 'sheet'\n | 'automatic'\n
|
|
660
|
+
"description": "A control that selects one value from a set of options.\n---\n\n```ts\ninterface PickerViewSignature {\n Attributes: {\n 'label-value-placement'?: 'vertical' | 'horizontal' | 'auto'\n 'horizontal-radio-group-layout'?: boolean\n prompt?: string\n 'prompt-icon'?: string\n label?: string\n name?: string\n 'picker-style'?:\n | 'menu'\n | 'inline'\n | 'navigation-link'\n | 'sheet'\n | 'automatic'\n selection?: string\n searchable?: boolean\n 'current-value-label'?: string\n 'current-value-icon'?: string\n help?: string // Adds a help tooltip to the trigger of the picker, if style supports one\n dictionary?: Array<DictEntry> // Renders all options using this array\n required?: boolean\n }\n\n Slots: {\n default: HTMLElement[] // The default slot.\n label: HTMLElement[]\n list: HTMLElement[]\n 'validity-options': HTMLOptionElement[]\n }\n}\n\nclass PickerView extends HTMLElement<PickerViewSignature> {\n static formAssociated = true\n\n selection: string\n readonly template: DocumentFragment\n readonly pickerStyle:\n | 'automatic'\n | 'menu'\n | 'inline'\n | 'navigation-link'\n | 'sheet'\n | 'radio-group'\n readonly name: string // Form participation property\n\n setValidity(): void\n setCustomValidity(): void\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'picker-view': PickerView // <picker-view></picker-view>\n }\n}\n\n```\n"
|
|
616
661
|
},
|
|
617
662
|
{
|
|
618
663
|
"name": "plain-button",
|
|
@@ -957,6 +1002,23 @@
|
|
|
957
1002
|
"name": "v-divider",
|
|
958
1003
|
"description": "undefined\n\n```ts\ninterface VDividerSignature {}\n\nclass VDivider extends HTMLElement<VDividerSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'v-divider': VDivider // <v-divider></v-divider>\n }\n}\n\n```\n"
|
|
959
1004
|
},
|
|
1005
|
+
{
|
|
1006
|
+
"name": "v-flex-stack",
|
|
1007
|
+
"references": [
|
|
1008
|
+
{
|
|
1009
|
+
"name": "Documentation",
|
|
1010
|
+
"url": "https://swiftwc.github.io/ui/web-components/v-flex-stack"
|
|
1011
|
+
}
|
|
1012
|
+
],
|
|
1013
|
+
"attributes": [
|
|
1014
|
+
{
|
|
1015
|
+
"name": "template",
|
|
1016
|
+
"description": "\nDescription: The main-axis grid template",
|
|
1017
|
+
"valueSet": "Template"
|
|
1018
|
+
}
|
|
1019
|
+
],
|
|
1020
|
+
"description": "A view that arranges its children one on top of the other.\n---\n\n```ts\ninterface VFlexStackSignature {\n Attributes: {\n template?: Template // The main-axis grid template\n }\n}\n\nclass VFlexStack extends HTMLElement<VFlexStackSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'v-flex-stack': VFlexStack // <v-flex-stack></v-flex-stack>\n }\n}\n\n```\n"
|
|
1021
|
+
},
|
|
960
1022
|
{
|
|
961
1023
|
"name": "v-keyboard",
|
|
962
1024
|
"references": [
|
|
@@ -1070,6 +1132,11 @@
|
|
|
1070
1132
|
"name": "frame:max-width",
|
|
1071
1133
|
"description": "Sets max-inline-size",
|
|
1072
1134
|
"valueSet": "FrameInlineLength"
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
"name": "background-style",
|
|
1138
|
+
"description": "Overrides the context-aware styles for background colors",
|
|
1139
|
+
"valueSet": "BackgroundStyle"
|
|
1073
1140
|
}
|
|
1074
1141
|
],
|
|
1075
1142
|
"valueSets": [
|
|
@@ -2615,6 +2682,15 @@
|
|
|
2615
2682
|
"description": "100cqi"
|
|
2616
2683
|
}
|
|
2617
2684
|
]
|
|
2685
|
+
},
|
|
2686
|
+
{
|
|
2687
|
+
"name": "BackgroundStyle",
|
|
2688
|
+
"values": [
|
|
2689
|
+
{
|
|
2690
|
+
"name": "initial",
|
|
2691
|
+
"description": "Reverts any background styles applied to this element, usually by context-aware rules like for example the inset-grouped-list styling applied to all descendants of current view"
|
|
2692
|
+
}
|
|
2693
|
+
]
|
|
2618
2694
|
}
|
|
2619
2695
|
]
|
|
2620
2696
|
}
|
package/package.json
CHANGED
package/scss/_maps.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
$picker-styles-names: menu, navigation-link, sheet;
|
|
1
|
+
$picker-styles-names: menu, navigation-link, sheet, radio-group;
|
|
2
2
|
$label-styles-names: icon-only, title-only, title-and-icon;
|
|
3
3
|
$list-styles-names: inset, inset-grouped, sidebar;
|
|
4
4
|
$form-styles-names: inset, inset-grouped, sidebar;
|
package/scss/_utils.scss
CHANGED
package/scss/base/_reboot.scss
CHANGED
|
@@ -133,33 +133,6 @@
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
// label {
|
|
137
|
-
// // remove this
|
|
138
|
-
// display: inline-grid;
|
|
139
|
-
// position: relative;
|
|
140
|
-
// // min-height: var(--toolbar-cell-min-size);
|
|
141
|
-
// // min-width: var(--toolbar-cell-min-size);
|
|
142
|
-
// // container-type: inline-size;
|
|
143
|
-
|
|
144
|
-
// grid-template-columns: minmax(0, 1fr);
|
|
145
|
-
// grid-template-rows: minmax(0, 1fr);
|
|
146
|
-
|
|
147
|
-
// place-content: center;
|
|
148
|
-
// place-items: center;
|
|
149
|
-
// // line-height: 1;
|
|
150
|
-
|
|
151
|
-
// > svg {
|
|
152
|
-
// display: inline-grid;
|
|
153
|
-
// width: 2rem;
|
|
154
|
-
// height: 2rem;
|
|
155
|
-
// }
|
|
156
|
-
|
|
157
|
-
// > i {
|
|
158
|
-
// display: inline-grid;
|
|
159
|
-
// font-size: 2rem;
|
|
160
|
-
// }
|
|
161
|
-
// }
|
|
162
|
-
|
|
163
136
|
$CONFIG: (
|
|
164
137
|
vt-fwd-class-name: vars.$vt-fwd-class-name,
|
|
165
138
|
|
package/scss/base/_root.scss
CHANGED
|
@@ -377,8 +377,8 @@
|
|
|
377
377
|
--#{$v}-item-padding-inline-start: 1rem;
|
|
378
378
|
--#{$v}-item-padding-inline-end: 1rem;
|
|
379
379
|
|
|
380
|
-
--insetgrouped#{$v}-background-color: var(--background);
|
|
381
|
-
--insetgrouped#{$v}-item-background-color: var(--quaternaryGroupedBackground);
|
|
380
|
+
// --insetgrouped#{$v}-background-color: var(--background);
|
|
381
|
+
// --insetgrouped#{$v}-item-background-color: var(--quaternaryGroupedBackground);
|
|
382
382
|
}
|
|
383
383
|
|
|
384
384
|
--toggle-inline-size: 3.4rem;
|
package/scss/colors/_index.scss
CHANGED
|
@@ -621,8 +621,7 @@ $colors: map.merge(
|
|
|
621
621
|
// --canvastext: light-dark(var(--primary-label), var(--primary-label-dark));
|
|
622
622
|
// }
|
|
623
623
|
|
|
624
|
-
|
|
625
|
-
/* :where([is='sheet-view'], [is='full-screen'], [is='confirmation-dialog'], [is='alert-dialog']) {
|
|
624
|
+
:where([is='sheet-view'], [is='full-screen'], [is='confirmation-dialog'], [is='alert-dialog']) {
|
|
626
625
|
// modify background/secondarybg/tertiarybg etc for ELEVATED STYLES!!
|
|
627
626
|
// ANCHOR: level 1
|
|
628
627
|
--face: var(--background); // IMPORTANT: redeclare references scope or it WONT pick up!
|
|
@@ -634,7 +633,52 @@ $colors: map.merge(
|
|
|
634
633
|
// --face: light-dark(var(--secondary-bg), var(--secondary-bg-dark));
|
|
635
634
|
|
|
636
635
|
// --text: light-dark(var(--secondary-text), var(--secondary-text-dark));
|
|
637
|
-
}
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
[is='sheet-view'],
|
|
639
|
+
[is='full-screen'],
|
|
640
|
+
[is='confirmation-dialog'],
|
|
641
|
+
[is='alert-dialog'],
|
|
642
|
+
body-view,
|
|
643
|
+
navigation-split-view,
|
|
644
|
+
navigation-split-view > [is='sidebar-view'],
|
|
645
|
+
navigation-stack {
|
|
646
|
+
// @media (pointer: coarse) {
|
|
647
|
+
:where(
|
|
648
|
+
&:has(
|
|
649
|
+
> scroll-view list-view[list-style='inset-grouped']:not([slot], [background]),
|
|
650
|
+
> scroll-view [is='form-view'][form-style='inset-grouped']:not([slot], [background]),
|
|
651
|
+
> scroll-view table-view[table-style='inset']:not([slot], [background])
|
|
652
|
+
)
|
|
653
|
+
) {
|
|
654
|
+
--background: var(--groupedBackground);
|
|
655
|
+
--secondaryBackground: var(--secondaryGroupedBackground);
|
|
656
|
+
--tertiaryBackground: var(--tertiaryGroupedBackground);
|
|
657
|
+
|
|
658
|
+
--face: var(--background);
|
|
659
|
+
}
|
|
660
|
+
// }
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
// revert above!
|
|
664
|
+
navigation-stack > navigation-stack,
|
|
665
|
+
navigation-stack > navigation-split-view {
|
|
666
|
+
:where(
|
|
667
|
+
&:not(
|
|
668
|
+
:has(
|
|
669
|
+
> scroll-view list-view[list-style='inset-grouped']:not([slot], [background]),
|
|
670
|
+
> scroll-view [is='form-view'][form-style='inset-grouped']:not([slot], [background]),
|
|
671
|
+
> scroll-view table-view[table-style='inset']:not([slot], [background])
|
|
672
|
+
)
|
|
673
|
+
)
|
|
674
|
+
) {
|
|
675
|
+
--background: initial;
|
|
676
|
+
--secondaryBackground: initial;
|
|
677
|
+
--tertiaryBackground: initial;
|
|
678
|
+
|
|
679
|
+
--face: var(--background);
|
|
680
|
+
}
|
|
681
|
+
}
|
|
638
682
|
|
|
639
683
|
:where(navigation-split-view > [is='sidebar-view']) {
|
|
640
684
|
// --canvas: light-dark(oklch(var(--primary-bg)), var(--primary-bg-dark));
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
:where(menu-view)::part(menu-scrollable),
|
|
104
104
|
:where(picker-view)::part(picker-stack),
|
|
105
105
|
:where(picker-view)::part(picker-label-stack),
|
|
106
|
-
:where(picker-view)::part(picker-input-stack),
|
|
106
|
+
// :where(picker-view)::part(picker-input-stack),
|
|
107
107
|
:where(tool-bar)::part(top-bar),
|
|
108
108
|
:where(tool-bar)::part(bottom-bar),
|
|
109
109
|
:where(label-view)::part(label-image-stack),
|