hive-react-kit 0.3.0 → 0.3.1

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.esm.js CHANGED
@@ -25056,9 +25056,11 @@ const Qv = {
25056
25056
  isHstats: n = !0,
25057
25057
  isHsnaps: A = !0,
25058
25058
  isHiveFestFacts: u = !0,
25059
- backgroundColor: c = "#ffffff"
25059
+ backgroundColor: c = "#ffffff",
25060
+ textColor: l = "#4b5563",
25061
+ borderTopColor: f = "#e2e8f0"
25060
25062
  }) => {
25061
- const l = Ev(), f = Qv[l], o = {
25063
+ const o = Ev(), d = Qv[o], i = {
25062
25064
  isDistriator: e,
25063
25065
  isCheckinwithxyz: r,
25064
25066
  isHreplier: a,
@@ -25066,10 +25068,10 @@ const Qv = {
25066
25068
  isHstats: n,
25067
25069
  isHsnaps: A,
25068
25070
  isHiveFestFacts: u
25069
- }, d = jv.filter(
25070
- (i) => i.alwaysVisible || o[i.visibilityKey] !== !1
25071
+ }, g = jv.filter(
25072
+ (y) => y.alwaysVisible || i[y.visibilityKey] !== !1
25071
25073
  );
25072
- return d.length === 0 ? null : /* @__PURE__ */ t.jsxs(
25074
+ return g.length === 0 ? null : /* @__PURE__ */ t.jsxs(
25073
25075
  "div",
25074
25076
  {
25075
25077
  style: {
@@ -25079,7 +25081,7 @@ const Qv = {
25079
25081
  right: 0,
25080
25082
  zIndex: 9999,
25081
25083
  backgroundColor: c,
25082
- borderTop: "1px solid #e2e8f0",
25084
+ borderTop: `1px solid ${f}`,
25083
25085
  boxShadow: "0 -2px 10px rgba(0, 0, 0, 0.08)"
25084
25086
  },
25085
25087
  children: [
@@ -25090,21 +25092,21 @@ const Qv = {
25090
25092
  display: "flex",
25091
25093
  flexDirection: "row",
25092
25094
  alignItems: "center",
25093
- justifyContent: l === "desktop" ? "center" : "flex-start",
25095
+ justifyContent: o === "desktop" ? "center" : "flex-start",
25094
25096
  overflowX: "auto",
25095
25097
  overflowY: "hidden",
25096
25098
  whiteSpace: "nowrap",
25097
- padding: f.barPadding,
25098
- gap: `${f.gap}px`,
25099
+ padding: d.barPadding,
25100
+ gap: `${d.gap}px`,
25099
25101
  scrollbarWidth: "none",
25100
25102
  msOverflowStyle: "none",
25101
25103
  WebkitOverflowScrolling: "touch"
25102
25104
  },
25103
25105
  className: "hive-toolbar-scroll",
25104
- children: d.map((i) => /* @__PURE__ */ t.jsxs(
25106
+ children: g.map((y) => /* @__PURE__ */ t.jsxs(
25105
25107
  "a",
25106
25108
  {
25107
- href: i.url,
25109
+ href: y.url,
25108
25110
  target: "_blank",
25109
25111
  rel: "noopener noreferrer",
25110
25112
  style: {
@@ -25113,30 +25115,30 @@ const Qv = {
25113
25115
  alignItems: "center",
25114
25116
  justifyContent: "center",
25115
25117
  textDecoration: "none",
25116
- color: "#374151",
25117
- padding: f.padding,
25118
+ color: l,
25119
+ padding: d.padding,
25118
25120
  borderRadius: "8px",
25119
25121
  transition: "background-color 0.2s, transform 0.2s",
25120
25122
  cursor: "pointer",
25121
25123
  flexShrink: 0,
25122
- minWidth: `${f.minWidth}px`,
25123
- maxWidth: `${f.maxWidth}px`
25124
+ minWidth: `${d.minWidth}px`,
25125
+ maxWidth: `${d.maxWidth}px`
25124
25126
  },
25125
- onMouseEnter: (g) => {
25126
- g.currentTarget.style.backgroundColor = "#f3f4f6", g.currentTarget.style.transform = "scale(1.05)";
25127
+ onMouseEnter: (w) => {
25128
+ w.currentTarget.style.backgroundColor = "#f3f4f6", w.currentTarget.style.transform = "scale(1.05)";
25127
25129
  },
25128
- onMouseLeave: (g) => {
25129
- g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.transform = "scale(1)";
25130
+ onMouseLeave: (w) => {
25131
+ w.currentTarget.style.backgroundColor = "transparent", w.currentTarget.style.transform = "scale(1)";
25130
25132
  },
25131
25133
  children: [
25132
- i.isAvatar ? /* @__PURE__ */ t.jsx(
25134
+ y.isAvatar ? /* @__PURE__ */ t.jsx(
25133
25135
  "img",
25134
25136
  {
25135
- src: i.avatarUrl,
25136
- alt: i.name,
25137
+ src: y.avatarUrl,
25138
+ alt: y.name,
25137
25139
  style: {
25138
- width: `${f.icon}px`,
25139
- height: `${f.icon}px`,
25140
+ width: `${d.icon}px`,
25141
+ height: `${d.icon}px`,
25140
25142
  borderRadius: "50%",
25141
25143
  objectFit: "cover"
25142
25144
  }
@@ -25144,11 +25146,11 @@ const Qv = {
25144
25146
  ) : /* @__PURE__ */ t.jsx(
25145
25147
  "img",
25146
25148
  {
25147
- src: i.logo,
25148
- alt: i.name,
25149
+ src: y.logo,
25150
+ alt: y.name,
25149
25151
  style: {
25150
- width: `${f.icon}px`,
25151
- height: `${f.icon}px`,
25152
+ width: `${d.icon}px`,
25153
+ height: `${d.icon}px`,
25152
25154
  borderRadius: "8px",
25153
25155
  objectFit: "contain"
25154
25156
  }
@@ -25158,23 +25160,23 @@ const Qv = {
25158
25160
  "span",
25159
25161
  {
25160
25162
  style: {
25161
- fontSize: `${f.fontSize}px`,
25163
+ fontSize: `${d.fontSize}px`,
25162
25164
  fontWeight: 500,
25163
25165
  marginTop: "2px",
25164
25166
  textAlign: "center",
25165
25167
  lineHeight: "1.2",
25166
25168
  whiteSpace: "normal",
25167
25169
  wordWrap: "break-word",
25168
- color: "#4b5563",
25169
- maxWidth: `${f.maxWidth}px`,
25170
+ color: l,
25171
+ maxWidth: `${d.maxWidth}px`,
25170
25172
  display: "block"
25171
25173
  },
25172
- children: i.name
25174
+ children: y.name
25173
25175
  }
25174
25176
  )
25175
25177
  ]
25176
25178
  },
25177
- i.key
25179
+ y.key
25178
25180
  ))
25179
25181
  }
25180
25182
  ),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hive-react-kit",
3
3
  "private": false,
4
- "version": "0.3.0",
4
+ "version": "0.3.1",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",