@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 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
- Based on [Material UI](https://material-ui.com/)
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
- ## Project base
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
- ### Development
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 test
13
+ yarn start
40
14
  ```
41
15
 
42
- #### Storybook
16
+ ## Storybook
43
17
 
44
18
  ```bash
45
19
  yarn run storybook
46
20
  yarn run build-storybook
47
21
  ```
48
22
 
49
- #### Build / Watch
23
+ ## Contributing MDX (markdown documentation)
50
24
 
51
- ```bash
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
- #### Other Useful Scripts
27
+ Add a `<Meta>` tag as follows:
57
28
 
58
- ```bash
59
- yarn run
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
- ### New Release
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
- Create a Tag on master with
41
+ ![Example navigation](public/img/navi-example.png)
65
42
 
66
- ```bash
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
- ### Branch URL Access
45
+ ```jsx
46
+ import { Canvas, Meta, Story } from '@storybook/addon-docs';
47
+ import { Progress } from '../src'
71
48
 
72
- Every push to feature branches generate a endpoint to access the storybook in our development environment like this:
49
+ <Meta
50
+ title="Elements/Feedback/Progress/Design"
51
+ component={Progress}
52
+ />
73
53
 
74
- - `https://base-elements--<branch_name>.dev.epilot.io`
75
- - If your <branch_name> have `/`, just switch for `-`
76
- - Example: `feat/somefeature` --> `https://base-elements--feat-somefeature.dev.epilot.io`
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
+ ![My image](/img/progress-image-demo.png)
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: string;
6
+ title?: React.ReactNode;
7
7
  unsavedChanges?: boolean;
8
8
  onSave?: (_: React.MouseEvent) => void;
9
9
  onDiscard?: (_: React.MouseEvent) => void;