@ethlete/components 1.0.0-next.112 → 1.0.0-next.114
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 +18 -0
- package/design/scrollable.ts +0 -3
- package/fesm2022/ethlete-components.mjs +209 -62
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/overlay/overlay-container.component.css +6 -1
- package/src/lib/overlay/strategies/sheet-styles.component.css +33 -16
- package/src/lib/scrollable/headless/scrollable-masks.component.css +4 -4
- package/types/ethlete-components.d.ts +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.0-next.114
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Hide history-backed overlays immediately when a browser-animated Back or Forward gesture dismisses them, preventing a flash after an iOS swipe-back.
|
|
8
|
+
|
|
9
|
+
## 1.0.0-next.113
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Keep the scrollable’s edge fade and arrow off during elastic overscroll on Safari.
|
|
14
|
+
- A drag-to-dismiss swipe that can scroll a container under the pointer (a tab bar) scrolls it and no longer closes the sheet.
|
|
15
|
+
- Overlay routers skip their slide and close animations when the browser has already animated a history navigation.
|
|
16
|
+
- `et-scrollable` no longer sets the host class `et-scrollable--has-partial-items`. Style on `et-scrollable--can-scroll` together with `et-scrollable--is-at-start` or `et-scrollable--is-at-end` instead. `@ethlete/cdk` keeps the class.
|
|
17
|
+
- Scrollable masks show on every edge that can still scroll, also when no item is cut off. `--et-scrollable-mask-start-size` and `--et-scrollable-mask-end-size` size one side; `0px` turns it off.
|
|
18
|
+
- Overlays opened during a user gesture focus an available initial text field immediately so iOS Safari can open the keyboard.
|
|
19
|
+
- Sheet overshoot stays filled during the opening bounce and rubber-band drag when the app adds a shadow to the pane.
|
|
20
|
+
|
|
3
21
|
## 1.0.0-next.112
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/design/scrollable.ts
CHANGED
|
@@ -27,8 +27,6 @@ export type ScrollableMockOptions = {
|
|
|
27
27
|
canScroll?: boolean;
|
|
28
28
|
/** The scroll position the directive reads: it decides the start and end classes. Left out, `start`. */
|
|
29
29
|
position?: 'start' | 'middle' | 'end';
|
|
30
|
-
/** Draws `et-scrollable--has-partial-items`. Left out, true while the content can scroll and masks render. */
|
|
31
|
-
partialItems?: boolean;
|
|
32
30
|
/** Left out, the masks render, as `renderMasks` defaults to. */
|
|
33
31
|
renderMasks?: boolean;
|
|
34
32
|
maskVariant?: 'gradient' | 'border';
|
|
@@ -145,7 +143,6 @@ export const scrollable = (options: ScrollableMockOptions) => {
|
|
|
145
143
|
canScroll && 'et-scrollable--can-scroll',
|
|
146
144
|
atStart && 'et-scrollable--is-at-start',
|
|
147
145
|
atEnd && 'et-scrollable--is-at-end',
|
|
148
|
-
(options.partialItems ?? (canScroll && renderMasks)) && 'et-scrollable--has-partial-items',
|
|
149
146
|
options.darken && 'et-scrollable--darken-non-intersecting-items',
|
|
150
147
|
options.stickyButtons && options.buttons === 'inside' && 'et-scrollable--sticky-buttons',
|
|
151
148
|
options.class,
|