typescript-overlay-essentials 1.3.6 → 1.3.9

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,69 @@
1
+ .confirmation-overlay {
2
+ position: fixed;
3
+ top: 0;
4
+ left: 0;
5
+ width: 100vw;
6
+ height: 100vh;
7
+ background-color: rgba(0, 0, 0, 0.6);
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ z-index: 10000;
12
+ }
13
+
14
+ .confirmation-box {
15
+ background-color: var(--Hellgrau, white);
16
+ color: var(--HellSchwarz,#2c2c2c);
17
+ padding: 2rem;
18
+ border-radius: 12px;
19
+ box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
20
+ max-width: 500px;
21
+ width: 90%;
22
+ text-align: center;
23
+ animation: fadeIn 0.3s ease-in-out;
24
+ position: relative;
25
+ }
26
+
27
+ @keyframes fadeIn {
28
+ from {
29
+ opacity: 0;
30
+ transform: scale(0.95);
31
+ }
32
+
33
+ to {
34
+ opacity: 1;
35
+ transform: scale(1);
36
+ }
37
+ }
38
+
39
+ .confirmation-box p {
40
+ margin-bottom: 0.5em;
41
+ }
42
+
43
+ .confirmation-box .headline {
44
+ margin-bottom: 0.75em;
45
+ }
46
+
47
+ .confirmation-box .confirmation-buttons {
48
+ display: flex;
49
+ justify-content: center;
50
+ gap: 1rem;
51
+ margin-top: 1.5rem;
52
+ }
53
+
54
+ .confirmation-box .confirmation-buttons button {
55
+ font-size: 85%;
56
+ padding: 0.5rem 1.1rem;
57
+ }
58
+
59
+ .confirmation-box .closeButton {
60
+ right: 10px;
61
+ top: 10px;
62
+ position: absolute;
63
+ }
64
+
65
+ .confirmation-box .close-icon:hover {
66
+ color: var(--HSDAkzent);
67
+ cursor: pointer;
68
+ }
69
+
@@ -0,0 +1,31 @@
1
+ .custom-select {
2
+ border-radius: 8px;
3
+ border: 1px solid var(--Mittelgrau);
4
+ color: black;
5
+ background-color: white;
6
+ -moz-box-align: center;
7
+ align-items: center;
8
+ cursor: default;
9
+ display: flex;
10
+ flex-wrap: wrap;
11
+ -moz-box-pack: justify;
12
+ justify-content: space-between;
13
+ margin-bottom: 0.5rem;
14
+ font-size: 0.8em;
15
+ }
16
+
17
+ .dropdown__control {
18
+ width: 100%;
19
+ }
20
+
21
+ .custom-select:hover, .dropdown__menu-list div:hover, .card .dropdown__menu-list div:hover {
22
+ cursor: pointer;
23
+ }
24
+
25
+ .dropdown__multi-value__remove {
26
+ color: var(--FastSchwarz, black);
27
+ }
28
+
29
+ .custom-select .dropdown__single-value {
30
+ color: var(--FastSchwarz, black);
31
+ }
@@ -0,0 +1,65 @@
1
+ .information-overlay {
2
+ position: fixed;
3
+ top: 0;
4
+ left: 0;
5
+ width: 100vw;
6
+ height: 100vh;
7
+ background-color: rgba(0, 0, 0, 0.6);
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ z-index: 10000;
12
+ }
13
+
14
+ .information-box {
15
+ background-color: var(--Hellgrau, white);
16
+ color: var(--HellSchwarz,#2c2c2c);
17
+ padding: 2rem;
18
+ border-radius: 12px;
19
+ box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
20
+ max-width: 500px;
21
+ width: 90%;
22
+ text-align: center;
23
+ animation: fadeIn 0.3s ease-in-out;
24
+ white-space: pre-line;
25
+ position: relative;
26
+ }
27
+
28
+ .information-box .headline {
29
+ margin-bottom: 0.75em;
30
+ }
31
+
32
+ @keyframes fadeIn {
33
+ from {
34
+ opacity: 0;
35
+ transform: scale(0.95);
36
+ }
37
+
38
+ to {
39
+ opacity: 1;
40
+ transform: scale(1);
41
+ }
42
+ }
43
+
44
+ .information-box .information-buttons {
45
+ display: flex;
46
+ justify-content: center;
47
+ gap: 1rem;
48
+ margin-top: 1.5rem;
49
+ }
50
+
51
+ .information-box .information-buttons button {
52
+ font-size: 85%;
53
+ padding: 0.5rem 1.1rem;
54
+ }
55
+
56
+ .information-box .closeButton {
57
+ right: 10px;
58
+ top: 10px;
59
+ position: absolute;
60
+ }
61
+
62
+ .information-box .close-icon:hover {
63
+ color: var(--HSDAkzent);
64
+ cursor: pointer;
65
+ }
@@ -0,0 +1,88 @@
1
+ .information-overlay-with-input {
2
+ position: fixed;
3
+ top: 0;
4
+ left: 0;
5
+ width: 100vw;
6
+ height: 100vh;
7
+ background-color: rgba(0, 0, 0, 0.6);
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ z-index: 10000;
12
+ }
13
+
14
+ .information-box-with-input {
15
+ background-color: var(--Hellgrau, white);
16
+ color: var(--HellSchwarz,#2c2c2c);
17
+ padding: 2rem;
18
+ border-radius: 12px;
19
+ box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
20
+ max-width: 500px;
21
+ width: 90%;
22
+ text-align: center;
23
+ animation: fadeIn 0.3s ease-in-out;
24
+ white-space: pre-line;
25
+ position: relative;
26
+ }
27
+
28
+ @keyframes fadeIn {
29
+ from {
30
+ opacity: 0;
31
+ transform: scale(0.95);
32
+ }
33
+
34
+ to {
35
+ opacity: 1;
36
+ transform: scale(1);
37
+ }
38
+ }
39
+
40
+ .information-box-with-input .information-buttons {
41
+ display: flex;
42
+ justify-content: center;
43
+ gap: 1rem;
44
+ margin-top: 1.5rem;
45
+ }
46
+
47
+ .information-box-with-input .information-buttons button {
48
+ font-size: 85%;
49
+ padding: 0.5rem 1.1rem;
50
+ }
51
+
52
+ .information-box-with-input input[type="text"] {
53
+ margin-top: 15px;
54
+ padding: 0.75rem 1rem;
55
+ font-size: 1em;
56
+ color: var(--FastSchwarz, #111);
57
+ background-color: var(--FastWeiß, #fff);
58
+ box-shadow: inset 0 0 0 1px #ccc;
59
+ }
60
+
61
+ .information-box-with-input .headline {
62
+ margin-bottom: 0.75em;
63
+ }
64
+
65
+ /* ==== Dark Mode Support ==== */
66
+ @media (prefers-color-scheme: dark) {
67
+ .information-box-with-input {
68
+ background-color: var(--HellSchwarz,#2c2c2c);
69
+ color: #fff;
70
+ }
71
+
72
+ .information-box-with-input input[type="text"] {
73
+ background-color: var(--HellSchwarz, #2c2c2c);
74
+ color: var(--FastWeiß, white);
75
+ box-shadow: inset 0 0 0 1px #444;
76
+ }
77
+ }
78
+
79
+ .information-box-with-input .closeButton {
80
+ right: 10px;
81
+ top: 10px;
82
+ position: absolute;
83
+ }
84
+
85
+ .information-box-with-input .close-icon:hover {
86
+ color: var(--HSDAkzent);
87
+ cursor: pointer;
88
+ }
@@ -0,0 +1,110 @@
1
+ .loading-overlay {
2
+ position: fixed;
3
+ top: 0;
4
+ left: 0;
5
+ width: 100vw;
6
+ height: 100vh;
7
+ background-color: rgba(255, 255, 255, 0.65);
8
+ z-index: 2000;
9
+ display: flex;
10
+ align-items: center;
11
+ justify-content: center;
12
+ backdrop-filter: blur(2px);
13
+ }
14
+
15
+ .loading-box {
16
+ display: flex;
17
+ flex-direction: column;
18
+ align-items: center;
19
+ gap: 1rem;
20
+ }
21
+
22
+ /* Spinner (Standardfarbe für Dark Mode) */
23
+ .loading-box .spinner {
24
+ width: 60px;
25
+ height: 60px;
26
+ /*border: 8px solid var(--HellSchwarz, #555);*/
27
+ border-top: 8px solid var(--spinner-color, #e60028);
28
+ border-bottom: 8px solid var(--spinner-color, #e60028);
29
+ border-radius: 50%;
30
+ animation: spin 0.75s linear infinite;
31
+ position: relative;
32
+ transition:
33
+ border-color 0.3s ease,
34
+ background-color 0.3s ease,
35
+ transform 0.3s ease;
36
+ }
37
+
38
+ .loading-box .spinner.is-success,
39
+ .loading-box .spinner.is-error {
40
+ animation: none;
41
+ border-color: transparent;
42
+ }
43
+
44
+ .loading-box .spinner::before,
45
+ .loading-box .spinner::after {
46
+ content: "";
47
+ position: absolute;
48
+ opacity: 0;
49
+ transition: opacity 0.3s ease;
50
+ }
51
+
52
+ .loading-box .spinner.is-success {
53
+ background-color: var(--success-bg, #4caf50);
54
+ }
55
+
56
+ .loading-box .spinner.is-success::before {
57
+ width: 12px;
58
+ height: 24px;
59
+ border-right: 6px solid white;
60
+ border-bottom: 6px solid white;
61
+ transform: rotate(45deg);
62
+ left: 24px;
63
+ top: 8px;
64
+ opacity: 1;
65
+ }
66
+
67
+ .loading-box .spinner.is-error {
68
+ background-color: var(--error-bg, #e60028);
69
+ }
70
+
71
+ .loading-box .spinner.is-error::before,
72
+ .loading-box .spinner.is-error::after {
73
+ width: 36px;
74
+ height: 6px;
75
+ background: white;
76
+ top: 20px;
77
+ left: 12px;
78
+ opacity: 1;
79
+ }
80
+
81
+ .loading-box .spinner.is-error::before {
82
+ transform: rotate(45deg);
83
+ }
84
+
85
+ .loading-box .spinner.is-error::after {
86
+ transform: rotate(-45deg);
87
+ }
88
+
89
+ .loading-box .loading-message {
90
+ font-size: 1.1em;
91
+ font-weight: bold;
92
+ text-align: center;
93
+ white-space: pre-line;
94
+ color: var(--FastSchwarz, #2c2c2c);
95
+ text-shadow:
96
+ -1px -1px 0 color-mix(in srgb, var(--Mittelgrau, white) 80%, var(--Dunkelgrau, black) 20%),
97
+ 1px -1px 0 color-mix(in srgb, var(--Mittelgrau, white) 80%, var(--Dunkelgrau, black) 20%),
98
+ -1px 1px 0 color-mix(in srgb, var(--Mittelgrau, white) 80%, var(--Dunkelgrau, black) 20%),
99
+ 1px 1px 0 color-mix(in srgb, var(--Mittelgrau, white) 80%, var(--Dunkelgrau, black) 20%);
100
+ }
101
+
102
+ @keyframes spin {
103
+ 0% {
104
+ transform: rotate(0deg);
105
+ }
106
+
107
+ 100% {
108
+ transform: rotate(360deg);
109
+ }
110
+ }
@@ -0,0 +1,170 @@
1
+ .multiplechoice-overlay {
2
+ position: fixed;
3
+ top: 0;
4
+ left: 0;
5
+ width: 100vw;
6
+ height: 100vh;
7
+ background-color: rgba(0, 0, 0, 0.6);
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ z-index: 10000;
12
+ }
13
+
14
+ .multiplechoice-box {
15
+ background-color: var(--Hellgrau, white);
16
+ color: var(--HellSchwarz,#2c2c2c);
17
+ padding: 2rem;
18
+ border-radius: 12px;
19
+ box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
20
+ max-width: 500px;
21
+ width: 90%;
22
+ text-align: center;
23
+ animation: fadeIn 0.3s ease-in-out;
24
+ white-space: pre-line;
25
+ position: relative;
26
+ }
27
+
28
+ @keyframes fadeIn {
29
+ from {
30
+ opacity: 0;
31
+ transform: scale(0.95);
32
+ }
33
+
34
+ to {
35
+ opacity: 1;
36
+ transform: scale(1);
37
+ }
38
+ }
39
+
40
+ .multiplechoice-box .headline {
41
+ margin-bottom: 0.75em;
42
+ }
43
+
44
+ .multiplechoice-box .information-buttons {
45
+ display: flex;
46
+ justify-content: center;
47
+ gap: 1rem;
48
+ margin-top: 1.5rem;
49
+ }
50
+
51
+ .multiplechoice-box .information-buttons button {
52
+ font-size: 85%;
53
+ padding: 0.5rem 1.1rem;
54
+ }
55
+
56
+ /* === Stylisierte Checkbox === */
57
+ .multiplechoice-box .choices-input {
58
+ display: flex;
59
+ flex-direction: column;
60
+ align-items: center;
61
+ }
62
+
63
+ .multiplechoice-box .choices-input input[type="checkbox"] {
64
+ appearance: none;
65
+ width: 20px;
66
+ height: 20px;
67
+ border: 2px solid white;
68
+ background-color: var(--FastWeiß, white);
69
+ border-color: var(--Mittelgrau, #ccc);
70
+ border-radius: 4px;
71
+ cursor: pointer;
72
+ transition: background-color 0.2s, border-color 0.2s;
73
+ position: relative;
74
+ margin-right: 0.5rem;
75
+ }
76
+
77
+ .multiplechoice-box .choices-input input[type="checkbox"]:checked {
78
+ background-color: var(--DunkelAkzent, #4aabf5) ;
79
+ border-color: var(--DunkelAkzent, #4aabf5) ;
80
+ }
81
+
82
+ .multiplechoice-box .choices-input input[type="checkbox"]:hover {
83
+ background-color: var(--Hellgrau, #ddd);
84
+ border-color: var(--Dunkelgrau, #999);
85
+ }
86
+
87
+ .multiplechoice-box .choices-input input[type="checkbox"]:checked:hover {
88
+ background-color: var(--HSDAkzent, #4aabf5) ;
89
+ border-color: var(--HSDAkzent, #4aabf5) ;
90
+ }
91
+
92
+
93
+ /* Häkchen aus zwei Linien */
94
+ .multiplechoice-box .choices-input input[type="checkbox"]:checked::after {
95
+ content: "";
96
+ position: absolute;
97
+ left: 5px;
98
+ top: 2px;
99
+ width: 5px;
100
+ height: 10px;
101
+ border: solid white;
102
+ border-width: 0 2px 2px 0;
103
+ transform: rotate(45deg);
104
+ }
105
+
106
+ .multiplechoice-box .choices-input input[type="checkbox"]:focus {
107
+ outline: none;
108
+ box-shadow: 0 0 0 2px var(--MittelAkzent, rgba(74, 171, 245));
109
+ }
110
+
111
+ .multiplechoice-box .choice-label {
112
+ justify-content: flex-start;
113
+ display: flex;
114
+ align-items: center;
115
+ margin-bottom: 0.5rem;
116
+ vertical-align: middle;
117
+ }
118
+
119
+ .multiplechoice-box .choices-container{
120
+ display: flex;
121
+ flex-direction: column;
122
+ align-items: flex-start;
123
+ gap: 0.5rem;
124
+ width: max-content;
125
+ padding: 1rem;
126
+ }
127
+
128
+ /* Light Mode */
129
+ @media (prefers-color-scheme: dark) {
130
+
131
+ .multiplechoice-box {
132
+ background-color: var(--HellSchwarz,#2c2c2c);
133
+ color: var(--FastWeiß, white);
134
+ }
135
+
136
+ .multiplechoice-box .choices-input input[type="checkbox"] {
137
+ background-color: var(--Dunkelgrau, #888);
138
+ background-color: var(--FastSchwarz,#222);
139
+ }
140
+
141
+ .multiplechoice-box .choices-input input[type="checkbox"]:checked {
142
+ background-color: var(--DunkelAkzent, #4aabf5);
143
+ border-color: var(--DunkelAkzent, #4aabf5);
144
+ }
145
+
146
+ .multiplechoice-box .choices-input input[type="checkbox"]:hover {
147
+ background-color: var(--Dunkelgrau, #ddd);
148
+ border-color: var(--Hellgrau, #999);
149
+ }
150
+
151
+ .multiplechoice-box .choices-input input[type="checkbox"]:checked:hover {
152
+ background-color: var(--HSDAkzent, #4aabf5) ;
153
+ border-color: var(--HSDAkzent, #4aabf5) ;
154
+ }
155
+
156
+ .multiplechoice-box .choices-input input[type="checkbox"]:checked::after {
157
+ border-color: white;
158
+ }
159
+ }
160
+
161
+ .multiplechoice-box .closeButton {
162
+ right: 10px;
163
+ top: 10px;
164
+ position: absolute;
165
+ }
166
+
167
+ .multiplechoice-box .close-icon:hover {
168
+ color: var(--HSDAkzent);
169
+ cursor: pointer;
170
+ }
@@ -0,0 +1,170 @@
1
+ .multipleradio-overlay {
2
+ position: fixed;
3
+ top: 0;
4
+ left: 0;
5
+ width: 100vw;
6
+ height: 100vh;
7
+ background-color: rgba(0, 0, 0, 0.6);
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ z-index: 10000;
12
+ }
13
+
14
+ .multipleradio-box {
15
+ background-color: var(--Hellgrau, white);
16
+ color: var(--HellSchwarz,#2c2c2c);
17
+ padding: 2rem;
18
+ border-radius: 12px;
19
+ box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
20
+ max-width: 500px;
21
+ width: 90%;
22
+ text-align: center;
23
+ animation: fadeIn 0.3s ease-in-out;
24
+ white-space: pre-line;
25
+ position: relative;
26
+ }
27
+
28
+ @keyframes fadeIn {
29
+ from {
30
+ opacity: 0;
31
+ transform: scale(0.95);
32
+ }
33
+
34
+ to {
35
+ opacity: 1;
36
+ transform: scale(1);
37
+ }
38
+ }
39
+
40
+ .multipleradio-box .headline {
41
+ margin-bottom: 0.75em;
42
+ }
43
+
44
+ .multipleradio-box .information-buttons {
45
+ display: flex;
46
+ justify-content: center;
47
+ gap: 1rem;
48
+ margin-top: 1.5rem;
49
+ }
50
+
51
+ .multipleradio-box .information-buttons button {
52
+ font-size: 85%;
53
+ padding: 0.5rem 1.1rem;
54
+ }
55
+
56
+ /* === Stylisierte Checkbox === */
57
+ .multipleradio-box .radios-input {
58
+ display: flex;
59
+ flex-direction: column;
60
+ align-items: center;
61
+ }
62
+
63
+ .multipleradio-box .radios-input input[type="checkbox"] {
64
+ appearance: none;
65
+ width: 20px;
66
+ height: 20px;
67
+ border: 2px solid white;
68
+ background-color: var(--FastWeiß, white);
69
+ border-color: var(--Mittelgrau, #ccc);
70
+ border-radius: 4px;
71
+ cursor: pointer;
72
+ transition: background-color 0.2s, border-color 0.2s;
73
+ position: relative;
74
+ margin-right: 0.5rem;
75
+ }
76
+
77
+ .multipleradio-box .radios-input input[type="checkbox"]:checked {
78
+ background-color: var(--DunkelAkzent, #4aabf5) ;
79
+ border-color: var(--DunkelAkzent, #4aabf5) ;
80
+ }
81
+
82
+ .multipleradio-box .radios-input input[type="checkbox"]:hover {
83
+ background-color: var(--Hellgrau, #ddd);
84
+ border-color: var(--Dunkelgrau, #999);
85
+ }
86
+
87
+ .multipleradio-box .radios-input input[type="checkbox"]:checked:hover {
88
+ background-color: var(--HSDAkzent, #4aabf5) ;
89
+ border-color: var(--HSDAkzent, #4aabf5) ;
90
+ }
91
+
92
+
93
+ /* Häkchen aus zwei Linien */
94
+ .multipleradio-box .radios-input input[type="checkbox"]:checked::after {
95
+ content: "";
96
+ position: absolute;
97
+ left: 5px;
98
+ top: 2px;
99
+ width: 5px;
100
+ height: 10px;
101
+ border: solid white;
102
+ border-width: 0 2px 2px 0;
103
+ transform: rotate(45deg);
104
+ }
105
+
106
+ .multipleradio-box .radios-input input[type="checkbox"]:focus {
107
+ outline: none;
108
+ box-shadow: 0 0 0 2px var(--MittelAkzent, rgba(74, 171, 245));
109
+ }
110
+
111
+ .multipleradio-box .radio-label {
112
+ justify-content: flex-start;
113
+ display: flex;
114
+ align-items: center;
115
+ margin-bottom: 0.5rem;
116
+ vertical-align: middle;
117
+ }
118
+
119
+ .multipleradio-box .radios-container{
120
+ display: flex;
121
+ flex-direction: column;
122
+ align-items: flex-start;
123
+ gap: 0.5rem;
124
+ width: max-content;
125
+ padding: 1rem;
126
+ }
127
+
128
+ /* Light Mode */
129
+ @media (prefers-color-scheme: dark) {
130
+
131
+ .multipleradio-box {
132
+ background-color: var(--HellSchwarz,#2c2c2c);
133
+ color: var(--FastWeiß, white);
134
+ }
135
+
136
+ .multipleradio-box .radios-input input[type="checkbox"] {
137
+ background-color: var(--Dunkelgrau, #888);
138
+ background-color: var(--FastSchwarz,#222);
139
+ }
140
+
141
+ .multipleradio-box .radios-input input[type="checkbox"]:checked {
142
+ background-color: var(--DunkelAkzent, #4aabf5);
143
+ border-color: var(--DunkelAkzent, #4aabf5);
144
+ }
145
+
146
+ .multipleradio-box .radios-input input[type="checkbox"]:hover {
147
+ background-color: var(--Dunkelgrau, #ddd);
148
+ border-color: var(--Hellgrau, #999);
149
+ }
150
+
151
+ .multipleradio-box .radios-input input[type="checkbox"]:checked:hover {
152
+ background-color: var(--HSDAkzent, #4aabf5) ;
153
+ border-color: var(--HSDAkzent, #4aabf5) ;
154
+ }
155
+
156
+ .multipleradio-box .radios-input input[type="checkbox"]:checked::after {
157
+ border-color: white;
158
+ }
159
+ }
160
+
161
+ .multipleradio-box .closeButton {
162
+ right: 10px;
163
+ top: 10px;
164
+ position: absolute;
165
+ }
166
+
167
+ .multipleradio-box .close-icon:hover {
168
+ color: var(--HSDAkzent);
169
+ cursor: pointer;
170
+ }
package/dist/Toast.css ADDED
@@ -0,0 +1,13 @@
1
+ .toast-notification {
2
+ font-size: 80%;
3
+ position: fixed;
4
+ top: 14rem;
5
+ right: 1rem;
6
+ background-color: var(--DunkleresGruen, #1a7f37);
7
+ color: white;
8
+ box-shadow: 0 4px 8px rgba(0,0,0,0.2);
9
+ padding: 0.8rem 1.2rem 0.65rem 1.2rem;
10
+ border-radius: 8px;
11
+ animation: fadeInOut 2.5s ease-in-out;
12
+ z-index: 1000;
13
+ }
@@ -0,0 +1,49 @@
1
+ .toggleWrapper {
2
+ position: relative;
3
+ display: flex;
4
+ width: fit-content;
5
+ height: 40px;
6
+ border-radius: 20px;
7
+ background-color: #f9eeee;;
8
+ overflow: hidden;
9
+ cursor: pointer;
10
+ user-select: none;
11
+ font-family: sans-serif;
12
+ font-weight: 500;
13
+ float: right;
14
+ }
15
+
16
+ .toggleOption {
17
+ flex: 1;
18
+ display: flex;
19
+ justify-content: center;
20
+ align-items: center;
21
+ z-index: 2;
22
+ color: var(--FastSchwarz, black);
23
+ transition: color 0.2s;
24
+ margin: 1rem;
25
+ white-space: nowrap;
26
+ }
27
+
28
+ .toggleOption.active {
29
+ color: black;
30
+ }
31
+
32
+ .toggleSlider {
33
+ position: absolute;
34
+ top: 0;
35
+ bottom: 0;
36
+ width: 50%;
37
+ border-radius: 20px;
38
+ background-color: var(--HellAkzent, red);
39
+ transition: transform 0.25s ease;
40
+ z-index: 1;
41
+ }
42
+
43
+ .toggleSlider.left {
44
+ transform: translateX(0%);
45
+ }
46
+
47
+ .toggleSlider.right {
48
+ transform: translateX(100%);
49
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typescript-overlay-essentials",
3
- "version": "1.3.6",
3
+ "version": "1.3.9",
4
4
  "description": "Eine kleine Ansammlung an praktischen Tools, die out of the Box genutzt werden können. Alle enthaltenen Overlays können als Reaktion auf etwas geöffnet werden und schließen sich danach automatisch. Es beinhaltet: \\n - [ConfirmationBox]: Ein Overlay mit einer ConfirmationBox (Fortfahren / Abbrechen), \\n - [InfoOverlay]: ein simples Overlay mit einer Informationsbox die man bestätigen kann, \\n - [InfoOverlayWithInput]: Ein Overlay bei dem ein User zusätzlich ein Freitext-Feld zur Eingabe hat, \\n - [LoadingOverlay]: Ein simples Overlay mit einer Lade-animation und optionalem Ladetext, \\n - [MultipleChoiceOverlay]: Ein simples Overlay bei dem ein Nutzer aus mehreren gegebenen Aktionen auswählen kann, \\n - [MultipleRadioOverlay]: Ein simples Overlay bei dem ein Nutzer genau eine aus mehreren gegebenen Aktionen auswählen kann, \\n - [Toast]: Ein simpler Toast der für kurze Zeit grün hinterlegt in der oberen rechten Ecke des Bildschirms angezeigt wird, \\n - [ToggleSwitch]: Eine Auswahl aus zwei Optionen aus denen ein Nutzer wählen kann in der Darstellung (Option 1 | Option 2), \\n - [Dropdown]: Ein simples Dropdown-Menü (auf Basis von react-select), welches einfacherer zu Konfigurieren ist und einige default-Einstellungen hat, \\n - [InputFilter]: Ein Tool was genutzt werden kann um auf einem Inputfeld einen Regex-Filter anzuwenden und dem User so nur Eingaben erlaubt die dem Filter entsprechen.",
5
5
  "keywords": [
6
6
  "typescript",
@@ -38,8 +38,8 @@
38
38
  "dist"
39
39
  ],
40
40
  "scripts": {
41
- "build": "tsc",
42
- "copy-css": "cpy \"src/**/*.css\" dist",
41
+ "build": "npx tsc && npm run copy-css",
42
+ "copy-css": "npx cpx \"src/**/*.css\" dist",
43
43
  "prepare": "npm run build"
44
44
  },
45
45
  "dependencies": {
@@ -55,6 +55,7 @@
55
55
  "devDependencies": {
56
56
  "@types/react": "^19.2.14",
57
57
  "@types/react-dom": "^19.2.3",
58
- "cpy": "^13.2.1"
58
+ "cpy": "^13.2.1",
59
+ "typescript": "^6.0.2"
59
60
  }
60
61
  }