@alicloud/console-base-rc-side-panel 1.0.1 → 1.0.2

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.
@@ -18,7 +18,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
18
18
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
19
  var ScAside = _styledComponents.default.aside.withConfig({
20
20
  componentId: "sc-1ok6knf-0"
21
- })(["display:flex;flex-direction:column;position:fixed;top:0;right:0;bottom:0;z-index:", ";padding:", "px 0 ", "px 0;width:", "px;transition:all ease-in-out 250ms;", " ", " .hasTopbar &{top:", "px;}"], _consoleBaseTheme.Z_INDEX.SIDE_PANEL, _const.SPACING_Y * 1.5, _const.SIZE_BUTTON_WRAP_HEIGHT + _const.SPACING_Y, _consoleBaseTheme.SIZE.WIDTH_SIDE_PANEL, _consoleBaseTheme.mixinBgPrimary, function (props) {
21
+ })(["display:flex;flex-direction:column;position:fixed;top:0;right:0;bottom:0;z-index:", ";padding:", "px 0 ", "px 0;width:", "px;transition:transform ease-in-out 250ms;", " ", " .hasTopbar &{top:", "px;}"], _consoleBaseTheme.Z_INDEX.SIDE_PANEL, _const.SPACING_Y * 1.5, _const.SIZE_BUTTON_WRAP_HEIGHT + _const.SPACING_Y, _consoleBaseTheme.SIZE.WIDTH_SIDE_PANEL, _consoleBaseTheme.mixinBgPrimary, function (props) {
22
22
  return props.$collapsed ? (0, _styledComponents.css)(["transform:translateX(100%);"]) : _consoleBaseTheme.mixinShadowLLeft;
23
23
  }, _consoleBaseTheme.SIZE.HEIGHT_TOP_NAV);
24
24
  function Ui() {
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _styledComponents = require("styled-components");
10
10
  var _consoleBaseTheme = require("@alicloud/console-base-theme");
11
11
  var _model = require("../../../model");
12
- var GlobalStyle = (0, _styledComponents.createGlobalStyle)(["body.", "{padding-right:", "px;transition:padding-right ease-in-out 250ms;.viewFramework-body{right:", "px;left:0;z-index:", ";width:auto !important;}}"], _model.BODY_CLASS_WITH_SIDE_PANEL, _consoleBaseTheme.SIZE.WIDTH_SIDE_PANEL, _consoleBaseTheme.SIZE.WIDTH_SIDE_PANEL, _consoleBaseTheme.Z_INDEX.SIDE_PANEL - 1);
12
+ var GlobalStyle = (0, _styledComponents.createGlobalStyle)(["body.", "{padding-right:", "px;transition:padding-right ease-in-out 250ms;&.with-micro-browser{transition:none;}.viewFramework-body{right:", "px;left:0;z-index:", ";width:auto !important;}}"], _model.BODY_CLASS_WITH_SIDE_PANEL, _consoleBaseTheme.SIZE.WIDTH_SIDE_PANEL, _consoleBaseTheme.SIZE.WIDTH_SIDE_PANEL, _consoleBaseTheme.Z_INDEX.SIDE_PANEL - 1);
13
13
  function GlobalStyleOnBody() {
14
14
  return /*#__PURE__*/_react.default.createElement(GlobalStyle, null);
15
15
  }
@@ -8,7 +8,7 @@ import { GlobalStyleOnBody } from './rc';
8
8
  import { ItemsTop, ItemsBottom, CollapseToggle } from './rc-container';
9
9
  var ScAside = styled.aside.withConfig({
10
10
  componentId: "sc-1ok6knf-0"
11
- })(["display:flex;flex-direction:column;position:fixed;top:0;right:0;bottom:0;z-index:", ";padding:", "px 0 ", "px 0;width:", "px;transition:all ease-in-out 250ms;", " ", " .hasTopbar &{top:", "px;}"], Z_INDEX.SIDE_PANEL, SPACING_Y * 1.5, SIZE_BUTTON_WRAP_HEIGHT + SPACING_Y, SIZE.WIDTH_SIDE_PANEL, mixinBgPrimary, function (props) {
11
+ })(["display:flex;flex-direction:column;position:fixed;top:0;right:0;bottom:0;z-index:", ";padding:", "px 0 ", "px 0;width:", "px;transition:transform ease-in-out 250ms;", " ", " .hasTopbar &{top:", "px;}"], Z_INDEX.SIDE_PANEL, SPACING_Y * 1.5, SIZE_BUTTON_WRAP_HEIGHT + SPACING_Y, SIZE.WIDTH_SIDE_PANEL, mixinBgPrimary, function (props) {
12
12
  return props.$collapsed ? css(["transform:translateX(100%);"]) : mixinShadowLLeft;
13
13
  }, SIZE.HEIGHT_TOP_NAV);
14
14
  export default function Ui() {
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { createGlobalStyle } from 'styled-components';
3
3
  import { SIZE, Z_INDEX } from '@alicloud/console-base-theme';
4
4
  import { BODY_CLASS_WITH_SIDE_PANEL } from '../../../model';
5
- var GlobalStyle = createGlobalStyle(["body.", "{padding-right:", "px;transition:padding-right ease-in-out 250ms;.viewFramework-body{right:", "px;left:0;z-index:", ";width:auto !important;}}"], BODY_CLASS_WITH_SIDE_PANEL, SIZE.WIDTH_SIDE_PANEL, SIZE.WIDTH_SIDE_PANEL, Z_INDEX.SIDE_PANEL - 1);
5
+ var GlobalStyle = createGlobalStyle(["body.", "{padding-right:", "px;transition:padding-right ease-in-out 250ms;&.with-micro-browser{transition:none;}.viewFramework-body{right:", "px;left:0;z-index:", ";width:auto !important;}}"], BODY_CLASS_WITH_SIDE_PANEL, SIZE.WIDTH_SIDE_PANEL, SIZE.WIDTH_SIDE_PANEL, Z_INDEX.SIDE_PANEL - 1);
6
6
  export default function GlobalStyleOnBody() {
7
7
  return /*#__PURE__*/React.createElement(GlobalStyle, null);
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/console-base-rc-side-panel",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "ConsoleBase 组件 - 右侧边栏",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,