@odynn/awayz-hotels 0.2.1 → 0.2.2

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.
@@ -1,27 +1,30 @@
1
- import { jsxs as s, jsx as l } from "react/jsx-runtime";
1
+ import { jsxs as a, jsx as s } from "react/jsx-runtime";
2
2
  import { a as d, b as i } from "../../../index-D8bHwbxH.js";
3
3
  import '../../../assets/Ratings.css';var p = /* @__PURE__ */ ((r) => (r.INHERIT = "inherit", r.PRIMARY = "primary", r.LIGHT = "light", r.DARK = "dark", r))(p || {});
4
- const f = ({
4
+ const o = ({
5
5
  starRating: r,
6
- userRating: a,
7
- color: m = "dark",
6
+ userRating: e,
7
+ color: n = "dark",
8
8
  fill: c = !1,
9
- starColor: e = "primary"
9
+ starColor: l = "primary"
10
10
  /* PRIMARY */
11
11
  }) => {
12
- if (!r && !a) return null;
13
- const n = r ? c ? /* @__PURE__ */ l(d, { className: e }) : /* @__PURE__ */ l(i, { className: e }) : null;
14
- return /* @__PURE__ */ s("div", { className: `rating ${m}`, children: [
15
- n,
16
- /* @__PURE__ */ l("p", { children: r ? r + "-star" : null }),
17
- a ? /* @__PURE__ */ s("p", { children: [
12
+ if (!r && !e) return null;
13
+ const m = !e || e === 0 || e.toString().toLowerCase() === "none", t = r ? c ? /* @__PURE__ */ s(d, { className: l }) : /* @__PURE__ */ s(i, { className: l }) : null;
14
+ return /* @__PURE__ */ a("div", { className: `rating ${n}`, children: [
15
+ t,
16
+ r ? /* @__PURE__ */ a("p", { children: [
17
+ r,
18
+ "-star"
19
+ ] }) : null,
20
+ m ? null : /* @__PURE__ */ a("p", { children: [
18
21
  "(",
19
- a,
22
+ e,
20
23
  " rating)"
21
- ] }) : null
24
+ ] })
22
25
  ] });
23
26
  };
24
27
  export {
25
28
  p as ERatingColor,
26
- f as default
29
+ o as default
27
30
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@odynn/awayz-hotels",
3
3
  "private": false,
4
- "version": "0.2.1",
4
+ "version": "0.2.2",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"