layerpro 0.9.55 → 0.9.61

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,50 @@
1
+ import 'layerpro'
2
+
3
+ function App() {
4
+
5
+ layerpro.popup.open(
6
+ {
7
+ id: 'examplePopup',
8
+ body: 'Example',
9
+ buttons: {
10
+ confirm: {
11
+ text: "accept",
12
+ cb: () => {
13
+ message("confirmed")
14
+ }
15
+ },
16
+ cancel: {
17
+ text: "cancel",
18
+ cb: () => {
19
+ alert("cancelled")
20
+ }
21
+ }
22
+ },
23
+ width: 350,
24
+ height: 300,
25
+ name: 'example',
26
+ icon: '⚠',
27
+ iconize: true,
28
+ maximize: true,
29
+ close: true,
30
+ isMaximize: false,
31
+ dockable: false,
32
+ raised: true,
33
+ movable: true,
34
+ resizable: false,
35
+ store: false,
36
+ top: '10%',
37
+ left: '10%',
38
+ right: 'auto',
39
+ bottom: 'auto',
40
+ // minWidth: 200,
41
+ // minHeight: 150,
42
+ fadeIn: 500,
43
+ fadeOut: 500,
44
+ timer: 0
45
+ }
46
+ )
47
+
48
+ }
49
+
50
+ export default App
@@ -0,0 +1,108 @@
1
+ // created by Dario Passariello
2
+
3
+ :root {
4
+ --lp-000: hsl(0, 0%, 5%);
5
+ --lp-001: hsl(0, 0%, 100%);
6
+ --lp-011: rgb(80, 170, 250);
7
+ }
8
+
9
+ //////////////////////////////////////
10
+
11
+ @mixin popup-hover-styles {
12
+ background: var(--lp-011) !important;
13
+ color: var(--lp-001) !important;
14
+ box-shadow: none !important;
15
+
16
+ &:before {
17
+ filter: invert(1) !important;
18
+ }
19
+
20
+ &:after {
21
+ background: var(--lp-011) !important;
22
+ color: var(--lp-000) !important;
23
+ }
24
+ }
25
+
26
+ #popup {
27
+ z-index: 10000 !important;
28
+
29
+ * {
30
+ box-sizing: border-box;
31
+ box-shadow: none;
32
+ }
33
+
34
+ [class^=popup_internal_] {
35
+ top: 36px;
36
+ background: var(--lp-001);
37
+ }
38
+
39
+ [class^=popup_body_] {
40
+ color: var(--lp-000);
41
+ }
42
+
43
+ [class^=popup_bar_] {
44
+ border-bottom: 0;
45
+ box-shadow: none;
46
+ }
47
+
48
+ [class^=popup_] input,
49
+ [class^=popup_] button {
50
+ border: 0;
51
+ }
52
+
53
+ [class^=popup_message_] ul {
54
+ padding: 0 10px !important;
55
+ margin: 0 !important;
56
+ text-align: left;
57
+ }
58
+
59
+ [class^=button_] {
60
+ &:hover {
61
+ @include popup-hover-styles;
62
+ }
63
+ }
64
+
65
+ .iconize:before,
66
+ .maximize:before,
67
+ .close:before {
68
+ filter: invert(1);
69
+ }
70
+
71
+ .buttons {
72
+ button {
73
+ background: var(--lp-011) !important;
74
+ border: none;
75
+ margin: 0;
76
+
77
+ &:hover {
78
+ @include popup-hover-styles;
79
+ }
80
+ }
81
+ }
82
+
83
+ .popup_alert,
84
+ .popup_message,
85
+ .popup_prompt,
86
+ .popup_confirm {
87
+ word-break: normal !important;
88
+
89
+ input[type=text] {
90
+ position: relative;
91
+ width: 90%;
92
+ height: 40px;
93
+ padding: 15px;
94
+ margin-top: 10px;
95
+ border: 2px solid rgba(0, 0, 0, 0.3);
96
+ background: var(--lp-001) !important;
97
+ color: var(--lp-000) !important;
98
+ text-align: center;
99
+ }
100
+ }
101
+
102
+ .zHigh {
103
+ border-top-color: var(--lp-011) !important;
104
+ box-shadow: 0 15px 20px rgba(0, 0, 0, 0.5) !important;
105
+ outline: 1px solid rgba(0, 0, 0, 0.1) !important;
106
+ border: 0;
107
+ }
108
+ }