@epilot/base-elements 2.7.11-alpha.0 → 2.7.11
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 +2 -0
- package/README.md +41 -49
- package/dist/Drawer360/types.d.ts +2 -2
- package/dist/bundle.js +66 -66
- package/dist/bundle.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/package.json +10 -8
- package/dist/EntityItem/EntityAttributes.d.ts +0 -9
- package/dist/EntityItem/EntityAttributes.js +0 -83
- package/dist/EntityItem/EntityAttributes.js.map +0 -1
- package/dist/EntityItem/EntityItem.d.ts +0 -3
- package/dist/EntityItem/EntityItem.js +0 -134
- package/dist/EntityItem/EntityItem.js.map +0 -1
- package/dist/EntityItem/EntityMenu.d.ts +0 -3
- package/dist/EntityItem/EntityMenu.js +0 -48
- package/dist/EntityItem/EntityMenu.js.map +0 -1
- package/dist/EntityItem/index.d.ts +0 -2
- package/dist/EntityItem/index.js +0 -6
- package/dist/EntityItem/index.js.map +0 -1
- package/dist/EntityItem/types.d.ts +0 -38
- package/dist/EntityItem/types.js +0 -3
- package/dist/EntityItem/types.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [2.7.11](https://gitlab.com/e-pilot/frontend/base/elements/compare/v2.7.8-alpha.0...v2.7.11) (2022-05-19)
|
|
6
|
+
|
|
5
7
|
### [2.7.11-alpha.0](https://gitlab.com/e-pilot/product/frontend/base/elements/compare/v2.7.10...v2.7.11-alpha.0) (2022-04-28)
|
|
6
8
|
|
|
7
9
|
### [2.7.10](https://gitlab.com/e-pilot/product/frontend/base/elements/compare/v2.7.10-alpha.0...v2.7.10) (2022-04-28)
|
package/README.md
CHANGED
|
@@ -2,75 +2,67 @@
|
|
|
2
2
|
|
|
3
3
|
General purpose React components for epilot UI elements.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
## Usage
|
|
8
|
-
|
|
9
|
-
See [Epilot Elements Library Storybook](https://base-elements.dev.epilot.io/?path=/story/welcome-getting-started-guide--page)
|
|
10
|
-
|
|
11
|
-
## Contributing
|
|
12
|
-
|
|
13
|
-
This package is shared across multiple epilot frontend projects. Please keep the components simple and general purpose.
|
|
14
|
-
|
|
15
|
-
Discussion on changes happens on #ui-standards-team.
|
|
16
|
-
|
|
17
|
-
PRs welcome! Please follow our [code review guideline](https://e-pilot.atlassian.net/wiki/spaces/EO/pages/2445541397/Code+Reviews).
|
|
5
|
+
[base-elements.dev.epilot.io](https://base-elements.dev.epilot.io/)
|
|
18
6
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
Project is Setup with:
|
|
22
|
-
|
|
23
|
-
- https://github.com/formium/tsdx
|
|
24
|
-
- https://github.com/storybookjs/storybook
|
|
25
|
-
|
|
26
|
-
## Developer instructions
|
|
27
|
-
|
|
28
|
-
### Requirements
|
|
29
|
-
|
|
30
|
-
- node.js (12/14 recommended)
|
|
31
|
-
- yarn
|
|
7
|
+
Based on [Material UI](https://material-ui.com/)
|
|
32
8
|
|
|
33
|
-
|
|
9
|
+
## Quick start
|
|
34
10
|
|
|
35
11
|
```bash
|
|
36
|
-
git clone git@gitlab.com:e-pilot/frontend/base/elements.git
|
|
37
|
-
cd elements
|
|
38
12
|
yarn
|
|
39
|
-
yarn
|
|
13
|
+
yarn start
|
|
40
14
|
```
|
|
41
15
|
|
|
42
|
-
|
|
16
|
+
## Storybook
|
|
43
17
|
|
|
44
18
|
```bash
|
|
45
19
|
yarn run storybook
|
|
46
20
|
yarn run build-storybook
|
|
47
21
|
```
|
|
48
22
|
|
|
49
|
-
|
|
23
|
+
## Contributing MDX (markdown documentation)
|
|
50
24
|
|
|
51
|
-
|
|
52
|
-
yarn run start # watch changes and rebuild
|
|
53
|
-
yarn run build
|
|
54
|
-
```
|
|
25
|
+
Add a `.stories.mdx` file alongside the story (example: [stories/Progress.design.stories.mdx](stories/Progress.design.stories.mdx))
|
|
55
26
|
|
|
56
|
-
|
|
27
|
+
Add a `<Meta>` tag as follows:
|
|
57
28
|
|
|
58
|
-
```
|
|
59
|
-
|
|
29
|
+
```jsx
|
|
30
|
+
import { Meta } from '@storybook/addon-docs';
|
|
31
|
+
import { Progress } from '../src'
|
|
32
|
+
|
|
33
|
+
<Meta
|
|
34
|
+
title="Elements/Feedback/Progress/Design"
|
|
35
|
+
component={Progress}
|
|
36
|
+
/>
|
|
60
37
|
```
|
|
61
38
|
|
|
62
|
-
|
|
39
|
+
Pass the `component` you're documenting, as well as a `title` according to where you want your story to show up in navigation:
|
|
63
40
|
|
|
64
|
-
|
|
41
|
+

|
|
65
42
|
|
|
66
|
-
|
|
67
|
-
yarn release
|
|
68
|
-
```
|
|
43
|
+
You can then add your documentation with markdown, embedded stories and images, as shown in this [full example](stories/Progress.design.stories.mdx):
|
|
69
44
|
|
|
70
|
-
|
|
45
|
+
```jsx
|
|
46
|
+
import { Canvas, Meta, Story } from '@storybook/addon-docs';
|
|
47
|
+
import { Progress } from '../src'
|
|
71
48
|
|
|
72
|
-
|
|
49
|
+
<Meta
|
|
50
|
+
title="Elements/Feedback/Progress/Design"
|
|
51
|
+
component={Progress}
|
|
52
|
+
/>
|
|
73
53
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
54
|
+
# Progress Indicator
|
|
55
|
+
|
|
56
|
+
Embedded story
|
|
57
|
+
<Canvas>
|
|
58
|
+
<Story id="elements-feedback-progress--circular-progress-indeterminade-story" />
|
|
59
|
+
</Canvas>
|
|
60
|
+
|
|
61
|
+
Here is an image using Markdown:
|
|
62
|
+
|
|
63
|
+

|
|
64
|
+
|
|
65
|
+
Here is an image using MDX:
|
|
66
|
+
|
|
67
|
+
<img src="/img/progress-image-demo.png" alt="My image" />
|
|
68
|
+
```
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DrawerProps as MuiDrawerProps } from '@material-ui/core';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
export declare type Drawer360Props = Omit<MuiDrawerProps, 'anchor' | 'elevation' | 'variant' | 'transitionDuration'> & {
|
|
3
|
+
export declare type Drawer360Props = Omit<MuiDrawerProps, 'anchor' | 'elevation' | 'variant' | 'transitionDuration' | 'title'> & {
|
|
4
4
|
responsive?: boolean;
|
|
5
5
|
size?: 'one-third' | 'two-thirds' | 'max-width';
|
|
6
|
-
title
|
|
6
|
+
title?: React.ReactNode;
|
|
7
7
|
unsavedChanges?: boolean;
|
|
8
8
|
onSave?: (_: React.MouseEvent) => void;
|
|
9
9
|
onDiscard?: (_: React.MouseEvent) => void;
|