@micromag/element-scroll 0.3.497 → 0.3.503

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.
@@ -1 +1 @@
1
- .micromag-element-scroll-container.micromag-element-scroll-withScroll .micromag-element-scroll-scrollable{scrollbar-width:none}.micromag-element-scroll-container.micromag-element-scroll-withScroll .micromag-element-scroll-scrollable::-webkit-scrollbar{display:none}.micromag-element-scroll-container{height:100%;margin:0 auto;min-height:inherit;position:relative}.micromag-element-scroll-container.micromag-element-scroll-withScroll .micromag-element-scroll-scrollable{-ms-scroll-chaining:none;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.micromag-element-scroll-container.micromag-element-scroll-withScroll.micromag-element-scroll-containOverscroll .micromag-element-scroll-scrollable{-ms-scroll-chaining:none;overscroll-behavior:contain}.micromag-element-scroll-container.micromag-element-scroll-top .micromag-element-scroll-scrollee{margin-bottom:auto}.micromag-element-scroll-container.micromag-element-scroll-middle .micromag-element-scroll-scrollee{margin:auto 0}.micromag-element-scroll-container.micromag-element-scroll-bottom .micromag-element-scroll-scrollee{margin-top:auto}.micromag-element-scroll-container.micromag-element-scroll-withArrow .micromag-element-scroll-arrowContainer{opacity:1}.micromag-element-scroll-scrollable{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;min-height:inherit;width:100%}.micromag-element-scroll-arrowContainer{bottom:0;height:5rem;left:0;opacity:0;pointer-events:none;position:absolute;text-align:center;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition:opacity .3s ease;transition:opacity .3s ease;width:100%;z-index:3}.micromag-element-scroll-withShadow .micromag-element-scroll-arrowContainer:after{background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(28,28,28,0)),to(rgba(28,28,28,.85)));background-image:linear-gradient(180deg,rgba(28,28,28,0),rgba(28,28,28,.85));content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:2}.micromag-element-scroll-arrow{-webkit-animation:micromag-element-scroll-upAndDown .75s cubic-bezier(.4,0,.6,1) infinite alternate;animation:micromag-element-scroll-upAndDown .75s cubic-bezier(.4,0,.6,1) infinite alternate;color:#fff;display:inline-block;height:auto;position:relative;top:1rem;width:1rem;z-index:3}.micromag-element-scroll-arrow path{stroke-width:20;stroke:#1c1c1c}@-webkit-keyframes micromag-element-scroll-upAndDown{0%{-webkit-transform:translateY(-30%);transform:translateY(-30%)}to{-webkit-transform:translateY(30%);transform:translateY(30%)}}@keyframes micromag-element-scroll-upAndDown{0%{-webkit-transform:translateY(-30%);transform:translateY(-30%)}to{-webkit-transform:translateY(30%);transform:translateY(30%)}}
1
+ .micromag-element-scroll-container.micromag-element-scroll-withScroll .micromag-element-scroll-scrollable{scrollbar-width:none}.micromag-element-scroll-container.micromag-element-scroll-withScroll .micromag-element-scroll-scrollable::-webkit-scrollbar{display:none}.micromag-element-scroll-container{height:100%;margin:0 auto;min-height:inherit;position:relative}.micromag-element-scroll-container .micromag-element-scroll-scrollable{-ms-scroll-chaining:none;height:100%;min-height:inherit;overscroll-behavior:contain;width:100%}.micromag-element-scroll-container.micromag-element-scroll-withScroll .micromag-element-scroll-scrollable{left:0;overflow-x:hidden;overflow-y:auto;position:absolute;top:0}.micromag-element-scroll-container.micromag-element-scroll-top .micromag-element-scroll-scrollee{margin-bottom:auto}.micromag-element-scroll-container.micromag-element-scroll-middle .micromag-element-scroll-scrollable{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.micromag-element-scroll-container.micromag-element-scroll-middle .micromag-element-scroll-scrollee{margin:auto 0}.micromag-element-scroll-container.micromag-element-scroll-bottom .micromag-element-scroll-scrollable{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.micromag-element-scroll-container.micromag-element-scroll-bottom .micromag-element-scroll-scrollee{margin-top:auto}.micromag-element-scroll-container.micromag-element-scroll-withArrow .micromag-element-scroll-arrowContainer{opacity:1}.micromag-element-scroll-arrowContainer{bottom:0;height:5rem;left:0;opacity:0;pointer-events:none;position:absolute;text-align:center;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition:opacity .3s ease;transition:opacity .3s ease;width:100%;z-index:3}.micromag-element-scroll-withShadow .micromag-element-scroll-arrowContainer:after{background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(28,28,28,0)),to(rgba(28,28,28,.85)));background-image:linear-gradient(180deg,rgba(28,28,28,0),rgba(28,28,28,.85));content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:2}.micromag-element-scroll-arrow{-webkit-animation:micromag-element-scroll-upAndDown .75s cubic-bezier(.4,0,.6,1) infinite alternate;animation:micromag-element-scroll-upAndDown .75s cubic-bezier(.4,0,.6,1) infinite alternate;color:#fff;display:inline-block;height:auto;position:relative;top:1rem;width:1rem;z-index:3}.micromag-element-scroll-arrow path{stroke-width:20;stroke:#1c1c1c}@-webkit-keyframes micromag-element-scroll-upAndDown{0%{-webkit-transform:translateY(-30%);transform:translateY(-30%)}to{-webkit-transform:translateY(30%);transform:translateY(30%)}}@keyframes micromag-element-scroll-upAndDown{0%{-webkit-transform:translateY(-30%);transform:translateY(-30%)}to{-webkit-transform:translateY(30%);transform:translateY(30%)}}
package/es/index.js CHANGED
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
6
6
  import React, { useState, useRef, useEffect } from 'react';
7
7
  import { useDimensionObserver } from '@micromag/core/hooks';
8
8
 
9
- var styles = {"container":"micromag-element-scroll-container","withScroll":"micromag-element-scroll-withScroll","scrollable":"micromag-element-scroll-scrollable","containOverscroll":"micromag-element-scroll-containOverscroll","top":"micromag-element-scroll-top","scrollee":"micromag-element-scroll-scrollee","middle":"micromag-element-scroll-middle","bottom":"micromag-element-scroll-bottom","withArrow":"micromag-element-scroll-withArrow","arrowContainer":"micromag-element-scroll-arrowContainer","withShadow":"micromag-element-scroll-withShadow","arrow":"micromag-element-scroll-arrow","upAndDown":"micromag-element-scroll-upAndDown"};
9
+ var styles = {"container":"micromag-element-scroll-container","withScroll":"micromag-element-scroll-withScroll","scrollable":"micromag-element-scroll-scrollable","top":"micromag-element-scroll-top","scrollee":"micromag-element-scroll-scrollee","middle":"micromag-element-scroll-middle","bottom":"micromag-element-scroll-bottom","withArrow":"micromag-element-scroll-withArrow","arrowContainer":"micromag-element-scroll-arrowContainer","withShadow":"micromag-element-scroll-withShadow","arrow":"micromag-element-scroll-arrow","upAndDown":"micromag-element-scroll-upAndDown"};
10
10
 
11
11
  var propTypes = {
12
12
  width: PropTypes.number,
@@ -19,7 +19,6 @@ var propTypes = {
19
19
  onScrolledBottom: PropTypes.func,
20
20
  onScrolledNotBottom: PropTypes.func,
21
21
  onScrollHeightChange: PropTypes.func,
22
- contain: PropTypes.bool,
23
22
  scrollContainerRef: PropTypes.any,
24
23
  // eslint-disable-line
25
24
  withShadow: PropTypes.bool,
@@ -36,7 +35,6 @@ var defaultProps = {
36
35
  onScrolledBottom: null,
37
36
  onScrolledNotBottom: null,
38
37
  onScrollHeightChange: null,
39
- contain: false,
40
38
  scrollContainerRef: null,
41
39
  withShadow: false,
42
40
  withArrow: true
@@ -52,7 +50,6 @@ function Scroll(_ref) {
52
50
  onScrolledBottom = _ref.onScrolledBottom,
53
51
  onScrolledNotBottom = _ref.onScrolledNotBottom,
54
52
  onScrollHeightChange = _ref.onScrollHeightChange,
55
- contain = _ref.contain,
56
53
  scrollContainerRef = _ref.scrollContainerRef,
57
54
  withShadow = _ref.withShadow,
58
55
  showArrow = _ref.withArrow;
@@ -143,7 +140,7 @@ function Scroll(_ref) {
143
140
  }
144
141
  }, [scrolleeRef, scrollPosition]);
145
142
  return /*#__PURE__*/React.createElement("div", {
146
- className: classNames([styles.container, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, styles.withScroll, !disabled), styles.containOverscroll, contain), className, className !== null), styles[verticalAlign], verticalAlign !== null), styles.withArrow, showArrow && withArrow), styles.withShadow, withShadow)]),
143
+ className: classNames([styles.container, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, styles.withScroll, !disabled), className, className !== null), styles[verticalAlign], verticalAlign !== null), styles.withArrow, showArrow && withArrow), styles.withShadow, withShadow)]),
147
144
  style: finalStyle
148
145
  }, /*#__PURE__*/React.createElement("div", Object.assign({
149
146
  className: styles.scrollable,
package/lib/index.js CHANGED
@@ -8,7 +8,7 @@ var PropTypes = require('prop-types');
8
8
  var React = require('react');
9
9
  var hooks = require('@micromag/core/hooks');
10
10
 
11
- var styles = {"container":"micromag-element-scroll-container","withScroll":"micromag-element-scroll-withScroll","scrollable":"micromag-element-scroll-scrollable","containOverscroll":"micromag-element-scroll-containOverscroll","top":"micromag-element-scroll-top","scrollee":"micromag-element-scroll-scrollee","middle":"micromag-element-scroll-middle","bottom":"micromag-element-scroll-bottom","withArrow":"micromag-element-scroll-withArrow","arrowContainer":"micromag-element-scroll-arrowContainer","withShadow":"micromag-element-scroll-withShadow","arrow":"micromag-element-scroll-arrow","upAndDown":"micromag-element-scroll-upAndDown"};
11
+ var styles = {"container":"micromag-element-scroll-container","withScroll":"micromag-element-scroll-withScroll","scrollable":"micromag-element-scroll-scrollable","top":"micromag-element-scroll-top","scrollee":"micromag-element-scroll-scrollee","middle":"micromag-element-scroll-middle","bottom":"micromag-element-scroll-bottom","withArrow":"micromag-element-scroll-withArrow","arrowContainer":"micromag-element-scroll-arrowContainer","withShadow":"micromag-element-scroll-withShadow","arrow":"micromag-element-scroll-arrow","upAndDown":"micromag-element-scroll-upAndDown"};
12
12
 
13
13
  var propTypes = {
14
14
  width: PropTypes.number,
@@ -21,7 +21,6 @@ var propTypes = {
21
21
  onScrolledBottom: PropTypes.func,
22
22
  onScrolledNotBottom: PropTypes.func,
23
23
  onScrollHeightChange: PropTypes.func,
24
- contain: PropTypes.bool,
25
24
  scrollContainerRef: PropTypes.any,
26
25
  // eslint-disable-line
27
26
  withShadow: PropTypes.bool,
@@ -38,7 +37,6 @@ var defaultProps = {
38
37
  onScrolledBottom: null,
39
38
  onScrolledNotBottom: null,
40
39
  onScrollHeightChange: null,
41
- contain: false,
42
40
  scrollContainerRef: null,
43
41
  withShadow: false,
44
42
  withArrow: true
@@ -54,7 +52,6 @@ function Scroll(_ref) {
54
52
  onScrolledBottom = _ref.onScrolledBottom,
55
53
  onScrolledNotBottom = _ref.onScrolledNotBottom,
56
54
  onScrollHeightChange = _ref.onScrollHeightChange,
57
- contain = _ref.contain,
58
55
  scrollContainerRef = _ref.scrollContainerRef,
59
56
  withShadow = _ref.withShadow,
60
57
  showArrow = _ref.withArrow;
@@ -145,7 +142,7 @@ function Scroll(_ref) {
145
142
  }
146
143
  }, [scrolleeRef, scrollPosition]);
147
144
  return /*#__PURE__*/React.createElement("div", {
148
- className: classNames([styles.container, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, styles.withScroll, !disabled), styles.containOverscroll, contain), className, className !== null), styles[verticalAlign], verticalAlign !== null), styles.withArrow, showArrow && withArrow), styles.withShadow, withShadow)]),
145
+ className: classNames([styles.container, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, styles.withScroll, !disabled), className, className !== null), styles[verticalAlign], verticalAlign !== null), styles.withArrow, showArrow && withArrow), styles.withShadow, withShadow)]),
149
146
  style: finalStyle
150
147
  }, /*#__PURE__*/React.createElement("div", Object.assign({
151
148
  className: styles.scrollable,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-scroll",
3
- "version": "0.3.497",
3
+ "version": "0.3.503",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -63,7 +63,7 @@
63
63
  "@fortawesome/fontawesome-svg-core": "^1.2.32",
64
64
  "@fortawesome/free-solid-svg-icons": "^5.15.1",
65
65
  "@fortawesome/react-fontawesome": "^0.1.13",
66
- "@micromag/core": "^0.3.497",
66
+ "@micromag/core": "^0.3.503",
67
67
  "@use-gesture/react": "^10.3.0",
68
68
  "classnames": "^2.2.6",
69
69
  "lodash": "^4.17.21",
@@ -75,5 +75,5 @@
75
75
  "access": "public",
76
76
  "registry": "https://registry.npmjs.org/"
77
77
  },
78
- "gitHead": "94e795f19f551f20411fb12fada0906c5cdb0d4b"
78
+ "gitHead": "50e91d4d3f655cd4fbe8a9fc1c3dec54f3fc63ca"
79
79
  }