@swiftwc/ui 0.0.0-dev.15 → 0.0.0-dev.17
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
|
@@ -3988,6 +3988,7 @@
|
|
|
3988
3988
|
inline-size: var(--nav-split-view-sidebar-inline-size);
|
|
3989
3989
|
margin-inline-start: max(env(safe-area-inset-left), var(--sidebar-inline-spacing));
|
|
3990
3990
|
--safe-area-inset-left: 0px;
|
|
3991
|
+
--safe-area-inset-right: 0px;
|
|
3991
3992
|
overflow: visible;
|
|
3992
3993
|
padding-block: max(var(--safe-area-inset-top), var(--sidebar-block-spacing)) max(var(--safe-area-inset-bottom), var(--sidebar-block-spacing));
|
|
3993
3994
|
border-radius: var(--sidebar-border-radius);
|
|
@@ -4116,19 +4117,20 @@
|
|
|
4116
4117
|
}
|
|
4117
4118
|
}
|
|
4118
4119
|
}
|
|
4119
|
-
:where(
|
|
4120
|
+
:where(tab-view > [is=sidebar-view]) {
|
|
4120
4121
|
inline-size: var(--nav-split-view-sidebar-inline-size);
|
|
4121
4122
|
margin-inline-start: max(env(safe-area-inset-left), var(--sidebar-inline-spacing));
|
|
4122
4123
|
--safe-area-inset-left: 0px;
|
|
4124
|
+
--safe-area-inset-right: 0px;
|
|
4123
4125
|
overflow: visible;
|
|
4124
4126
|
padding-block: max(var(--safe-area-inset-top), var(--sidebar-block-spacing)) max(var(--safe-area-inset-bottom), var(--sidebar-block-spacing));
|
|
4125
4127
|
border-radius: var(--sidebar-border-radius);
|
|
4126
4128
|
}
|
|
4127
|
-
:where(
|
|
4129
|
+
:where(tab-view > [is=sidebar-view] > scroll-view, tab-view > [is=sidebar-view] > scroll-view ~ tool-bar) {
|
|
4128
4130
|
--safe-area-inset-top: 0px;
|
|
4129
4131
|
--safe-area-inset-bottom: 0px;
|
|
4130
4132
|
}
|
|
4131
|
-
:where(
|
|
4133
|
+
:where(tab-view > [is=sidebar-view] > scroll-view) {
|
|
4132
4134
|
border-radius: var(--sidebar-border-radius);
|
|
4133
4135
|
backdrop-filter: var(--liquid-glass-backdrop-filter);
|
|
4134
4136
|
--scroll-view-box-shadow: var(--liquid-glass-box-shadow);
|
|
@@ -42,7 +42,7 @@ export class NavigationView extends HTMLElement {
|
|
|
42
42
|
break;
|
|
43
43
|
if (!this.closest('tab-view'))
|
|
44
44
|
break; // tabview stuff
|
|
45
|
-
let eventType = this.hasAttribute(name) ? '
|
|
45
|
+
let eventType = this.hasAttribute(name) ? 'tabhide' : 'tabshow', target = LifecycleObserver;
|
|
46
46
|
// isRecent by 100ms window
|
|
47
47
|
if (this.#recentBefore && performance.now() - this.#recentBefore.time <= 100) {
|
|
48
48
|
if (this.#recentBefore.type === 'beforetabreveal') {
|
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.17",
|
|
4
4
|
"description": "Elegant SwiftUI-inspired web components for standalone web apps and web extensions.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -65,7 +65,8 @@
|
|
|
65
65
|
"build:barrels": "barrelsby -D -q -S -d ./js/components -e \".\\.test\\.ts\"",
|
|
66
66
|
"format:check": "prettier . --check",
|
|
67
67
|
"format:write": "prettier . --write",
|
|
68
|
-
"test": "vitest --dom"
|
|
68
|
+
"test": "vitest --dom",
|
|
69
|
+
"version:pkg": "npm version $npm_config_bump --no-git-tag-version --preid=dev"
|
|
69
70
|
},
|
|
70
71
|
"devDependencies": {
|
|
71
72
|
"doctrine": "^3.0.0",
|
|
@@ -115,10 +115,12 @@
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
|
|
118
|
+
> [is='sidebar-view'] {
|
|
119
119
|
@include mixins.make-floating-sidebar;
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
:where(&) {
|
|
122
|
+
margin-inline-start: calc(var(--nav-split-view-sidebar-inline-size) * -1); // hide off screen
|
|
123
|
+
}
|
|
122
124
|
}
|
|
123
125
|
}
|
|
124
126
|
|
package/scss/mixins/_dialog.scss
CHANGED
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
margin-inline-start: max(env(safe-area-inset-left), var(--sidebar-inline-spacing)); // float
|
|
62
62
|
|
|
63
63
|
--safe-area-inset-left: 0px; // now a floating
|
|
64
|
+
--safe-area-inset-right: 0px; // now a floating FIXME: Check new addition
|
|
64
65
|
|
|
65
66
|
overflow: visible; // override
|
|
66
67
|
|