@swiftwc/ui 1.0.1-canary.3 → 1.0.1-canary.4
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/content-view.d.ts +2 -0
- package/generated/components/content-view.js +2 -0
- package/generated/components/date-picker.d.ts +2 -0
- package/generated/components/date-picker.js +2 -0
- package/generated/components/detail-placeholder.d.ts +4 -0
- package/generated/components/detail-placeholder.js +4 -0
- package/generated/components/disclosure-group.d.ts +2 -0
- package/generated/components/disclosure-group.js +2 -0
- package/generated/components/form-view.d.ts +2 -0
- package/generated/components/form-view.js +2 -0
- package/generated/components/h-flex-stack.d.ts +2 -0
- package/generated/components/h-flex-stack.js +2 -0
- package/generated/components/h-stack.d.ts +2 -0
- package/generated/components/h-stack.js +2 -0
- package/generated/components/image-view.d.ts +3 -0
- package/generated/components/image-view.js +3 -0
- package/generated/components/list-view.d.ts +2 -0
- package/generated/components/list-view.js +2 -0
- package/generated/components/navigation-large-title.d.ts +1 -0
- package/generated/components/navigation-large-title.js +1 -0
- package/generated/components/navigation-split-view.d.ts +2 -0
- package/generated/components/navigation-split-view.js +2 -0
- package/generated/components/navigation-stack.d.ts +2 -0
- package/generated/components/navigation-stack.js +2 -0
- package/generated/components/scroll-view-proxy.d.ts +2 -0
- package/generated/components/scroll-view-proxy.js +2 -0
- package/generated/components/sheet-view.d.ts +2 -0
- package/generated/components/sheet-view.js +2 -0
- package/generated/components/sidebar-toggle.d.ts +2 -0
- package/generated/components/sidebar-toggle.js +2 -0
- package/generated/components/sidebar-view.d.ts +2 -0
- package/generated/components/sidebar-view.js +2 -0
- package/generated/components/tab-bar.d.ts +2 -0
- package/generated/components/tab-bar.js +2 -0
- package/generated/components/tab-item.d.ts +2 -0
- package/generated/components/tab-item.js +2 -0
- package/generated/components/tab-view.d.ts +2 -0
- package/generated/components/tab-view.js +2 -0
- package/generated/components/tool-bar-item-group.d.ts +2 -0
- package/generated/components/tool-bar-item-group.js +2 -0
- package/generated/components/tool-bar-item.d.ts +2 -0
- package/generated/components/tool-bar-item.js +2 -0
- package/generated/components/v-flex-stack.d.ts +2 -0
- package/generated/components/v-flex-stack.js +2 -0
- package/generated/components/v-stack.d.ts +2 -0
- package/generated/components/v-stack.js +2 -0
- package/generated/css/index.css +5 -1
- package/html-data/en.json +29 -23
- package/package.json +1 -1
- package/scss/components/_text-view.scss +6 -1
|
@@ -3,6 +3,8 @@ declare const datePickerStyles: readonly ["graphical", "field", "automatic"];
|
|
|
3
3
|
export type DatePickerStyle = (typeof datePickerStyles)[number];
|
|
4
4
|
/**
|
|
5
5
|
* @summary A control that selects an absolute date.
|
|
6
|
+
*
|
|
7
|
+
* @slot — The default slot
|
|
6
8
|
*/
|
|
7
9
|
export declare class DatePicker extends FormAssociatedBase {
|
|
8
10
|
#private;
|
|
@@ -8,6 +8,8 @@ import { html } from '../tpl';
|
|
|
8
8
|
const datePickerStyles = ['graphical', 'field', 'automatic'];
|
|
9
9
|
/**
|
|
10
10
|
* @summary A control that selects an absolute date.
|
|
11
|
+
*
|
|
12
|
+
* @slot — The default slot
|
|
11
13
|
*/
|
|
12
14
|
export class DatePicker extends FormAssociatedBase {
|
|
13
15
|
static get observedAttributes() {
|
|
@@ -4,6 +4,8 @@ import { DetailsBase } from '../namespace-browser/base';
|
|
|
4
4
|
*
|
|
5
5
|
* @example <details is="disclosure-group"><summary><label-view title="Items"></label-view></summary><label-view title="Item 1"></label-view><label-view title="Item 2"></label-view><details is="disclosure-group"><summary><label-view title="Sub-items"></label-view></summary><label-view title="Sub-item 1"></label-view></details></details> — Use the `is` attribute to convert a `details` element into a disclosure group
|
|
6
6
|
*
|
|
7
|
+
* @slot — The default slot
|
|
8
|
+
*
|
|
7
9
|
* @fires is-expanded
|
|
8
10
|
* @fires is-collapsed
|
|
9
11
|
*/
|
|
@@ -7,6 +7,8 @@ const toggleTimers = new WeakMap();
|
|
|
7
7
|
*
|
|
8
8
|
* @example <details is="disclosure-group"><summary><label-view title="Items"></label-view></summary><label-view title="Item 1"></label-view><label-view title="Item 2"></label-view><details is="disclosure-group"><summary><label-view title="Sub-items"></label-view></summary><label-view title="Sub-item 1"></label-view></details></details> — Use the `is` attribute to convert a `details` element into a disclosure group
|
|
9
9
|
*
|
|
10
|
+
* @slot — The default slot
|
|
11
|
+
*
|
|
10
12
|
* @fires is-expanded
|
|
11
13
|
* @fires is-collapsed
|
|
12
14
|
*/
|
|
@@ -2,6 +2,8 @@ import { FormBase } from '../namespace-browser/base';
|
|
|
2
2
|
/**
|
|
3
3
|
* @summary A container view that groups controls together for entering data, like a settings screen.
|
|
4
4
|
*
|
|
5
|
+
* @slot — The default slot
|
|
6
|
+
*
|
|
5
7
|
* @attr {hidden} navigation-link-indicator-visibility — Hides accessories like right-arrow-chevron on NavigationLink buttons inside.
|
|
6
8
|
*/
|
|
7
9
|
export declare class FormView extends FormBase {
|
|
@@ -4,6 +4,8 @@ import { FormBase } from '../namespace-browser/base';
|
|
|
4
4
|
/**
|
|
5
5
|
* @summary A container view that groups controls together for entering data, like a settings screen.
|
|
6
6
|
*
|
|
7
|
+
* @slot — The default slot
|
|
8
|
+
*
|
|
7
9
|
* @attr {hidden} navigation-link-indicator-visibility — Hides accessories like right-arrow-chevron on NavigationLink buttons inside.
|
|
8
10
|
*/
|
|
9
11
|
export class FormView extends FormBase {
|
|
@@ -10,6 +10,8 @@ import { debug } from '../internal/utils';
|
|
|
10
10
|
* @attr {@inlineSet} distribution — The main-axis alignment
|
|
11
11
|
* @attr {@inlinePlacementSet} placement — The main-axis alignment
|
|
12
12
|
*
|
|
13
|
+
* @slot — The default slot
|
|
14
|
+
*
|
|
13
15
|
*/
|
|
14
16
|
export class HStack extends HTMLElement {
|
|
15
17
|
constructor() {
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
* @attr {hidden} navigation-link-indicator-visibility — Hides accessories like right-arrow-chevron on NavigationLink buttons inside
|
|
5
5
|
* @attr {sidebar} preferred-root-disclosure-style
|
|
6
6
|
*
|
|
7
|
+
* @slot — The default slot
|
|
8
|
+
*
|
|
7
9
|
* @cssprop {length} --list-row-gap — The gap between rows
|
|
8
10
|
* @cssprop {length} --list--media-inner-padding-inline-start — The inline paddint start for each row
|
|
9
11
|
*/
|
|
@@ -6,6 +6,8 @@ import { debug, listActive, onoff } from '../internal/utils';
|
|
|
6
6
|
* @attr {hidden} navigation-link-indicator-visibility — Hides accessories like right-arrow-chevron on NavigationLink buttons inside
|
|
7
7
|
* @attr {sidebar} preferred-root-disclosure-style
|
|
8
8
|
*
|
|
9
|
+
* @slot — The default slot
|
|
10
|
+
*
|
|
9
11
|
* @cssprop {length} --list-row-gap — The gap between rows
|
|
10
12
|
* @cssprop {length} --list--media-inner-padding-inline-start — The inline paddint start for each row
|
|
11
13
|
*/
|
|
@@ -71,6 +71,7 @@ function isIntersectingWithContainer(el, container, rootMargin = '0px 0px 0px 0p
|
|
|
71
71
|
* @attr {boolean} padding
|
|
72
72
|
* @attr {boolean} navigation-bar-auto-hide
|
|
73
73
|
*
|
|
74
|
+
* @slot — The default slot
|
|
74
75
|
*/
|
|
75
76
|
export class NavigationLargeTitle extends HTMLElement {
|
|
76
77
|
#styleObserver;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { NavigationView } from '../internal/class/navigation-view';
|
|
2
2
|
/**
|
|
3
3
|
* @summary A container view with two or three side-by-side screens, where what the user chooses in the left screen changes what appears in the next screen.
|
|
4
|
+
*
|
|
5
|
+
* @slot — The default slot
|
|
4
6
|
*/
|
|
5
7
|
export declare class NavigationSplitView extends NavigationView {
|
|
6
8
|
constructor();
|
|
@@ -2,6 +2,8 @@ import { NavigationView } from '../internal/class/navigation-view';
|
|
|
2
2
|
import { debug } from '../internal/utils';
|
|
3
3
|
/**
|
|
4
4
|
* @summary A container view with two or three side-by-side screens, where what the user chooses in the left screen changes what appears in the next screen.
|
|
5
|
+
*
|
|
6
|
+
* @slot — The default slot
|
|
5
7
|
*/
|
|
6
8
|
export class NavigationSplitView extends NavigationView {
|
|
7
9
|
constructor() {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { NavigationView } from '../internal/class/navigation-view';
|
|
2
2
|
/**
|
|
3
3
|
* @summary A container view that shows a main screen and lets the user open other screens on top of it.
|
|
4
|
+
*
|
|
5
|
+
* @slot — The default slot
|
|
4
6
|
*/
|
|
5
7
|
export declare class NavigationStack extends NavigationView {
|
|
6
8
|
constructor();
|
|
@@ -2,6 +2,8 @@ import { NavigationView } from '../internal/class/navigation-view';
|
|
|
2
2
|
import { debug } from '../internal/utils';
|
|
3
3
|
/**
|
|
4
4
|
* @summary A container view that shows a main screen and lets the user open other screens on top of it.
|
|
5
|
+
*
|
|
6
|
+
* @slot — The default slot
|
|
5
7
|
*/
|
|
6
8
|
export class NavigationStack extends NavigationView {
|
|
7
9
|
constructor() {
|
|
@@ -3,6 +3,8 @@ import { debug, onoff } from '../internal/utils';
|
|
|
3
3
|
import { DialogBase } from '../namespace-browser/base';
|
|
4
4
|
/**
|
|
5
5
|
* @summary A dialog that slides up over the current screen.
|
|
6
|
+
*
|
|
7
|
+
* @slot — The default slot
|
|
6
8
|
*/
|
|
7
9
|
export class SheetView extends DialogBase {
|
|
8
10
|
constructor() {
|
|
@@ -4,6 +4,8 @@ import { debounce, debug, onoff } from '../internal/utils';
|
|
|
4
4
|
const observers = new ResizeObserverSingleton();
|
|
5
5
|
/**
|
|
6
6
|
* @summary A control that shows or hides the sidebar view.
|
|
7
|
+
*
|
|
8
|
+
* @slot — The default slot
|
|
7
9
|
*/
|
|
8
10
|
export class SidebarToggle extends HTMLElement {
|
|
9
11
|
constructor() {
|
|
@@ -3,6 +3,8 @@ import { debug, onoff, touchGlass } from '../internal/utils';
|
|
|
3
3
|
import { DialogBase } from '../namespace-browser/base';
|
|
4
4
|
/**
|
|
5
5
|
* @summary A container view that arranges navigation destinations in a single column.
|
|
6
|
+
*
|
|
7
|
+
* @slot — The default slot
|
|
6
8
|
*/
|
|
7
9
|
export class SidebarView extends DialogBase {
|
|
8
10
|
constructor() {
|
|
@@ -3,6 +3,8 @@ import { debug, onoff, touchGlass } from '../internal/utils';
|
|
|
3
3
|
import { DialogBase } from '../namespace-browser/base';
|
|
4
4
|
/**
|
|
5
5
|
* @summary A container view that groups tab-items together along the top or bottom of the screen.
|
|
6
|
+
*
|
|
7
|
+
* @slot — The default slot
|
|
6
8
|
*/
|
|
7
9
|
export class TabBar extends DialogBase {
|
|
8
10
|
constructor() {
|
|
@@ -5,6 +5,8 @@ export type TabBarPlacement = (typeof TAB_BAR_PLACEMENTS)[number];
|
|
|
5
5
|
/**
|
|
6
6
|
* @summary A container view that switches between screens using tabs.
|
|
7
7
|
*
|
|
8
|
+
* @slot — The default slot
|
|
9
|
+
*
|
|
8
10
|
* @cssprop --adaptable-tab-bar-placement
|
|
9
11
|
*
|
|
10
12
|
* @fires tabshow — A Tab is shown
|
|
@@ -7,6 +7,8 @@ const TAB_BAR_PLACEMENTS = ['bottom-bar', 'ornament', 'sidebar', 'top-bar'];
|
|
|
7
7
|
/**
|
|
8
8
|
* @summary A container view that switches between screens using tabs.
|
|
9
9
|
*
|
|
10
|
+
* @slot — The default slot
|
|
11
|
+
*
|
|
10
12
|
* @cssprop --adaptable-tab-bar-placement
|
|
11
13
|
*
|
|
12
14
|
* @fires tabshow — A Tab is shown
|
|
@@ -10,6 +10,8 @@ import { adaptiveSlot } from '../internal/decorators';
|
|
|
10
10
|
import { debug } from '../internal/utils';
|
|
11
11
|
/**
|
|
12
12
|
* @summary A container view that groups items together in the toolbar or navigation bar.
|
|
13
|
+
*
|
|
14
|
+
* @slot — The default slot
|
|
13
15
|
*/
|
|
14
16
|
let ToolBarItemGroup = ToolBarItemGroup_1 = class ToolBarItemGroup extends HTMLElement {
|
|
15
17
|
constructor() {
|
|
@@ -11,6 +11,8 @@ import { debug, ensurePlaceholder, onoff, touchGlass } from '../internal/utils';
|
|
|
11
11
|
import { Snapshot } from '../snapshot';
|
|
12
12
|
/**
|
|
13
13
|
* @summary A view placed in the toolbar or navigation bar.
|
|
14
|
+
*
|
|
15
|
+
* @slot — The default slot
|
|
14
16
|
*/
|
|
15
17
|
let ToolBarItem = ToolBarItem_1 = class ToolBarItem extends HTMLElement {
|
|
16
18
|
static get observedAttributes() {
|
|
@@ -13,6 +13,8 @@ import { debug } from '../internal/utils';
|
|
|
13
13
|
* @attr {@blockSet} distribution — The main-axis alignment
|
|
14
14
|
* @attr {@blockPlacementSet} placement — The main-axis alignment
|
|
15
15
|
*
|
|
16
|
+
* @slot — The default slot
|
|
17
|
+
*
|
|
16
18
|
*/
|
|
17
19
|
export class VStack extends HTMLElement {
|
|
18
20
|
constructor() {
|
package/generated/css/index.css
CHANGED
|
@@ -3558,9 +3558,13 @@
|
|
|
3558
3558
|
container: text-view/inline-size;
|
|
3559
3559
|
--text-view--p-margin-block-start: 1rem;
|
|
3560
3560
|
}
|
|
3561
|
-
text-view[prose] p
|
|
3561
|
+
text-view[prose] p,
|
|
3562
|
+
text-view[prose] hr {
|
|
3562
3563
|
margin-block-start: var(--text-view--p-margin-block-start);
|
|
3563
3564
|
}
|
|
3565
|
+
text-view[prose] hr {
|
|
3566
|
+
opacity: 10%;
|
|
3567
|
+
}
|
|
3564
3568
|
:where(text-view[prose] h1) {
|
|
3565
3569
|
font-size: clamp(1rem, var(--text-view--h1-font-size) + 0.5rem, 3rem);
|
|
3566
3570
|
}
|
package/html-data/en.json
CHANGED
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"url": "https://swiftwc.github.io/ui/web-components/content-view"
|
|
140
140
|
}
|
|
141
141
|
],
|
|
142
|
-
"description": "A container view that wraps a scroll view, marking it as a screen your app can navigate to.\n---\n\n```ts\ninterface ContentViewSignature {}\n\nclass ContentView extends HTMLElement<ContentViewSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'content-view': ContentView // <content-view></content-view>\n }\n}\n\n```\n"
|
|
142
|
+
"description": "A container view that wraps a scroll view, marking it as a screen your app can navigate to.\n---\n\n```ts\ninterface ContentViewSignature {\n Slots: {\n default: HTMLElement[] // The default slot\n }\n}\n\nclass ContentView extends HTMLElement<ContentViewSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'content-view': ContentView // <content-view></content-view>\n }\n}\n\n```\n"
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
"name": "date-picker",
|
|
@@ -198,11 +198,17 @@
|
|
|
198
198
|
"name": "maximum"
|
|
199
199
|
}
|
|
200
200
|
],
|
|
201
|
-
"description": "A control that selects an absolute date.\n---\n\n```ts\ninterface DatePickerSignature {\n Attributes: {\n 'date-picker-style'?: 'graphical' | 'field' | 'automatic' // The style of this element\n required?: boolean\n prompt?: string\n label?: string\n name?: string\n selection?: string\n disabled?: boolean\n minimum?: string\n maximum?: string\n }\n}\n\nclass DatePicker extends HTMLElement<DatePickerSignature> {\n static formAssociated = true\n\n readonly template: DocumentFragment\n readonly datePickerStyle: 'graphical' | 'field' | 'automatic'\n readonly name: string // Form participation property\n readonly value: { year: string; month: string; day: string }\n readonly valueAsDate: Date | null // Returns the value as a Date object.\n readonly minimum: { year: string; month: string; day: string } | null\n readonly maximum: { year: string; month: string; day: string } | null\n\n setValidity(): void\n setCustomValidity(): void\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'date-picker': DatePicker // <date-picker></date-picker>\n }\n}\n\n```\n"
|
|
201
|
+
"description": "A control that selects an absolute date.\n---\n\n```ts\ninterface DatePickerSignature {\n Attributes: {\n 'date-picker-style'?: 'graphical' | 'field' | 'automatic' // The style of this element\n required?: boolean\n prompt?: string\n label?: string\n name?: string\n selection?: string\n disabled?: boolean\n minimum?: string\n maximum?: string\n }\n\n Slots: {\n default: HTMLElement[] // The default slot\n }\n}\n\nclass DatePicker extends HTMLElement<DatePickerSignature> {\n static formAssociated = true\n\n readonly template: DocumentFragment\n readonly datePickerStyle: 'graphical' | 'field' | 'automatic'\n readonly name: string // Form participation property\n readonly value: { year: string; month: string; day: string }\n readonly valueAsDate: Date | null // Returns the value as a Date object.\n readonly minimum: { year: string; month: string; day: string } | null\n readonly maximum: { year: string; month: string; day: string } | null\n\n setValidity(): void\n setCustomValidity(): void\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'date-picker': DatePicker // <date-picker></date-picker>\n }\n}\n\n```\n"
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
"name": "detail-placeholder",
|
|
205
|
-
"
|
|
205
|
+
"references": [
|
|
206
|
+
{
|
|
207
|
+
"name": "Documentation",
|
|
208
|
+
"url": "https://swiftwc.github.io/ui/web-components/detail-placeholder"
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"description": "undefined\n\n```ts\ninterface DetailPlaceholderSignature {\n Slots: {\n default: HTMLElement[] // The default slot\n }\n}\n\nclass DetailPlaceholder extends HTMLElement<DetailPlaceholderSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'detail-placeholder': DetailPlaceholder // <detail-placeholder></detail-placeholder>\n }\n}\n\n```\n"
|
|
206
212
|
},
|
|
207
213
|
{
|
|
208
214
|
"name": "disclosure-group",
|
|
@@ -218,7 +224,7 @@
|
|
|
218
224
|
"description": "Value Type: boolean\nDescription: The status of this element"
|
|
219
225
|
}
|
|
220
226
|
],
|
|
221
|
-
"description": "A view that shows or hides another view when the user opens or closes it.\n---\n\n```ts\ninterface DisclosureGroupSignature {\n Attributes: {\n open?: boolean // The status of this element\n }\n}\n\nclass DisclosureGroup extends HTMLDetailsElement<DisclosureGroupSignature> {}\n\ninterface GlobalEventMap<\n Targets = HTMLElementEventMap | DocumentEventMap | WindowEventMap,\n> {\n 'is-expanded': CustomEvent\n 'is-collapsed': CustomEvent\n}\n\ndeclare global {\n interface HTMLDetailsElement {\n is: 'disclosure-group' // <details is=\"disclosure-group\"></details>\n }\n}\n\n```\n\n### **Examples:**\n**Use the `is` attribute to convert a `details` element into a disclosure group:**\n```html\n<details is=\"disclosure-group\">\n <summary><label-view title=\"Items\"></label-view></summary>\n <label-view title=\"Item 1\"></label-view>\n <label-view title=\"Item 2\"></label-view>\n <details is=\"disclosure-group\">\n <summary><label-view title=\"Sub-items\"></label-view></summary>\n <label-view title=\"Sub-item 1\"></label-view>\n </details>\n</details>\n\n```\n"
|
|
227
|
+
"description": "A view that shows or hides another view when the user opens or closes it.\n---\n\n```ts\ninterface DisclosureGroupSignature {\n Attributes: {\n open?: boolean // The status of this element\n }\n\n Slots: {\n default: HTMLElement[] // The default slot\n }\n}\n\nclass DisclosureGroup extends HTMLDetailsElement<DisclosureGroupSignature> {}\n\ninterface GlobalEventMap<\n Targets = HTMLElementEventMap | DocumentEventMap | WindowEventMap,\n> {\n 'is-expanded': CustomEvent\n 'is-collapsed': CustomEvent\n}\n\ndeclare global {\n interface HTMLDetailsElement {\n is: 'disclosure-group' // <details is=\"disclosure-group\"></details>\n }\n}\n\n```\n\n### **Examples:**\n**Use the `is` attribute to convert a `details` element into a disclosure group:**\n```html\n<details is=\"disclosure-group\">\n <summary><label-view title=\"Items\"></label-view></summary>\n <label-view title=\"Item 1\"></label-view>\n <label-view title=\"Item 2\"></label-view>\n <details is=\"disclosure-group\">\n <summary><label-view title=\"Sub-items\"></label-view></summary>\n <label-view title=\"Sub-item 1\"></label-view>\n </details>\n</details>\n\n```\n"
|
|
222
228
|
},
|
|
223
229
|
{
|
|
224
230
|
"name": "fine-tooltip",
|
|
@@ -249,7 +255,7 @@
|
|
|
249
255
|
]
|
|
250
256
|
}
|
|
251
257
|
],
|
|
252
|
-
"description": "A container view that groups controls together for entering data, like a settings screen.\n---\n\n```ts\ninterface FormViewSignature {\n Attributes: {\n 'navigation-link-indicator-visibility'?: 'hidden' // Hides accessories like right-arrow-chevron on NavigationLink buttons inside.\n }\n}\n\nclass FormView extends HTMLFormElement<FormViewSignature> {}\n\ndeclare global {\n interface HTMLFormElement {\n is: 'form-view' // <form is=\"form-view\"></form>\n }\n}\n\n```\n"
|
|
258
|
+
"description": "A container view that groups controls together for entering data, like a settings screen.\n---\n\n```ts\ninterface FormViewSignature {\n Attributes: {\n 'navigation-link-indicator-visibility'?: 'hidden' // Hides accessories like right-arrow-chevron on NavigationLink buttons inside.\n }\n\n Slots: {\n default: HTMLElement[] // The default slot\n }\n}\n\nclass FormView extends HTMLFormElement<FormViewSignature> {}\n\ndeclare global {\n interface HTMLFormElement {\n is: 'form-view' // <form is=\"form-view\"></form>\n }\n}\n\n```\n"
|
|
253
259
|
},
|
|
254
260
|
{
|
|
255
261
|
"name": "glass-button",
|
|
@@ -324,7 +330,7 @@
|
|
|
324
330
|
"valueSet": "Spacing"
|
|
325
331
|
}
|
|
326
332
|
],
|
|
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"
|
|
333
|
+
"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 Slots: {\n default: HTMLElement[] // The default slot\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
334
|
},
|
|
329
335
|
{
|
|
330
336
|
"name": "h-stack",
|
|
@@ -361,7 +367,7 @@
|
|
|
361
367
|
"valueSet": "inlinePlacementSet"
|
|
362
368
|
}
|
|
363
369
|
],
|
|
364
|
-
"description": "A view that arranges its children side by side.\n---\n\n```ts\ninterface HStackSignature {\n Attributes: {\n template?: Template // The main-axis grid template\n spacing?: Spacing // The gap between the primary axis\n alignment?: blockSet // The cross-axis alignment\n distribution?: inlineSet // The main-axis alignment\n placement?: inlinePlacementSet // The main-axis alignment\n }\n}\n\nclass HStack extends HTMLElement<HStackSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'h-stack': HStack // <h-stack></h-stack>\n }\n}\n\n```\n"
|
|
370
|
+
"description": "A view that arranges its children side by side.\n---\n\n```ts\ninterface HStackSignature {\n Attributes: {\n template?: Template // The main-axis grid template\n spacing?: Spacing // The gap between the primary axis\n alignment?: blockSet // The cross-axis alignment\n distribution?: inlineSet // The main-axis alignment\n placement?: inlinePlacementSet // The main-axis alignment\n }\n\n Slots: {\n default: HTMLElement[] // The default slot\n }\n}\n\nclass HStack extends HTMLElement<HStackSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'h-stack': HStack // <h-stack></h-stack>\n }\n}\n\n```\n"
|
|
365
371
|
},
|
|
366
372
|
{
|
|
367
373
|
"name": "image-view",
|
|
@@ -379,7 +385,7 @@
|
|
|
379
385
|
"name": "system-weight"
|
|
380
386
|
}
|
|
381
387
|
],
|
|
382
|
-
"description": "A view that displays an image.\n---\n\n```ts\ninterface ImageViewSignature {\n Attributes: {\n 'system-name'?: string\n 'system-weight'?: string\n }\n}\n\nclass ImageView extends HTMLElement<ImageViewSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'image-view': ImageView // <image-view></image-view>\n }\n}\n\n```\n"
|
|
388
|
+
"description": "A view that displays an image.\n---\n\n```ts\ninterface ImageViewSignature {\n Attributes: {\n 'system-name'?: string\n 'system-weight'?: string\n }\n\n Slots: {\n default: HTMLElement[] // The default slot\n }\n}\n\nclass ImageView extends HTMLElement<ImageViewSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'image-view': ImageView // <image-view></image-view>\n }\n}\n\n```\n"
|
|
383
389
|
},
|
|
384
390
|
{
|
|
385
391
|
"name": "label-view",
|
|
@@ -479,7 +485,7 @@
|
|
|
479
485
|
]
|
|
480
486
|
}
|
|
481
487
|
],
|
|
482
|
-
"description": "A container view that arranges rows of data in a single column, optionally letting the user select one or more of them.\n---\n\n```ts\ninterface ListViewSignature {\n Attributes: {\n 'navigation-link-indicator-visibility'?: 'hidden' // Hides accessories like right-arrow-chevron on NavigationLink buttons inside\n 'preferred-root-disclosure-style'?: 'sidebar'\n }\n\n CSSProperties: {\n '--list-row-gap'?: length // The gap between rows\n '--list--media-inner-padding-inline-start'?: length // The inline paddint start for each row\n }\n}\n\nclass ListView extends HTMLElement<ListViewSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'list-view': ListView // <list-view></list-view>\n }\n}\n\n```\n"
|
|
488
|
+
"description": "A container view that arranges rows of data in a single column, optionally letting the user select one or more of them.\n---\n\n```ts\ninterface ListViewSignature {\n Attributes: {\n 'navigation-link-indicator-visibility'?: 'hidden' // Hides accessories like right-arrow-chevron on NavigationLink buttons inside\n 'preferred-root-disclosure-style'?: 'sidebar'\n }\n\n Slots: {\n default: HTMLElement[] // The default slot\n }\n\n CSSProperties: {\n '--list-row-gap'?: length // The gap between rows\n '--list--media-inner-padding-inline-start'?: length // The inline paddint start for each row\n }\n}\n\nclass ListView extends HTMLElement<ListViewSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'list-view': ListView // <list-view></list-view>\n }\n}\n\n```\n"
|
|
483
489
|
},
|
|
484
490
|
{
|
|
485
491
|
"name": "menu-view",
|
|
@@ -520,7 +526,7 @@
|
|
|
520
526
|
"description": "Value Type: boolean"
|
|
521
527
|
}
|
|
522
528
|
],
|
|
523
|
-
"description": "undefined\n\n```ts\ninterface NavigationLargeTitleSignature {\n Attributes: {\n padding?: boolean\n 'navigation-bar-auto-hide'?: boolean\n }\n}\n\nclass NavigationLargeTitle extends HTMLElement<NavigationLargeTitleSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'navigation-large-title': NavigationLargeTitle // <navigation-large-title></navigation-large-title>\n }\n}\n\n```\n"
|
|
529
|
+
"description": "undefined\n\n```ts\ninterface NavigationLargeTitleSignature {\n Attributes: {\n padding?: boolean\n 'navigation-bar-auto-hide'?: boolean\n }\n\n Slots: {\n default: HTMLElement[] // The default slot\n }\n}\n\nclass NavigationLargeTitle extends HTMLElement<NavigationLargeTitleSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'navigation-large-title': NavigationLargeTitle // <navigation-large-title></navigation-large-title>\n }\n}\n\n```\n"
|
|
524
530
|
},
|
|
525
531
|
{
|
|
526
532
|
"name": "navigation-split-view",
|
|
@@ -530,7 +536,7 @@
|
|
|
530
536
|
"url": "https://swiftwc.github.io/ui/web-components/navigation-split-view"
|
|
531
537
|
}
|
|
532
538
|
],
|
|
533
|
-
"description": "A container view with two or three side-by-side screens, where what the user chooses in the left screen changes what appears in the next screen.\n---\n\n```ts\ninterface NavigationSplitViewSignature {}\n\nclass NavigationSplitView extends HTMLElement<NavigationSplitViewSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'navigation-split-view': NavigationSplitView // <navigation-split-view></navigation-split-view>\n }\n}\n\n```\n"
|
|
539
|
+
"description": "A container view with two or three side-by-side screens, where what the user chooses in the left screen changes what appears in the next screen.\n---\n\n```ts\ninterface NavigationSplitViewSignature {\n Slots: {\n default: HTMLElement[] // The default slot\n }\n}\n\nclass NavigationSplitView extends HTMLElement<NavigationSplitViewSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'navigation-split-view': NavigationSplitView // <navigation-split-view></navigation-split-view>\n }\n}\n\n```\n"
|
|
534
540
|
},
|
|
535
541
|
{
|
|
536
542
|
"name": "navigation-stack",
|
|
@@ -540,7 +546,7 @@
|
|
|
540
546
|
"url": "https://swiftwc.github.io/ui/web-components/navigation-stack"
|
|
541
547
|
}
|
|
542
548
|
],
|
|
543
|
-
"description": "A container view that shows a main screen and lets the user open other screens on top of it.\n---\n\n```ts\ninterface NavigationStackSignature {}\n\nclass NavigationStack extends HTMLElement<NavigationStackSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'navigation-stack': NavigationStack // <navigation-stack></navigation-stack>\n }\n}\n\n```\n"
|
|
549
|
+
"description": "A container view that shows a main screen and lets the user open other screens on top of it.\n---\n\n```ts\ninterface NavigationStackSignature {\n Slots: {\n default: HTMLElement[] // The default slot\n }\n}\n\nclass NavigationStack extends HTMLElement<NavigationStackSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'navigation-stack': NavigationStack // <navigation-stack></navigation-stack>\n }\n}\n\n```\n"
|
|
544
550
|
},
|
|
545
551
|
{
|
|
546
552
|
"name": "navigation-title",
|
|
@@ -696,7 +702,7 @@
|
|
|
696
702
|
"url": "https://swiftwc.github.io/ui/web-components/scroll-view-proxy"
|
|
697
703
|
}
|
|
698
704
|
],
|
|
699
|
-
"description": "A wrapper for {hv}-stacks\n---\n\n```ts\ninterface ScrollViewProxySignature {}\n\nclass ScrollViewProxy extends HTMLElement<ScrollViewProxySignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'scroll-view-proxy': ScrollViewProxy // <scroll-view-proxy></scroll-view-proxy>\n }\n}\n\n```\n"
|
|
705
|
+
"description": "A wrapper for {hv}-stacks\n---\n\n```ts\ninterface ScrollViewProxySignature {\n Slots: {\n default: HTMLElement[] // The default slot\n }\n}\n\nclass ScrollViewProxy extends HTMLElement<ScrollViewProxySignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'scroll-view-proxy': ScrollViewProxy // <scroll-view-proxy></scroll-view-proxy>\n }\n}\n\n```\n"
|
|
700
706
|
},
|
|
701
707
|
{
|
|
702
708
|
"name": "scroll-view",
|
|
@@ -756,7 +762,7 @@
|
|
|
756
762
|
"url": "https://swiftwc.github.io/ui/web-components/sheet-view"
|
|
757
763
|
}
|
|
758
764
|
],
|
|
759
|
-
"description": "A dialog that slides up over the current screen.\n---\n\n```ts\ninterface SheetViewSignature {}\n\nclass SheetView extends HTMLDialogElement<SheetViewSignature> {}\n\ndeclare global {\n interface HTMLDialogElement {\n is: 'sheet-view' // <dialog is=\"sheet-view\"></dialog>\n }\n}\n\n```\n"
|
|
765
|
+
"description": "A dialog that slides up over the current screen.\n---\n\n```ts\ninterface SheetViewSignature {\n Slots: {\n default: HTMLElement[] // The default slot\n }\n}\n\nclass SheetView extends HTMLDialogElement<SheetViewSignature> {}\n\ndeclare global {\n interface HTMLDialogElement {\n is: 'sheet-view' // <dialog is=\"sheet-view\"></dialog>\n }\n}\n\n```\n"
|
|
760
766
|
},
|
|
761
767
|
{
|
|
762
768
|
"name": "sidebar-toggle",
|
|
@@ -766,7 +772,7 @@
|
|
|
766
772
|
"url": "https://swiftwc.github.io/ui/web-components/sidebar-toggle"
|
|
767
773
|
}
|
|
768
774
|
],
|
|
769
|
-
"description": "A control that shows or hides the sidebar view.\n---\n\n```ts\ninterface SidebarToggleSignature {}\n\nclass SidebarToggle extends HTMLElement<SidebarToggleSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sidebar-toggle': SidebarToggle // <sidebar-toggle></sidebar-toggle>\n }\n}\n\n```\n"
|
|
775
|
+
"description": "A control that shows or hides the sidebar view.\n---\n\n```ts\ninterface SidebarToggleSignature {\n Slots: {\n default: HTMLElement[] // The default slot\n }\n}\n\nclass SidebarToggle extends HTMLElement<SidebarToggleSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sidebar-toggle': SidebarToggle // <sidebar-toggle></sidebar-toggle>\n }\n}\n\n```\n"
|
|
770
776
|
},
|
|
771
777
|
{
|
|
772
778
|
"name": "sidebar-view",
|
|
@@ -776,7 +782,7 @@
|
|
|
776
782
|
"url": "https://swiftwc.github.io/ui/web-components/sidebar-view"
|
|
777
783
|
}
|
|
778
784
|
],
|
|
779
|
-
"description": "A container view that arranges navigation destinations in a single column.\n---\n\n```ts\ninterface SidebarViewSignature {}\n\nclass SidebarView extends HTMLDialogElement<SidebarViewSignature> {}\n\ndeclare global {\n interface HTMLDialogElement {\n is: 'sidebar-view' // <dialog is=\"sidebar-view\"></dialog>\n }\n}\n\n```\n"
|
|
785
|
+
"description": "A container view that arranges navigation destinations in a single column.\n---\n\n```ts\ninterface SidebarViewSignature {\n Slots: {\n default: HTMLElement[] // The default slot\n }\n}\n\nclass SidebarView extends HTMLDialogElement<SidebarViewSignature> {}\n\ndeclare global {\n interface HTMLDialogElement {\n is: 'sidebar-view' // <dialog is=\"sidebar-view\"></dialog>\n }\n}\n\n```\n"
|
|
780
786
|
},
|
|
781
787
|
{
|
|
782
788
|
"name": "sticky-container",
|
|
@@ -790,7 +796,7 @@
|
|
|
790
796
|
"url": "https://swiftwc.github.io/ui/web-components/tab-bar"
|
|
791
797
|
}
|
|
792
798
|
],
|
|
793
|
-
"description": "A container view that groups tab-items together along the top or bottom of the screen.\n---\n\n```ts\ninterface TabBarSignature {}\n\nclass TabBar extends HTMLDialogElement<TabBarSignature> {}\n\ndeclare global {\n interface HTMLDialogElement {\n is: 'tab-bar' // <dialog is=\"tab-bar\"></dialog>\n }\n}\n\n```\n"
|
|
799
|
+
"description": "A container view that groups tab-items together along the top or bottom of the screen.\n---\n\n```ts\ninterface TabBarSignature {\n Slots: {\n default: HTMLElement[] // The default slot\n }\n}\n\nclass TabBar extends HTMLDialogElement<TabBarSignature> {}\n\ndeclare global {\n interface HTMLDialogElement {\n is: 'tab-bar' // <dialog is=\"tab-bar\"></dialog>\n }\n}\n\n```\n"
|
|
794
800
|
},
|
|
795
801
|
{
|
|
796
802
|
"name": "tab-item",
|
|
@@ -800,7 +806,7 @@
|
|
|
800
806
|
"url": "https://swiftwc.github.io/ui/web-components/tab-item"
|
|
801
807
|
}
|
|
802
808
|
],
|
|
803
|
-
"description": "A control that switches the tab view to this tab.\n---\n\n```ts\ninterface TabItemSignature {}\n\nclass TabItem extends HTMLButtonElement<TabItemSignature> {}\n\ndeclare global {\n interface HTMLButtonElement {\n is: 'tab-item' // <button is=\"tab-item\"></button>\n }\n}\n\n```\n"
|
|
809
|
+
"description": "A control that switches the tab view to this tab.\n---\n\n```ts\ninterface TabItemSignature {\n Slots: {\n default: HTMLElement[] // The default slot\n }\n}\n\nclass TabItem extends HTMLButtonElement<TabItemSignature> {}\n\ndeclare global {\n interface HTMLButtonElement {\n is: 'tab-item' // <button is=\"tab-item\"></button>\n }\n}\n\n```\n"
|
|
804
810
|
},
|
|
805
811
|
{
|
|
806
812
|
"name": "tab-view",
|
|
@@ -810,7 +816,7 @@
|
|
|
810
816
|
"url": "https://swiftwc.github.io/ui/web-components/tab-view"
|
|
811
817
|
}
|
|
812
818
|
],
|
|
813
|
-
"description": "A container view that switches between screens using tabs.\n---\n\n```ts\ninterface TabViewSignature {\n CSSProperties: {\n '--adaptable-tab-bar-placement'?: string\n }\n}\n\nclass TabView extends HTMLElement<TabViewSignature> {\n readonly tabBarPlacement:\n | 'bottom-bar'\n | 'ornament'\n | 'sidebar'\n | 'top-bar'\n | undefined\n readonly moreTab: NavigationStack | null\n selectedTab: (NavigationSplitView | NavigationStack)[]\n}\n\ninterface GlobalEventMap<\n Targets = HTMLElementEventMap | DocumentEventMap | WindowEventMap,\n> {\n tabshow: CustomEvent // A Tab is shown\n tabhide: CustomEvent // A Tab is hidden\n 'tab-view:toggle': CustomEvent\n 'tab-view:adaptable-tab-bar-placement-change': CustomEvent\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'tab-view': TabView // <tab-view></tab-view>\n }\n}\n\n```\n"
|
|
819
|
+
"description": "A container view that switches between screens using tabs.\n---\n\n```ts\ninterface TabViewSignature {\n Slots: {\n default: HTMLElement[] // The default slot\n }\n\n CSSProperties: {\n '--adaptable-tab-bar-placement'?: string\n }\n}\n\nclass TabView extends HTMLElement<TabViewSignature> {\n readonly tabBarPlacement:\n | 'bottom-bar'\n | 'ornament'\n | 'sidebar'\n | 'top-bar'\n | undefined\n readonly moreTab: NavigationStack | null\n selectedTab: (NavigationSplitView | NavigationStack)[]\n}\n\ninterface GlobalEventMap<\n Targets = HTMLElementEventMap | DocumentEventMap | WindowEventMap,\n> {\n tabshow: CustomEvent // A Tab is shown\n tabhide: CustomEvent // A Tab is hidden\n 'tab-view:toggle': CustomEvent\n 'tab-view:adaptable-tab-bar-placement-change': CustomEvent\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'tab-view': TabView // <tab-view></tab-view>\n }\n}\n\n```\n"
|
|
814
820
|
},
|
|
815
821
|
{
|
|
816
822
|
"name": "table-view",
|
|
@@ -965,7 +971,7 @@
|
|
|
965
971
|
"url": "https://swiftwc.github.io/ui/web-components/tool-bar-item-group"
|
|
966
972
|
}
|
|
967
973
|
],
|
|
968
|
-
"description": "A container view that groups items together in the toolbar or navigation bar.\n---\n\n```ts\ninterface ToolBarItemGroupSignature {}\n\nclass ToolBarItemGroup extends HTMLElement<ToolBarItemGroupSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'tool-bar-item-group': ToolBarItemGroup // <tool-bar-item-group></tool-bar-item-group>\n }\n}\n\n```\n"
|
|
974
|
+
"description": "A container view that groups items together in the toolbar or navigation bar.\n---\n\n```ts\ninterface ToolBarItemGroupSignature {\n Slots: {\n default: HTMLElement[] // The default slot\n }\n}\n\nclass ToolBarItemGroup extends HTMLElement<ToolBarItemGroupSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'tool-bar-item-group': ToolBarItemGroup // <tool-bar-item-group></tool-bar-item-group>\n }\n}\n\n```\n"
|
|
969
975
|
},
|
|
970
976
|
{
|
|
971
977
|
"name": "tool-bar-item",
|
|
@@ -986,7 +992,7 @@
|
|
|
986
992
|
"name": "title-key"
|
|
987
993
|
}
|
|
988
994
|
],
|
|
989
|
-
"description": "A view placed in the toolbar or navigation bar.\n---\n\n```ts\ninterface ToolBarItemSignature {\n Attributes: {\n slot?: string\n 'data-previous-slot'?: string\n 'title-key'?: string\n }\n}\n\nclass ToolBarItem extends HTMLElement<ToolBarItemSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'tool-bar-item': ToolBarItem // <tool-bar-item></tool-bar-item>\n }\n}\n\n```\n"
|
|
995
|
+
"description": "A view placed in the toolbar or navigation bar.\n---\n\n```ts\ninterface ToolBarItemSignature {\n Attributes: {\n slot?: string\n 'data-previous-slot'?: string\n 'title-key'?: string\n }\n\n Slots: {\n default: HTMLElement[] // The default slot\n }\n}\n\nclass ToolBarItem extends HTMLElement<ToolBarItemSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'tool-bar-item': ToolBarItem // <tool-bar-item></tool-bar-item>\n }\n}\n\n```\n"
|
|
990
996
|
},
|
|
991
997
|
{
|
|
992
998
|
"name": "tool-bar",
|
|
@@ -1017,7 +1023,7 @@
|
|
|
1017
1023
|
"valueSet": "Template"
|
|
1018
1024
|
}
|
|
1019
1025
|
],
|
|
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"
|
|
1026
|
+
"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 Slots: {\n default: HTMLElement[] // The default slot\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
1027
|
},
|
|
1022
1028
|
{
|
|
1023
1029
|
"name": "v-keyboard",
|
|
@@ -1104,7 +1110,7 @@
|
|
|
1104
1110
|
"valueSet": "blockPlacementSet"
|
|
1105
1111
|
}
|
|
1106
1112
|
],
|
|
1107
|
-
"description": "A view that arranges its children one on top of the other.\n---\n\n```ts\ninterface VStackSignature {\n Attributes: {\n readable?: FrameInlineLength // Shortcut for `placement=\"leading fill\" frame:alignment=\"center\" frame:width=\"infinity\" frame:max-width=\"{length}\"`\n distribution?:\n | 'leading'\n | 'leading fill'\n | 'center'\n | 'trailing'\n | 'fill'\n | 'space-between' // The distribution of cols\n template?: Template // The main-axis grid template\n spacing?: Spacing // The gap between the primary axis\n alignment?: inlineSet // The cross-axis alignment\n distribution?: blockSet // The main-axis alignment\n placement?: blockPlacementSet // The main-axis alignment\n }\n}\n\nclass VStack extends HTMLElement<VStackSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'v-stack': VStack // <v-stack></v-stack>\n }\n}\n\n```\n"
|
|
1113
|
+
"description": "A view that arranges its children one on top of the other.\n---\n\n```ts\ninterface VStackSignature {\n Attributes: {\n readable?: FrameInlineLength // Shortcut for `placement=\"leading fill\" frame:alignment=\"center\" frame:width=\"infinity\" frame:max-width=\"{length}\"`\n distribution?:\n | 'leading'\n | 'leading fill'\n | 'center'\n | 'trailing'\n | 'fill'\n | 'space-between' // The distribution of cols\n template?: Template // The main-axis grid template\n spacing?: Spacing // The gap between the primary axis\n alignment?: inlineSet // The cross-axis alignment\n distribution?: blockSet // The main-axis alignment\n placement?: blockPlacementSet // The main-axis alignment\n }\n\n Slots: {\n default: HTMLElement[] // The default slot\n }\n}\n\nclass VStack extends HTMLElement<VStackSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'v-stack': VStack // <v-stack></v-stack>\n }\n}\n\n```\n"
|
|
1108
1114
|
}
|
|
1109
1115
|
],
|
|
1110
1116
|
"globalAttributes": [
|
package/package.json
CHANGED
|
@@ -20,10 +20,15 @@
|
|
|
20
20
|
--text-view--p-margin-block-start: 1rem;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
p
|
|
23
|
+
p,
|
|
24
|
+
hr {
|
|
24
25
|
margin-block-start: var(--text-view--p-margin-block-start);
|
|
25
26
|
}
|
|
26
27
|
|
|
28
|
+
hr {
|
|
29
|
+
opacity: 10%;
|
|
30
|
+
}
|
|
31
|
+
|
|
27
32
|
// @container text-view (width <= 576px) {
|
|
28
33
|
// :where(&) {
|
|
29
34
|
// --text-view--base-font-size: 1.3cqi;
|