@conboai/storybook.components 0.3.73 → 0.3.75
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.
|
@@ -16,6 +16,7 @@ export interface ImagePlayerProps {
|
|
|
16
16
|
shapes: Shape[];
|
|
17
17
|
selectedShape?: Shape;
|
|
18
18
|
onShapeSelect?: (selectedShape: Shape | null, shapesList: Shape[]) => void;
|
|
19
|
+
shapeStyles?: any;
|
|
19
20
|
}
|
|
20
21
|
declare const ImagePlayer: React.FC<ImagePlayerProps>;
|
|
21
22
|
export default ImagePlayer;
|
|
@@ -29080,6 +29080,14 @@ const XV = {
|
|
|
29080
29080
|
"M15 4L13.59 5.41L16.17 8H6V10H16.17L13.59 12.58L15 14L20 9L15 4ZM2 2H10V0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H10V16H2V2Z"
|
|
29081
29081
|
]
|
|
29082
29082
|
},
|
|
29083
|
+
tags: {
|
|
29084
|
+
height: 24,
|
|
29085
|
+
width: 24,
|
|
29086
|
+
strokeWidth: 1,
|
|
29087
|
+
paths: [
|
|
29088
|
+
"M20 10V8h-4V4h-2v4h-4V4H8v4H4v2h4v4H4v2h4v4h2v-4h4v4h2v-4h4v-2h-4v-4h4zm-6 4h-4v-4h4v4z"
|
|
29089
|
+
]
|
|
29090
|
+
},
|
|
29083
29091
|
btnArrowRight: {
|
|
29084
29092
|
width: 16,
|
|
29085
29093
|
height: 16,
|
|
@@ -97204,16 +97212,17 @@ const Eve = Hme, kve = (t, e) => ({
|
|
|
97204
97212
|
shapes: a,
|
|
97205
97213
|
sx: l,
|
|
97206
97214
|
selectedShape: c,
|
|
97207
|
-
onShapeSelect: u
|
|
97215
|
+
onShapeSelect: u,
|
|
97216
|
+
shapeStyles: d = {}
|
|
97208
97217
|
}) => {
|
|
97209
|
-
const [
|
|
97210
|
-
typeof
|
|
97218
|
+
const [f, A] = Ye(0), m = Ove(s), g = Lve(s), h = (v, D) => {
|
|
97219
|
+
typeof D == "number" && A(D);
|
|
97211
97220
|
};
|
|
97212
97221
|
ke(() => {
|
|
97213
|
-
o && o(t[
|
|
97214
|
-
}, [
|
|
97215
|
-
const
|
|
97216
|
-
const
|
|
97222
|
+
o && o(t[f]);
|
|
97223
|
+
}, [f, o, t]);
|
|
97224
|
+
const p = (v) => {
|
|
97225
|
+
const D = {
|
|
97217
97226
|
year: "numeric",
|
|
97218
97227
|
month: "long",
|
|
97219
97228
|
day: "numeric",
|
|
@@ -97221,17 +97230,17 @@ const Eve = Hme, kve = (t, e) => ({
|
|
|
97221
97230
|
minute: "2-digit",
|
|
97222
97231
|
second: "2-digit"
|
|
97223
97232
|
};
|
|
97224
|
-
return new Date(
|
|
97225
|
-
},
|
|
97226
|
-
|
|
97227
|
-
const
|
|
97228
|
-
return
|
|
97233
|
+
return new Date(v).toLocaleDateString(void 0, D);
|
|
97234
|
+
}, w = (v) => {
|
|
97235
|
+
A((D) => {
|
|
97236
|
+
const y = D + v;
|
|
97237
|
+
return y < 0 ? 0 : y >= t.length ? t.length - 1 : y;
|
|
97229
97238
|
});
|
|
97230
|
-
},
|
|
97239
|
+
}, C = {
|
|
97231
97240
|
...Sve,
|
|
97232
97241
|
...l
|
|
97233
97242
|
};
|
|
97234
|
-
return /* @__PURE__ */ N.jsxs(Pt, { sx:
|
|
97243
|
+
return /* @__PURE__ */ N.jsxs(Pt, { sx: C, children: [
|
|
97235
97244
|
/* @__PURE__ */ N.jsxs(Pt, { sx: Fve, children: [
|
|
97236
97245
|
/* @__PURE__ */ N.jsx(
|
|
97237
97246
|
RO,
|
|
@@ -97243,16 +97252,14 @@ const Eve = Hme, kve = (t, e) => ({
|
|
|
97243
97252
|
showPoints: !1,
|
|
97244
97253
|
selected: c,
|
|
97245
97254
|
onShapeSelect: u,
|
|
97246
|
-
styles:
|
|
97247
|
-
width: "50%"
|
|
97248
|
-
},
|
|
97255
|
+
styles: d,
|
|
97249
97256
|
children: /* @__PURE__ */ N.jsx(
|
|
97250
97257
|
Hh,
|
|
97251
97258
|
{
|
|
97252
97259
|
sx: { ...jve, objectFit: "contain" },
|
|
97253
97260
|
component: "img",
|
|
97254
|
-
image: t.length > 0 ? e(t[
|
|
97255
|
-
alt: t.length > 0 ? `Snapshot ${
|
|
97261
|
+
image: t.length > 0 ? e(t[f]) : zve,
|
|
97262
|
+
alt: t.length > 0 ? `Snapshot ${f}` : "No Data"
|
|
97256
97263
|
}
|
|
97257
97264
|
)
|
|
97258
97265
|
}
|
|
@@ -97263,21 +97270,21 @@ const Eve = Hme, kve = (t, e) => ({
|
|
|
97263
97270
|
paddingBottom: "0 !important"
|
|
97264
97271
|
}, children: /* @__PURE__ */ N.jsxs(Pt, { sx: Tve, children: [
|
|
97265
97272
|
/* @__PURE__ */ N.jsxs(Pt, { display: "flex", justifyContent: "space-between", children: [
|
|
97266
|
-
/* @__PURE__ */ N.jsx(Jt, { variant: "body2", sx:
|
|
97267
|
-
/* @__PURE__ */ N.jsx(Jt, { variant: "body2", sx:
|
|
97268
|
-
/* @__PURE__ */ N.jsx(Jt, { variant: "body2", "aria-disabled": s, sx:
|
|
97273
|
+
/* @__PURE__ */ N.jsx(Jt, { variant: "body2", sx: g, children: t.length ? p(n(t[0])) : "Start time" }),
|
|
97274
|
+
/* @__PURE__ */ N.jsx(Jt, { variant: "body2", sx: g, children: t.length ? p(n(t[f])) : "Current time" }),
|
|
97275
|
+
/* @__PURE__ */ N.jsx(Jt, { variant: "body2", "aria-disabled": s, sx: g, children: t.length ? p(n(t[t.length - 1])) : "End time" })
|
|
97269
97276
|
] }),
|
|
97270
97277
|
/* @__PURE__ */ N.jsx(
|
|
97271
97278
|
Sx,
|
|
97272
97279
|
{
|
|
97273
97280
|
disabled: s,
|
|
97274
|
-
value:
|
|
97281
|
+
value: f,
|
|
97275
97282
|
min: 0,
|
|
97276
97283
|
max: t.length - 1,
|
|
97277
|
-
onChange:
|
|
97284
|
+
onChange: h,
|
|
97278
97285
|
"aria-labelledby": "image-slider",
|
|
97279
97286
|
valueLabelDisplay: "auto",
|
|
97280
|
-
valueLabelFormat: (
|
|
97287
|
+
valueLabelFormat: (v) => p(n(t[v]))
|
|
97281
97288
|
}
|
|
97282
97289
|
),
|
|
97283
97290
|
/* @__PURE__ */ N.jsxs(
|
|
@@ -97286,14 +97293,14 @@ const Eve = Hme, kve = (t, e) => ({
|
|
|
97286
97293
|
display: "flex",
|
|
97287
97294
|
justifyContent: "center",
|
|
97288
97295
|
alignItems: "center",
|
|
97289
|
-
sx:
|
|
97296
|
+
sx: m,
|
|
97290
97297
|
gap: "12px",
|
|
97291
97298
|
children: [
|
|
97292
97299
|
/* @__PURE__ */ N.jsxs(Pt, { display: "flex", gap: "12px", children: [
|
|
97293
97300
|
/* @__PURE__ */ N.jsx(
|
|
97294
97301
|
Br,
|
|
97295
97302
|
{
|
|
97296
|
-
onClick: () =>
|
|
97303
|
+
onClick: () => w(-10),
|
|
97297
97304
|
variant: "action",
|
|
97298
97305
|
disabled: s || t.length === 0,
|
|
97299
97306
|
children: /* @__PURE__ */ N.jsx(Qoe, {})
|
|
@@ -97302,7 +97309,7 @@ const Eve = Hme, kve = (t, e) => ({
|
|
|
97302
97309
|
/* @__PURE__ */ N.jsx(
|
|
97303
97310
|
Br,
|
|
97304
97311
|
{
|
|
97305
|
-
onClick: () =>
|
|
97312
|
+
onClick: () => w(-1),
|
|
97306
97313
|
variant: "action",
|
|
97307
97314
|
disabled: s || t.length === 0,
|
|
97308
97315
|
children: /* @__PURE__ */ N.jsx(Foe, {})
|
|
@@ -97313,7 +97320,7 @@ const Eve = Hme, kve = (t, e) => ({
|
|
|
97313
97320
|
/* @__PURE__ */ N.jsx(
|
|
97314
97321
|
Br,
|
|
97315
97322
|
{
|
|
97316
|
-
onClick: () =>
|
|
97323
|
+
onClick: () => w(1),
|
|
97317
97324
|
variant: "action",
|
|
97318
97325
|
disabled: s || t.length === 0,
|
|
97319
97326
|
children: /* @__PURE__ */ N.jsx(zoe, {})
|
|
@@ -97322,7 +97329,7 @@ const Eve = Hme, kve = (t, e) => ({
|
|
|
97322
97329
|
/* @__PURE__ */ N.jsx(
|
|
97323
97330
|
Br,
|
|
97324
97331
|
{
|
|
97325
|
-
onClick: () =>
|
|
97332
|
+
onClick: () => w(10),
|
|
97326
97333
|
variant: "action",
|
|
97327
97334
|
disabled: s || t.length === 0,
|
|
97328
97335
|
children: /* @__PURE__ */ N.jsx(Yoe, {})
|