scb-wc 0.1.253 → 0.1.254
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.
|
@@ -30,4 +30,4 @@ import{f,h as _,m as w,p as n,v as x,y as k}from"../../vendor/vendor.js";import"
|
|
|
30
30
|
</div>
|
|
31
31
|
</section>
|
|
32
32
|
</div>
|
|
33
|
-
`}},b=m,m._nextId=0,m.styles=k
|
|
33
|
+
`}},b=m,m._nextId=0,m.styles=k`@keyframes scb-kf-fade-in{0%{opacity:0}to{opacity:1}}:host{display:block}.layer{display:none;position:fixed;inset:0;margin:0;padding:0;border:0;inline-size:100%;block-size:100%;max-inline-size:none;max-block-size:none;overflow:visible;background:0 0;pointer-events:none}.layer:popover-open{display:block}.layer::backdrop{background:0 0;pointer-events:none}:host([spotlight]) .layer:popover-open{animation:scb-kf-fade-in var(--scb-motion-duration-short, 200ms) var(--scb-motion-easing-standard, ease)}.spotlight{display:none;position:fixed;inset:0;inline-size:100%;block-size:100%}:host([spotlight]) .spotlight{display:block}.spotlight-hole{x:calc(var(--_spotlight-left) - var(--spacing-3, 8px));y:calc(var(--_spotlight-top) - var(--spacing-3, 8px));width:calc(var(--_spotlight-width) + 2*var(--spacing-3, 8px));height:calc(var(--_spotlight-height) + 2*var(--spacing-3, 8px));rx:var(--radius-medium, 12px)}.layer[data-moving] .spotlight-hole{transition-property:x,y,width,height;transition-duration:var(--scb-motion-duration-short, 200ms);transition-timing-function:var(--scb-motion-easing-standard, ease)}.spotlight-scrim{fill:var(--scb-tour-spotlight-color, color-mix(in srgb, var(--md-sys-color-scrim) 32%, transparent))}@media (prefers-reduced-motion:reduce){:host([spotlight]) .layer:popover-open{animation:none}.layer[data-moving] .spotlight-hole{transition:none}}.surface{position:fixed;pointer-events:auto;box-sizing:border-box;margin:0;inset:auto;border:0;inline-size:min(360px,calc(100vw - 2*var(--spacing-4, 12px)));max-block-size:min(var(--available-height, 100vh),calc(100vh - 2*var(--spacing-4, 12px)));padding:var(--scb-tour-design-padding-medium);border-radius:var(--scb-tour-design-radius-medium);background:var(--scb-tour-surface-color, var(--md-sys-color-surface-container));color:var(--scb-tour-content-color, var(--md-sys-color-on-surface));box-shadow:var(--scb-tour-design-shadow-medium);overflow:visible;outline:0;font-family:var(--scb-tour-design-supporting-medium-font);font-size:var(--scb-tour-design-supporting-medium-size);line-height:var(--scb-tour-design-supporting-medium-line-height);font-weight:var(--scb-tour-design-supporting-medium-weight);letter-spacing:var(--scb-tour-design-supporting-medium-tracking)}:host([variant='inverse']) .surface{background:var(--scb-tour-surface-color, var(--md-sys-color-on-info-container));color:var(--scb-tour-content-color, var(--md-sys-color-info-container));--scb-button-low-emphasis-content-color:var(--scb-tour-content-color, var(--md-sys-color-info-container));--scb-button-filled-container-color:var(--scb-tour-content-color, var(--md-sys-color-info-container));--scb-button-filled-content-color:var(--scb-tour-surface-color, var(--md-sys-color-on-info-container));--scb-button-disabled-content-color:color-mix(in srgb, var(--scb-tour-content-color, var(--md-sys-color-info-container)) calc(100% * var(--md-sys-state-disabled-state-layer-opacity, 0.38)), transparent);--md-icon-button-icon-color:var(--scb-tour-content-color, var(--md-sys-color-info-container));--md-focus-ring-color:var(--scb-tour-content-color, var(--md-sys-color-info-container))}.body,.footer,.header{gap:var(--scb-tour-design-gap-medium)}.body{display:grid;max-block-size:calc(min(var(--available-height, 100vh),100vh - 2*var(--spacing-4, 12px)) - 2*var(--scb-tour-design-padding-medium));overflow:auto;overflow-wrap:anywhere}.footer,.header{display:flex;align-items:start}h2{flex:1;font-family:var(--scb-tour-design-title-medium-font);font-size:var(--scb-tour-design-title-medium-size);line-height:var(--scb-tour-design-title-medium-line-height);font-weight:var(--scb-tour-design-title-medium-weight);letter-spacing:var(--scb-tour-design-title-medium-tracking)}h2,p{margin:0}.footer{align-items:center;flex-wrap:wrap}.counter{margin-inline-end:auto}.actions{display:flex;flex-wrap:wrap;gap:var(--scb-tour-design-gap-medium)}.arrow{position:absolute;left:clamp(var(--scb-tour-design-arrow-size-medium),calc(var(--anchor-x) - var(--scb-tour-design-arrow-size-medium)),calc(100% - 3*var(--scb-tour-design-arrow-size-medium)));top:calc(-1*var(--scb-tour-design-arrow-size-medium));inline-size:calc(2*var(--scb-tour-design-arrow-size-medium));block-size:var(--scb-tour-design-arrow-size-medium);background:inherit;clip-path:polygon(50%0,100% 100%,0 100%);pointer-events:none}.surface[data-side=top]{translate:0-100%}.surface[data-side=top] .arrow{top:100%;transform:rotate(180deg)}:host{--scb-tour-design-padding-medium:var(--spacing-5, 16px);--scb-tour-design-gap-medium:var(--spacing-4, 12px);--scb-tour-design-radius-medium:var(--radius-medium, 12px);--scb-tour-design-anchor-gap-medium:var(--spacing-4, 12px);--scb-tour-design-arrow-size-medium:var(--spacing-3, 8px);--scb-tour-design-title-medium-font:var(--scb-typography-title-medium-font, var(--md-sys-typescale-title-medium-font, var(--brand)));--scb-tour-design-title-medium-size:var(--scb-typography-title-medium-size, var(--md-sys-typescale-title-medium-size, 18px));--scb-tour-design-title-medium-line-height:var(--scb-typography-title-medium-line-height, var(--md-sys-typescale-title-medium-line-height, 26px));--scb-tour-design-title-medium-tracking:var(--scb-typography-title-medium-tracking, var(--md-sys-typescale-title-medium-tracking, var(--tracking-05, -0.3px)));--scb-tour-design-title-medium-weight:var(--scb-typography-title-medium-weight, var(--md-sys-typescale-title-medium-weight, var(--weight-semibold, 600)));--scb-tour-design-title-medium-letter-spacing:var(--scb-typography-title-medium-letter-spacing, var(--scb-typography-title-medium-tracking, var(--md-sys-typescale-title-medium-tracking, var(--tracking-05, -0.3px))));--scb-tour-design-title-medium-font-weight:var(--scb-typography-title-medium-font-weight, var(--scb-typography-title-medium-weight, var(--md-sys-typescale-title-medium-weight, var(--weight-semibold, 600))));--scb-tour-design-supporting-medium-font:var(--scb-typography-body-medium-font, var(--md-sys-typescale-body-medium-font, var(--brand)));--scb-tour-design-supporting-medium-size:var(--scb-typography-body-medium-size, var(--md-sys-typescale-body-medium-size, 16px));--scb-tour-design-supporting-medium-line-height:var(--scb-typography-body-medium-line-height, var(--md-sys-typescale-body-medium-line-height, 24px));--scb-tour-design-supporting-medium-tracking:var(--scb-typography-body-medium-tracking, var(--md-sys-typescale-body-medium-tracking, var(--tracking-03, -0.15px)));--scb-tour-design-supporting-medium-weight:var(--scb-typography-body-medium-weight, var(--md-sys-typescale-body-medium-weight, var(--weight-regular, 400)));--scb-tour-design-supporting-medium-letter-spacing:var(--scb-typography-body-medium-letter-spacing, var(--scb-typography-body-medium-tracking, var(--md-sys-typescale-body-medium-tracking, var(--tracking-03, -0.15px))));--scb-tour-design-supporting-medium-font-weight:var(--scb-typography-body-medium-font-weight, var(--scb-typography-body-medium-weight, var(--md-sys-typescale-body-medium-weight, var(--weight-regular, 400))))}`,m);a([n({type:String,reflect:!0})],r.prototype,"variant",void 0);a([n({type:Boolean,reflect:!0,converter:v})],r.prototype,"spotlight",void 0);a([n({type:Boolean,reflect:!0,converter:v})],r.prototype,"open",void 0);a([n({type:Boolean,attribute:"auto-start",converter:v})],r.prototype,"autoStart",void 0);a([n({type:String,attribute:"storage-key"})],r.prototype,"storageKey",void 0);a([n({type:Number,reflect:!0})],r.prototype,"step",void 0);a([n({attribute:"close-label"})],r.prototype,"closeLabel",void 0);a([n({attribute:"previous-label"})],r.prototype,"previousLabel",void 0);a([n({attribute:"next-label"})],r.prototype,"nextLabel",void 0);a([n({attribute:"done-label"})],r.prototype,"doneLabel",void 0);a([n({attribute:"step-label"})],r.prototype,"stepLabel",void 0);a([f()],r.prototype,"_steps",void 0);r=b=a([w("scb-tour")],r);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scb-wc",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.254",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
@@ -569,5 +569,5 @@
|
|
|
569
569
|
"./scb-viz/*": null,
|
|
570
570
|
"./mvc/*": "./mvc/*"
|
|
571
571
|
},
|
|
572
|
-
"buildHash": "
|
|
572
|
+
"buildHash": "CCFFFFFD261CC57A7C52DA42E83D29257B75F65A20152E686F46102C594EBC72"
|
|
573
573
|
}
|
package/scb-tour/scb-tour.js
CHANGED
|
@@ -61,6 +61,13 @@ var u, d = {
|
|
|
61
61
|
}
|
|
62
62
|
.layer:popover-open { display: block; }
|
|
63
63
|
.layer::backdrop { background: transparent; pointer-events: none; }
|
|
64
|
+
:host([spotlight]) .layer:popover-open {
|
|
65
|
+
animation: scb-kf-fade-in var(--scb-motion-duration-short, 200ms) var(--scb-motion-easing-standard, ease);
|
|
66
|
+
}
|
|
67
|
+
@keyframes scb-kf-fade-in {
|
|
68
|
+
from { opacity: 0; }
|
|
69
|
+
to { opacity: 1; }
|
|
70
|
+
}
|
|
64
71
|
.spotlight { display: none; position: fixed; inset: 0; inline-size: 100%; block-size: 100%; }
|
|
65
72
|
:host([spotlight]) .spotlight { display: block; }
|
|
66
73
|
.spotlight-hole {
|
|
@@ -79,6 +86,7 @@ var u, d = {
|
|
|
79
86
|
fill: var(--scb-tour-spotlight-color, color-mix(in srgb, var(--md-sys-color-scrim) 32%, transparent));
|
|
80
87
|
}
|
|
81
88
|
@media (prefers-reduced-motion: reduce) {
|
|
89
|
+
:host([spotlight]) .layer:popover-open { animation: none; }
|
|
82
90
|
.layer[data-moving] .spotlight-hole { transition: none; }
|
|
83
91
|
}
|
|
84
92
|
.surface {
|
package/scb-wc.bundle.js
CHANGED
|
@@ -22009,6 +22009,13 @@
|
|
|
22009
22009
|
}
|
|
22010
22010
|
.layer:popover-open { display: block; }
|
|
22011
22011
|
.layer::backdrop { background: transparent; pointer-events: none; }
|
|
22012
|
+
:host([spotlight]) .layer:popover-open {
|
|
22013
|
+
animation: scb-kf-fade-in var(--scb-motion-duration-short, 200ms) var(--scb-motion-easing-standard, ease);
|
|
22014
|
+
}
|
|
22015
|
+
@keyframes scb-kf-fade-in {
|
|
22016
|
+
from { opacity: 0; }
|
|
22017
|
+
to { opacity: 1; }
|
|
22018
|
+
}
|
|
22012
22019
|
.spotlight { display: none; position: fixed; inset: 0; inline-size: 100%; block-size: 100%; }
|
|
22013
22020
|
:host([spotlight]) .spotlight { display: block; }
|
|
22014
22021
|
.spotlight-hole {
|
|
@@ -22027,6 +22034,7 @@
|
|
|
22027
22034
|
fill: var(--scb-tour-spotlight-color, color-mix(in srgb, var(--md-sys-color-scrim) 32%, transparent));
|
|
22028
22035
|
}
|
|
22029
22036
|
@media (prefers-reduced-motion: reduce) {
|
|
22037
|
+
:host([spotlight]) .layer:popover-open { animation: none; }
|
|
22030
22038
|
.layer[data-moving] .spotlight-hole { transition: none; }
|
|
22031
22039
|
}
|
|
22032
22040
|
.surface {
|