react-semaphor 0.0.431 → 0.0.432
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/chunks/{index-df1PwnFc.js → index-6FRhq_ij.js} +1 -1
- package/dist/chunks/{index-2RXvuy9i.js → index-CNe92pwd.js} +26 -19
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +75 -75
- package/dist/index.js +1956 -1874
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -28147,14 +28147,19 @@ function Si({
|
|
|
28147
28147
|
className: n,
|
|
28148
28148
|
text: r,
|
|
28149
28149
|
onSave: o,
|
|
28150
|
-
type: i = "input"
|
|
28150
|
+
type: i = "input",
|
|
28151
|
+
placeholder: a
|
|
28151
28152
|
}) {
|
|
28152
|
-
const [
|
|
28153
|
-
(
|
|
28154
|
-
)
|
|
28155
|
-
|
|
28153
|
+
const [s, l] = ge(!1), [c, u] = ge(r), d = se(
|
|
28154
|
+
(p) => p.isDashboardEditing
|
|
28155
|
+
);
|
|
28156
|
+
fe(() => {
|
|
28157
|
+
u((p) => p !== r ? r : p);
|
|
28158
|
+
}, [r]);
|
|
28159
|
+
const h = (p) => {
|
|
28160
|
+
p.stopPropagation(), d && l(!0);
|
|
28156
28161
|
};
|
|
28157
|
-
function
|
|
28162
|
+
function f() {
|
|
28158
28163
|
return i === "textarea" ? /* @__PURE__ */ y(
|
|
28159
28164
|
"textarea",
|
|
28160
28165
|
{
|
|
@@ -28163,30 +28168,32 @@ function Si({
|
|
|
28163
28168
|
n
|
|
28164
28169
|
// focus: outline-none for removing the gray outline
|
|
28165
28170
|
),
|
|
28166
|
-
onChange: (
|
|
28167
|
-
value:
|
|
28171
|
+
onChange: (p) => u(p.target.value),
|
|
28172
|
+
value: c,
|
|
28168
28173
|
autoFocus: !0,
|
|
28169
|
-
|
|
28170
|
-
|
|
28171
|
-
|
|
28174
|
+
placeholder: a,
|
|
28175
|
+
onBlur: () => l(!1),
|
|
28176
|
+
onKeyDown: (p) => {
|
|
28177
|
+
p.stopPropagation(), !(p.key === "Enter" && p.shiftKey) && (p.key === "Enter" || p.key === "Tab") && (l(!1), o(c));
|
|
28172
28178
|
}
|
|
28173
28179
|
}
|
|
28174
28180
|
) : /* @__PURE__ */ y(
|
|
28175
28181
|
"input",
|
|
28176
28182
|
{
|
|
28177
|
-
onMouseDown: (
|
|
28183
|
+
onMouseDown: (p) => p.stopPropagation(),
|
|
28178
28184
|
type: "text",
|
|
28179
28185
|
className: ae(
|
|
28180
28186
|
"rounded-sm bg-background px-2 py-1 text-sm outline-dashed outline-[0.5px] outline-primary/50",
|
|
28181
28187
|
n
|
|
28182
28188
|
// focus: outline-none for removing the gray outline
|
|
28183
28189
|
),
|
|
28184
|
-
onChange: (
|
|
28185
|
-
value:
|
|
28190
|
+
onChange: (p) => u(p.target.value),
|
|
28191
|
+
value: c,
|
|
28186
28192
|
autoFocus: !0,
|
|
28187
|
-
|
|
28188
|
-
|
|
28189
|
-
|
|
28193
|
+
placeholder: a,
|
|
28194
|
+
onBlur: () => l(!1),
|
|
28195
|
+
onKeyDown: (p) => {
|
|
28196
|
+
p.stopPropagation(), (p.key === "Enter" || p.key === "Tab") && (l(!1), o(c));
|
|
28190
28197
|
}
|
|
28191
28198
|
}
|
|
28192
28199
|
);
|
|
@@ -28196,8 +28203,8 @@ function Si({
|
|
|
28196
28203
|
{
|
|
28197
28204
|
className: ae("flex", t),
|
|
28198
28205
|
role: "editable",
|
|
28199
|
-
onDoubleClick:
|
|
28200
|
-
children:
|
|
28206
|
+
onDoubleClick: h,
|
|
28207
|
+
children: s ? f() : e
|
|
28201
28208
|
}
|
|
28202
28209
|
);
|
|
28203
28210
|
}
|
package/dist/dashboard/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-6FRhq_ij.js");exports.Dashboard=e.Dashboard;
|
package/dist/dashboard/index.js
CHANGED