@lobehub/ui 1.16.2 → 1.17.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.
@@ -6,6 +6,6 @@ export var useStyles = createStyles(function (_ref) {
6
6
  token = _ref.token;
7
7
  return {
8
8
  container: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: pointer;\n\n > * {\n cursor: pointer;\n }\n "]))),
9
- border: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n "])), token.colorBorder)
9
+ border: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n "])), token.colorSplit)
10
10
  };
11
11
  });
@@ -39,6 +39,7 @@ export interface DraggablePanelProps extends DivProps {
39
39
  * @type CSSProperties
40
40
  */
41
41
  hanlderStyle?: React.CSSProperties;
42
+ maxWidth?: number;
42
43
  /**
43
44
  * @description The minimum height of the panel
44
45
  */
@@ -28,6 +28,7 @@ var DraggablePanel = /*#__PURE__*/memo(function (_ref) {
28
28
  customizeDefaultSize = _ref.defaultSize,
29
29
  minWidth = _ref.minWidth,
30
30
  minHeight = _ref.minHeight,
31
+ maxWidth = _ref.maxWidth,
31
32
  onSizeChange = _ref.onSizeChange,
32
33
  onSizeDragging = _ref.onSizeDragging,
33
34
  _ref$expandable = _ref.expandable,
@@ -95,6 +96,7 @@ var DraggablePanel = /*#__PURE__*/memo(function (_ref) {
95
96
  var sizeProps = isExpand ? {
96
97
  minWidth: typeof minWidth === 'number' ? Math.max(minWidth, 0) : 280,
97
98
  minHeight: typeof minHeight === 'number' ? Math.max(minHeight, 0) : undefined,
99
+ maxWidth: typeof maxWidth === 'number' ? Math.max(maxWidth, 0) : undefined,
98
100
  defaultSize: defaultSize,
99
101
  size: size
100
102
  } : isVertical ? {
@@ -1,5 +1,5 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
- import { capitalize } from 'lodash';
2
+ import { capitalize } from 'lodash-es';
3
3
  export var generateColorPalette = function generateColorPalette(_ref) {
4
4
  var _ref2;
5
5
  var type = _ref.type,
@@ -2,7 +2,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
2
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
3
3
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
4
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
5
- import { camelCase } from 'lodash';
5
+ import { camelCase } from 'lodash-es';
6
6
  import { colorScales } from "../colors";
7
7
  var generateColorPalette = function generateColorPalette(_ref) {
8
8
  var _ref2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.16.2",
3
+ "version": "1.17.0",
4
4
  "description": "Lobe UI is an open-source UI component library for building chatbot web apps",
5
5
  "keywords": [
6
6
  "lobehub",
@@ -37,8 +37,7 @@
37
37
  "dev:theme": "npm run dev --prefix=packages/dumi-theme-lobehub",
38
38
  "docs:build": "npm run build:theme && dumi build",
39
39
  "doctor": "father doctor",
40
- "lint": "eslint \"{src,tests,packages}/**/*.{js,jsx,ts,tsx}\"",
41
- "lint:fix": "eslint \"{src,tests,packages}/**/*.{js,jsx,ts,tsx}\" --fix",
40
+ "lint": "eslint \"{src,tests,packages}/**/*.{js,jsx,ts,tsx}\" --fix",
42
41
  "prepare": "husky install && npm run setup",
43
42
  "prepublishOnly": "father doctor && npm run build",
44
43
  "prettier": "prettier -c --write \"**/**\"",
@@ -79,7 +78,7 @@
79
78
  "fast-deep-equal": "^3",
80
79
  "immer": "^10",
81
80
  "leva": "^0",
82
- "lodash": "^4",
81
+ "lodash-es": "^4",
83
82
  "lucide-react": "latest",
84
83
  "pangu": "^4",
85
84
  "polished": "^4",
@@ -102,7 +101,7 @@
102
101
  "@commitlint/cli": "^17",
103
102
  "@testing-library/react": "^14",
104
103
  "@types/chroma-js": "^2",
105
- "@types/lodash": "^4",
104
+ "@types/lodash-es": "^4",
106
105
  "@types/pangu": "^4",
107
106
  "@types/react": "^18",
108
107
  "@types/react-dom": "^18",