@movable/react-popupbox 3.0.0 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,109 @@
1
+ .popupbox{
2
+ width:100%;
3
+ height:100%;
4
+ position: fixed;
5
+ top: 0;
6
+ left: 0;
7
+ display: -webkit-flex;
8
+ display: -moz-flex;
9
+ display: -ms-flex;
10
+ display: -o-flex;
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: center;
14
+ opacity: 0;
15
+ pointer-events: none;
16
+ z-index: 1000;
17
+ }
18
+
19
+ .popupbox[hidden]{
20
+ display: none;
21
+ }
22
+
23
+ .popupbox-overlay{
24
+ position:fixed;
25
+ top: 0;
26
+ left: 0;
27
+ width:100%;
28
+ height:100%;
29
+ z-index:1002;
30
+ background: none repeat scroll 0% 0% #000;
31
+ }
32
+
33
+ .popupbox-content {
34
+ overflow: hidden;
35
+ }
36
+
37
+ .popupbox-wrapper {
38
+ display: -webkit-flex;
39
+ display: -moz-flex;
40
+ display: -ms-flex;
41
+ display: -o-flex;
42
+ display: flex;
43
+ -webkit-flex-direction: column;
44
+ -moz-flex-direction: column;
45
+ -ms-flex-direction: column;
46
+ -o-flex-direction: column;
47
+ flex-direction: column;
48
+ z-index: 1003;
49
+ position: relative;
50
+ }
51
+
52
+ .popupbox-titleBar {
53
+ overflow: hidden;
54
+ display: block;
55
+ position: relative;
56
+ }
57
+
58
+ .popupbox-btn--close {
59
+ z-index: 1004;
60
+ }
61
+
62
+ .popupbox[data-title='bottom'] .popupbox-content { order: 1 }
63
+ .popupbox[data-title='bottom'] .popupbox-titleBar { order: 2 }
64
+
65
+ /* ----- default theme ----- */
66
+
67
+ .popupbox-wrapper {
68
+ border-radius: 3px;
69
+ overflow: hidden;
70
+ max-width: 80%;
71
+ min-width: 300px;
72
+ box-shadow: 0 0 20px rgba(0, 0, 0, .9);
73
+ background-color: white;
74
+ }
75
+
76
+ .popupbox-content {
77
+ padding: 20px 24px 30px;
78
+ }
79
+
80
+ .popupbox-titleBar {
81
+ font-weight: bold;
82
+ font-size: 18px;
83
+ text-shadow: 0 -1px 1px rgba(0, 0, 0, .2);
84
+ padding: 11px 37px 11px 24px;
85
+ border-bottom: 1px #ccc solid;
86
+ }
87
+
88
+ .popupbox-btn--close {
89
+ transition: all .5s;
90
+ position: absolute;
91
+ right: 11px;
92
+ top: 11px;
93
+ color: #c1c1c1;
94
+ background: none;
95
+ border: none;
96
+ outline: none;
97
+ }
98
+
99
+ .popupbox-btn--close:hover {
100
+ color: #000;
101
+ }
102
+
103
+ .popupbox.is-active {
104
+ opacity: 1;
105
+ pointer-events: auto;
106
+ }
107
+
108
+ .popupbox[data-title='bottom'] .popupbox-content { box-shadow: 0 1px 1px rgba(0, 0, 0, .3) }
109
+ .popupbox[data-title='bottom'] .popupbox-titleBar { box-shadow: none; border-top: 1px #ccc solid }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movable/react-popupbox",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "A simple lightbox component for react",
5
5
  "main": "dist/react-popupbox.cjs.js",
6
6
  "module": "dist/react-popupbox.esm.js",
@@ -25,7 +25,7 @@
25
25
  "build": "npm run clean && node build.js && tsc --emitDeclarationOnly --outDir dist",
26
26
  "dist": "npm run build && cp ./src/css/react-popupbox.css ./dist/react-popupbox.css",
27
27
  "clean": "rimraf dist",
28
- "prepublishOnly": "npm run build"
28
+ "prepublishOnly": "npm run dist"
29
29
  },
30
30
  "dependencies": {
31
31
  "@types/react": "^18.0.35",