@lowdefy/blocks-antd 5.5.0 → 5.5.1

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.
@@ -20,6 +20,7 @@ import { withBlockDefaults } from '@lowdefy/block-utils';
20
20
  import withTheme from '../withTheme.js';
21
21
  import useItemShortcuts from '../useItemShortcuts.js';
22
22
  import { buildMenuItems } from '../buildMenuItems.js';
23
+ import './style.module.css';
23
24
  const getDefaultMenu = (menus, menuId = 'default', links)=>{
24
25
  if (type.isArray(links)) return links;
25
26
  if (!type.isArray(menus)) return [];
@@ -0,0 +1,26 @@
1
+ /*
2
+ Copyright 2020-2026 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */
16
+
17
+ @layer components {
18
+ /* Cap side-opening flyouts (collapsed sidebar) to half the viewport so a long popup near a
19
+ low trigger stays on-screen and scrolls (50vh always fits the taller side of the trigger).
20
+ !important beats antd's unlayered, more-specific cap. */
21
+ :global(.ant-menu-submenu-popup[class*='-placement-right'] .ant-menu-sub),
22
+ :global(.ant-menu-submenu-popup[class*='-placement-left'] .ant-menu-sub) {
23
+ max-height: 50vh !important;
24
+ overflow-y: auto !important;
25
+ }
26
+ }
@@ -187,7 +187,13 @@ const PageSidebarLayout = ({ basePath, blockId, classNames = {}, components: { I
187
187
  onClick: 'onToggleSider'
188
188
  }
189
189
  }
190
- }), /*#__PURE__*/ React.createElement(Menu, {
190
+ }), /*#__PURE__*/ React.createElement("div", {
191
+ style: {
192
+ flex: '1 1 auto',
193
+ minHeight: 0,
194
+ overflowY: 'auto'
195
+ }
196
+ }, /*#__PURE__*/ React.createElement(Menu, {
191
197
  blockId: `${blockId}_menu`,
192
198
  components: {
193
199
  Icon,
@@ -228,16 +234,11 @@ const PageSidebarLayout = ({ basePath, blockId, classNames = {}, components: { I
228
234
  style: {
229
235
  flex: '0 0 auto'
230
236
  }
231
- }, content.siderClosed()), /*#__PURE__*/ React.createElement("div", {
232
- style: {
233
- flex: '1 0 auto'
234
- }
235
- }), /*#__PURE__*/ React.createElement("div", {
237
+ }, content.siderClosed())), /*#__PURE__*/ React.createElement("div", {
236
238
  style: {
237
- position: 'sticky',
238
- bottom: 0,
239
- background: 'linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--ant-color-bg-container) 85%, transparent) 32px, color-mix(in srgb, var(--ant-color-bg-container) 95%, transparent) 100%)',
240
- padding: '40px 8px 8px',
239
+ flex: '0 0 auto',
240
+ background: 'var(--ant-color-bg-container)',
241
+ padding: '8px',
241
242
  display: 'flex',
242
243
  flexDirection: 'column',
243
244
  alignItems: 'center',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/blocks-antd",
3
- "version": "5.5.0",
3
+ "version": "5.5.1",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Lowdefy Ant Design Blocks",
6
6
  "homepage": "https://lowdefy.com",
@@ -45,9 +45,9 @@
45
45
  ],
46
46
  "dependencies": {
47
47
  "@ant-design/icons": "6.1.0",
48
- "@lowdefy/block-utils": "5.5.0",
49
- "@lowdefy/helpers": "5.5.0",
50
- "@lowdefy/nunjucks": "5.5.0",
48
+ "@lowdefy/block-utils": "5.5.1",
49
+ "@lowdefy/helpers": "5.5.1",
50
+ "@lowdefy/nunjucks": "5.5.1",
51
51
  "@rc-component/motion": "1.3.1",
52
52
  "classnames": "2.3.2",
53
53
  "dayjs": "1.11.19",
@@ -60,9 +60,9 @@
60
60
  "react-dom": ">=18"
61
61
  },
62
62
  "devDependencies": {
63
- "@lowdefy/block-dev-e2e": "5.5.0",
64
- "@lowdefy/e2e-utils": "5.5.0",
65
- "@lowdefy/node-utils": "5.5.0",
63
+ "@lowdefy/block-dev-e2e": "5.5.1",
64
+ "@lowdefy/e2e-utils": "5.5.1",
65
+ "@lowdefy/node-utils": "5.5.1",
66
66
  "@playwright/test": "1.50.1",
67
67
  "@swc/cli": "0.8.0",
68
68
  "@swc/core": "1.15.18",