@fewchurs/react 1.1.0 → 1.2.1
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 +3 -2
- package/dist/core.d.mts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/core.js +2 -2
- package/dist/core.js.map +1 -1
- package/dist/core.mjs +2 -2
- package/dist/core.mjs.map +1 -1
- package/dist/index.d.mts +13 -4
- package/dist/index.d.ts +13 -4
- package/dist/index.js +53 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +52 -4
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +107 -0
- package/package.json +1 -6
package/dist/styles.css
CHANGED
|
@@ -482,3 +482,110 @@
|
|
|
482
482
|
color: inherit;
|
|
483
483
|
cursor: pointer;
|
|
484
484
|
}
|
|
485
|
+
|
|
486
|
+
.fw-launcher {
|
|
487
|
+
padding: 0.55rem 1rem;
|
|
488
|
+
font: inherit;
|
|
489
|
+
font-weight: 600;
|
|
490
|
+
cursor: pointer;
|
|
491
|
+
color: #fff;
|
|
492
|
+
background: var(--fw-primary, #ed5f18);
|
|
493
|
+
border: 1px solid transparent;
|
|
494
|
+
border-radius: var(--fw-radius, 0.55rem);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.fw-launcher:focus-visible {
|
|
498
|
+
outline: 2px solid var(--fw-primary, #ed5f18);
|
|
499
|
+
outline-offset: 2px;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.fw-overlay--sheet {
|
|
503
|
+
z-index: 1000;
|
|
504
|
+
align-items: stretch;
|
|
505
|
+
justify-content: flex-end;
|
|
506
|
+
padding: 0;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
.fw-dialog--sheet {
|
|
510
|
+
width: min(28rem, 100%);
|
|
511
|
+
max-height: none;
|
|
512
|
+
padding: 0;
|
|
513
|
+
border-radius: 0;
|
|
514
|
+
overscroll-behavior: contain;
|
|
515
|
+
color: #18181b;
|
|
516
|
+
background: #fff;
|
|
517
|
+
animation: fw-sheet-side 280ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
[dir="rtl"] .fw-dialog--sheet {
|
|
521
|
+
animation-name: fw-sheet-side-rtl;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
@media (prefers-color-scheme: dark) {
|
|
525
|
+
.fw-dialog--sheet:not([data-theme="light"]) {
|
|
526
|
+
color: #f4f4f5;
|
|
527
|
+
background: #0b0b0c;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.fw-dialog--sheet[data-theme="dark"] {
|
|
532
|
+
color: #f4f4f5;
|
|
533
|
+
background: #0b0b0c;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
.fw-dialog--sheet .fw-dialog__close {
|
|
537
|
+
position: sticky;
|
|
538
|
+
top: 0.5rem;
|
|
539
|
+
z-index: 1;
|
|
540
|
+
display: block;
|
|
541
|
+
height: 2rem;
|
|
542
|
+
margin-inline: auto 0.75rem;
|
|
543
|
+
margin-bottom: -2rem;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.fw-dialog--sheet > .fewchurs {
|
|
547
|
+
min-height: 100%;
|
|
548
|
+
max-width: none;
|
|
549
|
+
border-radius: 0;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
@media (max-width: 600px) {
|
|
553
|
+
.fw-overlay--sheet {
|
|
554
|
+
align-items: flex-end;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
.fw-dialog--sheet {
|
|
558
|
+
width: 100%;
|
|
559
|
+
max-height: 92vh;
|
|
560
|
+
border-radius: 1rem 1rem 0 0;
|
|
561
|
+
animation-name: fw-sheet-bottom;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.fw-dialog--sheet > .fewchurs {
|
|
565
|
+
min-height: auto;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
@media (prefers-reduced-motion: reduce) {
|
|
570
|
+
.fw-dialog--sheet {
|
|
571
|
+
animation: none;
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
@keyframes fw-sheet-side {
|
|
576
|
+
from {
|
|
577
|
+
transform: translateX(100%);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
@keyframes fw-sheet-side-rtl {
|
|
582
|
+
from {
|
|
583
|
+
transform: translateX(-100%);
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
@keyframes fw-sheet-bottom {
|
|
588
|
+
from {
|
|
589
|
+
transform: translateY(100%);
|
|
590
|
+
}
|
|
591
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fewchurs/react",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "A Fewchurs feature-request board for any React app.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -61,11 +61,6 @@
|
|
|
61
61
|
"react": ">=18",
|
|
62
62
|
"react-dom": ">=18"
|
|
63
63
|
},
|
|
64
|
-
"peerDependenciesMeta": {
|
|
65
|
-
"react-dom": {
|
|
66
|
-
"optional": true
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
64
|
"devDependencies": {
|
|
70
65
|
"@arethetypeswrong/cli": "^0.16.4",
|
|
71
66
|
"@size-limit/preset-small-lib": "^11.1.6",
|