@doist/reactist 19.0.0 → 19.1.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 (37) hide show
  1. package/README.md +12 -0
  2. package/dist/reactist.cjs.development.js +6 -5
  3. package/dist/reactist.cjs.development.js.map +1 -1
  4. package/dist/reactist.cjs.production.min.js +1 -1
  5. package/dist/reactist.cjs.production.min.js.map +1 -1
  6. package/es/new-components/deprecated-modal/modal.module.css.js +1 -1
  7. package/es/new-components/modal/modal.module.css.js +1 -1
  8. package/es/new-components/spinner/spinner.js +2 -1
  9. package/es/new-components/spinner/spinner.js.map +1 -1
  10. package/es/new-components/toast/toast.module.css.js +1 -1
  11. package/es/new-components/tooltip/tooltip.module.css.js +1 -1
  12. package/lib/new-components/banner/banner.d.ts +28 -0
  13. package/lib/new-components/banner/banner.test.d.ts +1 -0
  14. package/lib/new-components/banner/index.d.ts +2 -0
  15. package/lib/new-components/deprecated-modal/modal.module.css.js +1 -1
  16. package/lib/new-components/modal/modal.module.css.js +1 -1
  17. package/lib/new-components/spinner/spinner.js +1 -1
  18. package/lib/new-components/spinner/spinner.js.map +1 -1
  19. package/lib/new-components/toast/toast.module.css.js +1 -1
  20. package/lib/new-components/tooltip/tooltip.module.css.js +1 -1
  21. package/package.json +5 -2
  22. package/styles/alert.css +1 -1
  23. package/styles/base-button.css +1 -1
  24. package/styles/color-picker.css +1 -1
  25. package/styles/deprecated-button.css +1 -1
  26. package/styles/dropdown.css +1 -1
  27. package/styles/menu.css +1 -1
  28. package/styles/modal.css +2 -2
  29. package/styles/modal.module.css.css +1 -1
  30. package/styles/password-field.css +1 -1
  31. package/styles/reactist.css +6 -6
  32. package/styles/static-toast.css +2 -2
  33. package/styles/time.css +1 -1
  34. package/styles/toast.module.css.css +1 -1
  35. package/styles/tooltip.css +1 -1
  36. package/styles/tooltip.module.css.css +1 -1
  37. package/styles/use-toasts.css +2 -2
package/README.md CHANGED
@@ -62,6 +62,18 @@ The setup task will install dependencies and run various validations (linting, t
62
62
 
63
63
  We identified two major modes of development for Reactist. First, running an interactive storybook and see the changes you make to a component in an isolated environment. This is especially helpful when developing new components. And second, improving existing components in real-life applications.
64
64
 
65
+ ## Creating new components
66
+
67
+ The development of new components is streamlined by the ability to generate new component templates using [plop](https://plopjs.com/):
68
+
69
+ ```sh
70
+ npm run plop component
71
+ ```
72
+
73
+ This command will prompt you to provide all the information needed to create a new component template. The most important piece of information needed is the component name, which you can provide even as a phrase (e.g. "dropdown select" will generate a `DropdownSelect` component template).
74
+
75
+ The generated source files include the component implementation with sample props and styles, plus a small test file and storybook source files as well.
76
+
65
77
  ## Storybook
66
78
 
67
79
  For the first development mode run:
@@ -454,7 +454,7 @@ const HiddenVisually = /*#__PURE__*/polymorphicComponent(function HiddenVisually
454
454
  }));
455
455
  });
456
456
 
457
- var modules_95f1407a = {"tooltip":"_2b075a8d"};
457
+ var modules_95f1407a = {"tooltip":"_487c82cd"};
458
458
 
459
459
  const SHOW_DELAY = 500;
460
460
  const HIDE_DELAY = 100;
@@ -594,7 +594,8 @@ function Spinner({
594
594
  width: size,
595
595
  height: size,
596
596
  viewBox: "0 0 24 24",
597
- className: modules_c7f5018f.svg
597
+ className: modules_c7f5018f.svg,
598
+ "data-chromatic": "ignore"
598
599
  }, /*#__PURE__*/React.createElement("g", {
599
600
  fill: "none",
600
601
  fillRule: "nonzero"
@@ -914,7 +915,7 @@ const Text = /*#__PURE__*/polymorphicComponent(function Text(_ref, ref) {
914
915
  }), children);
915
916
  });
916
917
 
917
- var modules_d11e18f0 = {"stackedToastsView":"_8e9f0a55","toastContainer":"_121b9429","slot":"_6a2a04c5"};
918
+ var modules_d11e18f0 = {"stackedToastsView":"_616cc3f3","toastContainer":"_1b5f8e86","slot":"ce2e3476"};
918
919
 
919
920
  const _excluded$b = ["message", "description", "icon", "action", "onDismiss", "dismissLabel"];
920
921
  /**
@@ -2127,7 +2128,7 @@ function Badge(_ref) {
2127
2128
  }), label);
2128
2129
  }
2129
2130
 
2130
- var modules_8f59d13b = {"overlay":"_868392ae","fadein":"_63d7ee15","fitContent":"b8548bf2","container":"_31956461","full":"_1007df83","large":"_10c275aa","medium":"_0ac526b4","small":"_30f38fdb","xlarge":"_54868e8b","expand":"c0bc68bc","buttonContainer":"_6527332a","headerContent":"_4750dc1b"};
2131
+ var modules_8f59d13b = {"overlay":"_8aa86dd3","fadein":"_20c07ee6","fitContent":"_713bc08f","container":"_45139719","full":"ec8619a2","large":"_86a1d5a4","medium":"_11d61de3","small":"aee19643","xlarge":"fe449c81","expand":"_61ffb38f","buttonContainer":"_49ffdac0","headerContent":"ee92ccb3"};
2131
2132
 
2132
2133
  const _excluded$p = ["isOpen", "onDismiss", "height", "width", "exceptionallySetClassName", "exceptionallySetOverlayClassName", "autoFocus", "hideOnEscape", "hideOnInteractOutside", "children", "portalElement"],
2133
2134
  _excluded2$1 = ["children", "button", "withDivider", "exceptionallySetClassName"],
@@ -3740,7 +3741,7 @@ function DeprecatedNotification(_ref) {
3740
3741
  }, customCloseButton != null ? customCloseButton : /*#__PURE__*/React.createElement(CloseIcon$1, null)) : null);
3741
3742
  }
3742
3743
 
3743
- var modules_8f59d13b$1 = {"reach-portal":"_37bef8d8","fadein":"_77f9687f","fitContent":"bcc4e0a5","container":"d4832c2d","full":"b0c3b021","large":"_573d6aa5","medium":"_8550d996","small":"_43bb18f5","xlarge":"_57b4159d","overlay":"cb63f300","expand":"e741893e","buttonContainer":"bb1ce281","headerContent":"c5ef989c"};
3744
+ var modules_8f59d13b$1 = {"reach-portal":"ad18b0a0","fadein":"f7a1b219","fitContent":"_8ed9bb5c","container":"f67e892e","full":"_4139421e","large":"_649eb5fe","medium":"_5323e676","small":"_56ca7ae6","xlarge":"a7be0fce","overlay":"_88a7a680","expand":"b29456b8","buttonContainer":"_09ef1f4f","headerContent":"_0e5b530a"};
3744
3745
 
3745
3746
  const _excluded$x = ["isOpen", "onDismiss", "height", "width", "exceptionallySetClassName", "autoFocus", "children"],
3746
3747
  _excluded2$4 = ["children", "button", "withDivider", "exceptionallySetClassName"],