aark-react-modalify 1.0.0 → 1.0.2

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.
@@ -0,0 +1,183 @@
1
+ /* AARK React Modalify - Optimized CSS */
2
+ :root {
3
+ --aark-modal-overlay-bg: rgba(0, 0, 0, 0.5);
4
+ --aark-modal-bg: #fff;
5
+ --aark-modal-radius: 8px;
6
+ --aark-modal-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
7
+ --aark-modal-pad: 16px;
8
+ --aark-modal-z: 9999;
9
+ --aark-close-color: #666;
10
+ --aark-close-hover: #f5f5f5;
11
+ --aark-anim: 0.2s;
12
+ }
13
+ .aark-modal-container {
14
+ position: fixed;
15
+ inset: 0;
16
+ z-index: var(--aark-modal-z);
17
+ }
18
+ .aark-modal-container.notification {
19
+ pointer-events: none;
20
+ }
21
+ .aark-modal-overlay {
22
+ position: absolute;
23
+ inset: 0;
24
+ background: var(--aark-modal-overlay-bg);
25
+ backdrop-filter: blur(2px);
26
+ }
27
+ .aark-modal-content {
28
+ position: fixed;
29
+ background: var(--aark-modal-bg);
30
+ border-radius: var(--aark-modal-radius);
31
+ box-shadow: var(--aark-modal-shadow);
32
+ padding: var(--aark-modal-pad);
33
+ z-index: calc(var(--aark-modal-z) + 1);
34
+ max-width: 90vw;
35
+ max-height: 90vh;
36
+ overflow: auto;
37
+ }
38
+ .aark-modal-content.notification {
39
+ pointer-events: auto;
40
+ }
41
+ .aark-modal-content.center {
42
+ top: 50%;
43
+ left: 50%;
44
+ transform: translate(-50%, -50%);
45
+ }
46
+ .aark-modal-content.top-center {
47
+ top: 20px;
48
+ left: 50%;
49
+ transform: translateX(-50%);
50
+ }
51
+ .aark-modal-content.top-right {
52
+ top: 20px;
53
+ right: 20px;
54
+ }
55
+ .aark-modal-content.bottom-right {
56
+ bottom: 20px;
57
+ right: 20px;
58
+ }
59
+ .aark-modal-content.bottom-center {
60
+ bottom: 20px;
61
+ left: 50%;
62
+ transform: translateX(-50%);
63
+ }
64
+ .aark-modal-close {
65
+ position: absolute;
66
+ top: 8px;
67
+ right: 8px;
68
+ width: 24px;
69
+ height: 24px;
70
+ display: flex;
71
+ align-items: center;
72
+ justify-content: center;
73
+ background: 0;
74
+ border: 0;
75
+ color: var(--aark-close-color);
76
+ cursor: pointer;
77
+ border-radius: 50%;
78
+ font-size: 14px;
79
+ line-height: 1;
80
+ transition: all var(--aark-anim);
81
+ }
82
+ .aark-modal-close:hover {
83
+ background: var(--aark-close-hover);
84
+ color: #333;
85
+ }
86
+ .aark-modal-close:focus {
87
+ outline: 2px solid #007bff;
88
+ outline-offset: 2px;
89
+ }
90
+ .aark-modal-body {
91
+ padding-top: 8px;
92
+ }
93
+ .aark-modal-container {
94
+ animation: f var(--aark-anim);
95
+ }
96
+ .aark-modal-content {
97
+ animation: s var(--aark-anim);
98
+ }
99
+ @keyframes f {
100
+ 0% {
101
+ opacity: 0;
102
+ }
103
+ to {
104
+ opacity: 1;
105
+ }
106
+ }
107
+ @keyframes s {
108
+ 0% {
109
+ opacity: 0;
110
+ transform: translate(-50%, -50%) scale(0.95);
111
+ }
112
+ to {
113
+ opacity: 1;
114
+ transform: translate(-50%, -50%) scale(1);
115
+ }
116
+ }
117
+ .aark-modal-content.top-center {
118
+ animation: d var(--aark-anim);
119
+ }
120
+ .aark-modal-content.top-right,
121
+ .aark-modal-content.bottom-right {
122
+ animation: l var(--aark-anim);
123
+ }
124
+ .aark-modal-content.bottom-center {
125
+ animation: u var(--aark-anim);
126
+ }
127
+ @keyframes d {
128
+ 0% {
129
+ opacity: 0;
130
+ transform: translateX(-50%) translateY(-10px);
131
+ }
132
+ to {
133
+ opacity: 1;
134
+ transform: translateX(-50%) translateY(0);
135
+ }
136
+ }
137
+ @keyframes l {
138
+ 0% {
139
+ opacity: 0;
140
+ transform: translateX(10px);
141
+ }
142
+ to {
143
+ opacity: 1;
144
+ transform: translateX(0);
145
+ }
146
+ }
147
+ @keyframes u {
148
+ 0% {
149
+ opacity: 0;
150
+ transform: translateX(-50%) translateY(10px);
151
+ }
152
+ to {
153
+ opacity: 1;
154
+ transform: translateX(-50%) translateY(0);
155
+ }
156
+ }
157
+ @media (max-width: 768px) {
158
+ .aark-modal-content {
159
+ margin: 10px;
160
+ max-width: calc(100vw - 20px);
161
+ }
162
+ .aark-modal-content.center {
163
+ top: 50%;
164
+ left: 50%;
165
+ transform: translate(-50%, -50%);
166
+ }
167
+ .aark-modal-content.top-center,
168
+ .aark-modal-content.bottom-center {
169
+ left: 50%;
170
+ transform: translateX(-50%);
171
+ }
172
+ .aark-modal-content.top-right {
173
+ right: 10px;
174
+ left: auto;
175
+ transform: none;
176
+ }
177
+ .aark-modal-content.bottom-right {
178
+ right: 10px;
179
+ bottom: 10px;
180
+ left: auto;
181
+ transform: none;
182
+ }
183
+ }
@@ -1,9 +0,0 @@
1
- import { u as s, j as n, M as t } from "./index-DIT0k89J.js";
2
- import "react";
3
- const i = () => {
4
- const { isOpen: e, config: o, close: r } = s();
5
- return !e || !o ? null : /* @__PURE__ */ n.jsx(t, { config: o, onClose: r });
6
- };
7
- export {
8
- i as default
9
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CvIFkjib.cjs");require("react");const t=()=>{const{isOpen:o,config:r,close:n}=e.useModal();return!o||!r?null:e.jsxRuntimeExports.jsx(e.ModalRenderer,{config:r,onClose:n})};exports.default=t;