@alicloud/console-base-rc-side-panel 1.0.1 → 1.0.3
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/build/cjs/model/hook/_use-model-context.js +1 -1
- package/build/cjs/ui/index.js +2 -2
- package/build/cjs/ui/rc/global-style-on-body/index.js +1 -1
- package/build/{es → esm}/model/hook/_use-model-context.js +1 -1
- package/build/{es → esm}/ui/index.js +2 -2
- package/build/{es → esm}/ui/rc/global-style-on-body/index.js +1 -1
- package/package.json +7 -7
- /package/build/{es → esm}/index.js +0 -0
- /package/build/{es → esm}/model/const/index.js +0 -0
- /package/build/{es → esm}/model/context/index.js +0 -0
- /package/build/{es → esm}/model/enum/index.js +0 -0
- /package/build/{es → esm}/model/hook/_use-model-dispatch.js +0 -0
- /package/build/{es → esm}/model/hook/_use-model-props.js +0 -0
- /package/build/{es → esm}/model/hook/_use-model-state.js +0 -0
- /package/build/{es → esm}/model/hook/index.js +0 -0
- /package/build/{es → esm}/model/hook/use-children.js +0 -0
- /package/build/{es → esm}/model/hook/use-collapsed.js +0 -0
- /package/build/{es → esm}/model/hook/use-dispatch-set-collapsed.js +0 -0
- /package/build/{es → esm}/model/hook/use-dispatch-set-quick-top-visible.js +0 -0
- /package/build/{es → esm}/model/hook/use-effect-quick-top.js +0 -0
- /package/build/{es → esm}/model/hook/use-effect-toggle-body-class.js +0 -0
- /package/build/{es → esm}/model/hook/use-effects.js +0 -0
- /package/build/{es → esm}/model/hook/use-handle-collapsed-change.js +0 -0
- /package/build/{es → esm}/model/hook/use-handle-go-top.js +0 -0
- /package/build/{es → esm}/model/hook/use-handle-set-quick-top-visible.js +0 -0
- /package/build/{es → esm}/model/hook/use-items-bottom.js +0 -0
- /package/build/{es → esm}/model/hook/use-items-top.js +0 -0
- /package/build/{es → esm}/model/hook/use-quick-top.js +0 -0
- /package/build/{es → esm}/model/hook/use-visible.js +0 -0
- /package/build/{es → esm}/model/index.js +0 -0
- /package/build/{es → esm}/model/lifecycle/index.js +0 -0
- /package/build/{es → esm}/model/provider/index.js +0 -0
- /package/build/{es → esm}/model/reducer/index.js +0 -0
- /package/build/{es → esm}/model/reducer/reduce-set-collapsed.js +0 -0
- /package/build/{es → esm}/model/reducer/reduce-set-quick-top-visible.js +0 -0
- /package/build/{es → esm}/model/types/action.js +0 -0
- /package/build/{es → esm}/model/types/common.js +0 -0
- /package/build/{es → esm}/model/types/context.js +0 -0
- /package/build/{es → esm}/model/types/index.js +0 -0
- /package/build/{es → esm}/model/types/props.js +0 -0
- /package/build/{es → esm}/model/types/state.js +0 -0
- /package/build/{es → esm}/model/util/index.js +0 -0
- /package/build/{es → esm}/model/util/toggle-body-class.js +0 -0
- /package/build/{es → esm}/ui/const/index.js +0 -0
- /package/build/{es → esm}/ui/intl/index.js +0 -0
- /package/build/{es → esm}/ui/intl/locales/en-us.js +0 -0
- /package/build/{es → esm}/ui/intl/locales/ja-jp.js +0 -0
- /package/build/{es → esm}/ui/intl/locales/zh-cn.js +0 -0
- /package/build/{es → esm}/ui/intl/locales/zh-tw.js +0 -0
- /package/build/{es → esm}/ui/rc/index.js +0 -0
- /package/build/{es → esm}/ui/rc/side-panel-item-badge/index.js +0 -0
- /package/build/{es → esm}/ui/rc/side-panel-item-button/index.js +0 -0
- /package/build/{es → esm}/ui/rc/side-panel-item-tooltip/index.js +0 -0
- /package/build/{es → esm}/ui/rc/side-panel-item-wrap/index.js +0 -0
- /package/build/{es → esm}/ui/rc-container/collapse-toggle/index.js +0 -0
- /package/build/{es → esm}/ui/rc-container/index.js +0 -0
- /package/build/{es → esm}/ui/rc-container/item/index.js +0 -0
- /package/build/{es → esm}/ui/rc-container/items/index.js +0 -0
- /package/build/{es → esm}/ui/rc-container/items-bottom/index.js +0 -0
- /package/build/{es → esm}/ui/rc-container/items-bottom/quick-top/index.js +0 -0
- /package/build/{es → esm}/ui/rc-container/items-top/index.js +0 -0
- /package/build/{es → esm}/ui/types/index.js +0 -0
- /package/build/{es → esm}/ui/util/get-value-by-status.js +0 -0
- /package/build/{es → esm}/ui/util/index.js +0 -0
- /package/build/{es → esm}/with-model/index.js +0 -0
|
@@ -8,5 +8,5 @@ exports.default = useModelContext;
|
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
var _context = _interopRequireDefault(require("../context"));
|
|
10
10
|
function useModelContext() {
|
|
11
|
-
return (0, _react.useContext)(_context.default);
|
|
11
|
+
return (0, _react.useContext)(_context.default); // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
12
12
|
}
|
package/build/cjs/ui/index.js
CHANGED
|
@@ -18,8 +18,8 @@ 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:
|
|
22
|
-
return props.$collapsed ? (0, _styledComponents.css)(["transform:translateX(100%);"]) : _consoleBaseTheme.mixinShadowLLeft;
|
|
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;", " ", " .theme-dark &{box-shadow:inset 1px 0 0 0 rgba(255,255,255,0.1),-4px 0 8px 0 rgba(0,0,0,0.3);}", " .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, _consoleBaseTheme.mixinShadowLLeft, function (props) {
|
|
22
|
+
return props.$collapsed ? (0, _styledComponents.css)(["transform:translateX(100%);box-shadow:none !important;"]) : _consoleBaseTheme.mixinShadowLLeft;
|
|
23
23
|
}, _consoleBaseTheme.SIZE.HEIGHT_TOP_NAV);
|
|
24
24
|
function Ui() {
|
|
25
25
|
var visible = (0, _model.useVisible)();
|
|
@@ -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
|
|
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,8 +8,8 @@ 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:
|
|
12
|
-
return props.$collapsed ? css(["transform:translateX(100%);"]) : mixinShadowLLeft;
|
|
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;", " ", " .theme-dark &{box-shadow:inset 1px 0 0 0 rgba(255,255,255,0.1),-4px 0 8px 0 rgba(0,0,0,0.3);}", " .hasTopbar &{top:", "px;}"], Z_INDEX.SIDE_PANEL, SPACING_Y * 1.5, SIZE_BUTTON_WRAP_HEIGHT + SPACING_Y, SIZE.WIDTH_SIDE_PANEL, mixinBgPrimary, mixinShadowLLeft, function (props) {
|
|
12
|
+
return props.$collapsed ? css(["transform:translateX(100%);box-shadow:none !important;"]) : mixinShadowLLeft;
|
|
13
13
|
}, SIZE.HEIGHT_TOP_NAV);
|
|
14
14
|
export default function Ui() {
|
|
15
15
|
var visible = useVisible();
|
|
@@ -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
|
|
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,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/console-base-rc-side-panel",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "ConsoleBase 组件 - 右侧边栏",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "build/cjs/index.js",
|
|
8
|
-
"module": "build/
|
|
8
|
+
"module": "build/esm/index.js",
|
|
9
9
|
"types": "build/types/index.d.ts",
|
|
10
10
|
"homepage": "https://github.com/aliyun/alibabacloud-console-base/tree/master/packages-rc/console-base-rc-side-panel",
|
|
11
11
|
"author": {
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"keywords": [],
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@alicloud/console-base-demo-helper-theme-switcher": "^1.1.9",
|
|
25
|
-
"@alicloud/console-base-rc-top-nav": "^1.16.
|
|
25
|
+
"@alicloud/console-base-rc-top-nav": "^1.16.8",
|
|
26
26
|
"@alicloud/console-toolkit-cli": "^1.2.30",
|
|
27
27
|
"@alicloud/console-toolkit-preset-component": "^1.2.61",
|
|
28
|
-
"@alicloud/demo-rc-elements": "^1.
|
|
28
|
+
"@alicloud/demo-rc-elements": "^1.12.2",
|
|
29
29
|
"@alicloud/ts-config": "^1.1.3",
|
|
30
30
|
"@types/react": "^17.0.58",
|
|
31
31
|
"@types/styled-components": "^5.1.26",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@alicloud/console-base-rc-easy-icon": "^1.0.1",
|
|
44
44
|
"@alicloud/console-base-rc-flex": "^1.4.11",
|
|
45
45
|
"@alicloud/console-base-rc-html-trusted": "^1.0.5",
|
|
46
|
-
"@alicloud/console-base-rc-icon": "^1.10.
|
|
46
|
+
"@alicloud/console-base-rc-icon": "^1.10.6",
|
|
47
47
|
"@alicloud/console-base-rc-marks": "^1.8.3",
|
|
48
48
|
"@alicloud/console-base-rc-tooltip": "^1.1.12",
|
|
49
49
|
"@alicloud/console-base-theme": "^1.9.6",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"build:esm": "breezr build --engine babel --es-module",
|
|
61
61
|
"build:cjs": "breezr build --engine babel",
|
|
62
62
|
"build:bundle": "breezr build --engine webpack",
|
|
63
|
-
"build:
|
|
64
|
-
"build": "yarn build:esm && yarn build:cjs && yarn build:
|
|
63
|
+
"build:types": "tsc -p tsconfig-declaration.json --rootDir src --outDir build/types --declaration --emitDeclarationOnly",
|
|
64
|
+
"build": "yarn build:esm && yarn build:cjs && yarn build:types",
|
|
65
65
|
"clean": "rm -rf build",
|
|
66
66
|
"prepublishOnly": "yarn clean && yarn build"
|
|
67
67
|
},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|