@app-garage/modal
Advanced tools
Comparing version 1.1.0 to 1.2.0
# Change Log | ||
## 1.2.0 | ||
### Minor Changes | ||
- [`df30cb8`](https://github.com/electronic33/ag-ui-react/commit/df30cb8df8629d307375b209d40dccc1d81d8c98) Thanks [@Levi1235](https://github.com/Levi1235)! - classes | ||
### Patch Changes | ||
- Updated dependencies [[`df30cb8`](https://github.com/electronic33/ag-ui-react/commit/df30cb8df8629d307375b209d40dccc1d81d8c98)]: | ||
- @app-garage/button@1.4.0 | ||
- @app-garage/focus-trap@1.2.0 | ||
## 1.1.0 | ||
@@ -4,0 +16,0 @@ |
@@ -62,5 +62,5 @@ import React, { useCallback, useEffect } from 'react'; | ||
React.createElement(ScrollLock, null, | ||
React.createElement(animated.div, __assign({ key: key }, ariaProps, { className: classNames('overlay', overlayClassName), onClick: onClose, style: { opacity: props.opacity } }), | ||
React.createElement(animated.div, __assign({ key: key }, ariaProps, { className: classNames('modal-overlay', overlayClassName), onClick: onClose, style: { opacity: props.opacity } }), | ||
React.createElement(animated.div, { className: classNames('modal', modalClassName), onClick: stopPropagation, style: { transform: props.transform } }, children), | ||
React.createElement(Button, { onClick: onClose, className: "fixed top-4 right-4 z-50 text-5xl text-gray-50" }, | ||
React.createElement(Button, { onClick: onClose, className: "modal-button" }, | ||
React.createElement("svg", { stroke: "currentColor", fill: "currentColor", strokeWidth: "0", viewBox: "0 0 512 512", height: "1em", width: "1em", xmlns: "http://www.w3.org/2000/svg" }, | ||
@@ -67,0 +67,0 @@ React.createElement("path", { d: "M278.6 256l68.2-68.2c6.2-6.2 6.2-16.4 0-22.6-6.2-6.2-16.4-6.2-22.6 0L256 233.4l-68.2-68.2c-6.2-6.2-16.4-6.2-22.6 0-3.1 3.1-4.7 7.2-4.7 11.3 0 4.1 1.6 8.2 4.7 11.3l68.2 68.2-68.2 68.2c-3.1 3.1-4.7 7.2-4.7 11.3 0 4.1 1.6 8.2 4.7 11.3 6.2 6.2 16.4 6.2 22.6 0l68.2-68.2 68.2 68.2c6.2 6.2 16.4 6.2 22.6 0 6.2-6.2 6.2-16.4 0-22.6L278.6 256z" })))))), document.body); |
@@ -73,5 +73,5 @@ 'use strict'; | ||
React__default['default'].createElement(ScrollLock__default['default'], null, | ||
React__default['default'].createElement(reactSpring.animated.div, __assign({ key: key }, ariaProps, { className: classNames__default['default']('overlay', overlayClassName), onClick: onClose, style: { opacity: props.opacity } }), | ||
React__default['default'].createElement(reactSpring.animated.div, __assign({ key: key }, ariaProps, { className: classNames__default['default']('modal-overlay', overlayClassName), onClick: onClose, style: { opacity: props.opacity } }), | ||
React__default['default'].createElement(reactSpring.animated.div, { className: classNames__default['default']('modal', modalClassName), onClick: stopPropagation, style: { transform: props.transform } }, children), | ||
React__default['default'].createElement(button.Button, { onClick: onClose, className: "fixed top-4 right-4 z-50 text-5xl text-gray-50" }, | ||
React__default['default'].createElement(button.Button, { onClick: onClose, className: "modal-button" }, | ||
React__default['default'].createElement("svg", { stroke: "currentColor", fill: "currentColor", strokeWidth: "0", viewBox: "0 0 512 512", height: "1em", width: "1em", xmlns: "http://www.w3.org/2000/svg" }, | ||
@@ -78,0 +78,0 @@ React__default['default'].createElement("path", { d: "M278.6 256l68.2-68.2c6.2-6.2 6.2-16.4 0-22.6-6.2-6.2-16.4-6.2-22.6 0L256 233.4l-68.2-68.2c-6.2-6.2-16.4-6.2-22.6 0-3.1 3.1-4.7 7.2-4.7 11.3 0 4.1 1.6 8.2 4.7 11.3l68.2 68.2-68.2 68.2c-3.1 3.1-4.7 7.2-4.7 11.3 0 4.1 1.6 8.2 4.7 11.3 6.2 6.2 16.4 6.2 22.6 0l68.2-68.2 68.2 68.2c6.2 6.2 16.4 6.2 22.6 0 6.2-6.2 6.2-16.4 0-22.6L278.6 256z" })))))), document.body); |
{ | ||
"name": "@app-garage/modal", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"author": "Matyas Furtos", | ||
@@ -32,4 +32,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@app-garage/button": "^1.2.0", | ||
"@app-garage/focus-trap": "^1.1.0", | ||
"@app-garage/button": "^1.4.0", | ||
"@app-garage/focus-trap": "^1.2.0", | ||
"classnames": "^2.3.1", | ||
@@ -36,0 +36,0 @@ "react-dom": "17.0.2", |
Sorry, the diff of this file is not supported yet
13155
Updated@app-garage/button@^1.4.0