@celestia-island/hikari 0.51.1 → 0.51.2
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/package.json +1 -1
- package/src/components/HkModal.scss +33 -36
package/package.json
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
// handle hasn't resolved yet — zIndex briefly starts at 0).
|
|
32
32
|
z-index: 0;
|
|
33
33
|
background: var(--hk-modal-overlay-bg, rgba(0, 0, 0, 0.45));
|
|
34
|
-
backdrop-filter: var(--hk-modal-overlay-blur, blur(
|
|
34
|
+
backdrop-filter: var(--hk-modal-overlay-blur, blur(3px));
|
|
35
35
|
pointer-events: auto;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
// viewport in place, never sliding or scaling with the content frame.
|
|
41
41
|
@include sf.scrim-fade(
|
|
42
42
|
"hk-modal-overlay",
|
|
43
|
-
$enter-duration: var(--hk-modal-duration, 0.
|
|
44
|
-
$enter-ease: var(--hk-modal-ease-out, cubic-bezier(0.
|
|
45
|
-
$leave-duration: var(--hk-modal-duration, 0.
|
|
46
|
-
$leave-ease: var(--hk-modal-ease-in, cubic-bezier(0.
|
|
43
|
+
$enter-duration: var(--hk-modal-duration, 0.42s),
|
|
44
|
+
$enter-ease: var(--hk-modal-ease-out, cubic-bezier(0.33, 1, 0.68, 1)),
|
|
45
|
+
$leave-duration: var(--hk-modal-duration, 0.42s),
|
|
46
|
+
$leave-ease: var(--hk-modal-ease-in, cubic-bezier(0.45, 0, 0.55, 1))
|
|
47
47
|
);
|
|
48
48
|
|
|
49
49
|
// ------
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
height var(--duration-fast, 0.15s) var(--ease-standard, cubic-bezier(0.4, 0, 0.2, 1)),
|
|
73
73
|
max-height var(--duration-fast, 0.15s) var(--ease-standard, cubic-bezier(0.4, 0, 0.2, 1));
|
|
74
74
|
background: var(--hk-modal-bg, var(--hi-color-surface, rgba(240,244,248,0.95)));
|
|
75
|
-
backdrop-filter: var(--hk-modal-blur,
|
|
75
|
+
backdrop-filter: var(--hk-modal-blur, none);
|
|
76
76
|
border: 1px solid var(--hk-modal-border-color, var(--hi-color-border, rgba(100,100,100,0.08)));
|
|
77
77
|
border-radius: var(--hk-modal-radius, var(--radius-lg, 12px));
|
|
78
78
|
box-shadow:
|
|
@@ -109,12 +109,12 @@
|
|
|
109
109
|
@media (min-width: 768px) {
|
|
110
110
|
.hk-modal-content-enter-active {
|
|
111
111
|
transition:
|
|
112
|
-
opacity var(--hk-modal-duration, 0.
|
|
113
|
-
var(--hk-modal-ease-out, cubic-bezier(0.
|
|
114
|
-
transform var(--hk-modal-duration, 0.
|
|
115
|
-
var(--hk-modal-ease-out, cubic-bezier(0.
|
|
116
|
-
clip-path var(--hk-modal-duration, 0.
|
|
117
|
-
var(--hk-modal-ease-out, cubic-bezier(0.
|
|
112
|
+
opacity var(--hk-modal-duration, 0.42s)
|
|
113
|
+
var(--hk-modal-ease-out, cubic-bezier(0.33, 1, 0.68, 1)),
|
|
114
|
+
transform var(--hk-modal-duration, 0.42s)
|
|
115
|
+
var(--hk-modal-ease-out, cubic-bezier(0.33, 1, 0.68, 1)),
|
|
116
|
+
clip-path var(--hk-modal-duration, 0.42s)
|
|
117
|
+
var(--hk-modal-ease-out, cubic-bezier(0.33, 1, 0.68, 1));
|
|
118
118
|
will-change: transform, opacity, clip-path;
|
|
119
119
|
}
|
|
120
120
|
|
|
@@ -125,16 +125,11 @@
|
|
|
125
125
|
// (user report 2026-09-14).
|
|
126
126
|
.hk-modal-content-leave-active {
|
|
127
127
|
transition:
|
|
128
|
-
opacity var(--hk-modal-duration, 0.
|
|
129
|
-
var(--hk-modal-ease-in, cubic-bezier(0.
|
|
130
|
-
transform var(--hk-modal-duration, 0.
|
|
131
|
-
var(--hk-modal-ease-in, cubic-bezier(0.
|
|
128
|
+
opacity var(--hk-modal-duration, 0.32s)
|
|
129
|
+
var(--hk-modal-ease-in, cubic-bezier(0.45, 0, 0.55, 1)),
|
|
130
|
+
transform var(--hk-modal-duration, 0.32s)
|
|
131
|
+
var(--hk-modal-ease-in, cubic-bezier(0.45, 0, 0.55, 1));
|
|
132
132
|
will-change: transform, opacity;
|
|
133
|
-
// Collapse toward the frame's own top edge: the height shrink reads as
|
|
134
|
-
// the box folding upward (the unveil's reverse), not as a centered
|
|
135
|
-
// shrink — and the top-of-content (header) keeps its anchor while the
|
|
136
|
-
// rest eases down and out with the fade.
|
|
137
|
-
transform-origin: 50% 0;
|
|
138
133
|
}
|
|
139
134
|
|
|
140
135
|
.hk-modal-content-enter-from {
|
|
@@ -153,12 +148,12 @@
|
|
|
153
148
|
|
|
154
149
|
.hk-modal-content-leave-from {
|
|
155
150
|
opacity: 1;
|
|
156
|
-
transform: translate(-50%, -50%)
|
|
151
|
+
transform: translate(-50%, -50%);
|
|
157
152
|
}
|
|
158
153
|
|
|
159
154
|
.hk-modal-content-leave-to {
|
|
160
155
|
opacity: 0;
|
|
161
|
-
transform: translate(-50%, -50%)
|
|
156
|
+
transform: translate(-50%, -50%) translateY(5%);
|
|
162
157
|
}
|
|
163
158
|
}
|
|
164
159
|
|
|
@@ -445,17 +440,17 @@
|
|
|
445
440
|
// Sheet slide reveal replaces the height-clip reveal on mobile.
|
|
446
441
|
.hk-modal-content-enter-active {
|
|
447
442
|
transition:
|
|
448
|
-
opacity var(--hk-modal-duration, 0.
|
|
449
|
-
transform var(--hk-modal-duration, 0.
|
|
450
|
-
var(--hk-modal-ease-out, cubic-bezier(0.
|
|
443
|
+
opacity var(--hk-modal-duration, 0.42s) ease-out,
|
|
444
|
+
transform var(--hk-modal-duration, 0.42s)
|
|
445
|
+
var(--hk-modal-ease-out, cubic-bezier(0.33, 1, 0.68, 1));
|
|
451
446
|
will-change: transform, opacity;
|
|
452
447
|
}
|
|
453
448
|
|
|
454
449
|
.hk-modal-content-leave-active {
|
|
455
450
|
transition:
|
|
456
|
-
opacity var(--hk-modal-duration, 0.
|
|
457
|
-
transform var(--hk-modal-duration, 0.
|
|
458
|
-
var(--hk-modal-ease-in, cubic-bezier(0.
|
|
451
|
+
opacity var(--hk-modal-duration, 0.32s) ease-in,
|
|
452
|
+
transform var(--hk-modal-duration, 0.32s)
|
|
453
|
+
var(--hk-modal-ease-in, cubic-bezier(0.45, 0, 0.55, 1));
|
|
459
454
|
will-change: transform, opacity;
|
|
460
455
|
}
|
|
461
456
|
|
|
@@ -474,13 +469,8 @@
|
|
|
474
469
|
padding: 0.625rem 1rem 0.625rem;
|
|
475
470
|
}
|
|
476
471
|
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
.hk-modal-body {
|
|
480
|
-
--hk-scroll-pad-top: 1rem;
|
|
481
|
-
--hk-scroll-pad-right: 1rem;
|
|
482
|
-
--hk-scroll-pad-bottom: 1rem;
|
|
483
|
-
--hk-scroll-pad-left: 1rem;
|
|
472
|
+
.hk-modal-body-inner {
|
|
473
|
+
padding: 1rem;
|
|
484
474
|
}
|
|
485
475
|
|
|
486
476
|
// Lift the desktop 70vh body cap on phones: with a docked sheet the cap
|
|
@@ -491,6 +481,13 @@
|
|
|
491
481
|
// scrolls, and the footer always sits on the sheet's bottom edge.
|
|
492
482
|
.hk-modal-body {
|
|
493
483
|
max-height: none;
|
|
484
|
+
|
|
485
|
+
// The gutter contract retunes here too — the covers and the inner's
|
|
486
|
+
// padding both consume the vars, so one override moves both.
|
|
487
|
+
--hk-scroll-pad-top: 1rem;
|
|
488
|
+
--hk-scroll-pad-right: 1rem;
|
|
489
|
+
--hk-scroll-pad-bottom: 1rem;
|
|
490
|
+
--hk-scroll-pad-left: 1rem;
|
|
494
491
|
}
|
|
495
492
|
|
|
496
493
|
.hk-modal-footer {
|