frosted-ui 0.0.1-canary.83 → 0.0.1-canary.85

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/styles.css +21 -62
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frosted-ui",
3
- "version": "0.0.1-canary.83",
3
+ "version": "0.0.1-canary.85",
4
4
  "private": false,
5
5
  "main": "./dist/cjs/index.js",
6
6
  "types": "./dist/cjs/index.d.ts",
package/styles.css CHANGED
@@ -3789,8 +3789,10 @@ video {
3789
3789
  --color-tooltip-outline: transparent;
3790
3790
  }
3791
3791
 
3792
- :is(.dark, .dark-theme),
3793
- :is(.dark, .dark-theme) :where(.frosted-ui:not(.light, .light-theme)) {
3792
+ .dark,
3793
+ .dark-theme,
3794
+ .dark :where(.frosted-ui:not(.light, .light-theme)),
3795
+ .dark-theme :where(.frosted-ui:not(.light, .light-theme)) {
3794
3796
  --color-background: var(--gray-1);
3795
3797
  --color-overlay: var(--black-a8);
3796
3798
  --color-panel-solid: var(--gray-2);
@@ -3895,7 +3897,7 @@ video {
3895
3897
  --color-focus-root: var(--accent-8);
3896
3898
  }
3897
3899
 
3898
- .frosted-ui ::selection {
3900
+ ::selection {
3899
3901
  background-color: var(--color-selection-root);
3900
3902
  }
3901
3903
 
@@ -5544,8 +5546,10 @@ video {
5544
5546
  }
5545
5547
 
5546
5548
  @supports (color: color-mix(in oklab, white, black)) {
5547
- :is(.dark, .dark-theme),
5548
- :is(.dark, .dark-theme) :where(.frosted-ui:not(.light, .light-theme)) {
5549
+ .dark,
5550
+ .dark-theme,
5551
+ .dark :where(.frosted-ui:not(.light, .light-theme)),
5552
+ .dark-theme :where(.frosted-ui:not(.light, .light-theme)) {
5549
5553
  --shadow-1:
5550
5554
  inset 0 -1px 1px 0 var(--gray-a3),
5551
5555
  inset 0 0 0 1px var(--gray-a3),
@@ -5581,11 +5585,8 @@ video {
5581
5585
  0 16px 64px var(--black-a6),
5582
5586
  0 16px 36px -20px var(--black-a11);
5583
5587
  --card-classic-hover-box-shadow:
5584
- 0 0 0 1px color-mix(in oklab, var(--gray-a7), var(--gray-8)),
5585
- 0 0 1px 1px var(--gray-a7),
5586
- 0 0 1px -1px var(--gray-a4),
5587
- 0 0 3px -2px var(--gray-a3),
5588
- 0 0 12px -2px var(--gray-a3),
5588
+ 0 0 0 1px color-mix(in oklab, var(--gray-a7), var(--gray-8)), 0 0 1px 1px var(--gray-a7),
5589
+ 0 0 1px -1px var(--gray-a4), 0 0 3px -2px var(--gray-a3), 0 0 12px -2px var(--gray-a3),
5589
5590
  0 0 16px -8px var(--gray-a9);
5590
5591
  }
5591
5592
  }
@@ -6152,12 +6153,10 @@ video {
6152
6153
  }
6153
6154
  .fui-DrawerContent:where([data-state='open']) {
6154
6155
  animation: fui-drawer-content-show 400ms cubic-bezier(0.32, 0.72, 0, 1);
6155
- animation: fui-drawer-content-show 400ms cubic-bezier(0.16, 1, 0.3, 1);
6156
6156
  }
6157
6157
 
6158
6158
  .fui-DrawerContent:where([data-state='closed']) {
6159
6159
  animation: fui-drawer-content-hide 400ms cubic-bezier(0.32, 0.72, 0, 1);
6160
- animation: fui-drawer-content-hide 300ms cubic-bezier(0.16, 1, 0.3, 1);
6161
6160
  }
6162
6161
  }
6163
6162
 
@@ -9768,22 +9767,13 @@ video {
9768
9767
  height: var(--skeleton-avatar-size);
9769
9768
  flex-shrink: 0;
9770
9769
 
9771
- background-size: 400% 100%;
9772
- background-image: linear-gradient(
9773
- 270deg,
9774
- var(--skeleton-background-color),
9775
- var(--skeleton-background-shimmer-color),
9776
- var(--skeleton-background-shimmer-color),
9777
- var(--skeleton-background-color)
9778
- );
9770
+ background: var(--skeleton-background-color);
9779
9771
 
9780
- --skeleton-background-color: var(--accent-a2);
9781
- --skeleton-background-shimmer-color: var(--accent-a3);
9772
+ --skeleton-background-color: var(--accent-a3);
9782
9773
  }
9783
9774
 
9784
9775
  .fui-SkeletonAvatar:where(.fui-high-contrast) {
9785
9776
  --skeleton-background-color: var(--accent-a4);
9786
- --skeleton-background-shimmer-color: var(--accent-a6);
9787
9777
  }
9788
9778
 
9789
9779
  .fui-SkeletonAvatar:where(.fui-shape-circle) {
@@ -9839,16 +9829,13 @@ video {
9839
9829
  align-items: center;
9840
9830
  justify-content: center;
9841
9831
  margin: 0;
9842
-
9843
9832
  height: var(--skeleton-text-line-height);
9844
9833
 
9845
- --skeleton-background-color: var(--accent-a2);
9846
- --skeleton-background-shimmer-color: var(--accent-a3);
9834
+ --skeleton-background-color: var(--accent-a3);
9847
9835
  }
9848
9836
 
9849
9837
  .fui-SkeletonText:where(.fui-high-contrast) {
9850
9838
  --skeleton-background-color: var(--accent-a4);
9851
- --skeleton-background-shimmer-color: var(--accent-a6);
9852
9839
  }
9853
9840
 
9854
9841
  .fui-SkeletonText::after {
@@ -9856,15 +9843,7 @@ video {
9856
9843
  width: 100%;
9857
9844
  height: var(--skeleton-text-size);
9858
9845
 
9859
- background-size: 400% 100%;
9860
- background-image: linear-gradient(
9861
- 270deg,
9862
- var(--skeleton-background-color),
9863
- var(--skeleton-background-shimmer-color),
9864
- var(--skeleton-background-shimmer-color),
9865
- var(--skeleton-background-color)
9866
- );
9867
-
9846
+ background: var(--skeleton-background-color);
9868
9847
  border-radius: var(--skeleton-text-border-radius);
9869
9848
  }
9870
9849
 
@@ -9935,47 +9914,27 @@ video {
9935
9914
  user-select: none;
9936
9915
  flex-shrink: 0;
9937
9916
 
9938
- background-size: 400% 100%;
9939
- background-image: linear-gradient(
9940
- 270deg,
9941
- var(--skeleton-background-color),
9942
- var(--skeleton-background-shimmer-color),
9943
- var(--skeleton-background-shimmer-color),
9944
- var(--skeleton-background-color)
9945
- );
9917
+ background: var(--skeleton-background-color);
9946
9918
 
9947
- --skeleton-background-color: var(--accent-a2);
9948
- --skeleton-background-shimmer-color: var(--accent-a3);
9919
+ --skeleton-background-color: var(--accent-a3);
9949
9920
  }
9950
9921
 
9951
9922
  .fui-SkeletonRect:where(.fui-high-contrast) {
9952
9923
  --skeleton-background-color: var(--accent-a4);
9953
- --skeleton-background-shimmer-color: var(--accent-a6);
9954
9924
  }
9955
9925
 
9956
9926
  @media (prefers-reduced-motion: no-preference) {
9957
- @keyframes fui-skeleton-shimmer {
9958
- from {
9959
- background-position: 200% 0;
9960
- }
9961
- to {
9962
- background-position: -200% 0;
9927
+ @keyframes fui-skeleton-pulse {
9928
+ 50% {
9929
+ opacity: 0.5;
9963
9930
  }
9964
9931
  }
9965
9932
 
9966
9933
  .fui-SkeletonAvatar,
9967
9934
  .fui-SkeletonText::after,
9968
9935
  .fui-SkeletonRect {
9969
- animation: fui-skeleton-shimmer 8s ease-in-out infinite;
9936
+ animation: fui-skeleton-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
9970
9937
  }
9971
-
9972
- .fui-DrawerContent:where([data-state='open'])::before {
9973
- animation: fui-drawer-backdrop-show 400ms cubic-bezier(0.16, 1, 0.3, 1);
9974
- }
9975
-
9976
- .fui-DrawerContent:where([data-state='closed'])::before {
9977
- animation: fui-drawer-backdrop-hide 300ms cubic-bezier(0.16, 1, 0.3, 1);
9978
- }
9979
9938
  }
9980
9939
 
9981
9940
  .fui-SliderRoot {