hive-react-kit 0.2.3 → 0.2.5

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
@@ -24981,7 +24981,7 @@ function fg({
24981
24981
  author: e,
24982
24982
  permlink: a,
24983
24983
  currentUser: i,
24984
- hiveValue: s = 0,
24984
+ hiveValue: s,
24985
24985
  onUpvote: r,
24986
24986
  onSubmitComment: n,
24987
24987
  onComments: u,
@@ -25075,113 +25075,112 @@ function fg({
25075
25075
  throw O(Y), Ee;
25076
25076
  }
25077
25077
  }, ie = "absolute left-1/2 -translate-x-1/2 bottom-full mb-1 px-2 py-1 text-xs font-medium text-white bg-gray-800 dark:bg-gray-700 rounded shadow-lg whitespace-nowrap opacity-0 pointer-events-none group-hover:opacity-100 transition-opacity duration-150 z-[60]";
25078
- return /* @__PURE__ */ t.jsxs("div", { className: "flex flex-wrap items-center gap-3 sm:gap-4 text-sm", children: [
25079
- /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-1", children: [
25078
+ return /* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-between gap-4 text-sm w-full", children: [
25079
+ /* @__PURE__ */ t.jsxs("div", { className: "flex flex-wrap items-center justify-center gap-3 sm:gap-4 shrink-0", children: [
25080
+ /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-1", children: [
25081
+ /* @__PURE__ */ t.jsxs("div", { className: "relative group", children: [
25082
+ /* @__PURE__ */ t.jsx("span", { className: ie, children: "Upvote" }),
25083
+ /* @__PURE__ */ t.jsx(
25084
+ "button",
25085
+ {
25086
+ type: "button",
25087
+ onClick: q,
25088
+ disabled: C,
25089
+ className: "p-1 rounded hover:bg-gray-200 dark:hover:bg-gray-700 disabled:opacity-50",
25090
+ "aria-label": "Upvote",
25091
+ children: C ? /* @__PURE__ */ t.jsx(He, { className: "w-4 h-4 sm:w-5 sm:h-5 animate-spin text-blue-600" }) : /* @__PURE__ */ t.jsx(
25092
+ jr,
25093
+ {
25094
+ className: `w-4 h-4 sm:w-5 sm:h-5 ${U ? "text-blue-600 dark:text-blue-400 fill-current" : "text-gray-600 dark:text-gray-400"}`
25095
+ }
25096
+ )
25097
+ }
25098
+ )
25099
+ ] }),
25100
+ /* @__PURE__ */ t.jsxs("div", { className: "relative group", children: [
25101
+ /* @__PURE__ */ t.jsx("span", { className: ie, children: "View upvotes" }),
25102
+ /* @__PURE__ */ t.jsx(
25103
+ "button",
25104
+ {
25105
+ type: "button",
25106
+ onClick: W,
25107
+ className: "flex items-center gap-1 text-gray-700 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 transition-colors",
25108
+ "aria-label": "View upvotes",
25109
+ children: /* @__PURE__ */ t.jsx("span", { children: x.length })
25110
+ }
25111
+ )
25112
+ ] })
25113
+ ] }),
25080
25114
  /* @__PURE__ */ t.jsxs("div", { className: "relative group", children: [
25081
- /* @__PURE__ */ t.jsx("span", { className: ie, children: "Upvote" }),
25115
+ /* @__PURE__ */ t.jsx("span", { className: ie, children: "Comments" }),
25116
+ /* @__PURE__ */ t.jsxs(
25117
+ "button",
25118
+ {
25119
+ type: "button",
25120
+ onClick: Q,
25121
+ className: "flex items-center gap-1 text-gray-700 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 transition-colors",
25122
+ "aria-label": "Comments",
25123
+ children: [
25124
+ /* @__PURE__ */ t.jsx(xa, { className: "w-4 h-4 sm:w-5 sm:h-5" }),
25125
+ /* @__PURE__ */ t.jsx("span", { children: b })
25126
+ ]
25127
+ }
25128
+ )
25129
+ ] }),
25130
+ /* @__PURE__ */ t.jsxs("div", { className: "relative group", children: [
25131
+ /* @__PURE__ */ t.jsx("span", { className: ie, children: "Reblog" }),
25082
25132
  /* @__PURE__ */ t.jsx(
25083
25133
  "button",
25084
25134
  {
25085
25135
  type: "button",
25086
- onClick: q,
25087
- disabled: C,
25088
- className: "p-1 rounded hover:bg-gray-200 dark:hover:bg-gray-700 disabled:opacity-50",
25089
- "aria-label": "Upvote",
25090
- children: C ? /* @__PURE__ */ t.jsx(He, { className: "w-4 h-4 sm:w-5 sm:h-5 animate-spin text-blue-600" }) : /* @__PURE__ */ t.jsx(
25091
- jr,
25092
- {
25093
- className: `w-4 h-4 sm:w-5 sm:h-5 ${U ? "text-blue-600 dark:text-blue-400 fill-current" : "text-gray-600 dark:text-gray-400"}`
25094
- }
25095
- )
25136
+ onClick: M,
25137
+ className: "flex items-center gap-1 text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-400 transition-colors p-1 rounded",
25138
+ "aria-label": "Reblog",
25139
+ children: /* @__PURE__ */ t.jsx(Kc, { className: "w-4 h-4 sm:w-5 sm:h-5" })
25096
25140
  }
25097
25141
  )
25098
25142
  ] }),
25099
25143
  /* @__PURE__ */ t.jsxs("div", { className: "relative group", children: [
25100
- /* @__PURE__ */ t.jsx("span", { className: ie, children: "View upvotes" }),
25144
+ /* @__PURE__ */ t.jsx("span", { className: ie, children: "Share" }),
25101
25145
  /* @__PURE__ */ t.jsx(
25102
25146
  "button",
25103
25147
  {
25104
25148
  type: "button",
25105
- onClick: W,
25106
- className: "flex items-center gap-1 text-gray-700 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 transition-colors",
25107
- "aria-label": "View upvotes",
25108
- children: /* @__PURE__ */ t.jsx("span", { children: x.length })
25149
+ onClick: B,
25150
+ className: "flex items-center gap-1 text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-400 transition-colors p-1 rounded",
25151
+ "aria-label": "Share",
25152
+ children: /* @__PURE__ */ t.jsx(ks, { className: "w-4 h-4 sm:w-5 sm:h-5" })
25153
+ }
25154
+ )
25155
+ ] }),
25156
+ /* @__PURE__ */ t.jsxs("div", { className: "relative group", children: [
25157
+ /* @__PURE__ */ t.jsx("span", { className: ie, children: "Report" }),
25158
+ /* @__PURE__ */ t.jsx(
25159
+ "button",
25160
+ {
25161
+ type: "button",
25162
+ onClick: ne,
25163
+ className: "flex items-center gap-1 text-gray-600 dark:text-gray-400 hover:text-red-600 dark:hover:text-red-400 transition-colors p-1 rounded",
25164
+ "aria-label": "Report",
25165
+ children: /* @__PURE__ */ t.jsx(h0, { className: "w-4 h-4 sm:w-5 sm:h-5" })
25166
+ }
25167
+ )
25168
+ ] }),
25169
+ /* @__PURE__ */ t.jsxs("div", { className: "relative group", children: [
25170
+ /* @__PURE__ */ t.jsx("span", { className: ie, children: "Tip" }),
25171
+ /* @__PURE__ */ t.jsx(
25172
+ "button",
25173
+ {
25174
+ type: "button",
25175
+ onClick: R,
25176
+ className: "flex items-center gap-1 text-gray-600 dark:text-gray-400 hover:text-green-600 dark:hover:text-green-400 transition-colors p-1 rounded",
25177
+ "aria-label": "Tip",
25178
+ children: /* @__PURE__ */ t.jsx(p0, { className: "w-4 h-4 sm:w-5 sm:h-5" })
25109
25179
  }
25110
25180
  )
25111
25181
  ] })
25112
25182
  ] }),
25113
- /* @__PURE__ */ t.jsxs("div", { className: "relative group", children: [
25114
- /* @__PURE__ */ t.jsx("span", { className: ie, children: "Comments" }),
25115
- /* @__PURE__ */ t.jsxs(
25116
- "button",
25117
- {
25118
- type: "button",
25119
- onClick: Q,
25120
- className: "flex items-center gap-1 text-gray-700 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 transition-colors",
25121
- "aria-label": "Comments",
25122
- children: [
25123
- /* @__PURE__ */ t.jsx(xa, { className: "w-4 h-4 sm:w-5 sm:h-5" }),
25124
- /* @__PURE__ */ t.jsx("span", { children: b })
25125
- ]
25126
- }
25127
- )
25128
- ] }),
25129
- /* @__PURE__ */ t.jsxs("div", { className: "relative group", children: [
25130
- /* @__PURE__ */ t.jsx("span", { className: ie, children: "Reblog" }),
25131
- /* @__PURE__ */ t.jsx(
25132
- "button",
25133
- {
25134
- type: "button",
25135
- onClick: M,
25136
- className: "flex items-center gap-1 text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-400 transition-colors p-1 rounded",
25137
- "aria-label": "Reblog",
25138
- children: /* @__PURE__ */ t.jsx(Kc, { className: "w-4 h-4 sm:w-5 sm:h-5" })
25139
- }
25140
- )
25141
- ] }),
25142
- /* @__PURE__ */ t.jsxs("div", { className: "relative group", children: [
25143
- /* @__PURE__ */ t.jsx("span", { className: ie, children: "Share" }),
25144
- /* @__PURE__ */ t.jsx(
25145
- "button",
25146
- {
25147
- type: "button",
25148
- onClick: B,
25149
- className: "flex items-center gap-1 text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-400 transition-colors p-1 rounded",
25150
- "aria-label": "Share",
25151
- children: /* @__PURE__ */ t.jsx(ks, { className: "w-4 h-4 sm:w-5 sm:h-5" })
25152
- }
25153
- )
25154
- ] }),
25155
- /* @__PURE__ */ t.jsxs("div", { className: "relative group", children: [
25156
- /* @__PURE__ */ t.jsx("span", { className: ie, children: "Report" }),
25157
- /* @__PURE__ */ t.jsx(
25158
- "button",
25159
- {
25160
- type: "button",
25161
- onClick: ne,
25162
- className: "flex items-center gap-1 text-gray-600 dark:text-gray-400 hover:text-red-600 dark:hover:text-red-400 transition-colors p-1 rounded",
25163
- "aria-label": "Report",
25164
- children: /* @__PURE__ */ t.jsx(h0, { className: "w-4 h-4 sm:w-5 sm:h-5" })
25165
- }
25166
- )
25167
- ] }),
25168
- /* @__PURE__ */ t.jsxs("div", { className: "relative group", children: [
25169
- /* @__PURE__ */ t.jsx("span", { className: ie, children: "Tip" }),
25170
- /* @__PURE__ */ t.jsx(
25171
- "button",
25172
- {
25173
- type: "button",
25174
- onClick: R,
25175
- className: "flex items-center gap-1 text-gray-600 dark:text-gray-400 hover:text-green-600 dark:hover:text-green-400 transition-colors p-1 rounded",
25176
- "aria-label": "Tip",
25177
- children: /* @__PURE__ */ t.jsx(p0, { className: "w-4 h-4 sm:w-5 sm:h-5" })
25178
- }
25179
- )
25180
- ] }),
25181
- s > 0 && /* @__PURE__ */ t.jsxs("span", { className: "font-semibold text-green-600 dark:text-green-400", children: [
25182
- "$",
25183
- s.toFixed(2)
25184
- ] }),
25183
+ /* @__PURE__ */ t.jsx("div", { className: "flex-1 flex justify-end min-w-0 shrink-0", children: s != null && s !== "" && /* @__PURE__ */ t.jsx("span", { className: "font-semibold text-green-600 dark:text-green-400", children: s }) }),
25185
25184
  v && /* @__PURE__ */ t.jsx(
25186
25185
  Do,
25187
25186
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hive-react-kit",
3
3
  "private": false,
4
- "version": "0.2.3",
4
+ "version": "0.2.5",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",