Comparing version 1.3.5 to 1.3.6
@@ -1,1 +0,1 @@ | ||
var e,r=(e=require("ramda"))&&"object"==typeof e&&"default"in e?e.default:e,l={hex:"#ffffff",rgb:[255,255,255]},o={hex:"#000000",rgb:[0,0,0]},b={ATL:{fullName:"Atlanta Hawks",mainColor:{hex:"#c8102e",rgb:[200,16,46]},colors:{red:{hex:"#c8102e",rgb:[200,16,46]},green:{hex:"#c4d600",rgb:[196,214,0]},white:l,gray:{hex:"#25282a",rgb:[37,40,42]}}},BKN:{fullName:"Brooklyn Nets",mainColor:{hex:"#010101",rgb:[1,1,1]},colors:{black:{hex:"#010101",rgb:[1,1,1]},white:l}},BOS:{fullName:"Boston Celtics",mainColor:{hex:"#007a33",rgb:[0,122,51]},colors:{green:{hex:"#007a33",rgb:[0,122,51]},black:o,white:l,gold:{hex:"#ffd700",rgb:[255,215,0]},silver:{hex:"#c0c0c0",rgb:[192,192,192]}}},CHA:{fullName:"Charlotte Hornets",mainColor:{hex:"#201747",rgb:[32,23,71]},colors:{purple:{hex:"#201747",rgb:[32,23,71]},teal:{hex:"#00778b",rgb:[0,119,139]},white:l,gray:{hex:"#888b8d",rgb:[136,139,141]}}},CHI:{fullName:"Chicago Bulls",mainColor:{hex:"#ba0c2f",rgb:[186,12,47]},colors:{red:{hex:"#ba0c2f",rgb:[186,12,47]},black:o,white:l}},CLE:{fullName:"Cleveland Cavaliers",mainColor:{hex:"#6f263d",rgb:[111,38,61]},colors:{wine:{hex:"#6f263d",rgb:[111,38,61]},white:l,navy:{hex:"#041e42",rgb:[4,30,66]},gold:{hex:"#ffb81c",rgb:[255,184,28]}}},DAL:{fullName:"Dallas Mavericks",mainColor:{hex:"#0050b5",rgb:[0,80,181]},colors:{blue:{hex:"#0050b5",rgb:[0,80,181]},silver:{hex:"#8d9093",rgb:[141,144,147]},navy:{hex:"#0c2340",rgb:[12,35,64]},black:o,white:l}},DEN:{fullName:"Denver Nuggets",mainColor:{hex:"#418fde",rgb:[65,143,222]},colors:{blue:{hex:"#418fde",rgb:[65,143,222]},gold:{hex:"#ffc72c",rgb:[255,199,44]},navy:{hex:"#0c2340",rgb:[12,35,64]},white:l}},DET:{fullName:"Detroit Pistons",mainColor:{hex:"#003da5",rgb:[0,61,165]},colors:{blue:{hex:"#003da5",rgb:[0,61,165]},red:{hex:"#d50032",rgb:[213,0,50]},navy:{hex:"#041e42",rgb:[4,30,66]},white:l}},GSW:{fullName:"Golden State Warriors",mainColor:{hex:"#ffc72d",rgb:[255,199,44]},colors:{gold:{hex:"#ffc72d",rgb:[255,199,44]},blue:{hex:"#003da5",rgb:[0,61,165]}}},HOU:{fullName:"Houston Rockets",mainColor:{hex:"#ba0c2f",rgb:[186,12,47]},colors:{red:{hex:"#ba0c2f",rgb:[186,12,47]},silver:{hex:"#8d9093",rgb:[141,144,147]},yellow:{hex:"#fdb927",rgb:[253,185,39]},white:l,black:o}},IND:{fullName:"Indiana Pacers",mainColor:{hex:"#041e42",rgb:[4,30,66]},colors:{blue:{hex:"#041e42",rgb:[4,30,66]},gold:{hex:"#ffb81c",rgb:[255,184,28]},silver:{hex:"#b1b3b3",rgb:[177,179,179]},white:l}},LAC:{fullName:"Los Angeles Clippers",mainColor:{hex:"#d50032",rgb:[213,0,50]},colors:{red:{hex:"#d50032",rgb:[213,0,50]},blue:{hex:"#003da5",rgb:[0,61,165]},silver:{hex:"#b1b3b3",rgb:[177,179,179]},white:l}},LAL:{fullName:"Los Angeles Lakers",mainColor:{hex:"#702f8a",rgb:[112,47,138]},colors:{purple:{hex:"#702f8a",rgb:[112,47,138]},gold:{hex:"#ffc72c",rgb:[255,199,44]},white:l}},MEM:{fullName:"Memphis Grizzlies",mainColor:{hex:"#23375b",rgb:[35,55,91]},colors:{midnightBlue:{hex:"#23375b",rgb:[35,55,91]},bealeStreetBlue:{hex:"#6189b9",rgb:[97,137,185]},smokeBlue:{hex:"#bbd1e4",rgb:[187,209,228]},gold:{hex:"#ffd432",rgb:[255,215,50]}}},MIA:{fullName:"Miami Heat",mainColor:{hex:"#862633",rgb:[134,38,51]},colors:{red:{hex:"#862633",rgb:[134,38,51]},yellow:{hex:"#ffa300",rgb:[255,163,0]},white:l,black:o}},MIL:{fullName:"Milwaukee Bucks",mainColor:{hex:"#2c5234",rgb:[44,82,52]},colors:{green:{hex:"#2c5234",rgb:[44,82,52]},cream:{hex:"#ddcba4",rgb:[221,203,164]},blue:{hex:"#0057b8",rgb:[0,87,184]},white:l,black:o}},MIN:{fullName:"Minnesota Timberwolves",mainColor:{hex:"#002b5c",rgb:[0,42,92]},colors:{blue:{hex:"#002b5c",rgb:[0,42,92]},gray:{hex:"#c6cfd4",rgb:[198,208,215]},green:{hex:"#7ac143",rgb:[122,192,67]},white:l}},NOP:{fullName:"New Orleans Pelicans",mainColor:{hex:"#002b5c",rgb:[0,43,92]},colors:{blue:{hex:"#002b5c",rgb:[0,43,92]},gold:{hex:"#b4975a",rgb:[180,151,90]},red:{hex:"#e31937",rgb:[227,25,55]},white:l}},NYK:{fullName:"New York Knicks",mainColor:{hex:"#003da5",rgb:[0,61,165]},colors:{blue:{hex:"#003da5",rgb:[0,61,165]},orange:{hex:"#ff671f",rgb:[255,103,31]},silver:{hex:"#b1b3b3",rgb:[177,179,179]},white:l}},OKC:{fullName:"Oklahoma City Thunder",mainColor:{hex:"#007dc3",rgb:[0,125,195]},colors:{blue:{hex:"#007dc3",rgb:[0,125,195]},orange:{hex:"#f05133",rgb:[240,81,51]},yellow:{hex:"#fdbb30",rgb:[253,187,48]},darkBlue:{hex:"#002d62",rgb:[0,45,98]}}},ORL:{fullName:"Orlando Magic",mainColor:{hex:"#007dc5",rgb:[0,125,197]},colors:{blue:{hex:"#007dc5",rgb:[0,125,197]},silver:{hex:"#c4ced3",rgb:[196,206,211]},white:l,black:o}},PHI:{fullName:"Philadelphia 76ers",mainColor:{hex:"#006bb6",rgb:[0,102,182]},colors:{blue:{hex:"#006bb6",rgb:[0,102,182]},red:{hex:"#ed174c",rgb:[237,23,76]},white:l}},PHX:{fullName:"Phoenix Suns",mainColor:{hex:"#e56020",rgb:[229,96,32]},colors:{orange:{hex:"#e56020",rgb:[229,96,32]},purple:{hex:"#1d1160",rgb:[29,17,96]},gray:{hex:"#63717a",rgb:[99,113,122]},white:l,black:o}},POR:{fullName:"Portland Trailblazers",mainColor:{hex:"#f0163a",rgb:[240,22,58]},colors:{red:{hex:"#f0163a",rgb:[240,22,58]},silver:{hex:"#b6bfbf",rgb:[182,191,191]},white:l,black:o}},SAC:{fullName:"Sacramento Kings",mainColor:{hex:"#724c9f",rgb:[114,76,159]},colors:{purple:{hex:"#724c9f",rgb:[114,76,159]},silver:{hex:"#8e9090",rgb:[142,144,144]},white:l,black:o}},SAS:{fullName:"San Antonio Spurs",mainColor:{hex:"#b6bfbf",rgb:[182,191,191]},colors:{silver:{hex:"#b6bfbf",rgb:[182,191,191]},white:l,black:o}},TOR:{fullName:"Toronto Raptors",mainColor:{hex:"#ce1141",rgb:[206,17,65]},colors:{red:{hex:"#ce1141",rgb:[206,17,65]},silver:{hex:"#c4ced3",rgb:[196,206,211]},white:l,black:o}},UTA:{fullName:"Utah Jazz",mainColor:{hex:"#002b5c",rgb:[0,43,92]},colors:{navy:{hex:"#002b5c",rgb:[0,43,92]},yellow:{hex:"#f9a01b",rgb:[249,160,27]},green:{hex:"#00471b",rgb:[0,71,27]},gray:{hex:"#bec0c2",rgb:[190,192,194]}}},WAS:{fullName:"Washington Wizards",mainColor:{hex:"#0c2340",rgb:[12,35,64]},colors:{navy:{hex:"#0c2340",rgb:[12,35,64]},red:{hex:"#c8102e",rgb:[200,16,46]},silver:{hex:"#8d9093",rgb:[141,144,147]},white:l}}},a=function(e){return{toUpperCase:function(){return a(r.toUpper(e))},getMainColor:function(){return r.prop("mainColor",b[e])},getColors:function(){return r.prop("colors",b[e])},getColorsList:function(){var l=r.compose(r.keys,r.prop("colors")),o=r.ifElse(r.isEmpty(),function(){},r.identity());return r.compose(o,l)(b[e])},getFullName:function(){return r.prop("fullName",b[e])}}};exports.getAllColors=function(){return b},exports.getMainColor=function(e){return a(e).toUpperCase().getMainColor()},exports.getColors=function(e){return a(e).toUpperCase().getColors()},exports.getColorsList=function(e){return a(e).toUpperCase().getColorsList()},exports.getFullName=function(e){return a(e).toUpperCase().getFullName()}; | ||
var e,r=(e=require("ramda"))&&"object"==typeof e&&"default"in e?e.default:e,l={hex:"#ffffff",rgb:[255,255,255]},b={hex:"#000000",rgb:[0,0,0]},o={ATL:{fullName:"Atlanta Hawks",colors:{red:{hex:"#c8102e",rgb:[200,16,46]},green:{hex:"#c4d600",rgb:[196,214,0]},white:l,gray:{hex:"#25282a",rgb:[37,40,42]}}},BKN:{fullName:"Brooklyn Nets",colors:{black:{hex:"#010101",rgb:[1,1,1]},white:l}},BOS:{fullName:"Boston Celtics",colors:{green:{hex:"#007a33",rgb:[0,122,51]},black:b,white:l,gold:{hex:"#ffd700",rgb:[255,215,0]},silver:{hex:"#c0c0c0",rgb:[192,192,192]}}},CHA:{fullName:"Charlotte Hornets",colors:{purple:{hex:"#201747",rgb:[32,23,71]},teal:{hex:"#00778b",rgb:[0,119,139]},white:l,gray:{hex:"#888b8d",rgb:[136,139,141]}}},CHI:{fullName:"Chicago Bulls",colors:{red:{hex:"#ba0c2f",rgb:[186,12,47]},black:b,white:l}},CLE:{fullName:"Cleveland Cavaliers",colors:{wine:{hex:"#6f263d",rgb:[111,38,61]},white:l,navy:{hex:"#041e42",rgb:[4,30,66]},gold:{hex:"#ffb81c",rgb:[255,184,28]}}},DAL:{fullName:"Dallas Mavericks",colors:{blue:{hex:"#0050b5",rgb:[0,80,181]},silver:{hex:"#8d9093",rgb:[141,144,147]},navy:{hex:"#0c2340",rgb:[12,35,64]},black:b,white:l}},DEN:{fullName:"Denver Nuggets",colors:{blue:{hex:"#418fde",rgb:[65,143,222]},gold:{hex:"#ffc72c",rgb:[255,199,44]},navy:{hex:"#0c2340",rgb:[12,35,64]},white:l}},DET:{fullName:"Detroit Pistons",colors:{blue:{hex:"#003da5",rgb:[0,61,165]},red:{hex:"#d50032",rgb:[213,0,50]},navy:{hex:"#041e42",rgb:[4,30,66]},white:l}},GSW:{fullName:"Golden State Warriors",colors:{gold:{hex:"#ffc72d",rgb:[255,199,44]},blue:{hex:"#003da5",rgb:[0,61,165]}}},HOU:{fullName:"Houston Rockets",colors:{red:{hex:"#ba0c2f",rgb:[186,12,47]},silver:{hex:"#8d9093",rgb:[141,144,147]},yellow:{hex:"#fdb927",rgb:[253,185,39]},white:l,black:b}},IND:{fullName:"Indiana Pacers",colors:{blue:{hex:"#041e42",rgb:[4,30,66]},gold:{hex:"#ffb81c",rgb:[255,184,28]},silver:{hex:"#b1b3b3",rgb:[177,179,179]},white:l}},LAC:{fullName:"Los Angeles Clippers",colors:{red:{hex:"#d50032",rgb:[213,0,50]},blue:{hex:"#003da5",rgb:[0,61,165]},silver:{hex:"#b1b3b3",rgb:[177,179,179]},white:l}},LAL:{fullName:"Los Angeles Lakers",colors:{purple:{hex:"#702f8a",rgb:[112,47,138]},gold:{hex:"#ffc72c",rgb:[255,199,44]},white:l}},MEM:{fullName:"Memphis Grizzlies",colors:{midnightBlue:{hex:"#23375b",rgb:[35,55,91]},bealeStreetBlue:{hex:"#6189b9",rgb:[97,137,185]},smokeBlue:{hex:"#bbd1e4",rgb:[187,209,228]},gold:{hex:"#ffd432",rgb:[255,215,50]}}},MIA:{fullName:"Miami Heat",colors:{red:{hex:"#862633",rgb:[134,38,51]},yellow:{hex:"#ffa300",rgb:[255,163,0]},white:l,black:b}},MIL:{fullName:"Milwaukee Bucks",colors:{green:{hex:"#2c5234",rgb:[44,82,52]},cream:{hex:"#ddcba4",rgb:[221,203,164]},blue:{hex:"#0057b8",rgb:[0,87,184]},white:l,black:b}},MIN:{fullName:"Minnesota Timberwolves",colors:{blue:{hex:"#002b5c",rgb:[0,42,92]},gray:{hex:"#c6cfd4",rgb:[198,208,215]},green:{hex:"#7ac143",rgb:[122,192,67]},white:l}},NOP:{fullName:"New Orleans Pelicans",colors:{blue:{hex:"#002b5c",rgb:[0,43,92]},gold:{hex:"#b4975a",rgb:[180,151,90]},red:{hex:"#e31937",rgb:[227,25,55]},white:l}},NYK:{fullName:"New York Knicks",colors:{blue:{hex:"#003da5",rgb:[0,61,165]},orange:{hex:"#ff671f",rgb:[255,103,31]},silver:{hex:"#b1b3b3",rgb:[177,179,179]},white:l}},OKC:{fullName:"Oklahoma City Thunder",colors:{blue:{hex:"#007dc3",rgb:[0,125,195]},orange:{hex:"#f05133",rgb:[240,81,51]},yellow:{hex:"#fdbb30",rgb:[253,187,48]},darkBlue:{hex:"#002d62",rgb:[0,45,98]}}},ORL:{fullName:"Orlando Magic",colors:{blue:{hex:"#007dc5",rgb:[0,125,197]},silver:{hex:"#c4ced3",rgb:[196,206,211]},white:l,black:b}},PHI:{fullName:"Philadelphia 76ers",colors:{blue:{hex:"#006bb6",rgb:[0,102,182]},red:{hex:"#ed174c",rgb:[237,23,76]},white:l}},PHX:{fullName:"Phoenix Suns",colors:{orange:{hex:"#e56020",rgb:[229,96,32]},purple:{hex:"#1d1160",rgb:[29,17,96]},gray:{hex:"#63717a",rgb:[99,113,122]},white:l,black:b}},POR:{fullName:"Portland Trailblazers",colors:{red:{hex:"#f0163a",rgb:[240,22,58]},silver:{hex:"#b6bfbf",rgb:[182,191,191]},white:l,black:b}},SAC:{fullName:"Sacramento Kings",colors:{purple:{hex:"#724c9f",rgb:[114,76,159]},silver:{hex:"#8e9090",rgb:[142,144,144]},white:l,black:b}},SAS:{fullName:"San Antonio Spurs",colors:{silver:{hex:"#b6bfbf",rgb:[182,191,191]},white:l,black:b}},TOR:{fullName:"Toronto Raptors",colors:{red:{hex:"#ce1141",rgb:[206,17,65]},silver:{hex:"#c4ced3",rgb:[196,206,211]},white:l,black:b}},UTA:{fullName:"Utah Jazz",colors:{navy:{hex:"#002b5c",rgb:[0,43,92]},yellow:{hex:"#f9a01b",rgb:[249,160,27]},green:{hex:"#00471b",rgb:[0,71,27]},gray:{hex:"#bec0c2",rgb:[190,192,194]}}},WAS:{fullName:"Washington Wizards",colors:{navy:{hex:"#0c2340",rgb:[12,35,64]},red:{hex:"#c8102e",rgb:[200,16,46]},silver:{hex:"#8d9093",rgb:[141,144,147]},white:l}}},a=r.compose(r.keys,r.prop("colors")),h=r.ifElse(r.isEmpty(),function(){},r.identity()),g=r.compose(r.nth(0),r.propOr([],r.__,o),r.toUpper),c=r.compose(r.prop("colors"),r.propOr({},r.__,o),r.toUpper),s=r.compose(r.prop("fullName"),r.propOr({},r.__,o),r.toUpper),x=r.compose(r.compose(h,a),r.propOr({},r.__,o),r.toUpper);exports.getAllColors=function(){return o},exports.getMainColor=g,exports.getColors=c,exports.getFullName=s,exports.getColorsList=x; |
@@ -1,1 +0,1 @@ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("ramda")):"function"==typeof define&&define.amd?define(["exports","ramda"],r):r(e.nbaColor={},e.ramda)}(this,function(e,r){r=r&&r.hasOwnProperty("default")?r.default:r;var l={hex:"#ffffff",rgb:[255,255,255]},o={hex:"#000000",rgb:[0,0,0]},b={ATL:{fullName:"Atlanta Hawks",mainColor:{hex:"#c8102e",rgb:[200,16,46]},colors:{red:{hex:"#c8102e",rgb:[200,16,46]},green:{hex:"#c4d600",rgb:[196,214,0]},white:l,gray:{hex:"#25282a",rgb:[37,40,42]}}},BKN:{fullName:"Brooklyn Nets",mainColor:{hex:"#010101",rgb:[1,1,1]},colors:{black:{hex:"#010101",rgb:[1,1,1]},white:l}},BOS:{fullName:"Boston Celtics",mainColor:{hex:"#007a33",rgb:[0,122,51]},colors:{green:{hex:"#007a33",rgb:[0,122,51]},black:o,white:l,gold:{hex:"#ffd700",rgb:[255,215,0]},silver:{hex:"#c0c0c0",rgb:[192,192,192]}}},CHA:{fullName:"Charlotte Hornets",mainColor:{hex:"#201747",rgb:[32,23,71]},colors:{purple:{hex:"#201747",rgb:[32,23,71]},teal:{hex:"#00778b",rgb:[0,119,139]},white:l,gray:{hex:"#888b8d",rgb:[136,139,141]}}},CHI:{fullName:"Chicago Bulls",mainColor:{hex:"#ba0c2f",rgb:[186,12,47]},colors:{red:{hex:"#ba0c2f",rgb:[186,12,47]},black:o,white:l}},CLE:{fullName:"Cleveland Cavaliers",mainColor:{hex:"#6f263d",rgb:[111,38,61]},colors:{wine:{hex:"#6f263d",rgb:[111,38,61]},white:l,navy:{hex:"#041e42",rgb:[4,30,66]},gold:{hex:"#ffb81c",rgb:[255,184,28]}}},DAL:{fullName:"Dallas Mavericks",mainColor:{hex:"#0050b5",rgb:[0,80,181]},colors:{blue:{hex:"#0050b5",rgb:[0,80,181]},silver:{hex:"#8d9093",rgb:[141,144,147]},navy:{hex:"#0c2340",rgb:[12,35,64]},black:o,white:l}},DEN:{fullName:"Denver Nuggets",mainColor:{hex:"#418fde",rgb:[65,143,222]},colors:{blue:{hex:"#418fde",rgb:[65,143,222]},gold:{hex:"#ffc72c",rgb:[255,199,44]},navy:{hex:"#0c2340",rgb:[12,35,64]},white:l}},DET:{fullName:"Detroit Pistons",mainColor:{hex:"#003da5",rgb:[0,61,165]},colors:{blue:{hex:"#003da5",rgb:[0,61,165]},red:{hex:"#d50032",rgb:[213,0,50]},navy:{hex:"#041e42",rgb:[4,30,66]},white:l}},GSW:{fullName:"Golden State Warriors",mainColor:{hex:"#ffc72d",rgb:[255,199,44]},colors:{gold:{hex:"#ffc72d",rgb:[255,199,44]},blue:{hex:"#003da5",rgb:[0,61,165]}}},HOU:{fullName:"Houston Rockets",mainColor:{hex:"#ba0c2f",rgb:[186,12,47]},colors:{red:{hex:"#ba0c2f",rgb:[186,12,47]},silver:{hex:"#8d9093",rgb:[141,144,147]},yellow:{hex:"#fdb927",rgb:[253,185,39]},white:l,black:o}},IND:{fullName:"Indiana Pacers",mainColor:{hex:"#041e42",rgb:[4,30,66]},colors:{blue:{hex:"#041e42",rgb:[4,30,66]},gold:{hex:"#ffb81c",rgb:[255,184,28]},silver:{hex:"#b1b3b3",rgb:[177,179,179]},white:l}},LAC:{fullName:"Los Angeles Clippers",mainColor:{hex:"#d50032",rgb:[213,0,50]},colors:{red:{hex:"#d50032",rgb:[213,0,50]},blue:{hex:"#003da5",rgb:[0,61,165]},silver:{hex:"#b1b3b3",rgb:[177,179,179]},white:l}},LAL:{fullName:"Los Angeles Lakers",mainColor:{hex:"#702f8a",rgb:[112,47,138]},colors:{purple:{hex:"#702f8a",rgb:[112,47,138]},gold:{hex:"#ffc72c",rgb:[255,199,44]},white:l}},MEM:{fullName:"Memphis Grizzlies",mainColor:{hex:"#23375b",rgb:[35,55,91]},colors:{midnightBlue:{hex:"#23375b",rgb:[35,55,91]},bealeStreetBlue:{hex:"#6189b9",rgb:[97,137,185]},smokeBlue:{hex:"#bbd1e4",rgb:[187,209,228]},gold:{hex:"#ffd432",rgb:[255,215,50]}}},MIA:{fullName:"Miami Heat",mainColor:{hex:"#862633",rgb:[134,38,51]},colors:{red:{hex:"#862633",rgb:[134,38,51]},yellow:{hex:"#ffa300",rgb:[255,163,0]},white:l,black:o}},MIL:{fullName:"Milwaukee Bucks",mainColor:{hex:"#2c5234",rgb:[44,82,52]},colors:{green:{hex:"#2c5234",rgb:[44,82,52]},cream:{hex:"#ddcba4",rgb:[221,203,164]},blue:{hex:"#0057b8",rgb:[0,87,184]},white:l,black:o}},MIN:{fullName:"Minnesota Timberwolves",mainColor:{hex:"#002b5c",rgb:[0,42,92]},colors:{blue:{hex:"#002b5c",rgb:[0,42,92]},gray:{hex:"#c6cfd4",rgb:[198,208,215]},green:{hex:"#7ac143",rgb:[122,192,67]},white:l}},NOP:{fullName:"New Orleans Pelicans",mainColor:{hex:"#002b5c",rgb:[0,43,92]},colors:{blue:{hex:"#002b5c",rgb:[0,43,92]},gold:{hex:"#b4975a",rgb:[180,151,90]},red:{hex:"#e31937",rgb:[227,25,55]},white:l}},NYK:{fullName:"New York Knicks",mainColor:{hex:"#003da5",rgb:[0,61,165]},colors:{blue:{hex:"#003da5",rgb:[0,61,165]},orange:{hex:"#ff671f",rgb:[255,103,31]},silver:{hex:"#b1b3b3",rgb:[177,179,179]},white:l}},OKC:{fullName:"Oklahoma City Thunder",mainColor:{hex:"#007dc3",rgb:[0,125,195]},colors:{blue:{hex:"#007dc3",rgb:[0,125,195]},orange:{hex:"#f05133",rgb:[240,81,51]},yellow:{hex:"#fdbb30",rgb:[253,187,48]},darkBlue:{hex:"#002d62",rgb:[0,45,98]}}},ORL:{fullName:"Orlando Magic",mainColor:{hex:"#007dc5",rgb:[0,125,197]},colors:{blue:{hex:"#007dc5",rgb:[0,125,197]},silver:{hex:"#c4ced3",rgb:[196,206,211]},white:l,black:o}},PHI:{fullName:"Philadelphia 76ers",mainColor:{hex:"#006bb6",rgb:[0,102,182]},colors:{blue:{hex:"#006bb6",rgb:[0,102,182]},red:{hex:"#ed174c",rgb:[237,23,76]},white:l}},PHX:{fullName:"Phoenix Suns",mainColor:{hex:"#e56020",rgb:[229,96,32]},colors:{orange:{hex:"#e56020",rgb:[229,96,32]},purple:{hex:"#1d1160",rgb:[29,17,96]},gray:{hex:"#63717a",rgb:[99,113,122]},white:l,black:o}},POR:{fullName:"Portland Trailblazers",mainColor:{hex:"#f0163a",rgb:[240,22,58]},colors:{red:{hex:"#f0163a",rgb:[240,22,58]},silver:{hex:"#b6bfbf",rgb:[182,191,191]},white:l,black:o}},SAC:{fullName:"Sacramento Kings",mainColor:{hex:"#724c9f",rgb:[114,76,159]},colors:{purple:{hex:"#724c9f",rgb:[114,76,159]},silver:{hex:"#8e9090",rgb:[142,144,144]},white:l,black:o}},SAS:{fullName:"San Antonio Spurs",mainColor:{hex:"#b6bfbf",rgb:[182,191,191]},colors:{silver:{hex:"#b6bfbf",rgb:[182,191,191]},white:l,black:o}},TOR:{fullName:"Toronto Raptors",mainColor:{hex:"#ce1141",rgb:[206,17,65]},colors:{red:{hex:"#ce1141",rgb:[206,17,65]},silver:{hex:"#c4ced3",rgb:[196,206,211]},white:l,black:o}},UTA:{fullName:"Utah Jazz",mainColor:{hex:"#002b5c",rgb:[0,43,92]},colors:{navy:{hex:"#002b5c",rgb:[0,43,92]},yellow:{hex:"#f9a01b",rgb:[249,160,27]},green:{hex:"#00471b",rgb:[0,71,27]},gray:{hex:"#bec0c2",rgb:[190,192,194]}}},WAS:{fullName:"Washington Wizards",mainColor:{hex:"#0c2340",rgb:[12,35,64]},colors:{navy:{hex:"#0c2340",rgb:[12,35,64]},red:{hex:"#c8102e",rgb:[200,16,46]},silver:{hex:"#8d9093",rgb:[141,144,147]},white:l}}},a=function(e){return{toUpperCase:function(){return a(r.toUpper(e))},getMainColor:function(){return r.prop("mainColor",b[e])},getColors:function(){return r.prop("colors",b[e])},getColorsList:function(){var l=r.compose(r.keys,r.prop("colors")),o=r.ifElse(r.isEmpty(),function(){},r.identity());return r.compose(o,l)(b[e])},getFullName:function(){return r.prop("fullName",b[e])}}};e.getAllColors=function(){return b},e.getMainColor=function(e){return a(e).toUpperCase().getMainColor()},e.getColors=function(e){return a(e).toUpperCase().getColors()},e.getColorsList=function(e){return a(e).toUpperCase().getColorsList()},e.getFullName=function(e){return a(e).toUpperCase().getFullName()}}); | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("ramda")):"function"==typeof define&&define.amd?define(["exports","ramda"],r):r(e.nbaColor={},e.ramda)}(this,function(e,r){r=r&&r.hasOwnProperty("default")?r.default:r;var l={hex:"#ffffff",rgb:[255,255,255]},o={hex:"#000000",rgb:[0,0,0]},b={ATL:{fullName:"Atlanta Hawks",colors:{red:{hex:"#c8102e",rgb:[200,16,46]},green:{hex:"#c4d600",rgb:[196,214,0]},white:l,gray:{hex:"#25282a",rgb:[37,40,42]}}},BKN:{fullName:"Brooklyn Nets",colors:{black:{hex:"#010101",rgb:[1,1,1]},white:l}},BOS:{fullName:"Boston Celtics",colors:{green:{hex:"#007a33",rgb:[0,122,51]},black:o,white:l,gold:{hex:"#ffd700",rgb:[255,215,0]},silver:{hex:"#c0c0c0",rgb:[192,192,192]}}},CHA:{fullName:"Charlotte Hornets",colors:{purple:{hex:"#201747",rgb:[32,23,71]},teal:{hex:"#00778b",rgb:[0,119,139]},white:l,gray:{hex:"#888b8d",rgb:[136,139,141]}}},CHI:{fullName:"Chicago Bulls",colors:{red:{hex:"#ba0c2f",rgb:[186,12,47]},black:o,white:l}},CLE:{fullName:"Cleveland Cavaliers",colors:{wine:{hex:"#6f263d",rgb:[111,38,61]},white:l,navy:{hex:"#041e42",rgb:[4,30,66]},gold:{hex:"#ffb81c",rgb:[255,184,28]}}},DAL:{fullName:"Dallas Mavericks",colors:{blue:{hex:"#0050b5",rgb:[0,80,181]},silver:{hex:"#8d9093",rgb:[141,144,147]},navy:{hex:"#0c2340",rgb:[12,35,64]},black:o,white:l}},DEN:{fullName:"Denver Nuggets",colors:{blue:{hex:"#418fde",rgb:[65,143,222]},gold:{hex:"#ffc72c",rgb:[255,199,44]},navy:{hex:"#0c2340",rgb:[12,35,64]},white:l}},DET:{fullName:"Detroit Pistons",colors:{blue:{hex:"#003da5",rgb:[0,61,165]},red:{hex:"#d50032",rgb:[213,0,50]},navy:{hex:"#041e42",rgb:[4,30,66]},white:l}},GSW:{fullName:"Golden State Warriors",colors:{gold:{hex:"#ffc72d",rgb:[255,199,44]},blue:{hex:"#003da5",rgb:[0,61,165]}}},HOU:{fullName:"Houston Rockets",colors:{red:{hex:"#ba0c2f",rgb:[186,12,47]},silver:{hex:"#8d9093",rgb:[141,144,147]},yellow:{hex:"#fdb927",rgb:[253,185,39]},white:l,black:o}},IND:{fullName:"Indiana Pacers",colors:{blue:{hex:"#041e42",rgb:[4,30,66]},gold:{hex:"#ffb81c",rgb:[255,184,28]},silver:{hex:"#b1b3b3",rgb:[177,179,179]},white:l}},LAC:{fullName:"Los Angeles Clippers",colors:{red:{hex:"#d50032",rgb:[213,0,50]},blue:{hex:"#003da5",rgb:[0,61,165]},silver:{hex:"#b1b3b3",rgb:[177,179,179]},white:l}},LAL:{fullName:"Los Angeles Lakers",colors:{purple:{hex:"#702f8a",rgb:[112,47,138]},gold:{hex:"#ffc72c",rgb:[255,199,44]},white:l}},MEM:{fullName:"Memphis Grizzlies",colors:{midnightBlue:{hex:"#23375b",rgb:[35,55,91]},bealeStreetBlue:{hex:"#6189b9",rgb:[97,137,185]},smokeBlue:{hex:"#bbd1e4",rgb:[187,209,228]},gold:{hex:"#ffd432",rgb:[255,215,50]}}},MIA:{fullName:"Miami Heat",colors:{red:{hex:"#862633",rgb:[134,38,51]},yellow:{hex:"#ffa300",rgb:[255,163,0]},white:l,black:o}},MIL:{fullName:"Milwaukee Bucks",colors:{green:{hex:"#2c5234",rgb:[44,82,52]},cream:{hex:"#ddcba4",rgb:[221,203,164]},blue:{hex:"#0057b8",rgb:[0,87,184]},white:l,black:o}},MIN:{fullName:"Minnesota Timberwolves",colors:{blue:{hex:"#002b5c",rgb:[0,42,92]},gray:{hex:"#c6cfd4",rgb:[198,208,215]},green:{hex:"#7ac143",rgb:[122,192,67]},white:l}},NOP:{fullName:"New Orleans Pelicans",colors:{blue:{hex:"#002b5c",rgb:[0,43,92]},gold:{hex:"#b4975a",rgb:[180,151,90]},red:{hex:"#e31937",rgb:[227,25,55]},white:l}},NYK:{fullName:"New York Knicks",colors:{blue:{hex:"#003da5",rgb:[0,61,165]},orange:{hex:"#ff671f",rgb:[255,103,31]},silver:{hex:"#b1b3b3",rgb:[177,179,179]},white:l}},OKC:{fullName:"Oklahoma City Thunder",colors:{blue:{hex:"#007dc3",rgb:[0,125,195]},orange:{hex:"#f05133",rgb:[240,81,51]},yellow:{hex:"#fdbb30",rgb:[253,187,48]},darkBlue:{hex:"#002d62",rgb:[0,45,98]}}},ORL:{fullName:"Orlando Magic",colors:{blue:{hex:"#007dc5",rgb:[0,125,197]},silver:{hex:"#c4ced3",rgb:[196,206,211]},white:l,black:o}},PHI:{fullName:"Philadelphia 76ers",colors:{blue:{hex:"#006bb6",rgb:[0,102,182]},red:{hex:"#ed174c",rgb:[237,23,76]},white:l}},PHX:{fullName:"Phoenix Suns",colors:{orange:{hex:"#e56020",rgb:[229,96,32]},purple:{hex:"#1d1160",rgb:[29,17,96]},gray:{hex:"#63717a",rgb:[99,113,122]},white:l,black:o}},POR:{fullName:"Portland Trailblazers",colors:{red:{hex:"#f0163a",rgb:[240,22,58]},silver:{hex:"#b6bfbf",rgb:[182,191,191]},white:l,black:o}},SAC:{fullName:"Sacramento Kings",colors:{purple:{hex:"#724c9f",rgb:[114,76,159]},silver:{hex:"#8e9090",rgb:[142,144,144]},white:l,black:o}},SAS:{fullName:"San Antonio Spurs",colors:{silver:{hex:"#b6bfbf",rgb:[182,191,191]},white:l,black:o}},TOR:{fullName:"Toronto Raptors",colors:{red:{hex:"#ce1141",rgb:[206,17,65]},silver:{hex:"#c4ced3",rgb:[196,206,211]},white:l,black:o}},UTA:{fullName:"Utah Jazz",colors:{navy:{hex:"#002b5c",rgb:[0,43,92]},yellow:{hex:"#f9a01b",rgb:[249,160,27]},green:{hex:"#00471b",rgb:[0,71,27]},gray:{hex:"#bec0c2",rgb:[190,192,194]}}},WAS:{fullName:"Washington Wizards",colors:{navy:{hex:"#0c2340",rgb:[12,35,64]},red:{hex:"#c8102e",rgb:[200,16,46]},silver:{hex:"#8d9093",rgb:[141,144,147]},white:l}}},a=r.compose(r.keys,r.prop("colors")),h=r.ifElse(r.isEmpty(),function(){},r.identity()),g=r.compose(r.nth(0),r.propOr([],r.__,b),r.toUpper),c=r.compose(r.prop("colors"),r.propOr({},r.__,b),r.toUpper),s=r.compose(r.prop("fullName"),r.propOr({},r.__,b),r.toUpper),f=r.compose(r.compose(h,a),r.propOr({},r.__,b),r.toUpper);e.getAllColors=function(){return b},e.getMainColor=g,e.getColors=c,e.getFullName=s,e.getColorsList=f}); |
@@ -14,6 +14,7 @@ { | ||
}, | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"main": "lib/nba-color.js", | ||
"module": "lib/nba-color.mjs", | ||
"files": [ | ||
"index.d.ts", | ||
"lib" | ||
@@ -26,15 +27,17 @@ ], | ||
"lint:fix": "npm run lint -- --fix", | ||
"prepublishOnly": "npm run build", | ||
"test": "npm run lint:fix && npm run testonly:cov && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", | ||
"testonly": "NODE_ENV=test jest", | ||
"testonly:cov": "jest --coverage --runInBand --forceExit --no-cache", | ||
"testonly:watch": "jest --watch" | ||
"testonly:watch": "jest --watch", | ||
"preversion": "npm run lint:fix && npm run testonly:cov" | ||
}, | ||
"dependencies": { | ||
"ramda": "^0.25.0" | ||
"ramda": "^0.26.1" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.1.2", | ||
"@babel/core": "^7.1.2", | ||
"@babel/node": "^7.0.0", | ||
"@babel/preset-env": "^7.1.0", | ||
"@babel/cli": "^7.2.0", | ||
"@babel/core": "^7.2.0", | ||
"@babel/node": "^7.2.0", | ||
"@babel/preset-env": "^7.2.0", | ||
"babel-core": "^7.0.0-bridge.0", | ||
@@ -45,6 +48,6 @@ "babel-eslint": "^10.0.1", | ||
"coveralls": "^3.0.2", | ||
"eslint": "^5.8.0", | ||
"eslint": "^5.10.0", | ||
"eslint-config-airbnb": "^17.1.0", | ||
"eslint-config-prettier": "^3.1.0", | ||
"eslint-plugin-babel": "^5.2.1", | ||
"eslint-config-prettier": "^3.3.0", | ||
"eslint-plugin-babel": "^5.3.0", | ||
"eslint-plugin-import": "^2.14.0", | ||
@@ -54,8 +57,8 @@ "eslint-plugin-jsx-a11y": "^6.1.2", | ||
"eslint-plugin-react": "^7.11.1", | ||
"husky": "^1.1.3", | ||
"husky": "^1.2.0", | ||
"jest": "23.6.0", | ||
"joi": "^14.0.3", | ||
"lint-staged": "^8.0.4", | ||
"microbundle": "^0.6.0", | ||
"prettier": "^1.14.3", | ||
"joi": "^14.3.0", | ||
"lint-staged": "^8.1.0", | ||
"microbundle": "^0.8.3", | ||
"prettier": "^1.15.3", | ||
"prettier-package-json": "^2.0.1", | ||
@@ -62,0 +65,0 @@ "rimraf": "^2.6.2" |
Sorry, the diff of this file is not supported yet
7
80
23817
+ Addedramda@0.26.1(transitive)
- Removedramda@0.25.0(transitive)
Updatedramda@^0.26.1