@lumx/react 4.7.1-alpha.4 → 4.8.0-alpha.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.
- package/README.md +0 -4
- package/index.d.ts +97 -42
- package/index.js +379 -261
- package/index.js.map +1 -1
- package/package.json +4 -4
- package/CONTRIBUTING.md +0 -157
package/package.json
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@floating-ui/react-dom": "^2.1.7",
|
|
10
|
-
"@lumx/core": "^4.
|
|
11
|
-
"@lumx/icons": "^4.
|
|
10
|
+
"@lumx/core": "^4.8.0-alpha.0",
|
|
11
|
+
"@lumx/icons": "^4.8.0-alpha.0",
|
|
12
12
|
"body-scroll-lock": "^3.1.5"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
@@ -101,6 +101,6 @@
|
|
|
101
101
|
"build:storybook": "storybook build"
|
|
102
102
|
},
|
|
103
103
|
"sideEffects": false,
|
|
104
|
-
"version": "4.
|
|
105
|
-
"stableVersion": "4.7.
|
|
104
|
+
"version": "4.8.0-alpha.0",
|
|
105
|
+
"stableVersion": "4.7.1"
|
|
106
106
|
}
|
package/CONTRIBUTING.md
DELETED
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
# Contributing to LumX
|
|
2
|
-
|
|
3
|
-
We'd love for you to contribute to our source code and to make it even better than it is today!
|
|
4
|
-
|
|
5
|
-
## Getting the source code
|
|
6
|
-
|
|
7
|
-
To be able to contribute, you will have to use the global LumX package from our [GitHub repository](https://github.com/lumapps/design-system). You won't be able to contribute from the distributed packages, so be sure to clone the repository before starting contributing:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
git clone git@github.com:lumapps/design-system.git
|
|
11
|
-
# Or with HTTPS
|
|
12
|
-
git clone https://github.com/lumapps/design-system.git
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
# Table of contents
|
|
16
|
-
|
|
17
|
-
Here are the guidelines we'd like you to follow.
|
|
18
|
-
|
|
19
|
-
- [Code of Conduct](#code-of-conduct)
|
|
20
|
-
- [Got a question or a problem?](#got-a-question-or-a-problem-)
|
|
21
|
-
- [Found an issue?](#found-an-issue-)
|
|
22
|
-
- [Want a feature?](#want-a-feature-)
|
|
23
|
-
- [Want to create a new React Component?](#create-a-new-react-component-)
|
|
24
|
-
- [Submission guidelines](#submission-guidelines)
|
|
25
|
-
- [Coding rules](#coding-rules)
|
|
26
|
-
- [Git commit guidelines](#git-commit-guidelines)
|
|
27
|
-
|
|
28
|
-
## <a name="got-a-question-or-a-problem-"></a> Got a question or a problem?
|
|
29
|
-
|
|
30
|
-
If you have questions about how to use LumX, please direct these to [StackOverflow](http://stackoverflow.com/questions/tagged/LumX).
|
|
31
|
-
|
|
32
|
-
## <a name="found-an-issue-"></a> Found an issue?
|
|
33
|
-
|
|
34
|
-
If you find a bug in the source code or a mistake in the documentation, you can help us by submitting an issue to our [GitHub Repository](https://github.com/lumapps/design-system/issues). Even better you can submit a Pull Request with a fix.
|
|
35
|
-
|
|
36
|
-
If you are feeling it, you can even fix the issue yourself and submit a Pull Request.
|
|
37
|
-
Before opening a Pull Request, please see the Submission Guidelines below.
|
|
38
|
-
|
|
39
|
-
## <a name="want-a-feature-"></a> Want a feature?
|
|
40
|
-
|
|
41
|
-
You can request a new feature by submitting an issue to our [GitHub Repository](https://github.com/lumapps/design-system/issues).
|
|
42
|
-
If you would like to implement a new feature then consider what kind of change it is, discuss it with us before hand in your issue, so that we can better coordinate our efforts, prevent duplication of work, and help you to craft the change so that it is successfully accepted into the project.
|
|
43
|
-
|
|
44
|
-
## <a name="submission-guidelines"></a> Submission guidelines
|
|
45
|
-
|
|
46
|
-
### Submitting an issue
|
|
47
|
-
|
|
48
|
-
Before you submit your issue search the archive, maybe your question was already answered.
|
|
49
|
-
|
|
50
|
-
If your issue appears to be a bug, and hasn't been reported, open a new issue. Help us to maximize the effort by not reporting duplicate issues. Providing the following information will increase the chances of your issue being dealt with quickly:
|
|
51
|
-
|
|
52
|
-
- **Motivation for or Use Case** - explain why this is a bug for you
|
|
53
|
-
- **LumX Version(s)** - is it a regression?
|
|
54
|
-
- **Browsers and Operating System** - is this a problem with all browsers ?
|
|
55
|
-
- **Reproduce the Error** - provide a live example (using [Plunker](http://plnkr.co/edit) or [JSFiddle](http://jsfiddle.net/)) or a unambiguous set of steps.
|
|
56
|
-
|
|
57
|
-
### Submitting a pull request
|
|
58
|
-
|
|
59
|
-
Before you submit your pull request consider the following guidelines:
|
|
60
|
-
|
|
61
|
-
- Search [GitHub](https://github.com/lumapps/design-system/pulls) for an open or closed Pull Request that relates to your submission. You don't want to duplicate effort.
|
|
62
|
-
- Make your changes in a new git branch
|
|
63
|
-
|
|
64
|
-
```bash
|
|
65
|
-
git fetch && git checkout -b <feat|fix|...>/<descriptive branch name> origin/master
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
- Create your patch.
|
|
69
|
-
- Follow the [Coding Rules](#rules).
|
|
70
|
-
- Commit your changes using a descriptive commit message that follows the [commit message conventions](#commit-message-format).
|
|
71
|
-
- Check and test your changes locally.
|
|
72
|
-
|
|
73
|
-
* Push your branch to GitHub:
|
|
74
|
-
|
|
75
|
-
```bash
|
|
76
|
-
git push origin <full branch name>
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
- In GitHub, send a pull request to `design-system:master`.
|
|
80
|
-
|
|
81
|
-
If we suggest changes to your Pull Request, then:
|
|
82
|
-
|
|
83
|
-
- Make the required updates.
|
|
84
|
-
- Rebase your branch and force push to your GitHub repository (this will update your Pull Request):
|
|
85
|
-
|
|
86
|
-
```bash
|
|
87
|
-
git fetch && git rebase origin/master && git push --force-with-lease
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
That's it! Thank you for your contribution!
|
|
91
|
-
|
|
92
|
-
#### React developpment check list
|
|
93
|
-
|
|
94
|
-
If you are developping in React please make sure to follow this check list:
|
|
95
|
-
|
|
96
|
-
- [ ] Update the `CHANGELOG.md` file
|
|
97
|
-
- [ ] Create or update component tests
|
|
98
|
-
- [ ] Keep props JSDoc comment up to date and check they appear on the demo site
|
|
99
|
-
- [ ] Keep the `lumx-react/src/index.tsx` file up to date
|
|
100
|
-
- [ ] (if necessary) Create or update the MDX demo file for your component
|
|
101
|
-
|
|
102
|
-
#### After your pull request is merged
|
|
103
|
-
|
|
104
|
-
After your pull request is merged, you can safely delete your branch and pull the changes from the main (upstream) repository:
|
|
105
|
-
|
|
106
|
-
- Delete the remote branch on GitHub either through the GitHub web UI or your local shell as follows:
|
|
107
|
-
|
|
108
|
-
```bash
|
|
109
|
-
git push origin --delete <full branch name>
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
- Check out the `master` branch:
|
|
113
|
-
|
|
114
|
-
```bash
|
|
115
|
-
git checkout master -f
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
- Delete the local branch:
|
|
119
|
-
|
|
120
|
-
```bash
|
|
121
|
-
git branch -D <full branch name>
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
- Update your `master` branch with the latest upstream version:
|
|
125
|
-
|
|
126
|
-
```bash
|
|
127
|
-
git pull --ff-only upstream master
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
## <a name="coding-rules"></a> Coding rules
|
|
131
|
-
|
|
132
|
-
We're using ES6 JavaScript, TypeScript and [SCSS](http://sass-lang.com/) to build the framework.
|
|
133
|
-
[Webpack](https://webpack.js.org/) is used in the project to launch local development server and build LumX.
|
|
134
|
-
NPM scripts are used to ease the setup, start and build of LumX.
|
|
135
|
-
|
|
136
|
-
The coding convention is the following:
|
|
137
|
-
|
|
138
|
-
- 4 spaces for indentation, for JavaScript, TypeScript and SCSS.
|
|
139
|
-
- Wrap all codes at 120 characters.
|
|
140
|
-
|
|
141
|
-
For JavaScript and TypeScript:
|
|
142
|
-
|
|
143
|
-
- Use camel-case.
|
|
144
|
-
- Use the [Allman style](http://en.wikipedia.org/wiki/Indent_style#Allman_style).
|
|
145
|
-
|
|
146
|
-
All submitted JavaScript code must be properly documented. You _must_ at least document all your functions, methods and members using the JSDoc format.
|
|
147
|
-
|
|
148
|
-
For SCSS:
|
|
149
|
-
|
|
150
|
-
- Except for the line wrap, please refer to [the Harry Roberts css guidelines](http://cssguidelin.es/).
|
|
151
|
-
- For the CSS properties, we follow the [concentric order](http://rhodesmill.org/brandon/2011/concentric-css/)
|
|
152
|
-
|
|
153
|
-
For the ease of use and contributing, most of the coding styles are enforced with ESLint, TSLint, Prettier and StyleLint. So as long as the pre-commit script let you commit, you should be good.
|
|
154
|
-
|
|
155
|
-
## <a name="git-commit-guidelines"></a> Git commit guidelines
|
|
156
|
-
|
|
157
|
-
See https://github.com/lumapps/commit-message-validator
|