@contentful/f36-entity-list 4.0.1 → 4.1.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/CHANGELOG.md CHANGED
@@ -3,6 +3,41 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.1.3](https://github.com/contentful/forma-36/compare/@contentful/f36-entity-list@4.1.2...@contentful/f36-entity-list@4.1.3) (2022-01-26)
7
+
8
+ **Note:** Version bump only for package @contentful/f36-entity-list
9
+
10
+
11
+
12
+
13
+
14
+ ## [4.1.2](https://github.com/contentful/forma-36/compare/@contentful/f36-entity-list@4.1.1...@contentful/f36-entity-list@4.1.2) (2022-01-25)
15
+
16
+ **Note:** Version bump only for package @contentful/f36-entity-list
17
+
18
+
19
+
20
+
21
+
22
+ ## [4.1.1](https://github.com/contentful/forma-36/compare/@contentful/f36-entity-list@4.1.0...@contentful/f36-entity-list@4.1.1) (2022-01-19)
23
+
24
+ **Note:** Version bump only for package @contentful/f36-entity-list
25
+
26
+
27
+
28
+
29
+
30
+ # [4.1.0](https://github.com/contentful/forma-36/compare/@contentful/f36-entity-list@4.0.1...@contentful/f36-entity-list@4.1.0) (2022-01-13)
31
+
32
+
33
+ ### Features
34
+
35
+ * implement props list redesign [BAU-535] ([#1756](https://github.com/contentful/forma-36/issues/1756)) ([21c57e7](https://github.com/contentful/forma-36/commit/21c57e72008b75990d03af4e7500edc1c7f3d26d))
36
+
37
+
38
+
39
+
40
+
6
41
  ## [4.0.1](https://github.com/contentful/forma-36/compare/@contentful/f36-entity-list@4.0.0...@contentful/f36-entity-list@4.0.1) (2022-01-11)
7
42
 
8
43
  **Note:** Version bump only for package @contentful/f36-entity-list
package/README.mdx CHANGED
@@ -8,101 +8,42 @@ storybook: 'https://v4-f36-storybook.netlify.app/?path=/story/components-entity-
8
8
  typescript: ./src/EntityList.tsx,./src/EntityListItem/EntityListItem.tsx
9
9
  ---
10
10
 
11
- # EntityList
12
-
13
- The EntityList is used to represent lists of entities (entries and assets).
14
-
15
- ## How to use EntityList
16
-
17
- This component should be used in combination with the EntityList.Item component. Its main purpose is to be used to entries or assets when in a list context, for example, a multiple entry reference field. It differs from existing EntryCard/AssetCard components as its intended use is for lists of entities, not individual ones.
18
-
19
- ## Code examples
20
-
21
- ```jsx
22
- <EntityList>
23
- <EntityList.Item
24
- title="Entry 1"
25
- description="Description"
26
- contentType="My content type"
27
- status="published"
28
- />
29
- <EntityList.Item
30
- title="Entry 2"
31
- description="Description"
32
- contentType="My content type"
33
- status="draft"
34
- />
35
- <EntityList.Item
36
- title="Entry 3"
37
- description="Description"
38
- contentType="My content type"
39
- status="archived"
40
- />
41
- </EntityList>
11
+ The EntityList is used to represent lists of entities (entries and assets). This component should be used in combination with the EntityList.Item component. Its main purpose is to be used to entries or assets when in a list context, for example, a multiple entry reference field. It differs from existing EntryCard/AssetCard components as its intended use is for lists of entities, not individual ones.
12
+
13
+ ## Import
14
+
15
+ ```js static=true
16
+ import { EntityList } from '@contentful/f36-components';
17
+ // or
18
+ import { EntityList } from '@contentful/f36-entity-list';
19
+ ```
20
+
21
+ ## Examples
22
+
23
+ ### Basic
24
+
25
+ ```jsx file=examples/BasicEntityListExample.tsx
26
+
42
27
  ```
43
28
 
44
29
  ### With actions menu
45
30
 
46
- ```jsx
47
- <EntityList>
48
- <EntityList.Item
49
- title="Entry title"
50
- description="Description"
51
- contentType="My content type"
52
- status="draft"
53
- entityType="entry"
54
- actions={[
55
- <MenuSectionTitle key="title">Actions</MenuSectionTitle>,
56
- <MenuItem key="edit">Edit</MenuItem>,
57
- <MenuItem key="download">Download</MenuItem>,
58
- <MenuItem key="remove">Remove</MenuItem>,
59
- ]}
60
- />
61
- <EntityList.Item
62
- title="Other entry title"
63
- description="Description"
64
- contentType="My content type"
65
- status="published"
66
- entityType="entry"
67
- actions={[
68
- <MenuSectionTitle key="title">Actions</MenuSectionTitle>,
69
- <MenuItem key="edit">Edit</MenuItem>,
70
- <MenuItem key="download">Download</MenuItem>,
71
- <MenuItem key="remove">Remove</MenuItem>,
72
- ]}
73
- />
74
- </EntityList>
31
+ ```jsx file=examples/EntityListWithActionsMenuExample.tsx
32
+
75
33
  ```
76
34
 
77
35
  ### With drag handle
78
36
 
79
- ```jsx
80
- <EntityList>
81
- <EntityList.Item
82
- title="Entry 1"
83
- description="Description"
84
- contentType="My content type"
85
- status="published"
86
- withDragHandle
87
- />
88
- <EntityList.Item
89
- title="Entry 2"
90
- description="Description"
91
- contentType="My content type"
92
- status="draft"
93
- withDragHandle
94
- />
95
- </EntityList>
96
- ```
37
+ ```jsx file=examples/EntityListWithDragHandleExample.tsx
97
38
 
98
- ## Props
39
+ ```
99
40
 
100
- import { Props } from '@contentful/f36-docs-utils';
41
+ ## Props (API reference)
101
42
 
102
43
  ### EntityList
103
44
 
104
- <Props of="EntityList" />
45
+ <PropsTable of="EntityList" />
105
46
 
106
47
  ### EntityList.Item
107
48
 
108
- <Props of="EntityListItem" />
49
+ <PropsTable of="EntityListItem" />
package/dist/main.js CHANGED
File without changes
package/dist/main.js.map CHANGED
File without changes
package/dist/module.js CHANGED
File without changes
File without changes
package/dist/types.d.ts CHANGED
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/f36-entity-list",
3
- "version": "4.0.1",
3
+ "version": "4.1.3",
4
4
  "description": "Forma 36: EntityList component",
5
5
  "scripts": {
6
6
  "build": "parcel build"
@@ -8,12 +8,12 @@
8
8
  "dependencies": {
9
9
  "@babel/runtime": "^7.6.2",
10
10
  "@contentful/f36-badge": "^4.0.1",
11
- "@contentful/f36-button": "^4.0.1",
11
+ "@contentful/f36-button": "^4.1.2",
12
12
  "@contentful/f36-core": "^4.0.1",
13
13
  "@contentful/f36-drag-handle": "^4.0.1",
14
14
  "@contentful/f36-icon": "^4.0.1",
15
15
  "@contentful/f36-icons": "^4.0.1",
16
- "@contentful/f36-menu": "^4.0.1",
16
+ "@contentful/f36-menu": "^4.1.0",
17
17
  "@contentful/f36-skeleton": "^4.0.1",
18
18
  "@contentful/f36-tokens": "^4.0.0",
19
19
  "@contentful/f36-typography": "^4.0.1",
@@ -39,5 +39,5 @@
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "cee6bd9ae0b1ca2ce23d42873d9344a20fe740d0"
42
+ "gitHead": "615aee71db9dca2cb7b4683653af7f0d8ca7201e"
43
43
  }