@doist/reactist 17.4.0 → 17.6.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 +49 -5
- package/dist/reactist.cjs.development.js +6 -3
- package/dist/reactist.cjs.development.js.map +1 -1
- package/dist/reactist.cjs.production.min.js +1 -1
- package/dist/reactist.cjs.production.min.js.map +1 -1
- package/es/new-components/select-field/select-field.js +5 -2
- package/es/new-components/select-field/select-field.js.map +1 -1
- package/es/new-components/select-field/select-field.module.css.js +1 -1
- package/lib/new-components/select-field/select-field.d.ts +3 -3
- package/lib/new-components/select-field/select-field.js +1 -1
- package/lib/new-components/select-field/select-field.js.map +1 -1
- package/lib/new-components/select-field/select-field.module.css.js +1 -1
- package/package.json +3 -3
- package/styles/modal.css +1 -1
- package/styles/modal.module.css.css +1 -1
- package/styles/reactist.css +1 -1
- package/styles/select-field.css +1 -1
- package/styles/select-field.module.css.css +1 -1
package/README.md
CHANGED
|
@@ -140,16 +140,60 @@ MacOS users might need to upgrade watchman with `brew install watchman` when exp
|
|
|
140
140
|
|
|
141
141
|
A new version of reactist is published both on npm and GitHub Package Registry whenever a new release on GitHub is created.
|
|
142
142
|
|
|
143
|
-
|
|
143
|
+
## Before merging your changes
|
|
144
144
|
|
|
145
|
-
|
|
145
|
+
In the GitHub PR that contains your new changes, make sure that you also include the following:
|
|
146
|
+
|
|
147
|
+
1. Add tests for bugs and new feature
|
|
148
|
+
|
|
149
|
+
2. Update relevant docs (storybooks, readme)
|
|
150
|
+
|
|
151
|
+
3. Execute:
|
|
152
|
+
|
|
153
|
+
```sh
|
|
154
|
+
npm run validate
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
and make sure no errors nor warnings are shown
|
|
158
|
+
|
|
159
|
+
4. Describe your changes in [`CHANGELOG.md`](CHANGELOG.md)
|
|
160
|
+
|
|
161
|
+
5. Bump the version in [`package.json`](package.json) and [`package-lock.json`](package-lock.json) by running:
|
|
146
162
|
|
|
147
163
|
```sh
|
|
148
164
|
npm --no-git-tag-version version <major|minor|patch>
|
|
149
165
|
```
|
|
150
166
|
|
|
151
|
-
|
|
167
|
+
[ref](https://docs.npmjs.com/cli/v6/commands/npm-version)
|
|
168
|
+
|
|
169
|
+
6. Update all static build artifacts:
|
|
170
|
+
|
|
171
|
+
```sh
|
|
172
|
+
npm run build-all
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
Note that the steps above are also documented in the [PR template](.github/PULL_REQUEST_TEMPLATE.md) that you will be prompted with whenever you open a new reactist GitHub PR.
|
|
176
|
+
|
|
177
|
+
## After merging your changes
|
|
178
|
+
|
|
179
|
+
Once your changes have been merged to `main`, create a new GitHub release:
|
|
180
|
+
|
|
181
|
+
1. Visit https://github.com/Doist/reactist/releases/new
|
|
182
|
+
|
|
183
|
+
2. In the "Choose a tag" dropdown, type the new release version (i.e. vX.Y.Z) and select "Create new tag: vX.Y.Z on publish"
|
|
184
|
+
|
|
185
|
+
3. In the "Release title" field, type the new release version (i.e. vX.Y.Z)
|
|
186
|
+
|
|
187
|
+
4. In the "Describe the release" box, paste the same content you added to the [`CHANGELOG.md`](CHANGELOG.md), but without the title header
|
|
188
|
+
|
|
189
|
+
5. Make sure the "Set as the latest release" checkbox is checked
|
|
190
|
+
|
|
191
|
+
6. Click "Publish release"
|
|
192
|
+
|
|
193
|
+
7. Visit https://github.com/Doist/reactist/actions
|
|
194
|
+
|
|
195
|
+
8. Make sure that a new GitHub action is now running (this will automatically perform all the necessary steps to publish the package)
|
|
152
196
|
|
|
153
|
-
|
|
197
|
+
9. Once the action is complete, check https://npmjs.com/package/@doist/reactist and verify that there's a new public release
|
|
154
198
|
|
|
155
|
-
Finally,
|
|
199
|
+
Finally, be sure to update both [todoist-web](https://github.com/Doist/todoist-web) and [twist-web](https://github.com/Doist/twist-web) to use the new reactist version you just published.
|
|
@@ -1777,11 +1777,12 @@ const PasswordField = /*#__PURE__*/React.forwardRef(function PasswordField(_ref,
|
|
|
1777
1777
|
})))));
|
|
1778
1778
|
});
|
|
1779
1779
|
|
|
1780
|
-
var modules_1fa9b208 = {"selectWrapper":"
|
|
1780
|
+
var modules_1fa9b208 = {"selectWrapper":"a804edbf","bordered":"_50a3655f","error":"a6d38abf"};
|
|
1781
1781
|
|
|
1782
|
-
const _excluded$k = ["id", "label", "secondaryLabel", "auxiliaryLabel", "hint", "message", "tone", "maxWidth", "children", "hidden", "aria-describedby"];
|
|
1782
|
+
const _excluded$k = ["variant", "id", "label", "secondaryLabel", "auxiliaryLabel", "hint", "message", "tone", "maxWidth", "children", "hidden", "aria-describedby"];
|
|
1783
1783
|
const SelectField = /*#__PURE__*/React.forwardRef(function SelectField(_ref, ref) {
|
|
1784
1784
|
let {
|
|
1785
|
+
variant = 'default',
|
|
1785
1786
|
id,
|
|
1786
1787
|
label,
|
|
1787
1788
|
secondaryLabel,
|
|
@@ -1797,6 +1798,7 @@ const SelectField = /*#__PURE__*/React.forwardRef(function SelectField(_ref, ref
|
|
|
1797
1798
|
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
1798
1799
|
|
|
1799
1800
|
return /*#__PURE__*/React.createElement(BaseField, {
|
|
1801
|
+
variant: variant,
|
|
1800
1802
|
id: id,
|
|
1801
1803
|
label: label,
|
|
1802
1804
|
secondaryLabel: secondaryLabel,
|
|
@@ -1808,7 +1810,8 @@ const SelectField = /*#__PURE__*/React.forwardRef(function SelectField(_ref, ref
|
|
|
1808
1810
|
hidden: hidden,
|
|
1809
1811
|
"aria-describedby": ariaDescribedBy
|
|
1810
1812
|
}, extraProps => /*#__PURE__*/React.createElement(Box, {
|
|
1811
|
-
|
|
1813
|
+
"data-testid": "select-wrapper",
|
|
1814
|
+
className: [modules_1fa9b208.selectWrapper, tone === 'error' ? modules_1fa9b208.error : null, variant === 'bordered' ? modules_1fa9b208.bordered : null]
|
|
1812
1815
|
}, /*#__PURE__*/React.createElement("select", _objectSpread2(_objectSpread2(_objectSpread2({}, props), extraProps), {}, {
|
|
1813
1816
|
ref: ref
|
|
1814
1817
|
}), children), /*#__PURE__*/React.createElement(SelectChevron, {
|