@tempots/beatui 1.7.1 → 1.7.4
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/beatui.css +24 -10
- package/dist/beatui.tailwind.css +24 -10
- package/dist/{index-DI8bf9oC.js → index-CvU9E9wd.js} +188 -187
- package/dist/index-XogEKwdt.cjs +1 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +129 -128
- package/dist/tailwind/preset.cjs.js +1 -1
- package/dist/tailwind/preset.es.js +1 -1
- package/dist/tailwind/vite-plugin.cjs.js +1 -1
- package/dist/tailwind/vite-plugin.es.js +1 -1
- package/dist/types/tokens/controls.d.ts +2 -1
- package/dist/types/tokens/spacing.d.ts +2 -0
- package/dist/types/tokens/typography.d.ts +1 -1
- package/package.json +1 -1
- package/dist/index-DeUj-5ph.cjs +0 -1
package/dist/beatui.css
CHANGED
|
@@ -426,11 +426,12 @@ ol {
|
|
|
426
426
|
--overlay-width-md: min(37.5rem, 90vw);
|
|
427
427
|
--overlay-width-lg: min(50rem, 90vw);
|
|
428
428
|
--overlay-width-xl: min(62.5rem, 90vw);
|
|
429
|
-
--overlay-
|
|
429
|
+
--overlay-min-width: 12rem;
|
|
430
430
|
}
|
|
431
431
|
|
|
432
432
|
*, ::before, ::after {
|
|
433
433
|
--spacing-base: calc(var(--spacing-base-raw) * var(--spacing-scale));
|
|
434
|
+
--spacing-2xs: calc(var(--spacing-base) / 4);
|
|
434
435
|
--spacing-xs: calc(var(--spacing-base) / 2);
|
|
435
436
|
--spacing-sm: var(--spacing-base);
|
|
436
437
|
--spacing-smh: calc(var(--spacing-base) * 1.5);
|
|
@@ -5694,15 +5695,28 @@ a:focus-visible {
|
|
|
5694
5695
|
|
|
5695
5696
|
/*
|
|
5696
5697
|
* On mobile, .bc-menu uses position:fixed for a bottom-sheet layout.
|
|
5697
|
-
*
|
|
5698
|
-
*
|
|
5699
|
-
*
|
|
5700
|
-
*
|
|
5698
|
+
* Any transform on an ancestor (even identity matrix) changes the containing
|
|
5699
|
+
* block for position:fixed from the viewport to that ancestor (CSS spec).
|
|
5700
|
+
* The animation system sets transform on .bc-flyout-container for slide/scale,
|
|
5701
|
+
* which breaks the menu's fixed positioning and causes it to size relative to
|
|
5702
|
+
* the 0-width flyout container instead of the viewport.
|
|
5703
|
+
*
|
|
5704
|
+
* Fix: disable transform on mobile when containing a menu. The opacity fade
|
|
5705
|
+
* animation still works. Slide/scale aren't meaningful for a bottom sheet.
|
|
5701
5706
|
*/
|
|
5702
5707
|
@media (max-width: 640px) {
|
|
5703
5708
|
.bc-flyout-container:has(.bc-menu) {
|
|
5709
|
+
transform: none !important;
|
|
5710
|
+
transition-property: opacity !important;
|
|
5711
|
+
}
|
|
5712
|
+
|
|
5713
|
+
/* Dark backdrop behind the bottom-sheet menu on mobile */
|
|
5714
|
+
.bc-flyout-container:has(.bc-menu)::before {
|
|
5715
|
+
content: '';
|
|
5704
5716
|
position: fixed;
|
|
5705
5717
|
inset: 0;
|
|
5718
|
+
background: rgba(0, 0, 0, 0.5);
|
|
5719
|
+
z-index: -1;
|
|
5706
5720
|
}
|
|
5707
5721
|
}
|
|
5708
5722
|
|
|
@@ -10883,8 +10897,8 @@ export type OverlayMode = 'capturing' | 'non-capturing' */
|
|
|
10883
10897
|
|
|
10884
10898
|
.bc-lightbox__close {
|
|
10885
10899
|
position: absolute;
|
|
10886
|
-
top: var(--spacing-
|
|
10887
|
-
right: var(--spacing-
|
|
10900
|
+
top: var(--spacing-lg);
|
|
10901
|
+
right: var(--spacing-lg);
|
|
10888
10902
|
z-index: calc(var(--z-index-overlay, 1000) + 1);
|
|
10889
10903
|
border-radius: 100%;
|
|
10890
10904
|
padding: var(--spacing-base, 4px);
|
|
@@ -15095,8 +15109,8 @@ span.bc-sidebar-link {
|
|
|
15095
15109
|
bottom: 0;
|
|
15096
15110
|
display: flex;
|
|
15097
15111
|
align-items: center;
|
|
15098
|
-
gap: var(--spacing-
|
|
15099
|
-
padding: var(--spacing-
|
|
15112
|
+
gap: var(--spacing-md);
|
|
15113
|
+
padding: var(--spacing-md);
|
|
15100
15114
|
background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
|
|
15101
15115
|
}
|
|
15102
15116
|
|
|
@@ -16516,7 +16530,7 @@ span.bc-sidebar-link {
|
|
|
16516
16530
|
background: none;
|
|
16517
16531
|
border: none;
|
|
16518
16532
|
cursor: pointer;
|
|
16519
|
-
padding: var(--spacing-
|
|
16533
|
+
padding: var(--spacing-2xs) var(--spacing-xs);
|
|
16520
16534
|
border-radius: var(--radius-sm);
|
|
16521
16535
|
transition:
|
|
16522
16536
|
color var(--motion-transition-fast) var(--motion-easing-standard),
|
package/dist/beatui.tailwind.css
CHANGED
|
@@ -345,11 +345,12 @@
|
|
|
345
345
|
--overlay-width-md: min(37.5rem, 90vw);
|
|
346
346
|
--overlay-width-lg: min(50rem, 90vw);
|
|
347
347
|
--overlay-width-xl: min(62.5rem, 90vw);
|
|
348
|
-
--overlay-
|
|
348
|
+
--overlay-min-width: 12rem;
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
*, ::before, ::after {
|
|
352
352
|
--spacing-base: calc(var(--spacing-base-raw) * var(--spacing-scale));
|
|
353
|
+
--spacing-2xs: calc(var(--spacing-base) / 4);
|
|
353
354
|
--spacing-xs: calc(var(--spacing-base) / 2);
|
|
354
355
|
--spacing-sm: var(--spacing-base);
|
|
355
356
|
--spacing-smh: calc(var(--spacing-base) * 1.5);
|
|
@@ -5360,15 +5361,28 @@ a:focus-visible {
|
|
|
5360
5361
|
|
|
5361
5362
|
/*
|
|
5362
5363
|
* On mobile, .bc-menu uses position:fixed for a bottom-sheet layout.
|
|
5363
|
-
*
|
|
5364
|
-
*
|
|
5365
|
-
*
|
|
5366
|
-
*
|
|
5364
|
+
* Any transform on an ancestor (even identity matrix) changes the containing
|
|
5365
|
+
* block for position:fixed from the viewport to that ancestor (CSS spec).
|
|
5366
|
+
* The animation system sets transform on .bc-flyout-container for slide/scale,
|
|
5367
|
+
* which breaks the menu's fixed positioning and causes it to size relative to
|
|
5368
|
+
* the 0-width flyout container instead of the viewport.
|
|
5369
|
+
*
|
|
5370
|
+
* Fix: disable transform on mobile when containing a menu. The opacity fade
|
|
5371
|
+
* animation still works. Slide/scale aren't meaningful for a bottom sheet.
|
|
5367
5372
|
*/
|
|
5368
5373
|
@media (max-width: 640px) {
|
|
5369
5374
|
.bc-flyout-container:has(.bc-menu) {
|
|
5375
|
+
transform: none !important;
|
|
5376
|
+
transition-property: opacity !important;
|
|
5377
|
+
}
|
|
5378
|
+
|
|
5379
|
+
/* Dark backdrop behind the bottom-sheet menu on mobile */
|
|
5380
|
+
.bc-flyout-container:has(.bc-menu)::before {
|
|
5381
|
+
content: '';
|
|
5370
5382
|
position: fixed;
|
|
5371
5383
|
inset: 0;
|
|
5384
|
+
background: rgba(0, 0, 0, 0.5);
|
|
5385
|
+
z-index: -1;
|
|
5372
5386
|
}
|
|
5373
5387
|
}
|
|
5374
5388
|
|
|
@@ -10549,8 +10563,8 @@ export type OverlayMode = 'capturing' | 'non-capturing' */
|
|
|
10549
10563
|
|
|
10550
10564
|
.bc-lightbox__close {
|
|
10551
10565
|
position: absolute;
|
|
10552
|
-
top: var(--spacing-
|
|
10553
|
-
right: var(--spacing-
|
|
10566
|
+
top: var(--spacing-lg);
|
|
10567
|
+
right: var(--spacing-lg);
|
|
10554
10568
|
z-index: calc(var(--z-index-overlay, 1000) + 1);
|
|
10555
10569
|
border-radius: 100%;
|
|
10556
10570
|
padding: var(--spacing-base, 4px);
|
|
@@ -14761,8 +14775,8 @@ span.bc-sidebar-link {
|
|
|
14761
14775
|
bottom: 0;
|
|
14762
14776
|
display: flex;
|
|
14763
14777
|
align-items: center;
|
|
14764
|
-
gap: var(--spacing-
|
|
14765
|
-
padding: var(--spacing-
|
|
14778
|
+
gap: var(--spacing-md);
|
|
14779
|
+
padding: var(--spacing-md);
|
|
14766
14780
|
background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
|
|
14767
14781
|
}
|
|
14768
14782
|
|
|
@@ -16182,7 +16196,7 @@ span.bc-sidebar-link {
|
|
|
16182
16196
|
background: none;
|
|
16183
16197
|
border: none;
|
|
16184
16198
|
cursor: pointer;
|
|
16185
|
-
padding: var(--spacing-
|
|
16199
|
+
padding: var(--spacing-2xs) var(--spacing-xs);
|
|
16186
16200
|
border-radius: var(--radius-sm);
|
|
16187
16201
|
transition:
|
|
16188
16202
|
color var(--motion-transition-fast) var(--motion-easing-standard),
|