pxt-core 7.5.34 → 7.5.35

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxt-core",
3
- "version": "7.5.34",
3
+ "version": "7.5.35",
4
4
  "description": "Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors",
5
5
  "keywords": [
6
6
  "TypeScript",
@@ -101,7 +101,7 @@ export const Input = (props: InputProps) => {
101
101
  aria-hidden={ariaHidden}
102
102
  type={type || "text"}
103
103
  placeholder={placeholder}
104
- value={value || initialValue || ""}
104
+ value={value !== undefined ? value : (initialValue || "")}
105
105
  readOnly={!!readOnly}
106
106
  onClick={clickHandler}
107
107
  onChange={changeHandler}
@@ -81,10 +81,11 @@ export const Modal = (props: ModalProps) => {
81
81
  {fullscreen && helpUrl &&
82
82
  <div className="common-modal-help">
83
83
  <Button
84
- className={"menu-button"}
84
+ className="menu-button"
85
85
  title={lf("Help on {0} dialog", title)}
86
- onClick={() => { window.open(props.helpUrl, "_blank") }}
87
- rightIcon={"icon help"}
86
+ href={props.helpUrl}
87
+ onClick={() => {}}
88
+ rightIcon="fas fa-question"
88
89
  />
89
90
  </div>
90
91
  }
@@ -16,6 +16,7 @@
16
16
  font-weight: 400;
17
17
  line-height: 1em;
18
18
  font-style: normal;
19
+ font-size: 16px;
19
20
  text-align: center;
20
21
  text-decoration: none;
21
22
  border-radius: 0.2em;
@@ -10,6 +10,7 @@
10
10
  border-radius: 2px;
11
11
  border: 1px solid @inputBorderColor;
12
12
  background: @inputBackgroundColor;
13
+ font-size: 16px;
13
14
  }
14
15
 
15
16
  .common-input-group:focus::after,
package/theme/common.less CHANGED
@@ -908,7 +908,7 @@ Field editors
908
908
  .fullscreen.extensions-browser > {
909
909
  .common-modal > {
910
910
  .common-modal-header {
911
- height: 3rem;
911
+ height: @mainMenuHeight;
912
912
  background-color: @blue;
913
913
  z-index: 202;
914
914
  display: flex;
@@ -937,6 +937,13 @@ Field editors
937
937
  }
938
938
  }
939
939
  }
940
+
941
+ @media @tabletAndBelow {
942
+ .fullscreen.extensions-browser > .common-modal > .common-modal-header {
943
+ height: @mobileMenuHeight;
944
+ }
945
+ }
946
+
940
947
  @media @mobileAndBelow {
941
948
  .extensions-browser {
942
949
  .common-modal > .common-modal-header > .common-modal-back {
@@ -959,17 +966,32 @@ Field editors
959
966
  display: flex;
960
967
  justify-content: center;
961
968
  flex-wrap: wrap;
962
- gap: 1.5rem;
969
+ gap: 1rem;
970
+ padding-top: 2rem;
971
+ padding-bottom: 2rem;
963
972
  background-color: #E5E5E5;
964
- padding-top: 1rem;
965
973
 
966
- .search {
967
- width: 100%;
968
- display: flex;
969
- justify-content: center;
974
+ .common-input-wrapper {
975
+ width: 70%;
976
+
977
+ .common-input-group {
978
+ height: 3rem;
979
+ border-radius: 500rem;
980
+ padding: 0.7rem 1rem;
970
981
 
971
- .input {
972
- width: 70%;
982
+ & > i.fas.fa-search {
983
+ position: relative;
984
+ margin-top: 0.1rem;
985
+ right: 0;
986
+ bottom: 0;
987
+
988
+ opacity: .5;
989
+ transition: opacity 0.3s ease;
990
+ }
991
+ }
992
+
993
+ &:focus-within .common-input-group > i.fas.fa-search {
994
+ opacity: 1;
973
995
  }
974
996
  }
975
997
  }
@@ -1025,9 +1047,7 @@ Field editors
1025
1047
 
1026
1048
  .extension-tags {
1027
1049
  display: flex;
1028
- padding: 2rem;
1029
- column-gap: 2rem;
1030
- row-gap: 1rem;
1050
+ gap: 1rem;
1031
1051
  width: 80%;
1032
1052
  justify-content: center;
1033
1053
  flex-wrap: wrap;
@@ -1061,9 +1081,13 @@ Field editors
1061
1081
  .tab-header {
1062
1082
  width: 100%;
1063
1083
 
1084
+ .common-button {
1085
+ border: 2px solid @white;
1086
+ }
1087
+
1064
1088
  .common-button.selected {
1065
- font-weight: bold;
1066
- border-bottom: 0.3rem solid @blue;
1089
+ border-bottom: 2px solid @blue;
1090
+ font-weight: 600;
1067
1091
  }
1068
1092
  }
1069
1093
 
@@ -28,5 +28,5 @@
28
28
  <!-- end usabilla live embed code -->
29
29
 
30
30
  <!-- @include thin-footer.html -->
31
- <script>!function(e){function r(r){for(var n,l,i=r[0],a=r[1],p=r[2],c=0,s=[];c<i.length;c++)l=i[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(f&&f(r);s.length;)s.shift()();return u.push.apply(u,p||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var a=t[i];0!==o[a]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={1:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var i=this.webpackJsonpskillsmap=this.webpackJsonpskillsmap||[],a=i.push.bind(i);i.push=r,i=i.slice();for(var p=0;p<i.length;p++)r(i[p]);var f=a;t()}([])</script><script src="/blb/skillmap/js/2.26b9a6f6.chunk.js"></script><script src="/blb/skillmap/js/main.d734c596.chunk.js"></script></body>
31
+ <script>!function(e){function r(r){for(var n,l,i=r[0],a=r[1],p=r[2],c=0,s=[];c<i.length;c++)l=i[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(f&&f(r);s.length;)s.shift()();return u.push.apply(u,p||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var a=t[i];0!==o[a]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={1:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var i=this.webpackJsonpskillsmap=this.webpackJsonpskillsmap||[],a=i.push.bind(i);i.push=r,i=i.slice();for(var p=0;p<i.length;p++)r(i[p]);var f=a;t()}([])</script><script src="/blb/skillmap/js/2.26b9a6f6.chunk.js"></script><script src="/blb/skillmap/js/main.9d7e815e.chunk.js"></script></body>
32
32
  </html>