@conboai/storybook.components 0.4.5 → 0.4.6

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.
@@ -97448,20 +97448,20 @@ const A3e = $me, D3e = (e, t) => ({
97448
97448
  clearFrameDetails: f,
97449
97449
  fetchFrameDetails: b
97450
97450
  }) => {
97451
- const [g, p] = $e(0), [m, v] = $e(!1), [y, C] = $e(!1), E = N3e(i), w = B3e(i), k = Xr(!1), L = Xr(null), _ = Xr(null), B = (V) => {
97451
+ const [g, p] = $e(0), [m, v] = $e(!1), [y, C] = $e(!1), E = N3e(i), w = B3e(i), k = Xr(!1), L = Xr(null), _ = Xr(null), B = (z) => {
97452
97452
  _.current && clearTimeout(_.current), _.current = setTimeout(() => {
97453
- r && (r(e[V]), b && b(e[V]));
97453
+ r && (r(e[z]), b && b(e[z]));
97454
97454
  }, 300);
97455
- }, O = (V) => {
97456
- p((j) => {
97457
- const F = j + V;
97458
- return F < 0 ? 0 : F >= e.length ? e.length - 1 : (f && f(), B(F), F);
97455
+ }, O = (z) => {
97456
+ p((K) => {
97457
+ const Y = K + z;
97458
+ return Y < 0 ? 0 : Y >= e.length ? e.length - 1 : (f && f(), B(Y), Y);
97459
97459
  });
97460
- }, D = (V) => {
97460
+ }, D = (z) => {
97461
97461
  L.current && clearInterval(L.current), L.current = setInterval(() => {
97462
- p((j) => {
97463
- const F = j + V;
97464
- return F < 0 ? 0 : F >= e.length ? e.length - 1 : (r && (r(e[F]), b && b(e[F])), F);
97462
+ p((K) => {
97463
+ const Y = K + z;
97464
+ return Y < 0 ? 0 : Y >= e.length ? e.length - 1 : (r && (r(e[Y]), b && b(e[Y])), Y);
97465
97465
  });
97466
97466
  }, 1e3);
97467
97467
  };
@@ -97474,16 +97474,19 @@ const A3e = $me, D3e = (e, t) => ({
97474
97474
  ..._3e,
97475
97475
  ...l
97476
97476
  }, M = Tr(
97477
- (V, j) => {
97478
- if (!V) return null;
97479
- u && u(V, j);
97477
+ (z, K) => {
97478
+ u && u(z, K);
97480
97479
  },
97481
97480
  [u]
97482
97481
  ), x = () => {
97483
- C((V) => (v(!1), !V));
97482
+ C((z) => (v(!1), !z));
97484
97483
  }, T = () => {
97485
- v((V) => (C(!1), !V));
97486
- }, R = (V) => Jt(V).format("DD/MM/YYYY, HH:mm:ss"), P = i || e.length === 0 || m || y;
97484
+ v((z) => (C(!1), !z));
97485
+ }, R = (z) => Jt(z).format("DD/MM/YYYY, HH:mm:ss"), P = i || e.length === 0 || m || y, V = (z, K) => {
97486
+ typeof K == "number" && (p(K), f && f());
97487
+ }, j = (z, K) => {
97488
+ typeof K == "number" && B(K);
97489
+ }, F = (z) => R(n(e[z]));
97487
97490
  return /* @__PURE__ */ H.jsxs(Et, { sx: I, children: [
97488
97491
  /* @__PURE__ */ H.jsxs(Et, { sx: H3e, children: [
97489
97492
  /* @__PURE__ */ H.jsx(
@@ -97523,15 +97526,11 @@ const A3e = $me, D3e = (e, t) => ({
97523
97526
  value: g,
97524
97527
  min: 0,
97525
97528
  max: e.length - 1,
97526
- onChange: (V, j) => {
97527
- typeof j == "number" && (p(j), f && f());
97528
- },
97529
- onChangeCommitted: (V, j) => {
97530
- typeof j == "number" && B(j);
97531
- },
97529
+ onChange: V,
97530
+ onChangeCommitted: j,
97532
97531
  "aria-labelledby": "image-slider",
97533
97532
  valueLabelDisplay: "auto",
97534
- valueLabelFormat: (V) => R(n(e[V]))
97533
+ valueLabelFormat: F
97535
97534
  }
97536
97535
  ),
97537
97536
  /* @__PURE__ */ H.jsxs(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conboai/storybook.components",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "main": "dist/storybook.components.mjs",
5
5
  "types": "dist/build/index.d.ts",
6
6
  "files": [