pxt-core 7.4.11 → 7.4.12

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 (37) hide show
  1. package/built/cli.js +94 -83
  2. package/built/pxt.js +95 -84
  3. package/built/pxtlib.js +1 -1
  4. package/built/target.js +1 -1
  5. package/built/web/main.js +1 -1
  6. package/built/web/pxtapp.js +1 -1
  7. package/built/web/pxtasseteditor.js +1 -1
  8. package/built/web/pxtembed.js +1 -1
  9. package/built/web/pxtlib.js +1 -1
  10. package/built/web/pxtworker.js +1 -1
  11. package/built/web/react-common-skillmap.css +1 -0
  12. package/built/web/rtlreact-common-skillmap.css +1 -0
  13. package/built/web/rtlsemantic.css +1 -1
  14. package/built/web/semantic.css +1 -1
  15. package/built/web/skillmap/js/{main.55881627.chunk.js → main.b96caef3.chunk.js} +1 -1
  16. package/package.json +3 -2
  17. package/react-common/components/Checkbox.tsx +25 -0
  18. package/react-common/components/Notification.tsx +82 -0
  19. package/react-common/components/profile/Badge.tsx +33 -0
  20. package/react-common/components/profile/BadgeInfo.tsx +74 -0
  21. package/react-common/components/profile/BadgeList.tsx +67 -0
  22. package/react-common/components/profile/Profile.tsx +42 -0
  23. package/react-common/components/profile/UserNotification.tsx +32 -0
  24. package/react-common/components/profile/UserPane.tsx +64 -0
  25. package/react-common/components/types.d.ts +29 -0
  26. package/react-common/components/util.tsx +35 -0
  27. package/{built/web/react-common.css → react-common/styles/profile/profile.less} +1 -0
  28. package/react-common/styles/react-common-skillmap-core.less +10 -0
  29. package/react-common/styles/react-common-skillmap.less +12 -0
  30. package/react-common/styles/react-common.less +1 -0
  31. package/react-common/tsconfig.json +36 -0
  32. package/theme/common-components.less +7 -0
  33. package/theme/common.less +1 -1
  34. package/theme/highcontrast.less +4 -0
  35. package/theme/pxt.less +2 -0
  36. package/theme/tutorial-sidebar.less +64 -6
  37. package/webapp/public/skillmap.html +2 -2
@@ -0,0 +1 @@
1
+ .user-profile{display:flex;flex-direction:row;height:100%;--header-text-color:#000;--profile-portrait-border-color:#fff;--profile-username-color:#999;--background-color:#fef3e0;--avatar-initials-background-color:#028b9b;--avatar-initials-text-color:#fff;--user-pane-border-color:#e4dbca;--notification-background-color:#fff;--notification-icon-background-color:#fff;--notification-icon-color:#000;--badge-list-subtitle-color:#aba9a5;--body-font-family:"Share Tech Mono",Monaco,Menlo,"Ubuntu Mono",Consolas,source-code-pro,monospace}.profile-user-pane{display:flex;flex-direction:column;width:25%;padding:1rem;border-right:1px solid var(--user-pane-border-color);height:100%;min-width:20rem}.profile-portrait{border-radius:50%;overflow:hidden;height:12rem;width:12rem;position:relative;border:2px solid var(--profile-portrait-border-color);align-self:center;margin-bottom:1.5rem}.profile-portrait img{width:110%;height:110%;position:absolute;left:-5%;top:-5%}.profile-user-details{text-align:center;margin-bottom:3rem}.profile-display-name{font-size:1.5rem;color:var(--header-text-color);text-transform:uppercase;font-weight:900;margin-bottom:.5rem}.profile-username{font-size:1rem;color:var(--profile-username-color)}.profile-spacer{flex-grow:1}.profile-email{display:flex;padding-bottom:1rem}.profile-email .checkbox{cursor:pointer;padding-right:1rem}.profile-actions{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.profile-actions a{flex-grow:1;font-size:14px}.profile-actions .ui.button{width:50%}.profile-actions .ui.button i.icon{margin-right:1.5rem!important}.profile-notification{width:100%;border:1px solid #000;position:relative;border-radius:1rem;padding:2rem 1rem 1rem;background:var(--notification-background-color);display:flex;flex-direction:column}.profile-notification .profile-notification-title{font-weight:900;text-align:center;margin-bottom:1rem}.profile-notification .profile-notification-message{margin-bottom:1rem}.profile-notification .profile-notification-icon{width:3.25rem;height:3.25rem;border:1px solid #000;border-radius:50%;position:absolute;top:-1.625rem;left:calc(50% - 1.625rem);color:var(--notification-icon-color);background:var(--notification-icon-background-color)}.profile-notification .profile-notification-icon i.circular.icon{box-shadow:none}.profile-badge-subtitle{font-style:italic;color:var(--badge-list-subtitle-color)}.profile-badge-list{flex-grow:1;height:100%;display:flex;flex-direction:column;padding:1rem}.profile-badges-scroller{flex-grow:1;overflow-y:auto;overflow-x:hidden;position:relative;z-index:1}.profile-badges,.profile-badges-background{background-repeat:repeat;min-height:100%;background-size:20%;display:grid;grid-template-columns:repeat(5,1fr);grid-auto-rows:12rem;align-items:center}.profile-badges-background{z-index:-1}.profile-badges-background .profile-badge,.profile-badges .profile-badge{position:relative;aspect-ratio:1;background-color:var(--background-color)}.profile-badges-background .profile-badge img,.profile-badges .profile-badge img{height:100%;width:100%;display:inline;position:absolute;object-fit:contain}.profile-badge.disabled i.ui.icon{line-height:1;vertical-align:middle;font-size:4em;width:100%;z-index:1;position:absolute}.placeholder-badge{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Ccircle cx='5' cy='5' r='3' opacity='.1'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:50%;opacity:.3;aspect-ratio:1}.profile-badges-background-container{position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.profile-badge-title{text-transform:uppercase;font-weight:900;font-size:1.5rem;margin-right:1rem;color:var(--header-text-color)}.profile-badge-header{margin-left:1rem;margin-bottom:1rem}.profile-badge-info-item{margin-top:1rem;display:flex}.profile-badge-info-header{text-transform:uppercase;font-weight:900;width:20%;color:var(--header-text-color)}.profile-badge-info-image .profile-badge{text-align:center}.profile-badge-info-image .profile-badge img{display:inline;height:15rem;object-fit:contain}.profile-badge{display:flex;flex-direction:column;justify-content:center;align-content:center;position:relative;height:100%}.profile-badge.clickable{cursor:pointer}.profile-badge-and-title{display:flex;flex-direction:column;max-height:100%;height:100%;background-color:var(--background-color);z-index:2;overflow:hidden}.profile-badge-and-title .profile-badge{margin-bottom:1rem;flex-shrink:1000}.profile-badge-name{font-size:1rem;text-overflow:ellipsis;white-space:nowrap;width:100%;margin-right:0;text-align:center;color:var(--header-text-color);overflow:hidden}.profile-initials-portrait{font-size:8rem;text-align:center;display:flex;align-items:center;justify-content:center;height:100%;color:var(--avatar-initials-text-color);background-color:var(--avatar-initials-background-color)}.ui.icon.button.sign-out{font-family:var(--body-font-family)}@media only screen and (max-width:1200px) and (min-width:992px){.profile-badges,.profile-badges-background{background-size:25%;grid-template-columns:repeat(4,1fr);grid-auto-rows:12rem}}@media only screen and (max-width:991px){.profile-badges,.profile-badges-background{background-size:33%;grid-template-columns:repeat(3,1fr);grid-auto-rows:12rem}}
@@ -0,0 +1 @@
1
+ .user-profile{display:flex;flex-direction:row;height:100%;--header-text-color:#000;--profile-portrait-border-color:#fff;--profile-username-color:#999;--background-color:#fef3e0;--avatar-initials-background-color:#028b9b;--avatar-initials-text-color:#fff;--user-pane-border-color:#e4dbca;--notification-background-color:#fff;--notification-icon-background-color:#fff;--notification-icon-color:#000;--badge-list-subtitle-color:#aba9a5;--body-font-family:"Share Tech Mono",Monaco,Menlo,"Ubuntu Mono",Consolas,source-code-pro,monospace}.profile-user-pane{display:flex;flex-direction:column;width:25%;padding:1rem;border-left:1px solid var(--user-pane-border-color);height:100%;min-width:20rem}.profile-portrait{border-radius:50%;overflow:hidden;height:12rem;width:12rem;position:relative;border:2px solid var(--profile-portrait-border-color);align-self:center;margin-bottom:1.5rem}.profile-portrait img{width:110%;height:110%;position:absolute;right:-5%;top:-5%}.profile-user-details{text-align:center;margin-bottom:3rem}.profile-display-name{font-size:1.5rem;color:var(--header-text-color);text-transform:uppercase;font-weight:900;margin-bottom:.5rem}.profile-username{font-size:1rem;color:var(--profile-username-color)}.profile-spacer{flex-grow:1}.profile-email{display:flex;padding-bottom:1rem}.profile-email .checkbox{cursor:pointer;padding-left:1rem}.profile-actions{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.profile-actions a{flex-grow:1;font-size:14px}.profile-actions .ui.button{width:50%}.profile-actions .ui.button i.icon{margin-left:1.5rem!important}.profile-notification{width:100%;border:1px solid #000;position:relative;border-radius:1rem;padding:2rem 1rem 1rem;background:var(--notification-background-color);display:flex;flex-direction:column}.profile-notification .profile-notification-title{font-weight:900;text-align:center;margin-bottom:1rem}.profile-notification .profile-notification-message{margin-bottom:1rem}.profile-notification .profile-notification-icon{width:3.25rem;height:3.25rem;border:1px solid #000;border-radius:50%;position:absolute;top:-1.625rem;right:calc(50% - 1.625rem);color:var(--notification-icon-color);background:var(--notification-icon-background-color)}.profile-notification .profile-notification-icon i.circular.icon{box-shadow:none}.profile-badge-subtitle{font-style:italic;color:var(--badge-list-subtitle-color)}.profile-badge-list{flex-grow:1;height:100%;display:flex;flex-direction:column;padding:1rem}.profile-badges-scroller{flex-grow:1;overflow-y:auto;overflow-x:hidden;position:relative;z-index:1}.profile-badges,.profile-badges-background{background-repeat:repeat;min-height:100%;background-size:20%;display:grid;grid-template-columns:repeat(5,1fr);grid-auto-rows:12rem;align-items:center}.profile-badges-background{z-index:-1}.profile-badges-background .profile-badge,.profile-badges .profile-badge{position:relative;aspect-ratio:1;background-color:var(--background-color)}.profile-badges-background .profile-badge img,.profile-badges .profile-badge img{height:100%;width:100%;display:inline;position:absolute;object-fit:contain}.profile-badge.disabled i.ui.icon{line-height:1;vertical-align:middle;font-size:4em;width:100%;z-index:1;position:absolute}.placeholder-badge{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Ccircle cx='5' cy='5' r='3' opacity='.1'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:50%;opacity:.3;aspect-ratio:1}.profile-badges-background-container{position:absolute;top:0;right:0;height:100%;width:100%;overflow:hidden}.profile-badge-title{text-transform:uppercase;font-weight:900;font-size:1.5rem;margin-left:1rem;color:var(--header-text-color)}.profile-badge-header{margin-right:1rem;margin-bottom:1rem}.profile-badge-info-item{margin-top:1rem;display:flex}.profile-badge-info-header{text-transform:uppercase;font-weight:900;width:20%;color:var(--header-text-color)}.profile-badge-info-image .profile-badge{text-align:center}.profile-badge-info-image .profile-badge img{display:inline;height:15rem;object-fit:contain}.profile-badge{display:flex;flex-direction:column;justify-content:center;align-content:center;position:relative;height:100%}.profile-badge.clickable{cursor:pointer}.profile-badge-and-title{display:flex;flex-direction:column;max-height:100%;height:100%;background-color:var(--background-color);z-index:2;overflow:hidden}.profile-badge-and-title .profile-badge{margin-bottom:1rem;flex-shrink:1000}.profile-badge-name{font-size:1rem;text-overflow:ellipsis;white-space:nowrap;width:100%;margin-left:0;text-align:center;color:var(--header-text-color);overflow:hidden}.profile-initials-portrait{font-size:8rem;text-align:center;display:flex;align-items:center;justify-content:center;height:100%;color:var(--avatar-initials-text-color);background-color:var(--avatar-initials-background-color)}.ui.icon.button.sign-out{font-family:var(--body-font-family)}@media only screen and (max-width:1200px) and (min-width:992px){.profile-badges,.profile-badges-background{background-size:25%;grid-template-columns:repeat(4,1fr);grid-auto-rows:12rem}}@media only screen and (max-width:991px){.profile-badges,.profile-badges-background{background-size:33%;grid-template-columns:repeat(3,1fr);grid-auto-rows:12rem}}