@dexma/ui-components 6.8.1 → 7.0.1
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/LICENSE +1 -1
- package/README.md +38 -36
- package/dist/index.d.ts +1 -0
- package/dist/lib/components/Alert/Alert.d.ts +13 -0
- package/dist/lib/components/Alert/index.d.ts +1 -0
- package/dist/lib/components/Button/Button.d.ts +50 -0
- package/dist/lib/components/Button/index.d.ts +1 -0
- package/dist/lib/components/Card/Card.d.ts +17 -0
- package/dist/lib/components/Card/index.d.ts +1 -0
- package/dist/lib/components/Cascader/Cascader.d.ts +19 -0
- package/dist/lib/components/Cascader/index.d.ts +1 -0
- package/dist/lib/components/Cell/Cell.d.ts +17 -0
- package/dist/lib/components/Cell/index.d.ts +1 -0
- package/dist/lib/components/Chart/Chart.d.ts +23 -0
- package/dist/lib/components/Chart/index.d.ts +1 -0
- package/dist/lib/components/Chart/types.d.ts +24 -0
- package/dist/lib/components/Checkbox/Checkbox.d.ts +9 -0
- package/dist/lib/components/Checkbox/index.d.ts +1 -0
- package/dist/lib/components/ColorPicker/ColorPicker.d.ts +15 -0
- package/dist/lib/components/ColorPicker/index.d.ts +1 -0
- package/dist/lib/components/DataId/DataIdProvider.d.ts +10 -0
- package/dist/lib/components/DataId/withDataId.d.ts +7 -0
- package/dist/lib/components/DatePicker/DatePicker.d.ts +24 -0
- package/dist/lib/components/DatePicker/datePickerUtils.d.ts +3 -0
- package/dist/lib/components/DatePicker/index.d.ts +1 -0
- package/dist/lib/components/Divider/Divider.d.ts +6 -0
- package/dist/lib/components/Divider/index.d.ts +1 -0
- package/dist/lib/components/Dots/Dots.d.ts +5 -0
- package/dist/lib/components/Dots/index.d.ts +1 -0
- package/dist/lib/components/Dropdown/Dropdown.d.ts +19 -0
- package/dist/lib/components/Dropdown/index.d.ts +1 -0
- package/dist/lib/components/FieldGroup/FieldGroup.d.ts +62 -0
- package/dist/lib/components/FieldGroup/index.d.ts +1 -0
- package/dist/lib/components/FormControl/FormControl.d.ts +35 -0
- package/dist/lib/components/FormControl/index.d.ts +1 -0
- package/dist/lib/components/Gauge/Gauge.d.ts +234 -0
- package/dist/lib/components/Gauge/index.d.ts +1 -0
- package/dist/lib/components/Grid/Grid.d.ts +5 -0
- package/dist/lib/components/Grid/index.d.ts +1 -0
- package/dist/lib/components/Heading/Heading.d.ts +10 -0
- package/dist/lib/components/Heading/index.d.ts +1 -0
- package/dist/lib/components/Icon/Icon.d.ts +17 -0
- package/dist/lib/components/Icon/index.d.ts +1 -0
- package/dist/lib/components/Input/Input.d.ts +17 -0
- package/dist/lib/components/Input/index.d.ts +1 -0
- package/dist/lib/components/Loading/Loading.d.ts +10 -0
- package/dist/lib/components/Loading/index.d.ts +1 -0
- package/dist/lib/components/Modal/Modal.d.ts +3 -0
- package/dist/lib/components/Modal/index.d.ts +1 -0
- package/dist/lib/components/Pagination/Pagination.d.ts +6 -0
- package/dist/lib/components/Pagination/index.d.ts +1 -0
- package/dist/lib/components/Paragraph/Paragraph.d.ts +9 -0
- package/dist/lib/components/Paragraph/index.d.ts +1 -0
- package/dist/lib/components/Popover/Popover.d.ts +6 -0
- package/dist/lib/components/Popover/index.d.ts +1 -0
- package/dist/lib/components/Progress/Progress.d.ts +12 -0
- package/dist/lib/components/Progress/index.d.ts +1 -0
- package/dist/lib/components/Result/Result.d.ts +20 -0
- package/dist/lib/components/Result/index.d.ts +1 -0
- package/dist/lib/components/Row/Row.d.ts +8 -0
- package/dist/lib/components/Row/index.d.ts +1 -0
- package/dist/lib/components/Section/Section.d.ts +15 -0
- package/dist/lib/components/Section/index.d.ts +1 -0
- package/dist/lib/components/Select/ButtonPaginationSelector.d.ts +18 -0
- package/dist/lib/components/Select/Select.d.ts +58 -0
- package/dist/lib/components/Select/index.d.ts +1 -0
- package/dist/lib/components/Select/selectUtils.d.ts +21 -0
- package/dist/lib/components/Spinner/Spinner.d.ts +4 -0
- package/dist/lib/components/Spinner/index.d.ts +1 -0
- package/dist/lib/components/Switch/Switch.d.ts +19 -0
- package/dist/lib/components/Switch/index.d.ts +1 -0
- package/dist/lib/components/SwitchPeriodComparative/SwitchPeriodComparative.d.ts +24 -0
- package/dist/lib/components/SwitchPeriodComparative/index.d.ts +1 -0
- package/dist/lib/components/Table/Table.d.ts +16 -0
- package/dist/lib/components/Table/index.d.ts +1 -0
- package/dist/lib/components/Tabs/Tabs.d.ts +16 -0
- package/dist/lib/components/Tabs/index.d.ts +1 -0
- package/dist/lib/components/Tag/Tag.d.ts +22 -0
- package/dist/lib/components/Tag/index.d.ts +1 -0
- package/dist/lib/components/TagGroup/TagGroup.d.ts +7 -0
- package/dist/lib/components/TagGroup/index.d.ts +1 -0
- package/dist/lib/components/Theme/Theme.d.ts +8 -0
- package/dist/lib/components/Theme/index.d.ts +1 -0
- package/dist/lib/components/Toaster/Toast.d.ts +12 -0
- package/dist/lib/components/Toaster/Toaster.d.ts +7 -0
- package/dist/lib/components/Toaster/ToasterContext.d.ts +11 -0
- package/dist/lib/components/Toaster/index.d.ts +3 -0
- package/dist/lib/components/Tooltip/Tooltip.d.ts +8 -0
- package/dist/lib/components/Tooltip/index.d.ts +1 -0
- package/dist/lib/components/index.d.ts +42 -0
- package/dist/lib/index.d.ts +5 -0
- package/dist/lib/styles/Alert/StyledAlert.d.ts +12 -0
- package/dist/lib/styles/Button/StyledButton.d.ts +44 -0
- package/dist/lib/styles/Card/StyledCard.d.ts +14 -0
- package/dist/lib/styles/Cascader/StyledCascader.d.ts +11 -0
- package/dist/lib/styles/Cell/StyledCell.d.ts +16 -0
- package/dist/lib/styles/Chart/StyledChart.d.ts +3 -0
- package/dist/lib/styles/ColorPicker/StyledColorPicker.d.ts +50 -0
- package/dist/lib/styles/DatePicker/StyledDatePicker.d.ts +25 -0
- package/dist/lib/styles/Divider/StyledDivider.d.ts +7 -0
- package/dist/lib/styles/Dots/StyledDots.d.ts +10 -0
- package/dist/lib/styles/Dropdown/StyledDropdown.d.ts +88 -0
- package/dist/lib/styles/Fieldgroup/StyledFieldGroup.d.ts +16 -0
- package/dist/lib/styles/FromControl/StyledFormControl.d.ts +5 -0
- package/dist/lib/styles/Grid/StyledGrid.d.ts +7 -0
- package/dist/lib/styles/Heading/StyledHeading.d.ts +8 -0
- package/dist/lib/styles/Icon/StyledIcon.d.ts +5 -0
- package/dist/lib/styles/Input/StyledInput.d.ts +11 -0
- package/dist/lib/styles/Loading/StyledLoading.d.ts +2 -0
- package/dist/lib/styles/Modal/StyledModal.d.ts +14 -0
- package/dist/lib/styles/Pagination/StyledPagination.d.ts +7 -0
- package/dist/lib/styles/Paragraph/StyledParagraph.d.ts +9 -0
- package/dist/lib/styles/Progress/StyledProgress.d.ts +14 -0
- package/dist/lib/styles/Result/StyledResult.d.ts +10 -0
- package/dist/lib/styles/Row/StyledRow.d.ts +8 -0
- package/dist/lib/styles/Section/StyledSection.d.ts +9 -0
- package/dist/lib/styles/Select/StyledSelect.d.ts +98 -0
- package/dist/lib/styles/Spinner/StyledSpinner.d.ts +9 -0
- package/dist/lib/styles/Switch/StyledSwitch.d.ts +2 -0
- package/dist/lib/styles/SwitchPeriodComparative/StyledSwitchPeriodComparative.d.ts +7 -0
- package/dist/lib/styles/Table/StyledTable.d.ts +7 -0
- package/dist/lib/styles/Tabs/StyledTabs.d.ts +9 -0
- package/dist/lib/styles/Tag/StyledTag.d.ts +14 -0
- package/dist/lib/styles/TagGroup/StyledTagGroup.d.ts +6 -0
- package/dist/lib/styles/Toast/StyledToast.d.ts +2 -0
- package/dist/lib/utils/animation.d.ts +13 -0
- package/dist/lib/utils/dates.d.ts +29 -0
- package/dist/lib/utils/formatter.d.ts +2 -0
- package/dist/lib/utils/global.d.ts +4 -0
- package/dist/lib/utils/selectors.d.ts +113 -0
- package/dist/lib/utils/theme.d.ts +85 -0
- package/dist/ui-components.es.js +72660 -0
- package/dist/ui-components.umd.js +4967 -0
- package/package.json +42 -137
- package/.github/workflows/cd.yml +0 -36
- package/.github/workflows/ci.yml +0 -45
- package/CHANGELOG.md +0 -1556
- package/CONTRIBUTING.md +0 -154
- package/dist/main.bundle.js +0 -253
- package/dist/main.bundle.js.map +0 -1
package/CONTRIBUTING.md
DELETED
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
# Contributing to dexma/ui-components
|
|
2
|
-
|
|
3
|
-
* [Commit](#commit)
|
|
4
|
-
* [Branches](#branches)
|
|
5
|
-
* [Release](#release)
|
|
6
|
-
|
|
7
|
-
## Commit
|
|
8
|
-
|
|
9
|
-
A good commit message should describe what changed and why. We use semantic commit messages to streamline the release process.
|
|
10
|
-
|
|
11
|
-
A conventional commit contains the following format.
|
|
12
|
-
|
|
13
|
-
type(scope): short description
|
|
14
|
-
body
|
|
15
|
-
footer
|
|
16
|
-
|
|
17
|
-
Type:
|
|
18
|
-
|
|
19
|
-
- fix: A bug fix
|
|
20
|
-
- feat: A new feature
|
|
21
|
-
- docs: Documentation changes
|
|
22
|
-
- test: Adding missing tests or correcting existing tests
|
|
23
|
-
- build: Changes that affect the build system
|
|
24
|
-
- ci: Changes to our CI configuration files and scripts
|
|
25
|
-
- perf: A code change that improves performance
|
|
26
|
-
- refactor: A code change that neither fixes a bug nor adds a feature
|
|
27
|
-
- style: Changes that do not affect the meaning of the code (linting)
|
|
28
|
-
|
|
29
|
-
Scope:
|
|
30
|
-
|
|
31
|
-
A scope is phrase describing parts of the code affected by the changes. For example "feat(order)" or "fix(button)" in this case order and button are the scope
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
Examples of commit messages with semantic prefixes:
|
|
35
|
-
|
|
36
|
-
- fix(datepicker): pass correct date prop to the DatePicker
|
|
37
|
-
- feat(button): add isLoading state to the Button
|
|
38
|
-
- docs(input): add Input props
|
|
39
|
-
- test(carousel): add Carousel unit test
|
|
40
|
-
- build(webpack): update webpack export type
|
|
41
|
-
- ci(node): update the version of the node image
|
|
42
|
-
- perf(cache): cache the props with the memo hoc
|
|
43
|
-
- refactor(camelcase): update to camelcase the state of User views
|
|
44
|
-
- style(button): update the sizes of the Button component
|
|
45
|
-
|
|
46
|
-
## Branches
|
|
47
|
-
|
|
48
|
-
The different types of branches we may use are:
|
|
49
|
-
|
|
50
|
-
- Feature branches: feature/feature-name
|
|
51
|
-
- Release branches: release/0.3
|
|
52
|
-
- Fix branches: fix/button
|
|
53
|
-
|
|
54
|
-
## Release
|
|
55
|
-
|
|
56
|
-
Release rules are used when deciding if the commits since the last release warrant a new release. If you define custom release rules the [default rules](lib/default-release-rules.js) will be used if nothing matched. Those rules will be matched against the commit objects resulting of [conventional-commits-parser](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-commits-parser) parsing.
|
|
57
|
-
|
|
58
|
-
##### Rules matching
|
|
59
|
-
|
|
60
|
-
Each commit will be compared with each rule and when it matches, the commit will be associated with the release type in the rule's `release` property. If a commit match multiple rules, the highest release type (`major` > `minor` > `patch`) is associated with the commit.
|
|
61
|
-
|
|
62
|
-
See [release types](lib/default-release-types.js) for the release types hierarchy.
|
|
63
|
-
|
|
64
|
-
With the previous example:
|
|
65
|
-
- Commits with `type` 'docs' and `scope` 'README' will be associated with a `patch` release.
|
|
66
|
-
- Commits with `type` 'refactor' and `scope` starting with 'core-' (i.e. 'core-ui', 'core-rules', ...) will be associated with a `minor` release.
|
|
67
|
-
- Other commits with `type` 'refactor' (without `scope` or with a `scope` not matching the regexp `/core-.*/`) will be associated with a `patch` release.
|
|
68
|
-
- Commits with scope `no-release` will not be associated with a release type.
|
|
69
|
-
|
|
70
|
-
##### Default rules matching
|
|
71
|
-
|
|
72
|
-
If a commit doesn't match any rule in `releaseRules` it will be evaluated against the [default release rules](lib/default-release-rules.js).
|
|
73
|
-
|
|
74
|
-
With the previous example:
|
|
75
|
-
- Commits with a breaking change will be associated with a `major` release.
|
|
76
|
-
- Commits with `type` 'feat' will be associated with a `minor` release.
|
|
77
|
-
- Commits with `type` 'fix' will be associated with a `patch` release.
|
|
78
|
-
- Commits with `type` 'perf' will be associated with a `patch` release.
|
|
79
|
-
- Commits with scope `no-release` will not be associated with a release type even if they have a breaking change or the `type` 'feat', 'fix' or 'perf'.
|
|
80
|
-
|
|
81
|
-
##### No rules matching
|
|
82
|
-
|
|
83
|
-
If a commit doesn't match any rules in `releaseRules` or in [default release rules](lib/default-release-rules.js) then no release type will be associated with the commit.
|
|
84
|
-
|
|
85
|
-
With the previous example:
|
|
86
|
-
- Commits with `type` 'style' will not be associated with a release type.
|
|
87
|
-
- Commits with `type` 'test' will not be associated with a release type.
|
|
88
|
-
- Commits with `type` 'chore' will not be associated with a release type.
|
|
89
|
-
|
|
90
|
-
##### Multiple commits
|
|
91
|
-
|
|
92
|
-
If there is multiple commits that match one or more rules, the one with the highest release type will determine the global release type.
|
|
93
|
-
|
|
94
|
-
Considering the following commits:
|
|
95
|
-
- `docs(README): Add more details to the API docs`
|
|
96
|
-
- `feat(API): Add a new method to the public API`
|
|
97
|
-
|
|
98
|
-
With the previous example the release type determined by the plugin will be `minor`.
|
|
99
|
-
|
|
100
|
-
##### Specific commit properties
|
|
101
|
-
|
|
102
|
-
The properties to set in the rules will depends on the commit style chosen. For example [conventional-changelog-angular](https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog-angular) use the commit properties `type`, `scope` and `subject` but [conventional-changelog-eslint](https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog-eslint) uses `tag` and `message`.
|
|
103
|
-
|
|
104
|
-
For example with `eslint` preset:
|
|
105
|
-
```json
|
|
106
|
-
{
|
|
107
|
-
"plugins": [
|
|
108
|
-
["@semantic-release/commit-analyzer", {
|
|
109
|
-
"preset": "eslint",
|
|
110
|
-
"releaseRules": [
|
|
111
|
-
{"tag": "Docs", "message":"/README/", "release": "patch"},
|
|
112
|
-
{"tag": "New", "release": "patch"}
|
|
113
|
-
]
|
|
114
|
-
}],
|
|
115
|
-
"@semantic-release/release-notes-generator"
|
|
116
|
-
]
|
|
117
|
-
}
|
|
118
|
-
```
|
|
119
|
-
With this configuration:
|
|
120
|
-
- Commits with `tag` 'Docs', that contains 'README' in their header message will be associated with a `patch` release.
|
|
121
|
-
- Commits with `tag` 'New' will be associated with a `patch` release.
|
|
122
|
-
- Commits with `tag` 'Breaking' will be associated with a `major` release (per [default release rules](lib/default-release-rules.js)).
|
|
123
|
-
- Commits with `tag` 'Fix' will be associated with a `patch` release (per [default release rules](lib/default-release-rules.js)).
|
|
124
|
-
- Commits with `tag` 'Update' will be associated with a `minor` release (per [default release rules](lib/default-release-rules.js)).
|
|
125
|
-
- All other commits will not be associated with a release type.
|
|
126
|
-
|
|
127
|
-
##### External package / file
|
|
128
|
-
|
|
129
|
-
`releaseRules` can also reference a module, either by it's `npm` name or path:
|
|
130
|
-
```json
|
|
131
|
-
{
|
|
132
|
-
"plugins": [
|
|
133
|
-
["@semantic-release/commit-analyzer", {
|
|
134
|
-
"preset": "angular",
|
|
135
|
-
"releaseRules": "./config/release-rules.js"
|
|
136
|
-
}],
|
|
137
|
-
"@semantic-release/release-notes-generator"
|
|
138
|
-
]
|
|
139
|
-
}
|
|
140
|
-
```
|
|
141
|
-
```js
|
|
142
|
-
// File: config/release-rules.js
|
|
143
|
-
module.exports = [
|
|
144
|
-
{type: 'docs', scope: 'README', release: 'patch'},
|
|
145
|
-
{type: 'refactor', scope: /core-.*/, release: 'minor'},
|
|
146
|
-
{type: 'refactor', release: 'patch'},
|
|
147
|
-
];
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|