@xenknight/framework7 0.0.3 → 0.0.6
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/components/actions/actions-ios.less +22 -15
- package/components/actions/actions-rtl.css +1 -1
- package/components/actions/actions-vars.less +4 -7
- package/components/actions/actions.css +1 -1
- package/components/actions/actions.less +0 -3
- package/components/app/app-class.d.ts +2 -0
- package/components/app/app-class.js +10 -2
- package/components/app/app-vars.less +36 -0
- package/components/block/block-vars.less +6 -6
- package/components/button/button-vars.less +11 -10
- package/components/card/card-rtl.css +1 -1
- package/components/card/card-vars.less +5 -5
- package/components/card/card.css +1 -1
- package/components/dialog/dialog-class.js +6 -3
- package/components/dialog/dialog-ios.less +10 -34
- package/components/dialog/dialog-md.less +2 -22
- package/components/dialog/dialog-rtl.css +1 -1
- package/components/dialog/dialog-vars.less +8 -10
- package/components/dialog/dialog.css +1 -1
- package/components/dialog/dialog.js +3 -3
- package/components/dialog/dialog.less +6 -25
- package/components/list/list-vars.less +7 -5
- package/components/list/list.less +1 -1
- package/components/notification/notification-class.js +6 -6
- package/components/notification/notification-ios.less +3 -8
- package/components/notification/notification-md.less +1 -20
- package/components/notification/notification-rtl.css +1 -1
- package/components/notification/notification-vars.less +13 -16
- package/components/notification/notification.css +1 -1
- package/components/notification/notification.less +13 -1
- package/components/page/page-ios.less +4 -4
- package/components/page/page-md.less +2 -2
- package/components/popover/popover-class.js +21 -58
- package/components/popover/popover-ios.less +66 -2
- package/components/popover/popover-md.less +2 -27
- package/components/popover/popover-rtl.css +1 -1
- package/components/popover/popover-vars.less +2 -3
- package/components/popover/popover.css +1 -1
- package/components/popover/popover.d.ts +0 -2
- package/components/popover/popover.js +0 -1
- package/components/popover/popover.less +28 -50
- package/components/range/range-class.js +34 -27
- package/components/range/range-ios.less +60 -0
- package/components/range/range-md.less +67 -4
- package/components/range/range-rtl.css +1 -1
- package/components/range/range-vars.less +18 -13
- package/components/range/range.css +1 -1
- package/components/range/range.d.ts +3 -1
- package/components/range/range.less +11 -24
- package/components/swipeout/swipeout-ios.less +37 -0
- package/components/swipeout/swipeout-md.less +56 -0
- package/components/swipeout/swipeout-rtl.css +1 -1
- package/components/swipeout/swipeout-vars.less +13 -2
- package/components/swipeout/swipeout.css +1 -1
- package/components/swipeout/swipeout.js +99 -23
- package/components/swipeout/swipeout.less +20 -44
- package/components/toast/toast-class.js +2 -2
- package/components/toast/toast-ios.less +2 -0
- package/components/toast/toast-rtl.css +1 -1
- package/components/toast/toast-vars.less +2 -4
- package/components/toast/toast.css +1 -1
- package/components/toast/toast.less +1 -1
- package/components/toggle/toggle-class.js +4 -8
- package/components/toggle/toggle-ios.less +68 -50
- package/components/toggle/toggle-rtl.css +1 -1
- package/components/toggle/toggle-vars.less +2 -2
- package/components/toggle/toggle.css +1 -1
- package/framework7-bundle-rtl.css +551 -452
- package/framework7-bundle-rtl.min.css +5 -5
- package/framework7-bundle.css +551 -452
- package/framework7-bundle.esm.js +2 -2
- package/framework7-bundle.js +2460 -858
- package/framework7-bundle.js.map +1 -1
- package/framework7-bundle.less +2 -2
- package/framework7-bundle.min.css +5 -5
- package/framework7-bundle.min.js +3 -3
- package/framework7-bundle.min.js.map +1 -1
- package/framework7-lite-bundle.esm.js +2 -2
- package/framework7-lite.esm.js +2 -2
- package/framework7-rtl.css +63 -29
- package/framework7-rtl.min.css +4 -4
- package/framework7.css +63 -29
- package/framework7.esm.js +2 -2
- package/framework7.less +2 -2
- package/framework7.min.css +4 -4
- package/less/mixins.less +8 -0
- package/package.json +1 -1
- package/shared/get-support.d.ts +0 -6
- package/shared/get-support.js +1 -20
- package/shared/material-color-utils.js +2153 -679
- package/shared/material-colors.js +97 -17
- package/shared/utils.js +18 -6
package/less/mixins.less
CHANGED
|
@@ -257,6 +257,14 @@
|
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
+
.ios-glass-backdrop() {
|
|
261
|
+
backdrop-filter: saturate(180%) blur(16px);
|
|
262
|
+
}
|
|
263
|
+
.ios-glass() {
|
|
264
|
+
.ios-glass-backdrop();
|
|
265
|
+
box-shadow: var(--f7-glass-shadow);
|
|
266
|
+
background-color: var(--f7-glass-bg-color);
|
|
267
|
+
}
|
|
260
268
|
|
|
261
269
|
.no-scrollbar() {
|
|
262
270
|
scrollbar-width: none;
|
package/package.json
CHANGED
package/shared/get-support.d.ts
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
export interface Support {
|
|
2
2
|
/** Touch events support (touchstart, touchmove, touchend) */
|
|
3
3
|
touch: boolean;
|
|
4
|
-
/** Pointer events support */
|
|
5
|
-
pointerEvents: boolean;
|
|
6
|
-
/** Passive event listener support */
|
|
7
|
-
passiveListener: boolean;
|
|
8
|
-
/** Intersection Observer support */
|
|
9
|
-
intersectionObserver: boolean;
|
|
10
4
|
}
|
|
11
5
|
|
|
12
6
|
export const getSupport: () => Support;
|
package/shared/get-support.js
CHANGED
|
@@ -4,26 +4,7 @@ function calcSupport() {
|
|
|
4
4
|
const window = getWindow();
|
|
5
5
|
const document = getDocument();
|
|
6
6
|
return {
|
|
7
|
-
touch: !!('ontouchstart' in window || window.DocumentTouch && document instanceof window.DocumentTouch)
|
|
8
|
-
pointerEvents: !!window.PointerEvent && 'maxTouchPoints' in window.navigator && window.navigator.maxTouchPoints >= 0,
|
|
9
|
-
passiveListener: function checkPassiveListener() {
|
|
10
|
-
let supportsPassive = false;
|
|
11
|
-
try {
|
|
12
|
-
const opts = Object.defineProperty({}, 'passive', {
|
|
13
|
-
// eslint-disable-next-line
|
|
14
|
-
get() {
|
|
15
|
-
supportsPassive = true;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
window.addEventListener('testPassiveListener', null, opts);
|
|
19
|
-
} catch (e) {
|
|
20
|
-
// No support
|
|
21
|
-
}
|
|
22
|
-
return supportsPassive;
|
|
23
|
-
}(),
|
|
24
|
-
intersectionObserver: function checkObserver() {
|
|
25
|
-
return 'IntersectionObserver' in window;
|
|
26
|
-
}()
|
|
7
|
+
touch: !!('ontouchstart' in window || window.DocumentTouch && document instanceof window.DocumentTouch)
|
|
27
8
|
};
|
|
28
9
|
}
|
|
29
10
|
function getSupport() {
|