@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 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
- To begin the process, update CHANGELOG.md with the new version and its changes
143
+ ## Before merging your changes
144
144
 
145
- To update the version in both `package.json` and `package-lock.json`:
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
- Once these changes have been pushed and merged, create a release.
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
- A GitHub Action will automatically perform all the necessary steps and will release the version number that's specified inside the `package.json`'s `version` field so make sure that the release tag reflects the version you want to publish.
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, once the release has been created 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 version.
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":"_07e75293","error":"f147bcea"};
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
- className: [modules_1fa9b208.selectWrapper, tone === 'error' ? modules_1fa9b208.error : null]
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, {