@cypress-design/react-modal 0.1.0 → 0.2.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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +12 -0
- package/ReadMe.md +5 -1
- package/dist/index.es.mjs +13 -8
- package/dist/index.es.mjs.map +1 -1
- package/dist/index.umd.js +13 -8
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -2,5 +2,5 @@ $ yarn build:module && yarn build:types
|
|
|
2
2
|
$ rollup -c ./rollup.config.mjs
|
|
3
3
|
[36m
|
|
4
4
|
[1m./index.ts[22m → [1m./dist/index.umd.js, ./dist/index.es.mjs[22m...[39m
|
|
5
|
-
[32mcreated [1m./dist/index.umd.js, ./dist/index.es.mjs[22m in [
|
|
5
|
+
[32mcreated [1m./dist/index.umd.js, ./dist/index.es.mjs[22m in [1m16.7s[22m[39m
|
|
6
6
|
$ tsc --project ./tsconfig.build.json
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @cypress-design/react-modal
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#281](https://github.com/cypress-io/cypress-design/pull/281) [`9ec1a81`](https://github.com/cypress-io/cypress-design/commit/9ec1a81cbe0a136bb8bd74b5af968c41615cefbc) Thanks [@ryanjwilke](https://github.com/ryanjwilke)! - update visuals of a modal
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`e390827`](https://github.com/cypress-io/cypress-design/commit/e3908270ece513886c64cebcb78cebe0cd0d8c3d), [`9ec1a81`](https://github.com/cypress-io/cypress-design/commit/9ec1a81cbe0a136bb8bd74b5af968c41615cefbc)]:
|
|
12
|
+
- @cypress-design/react-icon@0.23.0
|
|
13
|
+
- @cypress-design/constants-modal@0.2.0
|
|
14
|
+
|
|
3
15
|
## 0.1.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/ReadMe.md
CHANGED
|
@@ -22,7 +22,11 @@ export default () => {
|
|
|
22
22
|
|
|
23
23
|
return (
|
|
24
24
|
<>
|
|
25
|
-
<Modal
|
|
25
|
+
<Modal
|
|
26
|
+
show={visible}
|
|
27
|
+
title="Modal Title"
|
|
28
|
+
onClose={() => setVisible(false)}
|
|
29
|
+
>
|
|
26
30
|
Lorem ipsum dolor sit amet consectetur adipisicing elit. Id perspiciatis
|
|
27
31
|
hic ad minima ex recusandae autem incidunt, perferendis, illo voluptatum
|
|
28
32
|
repudiandae iste voluptate reiciendis quam officiis voluptas laboriosam
|
package/dist/index.es.mjs
CHANGED
|
@@ -30919,7 +30919,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
30919
30919
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
30920
30920
|
PERFORMANCE OF THIS SOFTWARE.
|
|
30921
30921
|
***************************************************************************** */
|
|
30922
|
-
/* global Reflect, Promise */
|
|
30922
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
30923
30923
|
|
|
30924
30924
|
|
|
30925
30925
|
var __assign = function() {
|
|
@@ -30943,7 +30943,12 @@ function __rest(s, e) {
|
|
|
30943
30943
|
t[p[i]] = s[p[i]];
|
|
30944
30944
|
}
|
|
30945
30945
|
return t;
|
|
30946
|
-
}
|
|
30946
|
+
}
|
|
30947
|
+
|
|
30948
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
30949
|
+
var e = new Error(message);
|
|
30950
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
30951
|
+
};
|
|
30947
30952
|
|
|
30948
30953
|
var compileReactIconProperties = function (_a) {
|
|
30949
30954
|
var body = _a.body, defs = _a.defs, compiledClasses = _a.compiledClasses, size = _a.size, name = _a.name, attributes = __rest(_a, ["body", "defs", "compiledClasses", "size", "name"]);
|
|
@@ -31026,17 +31031,17 @@ function freeBodyScroll() {
|
|
|
31026
31031
|
window.scrollTo({ top: scrollY });
|
|
31027
31032
|
}
|
|
31028
31033
|
|
|
31029
|
-
const ClassBackDrop = 'fixed left-0 top-0 z-[1000010] h-screen w-screen bg-gray-900/[.
|
|
31034
|
+
const ClassBackDrop = 'fixed left-0 top-0 z-[1000010] h-screen w-screen bg-gray-900/[.80] backdrop-blur-sm';
|
|
31030
31035
|
const ClassModalContainer = 'pointer-events-none fixed left-0 top-0 z-[1000020] h-full w-screen overflow-hidden flex items-center justify-center';
|
|
31031
|
-
const ClassModal = 'pointer-events-auto relative flex flex-col rounded
|
|
31032
|
-
const ClassModalStandardDimensions = 'max-h-[80vh] min-w-[200px] sm:min-w-[390px] sm:max-w-[70vw] shrink-0';
|
|
31036
|
+
const ClassModal = 'pointer-events-auto relative flex flex-col rounded outline outline-4 outline-gray-500/[.40] bg-white';
|
|
31037
|
+
const ClassModalStandardDimensions = 'max-h-[80vh] min-w-[200px] sm:min-w-[390px] max-w-[calc(100vw-32px)] sm:max-w-[70vw] shrink-0';
|
|
31033
31038
|
const ClassModalFullscreenDimensions = 'h-[calc(100vh-32px)] sm:w-[calc(100vw-32px)]';
|
|
31034
|
-
const ClassTitleBox = 'flex shrink-0 items-center justify-between rounded-t-md border-b border-gray-100 p-[16px] px-[24px]';
|
|
31039
|
+
const ClassTitleBox = 'flex shrink-0 items-center justify-between rounded-t-md border-b border-gray-100 p-[16px] px-16px sm:px-[24px]';
|
|
31035
31040
|
const ClassTitle = 'text-[18px] font-medium leading-[28px] text-gray-900';
|
|
31036
31041
|
const ClassHelpLinkDash = 'mx-[8px] h-[1px] w-[32px] bg-gray-100';
|
|
31037
31042
|
const ClassHelpLink = 'flex items-center text-[16px] font-normal leading-[24px] text-indigo-500';
|
|
31038
31043
|
const ClassCloseButton = 'group rounded-full border-transparent p-[4px] outline-none';
|
|
31039
|
-
const ClassContent = 'overflow-y-auto p-[16px]';
|
|
31044
|
+
const ClassContent = 'overflow-y-auto p-[16px] sm:px-[24px]';
|
|
31040
31045
|
|
|
31041
31046
|
var Modal = function (_a) {
|
|
31042
31047
|
var _b = _a.show, show = _b === void 0 ? false : _b, title = _a.title, helpLink = _a.helpLink, onClose = _a.onClose, children = _a.children, _c = _a.fullscreen, fullscreen = _c === void 0 ? false : _c;
|
|
@@ -31073,4 +31078,4 @@ var Modal = function (_a) {
|
|
|
31073
31078
|
export { Modal as default };
|
|
31074
31079
|
//# sourceMappingURL=index.es.mjs.map
|
|
31075
31080
|
|
|
31076
|
-
/* <wind-keep class="ml-[4px] grow fixed left-0 top-0 z-[1000010] h-screen w-screen bg-gray-900/[.
|
|
31081
|
+
/* <wind-keep class="ml-[4px] grow children:transition-all fixed left-0 top-0 z-[1000010] h-screen w-screen bg-gray-900/[.80] backdrop-blur-sm pointer-events-none z-[1000020] h-full overflow-hidden flex items-center justify-center pointer-events-auto relative flex-col rounded outline outline-4 outline-gray-500/[.40] bg-white max-h-[80vh] min-w-[200px] sm:min-w-[390px] max-w-[calc(100vw-32px)] sm:max-w-[70vw] shrink-0 h-[calc(100vh-32px)] sm:w-[calc(100vw-32px)] justify-between rounded-t-md border-b border-gray-100 p-[16px] sm:px-[24px] text-[18px] font-medium leading-[28px] text-gray-900 mx-[8px] h-[1px] w-[32px] bg-gray-100 text-[16px] font-normal leading-[24px] text-indigo-500 rounded-full border-transparent p-[4px] outline-none overflow-y-auto cy-modal-overflow-hidden cy-modal-overflow-scroll-x cy-modal-overflow-scroll-y"> */
|