Comparing version
@@ -13,2 +13,3 @@ interface teamColor { | ||
fullName: string; | ||
mainColor: string; | ||
colors: teamColors; | ||
@@ -15,0 +16,0 @@ }; |
@@ -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]},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; | ||
var e=require("ramda"),r={hex:"#ffffff",rgb:[255,255,255]},l={hex:"#000000",rgb:[0,0,0]},o={ATL:{fullName:"Atlanta Hawks",mainColor:"red",colors:{red:{hex:"#c8102e",rgb:[200,16,46]},green:{hex:"#c4d600",rgb:[196,214,0]},white:r,gray:{hex:"#25282a",rgb:[37,40,42]}}},BKN:{fullName:"Brooklyn Nets",mainColor:"black",colors:{black:{hex:"#010101",rgb:[1,1,1]},white:r}},BOS:{fullName:"Boston Celtics",mainColor:"green",colors:{green:{hex:"#007a33",rgb:[0,122,51]},black:l,white:r,gold:{hex:"#ffd700",rgb:[255,215,0]},silver:{hex:"#c0c0c0",rgb:[192,192,192]}}},CHA:{fullName:"Charlotte Hornets",mainColor:"purple",colors:{purple:{hex:"#201747",rgb:[32,23,71]},teal:{hex:"#00778b",rgb:[0,119,139]},white:r,gray:{hex:"#888b8d",rgb:[136,139,141]}}},CHI:{fullName:"Chicago Bulls",mainColor:"red",colors:{red:{hex:"#ba0c2f",rgb:[186,12,47]},black:l,white:r}},CLE:{fullName:"Cleveland Cavaliers",mainColor:"wine",colors:{wine:{hex:"#6f263d",rgb:[111,38,61]},white:r,navy:{hex:"#041e42",rgb:[4,30,66]},gold:{hex:"#ffb81c",rgb:[255,184,28]}}},DAL:{fullName:"Dallas Mavericks",mainColor:"blue",colors:{blue:{hex:"#0050b5",rgb:[0,80,181]},silver:{hex:"#8d9093",rgb:[141,144,147]},navy:{hex:"#0c2340",rgb:[12,35,64]},black:l,white:r}},DEN:{fullName:"Denver Nuggets",mainColor:"blue",colors:{blue:{hex:"#418fde",rgb:[65,143,222]},gold:{hex:"#ffc72c",rgb:[255,199,44]},navy:{hex:"#0c2340",rgb:[12,35,64]},white:r}},DET:{fullName:"Detroit Pistons",mainColor:"blue",colors:{blue:{hex:"#003da5",rgb:[0,61,165]},red:{hex:"#d50032",rgb:[213,0,50]},navy:{hex:"#041e42",rgb:[4,30,66]},white:r}},GSW:{fullName:"Golden State Warriors",mainColor:"gold",colors:{gold:{hex:"#ffc72d",rgb:[255,199,44]},blue:{hex:"#003da5",rgb:[0,61,165]}}},HOU:{fullName:"Houston Rockets",mainColor:"red",colors:{red:{hex:"#ba0c2f",rgb:[186,12,47]},silver:{hex:"#8d9093",rgb:[141,144,147]},yellow:{hex:"#fdb927",rgb:[253,185,39]},white:r,black:l}},IND:{fullName:"Indiana Pacers",mainColor:"blue",colors:{blue:{hex:"#041e42",rgb:[4,30,66]},gold:{hex:"#ffb81c",rgb:[255,184,28]},silver:{hex:"#b1b3b3",rgb:[177,179,179]},white:r}},LAC:{fullName:"Los Angeles Clippers",mainColor:"red",colors:{red:{hex:"#d50032",rgb:[213,0,50]},blue:{hex:"#003da5",rgb:[0,61,165]},silver:{hex:"#b1b3b3",rgb:[177,179,179]},white:r}},LAL:{fullName:"Los Angeles Lakers",mainColor:"purple",colors:{purple:{hex:"#702f8a",rgb:[112,47,138]},gold:{hex:"#ffc72c",rgb:[255,199,44]},white:r}},MEM:{fullName:"Memphis Grizzlies",mainColor:"midnightBlue",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:"red",colors:{red:{hex:"#862633",rgb:[134,38,51]},yellow:{hex:"#ffa300",rgb:[255,163,0]},white:r,black:l}},MIL:{fullName:"Milwaukee Bucks",mainColor:"green",colors:{green:{hex:"#2c5234",rgb:[44,82,52]},cream:{hex:"#ddcba4",rgb:[221,203,164]},blue:{hex:"#0057b8",rgb:[0,87,184]},white:r,black:l}},MIN:{fullName:"Minnesota Timberwolves",mainColor:"blue",colors:{blue:{hex:"#002b5c",rgb:[0,42,92]},gray:{hex:"#c6cfd4",rgb:[198,208,215]},green:{hex:"#7ac143",rgb:[122,192,67]},white:r}},NOP:{fullName:"New Orleans Pelicans",mainColor:"blue",colors:{blue:{hex:"#002b5c",rgb:[0,43,92]},gold:{hex:"#b4975a",rgb:[180,151,90]},red:{hex:"#e31937",rgb:[227,25,55]},white:r}},NYK:{fullName:"New York Knicks",mainColor:"blue",colors:{blue:{hex:"#003da5",rgb:[0,61,165]},orange:{hex:"#ff671f",rgb:[255,103,31]},silver:{hex:"#b1b3b3",rgb:[177,179,179]},white:r}},OKC:{fullName:"Oklahoma City Thunder",mainColor:"blue",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:"blue",colors:{blue:{hex:"#007dc5",rgb:[0,125,197]},silver:{hex:"#c4ced3",rgb:[196,206,211]},white:r,black:l}},PHI:{fullName:"Philadelphia 76ers",mainColor:"blue",colors:{blue:{hex:"#006bb6",rgb:[0,102,182]},red:{hex:"#ed174c",rgb:[237,23,76]},white:r}},PHX:{fullName:"Phoenix Suns",mainColor:"orange",colors:{orange:{hex:"#e56020",rgb:[229,96,32]},purple:{hex:"#1d1160",rgb:[29,17,96]},gray:{hex:"#63717a",rgb:[99,113,122]},white:r,black:l}},POR:{fullName:"Portland Trailblazers",mainColor:"red",colors:{red:{hex:"#f0163a",rgb:[240,22,58]},silver:{hex:"#b6bfbf",rgb:[182,191,191]},white:r,black:l}},SAC:{fullName:"Sacramento Kings",mainColor:"purple",colors:{purple:{hex:"#724c9f",rgb:[114,76,159]},silver:{hex:"#8e9090",rgb:[142,144,144]},white:r,black:l}},SAS:{fullName:"San Antonio Spurs",mainColor:"silver",colors:{silver:{hex:"#b6bfbf",rgb:[182,191,191]},white:r,black:l}},TOR:{fullName:"Toronto Raptors",mainColor:"red",colors:{red:{hex:"#ce1141",rgb:[206,17,65]},silver:{hex:"#c4ced3",rgb:[196,206,211]},white:r,black:l}},UTA:{fullName:"Utah Jazz",mainColor:"navy",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:"navy",colors:{navy:{hex:"#0c2340",rgb:[12,35,64]},red:{hex:"#c8102e",rgb:[200,16,46]},silver:{hex:"#8d9093",rgb:[141,144,147]},white:r}}},b=e.compose(e.keys,e.prop("colors")),a=e.ifElse(e.isEmpty(),function(){},e.identity()),g=e.compose(function(r){var l=e.prop("mainColor",r);return e.path(["colors",l],r)},e.propOr({},e.__,o),e.toUpper),h=e.compose(e.prop("colors"),e.propOr({},e.__,o),e.toUpper),i=e.compose(e.prop("fullName"),e.propOr({},e.__,o),e.toUpper),c=e.compose(e.compose(a,b),e.propOr({},e.__,o),e.toUpper);exports.getAllColors=function(){return o},exports.getMainColor=g,exports.getColors=h,exports.getFullName=i,exports.getColorsList=c; |
@@ -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",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}); | ||
!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){var l={hex:"#ffffff",rgb:[255,255,255]},o={hex:"#000000",rgb:[0,0,0]},a={ATL:{fullName:"Atlanta Hawks",mainColor:"red",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:"black",colors:{black:{hex:"#010101",rgb:[1,1,1]},white:l}},BOS:{fullName:"Boston Celtics",mainColor:"green",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:"purple",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:"red",colors:{red:{hex:"#ba0c2f",rgb:[186,12,47]},black:o,white:l}},CLE:{fullName:"Cleveland Cavaliers",mainColor:"wine",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:"blue",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:"blue",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:"blue",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:"gold",colors:{gold:{hex:"#ffc72d",rgb:[255,199,44]},blue:{hex:"#003da5",rgb:[0,61,165]}}},HOU:{fullName:"Houston Rockets",mainColor:"red",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:"blue",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:"red",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:"purple",colors:{purple:{hex:"#702f8a",rgb:[112,47,138]},gold:{hex:"#ffc72c",rgb:[255,199,44]},white:l}},MEM:{fullName:"Memphis Grizzlies",mainColor:"midnightBlue",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:"red",colors:{red:{hex:"#862633",rgb:[134,38,51]},yellow:{hex:"#ffa300",rgb:[255,163,0]},white:l,black:o}},MIL:{fullName:"Milwaukee Bucks",mainColor:"green",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:"blue",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:"blue",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:"blue",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:"blue",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:"blue",colors:{blue:{hex:"#007dc5",rgb:[0,125,197]},silver:{hex:"#c4ced3",rgb:[196,206,211]},white:l,black:o}},PHI:{fullName:"Philadelphia 76ers",mainColor:"blue",colors:{blue:{hex:"#006bb6",rgb:[0,102,182]},red:{hex:"#ed174c",rgb:[237,23,76]},white:l}},PHX:{fullName:"Phoenix Suns",mainColor:"orange",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:"red",colors:{red:{hex:"#f0163a",rgb:[240,22,58]},silver:{hex:"#b6bfbf",rgb:[182,191,191]},white:l,black:o}},SAC:{fullName:"Sacramento Kings",mainColor:"purple",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:"silver",colors:{silver:{hex:"#b6bfbf",rgb:[182,191,191]},white:l,black:o}},TOR:{fullName:"Toronto Raptors",mainColor:"red",colors:{red:{hex:"#ce1141",rgb:[206,17,65]},silver:{hex:"#c4ced3",rgb:[196,206,211]},white:l,black:o}},UTA:{fullName:"Utah Jazz",mainColor:"navy",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:"navy",colors:{navy:{hex:"#0c2340",rgb:[12,35,64]},red:{hex:"#c8102e",rgb:[200,16,46]},silver:{hex:"#8d9093",rgb:[141,144,147]},white:l}}},b=r.compose(r.keys,r.prop("colors")),i=r.ifElse(r.isEmpty(),function(){},r.identity()),g=r.compose(function(e){var l=r.prop("mainColor",e);return r.path(["colors",l],e)},r.propOr({},r.__,a),r.toUpper),h=r.compose(r.prop("colors"),r.propOr({},r.__,a),r.toUpper),c=r.compose(r.prop("fullName"),r.propOr({},r.__,a),r.toUpper),n=r.compose(r.compose(i,b),r.propOr({},r.__,a),r.toUpper);e.getAllColors=function(){return a},e.getMainColor=g,e.getColors=h,e.getFullName=c,e.getColorsList=n}); |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "1.3.6", | ||
"version": "1.3.7", | ||
"main": "lib/nba-color.js", | ||
@@ -17,0 +17,0 @@ "module": "lib/nba-color.mjs", |
Sorry, the diff of this file is not supported yet
25439
6.81%87
8.75%