@slyxup/ui 0.2.8 → 0.2.9
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/dist/components/UserProfile/UserProfile.d.ts.map +1 -1
- package/dist/components/UserProfile/UserProfile.js +213 -54
- package/dist/components/UserProfile/UserProfile.js.map +1 -1
- package/dist/styles.d.ts +1 -1
- package/dist/styles.d.ts.map +1 -1
- package/dist/styles.js +111 -5
- package/dist/styles.js.map +1 -1
- package/package.json +9 -9
- package/src/components/UserProfile/UserProfile.tsx +423 -119
- package/src/styles.ts +111 -5
- package/.turbo/turbo-build.log +0 -4
- package/LICENSE +0 -21
package/src/styles.ts
CHANGED
|
@@ -320,13 +320,31 @@ export const CSS = `
|
|
|
320
320
|
background: rgba(12, 12, 18, 0.55);
|
|
321
321
|
backdrop-filter: blur(6px);
|
|
322
322
|
animation: slx-rise .2s cubic-bezier(.22,.9,.32,1) both;
|
|
323
|
+
padding: 16px;
|
|
324
|
+
overflow-y: auto;
|
|
325
|
+
box-sizing: border-box;
|
|
323
326
|
}
|
|
324
327
|
|
|
325
328
|
/* ── UserProfile ── */
|
|
329
|
+
.slx-profile-modal {
|
|
330
|
+
display: flex; flex-direction: column;
|
|
331
|
+
width: 720px; max-width: calc(100vw - 32px);
|
|
332
|
+
max-height: min(85vh, 720px);
|
|
333
|
+
background: var(--slx-bg);
|
|
334
|
+
border-radius: var(--slx-radius-lg);
|
|
335
|
+
box-shadow: var(--slx-shadow-pop);
|
|
336
|
+
overflow: hidden;
|
|
337
|
+
animation: slx-rise .28s cubic-bezier(.22,.9,.32,1) both;
|
|
338
|
+
box-sizing: border-box;
|
|
339
|
+
}
|
|
326
340
|
.slx-profile-head {
|
|
327
341
|
display: flex; align-items: center; justify-content: space-between;
|
|
328
342
|
padding: 22px 28px 18px;
|
|
329
343
|
border-bottom: 1px solid var(--slx-border);
|
|
344
|
+
flex-shrink: 0;
|
|
345
|
+
background: var(--slx-bg);
|
|
346
|
+
position: relative;
|
|
347
|
+
z-index: 1;
|
|
330
348
|
}
|
|
331
349
|
.slx-profile-title {
|
|
332
350
|
font-family: var(--slx-display);
|
|
@@ -340,17 +358,21 @@ export const CSS = `
|
|
|
340
358
|
background: none; border: 1px solid var(--slx-border);
|
|
341
359
|
color: var(--slx-muted); cursor: pointer; font-size: 16px;
|
|
342
360
|
transition: background .12s, color .12s, border-color .12s;
|
|
361
|
+
position: relative;
|
|
362
|
+
z-index: 2;
|
|
363
|
+
pointer-events: auto;
|
|
364
|
+
flex-shrink: 0;
|
|
365
|
+
-webkit-tap-highlight-color: transparent;
|
|
366
|
+
touch-action: manipulation;
|
|
343
367
|
}
|
|
344
368
|
.slx-profile-close:hover { background: var(--slx-bg-subtle); color: var(--slx-ink); border-color: var(--slx-border-strong); }
|
|
369
|
+
.slx-profile-close:active { transform: scale(.95); }
|
|
345
370
|
.slx-profile-close:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--slx-accent-soft); }
|
|
346
371
|
|
|
347
372
|
.slx-profile-body {
|
|
348
|
-
display: flex;
|
|
349
|
-
width: 720px; max-width: calc(100vw - 48px);
|
|
350
|
-
background: var(--slx-bg);
|
|
351
|
-
border-radius: var(--slx-radius-lg);
|
|
352
|
-
box-shadow: var(--slx-shadow-pop);
|
|
373
|
+
display: flex; flex: 1; min-height: 380px;
|
|
353
374
|
overflow: hidden;
|
|
375
|
+
min-width: 0;
|
|
354
376
|
}
|
|
355
377
|
|
|
356
378
|
/* ── Left nav ── */
|
|
@@ -467,10 +489,94 @@ export const CSS = `
|
|
|
467
489
|
display: flex; align-items: center; justify-content: space-between;
|
|
468
490
|
padding: 10px 0; border-bottom: 1px solid var(--slx-border);
|
|
469
491
|
font-size: 13px;
|
|
492
|
+
gap: 8px;
|
|
493
|
+
flex-wrap: wrap;
|
|
470
494
|
}
|
|
471
495
|
.slx-invoice-row:last-child { border-bottom: none; }
|
|
472
496
|
.slx-invoice-date { color: var(--slx-muted); }
|
|
473
497
|
.slx-invoice-amount { font-weight: 600; color: var(--slx-ink-strong); }
|
|
498
|
+
|
|
499
|
+
/* ── Billing plans grid (responsive) ── */
|
|
500
|
+
.slx-billing-plans {
|
|
501
|
+
display: grid;
|
|
502
|
+
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
503
|
+
gap: 12px;
|
|
504
|
+
margin-top: 12px;
|
|
505
|
+
}
|
|
506
|
+
.slx-plan-card {
|
|
507
|
+
border: 1px solid var(--slx-border);
|
|
508
|
+
border-radius: var(--slx-radius);
|
|
509
|
+
padding: 16px;
|
|
510
|
+
background: var(--slx-bg);
|
|
511
|
+
display: flex;
|
|
512
|
+
flex-direction: column;
|
|
513
|
+
position: relative;
|
|
514
|
+
transition: border-color .15s, box-shadow .15s;
|
|
515
|
+
}
|
|
516
|
+
.slx-plan-card:hover { border-color: var(--slx-border-strong); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
|
|
517
|
+
.slx-plan-card.popular { border-color: var(--slx-accent); box-shadow: 0 0 0 1px var(--slx-accent-soft); }
|
|
518
|
+
.slx-plan-badge {
|
|
519
|
+
position: absolute; top: -10px; right: 12px;
|
|
520
|
+
font-size: 10px; font-weight: 700; letter-spacing: .05em;
|
|
521
|
+
color: #fff; background: linear-gradient(135deg, var(--slx-accent), #8b5cf6);
|
|
522
|
+
padding: 3px 8px; border-radius: 999px;
|
|
523
|
+
}
|
|
524
|
+
.slx-plan-name { font-size: 14px; font-weight: 600; color: var(--slx-ink-strong); margin: 0 0 6px; }
|
|
525
|
+
.slx-plan-price { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; color: var(--slx-ink-strong); }
|
|
526
|
+
.slx-plan-interval { font-size: 13px; color: var(--slx-muted); font-weight: 400; }
|
|
527
|
+
.slx-plan-features { list-style: none; margin: 12px 0 16px; padding: 0; flex: 1; }
|
|
528
|
+
.slx-plan-features li { font-size: 13px; color: var(--slx-ink); padding: 4px 0 4px 20px; position: relative; line-height: 1.45; }
|
|
529
|
+
.slx-plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--slx-success); font-weight: 700; font-size: 12px; }
|
|
530
|
+
.slx-plan-cta { width: 100%; margin-top: auto; }
|
|
531
|
+
.slx-billing-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
|
|
532
|
+
.slx-btn-secondary {
|
|
533
|
+
font: inherit; font-size: 13px; font-weight: 550;
|
|
534
|
+
color: var(--slx-ink); background: var(--slx-bg);
|
|
535
|
+
border: 1px solid var(--slx-border-strong); border-radius: var(--slx-radius-sm);
|
|
536
|
+
padding: 8px 14px; cursor: pointer;
|
|
537
|
+
transition: background .12s, border-color .12s;
|
|
538
|
+
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
|
|
539
|
+
}
|
|
540
|
+
.slx-btn-secondary:hover { background: var(--slx-bg-subtle); }
|
|
541
|
+
.slx-btn-secondary:active { transform: scale(.98); }
|
|
542
|
+
.slx-btn-secondary:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--slx-accent-soft); }
|
|
543
|
+
.slx-btn-secondary[disabled] { opacity: .55; cursor: not-allowed; }
|
|
544
|
+
.slx-billing-empty { text-align: center; padding: 24px 16px; color: var(--slx-muted); font-size: 13px; line-height: 1.5; }
|
|
545
|
+
|
|
546
|
+
/* ── Mobile friendliness for UserProfile ── */
|
|
547
|
+
@media (max-width: 680px) {
|
|
548
|
+
.slx-overlay { align-items: flex-start; padding: 12px; }
|
|
549
|
+
.slx-profile-modal {
|
|
550
|
+
width: 100%; max-width: 100%;
|
|
551
|
+
max-height: calc(100vh - 24px);
|
|
552
|
+
max-height: calc(100dvh - 24px);
|
|
553
|
+
margin: auto;
|
|
554
|
+
border-radius: var(--slx-radius-lg);
|
|
555
|
+
}
|
|
556
|
+
.slx-profile-body { flex-direction: column; min-height: 0; overflow-y: auto; overflow-x: hidden; }
|
|
557
|
+
.slx-profile-nav {
|
|
558
|
+
width: auto; flex-direction: row; overflow-x: auto; overflow-y: hidden;
|
|
559
|
+
border-right: none; border-bottom: 1px solid var(--slx-border);
|
|
560
|
+
padding: 8px; gap: 6px; scrollbar-width: none; -ms-overflow-style: none;
|
|
561
|
+
-webkit-overflow-scrolling: touch;
|
|
562
|
+
flex-shrink: 0;
|
|
563
|
+
}
|
|
564
|
+
.slx-profile-nav::-webkit-scrollbar { display: none; }
|
|
565
|
+
.slx-profile-nav-btn { white-space: nowrap; flex-shrink: 0; font-size: 13px; padding: 8px 12px; }
|
|
566
|
+
.slx-profile-content { padding: 16px; overflow: visible; }
|
|
567
|
+
.slx-profile-head { padding: 16px 16px 12px; }
|
|
568
|
+
.slx-profile-close { width: 40px; height: 40px; min-width: 40px; min-height: 40px; font-size: 18px; border-radius: 10px; }
|
|
569
|
+
.slx-avatar-row { gap: 12px; flex-wrap: wrap; }
|
|
570
|
+
.slx-billing-plans { grid-template-columns: 1fr; }
|
|
571
|
+
.slx-session { flex-direction: column; align-items: flex-start; gap: 10px; }
|
|
572
|
+
.slx-session .slx-btn-danger-outline { align-self: stretch; text-align: center; justify-content: center; }
|
|
573
|
+
.slx-invoice-row { flex-wrap: wrap; gap: 6px; }
|
|
574
|
+
}
|
|
575
|
+
@media (max-width: 380px) {
|
|
576
|
+
.slx-profile-content { padding: 12px; }
|
|
577
|
+
.slx-profile-head { padding: 12px 12px 10px; }
|
|
578
|
+
.slx-profile-title { font-size: 16px; }
|
|
579
|
+
}
|
|
474
580
|
`;
|
|
475
581
|
|
|
476
582
|
let injected = false;
|
package/.turbo/turbo-build.log
DELETED
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 SlyxUp
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|