@lemon-fe/components 1.4.15-alpha.3 → 1.4.16

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.
@@ -226,7 +226,7 @@ function FieldsConfig(props) {
226
226
  props.onChange(props.originData.map(function (item) {
227
227
  return {
228
228
  key: item.key,
229
- hidden: false
229
+ hidden: !!item.defaultHidden
230
230
  };
231
231
  }));
232
232
  },
@@ -0,0 +1,5 @@
1
+ import type { CSSProperties } from 'react';
2
+ export default function Collapse(props: {
3
+ className?: string;
4
+ style?: CSSProperties;
5
+ }): JSX.Element;
@@ -0,0 +1,17 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+ import React from 'react';
3
+ import Icon from '@ant-design/icons';
4
+ var Svg = function Svg(props) {
5
+ return /*#__PURE__*/React.createElement("svg", _extends({
6
+ viewBox: "0 0 16 16",
7
+ xmlns: "http://www.w3.org/2000/svg"
8
+ }, props), /*#__PURE__*/React.createElement("path", {
9
+ d: "M10.167 5.5v4.861a.667.667 0 1 0 1.333 0V5.5h1.018a.5.5 0 0 0 .332-.874L11.166 3.13a.5.5 0 0 0-.665 0L8.816 4.626a.5.5 0 0 0 .332.874h1.019Zm-7.5 7.833h10.666a.667.667 0 1 0 0-1.333H2.667a.667.667 0 1 0 0 1.333ZM7 4a.667.667 0 0 0-.667-.667H2.667a.667.667 0 1 0 0 1.334h3.666A.667.667 0 0 0 7 4Zm0 4.167a.667.667 0 0 0-.667-.667H2.667a.667.667 0 1 0 0 1.333h3.666A.667.667 0 0 0 7 8.167Z",
10
+ fillRule: "evenodd"
11
+ }));
12
+ };
13
+ export default function Collapse(props) {
14
+ return /*#__PURE__*/React.createElement(Icon, _extends({
15
+ component: Svg
16
+ }, props));
17
+ }
@@ -0,0 +1,5 @@
1
+ import type { CSSProperties } from 'react';
2
+ export default function Expand(props: {
3
+ className?: string;
4
+ style?: CSSProperties;
5
+ }): JSX.Element;
@@ -0,0 +1,17 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+ import React from 'react';
3
+ import Icon from '@ant-design/icons';
4
+ var Svg = function Svg(props) {
5
+ return /*#__PURE__*/React.createElement("svg", _extends({
6
+ viewBox: "0 0 16 16",
7
+ xmlns: "http://www.w3.org/2000/svg"
8
+ }, props), /*#__PURE__*/React.createElement("path", {
9
+ d: "M10.167 10.5V5.639a.667.667 0 1 1 1.333 0V10.5h1.018a.5.5 0 0 1 .332.874l-1.684 1.497a.5.5 0 0 1-.665 0l-1.685-1.497a.5.5 0 0 1 .332-.874h1.019Zm-7.5-7.833h10.666a.667.667 0 1 1 0 1.333H2.667a.667.667 0 1 1 0-1.333ZM7 12a.667.667 0 0 1-.667.667H2.667a.667.667 0 1 1 0-1.334h3.666c.369 0 .667.299.667.667Zm0-4.167a.667.667 0 0 1-.667.667H2.667a.667.667 0 1 1 0-1.333h3.666c.369 0 .667.298.667.666Z",
10
+ fillRule: "evenodd"
11
+ }));
12
+ };
13
+ export default function Expand(props) {
14
+ return /*#__PURE__*/React.createElement(Icon, _extends({
15
+ component: Svg
16
+ }, props));
17
+ }
@@ -6,11 +6,13 @@ import Clear from './clear';
6
6
  import Clock from './clock';
7
7
  import Close from './close';
8
8
  import CloseLight from './close-light';
9
+ import Collapse from './collapse';
9
10
  import CollapseUp from './collapse-up';
10
11
  import DarkSearch from './dark-search';
11
12
  import Delete from './delete';
12
13
  import Down from './down';
13
14
  import Drag from './drag';
15
+ import Expand from './expand';
14
16
  import LookUp from './look-up';
15
17
  import More from './more';
16
18
  import NewTag from './new-tag';
@@ -43,5 +45,7 @@ declare const Icons: {
43
45
  Drag: typeof Drag;
44
46
  Plus: typeof Plus;
45
47
  Warn: typeof Warn;
48
+ Collapse: typeof Collapse;
49
+ Expand: typeof Expand;
46
50
  };
47
51
  export default Icons;
package/es/icons/index.js CHANGED
@@ -5,12 +5,14 @@ import Clear from "./clear";
5
5
  import Clock from "./clock";
6
6
  import Close from "./close";
7
7
  import CloseLight from "./close-light";
8
+ import Collapse from "./collapse";
8
9
  import CollapseUp from "./collapse-up";
9
10
  import DarkSearch from "./dark-search";
10
11
  import Delete from "./delete";
11
12
  import Down from "./down";
12
13
  import Drag from "./drag";
13
14
  import Empty from "./empty";
15
+ import Expand from "./expand";
14
16
  import LookUp from "./look-up";
15
17
  import More from "./more";
16
18
  import NewTag from "./new-tag";
@@ -42,6 +44,8 @@ var Icons = {
42
44
  NewTag: NewTag,
43
45
  Drag: Drag,
44
46
  Plus: Plus,
45
- Warn: Warn
47
+ Warn: Warn,
48
+ Collapse: Collapse,
49
+ Expand: Expand
46
50
  };
47
51
  export default Icons;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/components",
3
- "version": "1.4.15-alpha.3",
3
+ "version": "1.4.16",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "MIT",
@@ -21,8 +21,8 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@dnd-kit/core": ">=6.0.0",
24
- "@lemon-fe/hooks": "^1.4.14-alpha.1",
25
- "@lemon-fe/utils": "^1.4.14-alpha.2",
24
+ "@lemon-fe/hooks": "^1.4.15",
25
+ "@lemon-fe/utils": "^1.4.15",
26
26
  "ag-grid-community": "29.2.0",
27
27
  "ag-grid-enterprise": "29.2.0",
28
28
  "ag-grid-react": "29.2.0",
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "registry": "https://registry.npmjs.org"
60
60
  },
61
- "gitHead": "b24279b93370cfefdef40c286d08fa476888b89b"
61
+ "gitHead": "07adb2db36e623c556574f37a3208e9de1da9cc7"
62
62
  }