@doist/reactist 28.7.3 → 29.0.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.
Files changed (265) hide show
  1. package/CHANGELOG.md +1437 -0
  2. package/CODE_OF_CONDUCT.md +83 -0
  3. package/CONTRIBUTING.md +46 -0
  4. package/README.md +3 -5
  5. package/dist/reactist.cjs.development.js +460 -447
  6. package/dist/reactist.cjs.development.js.map +1 -1
  7. package/dist/reactist.cjs.production.min.js +1 -1
  8. package/dist/reactist.cjs.production.min.js.map +1 -1
  9. package/es/avatar/avatar.js +4 -4
  10. package/es/avatar/avatar.js.map +1 -1
  11. package/es/avatar/utils.js.map +1 -1
  12. package/es/banner/banner.js +3 -3
  13. package/es/banner/banner.js.map +1 -1
  14. package/es/base-field/base-field.js +15 -18
  15. package/es/base-field/base-field.js.map +1 -1
  16. package/es/box/box.js +3 -3
  17. package/es/box/box.js.map +1 -1
  18. package/es/button/button.js +1 -1
  19. package/es/button/button.js.map +1 -1
  20. package/es/checkbox-field/checkbox-field.js +1 -1
  21. package/es/checkbox-field/checkbox-field.js.map +1 -1
  22. package/es/checkbox-field/checkbox-icon.js +1 -1
  23. package/es/checkbox-field/checkbox-icon.js.map +1 -1
  24. package/es/checkbox-field/use-fork-ref.js.map +1 -1
  25. package/es/columns/columns.js +1 -1
  26. package/es/columns/columns.js.map +1 -1
  27. package/es/components/color-picker/color-picker.js +2 -2
  28. package/es/components/color-picker/color-picker.js.map +1 -1
  29. package/es/components/deprecated-button/deprecated-button.js +1 -1
  30. package/es/components/deprecated-button/deprecated-button.js.map +1 -1
  31. package/es/components/deprecated-dropdown/dropdown.js +4 -4
  32. package/es/components/deprecated-dropdown/dropdown.js.map +1 -1
  33. package/es/components/deprecated-input/input.js.map +1 -1
  34. package/es/components/deprecated-select/select.js +1 -1
  35. package/es/components/deprecated-select/select.js.map +1 -1
  36. package/es/components/key-capturer/key-capturer.js +46 -36
  37. package/es/components/key-capturer/key-capturer.js.map +1 -1
  38. package/es/components/keyboard-shortcut/keyboard-shortcut.js +1 -1
  39. package/es/components/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
  40. package/es/components/progress-bar/progress-bar.js +1 -1
  41. package/es/components/progress-bar/progress-bar.js.map +1 -1
  42. package/es/components/time/time-utils.js +1 -1
  43. package/es/components/time/time-utils.js.map +1 -1
  44. package/es/components/time/time.js +4 -4
  45. package/es/components/time/time.js.map +1 -1
  46. package/es/divider/divider.js +1 -1
  47. package/es/divider/divider.js.map +1 -1
  48. package/es/heading/heading.js +1 -1
  49. package/es/heading/heading.js.map +1 -1
  50. package/es/hidden/hidden.js +2 -2
  51. package/es/hidden/hidden.js.map +1 -1
  52. package/es/hidden-visually/hidden-visually.js +1 -1
  53. package/es/hidden-visually/hidden-visually.js.map +1 -1
  54. package/es/icons/alert-icon.js +1 -1
  55. package/es/icons/alert-icon.js.map +1 -1
  56. package/es/icons/banner-icon.js +1 -1
  57. package/es/icons/banner-icon.js.map +1 -1
  58. package/es/index.js +5 -5
  59. package/es/inline/inline.js +1 -1
  60. package/es/inline/inline.js.map +1 -1
  61. package/es/loading/loading.js +1 -1
  62. package/es/loading/loading.js.map +1 -1
  63. package/es/menu/menu.js +2 -2
  64. package/es/menu/menu.js.map +1 -1
  65. package/es/modal/modal.js +22 -22
  66. package/es/modal/modal.js.map +1 -1
  67. package/es/modal/modal.module.css.js +1 -1
  68. package/es/notice/notice.js +1 -1
  69. package/es/notice/notice.js.map +1 -1
  70. package/es/password-field/password-field.js +2 -2
  71. package/es/prose/prose.js.map +1 -1
  72. package/es/select-field/select-field.js.map +1 -1
  73. package/es/select-field/select-field.module.css.js +1 -1
  74. package/es/spinner/spinner.js.map +1 -1
  75. package/es/stack/stack.js +2 -2
  76. package/es/stack/stack.js.map +1 -1
  77. package/es/switch-field/switch-field.js +2 -2
  78. package/es/switch-field/switch-field.js.map +1 -1
  79. package/es/tabs/tabs.js +4 -4
  80. package/es/tabs/tabs.js.map +1 -1
  81. package/es/text/text.js +1 -1
  82. package/es/text/text.js.map +1 -1
  83. package/es/text-area/text-area.js.map +1 -1
  84. package/es/text-field/text-field.js +1 -1
  85. package/es/text-field/text-field.js.map +1 -1
  86. package/es/text-field/text-field.module.css.js +1 -1
  87. package/es/text-link/text-link.js.map +1 -1
  88. package/es/toast/static-toast.js +1 -1
  89. package/es/toast/toast-animation.js +4 -4
  90. package/es/toast/toast-animation.js.map +1 -1
  91. package/es/toast/use-toasts.js +2 -2
  92. package/es/toast/use-toasts.js.map +1 -1
  93. package/es/tooltip/tooltip.js +2 -2
  94. package/es/tooltip/tooltip.js.map +1 -1
  95. package/es/utils/common-helpers.js +5 -0
  96. package/es/utils/common-helpers.js.map +1 -1
  97. package/es/utils/responsive-props.js +1 -1
  98. package/es/utils/responsive-props.js.map +1 -1
  99. package/lib/avatar/avatar.d.ts +1 -1
  100. package/lib/avatar/avatar.js +4 -4
  101. package/lib/avatar/avatar.js.map +1 -1
  102. package/lib/avatar/utils.d.ts +1 -1
  103. package/lib/avatar/utils.js.map +1 -1
  104. package/lib/banner/banner.d.ts +1 -1
  105. package/lib/banner/banner.js +3 -3
  106. package/lib/banner/banner.js.map +1 -1
  107. package/lib/banner/index.d.ts +1 -1
  108. package/lib/base-field/base-field.d.ts +1 -1
  109. package/lib/base-field/base-field.js +15 -18
  110. package/lib/base-field/base-field.js.map +1 -1
  111. package/lib/box/box.d.ts +2 -2
  112. package/lib/box/box.js +3 -3
  113. package/lib/box/box.js.map +1 -1
  114. package/lib/button/button.d.ts +3 -3
  115. package/lib/button/button.js +1 -1
  116. package/lib/button/button.js.map +1 -1
  117. package/lib/checkbox-field/checkbox-field.js +1 -1
  118. package/lib/checkbox-field/checkbox-field.js.map +1 -1
  119. package/lib/checkbox-field/checkbox-icon.js +1 -1
  120. package/lib/checkbox-field/checkbox-icon.js.map +1 -1
  121. package/lib/checkbox-field/use-fork-ref.d.ts +0 -1
  122. package/lib/checkbox-field/use-fork-ref.js.map +1 -1
  123. package/lib/columns/columns.d.ts +3 -3
  124. package/lib/columns/columns.js +1 -1
  125. package/lib/columns/columns.js.map +1 -1
  126. package/lib/components/color-picker/color-picker.d.ts +2 -2
  127. package/lib/components/color-picker/color-picker.js +2 -2
  128. package/lib/components/color-picker/color-picker.js.map +1 -1
  129. package/lib/components/color-picker/index.d.ts +1 -1
  130. package/lib/components/deprecated-button/deprecated-button.d.ts +4 -4
  131. package/lib/components/deprecated-button/deprecated-button.js +1 -1
  132. package/lib/components/deprecated-button/deprecated-button.js.map +1 -1
  133. package/lib/components/deprecated-dropdown/dropdown.d.ts +1 -1
  134. package/lib/components/deprecated-dropdown/dropdown.js +4 -4
  135. package/lib/components/deprecated-dropdown/dropdown.js.map +1 -1
  136. package/lib/components/deprecated-input/input.d.ts +1 -1
  137. package/lib/components/deprecated-input/input.js.map +1 -1
  138. package/lib/components/deprecated-select/select.d.ts +1 -1
  139. package/lib/components/deprecated-select/select.js +1 -1
  140. package/lib/components/deprecated-select/select.js.map +1 -1
  141. package/lib/components/key-capturer/key-capturer.d.ts +1 -1
  142. package/lib/components/key-capturer/key-capturer.js +46 -36
  143. package/lib/components/key-capturer/key-capturer.js.map +1 -1
  144. package/lib/components/keyboard-shortcut/keyboard-shortcut.d.ts +1 -1
  145. package/lib/components/keyboard-shortcut/keyboard-shortcut.js +1 -1
  146. package/lib/components/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
  147. package/lib/components/progress-bar/progress-bar.js +1 -1
  148. package/lib/components/progress-bar/progress-bar.js.map +1 -1
  149. package/lib/components/time/time-utils.d.ts +2 -1
  150. package/lib/components/time/time-utils.js +1 -1
  151. package/lib/components/time/time-utils.js.map +1 -1
  152. package/lib/components/time/time.d.ts +2 -2
  153. package/lib/components/time/time.js +4 -4
  154. package/lib/components/time/time.js.map +1 -1
  155. package/lib/divider/divider.js +1 -1
  156. package/lib/divider/divider.js.map +1 -1
  157. package/lib/heading/heading.d.ts +7 -7
  158. package/lib/heading/heading.js +1 -1
  159. package/lib/heading/heading.js.map +1 -1
  160. package/lib/hidden/hidden.js +2 -2
  161. package/lib/hidden/hidden.js.map +1 -1
  162. package/lib/hidden-visually/hidden-visually.js +1 -1
  163. package/lib/hidden-visually/hidden-visually.js.map +1 -1
  164. package/lib/icons/alert-icon.js +1 -1
  165. package/lib/icons/alert-icon.js.map +1 -1
  166. package/lib/icons/banner-icon.js +1 -1
  167. package/lib/icons/banner-icon.js.map +1 -1
  168. package/lib/index.d.ts +5 -5
  169. package/lib/index.js +16 -16
  170. package/lib/inline/inline.d.ts +3 -3
  171. package/lib/inline/inline.js +1 -1
  172. package/lib/inline/inline.js.map +1 -1
  173. package/lib/loading/loading.js +1 -1
  174. package/lib/loading/loading.js.map +1 -1
  175. package/lib/menu/index.d.ts +2 -2
  176. package/lib/menu/menu.d.ts +4 -4
  177. package/lib/menu/menu.js +2 -2
  178. package/lib/menu/menu.js.map +1 -1
  179. package/lib/modal/modal-stories-components.d.ts +3 -3
  180. package/lib/modal/modal.d.ts +4 -4
  181. package/lib/modal/modal.js +23 -23
  182. package/lib/modal/modal.js.map +1 -1
  183. package/lib/modal/modal.module.css.js +1 -1
  184. package/lib/notice/notice.js +1 -1
  185. package/lib/notice/notice.js.map +1 -1
  186. package/lib/password-field/password-field.d.ts +1 -1
  187. package/lib/password-field/password-field.js +2 -2
  188. package/lib/prose/index.d.ts +1 -1
  189. package/lib/prose/prose.js.map +1 -1
  190. package/lib/select-field/select-field.d.ts +1 -1
  191. package/lib/select-field/select-field.js.map +1 -1
  192. package/lib/select-field/select-field.module.css.js +1 -1
  193. package/lib/spinner/spinner.js.map +1 -1
  194. package/lib/stack/stack.d.ts +2 -2
  195. package/lib/stack/stack.js +2 -2
  196. package/lib/stack/stack.js.map +1 -1
  197. package/lib/switch-field/switch-field.d.ts +1 -1
  198. package/lib/switch-field/switch-field.js +2 -2
  199. package/lib/switch-field/switch-field.js.map +1 -1
  200. package/lib/tabs/tabs.d.ts +2 -2
  201. package/lib/tabs/tabs.js +4 -4
  202. package/lib/tabs/tabs.js.map +1 -1
  203. package/lib/text/text.d.ts +1 -1
  204. package/lib/text/text.js +1 -1
  205. package/lib/text/text.js.map +1 -1
  206. package/lib/text-area/text-area.d.ts +1 -1
  207. package/lib/text-area/text-area.js.map +1 -1
  208. package/lib/text-field/text-field.d.ts +1 -2
  209. package/lib/text-field/text-field.js +1 -1
  210. package/lib/text-field/text-field.js.map +1 -1
  211. package/lib/text-field/text-field.module.css.js +1 -1
  212. package/lib/text-link/text-link.js.map +1 -1
  213. package/lib/toast/index.d.ts +2 -2
  214. package/lib/toast/static-toast.d.ts +1 -1
  215. package/lib/toast/static-toast.js +1 -1
  216. package/lib/toast/toast-animation.js +4 -4
  217. package/lib/toast/toast-animation.js.map +1 -1
  218. package/lib/toast/use-toasts.d.ts +1 -1
  219. package/lib/toast/use-toasts.js +2 -2
  220. package/lib/toast/use-toasts.js.map +1 -1
  221. package/lib/tooltip/index.d.ts +1 -1
  222. package/lib/tooltip/tooltip.d.ts +1 -1
  223. package/lib/tooltip/tooltip.js +2 -2
  224. package/lib/tooltip/tooltip.js.map +1 -1
  225. package/lib/utils/common-helpers.d.ts +3 -0
  226. package/lib/utils/common-helpers.js +5 -0
  227. package/lib/utils/common-helpers.js.map +1 -1
  228. package/lib/utils/responsive-props.d.ts +1 -1
  229. package/lib/utils/responsive-props.js +1 -1
  230. package/lib/utils/responsive-props.js.map +1 -1
  231. package/lib/utils/storybook-helper.d.ts +2 -2
  232. package/lib/utils/test-helpers.d.ts +3 -3
  233. package/package.json +37 -22
  234. package/styles/avatar.css +3 -3
  235. package/styles/badge.css +2 -2
  236. package/styles/banner.css +4 -4
  237. package/styles/base-field.css +6 -6
  238. package/styles/box.css +3 -3
  239. package/styles/button.css +2 -2
  240. package/styles/checkbox-field.css +2 -2
  241. package/styles/columns.css +2 -2
  242. package/styles/divider.css +2 -2
  243. package/styles/heading.css +2 -2
  244. package/styles/hidden-visually.css +2 -2
  245. package/styles/hidden.css +2 -2
  246. package/styles/index.css +5 -5
  247. package/styles/loading.css +2 -2
  248. package/styles/modal.css +5 -5
  249. package/styles/modal.module.css.css +1 -1
  250. package/styles/notice.css +2 -2
  251. package/styles/password-field.css +8 -8
  252. package/styles/prose.css +2 -2
  253. package/styles/reactist.css +8 -8
  254. package/styles/select-field.css +6 -6
  255. package/styles/select-field.module.css.css +1 -1
  256. package/styles/static-toast.css +2 -2
  257. package/styles/switch-field.css +6 -6
  258. package/styles/tabs.css +2 -2
  259. package/styles/text-area.css +5 -5
  260. package/styles/text-field.css +6 -6
  261. package/styles/text-field.module.css.css +1 -1
  262. package/styles/text-link.css +2 -2
  263. package/styles/text.css +2 -2
  264. package/styles/tooltip.css +2 -2
  265. package/styles/use-toasts.css +2 -2
@@ -0,0 +1,83 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ - Demonstrating empathy and kindness toward other people
14
+ - Being respectful of differing opinions, viewpoints, and experiences
15
+ - Giving and gracefully accepting constructive feedback
16
+ - Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ - Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ - The use of sexualized language or imagery, and sexual attention or advances of any kind
22
+ - Trolling, insulting or derogatory comments, and personal or political attacks
23
+ - Public or private harassment
24
+ - Publishing others' private information, such as a physical or email address, without their explicit permission
25
+ - Other conduct which could reasonably be considered inappropriate in a professional setting
26
+
27
+ ## Enforcement Responsibilities
28
+
29
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
30
+
31
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
32
+
33
+ ## Scope
34
+
35
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
36
+
37
+ ## Enforcement
38
+
39
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at frontend+opensource@doist.com. All complaints will be reviewed and investigated promptly and fairly.
40
+
41
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
42
+
43
+ ## Enforcement Guidelines
44
+
45
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
46
+
47
+ ### 1. Correction
48
+
49
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
50
+
51
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
52
+
53
+ ### 2. Warning
54
+
55
+ **Community Impact**: A violation through a single incident or series of actions.
56
+
57
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
58
+
59
+ ### 3. Temporary Ban
60
+
61
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
62
+
63
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
64
+
65
+ ### 4. Permanent Ban
66
+
67
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
68
+
69
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
70
+
71
+ ## Attribution
72
+
73
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
74
+
75
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][mozilla coc].
76
+
77
+ For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][faq]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
78
+
79
+ [homepage]: https://www.contributor-covenant.org
80
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
81
+ [mozilla coc]: https://github.com/mozilla/diversity
82
+ [faq]: https://www.contributor-covenant.org/faq
83
+ [translations]: https://www.contributor-covenant.org/translations
@@ -0,0 +1,46 @@
1
+ # Contributing
2
+
3
+ Thanks for being willing to contribute!
4
+
5
+ **Working on your first Pull Request?** You can learn how from this _free_
6
+ series [How to Contribute to an Open Source Project on GitHub][egghead]
7
+
8
+ ## Project setup
9
+
10
+ 1. Fork and clone the repo
11
+ 2. Run `npm run setup` to install dependencies and run validations.
12
+ 3. Create a branch for your PR with `git checkout -b pr/your-branch-name`
13
+
14
+ > Tip: Keep your `main` branch pointing at the original repository and make pull
15
+ > requests from branches on your fork. To do this, run:
16
+ >
17
+ > ```
18
+ > git remote add upstream https://github.com/doist/reactist.git
19
+ > git fetch upstream
20
+ > git branch --set-upstream-to=upstream/main main
21
+ > ```
22
+ >
23
+ > This will add the original repository as a "remote" called "upstream," Then
24
+ > fetch the git information from that remote, then set your local `main` branch
25
+ > to use the upstream `main` branch whenever you run `git pull`. Then you can
26
+ > make all of your pull request branches based on this `main` branch.
27
+ >
28
+ > Whenever you want to update your version of `main`, do a regular `git pull`.
29
+
30
+ ## Committing and Pushing changes
31
+
32
+ This repository is setup so that on `git push` it will run all validations
33
+ (linting, tests and type checks) and will prevent you from pushing any changes
34
+ if any of these checks fail. These steps are also enforced on GitHub preventing
35
+ any failing PR to be merged, but are run before pushing for your convenience and
36
+ ours. Please do not override this step.
37
+
38
+ ## Help needed
39
+
40
+ Please checkout the [the open issues][issues].
41
+
42
+ Also, please watch the repo and respond to questions/bug reports/feature
43
+ requests! Thanks!
44
+
45
+ [egghead]: https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github
46
+ [issues]: https://github.com/doist/reactist/issues
package/README.md CHANGED
@@ -197,9 +197,9 @@ We recommend you enable these tests on those Storybook stories that have several
197
197
 
198
198
  When you open a GitHub PR, you'll notice the "UI Review" and "UI Tests" CI steps.
199
199
 
200
- - Clicking on "Details" will bring you to the Chromatic UI (if you don't already have a Chromatic account, please sign-up using your GitHub account).
201
- - Now you can review and accept your changes (or go back and change your code).
202
- - When you're happy with your changes, make sure to mark them as "Approved".
200
+ - Clicking on "Details" will bring you to the Chromatic UI (if you don't already have a Chromatic account, please sign-up using your GitHub account).
201
+ - Now you can review and accept your changes (or go back and change your code).
202
+ - When you're happy with your changes, make sure to mark them as "Approved".
203
203
 
204
204
  # Releasing
205
205
 
@@ -208,7 +208,6 @@ This project uses [release-please](https://github.com/googleapis/release-please)
208
208
  ## How it works
209
209
 
210
210
  1. Make your changes using [Conventional Commits](https://www.conventionalcommits.org/):
211
-
212
211
  - `feat:` for new features (minor version bump)
213
212
  - `fix:` for bug fixes (patch version bump)
214
213
  - `style:` for code style changes
@@ -223,7 +222,6 @@ This project uses [release-please](https://github.com/googleapis/release-please)
223
222
  - `chore:` for maintenance tasks (NOTE: these are not included in the changelog)
224
223
 
225
224
  2. When commits are pushed to `main`:
226
-
227
225
  - Release-please automatically creates/updates a release PR
228
226
  - The PR includes version bump and changelog updates
229
227
  - Review the PR and merge when ready