@swiftwc/ui 0.0.0-dev.91 → 0.0.0-dev.93
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/alert-dialog.d.ts +1 -2
- package/generated/components/alert-dialog.js +1 -2
- package/generated/components/body-view.d.ts +3 -0
- package/generated/components/body-view.js +3 -0
- package/generated/components/bordered-button.d.ts +2 -2
- package/generated/components/bordered-button.js +2 -2
- package/generated/components/bordered-prominent-button.d.ts +2 -2
- package/generated/components/bordered-prominent-button.js +2 -2
- package/generated/components/borderless-button.d.ts +2 -2
- package/generated/components/borderless-button.js +2 -2
- package/generated/components/content-unavailable.d.ts +25 -0
- package/generated/components/{content-unavailable-view.js → content-unavailable.js} +9 -8
- package/generated/components/date-picker.d.ts +9 -1
- package/generated/components/date-picker.js +11 -4
- package/generated/components/form-view.d.ts +1 -1
- package/generated/components/form-view.js +1 -1
- package/generated/components/glass-button.d.ts +2 -2
- package/generated/components/glass-button.js +2 -2
- package/generated/components/glass-prominent-button.d.ts +2 -2
- package/generated/components/glass-prominent-button.js +2 -2
- package/generated/components/h-stack.d.ts +6 -6
- package/generated/components/h-stack.js +6 -6
- package/generated/components/index.d.ts +1 -1
- package/generated/components/index.js +1 -1
- package/generated/components/label-view.d.ts +6 -2
- package/generated/components/label-view.js +8 -4
- package/generated/components/labeled-content.js +3 -3
- package/generated/components/list-view.d.ts +1 -1
- package/generated/components/list-view.js +1 -13
- package/generated/components/menu-view.d.ts +2 -1
- package/generated/components/menu-view.js +3 -8
- package/generated/components/navigation-stack.js +0 -2
- package/generated/components/navigation-title.js +0 -9
- package/generated/components/picker-view.d.ts +8 -2
- package/generated/components/picker-view.js +14 -9
- package/generated/components/progress-view.d.ts +1 -0
- package/generated/components/progress-view.js +2 -1
- package/generated/components/scroll-view.d.ts +1 -0
- package/generated/components/scroll-view.js +11 -2
- package/generated/components/search-view.js +0 -3
- package/generated/components/section-view.d.ts +2 -1
- package/generated/components/section-view.js +4 -48
- package/generated/components/sheet-view.js +0 -20
- package/generated/components/sidebar-view.js +1 -1
- package/generated/components/tab-bar.js +0 -3
- package/generated/components/tab-view.d.ts +5 -2
- package/generated/components/tab-view.js +5 -72
- package/generated/components/table-view.d.ts +2 -1
- package/generated/components/table-view.js +4 -3
- package/generated/components/text-field.d.ts +6 -0
- package/generated/components/text-field.js +7 -2
- package/generated/components/toggle-view.d.ts +6 -0
- package/generated/components/toggle-view.js +7 -2
- package/generated/components/tool-bar.d.ts +10 -10
- package/generated/components/tool-bar.js +10 -10
- package/generated/components/v-keyboard.d.ts +1 -1
- package/generated/components/v-keyboard.js +1 -1
- package/generated/components/v-stack.d.ts +7 -7
- package/generated/components/v-stack.js +7 -7
- package/generated/css/index.css +24 -17
- package/generated/events/scroll-view.js +0 -4
- package/generated/events/text-field.js +0 -3
- package/generated/events/toggle-view.js +0 -3
- package/generated/internal/utils/ensure-placeholder.js +0 -55
- package/package.json +3 -2
- package/scss/_components.scss +1 -1
- package/scss/components/{_content-unavailable-view.scss → _content-unavailable.scss} +1 -1
- package/scss/components/_index.scss +5 -4
- package/scss/components/_labeled-content.scss +8 -0
- package/scss/components/_navigation-title.scss +1 -1
- package/scss/components/_toggle-view.scss +1 -1
- package/web-components.html-data/en.json +340 -91
- package/generated/components/content-unavailable-view.d.ts +0 -24
|
@@ -5,16 +5,16 @@ const observers = new ResizeObserverSingleton();
|
|
|
5
5
|
/**
|
|
6
6
|
* @summary Populates the toolbar or navigation bar with the specified items.
|
|
7
7
|
*
|
|
8
|
-
* @slot cancellation-action
|
|
9
|
-
* @slot primary-action
|
|
10
|
-
* @slot confirmation-action
|
|
11
|
-
* @slot destructive-action
|
|
12
|
-
* @slot top-bar-leading
|
|
13
|
-
* @slot top-bar-principal
|
|
14
|
-
* @slot top-bar-trailing
|
|
15
|
-
* @slot bottom-bar-leading
|
|
16
|
-
* @slot bottom-bar-principal
|
|
17
|
-
* @slot bottom-bar-trailing
|
|
8
|
+
* @slot cancellation-action — The item represents a cancellation action for a modal interface. Places the item in the leading edge of the top bar and on the trailing edge of the bottom bar when fine modal
|
|
9
|
+
* @slot primary-action — The item represents a primary action. Places the item in the trailing edge of the top bar and on the trailing edge of the bottom bar when fine modal
|
|
10
|
+
* @slot confirmation-action — The item represents a confirmation action for a modal interface. Places the item in the trailing edge of the top bar and on the trailing edge of the bottom bar when fine modal
|
|
11
|
+
* @slot destructive-action — The item represents a destructive action for a modal interface. Places the item in the leading edge of the top bar and on the leading edge of the bottom bar when fine modal
|
|
12
|
+
* @slot top-bar-leading — Places the item in the leading edge of the top bar
|
|
13
|
+
* @slot top-bar-principal — Places the item in the middle of the top bar
|
|
14
|
+
* @slot top-bar-trailing — Places the item in the trailing edge of the top bar
|
|
15
|
+
* @slot bottom-bar-leading — Places the item in the leading edge of the bottom bar
|
|
16
|
+
* @slot bottom-bar-principal — Places the item in the middle of the bottom bar
|
|
17
|
+
* @slot bottom-bar-trailing — Places the item in the trailing edge of the bottom bar
|
|
18
18
|
*/
|
|
19
19
|
export class ToolBar extends HTMLElement {
|
|
20
20
|
static #template;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @summary Required component, used to handle the virtual keyboard on touch devices.
|
|
6
6
|
*
|
|
7
|
-
* @attr {Inter} system-font
|
|
7
|
+
* @attr {Inter} system-font — Prefers the "Inter" font family, if loaded.
|
|
8
8
|
*/
|
|
9
9
|
export declare class VKeyboard extends HTMLElement {
|
|
10
10
|
#private;
|
|
@@ -8,7 +8,7 @@ import { Snapshot } from '../snapshot';
|
|
|
8
8
|
*
|
|
9
9
|
* @summary Required component, used to handle the virtual keyboard on touch devices.
|
|
10
10
|
*
|
|
11
|
-
* @attr {Inter} system-font
|
|
11
|
+
* @attr {Inter} system-font — Prefers the "Inter" font family, if loaded.
|
|
12
12
|
*/
|
|
13
13
|
export class VKeyboard extends HTMLElement {
|
|
14
14
|
/**
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @summary A view that arranges its
|
|
2
|
+
* @summary A view that arranges its children one on top of the other.
|
|
3
3
|
*
|
|
4
|
-
* @attr {leading|"leading fill"|center|trailing|fill|space-between} distribution
|
|
4
|
+
* @attr {leading|"leading fill"|center|trailing|fill|space-between} distribution — The distribution of cols
|
|
5
5
|
*
|
|
6
|
-
* @attr {@templateSet} template
|
|
6
|
+
* @attr {@templateSet} template — The main-axis grid template
|
|
7
7
|
*
|
|
8
|
-
* @attr {@spacingSet} spacing
|
|
8
|
+
* @attr {@spacingSet} spacing — The gap between the primary axis
|
|
9
9
|
*
|
|
10
|
-
* @attr {@inlineSet} alignment
|
|
11
|
-
* @attr {@blockSet} distribution
|
|
12
|
-
* @attr {@blockPlacementSet} placement
|
|
10
|
+
* @attr {@inlineSet} alignment — The cross-axis alignment
|
|
11
|
+
* @attr {@blockSet} distribution — The main-axis alignment
|
|
12
|
+
* @attr {@blockPlacementSet} placement — The main-axis alignment
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
15
|
export declare class VStack extends HTMLElement {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { devFlags } from '../internal/utils';
|
|
2
2
|
/**
|
|
3
|
-
* @summary A view that arranges its
|
|
3
|
+
* @summary A view that arranges its children one on top of the other.
|
|
4
4
|
*
|
|
5
|
-
* @attr {leading|"leading fill"|center|trailing|fill|space-between} distribution
|
|
5
|
+
* @attr {leading|"leading fill"|center|trailing|fill|space-between} distribution — The distribution of cols
|
|
6
6
|
*
|
|
7
|
-
* @attr {@templateSet} template
|
|
7
|
+
* @attr {@templateSet} template — The main-axis grid template
|
|
8
8
|
*
|
|
9
|
-
* @attr {@spacingSet} spacing
|
|
9
|
+
* @attr {@spacingSet} spacing — The gap between the primary axis
|
|
10
10
|
*
|
|
11
|
-
* @attr {@inlineSet} alignment
|
|
12
|
-
* @attr {@blockSet} distribution
|
|
13
|
-
* @attr {@blockPlacementSet} placement
|
|
11
|
+
* @attr {@inlineSet} alignment — The cross-axis alignment
|
|
12
|
+
* @attr {@blockSet} distribution — The main-axis alignment
|
|
13
|
+
* @attr {@blockPlacementSet} placement — The main-axis alignment
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
16
|
export class VStack extends HTMLElement {
|
package/generated/css/index.css
CHANGED
|
@@ -1070,6 +1070,7 @@
|
|
|
1070
1070
|
:where(navigation-stack:not([hidden]),
|
|
1071
1071
|
navigation-split-view:not([hidden]),
|
|
1072
1072
|
navigation-large-title:not([hidden]),
|
|
1073
|
+
navigation-title:not([hidden]),
|
|
1073
1074
|
scroll-view:not([hidden]),
|
|
1074
1075
|
body-view:not([hidden]),
|
|
1075
1076
|
tab-view:not([hidden]),
|
|
@@ -1093,7 +1094,7 @@
|
|
|
1093
1094
|
[is=glass-prominent-button]:not([hidden]),
|
|
1094
1095
|
list-view:not([hidden]),
|
|
1095
1096
|
table-view:not([hidden]),
|
|
1096
|
-
content-unavailable
|
|
1097
|
+
content-unavailable:not([hidden]),
|
|
1097
1098
|
progress-view:not([hidden]),
|
|
1098
1099
|
tool-bar-item:not([hidden]),
|
|
1099
1100
|
tool-bar-item-group:not([hidden]),
|
|
@@ -1119,9 +1120,9 @@
|
|
|
1119
1120
|
:where(labeled-content)::part(labeled-content-label-stack),
|
|
1120
1121
|
:where(labeled-content)::part(labeled-content-value-stack),
|
|
1121
1122
|
:where(progress-view)::part(progress-control),
|
|
1122
|
-
:where(content-unavailable
|
|
1123
|
-
:where(content-unavailable
|
|
1124
|
-
:where(content-unavailable
|
|
1123
|
+
:where(content-unavailable)::part(content-unavailable-title-stack),
|
|
1124
|
+
:where(content-unavailable)::part(content-unavailable-description-stack),
|
|
1125
|
+
:where(content-unavailable)::part(content-unavailable-actions-stack),
|
|
1125
1126
|
:where(table-view)::part(table-container),
|
|
1126
1127
|
:where(table-view)::part(table-column-stack),
|
|
1127
1128
|
:where(table-view)::part(table-header-stack),
|
|
@@ -1745,7 +1746,7 @@
|
|
|
1745
1746
|
}
|
|
1746
1747
|
}
|
|
1747
1748
|
@layer sw-components {
|
|
1748
|
-
:where(content-unavailable
|
|
1749
|
+
:where(content-unavailable) {
|
|
1749
1750
|
place-content: center;
|
|
1750
1751
|
place-items: center;
|
|
1751
1752
|
text-align: center;
|
|
@@ -1753,24 +1754,24 @@
|
|
|
1753
1754
|
padding-inline: 1rem;
|
|
1754
1755
|
padding-block: 1rem;
|
|
1755
1756
|
}
|
|
1756
|
-
:where(content-unavailable
|
|
1757
|
+
:where(content-unavailable)::part(content-unavailable-actions-stack), :where(content-unavailable)::part(content-unavailable-title-stack), :where(content-unavailable)::part(content-unavailable-description-stack) {
|
|
1757
1758
|
max-inline-size: 20rem;
|
|
1758
1759
|
}
|
|
1759
|
-
:where(content-unavailable
|
|
1760
|
+
:where(content-unavailable)::part(content-unavailable-actions-stack) {
|
|
1760
1761
|
row-gap: 0.2rem;
|
|
1761
1762
|
}
|
|
1762
|
-
:where(content-unavailable
|
|
1763
|
+
:where(content-unavailable)::part(content-unavailable-title-stack) {
|
|
1763
1764
|
--label-flow: vertical;
|
|
1764
1765
|
--label-font: title3;
|
|
1765
1766
|
}
|
|
1766
|
-
:where(content-unavailable
|
|
1767
|
+
:where(content-unavailable > :not([slot])) {
|
|
1767
1768
|
--label-image-size: 5;
|
|
1768
1769
|
--label-gap: 1;
|
|
1769
1770
|
}
|
|
1770
|
-
:where(content-unavailable
|
|
1771
|
+
:where(content-unavailable:not(:has(> [slot=description])))::part(content-unavailable-description-stack) {
|
|
1771
1772
|
display: none;
|
|
1772
1773
|
}
|
|
1773
|
-
:where(content-unavailable
|
|
1774
|
+
:where(content-unavailable:not(:has(> [slot=actions])))::part(content-unavailable-actions-stack) {
|
|
1774
1775
|
display: none;
|
|
1775
1776
|
}
|
|
1776
1777
|
}
|
|
@@ -3395,7 +3396,7 @@
|
|
|
3395
3396
|
--toggle--trigger-bg: lightgray;
|
|
3396
3397
|
}
|
|
3397
3398
|
:where(toggle-view)::part(toggle-stack) {
|
|
3398
|
-
grid-template-columns:
|
|
3399
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
3399
3400
|
grid-template-rows: minmax(0, 1fr);
|
|
3400
3401
|
column-gap: var(--labeled-content-column-gap);
|
|
3401
3402
|
}
|
|
@@ -3490,6 +3491,16 @@
|
|
|
3490
3491
|
labeled-content > [slot=header],
|
|
3491
3492
|
labeled-content > [slot=footer]) {
|
|
3492
3493
|
color: var(--secondary);
|
|
3494
|
+
--label-font: callout;
|
|
3495
|
+
}
|
|
3496
|
+
@supports not (x: if(else:red)) {
|
|
3497
|
+
:where(labeled-content > :nth-child(n+2 of [slot=label]),
|
|
3498
|
+
labeled-content > [slot=header],
|
|
3499
|
+
labeled-content > [slot=footer]) {
|
|
3500
|
+
--label--titlestack-font-size: var(--label-callout-font-size);
|
|
3501
|
+
--label--titlestack-line-height: var(--label-callout-line-height);
|
|
3502
|
+
--label--titlestack-font-weight: var(--label-callout-font-weight);
|
|
3503
|
+
}
|
|
3493
3504
|
}
|
|
3494
3505
|
}
|
|
3495
3506
|
@layer sw-components {}
|
|
@@ -3512,11 +3523,7 @@
|
|
|
3512
3523
|
padding-block: 1rem;
|
|
3513
3524
|
}
|
|
3514
3525
|
}
|
|
3515
|
-
@layer sw-components {
|
|
3516
|
-
:where(navigation-title) {
|
|
3517
|
-
display: grid;
|
|
3518
|
-
}
|
|
3519
|
-
}
|
|
3526
|
+
@layer sw-components {}
|
|
3520
3527
|
@layer sw-components {
|
|
3521
3528
|
:where(tab-view:not([tab-view-style=tab-bar-only]) > sidebar-toggle, navigation-split-view > sidebar-toggle) {
|
|
3522
3529
|
position: fixed;
|
|
@@ -1,63 +1,10 @@
|
|
|
1
1
|
import { I18n } from '../../i18n';
|
|
2
2
|
import { html, queryMorph } from '../../morphdom';
|
|
3
|
-
// type ButtonRole = keyof ReturnType<typeof I18n.t<'ButtonRole'>>
|
|
4
|
-
// function renderPlaceholder(el: HTMLElement, role: string | null, titleKey?: ButtonRole, config?: Record<string, string>) {
|
|
5
|
-
// // if (!el.isConnected) return
|
|
6
|
-
// // self.requestAnimationFrame(() => {
|
|
7
|
-
// // if (!el.isConnected) return
|
|
8
|
-
// let title: string | undefined, systemImage: string | undefined
|
|
9
|
-
// // const label = el.querySelector(':scope>[slot=placeholder]') ?? el.appendChild($(`<label-view slot="placeholder"></label-view>`, '>1'))
|
|
10
|
-
// switch (role) {
|
|
11
|
-
// case 'cancel':
|
|
12
|
-
// title = titleKey && titleKey in I18n.t('ButtonRole') ? I18n.t('ButtonRole')[titleKey] : I18n.t('ButtonRole').Cancel //label.setAttribute('title', titleKey && titleKey in I18n.t('ButtonRole') ? I18n.t('ButtonRole')[titleKey] : I18n.t('ButtonRole').Cancel)
|
|
13
|
-
// systemImage = config?.['cancel-button-icon'] ?? '' //label.setAttribute('system-image', config?.['cancel-button-icon'] ?? '')
|
|
14
|
-
// break
|
|
15
|
-
// case 'close':
|
|
16
|
-
// if (el.closest('[is=alert-dialog]')) {
|
|
17
|
-
// title = titleKey && titleKey in I18n.t('ButtonRole') ? I18n.t('ButtonRole')[titleKey] : I18n.t('ButtonRole').OK //.setAttribute('title', titleKey && titleKey in I18n.t('ButtonRole') ? I18n.t('ButtonRole')[titleKey] : I18n.t('ButtonRole').OK)
|
|
18
|
-
// } else {
|
|
19
|
-
// title = titleKey && titleKey in I18n.t('ButtonRole') ? I18n.t('ButtonRole')[titleKey] : I18n.t('ButtonRole').Close //label.setAttribute('title', titleKey && titleKey in I18n.t('ButtonRole') ? I18n.t('ButtonRole')[titleKey] : I18n.t('ButtonRole').Close)
|
|
20
|
-
// systemImage = config?.['close-button-icon'] ?? '' //label.setAttribute('system-image', config?.['close-button-icon'] ?? '')
|
|
21
|
-
// }
|
|
22
|
-
// break
|
|
23
|
-
// case 'confirm':
|
|
24
|
-
// title = titleKey && titleKey in I18n.t('ButtonRole') ? I18n.t('ButtonRole')[titleKey] : I18n.t('ButtonRole').Confirm //label.setAttribute('title', titleKey && titleKey in I18n.t('ButtonRole') ? I18n.t('ButtonRole')[titleKey] : I18n.t('ButtonRole').Confirm)
|
|
25
|
-
// systemImage = config?.['confirm-button-icon'] ?? '' //label.setAttribute('system-image', config?.['confirm-button-icon'] ?? '')
|
|
26
|
-
// break
|
|
27
|
-
// case 'confirmation-action':
|
|
28
|
-
// title = titleKey && titleKey in I18n.t('ButtonRole') ? I18n.t('ButtonRole')[titleKey] : I18n.t('ButtonRole').Confirm //label.setAttribute('title', titleKey && titleKey in I18n.t('ButtonRole') ? I18n.t('ButtonRole')[titleKey] : I18n.t('ButtonRole').Confirm)
|
|
29
|
-
// systemImage = config?.['confirm-button-icon'] ?? '' //label.setAttribute('system-image', config?.['confirm-button-icon'] ?? '')
|
|
30
|
-
// break
|
|
31
|
-
// case 'cancellation-action':
|
|
32
|
-
// title = titleKey && titleKey in I18n.t('ButtonRole') ? I18n.t('ButtonRole')[titleKey] : I18n.t('ButtonRole').Cancel //label.setAttribute('title', titleKey && titleKey in I18n.t('ButtonRole') ? I18n.t('ButtonRole')[titleKey] : I18n.t('ButtonRole').Cancel)
|
|
33
|
-
// systemImage = config?.['cancel-button-icon'] ?? '' //label.setAttribute('system-image', config?.['cancel-button-icon'] ?? '')
|
|
34
|
-
// break
|
|
35
|
-
// case 'destructive':
|
|
36
|
-
// title = titleKey && titleKey in I18n.t('ButtonRole') ? I18n.t('ButtonRole')[titleKey] : I18n.t('ButtonRole').Destructive // label.setAttribute('title', titleKey && titleKey in I18n.t('ButtonRole') ? I18n.t('ButtonRole')[titleKey] : I18n.t('ButtonRole').Destructive)
|
|
37
|
-
// systemImage = config?.['delete-button-icon'] ?? '' // label.setAttribute('system-image', config?.['delete-button-icon'] ?? '')
|
|
38
|
-
// break
|
|
39
|
-
// // default:
|
|
40
|
-
// // label?.remove()
|
|
41
|
-
// // break
|
|
42
|
-
// }
|
|
43
|
-
// queryMorph(
|
|
44
|
-
// '[slot=placeholder]',
|
|
45
|
-
// html`<label-view slot="placeholder">${systemImage ? html`<image-view slot="icon" system-name="${systemImage}"></image-view>` : null}${title ? html`<span>${title}</span>` : null}</label-view>`,
|
|
46
|
-
// el,
|
|
47
|
-
// { removeIf: !title }
|
|
48
|
-
// )
|
|
49
|
-
// // if (role) {
|
|
50
|
-
// // label.setAttribute('title', I18n.t('ButtonRole').Default.Destructive)
|
|
51
|
-
// // } else label?.remove()
|
|
52
|
-
// // })
|
|
53
|
-
// }
|
|
54
3
|
export default function (target, role, titleKey, config) {
|
|
55
4
|
if (!target)
|
|
56
5
|
return;
|
|
57
6
|
const overiderTitle = typeof titleKey === 'string' && titleKey in I18n.t('ButtonRole') ? titleKey : undefined;
|
|
58
|
-
// renderPlaceholder(target, role, overiderTitle, config)
|
|
59
7
|
let title, systemImage;
|
|
60
|
-
// const label = el.querySelector(':scope>[slot=placeholder]') ?? el.appendChild($(`<label-view slot="placeholder"></label-view>`, '>1'))
|
|
61
8
|
switch (role) {
|
|
62
9
|
case 'cancel':
|
|
63
10
|
title = overiderTitle && overiderTitle in I18n.t('ButtonRole') ? I18n.t('ButtonRole')[overiderTitle] : I18n.t('ButtonRole').Cancel;
|
|
@@ -90,6 +37,4 @@ export default function (target, role, titleKey, config) {
|
|
|
90
37
|
break;
|
|
91
38
|
}
|
|
92
39
|
queryMorph('[slot=placeholder]', html `<label-view slot="placeholder">${systemImage ? html `<image-view slot="icon" system-name="${systemImage}"></image-view>` : null}${title ? html `<span>${title}</span>` : null}</label-view>`, target, { removeIf: !title });
|
|
93
|
-
// CleanupRegistry.unregister(target, 'i18n')
|
|
94
|
-
// CleanupRegistry.register(target, onoff('localechange', () => renderPlaceholder(target, role, overiderTitle), I18n.on).on(), 'i18n')
|
|
95
40
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swiftwc/ui",
|
|
3
|
-
"version": "0.0.0-dev.
|
|
3
|
+
"version": "0.0.0-dev.93",
|
|
4
4
|
"description": "Elegant SwiftUI-inspired web components for standalone web apps and web extensions.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -50,7 +50,8 @@
|
|
|
50
50
|
"./css": "./generated/css/index.css",
|
|
51
51
|
"./scss": "./scss/index.scss",
|
|
52
52
|
"./scss/*": "./scss/*.scss",
|
|
53
|
-
"./customElements/en": "./custom-elements/en.json"
|
|
53
|
+
"./customElements/en": "./custom-elements/en.json",
|
|
54
|
+
"./webComponentsHTMLData/en": "./web-components.html-data/en.json"
|
|
54
55
|
},
|
|
55
56
|
"bin": {
|
|
56
57
|
"swiftwc": "./generated/index.js"
|
package/scss/_components.scss
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
navigation-stack,
|
|
8
8
|
navigation-split-view,
|
|
9
9
|
navigation-large-title,
|
|
10
|
+
navigation-title,
|
|
10
11
|
scroll-view,
|
|
11
12
|
body-view,
|
|
12
13
|
tab-view,
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
[is='glass-prominent-button'],
|
|
31
32
|
list-view,
|
|
32
33
|
table-view,
|
|
33
|
-
content-unavailable
|
|
34
|
+
content-unavailable,
|
|
34
35
|
progress-view,
|
|
35
36
|
tool-bar-item,
|
|
36
37
|
tool-bar-item-group,
|
|
@@ -59,9 +60,9 @@
|
|
|
59
60
|
:where(labeled-content)::part(labeled-content-label-stack),
|
|
60
61
|
:where(labeled-content)::part(labeled-content-value-stack),
|
|
61
62
|
:where(progress-view)::part(progress-control),
|
|
62
|
-
:where(content-unavailable
|
|
63
|
-
:where(content-unavailable
|
|
64
|
-
:where(content-unavailable
|
|
63
|
+
:where(content-unavailable)::part(content-unavailable-title-stack),
|
|
64
|
+
:where(content-unavailable)::part(content-unavailable-description-stack),
|
|
65
|
+
:where(content-unavailable)::part(content-unavailable-actions-stack),
|
|
65
66
|
:where(table-view)::part(table-container),
|
|
66
67
|
:where(table-view)::part(table-column-stack),
|
|
67
68
|
:where(table-view)::part(table-header-stack),
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
@use 'sass:string';
|
|
1
2
|
@use '../vars';
|
|
3
|
+
@use '../mixins';
|
|
2
4
|
|
|
3
5
|
@layer #{vars.$components-layer} {
|
|
4
6
|
labeled-content {
|
|
@@ -61,6 +63,12 @@
|
|
|
61
63
|
> [slot='footer'] {
|
|
62
64
|
:where(&) {
|
|
63
65
|
color: var(--secondary);
|
|
66
|
+
|
|
67
|
+
--label-font: callout;
|
|
68
|
+
|
|
69
|
+
@supports not (x: #{string.unquote('if(else:red)')}) {
|
|
70
|
+
@include mixins.set-label-font(callout);
|
|
71
|
+
}
|
|
64
72
|
}
|
|
65
73
|
}
|
|
66
74
|
}
|