@blerp/design 1.2.47 → 1.2.48

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/dist/index.cjs.js CHANGED
@@ -1948,8 +1948,16 @@ var RatingInfo = function RatingInfo(_ref4) {
1948
1948
  }));
1949
1949
  } else if (bite !== null && bite !== void 0 && bite.audienceRating) {
1950
1950
  // what you have now
1951
- ratingText.tooltipText = null;
1952
- ratingText.text = null;
1951
+ if ((bite === null || bite === void 0 ? void 0 : bite.audienceRating) === "UR") {
1952
+ ratingText.tooltipText = "Hasn't Been Reviewed";
1953
+ ratingText.text = "UNRATED";
1954
+ } else if ((bite === null || bite === void 0 ? void 0 : bite.audienceRating) === "NC17") {
1955
+ ratingText.tooltipText = "Not Safe For Work";
1956
+ ratingText.text = "NSFW";
1957
+ } else {
1958
+ ratingText.tooltipText = null;
1959
+ ratingText.text = null;
1960
+ }
1953
1961
  } else {
1954
1962
  // unrated
1955
1963
  ratingText.tooltipText = "Hasn't Been Reviewed";
package/dist/index.esm.js CHANGED
@@ -1873,8 +1873,16 @@ var RatingInfo = function RatingInfo(_ref4) {
1873
1873
  }));
1874
1874
  } else if (bite !== null && bite !== void 0 && bite.audienceRating) {
1875
1875
  // what you have now
1876
- ratingText.tooltipText = null;
1877
- ratingText.text = null;
1876
+ if ((bite === null || bite === void 0 ? void 0 : bite.audienceRating) === "UR") {
1877
+ ratingText.tooltipText = "Hasn't Been Reviewed";
1878
+ ratingText.text = "UNRATED";
1879
+ } else if ((bite === null || bite === void 0 ? void 0 : bite.audienceRating) === "NC17") {
1880
+ ratingText.tooltipText = "Not Safe For Work";
1881
+ ratingText.text = "NSFW";
1882
+ } else {
1883
+ ratingText.tooltipText = null;
1884
+ ratingText.text = null;
1885
+ }
1878
1886
  } else {
1879
1887
  // unrated
1880
1888
  ratingText.tooltipText = "Hasn't Been Reviewed";
package/dist/index.umd.js CHANGED
@@ -1894,8 +1894,16 @@
1894
1894
  }));
1895
1895
  } else if (bite !== null && bite !== void 0 && bite.audienceRating) {
1896
1896
  // what you have now
1897
- ratingText.tooltipText = null;
1898
- ratingText.text = null;
1897
+ if ((bite === null || bite === void 0 ? void 0 : bite.audienceRating) === "UR") {
1898
+ ratingText.tooltipText = "Hasn't Been Reviewed";
1899
+ ratingText.text = "UNRATED";
1900
+ } else if ((bite === null || bite === void 0 ? void 0 : bite.audienceRating) === "NC17") {
1901
+ ratingText.tooltipText = "Not Safe For Work";
1902
+ ratingText.text = "NSFW";
1903
+ } else {
1904
+ ratingText.tooltipText = null;
1905
+ ratingText.text = null;
1906
+ }
1899
1907
  } else {
1900
1908
  // unrated
1901
1909
  ratingText.tooltipText = "Hasn't Been Reviewed";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blerp/design",
3
- "version": "1.2.47",
3
+ "version": "1.2.48",
4
4
  "description": "Blerp UI",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {