@blocklet/pages-kit 0.6.23 → 0.6.25

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.
@@ -13,9 +13,9 @@ exports.isBrowserEnv = isBrowserEnv;
13
13
  */
14
14
  function isMuiColorKey(value) {
15
15
  // special case
16
- if (value === 'transparent') {
16
+ if (value === 'transparent' || value === 'divider') {
17
17
  return true;
18
18
  }
19
- return /^(primary|secondary|error|warning|info|success|grey|background|text|action)\.[a-z0-9]+$/.test(value);
19
+ return /^(primary|secondary|error|warning|info|success|grey|background|text|action|common)\.[a-z0-9]+$/.test(value);
20
20
  }
21
21
  exports.nextId = (0, nanoid_1.customAlphabet)('abcdefghijklmnopqrstuvwxyz0123456789', 16);
@@ -28,11 +28,12 @@ export const ComponentError = ({ title = 'Component Failed to Load', message, co
28
28
  return (_jsxs(Box, { sx: {
29
29
  p: 3,
30
30
  border: '1px dashed #d32f2f',
31
- borderRadius: 1,
31
+ // borderRadius: 1,
32
32
  bgcolor: 'rgba(211, 47, 47, 0.04)',
33
33
  display: 'flex',
34
34
  flexDirection: 'column',
35
35
  gap: 1,
36
+ overflow: 'hidden',
36
37
  }, children: [_jsx(Typography, { variant: "subtitle1", sx: { color: '#d32f2f', fontWeight: 500 }, children: title }), _jsx(Typography, { variant: "body2", sx: { color: 'text.secondary' }, children: displayMessage }), error && error.stack && process.env.NODE_ENV !== 'production' && (_jsx(Box, { component: "pre", sx: {
37
38
  mt: 2,
38
39
  p: 1,
@@ -18,6 +18,7 @@ export function useMuiColorPalette() {
18
18
  },
19
19
  });
20
20
  // 定义调色板配置
21
+ /** @see 注意修改 isMuiColorKey 的正则表达式 */
21
22
  const paletteConfig = [
22
23
  // 特殊颜色组
23
24
  {