react-dialogger 1.1.126 → 1.1.128

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.
@@ -173,7 +173,15 @@ var DialogContent = function (props) {
173
173
  y: y / scale,
174
174
  fullscreen: false
175
175
  }, dialogRef);
176
- }, children: (0, jsx_runtime_1.jsxs)("div", { id: "dialog-main", ref: dialogRef, onClick: function (e) {
176
+ }, children: (0, jsx_runtime_1.jsxs)("div", { onBlur: function (event) {
177
+ if (dialog.dialogOptions.backdrop.dimOnInactive) {
178
+ dialogRef.current.classList.add('inactive');
179
+ }
180
+ }, onFocus: function (event) {
181
+ if (dialog.dialogOptions.backdrop.dimOnInactive) {
182
+ dialogRef.current.classList.remove('inactive');
183
+ }
184
+ }, id: "dialog-main", ref: dialogRef, onClick: function (e) {
177
185
  e.stopPropagation();
178
186
  if (dialog.dialogOptions.backdrop.throughable) {
179
187
  var toppest = dialog.props.zFinder();
@@ -33,6 +33,7 @@ var BASE_DIALOG_OPTIONS = {
33
33
  backgroundColor: "#282828",
34
34
  opacity: 0.6,
35
35
  hideOnClick: false,
36
+ dimOnInactive: false
36
37
  },
37
38
  scaleable: false,
38
39
  scale: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-dialogger",
3
- "version": "1.1.126",
3
+ "version": "1.1.128",
4
4
  "description": "This package is a continuation of the react-araci package. Due to an error, react-araci was removed, and it has been decided to continue under the new package name react-dialogger",
5
5
  "main": "index.js",
6
6
  "author": "Sueleyman Topaloglu",
package/styles/dialog.css CHANGED
@@ -205,6 +205,10 @@
205
205
  -ms-user-select: none; /* IE/Edge */
206
206
  }
207
207
 
208
+ .dialog-main.inactive {
209
+ opacity: 0.6 !important;
210
+ }
211
+
208
212
  .dialog-main {
209
213
  top: 100px;
210
214
  box-shadow: 0 0 20px #252525;
@@ -214,6 +218,7 @@
214
218
  flex-direction: column;
215
219
  overflow: clip;
216
220
  pointer-events: auto;
221
+ opacity: 1; /* Başlangıçta 1 */
217
222
  }
218
223
  .dialog-main .dialog-zoom-root {
219
224
  display: flex;
@@ -233,6 +233,7 @@ export interface IBackdropOptions {
233
233
  opacity?: number;
234
234
  hideOnClick?: boolean;
235
235
  throughable?: boolean;
236
+ dimOnInactive?: boolean;
236
237
  }
237
238
  export type TNotifyOnClosing = "snackbar" | "zoom" | undefined;
238
239
  export type TInitialHolder = any;