@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.
- package/README.md +12 -0
- package/dist/reactist.cjs.development.js +6 -5
- 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/deprecated-modal/modal.module.css.js +1 -1
- package/es/new-components/modal/modal.module.css.js +1 -1
- package/es/new-components/spinner/spinner.js +2 -1
- package/es/new-components/spinner/spinner.js.map +1 -1
- package/es/new-components/toast/toast.module.css.js +1 -1
- package/es/new-components/tooltip/tooltip.module.css.js +1 -1
- package/lib/new-components/banner/banner.d.ts +28 -0
- package/lib/new-components/banner/banner.test.d.ts +1 -0
- package/lib/new-components/banner/index.d.ts +2 -0
- package/lib/new-components/deprecated-modal/modal.module.css.js +1 -1
- package/lib/new-components/modal/modal.module.css.js +1 -1
- package/lib/new-components/spinner/spinner.js +1 -1
- package/lib/new-components/spinner/spinner.js.map +1 -1
- package/lib/new-components/toast/toast.module.css.js +1 -1
- package/lib/new-components/tooltip/tooltip.module.css.js +1 -1
- package/package.json +5 -2
- package/styles/alert.css +1 -1
- package/styles/base-button.css +1 -1
- package/styles/color-picker.css +1 -1
- package/styles/deprecated-button.css +1 -1
- package/styles/dropdown.css +1 -1
- package/styles/menu.css +1 -1
- package/styles/modal.css +2 -2
- package/styles/modal.module.css.css +1 -1
- package/styles/password-field.css +1 -1
- package/styles/reactist.css +6 -6
- package/styles/static-toast.css +2 -2
- package/styles/time.css +1 -1
- package/styles/toast.module.css.css +1 -1
- package/styles/tooltip.css +1 -1
- package/styles/tooltip.module.css.css +1 -1
- 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":"
|
|
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":"
|
|
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":"
|
|
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":"
|
|
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"],
|