@rogieking/figui3 10.0.7 → 10.0.8

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/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [10.0.8]
6
+
7
+ ### Added
8
+
9
+ - Added single-edge top, bottom, left, and right modifiers to the overflow-fade utility.
10
+
11
+ ### Changed
12
+
13
+ - Added edge controls to the vertical and horizontal overflow-fade playground examples.
14
+
5
15
  ## [10.0.7]
6
16
 
7
17
  ### Added
package/README.md CHANGED
@@ -1167,7 +1167,10 @@ For `point-point`, both handles support direct drag (with a dynamic directional
1167
1167
  A progressively enhanced scroll utility that fades its edges when more content
1168
1168
  is available in that direction. Apply the class to a height-constrained
1169
1169
  container for vertical scrolling. Add `.fig-overflow-fade-horizontal` for
1170
- horizontal scrolling.
1170
+ horizontal scrolling. Add `.fig-overflow-fade-top` or
1171
+ `.fig-overflow-fade-bottom` to limit a vertical fade to one edge. Use
1172
+ `.fig-overflow-fade-left` or `.fig-overflow-fade-right` for a single horizontal
1173
+ edge; these modifiers imply horizontal scrolling.
1171
1174
 
1172
1175
  | Custom property | Default | Description |
1173
1176
  |---|---|---|---|
@@ -1194,6 +1197,16 @@ timelines. Unsupported browsers retain ordinary scrolling without a fade.
1194
1197
  </div>
1195
1198
  ```
1196
1199
 
1200
+ ```html
1201
+ <div class="fig-overflow-fade fig-overflow-fade-bottom">
1202
+ <!-- Long content that fades only at the bottom -->
1203
+ </div>
1204
+
1205
+ <div class="fig-overflow-fade fig-overflow-fade-right">
1206
+ <!-- Wide content that fades only at the right -->
1207
+ </div>
1208
+ ```
1209
+
1197
1210
  ---
1198
1211
 
1199
1212
  #### Stack
package/components.css CHANGED
@@ -5405,7 +5405,11 @@ fig-skeleton {
5405
5405
  overflow-y: auto;
5406
5406
  }
5407
5407
 
5408
- .fig-overflow-fade.fig-overflow-fade-horizontal {
5408
+ .fig-overflow-fade:is(
5409
+ .fig-overflow-fade-horizontal,
5410
+ .fig-overflow-fade-left,
5411
+ .fig-overflow-fade-right
5412
+ ) {
5409
5413
  --fig-overflow-fade-clear-left: 0px;
5410
5414
 
5411
5415
  overflow-x: auto;
@@ -5734,7 +5738,13 @@ fig-toolbelt {
5734
5738
  }
5735
5739
 
5736
5740
  @supports (animation-timeline: scroll(self block)) {
5737
- .fig-overflow-fade:not(.fig-overflow-fade-horizontal),
5741
+ .fig-overflow-fade:not(
5742
+ :is(
5743
+ .fig-overflow-fade-horizontal,
5744
+ .fig-overflow-fade-left,
5745
+ .fig-overflow-fade-right
5746
+ )
5747
+ ),
5738
5748
  fig-toolbelt[layout="vertical"]::part(viewport) {
5739
5749
  mask-image: linear-gradient(
5740
5750
  to bottom,
@@ -5866,10 +5876,41 @@ fig-toolbelt {
5866
5876
  calc(100% - var(--fig-overflow-fade-size)) 100%;
5867
5877
  }
5868
5878
 
5879
+ .fig-overflow-fade.fig-overflow-fade-top:not(
5880
+ .fig-overflow-fade-bottom
5881
+ ):not(
5882
+ :is(
5883
+ .fig-overflow-fade-horizontal,
5884
+ .fig-overflow-fade-left,
5885
+ .fig-overflow-fade-right
5886
+ )
5887
+ ) {
5888
+ animation: fig-overflow-fade-in-top 1ms linear both;
5889
+ animation-timeline: scroll(self block);
5890
+ animation-range: 0 var(--fig-overflow-fade-size);
5891
+ }
5892
+
5893
+ .fig-overflow-fade.fig-overflow-fade-bottom:not(
5894
+ .fig-overflow-fade-top
5895
+ ):not(
5896
+ :is(
5897
+ .fig-overflow-fade-horizontal,
5898
+ .fig-overflow-fade-left,
5899
+ .fig-overflow-fade-right
5900
+ )
5901
+ ) {
5902
+ animation: fig-overflow-fade-out-bottom 1ms linear both;
5903
+ animation-timeline: scroll(self block);
5904
+ animation-range: calc(100% - var(--fig-overflow-fade-size)) 100%;
5905
+ }
5869
5906
  }
5870
5907
 
5871
5908
  @supports (animation-timeline: scroll(self inline)) {
5872
- .fig-overflow-fade.fig-overflow-fade-horizontal,
5909
+ .fig-overflow-fade:is(
5910
+ .fig-overflow-fade-horizontal,
5911
+ .fig-overflow-fade-left,
5912
+ .fig-overflow-fade-right
5913
+ ),
5873
5914
  fig-toolbelt:not([layout="vertical"])::part(viewport) {
5874
5915
  mask-image: linear-gradient(
5875
5916
  to right,
@@ -6000,6 +6041,18 @@ fig-toolbelt {
6000
6041
  0 var(--fig-overflow-fade-size),
6001
6042
  calc(100% - var(--fig-overflow-fade-size)) 100%;
6002
6043
  }
6044
+
6045
+ .fig-overflow-fade.fig-overflow-fade-left:not(.fig-overflow-fade-right) {
6046
+ animation: fig-overflow-fade-in-left 1ms linear both;
6047
+ animation-timeline: scroll(self inline);
6048
+ animation-range: 0 var(--fig-overflow-fade-size);
6049
+ }
6050
+
6051
+ .fig-overflow-fade.fig-overflow-fade-right:not(.fig-overflow-fade-left) {
6052
+ animation: fig-overflow-fade-out-right 1ms linear both;
6053
+ animation-timeline: scroll(self inline);
6054
+ animation-range: calc(100% - var(--fig-overflow-fade-size)) 100%;
6055
+ }
6003
6056
  }
6004
6057
 
6005
6058
  @keyframes fig-overflow-fade-in-top {