@lanaco/lnc-react-ui 3.8.0 → 3.9.0

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/lib/index.esm.js CHANGED
@@ -82416,24 +82416,26 @@ NestedDropdownItem.propTypes = {
82416
82416
  __TYPE__: PropTypes.string
82417
82417
  };
82418
82418
 
82419
- var _excluded$4 = ["direction", "open", "duration", "enableOverlay", "zIndex", "closeOnClickOutside", "closeOnSwipe", "isFullPage", "onClose", "onOpen", "className", "style", "color", "overlayColor", "size", "drawerSize", "children"];
82419
+ var _excluded$4 = ["direction", "open", "duration", "enableOverlay", "zIndex", "closeOnClickOutside", "closeOnSwipe", "isFullPage", "unsetHeight", "unsetWidth", "onClose", "onOpen", "className", "style", "color", "overlayColor", "size", "drawerSize", "children"];
82420
82420
  var _templateObject$4, _templateObject2;
82421
- var getHeight = function getHeight(direction, isOpen, isFullPage, drawerSize) {
82422
- if (direction === "right" || direction === "left") return "100%";
82423
- if (isOpen && isFullPage) return "100%";
82424
- if (isOpen) return drawerSize;
82425
- return 0;
82421
+ var getHeight = function getHeight(direction, isOpen, isFullPage, drawerSize, unsetHeight) {
82422
+ if (direction === "right" || direction === "left") return "height: 100%;";
82423
+ if (isOpen && isFullPage) return "height: 100%;";
82424
+ if (isOpen && unsetHeight === true) return;
82425
+ if (isOpen) return "height: " + drawerSize + ";";
82426
+ return "height: 0;";
82426
82427
  };
82427
- var getWidth = function getWidth(direction, isOpen, isFullPage, drawerSize) {
82428
- if (direction === "top" || direction === "bottom") return "100%";
82429
- if (isOpen && isFullPage) return "100%";
82430
- if (isOpen) return drawerSize;
82431
- return 0;
82428
+ var getWidth = function getWidth(direction, isOpen, isFullPage, drawerSize, unsetWidth) {
82429
+ if (direction === "top" || direction === "bottom") return "width: 100%;";
82430
+ if (isOpen && isFullPage) return "width: 100%;";
82431
+ if (isOpen && unsetWidth === true) return;
82432
+ if (isOpen) return "width: " + drawerSize + ";";
82433
+ return "width: 0;";
82432
82434
  };
82433
- var StyledDrawer = newStyled.div(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteral(["\n touch-action: none;\n overflow: auto;\n max-height: \"100vh\";\n height: ", ";\n max-width: \"100vw\";\n width: ", ";\n position: fixed;\n z-index: ", ";\n ", ";\n ", ";\n -webkit-transition: ", ";\n -moz-transition: ", ";\n -ms-transition: ", ";\n -o-transition: ", ";\n transition: ", ";\n padding: ", ";\n\n box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);\n\n background-color: ", ";\n color: ", ";\n ", ";\n"])), function (props) {
82434
- return getHeight(props.direction, props.isOpen, props.isFullPage, props.drawerSize);
82435
+ var StyledDrawer = newStyled.div(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteral(["\n touch-action: none;\n overflow: auto;\n max-height: \"100vh\";\n ", "\n max-width: \"100vw\";\n ", "\n position: fixed;\n z-index: ", ";\n ", ";\n ", ";\n -webkit-transition: ", ";\n -moz-transition: ", ";\n -ms-transition: ", ";\n -o-transition: ", ";\n transition: ", ";\n padding: ", ";\n\n box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);\n\n background-color: ", ";\n color: ", ";\n ", ";\n"])), function (props) {
82436
+ return getHeight(props.direction, props.isOpen, props.isFullPage, props.drawerSize, props.unsetHeight);
82435
82437
  }, function (props) {
82436
- return getWidth(props.direction, props.isOpen, props.isFullPage, props.drawerSize);
82438
+ return getWidth(props.direction, props.isOpen, props.isFullPage, props.drawerSize, props.unsetWidth);
82437
82439
  }, function (props) {
82438
82440
  return props.zIndex;
82439
82441
  }, function (props) {
@@ -82477,6 +82479,8 @@ var SwipeableDrawer = /*#__PURE__*/React__default.forwardRef(function (props, re
82477
82479
  closeOnClickOutside = props.closeOnClickOutside,
82478
82480
  closeOnSwipe = props.closeOnSwipe,
82479
82481
  isFullPage = props.isFullPage,
82482
+ unsetHeight = props.unsetHeight,
82483
+ unsetWidth = props.unsetWidth,
82480
82484
  onClose = props.onClose,
82481
82485
  onOpen = props.onOpen,
82482
82486
  className = props.className,
@@ -82582,6 +82586,8 @@ var SwipeableDrawer = /*#__PURE__*/React__default.forwardRef(function (props, re
82582
82586
  isOpen: _isOpen,
82583
82587
  direction: direction,
82584
82588
  isFullPage: isFullPage,
82589
+ unsetHeight: unsetHeight,
82590
+ unsetWidth: unsetWidth,
82585
82591
  duration: duration,
82586
82592
  color: color,
82587
82593
  theme: theme,
@@ -82591,7 +82597,7 @@ var SwipeableDrawer = /*#__PURE__*/React__default.forwardRef(function (props, re
82591
82597
  drawerSize: drawerSize,
82592
82598
  onTouchStart: handleTouchStart,
82593
82599
  onTouchMove: handleTouchMove
82594
- }, rest), children)));
82600
+ }, rest), children, "askldjflkasjdflkasj ajdklfjals", /*#__PURE__*/React__default.createElement("div", null, "jsldfjlaskdjf"), /*#__PURE__*/React__default.createElement("div", null, "asdjkfaklsdjfkl"))));
82595
82601
  });
82596
82602
  SwipeableDrawer.defaultProps = {
82597
82603
  direction: "right",
@@ -82605,6 +82611,8 @@ SwipeableDrawer.defaultProps = {
82605
82611
  isFullPage: false,
82606
82612
  drawerSize: "12.5rem",
82607
82613
  size: "small",
82614
+ unsetHeight: false,
82615
+ unsetWidth: false,
82608
82616
  //-------------------------
82609
82617
  onClose: function onClose() {},
82610
82618
  onOpen: function onOpen() {},
@@ -82633,6 +82641,8 @@ SwipeableDrawer.propTypes = {
82633
82641
  * Determines whether drawer takes up the whole page
82634
82642
  */
82635
82643
  isFullPage: PropTypes.bool,
82644
+ unsetHeight: PropTypes.bool,
82645
+ unsetWidth: PropTypes.bool,
82636
82646
  //---------------------------------------------------------------
82637
82647
  onClose: PropTypes.func,
82638
82648
  onOpen: PropTypes.func,
package/lib/index.js CHANGED
@@ -82465,24 +82465,26 @@ NestedDropdownItem.propTypes = {
82465
82465
  __TYPE__: PropTypes__default["default"].string
82466
82466
  };
82467
82467
 
82468
- var _excluded$4 = ["direction", "open", "duration", "enableOverlay", "zIndex", "closeOnClickOutside", "closeOnSwipe", "isFullPage", "onClose", "onOpen", "className", "style", "color", "overlayColor", "size", "drawerSize", "children"];
82468
+ var _excluded$4 = ["direction", "open", "duration", "enableOverlay", "zIndex", "closeOnClickOutside", "closeOnSwipe", "isFullPage", "unsetHeight", "unsetWidth", "onClose", "onOpen", "className", "style", "color", "overlayColor", "size", "drawerSize", "children"];
82469
82469
  var _templateObject$4, _templateObject2;
82470
- var getHeight = function getHeight(direction, isOpen, isFullPage, drawerSize) {
82471
- if (direction === "right" || direction === "left") return "100%";
82472
- if (isOpen && isFullPage) return "100%";
82473
- if (isOpen) return drawerSize;
82474
- return 0;
82470
+ var getHeight = function getHeight(direction, isOpen, isFullPage, drawerSize, unsetHeight) {
82471
+ if (direction === "right" || direction === "left") return "height: 100%;";
82472
+ if (isOpen && isFullPage) return "height: 100%;";
82473
+ if (isOpen && unsetHeight === true) return;
82474
+ if (isOpen) return "height: " + drawerSize + ";";
82475
+ return "height: 0;";
82475
82476
  };
82476
- var getWidth = function getWidth(direction, isOpen, isFullPage, drawerSize) {
82477
- if (direction === "top" || direction === "bottom") return "100%";
82478
- if (isOpen && isFullPage) return "100%";
82479
- if (isOpen) return drawerSize;
82480
- return 0;
82477
+ var getWidth = function getWidth(direction, isOpen, isFullPage, drawerSize, unsetWidth) {
82478
+ if (direction === "top" || direction === "bottom") return "width: 100%;";
82479
+ if (isOpen && isFullPage) return "width: 100%;";
82480
+ if (isOpen && unsetWidth === true) return;
82481
+ if (isOpen) return "width: " + drawerSize + ";";
82482
+ return "width: 0;";
82481
82483
  };
82482
- var StyledDrawer = newStyled.div(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteral__default["default"](["\n touch-action: none;\n overflow: auto;\n max-height: \"100vh\";\n height: ", ";\n max-width: \"100vw\";\n width: ", ";\n position: fixed;\n z-index: ", ";\n ", ";\n ", ";\n -webkit-transition: ", ";\n -moz-transition: ", ";\n -ms-transition: ", ";\n -o-transition: ", ";\n transition: ", ";\n padding: ", ";\n\n box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);\n\n background-color: ", ";\n color: ", ";\n ", ";\n"])), function (props) {
82483
- return getHeight(props.direction, props.isOpen, props.isFullPage, props.drawerSize);
82484
+ var StyledDrawer = newStyled.div(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteral__default["default"](["\n touch-action: none;\n overflow: auto;\n max-height: \"100vh\";\n ", "\n max-width: \"100vw\";\n ", "\n position: fixed;\n z-index: ", ";\n ", ";\n ", ";\n -webkit-transition: ", ";\n -moz-transition: ", ";\n -ms-transition: ", ";\n -o-transition: ", ";\n transition: ", ";\n padding: ", ";\n\n box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);\n\n background-color: ", ";\n color: ", ";\n ", ";\n"])), function (props) {
82485
+ return getHeight(props.direction, props.isOpen, props.isFullPage, props.drawerSize, props.unsetHeight);
82484
82486
  }, function (props) {
82485
- return getWidth(props.direction, props.isOpen, props.isFullPage, props.drawerSize);
82487
+ return getWidth(props.direction, props.isOpen, props.isFullPage, props.drawerSize, props.unsetWidth);
82486
82488
  }, function (props) {
82487
82489
  return props.zIndex;
82488
82490
  }, function (props) {
@@ -82526,6 +82528,8 @@ var SwipeableDrawer = /*#__PURE__*/React__default["default"].forwardRef(function
82526
82528
  closeOnClickOutside = props.closeOnClickOutside,
82527
82529
  closeOnSwipe = props.closeOnSwipe,
82528
82530
  isFullPage = props.isFullPage,
82531
+ unsetHeight = props.unsetHeight,
82532
+ unsetWidth = props.unsetWidth,
82529
82533
  onClose = props.onClose,
82530
82534
  onOpen = props.onOpen,
82531
82535
  className = props.className,
@@ -82631,6 +82635,8 @@ var SwipeableDrawer = /*#__PURE__*/React__default["default"].forwardRef(function
82631
82635
  isOpen: _isOpen,
82632
82636
  direction: direction,
82633
82637
  isFullPage: isFullPage,
82638
+ unsetHeight: unsetHeight,
82639
+ unsetWidth: unsetWidth,
82634
82640
  duration: duration,
82635
82641
  color: color,
82636
82642
  theme: theme,
@@ -82640,7 +82646,7 @@ var SwipeableDrawer = /*#__PURE__*/React__default["default"].forwardRef(function
82640
82646
  drawerSize: drawerSize,
82641
82647
  onTouchStart: handleTouchStart,
82642
82648
  onTouchMove: handleTouchMove
82643
- }, rest), children)));
82649
+ }, rest), children, "askldjflkasjdflkasj ajdklfjals", /*#__PURE__*/React__default["default"].createElement("div", null, "jsldfjlaskdjf"), /*#__PURE__*/React__default["default"].createElement("div", null, "asdjkfaklsdjfkl"))));
82644
82650
  });
82645
82651
  SwipeableDrawer.defaultProps = {
82646
82652
  direction: "right",
@@ -82654,6 +82660,8 @@ SwipeableDrawer.defaultProps = {
82654
82660
  isFullPage: false,
82655
82661
  drawerSize: "12.5rem",
82656
82662
  size: "small",
82663
+ unsetHeight: false,
82664
+ unsetWidth: false,
82657
82665
  //-------------------------
82658
82666
  onClose: function onClose() {},
82659
82667
  onOpen: function onOpen() {},
@@ -82682,6 +82690,8 @@ SwipeableDrawer.propTypes = {
82682
82690
  * Determines whether drawer takes up the whole page
82683
82691
  */
82684
82692
  isFullPage: PropTypes__default["default"].bool,
82693
+ unsetHeight: PropTypes__default["default"].bool,
82694
+ unsetWidth: PropTypes__default["default"].bool,
82685
82695
  //---------------------------------------------------------------
82686
82696
  onClose: PropTypes__default["default"].func,
82687
82697
  onOpen: PropTypes__default["default"].func,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
3
  "type": "module",
4
- "version": "3.8.0",
4
+ "version": "3.9.0",
5
5
  "description": "component library",
6
6
  "main": "lib/index.js",
7
7
  "module": "lib/index.esm.js",