@xleddyl/443-components-vue 0.16.50 → 0.16.52
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/README.md
CHANGED
|
@@ -714,7 +714,7 @@ A large dialog (60rem) with a section nav on the left and the content on the rig
|
|
|
714
714
|
|
|
715
715
|
### AuthLayout
|
|
716
716
|
|
|
717
|
-
Two columns: on the left the brand at the top, then the title, the description and the form (aligned left, `--k-auth-width`, default 24rem), and the footer at the bottom. On the right an aside panel that shows from 960px (`:aside="false"` hides it).
|
|
717
|
+
Two columns: on the left the brand at the top, then the title, the description and the form (aligned left, `--k-auth-width`, default 24rem), and the footer at the bottom. On the right an aside panel that shows from 960px (`:aside="false"` hides it). `breadcrumbs` replaces the title with a large trail (`Breadcrumbs size="lg"`), for a step of a flow. Props: `title`, `description`, `breadcrumbs`, `footer`, `brandName`, `brandSubtitle`, `brandIcon`, `brandLogo`, `brandTo`, `aside`, `asideTitle`, `asideDescription`, `themeSwitch`. Slots: default (form), `title`, `description`, `links` (under the form), `footer`, `brand`, `aside`, `corner`.
|
|
718
718
|
|
|
719
719
|
### AuthLogin and AuthLogout
|
|
720
720
|
|
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
<aside v-if="aside" class="k-auth-aside" :aria-label="asideText">
|
|
49
49
|
<slot name="aside">
|
|
50
50
|
<div class="k-auth-aside-art" aria-hidden="true">
|
|
51
|
-
<span class="k-auth-aside-glow" />
|
|
52
51
|
<span class="k-auth-aside-orb" />
|
|
53
52
|
<span class="k-auth-aside-grid" />
|
|
54
53
|
</div>
|
|
@@ -7,8 +7,16 @@ export default defineNuxtPlugin({
|
|
|
7
7
|
const config = useRuntimeConfig().public.k ?? {};
|
|
8
8
|
nuxtApp.vueApp.provide(ROUTE_LOCATION_KEY, config.routeLocation === "hash" ? "hash" : "query");
|
|
9
9
|
if (import.meta.server) return;
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
|
|
10
|
+
const options = useRouter().options;
|
|
11
|
+
const wrap = (behavior) => behavior ? withRouteStateScroll(behavior) : void 0;
|
|
12
|
+
let scrollBehavior = wrap(options.scrollBehavior);
|
|
13
|
+
Object.defineProperty(options, "scrollBehavior", {
|
|
14
|
+
configurable: true,
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: () => scrollBehavior,
|
|
17
|
+
set: (behavior) => {
|
|
18
|
+
scrollBehavior = wrap(behavior);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
13
21
|
}
|
|
14
22
|
});
|
|
@@ -147,11 +147,17 @@
|
|
|
147
147
|
margin: 0.5rem 0.5rem 0.5rem 0;
|
|
148
148
|
overflow: hidden;
|
|
149
149
|
border-radius: var(--k-radius-xl);
|
|
150
|
-
background:
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
150
|
+
background:
|
|
151
|
+
radial-gradient(
|
|
152
|
+
120% 90% at 100% 0%,
|
|
153
|
+
color-mix(in oklab, var(--k-accent) 55%, white) 0%,
|
|
154
|
+
transparent 55%
|
|
155
|
+
),
|
|
156
|
+
linear-gradient(
|
|
157
|
+
160deg,
|
|
158
|
+
var(--k-accent) 0%,
|
|
159
|
+
color-mix(in oklab, var(--k-accent) 70%, black) 100%
|
|
160
|
+
);
|
|
155
161
|
box-shadow: var(--k-shadow-xs);
|
|
156
162
|
color: var(--k-accent-contrast);
|
|
157
163
|
isolation: isolate;
|
|
@@ -163,35 +169,14 @@
|
|
|
163
169
|
z-index: -1;
|
|
164
170
|
}
|
|
165
171
|
|
|
166
|
-
.k-auth-aside-glow {
|
|
167
|
-
position: absolute;
|
|
168
|
-
inset: -25%;
|
|
169
|
-
background: radial-gradient(
|
|
170
|
-
80% 60% at 83% 17%,
|
|
171
|
-
color-mix(in oklab, var(--k-accent) 55%, white) 0%,
|
|
172
|
-
transparent 55%
|
|
173
|
-
);
|
|
174
|
-
animation: k-auth-glow 28s ease-in-out infinite alternate;
|
|
175
|
-
will-change: transform;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
172
|
.k-auth-aside-grid {
|
|
179
173
|
position: absolute;
|
|
180
174
|
inset: 0;
|
|
181
|
-
overflow: hidden;
|
|
182
|
-
mask-image: radial-gradient(80% 70% at 70% 30%, black, transparent);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.k-auth-aside-grid::before {
|
|
186
|
-
position: absolute;
|
|
187
|
-
inset: -2.5rem 0 0 -2.5rem;
|
|
188
175
|
background-image:
|
|
189
176
|
linear-gradient(rgb(255 255 255 / 0.08) 1px, transparent 1px),
|
|
190
177
|
linear-gradient(90deg, rgb(255 255 255 / 0.08) 1px, transparent 1px);
|
|
191
178
|
background-size: 2.5rem 2.5rem;
|
|
192
|
-
|
|
193
|
-
content: '';
|
|
194
|
-
will-change: transform;
|
|
179
|
+
mask-image: radial-gradient(80% 70% at 70% 30%, black, transparent);
|
|
195
180
|
}
|
|
196
181
|
|
|
197
182
|
.k-auth-aside-orb {
|
|
@@ -203,66 +188,6 @@
|
|
|
203
188
|
border-radius: var(--k-radius-full);
|
|
204
189
|
background: radial-gradient(circle at 30% 30%, rgb(255 255 255 / 0.5), transparent 65%);
|
|
205
190
|
filter: blur(2px);
|
|
206
|
-
animation:
|
|
207
|
-
k-auth-orb 22s ease-in-out infinite alternate,
|
|
208
|
-
k-auth-orb-light 9s ease-in-out infinite alternate;
|
|
209
|
-
will-change: transform, opacity;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
@keyframes k-auth-glow {
|
|
213
|
-
0% {
|
|
214
|
-
transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
50% {
|
|
218
|
-
transform: translate3d(-6%, 5%, 0) scale(1.08) rotate(4deg);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
100% {
|
|
222
|
-
transform: translate3d(3%, 8%, 0) scale(1.03) rotate(-3deg);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
@keyframes k-auth-orb {
|
|
227
|
-
0% {
|
|
228
|
-
transform: translate3d(0, 0, 0) scale(1);
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
33% {
|
|
232
|
-
transform: translate3d(-2.5rem, 1.5rem, 0) scale(1.05);
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
66% {
|
|
236
|
-
transform: translate3d(1rem, 3rem, 0) scale(0.97);
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
100% {
|
|
240
|
-
transform: translate3d(-1.5rem, -1rem, 0) scale(1.03);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
@keyframes k-auth-orb-light {
|
|
245
|
-
from {
|
|
246
|
-
opacity: 0.75;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
to {
|
|
250
|
-
opacity: 1;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
@keyframes k-auth-grid {
|
|
255
|
-
to {
|
|
256
|
-
transform: translate3d(2.5rem, 2.5rem, 0);
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
@media (prefers-reduced-motion: reduce) {
|
|
261
|
-
.k-root .k-auth-aside-glow,
|
|
262
|
-
.k-root .k-auth-aside-orb,
|
|
263
|
-
.k-root .k-auth-aside-grid::before {
|
|
264
|
-
animation: none;
|
|
265
|
-
}
|
|
266
191
|
}
|
|
267
192
|
|
|
268
193
|
.k-auth-aside-content {
|
package/package.json
CHANGED