@loftyshaky/shared 1.0.2 → 1.1.0

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.
Files changed (117) hide show
  1. package/_locales/en/messages.json +7 -1
  2. package/_locales/ru/messages.json +6 -0
  3. package/announcement.js +1 -1
  4. package/app.js +1 -1
  5. package/chunk-main-81553e2f.js +1 -0
  6. package/{chunk-main-4661c4ad.js → chunk-main-d37cdd45.js} +1 -1
  7. package/chunk-main-f5f33db9.js +9 -0
  8. package/{chunk-pickr.min-e4e11a57.js → chunk-pickr.min-b8ee5a0c.js} +1 -1
  9. package/ext.js +1 -1
  10. package/index.d.ts +1 -1
  11. package/index.js +1 -1
  12. package/inputs.js +1 -1
  13. package/js/env.js +11 -3
  14. package/js/locales.js +12 -3
  15. package/js/webpack.config.js +5 -0
  16. package/package.json +13 -13
  17. package/scss/settings/section_btns.scss +52 -52
  18. package/scss/settings/transitions.scss +0 -10
  19. package/scss/shared/btns.scss +69 -16
  20. package/scss/shared/checkboxes.scss +38 -38
  21. package/scss/shared/close_btn.scss +18 -0
  22. package/scss/shared/color_pickers.scss +93 -93
  23. package/scss/shared/colors.scss +90 -84
  24. package/scss/shared/embed/error.scss +7 -23
  25. package/scss/shared/focus.scss +15 -9
  26. package/scss/shared/functions.scss +5 -0
  27. package/scss/shared/help.scss +3 -5
  28. package/scss/shared/index.scss +4 -0
  29. package/scss/shared/input_btns.scss +12 -11
  30. package/scss/shared/input_error.scss +3 -0
  31. package/scss/shared/inputs.scss +86 -70
  32. package/scss/shared/inset_border.scss +0 -4
  33. package/scss/shared/link_btns.scss +2 -0
  34. package/scss/shared/links.scss +8 -0
  35. package/scss/shared/main.scss +3 -0
  36. package/scss/shared/mixins.scss +45 -0
  37. package/scss/shared/scrollbar.scss +35 -35
  38. package/scss/shared/themes/colors/aqua.scss +38 -0
  39. package/scss/shared/themes/colors/dark.scss +46 -12
  40. package/scss/shared/themes/colors/lavender.scss +38 -0
  41. package/scss/shared/themes/colors/light.scss +46 -12
  42. package/scss/shared/themes/colors/very_dark.scss +46 -12
  43. package/scss/shared/themes/general/aqua_theme.scss +9 -0
  44. package/scss/shared/themes/general/dark_theme.scss +3 -1
  45. package/scss/shared/themes/general/lavender_theme.scss +9 -0
  46. package/scss/shared/themes/general/light_theme.scss +3 -1
  47. package/scss/shared/themes/general/template.scss +105 -71
  48. package/scss/shared/themes/general/template_focus.scss +20 -8
  49. package/scss/shared/themes/general/very_dark_theme.scss +3 -1
  50. package/scss/shared/transitions.scss +21 -3
  51. package/scss/shared/upload_box.scss +81 -67
  52. package/scss/shared/vars.scss +9 -2
  53. package/settings.d.ts +1 -1
  54. package/settings.js +1 -1
  55. package/ts/error_modules/error/data/main.d.ts +1 -1
  56. package/ts/error_modules/error/data/msg.d.ts +0 -2
  57. package/ts/error_modules/error/data/state.d.ts +1 -2
  58. package/ts/error_modules/error/interfaces/index.d.ts +1 -0
  59. package/ts/error_modules/error/interfaces/notification_type.d.ts +1 -0
  60. package/ts/error_modules/error/interfaces/observable_keys.d.ts +1 -1
  61. package/ts/error_modules/error/interfaces/show_error.d.ts +5 -2
  62. package/ts/error_modules/error/scripts/flash.d.ts +11 -0
  63. package/ts/error_modules/error/scripts/globals.d.ts +2 -0
  64. package/ts/error_modules/error/scripts/index.d.ts +2 -0
  65. package/ts/error_modules/error/scripts/notification.d.ts +7 -0
  66. package/ts/error_modules/internal.d.ts +1 -0
  67. package/ts/inputs/components/form.d.ts +3 -0
  68. package/ts/inputs/components/index.d.ts +4 -0
  69. package/ts/inputs/components/input_error.d.ts +3 -0
  70. package/ts/inputs/components/label_in_input_item.d.ts +3 -0
  71. package/ts/inputs/components/link_icon_btn.d.ts +3 -0
  72. package/ts/inputs/components/prop_types/form.d.ts +5 -0
  73. package/ts/inputs/components/prop_types/index.d.ts +4 -0
  74. package/ts/inputs/components/prop_types/input_error.d.ts +4 -0
  75. package/ts/inputs/components/prop_types/label.d.ts +2 -2
  76. package/ts/inputs/components/prop_types/label_in_input_item.d.ts +4 -0
  77. package/ts/inputs/components/prop_types/link_icon_btn.d.ts +5 -0
  78. package/ts/inputs/components/prop_types/range.d.ts +2 -0
  79. package/ts/inputs/components/prop_types/select.d.ts +2 -0
  80. package/ts/inputs/components/prop_types/text.d.ts +2 -0
  81. package/ts/inputs/components/prop_types/textarea.d.ts +2 -0
  82. package/ts/inputs/components/prop_types/upload_box.d.ts +1 -0
  83. package/ts/inputs/data/index.d.ts +2 -1
  84. package/ts/inputs/data/input_error.d.ts +12 -0
  85. package/ts/inputs/data/input_width.d.ts +5 -1
  86. package/ts/inputs/data/{label.d.ts → labelIn_in_putI_iem.d.ts} +2 -2
  87. package/ts/inputs/data/upload_box.d.ts +4 -0
  88. package/ts/inputs/data/val.d.ts +10 -5
  89. package/ts/inputs/interfaces/btn_option.d.ts +9 -0
  90. package/ts/inputs/interfaces/index.d.ts +1 -0
  91. package/ts/inputs/interfaces/input.d.ts +1 -1
  92. package/ts/inputs/obj/btn.d.ts +1 -0
  93. package/ts/inputs/obj/file.d.ts +1 -0
  94. package/ts/inputs/obj/form.d.ts +7 -0
  95. package/ts/inputs/obj/icon_btn.d.ts +2 -1
  96. package/ts/inputs/obj/index.d.ts +2 -0
  97. package/ts/inputs/obj/input_base.d.ts +10 -3
  98. package/ts/inputs/obj/label.d.ts +5 -0
  99. package/ts/inputs/obj/link.d.ts +4 -0
  100. package/ts/inputs/obj/link_btn.d.ts +2 -1
  101. package/ts/inputs/obj/section.d.ts +2 -0
  102. package/ts/inputs/obj/text.d.ts +2 -1
  103. package/ts/inputs/obj/upload_box.d.ts +4 -0
  104. package/ts/inputs/scripts/resolve.d.ts +3 -1
  105. package/ts/settings/data/back_up.d.ts +2 -1
  106. package/ts/settings/data/sections.d.ts +3 -1
  107. package/ts/settings/internal.d.ts +0 -2
  108. package/ts/shared/app.d.ts +10 -3
  109. package/ts/shared/internal.d.ts +2 -0
  110. package/ts/{settings → shared}/schema/data/index.d.ts +0 -0
  111. package/ts/{settings → shared}/schema/data/main.d.ts +3 -2
  112. package/ts/{settings → shared}/schema/obj/index.d.ts +0 -0
  113. package/ts/{settings → shared}/schema/obj/transform_item.d.ts +0 -0
  114. package/ts/shared/t.d.ts +2 -0
  115. package/ts/shared/x.d.ts +5 -0
  116. package/chunk-main-536b8e4c.js +0 -9
  117. package/chunk-main-53e40464.js +0 -1
@@ -2,6 +2,10 @@
2
2
 
3
3
  @import 'template_focus';
4
4
 
5
+ @mixin link_colors_standard {
6
+ @include link_colors($ycp, $ptn, $cop, $uzf);
7
+ }
8
+
5
9
  ::selection {
6
10
  background-color: $nqp !important;
7
11
  color: white !important;
@@ -10,17 +14,16 @@
10
14
  :not(html, body, select) {
11
15
  &::-webkit-scrollbar-corner,
12
16
  &::-webkit-resizer {
13
- background-color: $hev;
14
- border-color: $hev;
17
+ background-color: $hyn;
18
+ border-color: $hyn;
15
19
  }
16
20
 
17
21
  &::-webkit-scrollbar-track {
18
- background-color: $gaq;
19
- border-color: $gaq;
22
+ background-color: $npw;
20
23
  }
21
24
 
22
25
  &::-webkit-scrollbar-thumb {
23
- background-color: $hev;
26
+ background-color: $fxm;
24
27
  }
25
28
 
26
29
  &::-webkit-scrollbar-thumb:hover {
@@ -29,7 +32,27 @@
29
32
 
30
33
  &::-webkit-scrollbar-track:horizontal,
31
34
  &::-webkit-scrollbar-track:vertical {
32
- border-color: $hev;
35
+ border-color: $fxm;
36
+ }
37
+ }
38
+
39
+ .link {
40
+ @include link_colors_standard();
41
+ }
42
+
43
+ .link_btn {
44
+ @include link_colors_standard();
45
+ }
46
+
47
+ textarea {
48
+ &::-webkit-scrollbar-corner,
49
+ &::-webkit-resizer {
50
+ background-color: $nur;
51
+ border-color: $vqo;
52
+ }
53
+
54
+ &::-webkit-scrollbar-track {
55
+ background-color: $hcx;
33
56
  }
34
57
  }
35
58
 
@@ -48,29 +71,29 @@
48
71
  }
49
72
 
50
73
  body {
51
- background-color: $gaq;
74
+ background: $gqb;
75
+ background-repeat: no-repeat;
76
+ background-attachment: fixed;
77
+
78
+ .main_2 {
79
+ background-color: $hfb;
80
+ }
52
81
 
53
82
  .btn {
54
83
  &.text {
55
- outline-color: $hev;
56
- background-color: $gaq;
84
+ background-color: $npw;
85
+ outline-color: $hyn;
57
86
 
58
87
  &:hover {
59
88
  background-color: $qgp;
60
89
  }
61
90
  }
91
+ }
62
92
 
63
- &.icon {
64
- background-color: transparent;
65
-
66
- &:not(:first-child) {
67
- margin-left: $gap;
68
- }
69
-
70
- svg {
71
- display: block;
72
- fill: $lpe;
73
- }
93
+ .btn,
94
+ .link.svg {
95
+ svg {
96
+ fill: $lpe;
74
97
  }
75
98
  }
76
99
  }
@@ -84,18 +107,37 @@ textarea {
84
107
  }
85
108
 
86
109
  hr {
87
- background-color: $hev;
110
+ background-color: $hyn;
111
+ }
112
+
113
+ .btn_options {
114
+ background-color: $npw;
115
+ border-color: $hyn;
116
+
117
+ .btn_option {
118
+ hr {
119
+ background-color: $hyn;
120
+ }
121
+
122
+ &:hover {
123
+ background-color: $qgp;
124
+ }
125
+ }
88
126
  }
89
127
 
90
128
  .sections {
91
- background-color: $htc;
129
+ background-color: $tbn;
130
+
131
+ .section_name {
132
+ border-color: $hyn;
133
+ }
92
134
  }
93
135
 
94
136
  .section_btns {
95
- background-color: $gaq;
137
+ background-color: $gvb;
96
138
 
97
139
  .section_btn {
98
- background-color: $gaq;
140
+ background-color: $hfb;
99
141
 
100
142
  &.selected::before {
101
143
  background-color: $ycp;
@@ -109,15 +151,19 @@ hr {
109
151
 
110
152
  .input_item {
111
153
  .inset_border::before {
112
- outline-color: $hev;
154
+ outline-color: $hyn;
113
155
  }
114
156
 
115
157
  .input {
116
- background-color: $gaq;
158
+ background-color: $npw;
159
+
160
+ &::placeholder {
161
+ color: $mdc;
162
+ }
117
163
  }
118
164
 
119
165
  .btn.text_input {
120
- background-color: $gaq;
166
+ background-color: $npw;
121
167
 
122
168
  svg {
123
169
  fill: $lpe;
@@ -126,13 +172,20 @@ hr {
126
172
 
127
173
  .palette {
128
174
  background-color: $htc;
175
+ color: $rbp;
129
176
  }
130
177
 
131
178
  .input_w {
132
- .visualization,
179
+ .visualization {
180
+ background-color: $npw;
181
+ }
182
+
183
+ .palette_visualization_w.inset_border::before {
184
+ outline-color: $hev;
185
+ }
186
+
133
187
  .palette_visualization {
134
- border-color: $hev;
135
- background-color: $gaq;
188
+ background-color: $npw;
136
189
  }
137
190
  }
138
191
 
@@ -140,6 +193,10 @@ hr {
140
193
  background-image: linear-gradient(45deg, transparent 50%, $lpe 50%),
141
194
  linear-gradient(135deg, $lpe 50%, transparent 50%),
142
195
  linear-gradient(to right, $lpe, $lpe);
196
+
197
+ option {
198
+ color: $rbp;
199
+ }
143
200
  }
144
201
 
145
202
  .range {
@@ -153,14 +210,14 @@ hr {
153
210
  }
154
211
 
155
212
  &::-webkit-slider-runnable-track {
156
- box-shadow: inset 0 0 0 1px $hev, inset -1px 0 0 0 $hev;
213
+ box-shadow: inset 0 0 0 1px $hyn;
157
214
  }
158
215
  }
159
216
  }
160
217
 
161
218
  .checkbox .box {
162
- outline-color: $hev;
163
- background-color: $gaq;
219
+ outline-color: $hyn;
220
+ background-color: $npw;
164
221
 
165
222
  svg {
166
223
  fill: $lpe;
@@ -168,11 +225,11 @@ hr {
168
225
  }
169
226
 
170
227
  .upload_box {
171
- outline-color: $hev;
228
+ outline-color: $hyn;
172
229
 
173
230
  .background {
174
231
  &.upload_box_idle {
175
- background-color: $gaq;
232
+ background-color: $npw;
176
233
  }
177
234
 
178
235
  &.upload_box_hover {
@@ -180,27 +237,32 @@ hr {
180
237
  }
181
238
 
182
239
  &.loading {
240
+ background-color: transparent;
183
241
  /* stylelint-disable-next-line function-parentheses-newline-inside */
184
242
  background-image: repeating-linear-gradient(-45deg,
185
- $gaq,
186
- $gaq 14px,
243
+ $npw,
244
+ $npw 14px,
187
245
  $qgp 14px,
188
246
  $qgp 28px); /* stylelint-disable-line function-parentheses-newline-inside */
189
247
  }
190
248
  }
191
249
  }
192
250
 
251
+ &.color .link_btn {
252
+ @include link_colors($iub, $dwk, $yun, $hap);
253
+ }
254
+
193
255
  .color_picker_w {
194
256
  *:not(.pcr-last-color, .pcr-current-color) {
195
- color: $lpe !important;
257
+ color: $rbp !important;
196
258
  }
197
259
 
198
260
  input {
199
- background-color: $gaq !important;
261
+ background-color: $npw !important;
200
262
  outline-color: $hev !important;
201
263
 
202
264
  &:hover:not(.pcr-result, .active) {
203
- background-color: $qgp !important;
265
+ background-color: $hyv !important;
204
266
  }
205
267
  }
206
268
  }
@@ -218,40 +280,12 @@ hr {
218
280
  }
219
281
 
220
282
  .pcr-type.active {
221
- background-color: $yos !important;
283
+ background-color: $nep !important;
222
284
  }
223
285
  }
224
286
 
225
- .link {
226
- color: $ycp;
227
-
228
- &:visited {
229
- color: $ptn;
230
- }
231
-
232
- &:hover {
233
- color: $cop;
234
- }
235
-
236
- &:active {
237
- color: $uzf;
238
- }
239
- }
240
-
241
- .link_btn {
242
- color: $ycp;
243
-
244
- &:visited {
245
- color: $ptn;
246
- }
247
-
248
- &:hover {
249
- color: $cop;
250
- }
251
-
252
- &:active {
253
- color: $uzf;
254
- }
287
+ .input_error {
288
+ color: $rqb;
255
289
  }
256
290
 
257
291
  .ext_version {
@@ -6,45 +6,57 @@
6
6
  outline-color: $cop;
7
7
  }
8
8
 
9
- &.is_in_warn_state:not(.select)::before {
9
+ &.is_in_warn_state:not(.select)::before,
10
+ &.is_in_warn_state.upload_box {
10
11
  outline-color: $rqb;
11
12
  }
12
13
  }
13
14
 
14
- .visualization_w.opened .visualization,
15
+ .visualization_w.opened .visualization {
16
+ outline-color: $ycp;
17
+ }
18
+
15
19
  .palette_visualization_w.opened .palette_visualization,
16
20
  .palette_visualization_w.selected .palette_visualization {
17
- outline-color: $ycp;
21
+ outline-color: $iub;
18
22
  }
19
23
  }
20
24
 
21
25
  .keyboard .btn.text_input::before,
22
26
  body.keyboard .btn.text:focus,
23
27
  .keyboard .help_btn:focus,
24
- .keyboard .btn.icon:focus,
28
+ .keyboard .icon_btn:focus,
25
29
  .keyboard .input_item .checkbox .box:focus,
26
30
  .keyboard .link:focus,
27
31
  .keyboard .link_btn:focus,
28
32
  .keyboard .input_item .input_w:not(.text, .textarea).is_in_focus_state::before,
29
33
  .keyboard .input_item.range .input.is_in_focus_state,
30
34
  .keyboard .input_item .visualization_w .visualization:focus,
31
- .keyboard .input_item .palette_visualization_w .palette_visualization:focus {
35
+ .keyboard .btn_options .btn_option:focus {
32
36
  outline-color: $ptn;
33
37
  }
34
38
 
39
+ .keyboard .input_item.color .btn.text:focus {
40
+ outline-color: $dwk;
41
+ }
42
+
43
+ .keyboard .input_item .palette_visualization_w .palette_visualization:focus {
44
+ outline-color: $dwk;
45
+ }
46
+
35
47
  .keyboard .input_item .pcr-palette:focus,
36
48
  .keyboard .input_item .pcr-slider:focus,
37
49
  .keyboard .input_item .pcr-picker:focus,
38
50
  .keyboard .input_item .color_picker_w input:not(.pcr-result):focus {
39
- outline-color: $ptn !important;
51
+ outline-color: $dwk !important;
40
52
  }
41
53
 
42
54
  .input_item .pcr-result:focus {
43
- outline-color: $cop !important;
55
+ outline-color: $yun !important;
44
56
  }
45
57
 
46
58
  .keyboard .input_item .pcr-result:focus {
47
- outline-color: $ptn !important;
59
+ outline-color: $dwk !important;
48
60
  }
49
61
 
50
62
  .keyboard .section_btn:not(.selected):focus {
@@ -1,7 +1,9 @@
1
1
  @import '../../vars';
2
+ @import '../../mixins';
3
+ @import '../../functions';
2
4
  @import '../colors/very_dark';
3
5
  @import 'template';
4
6
 
5
7
  .main_2 {
6
- box-shadow: rgb(0 102 255 / 85%) 0 0 36px, rgb(255 255 255 / 40%) 0 0 10px;
8
+ box-shadow: $blue_neon_very_dark;
7
9
  }
@@ -4,17 +4,19 @@
4
4
  .checkbox .box svg,
5
5
  .color_picker_w,
6
6
  .palette_w,
7
- .color_help_w {
7
+ .color_help_w,
8
+ .btn_options {
8
9
  transition: var(--transition);
9
10
  transition-property: opacity;
10
11
  }
11
12
 
12
- .upload_box .background {
13
+ .upload_box .background,
14
+ .btn_options .btn_option {
13
15
  transition: var(--transition);
14
16
  transition-property: background-color;
15
17
  }
16
18
 
17
- .btn:not(.reload_ui, .link_btn) {
19
+ .btn:not(.reload_ui, .link_btn), {
18
20
  transition: var(--transition);
19
21
  transition-property: opacity, background-color;
20
22
  }
@@ -23,6 +25,22 @@
23
25
  .link_btn {
24
26
  transition: var(--transition);
25
27
  transition-property: color;
28
+
29
+ &:active {
30
+ transition: none;
31
+ }
32
+ }
33
+
34
+ .btn.icon_btn,
35
+ .link.svg {
36
+ svg {
37
+ transition: var(--transition);
38
+ transition-property: fill;
39
+
40
+ &:active {
41
+ transition: none;
42
+ }
43
+ }
26
44
  }
27
45
 
28
46
  .color_picker_w input {
@@ -1,67 +1,81 @@
1
- $upload_box_text_z_index: 2;
2
- $upload_box_loading_animation_size: 40px;
3
-
4
- $backgrond_margin: 2px;
5
- $backgrond_dim_offset: 2px * 2;
6
-
7
- .input_item {
8
- .upload_box {
9
- @include border_transparent;
10
-
11
- position: relative;
12
- height: 104px;
13
- text-align: center;
14
- outline-width: 3px;
15
- outline-style: dashed;
16
- outline-offset: -3px;
17
-
18
- .what_to_do_msg {
19
- @include center_translate;
20
-
21
- position: absolute;
22
- padding-right: $gap;
23
- padding-left: $gap;
24
- z-index: $upload_box_text_z_index;
25
- width: 100%;
26
- box-sizing: border-box;
27
- }
28
-
29
- .browse {
30
- display: inline;
31
- font-size: $font_main;
32
- opacity: 1 !important; // needed to keep default color when element is is_enabled
33
- }
34
-
35
- .status_msg {
36
- width: 100%;
37
- font-size: $font_small;
38
- margin-bottom: 5px;
39
- z-index: $upload_box_text_z_index;
40
- }
41
-
42
- .background {
43
- position: absolute;
44
- width: calc(100% - #{$backgrond_dim_offset});
45
- height: calc(100% - #{$backgrond_dim_offset});
46
- display: flex;
47
- align-items: end;
48
- box-sizing: border-box;
49
- margin: $backgrond_margin;
50
-
51
- &.loading {
52
- animation: move 450ms linear infinite;
53
- background-size: $upload_box_loading_animation_size $upload_box_loading_animation_size;
54
- }
55
- }
56
- }
57
- }
58
-
59
- @keyframes move {
60
- 0% {
61
- background-position: 0 0;
62
- }
63
-
64
- 100% {
65
- background-position: 40px 0;
66
- }
67
- }
1
+ $upload_box_text_z_index: 2;
2
+ $upload_box_loading_animation_size: 40px;
3
+
4
+ $backgrond_margin: 2px;
5
+ $backgrond_dim_offset: 2px * 2;
6
+
7
+ $status_msg_offset: 5px;
8
+
9
+ .input_item {
10
+ .upload_box {
11
+ @include border_transparent;
12
+
13
+ position: relative;
14
+ height: 104px;
15
+ text-align: center;
16
+ outline-width: 3px;
17
+ outline-style: dashed;
18
+ outline-offset: -3px;
19
+
20
+ .what_to_do_msg {
21
+ @include center_translate;
22
+
23
+ position: absolute;
24
+ padding-right: $gap;
25
+ padding-left: $gap;
26
+ z-index: $upload_box_text_z_index;
27
+ width: 100%;
28
+ box-sizing: border-box;
29
+ }
30
+
31
+ .browse {
32
+ display: inline;
33
+ font-size: $font_main;
34
+ opacity: 1 !important; // needed to keep default color when element is is_enabled
35
+ }
36
+
37
+ .status_msg {
38
+ position: absolute;
39
+ width: 100%;
40
+ font-size: $font_small;
41
+ margin-bottom: $status_msg_offset;
42
+ z-index: $upload_box_text_z_index;
43
+
44
+ &.filenames {
45
+ align-self: start;
46
+ text-overflow: ellipsis;
47
+ white-space: nowrap;
48
+ overflow: hidden;
49
+ margin-top: $status_msg_offset;
50
+ width: calc(100% - $status_msg_offset * 2);
51
+ padding-left: $status_msg_offset;
52
+ cursor: help;
53
+ }
54
+ }
55
+
56
+ .background {
57
+ position: absolute;
58
+ width: calc(100% - #{$backgrond_dim_offset});
59
+ height: calc(100% - #{$backgrond_dim_offset});
60
+ display: flex;
61
+ align-items: end;
62
+ box-sizing: border-box;
63
+ margin: $backgrond_margin;
64
+
65
+ &.loading {
66
+ animation: move 450ms linear infinite;
67
+ background-size: $upload_box_loading_animation_size $upload_box_loading_animation_size;
68
+ }
69
+ }
70
+ }
71
+ }
72
+
73
+ @keyframes move {
74
+ 0% {
75
+ background-position: 0 0;
76
+ }
77
+
78
+ 100% {
79
+ background-position: 40px 0;
80
+ }
81
+ }
@@ -4,16 +4,23 @@ $font_small: 13px;
4
4
  $gap: 10px;
5
5
  $gap_small: 4px;
6
6
  $border_width: 1px;
7
- $outline_offset: 2px;
8
7
  $input_height: 28px;
9
- $color_input_height: $input_height + ($border_width * 4);
8
+ $color_input_height: $input_height + ($border_width * 4) - 2;
10
9
  $input_content_gap: 8px;
11
10
  $input_inner_padding: 7px;
12
11
  $input_content_gap_2: $input_content_gap - ($border_width * 2);
13
12
  $main_margin: 16px;
13
+ $ext_name_offset: 7px;
14
+ $error_msg_offset_top: 40px;
14
15
  $main_margin_2: $main_margin * 2;
15
16
  $main_margin_4: $main_margin * 4;
16
17
  $black: #212121;
17
18
  $yellow: #fbff75;
18
19
  $light_orange: #fff7c7;
19
20
  $blue: #3892ff;
21
+ $black_shadow: rgb(0 0 0 / 30%) 0 0 30px, rgb(0 0 0 / 30%) 0 4px 8px;
22
+ $black_shadow_2: 0 20px 30px rgb(0 0 0 / 20%);
23
+ $blue_neon_dark: rgb(0 115 255 / 100%) 0 0 33px, rgb(255 255 255 / 40%) 0 0 10px;
24
+ $blue_neon_very_dark: rgb(0 102 255 / 85%) 0 0 36px, rgb(255 255 255 / 40%) 0 0 10px;
25
+ $glass_color: rgb(255 255 255 / 20%);
26
+ $glass_blur: blur(8px);
package/settings.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  import "./ts/shared/internal";
2
- export { c_settings, o_schema, d_settings, d_optional_permissions, d_schema, s_settings, i_optional_permissions, } from "./ts/settings/internal";
2
+ export { c_settings, d_settings, d_optional_permissions, s_settings, i_optional_permissions, } from "./ts/settings/internal";
package/settings.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var main=require("./chunk-main-536b8e4c.js");require("react");var main$1=require("./chunk-main-4661c4ad.js");require("react-dom");var index$6=Object.freeze({__proto__:null,Body:main.Body$2});var index$5=Object.freeze({__proto__:null,TransformItem:class{constructor(obj){this.create_property_if_it_doesnt_exist=!0,Object.assign(this,obj),this.old_key=obj.old_key,this.new_key=obj.new_key,this.new_val=obj.new_val}}}),index$4=Object.freeze({__proto__:null,BackUp:main.BackUp,Sections:main.Sections});var index$3=Object.freeze({__proto__:null,Main:class{constructor(){this.set_permission=({name:name,optional_permission_checkbox_dict:optional_permission_checkbox_dict})=>err_async((()=>main.__awaiter(this,void 0,void 0,(function*(){const permissions=optional_permission_checkbox_dict[name];if(yield we.permissions.contains(permissions)){(yield we.permissions.remove(permissions))&&this.set_checkbox_val({name:name,val:!1})}else{(yield we.permissions.request(permissions))&&this.set_checkbox_val({name:name,val:!0})}}))),"shr_1221"),this.set_checkbox_val=({name:name,val:val})=>err((()=>{data.ui[name]=val}),"shr_1222"),main.makeObservable(this,{set_checkbox_val:main.action})}static i(){return this.i0||(this.i0=new this)}}});var index$2=Object.freeze({__proto__:null,Main:class{constructor(){this.transform=({settings:settings,transform_items:transform_items})=>err_async((()=>main.__awaiter(this,void 0,void 0,(function*(){const properties_to_remove=[];return transform_items.forEach((transform_item=>err((()=>{n(transform_item.new_key)&&!n(settings[transform_item.new_key])&&(transform_item.create_property_if_it_doesnt_exist||!transform_item.create_property_if_it_doesnt_exist&&n(transform_item.old_key)&&n(settings[transform_item.old_key]))&&(n(transform_item.new_val)?settings[transform_item.new_key]=transform_item.new_val:n(transform_item.old_key)&&(settings[transform_item.new_key]=settings[transform_item.old_key])),n(transform_item.old_key)&&!properties_to_remove.includes(transform_item.old_key)&&properties_to_remove.push(transform_item.old_key)}),"shr_1227"))),properties_to_remove.forEach((property_to_remove=>err((()=>{delete settings[property_to_remove]}),"shr_1228"))),yield ext.storage_remove(properties_to_remove),settings}))),"shr_1226"),main.makeObservable(this,{transform:main.action})}static i(){return this.i0||(this.i0=new this)}}});var index$1=Object.freeze({__proto__:null,Theme:class{constructor(){this.change=({input:input,name:name,additional_theme_callback:additional_theme_callback})=>err((()=>{"options_page_theme"===input.name&&main$1.Main$1.i().set({name:name,additional_theme_callback:additional_theme_callback})}),"shr_1088")}static i(){return this.i0||(this.i0=new this)}}}),index=Object.freeze({__proto__:null});exports.c_settings=index$6,exports.d_optional_permissions=index$3,exports.d_schema=index$2,exports.d_settings=index$4,exports.i_optional_permissions=index,exports.o_schema=index$5,exports.s_settings=index$1;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var main=require("./chunk-main-f5f33db9.js");require("react");var main$1=require("./chunk-main-d37cdd45.js");require("react-dom");var index$4=Object.freeze({__proto__:null,Body:main.Body$2}),index$3=Object.freeze({__proto__:null,BackUp:main.BackUp,Sections:main.Sections});var index$2=Object.freeze({__proto__:null,Main:class{constructor(){this.set_permission=({name:name,optional_permission_checkbox_dict:optional_permission_checkbox_dict})=>err_async((()=>main.__awaiter(this,void 0,void 0,(function*(){const permissions=optional_permission_checkbox_dict[name];if(yield we.permissions.contains(permissions)){(yield we.permissions.remove(permissions))&&this.set_checkbox_val({name:name,val:!1})}else{(yield we.permissions.request(permissions))&&this.set_checkbox_val({name:name,val:!0})}}))),"shr_1221"),this.set_checkbox_val=({name:name,val:val})=>err((()=>{data.ui[name]=val}),"shr_1222"),main.makeObservable(this,{set_checkbox_val:main.action})}static i(){return this.i0||(this.i0=new this)}}});var index$1=Object.freeze({__proto__:null,Theme:class{constructor(){this.change=({input:input,name:name,additional_theme_callback:additional_theme_callback})=>err((()=>{"options_page_theme"===input.name&&main$1.Main$1.i().set({name:name,additional_theme_callback:additional_theme_callback})}),"shr_1088")}static i(){return this.i0||(this.i0=new this)}}}),index=Object.freeze({__proto__:null});exports.c_settings=index$4,exports.d_optional_permissions=index$2,exports.d_settings=index$3,exports.i_optional_permissions=index,exports.s_settings=index$1;
@@ -5,6 +5,6 @@ export declare class Main {
5
5
  private constructor();
6
6
  hide_delay: number;
7
7
  private highlight_time;
8
- show_error: (error_obj: i_error.ErrorObj | undefined, error_code: string | undefined, { error_msg_key, silent, persistent, exit, hide_delay, is_notification, notification_msg_key, }?: i_error.ShowError) => void;
8
+ show_error: (error_obj: i_error.ErrorObj | undefined, error_code: string | undefined, { error_msg_key, notification_type, hide_delay, silent, persistent, exit, }?: i_error.ShowError) => void;
9
9
  output_error: (error_obj: i_error.ErrorObj, error_code: string) => void;
10
10
  }
@@ -5,10 +5,8 @@ export declare class Msg {
5
5
  private advanced_msg_is_visible;
6
6
  basic_msg: string;
7
7
  advanced_msg: string;
8
- notification_msg_key: string;
9
8
  get advanced_msg_is_visible_cls(): string;
10
9
  get more_info_btn_is_visible_cls(): string;
11
- get main_msg(): string;
12
10
  change_visibility_of_advanced_msg: ({ is_visible }: {
13
11
  is_visible: boolean;
14
12
  }) => void;
@@ -6,10 +6,9 @@ export declare class State {
6
6
  private is_loaded;
7
7
  private is_visible;
8
8
  private is_highlighted;
9
- is_notification: boolean;
9
+ notification_type: i_error.NotificationType;
10
10
  get is_visible_style(): string;
11
11
  get is_highlighted_cls(): string;
12
- get is_notification_cls(): string;
13
12
  private is_visible_timeout;
14
13
  private is_highlighted_timeout;
15
14
  change_state: ({ observable_key, state, }: {
@@ -1,5 +1,6 @@
1
1
  export * from "./error_obj";
2
2
  export * from "./error";
3
+ export * from "./notification_type";
3
4
  export * from "./observable_keys";
4
5
  export * from "./show_error";
5
6
  export * from "./timeout_observable_keys";
@@ -0,0 +1 @@
1
+ export declare type NotificationType = 'error' | 'positive' | 'negative' | 'neutral';
@@ -1 +1 @@
1
- export declare type ObservableKeys = 'is_loaded' | 'is_visible' | 'is_highlighted' | 'is_notification';
1
+ export declare type ObservableKeys = 'is_loaded' | 'is_visible' | 'is_highlighted';