verdaccio-theme-feui
Version:
note npmjs
2 lines • 11.3 kB
JavaScript
/*! For license information please see Dist.40ff9295fe14b1a88f53.js.LICENSE.txt */
(self.webpackChunkverdaccio_theme_feui=self.webpackChunkverdaccio_theme_feui||[]).push([[534],{69354:(e,t,a)=>{"use strict";a.d(t,{Z:()=>C});var o=a(22122),r=a(86905),l=a(59074),i=a(67294),n=(a(45697),a(86010));const c=(0,a(63786).Z)(i.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");var d=a(14670),s=a(59693),u=a(17294),p=a(93871),m=a(40068);function b(e){return"Backspace"===e.key||"Delete"===e.key}var f=i.forwardRef((function(e,t){var a=e.avatar,o=e.classes,d=e.className,s=e.clickable,f=e.color,g=void 0===f?"default":f,y=e.component,h=e.deleteIcon,v=e.disabled,C=void 0!==v&&v,k=e.icon,L=e.label,S=e.onClick,x=e.onDelete,D=e.onKeyDown,H=e.onKeyUp,G=e.size,U=void 0===G?"medium":G,Z=e.variant,w=void 0===Z?"default":Z,E=(0,l.Z)(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),$=i.useRef(null),T=(0,u.Z)($,t),I=function(e){e.stopPropagation(),x&&x(e)},z=!(!1===s||!S)||s,R="small"===U,M=y||(z?m.Z:"div"),P=M===m.Z?{component:"div"}:{},j=null;if(x){var N=(0,n.default)("default"!==g&&("default"===w?o["deleteIconColor".concat((0,p.Z)(g))]:o["deleteIconOutlinedColor".concat((0,p.Z)(g))]),R&&o.deleteIconSmall);j=h&&i.isValidElement(h)?i.cloneElement(h,{className:(0,n.default)(h.props.className,o.deleteIcon,N),onClick:I}):i.createElement(c,{className:(0,n.default)(o.deleteIcon,N),onClick:I})}var V=null;a&&i.isValidElement(a)&&(V=i.cloneElement(a,{className:(0,n.default)(o.avatar,a.props.className,R&&o.avatarSmall,"default"!==g&&o["avatarColor".concat((0,p.Z)(g))])}));var _=null;return k&&i.isValidElement(k)&&(_=i.cloneElement(k,{className:(0,n.default)(o.icon,k.props.className,R&&o.iconSmall,"default"!==g&&o["iconColor".concat((0,p.Z)(g))])})),i.createElement(M,(0,r.Z)({role:z||x?"button":void 0,className:(0,n.default)(o.root,d,"default"!==g&&[o["color".concat((0,p.Z)(g))],z&&o["clickableColor".concat((0,p.Z)(g))],x&&o["deletableColor".concat((0,p.Z)(g))]],"default"!==w&&[o.outlined,{primary:o.outlinedPrimary,secondary:o.outlinedSecondary}[g]],C&&o.disabled,R&&o.sizeSmall,z&&o.clickable,x&&o.deletable),"aria-disabled":!!C||void 0,tabIndex:z||x?0:void 0,onClick:S,onKeyDown:function(e){e.currentTarget===e.target&&b(e)&&e.preventDefault(),D&&D(e)},onKeyUp:function(e){e.currentTarget===e.target&&(x&&b(e)?x(e):"Escape"===e.key&&$.current&&$.current.blur()),H&&H(e)},ref:T},P,E),V||_,i.createElement("span",{className:(0,n.default)(o.label,R&&o.labelSmall)},L),j)}));const g=(0,d.Z)((function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],a=(0,s.U1)(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:(0,s._4)(t,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:(0,s._4)(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:(0,s._4)(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:(0,s._4)(t,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:(0,s._4)(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:(0,s._4)(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,s.U1)(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,s.U1)(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,s.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:a,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:(0,s.U1)(a,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:(0,s.U1)(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:(0,s.U1)(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:(0,s.U1)(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:(0,s.U1)(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}}),{name:"MuiChip"})(f);var y;e=a.hmd(e),(y="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&y(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var h=(0,i.forwardRef)((function(e,t){return i.createElement(g,(0,o.Z)({},e,{innerRef:t}))})),v=h;const C=v;var k,L;(k="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(k.register(h,"Chip","/Users/jump/DoubleU/ui/src/components/Chip.tsx"),k.register(v,"default","/Users/jump/DoubleU/ui/src/components/Chip.tsx")),(L="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&L(e)},94348:(e,t,a)=>{"use strict";a.d(t,{Z:()=>f});var o,r=a(67294),l=a(26793),i=a(99087),n=a(89338),c=a(62927),d=a(29518),s=a(73537);e=a.hmd(e),(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&o(e);var u="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e},p=function(e){var t=e.name,a=e.children;return a?r.createElement(s.hf,{label:r.createElement(r.Fragment,null,r.createElement("b",null,t),": ",a)}):null},m=function(){var e=(0,r.useContext)(d.CK).packageMeta,t=(0,l.$)().t;if(!e)return null;var a=e&&e.latest,o=a.dist,u=a.license;return r.createElement(i.Z,{subheader:r.createElement(s.qY,{variant:"subtitle1"},t("sidebar.distribution.title"))},r.createElement(s.Zf,{button:!1},r.createElement(p,{name:t("sidebar.distribution.file-count")},o.fileCount),r.createElement(p,{name:t("sidebar.distribution.size")},o.unpackedSize&&(0,n.Z)(o.unpackedSize)),r.createElement(p,{name:t("sidebar.distribution.license")},(0,c.SK)(u))))};u(m,"useContext{{ packageMeta }}\nuseTranslation{{ t }}",(function(){return[l.$]}));var b=m;const f=b;var g,y;(g="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(g.register(p,"DistChip","/Users/jump/DoubleU/ui/src/pages/Version/DetailSidebar/Dist/Dist.tsx"),g.register(m,"Dist","/Users/jump/DoubleU/ui/src/pages/Version/DetailSidebar/Dist/Dist.tsx"),g.register(b,"default","/Users/jump/DoubleU/ui/src/pages/Version/DetailSidebar/Dist/Dist.tsx")),(y="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&y(e)},57650:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>o.Z});var o=a(94348);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},73537:(e,t,a)=>{"use strict";a.d(t,{qY:()=>u,Zf:()=>p,hf:()=>m});var o,r=a(94809),l=a(69354),i=a(73423),n=a(33494),c=a(63873);e=a.hmd(e),(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&o(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var d,s,u=(0,r.Z)(c.Z,{target:"e1ie5xlh0",label:"StyledText"})((function(e){return{fontWeight:e.theme&&e.theme.fontWeight.bold,textTransform:"capitalize"}}),""),p=(0,r.Z)(n.Z,{target:"e1ie5xlh1",label:"DistListItem"})({name:"173lbto",styles:"padding-left:0;overflow-x:auto;padding-right:0;"}),m=(0,r.Z)(l.Z,{target:"e1ie5xlh2",label:"DistChips"})({name:"42zb18",styles:"margin-right:5px;text-transform:capitalize;"}),b=(0,r.Z)(i.Z,{target:"e1ie5xlh3",label:"DownloadButton"})((function(e){return{backgroundColor:e.theme&&e.theme.palette.primary.main,color:e.theme&&e.theme.palette.white}}),"");(d="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(d.register(u,"StyledText","/Users/jump/DoubleU/ui/src/pages/Version/DetailSidebar/Dist/styles.ts"),d.register(p,"DistListItem","/Users/jump/DoubleU/ui/src/pages/Version/DetailSidebar/Dist/styles.ts"),d.register(m,"DistChips","/Users/jump/DoubleU/ui/src/pages/Version/DetailSidebar/Dist/styles.ts"),d.register(b,"DownloadButton","/Users/jump/DoubleU/ui/src/pages/Version/DetailSidebar/Dist/styles.ts")),(s="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&s(e)},89338:(e,t,a)=>{"use strict";var o;a.d(t,{Z:()=>i}),e=a.hmd(e),(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&o(e);var r,l;"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;function i(e,t,a,o,r){return(t=Math,a=t.log,1e3,r=a(e)/a(1e3)|0,e/t.pow(1e3,r)).toFixed(2)+" "+(r?"kMGTPEZY"[--r]+"B":"Bytes")}(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&r.register(i,"fileSizeSI","/Users/jump/DoubleU/ui/src/utils/file-size.ts"),(l="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&l(e)}}]);