prometeo-design-system 2.2.2 → 2.3.0

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.
Files changed (51) hide show
  1. package/dist/Avatar.es.js +1 -1
  2. package/dist/{Button-DsbEyjth.js → Button-Bc0LYLfg.js} +1 -1
  3. package/dist/Button.es.js +1 -1
  4. package/dist/{CardProfile-BhFog7j5.js → CardProfile-BiYr6kY9.js} +1 -1
  5. package/dist/CardProfile.es.js +1 -1
  6. package/dist/CheckBox.es.js +1 -1
  7. package/dist/CheckboxFormik.es.js +1 -1
  8. package/dist/DatePicker.es.js +2 -2
  9. package/dist/DialogModal.es.js +1 -1
  10. package/dist/DrawerDesktop.es.js +2 -2
  11. package/dist/DrawerMobile.es.js +1 -1
  12. package/dist/DropZone.es.js +1 -1
  13. package/dist/Header.es.js +1 -1
  14. package/dist/Icons.es.js +1 -1
  15. package/dist/Input.es.js +1 -1
  16. package/dist/InputFormik.es.js +1 -1
  17. package/dist/InputMultiple.es.js +1 -1
  18. package/dist/{LayoutGeneric-p4Pll4Cm.js → LayoutGeneric-jDE96L2N.js} +1 -1
  19. package/dist/LayoutGeneric.es.js +1 -1
  20. package/dist/Logo.es.js +1 -1
  21. package/dist/Menu.es.js +1 -1
  22. package/dist/OtpInput.es.js +1 -1
  23. package/dist/Pagination.es.js +1 -1
  24. package/dist/ProfilePictureUpload.es.js +1 -1
  25. package/dist/ProgressBar.es.js +1 -1
  26. package/dist/Select.es.js +1 -1
  27. package/dist/SelectFormik.es.js +1 -1
  28. package/dist/Skeleton.es.js +33 -32
  29. package/dist/Spinner.es.js +1 -1
  30. package/dist/Steps.es.js +1 -1
  31. package/dist/SwipeContainer.es.js +1 -1
  32. package/dist/Switch.es.js +1 -1
  33. package/dist/TabLinks.es.js +1 -1
  34. package/dist/Table.es.js +1 -1
  35. package/dist/TextArea.es.js +1 -1
  36. package/dist/Tooltip.es.js +1 -1
  37. package/dist/components/Image/GalleryPreview.d.ts +8 -0
  38. package/dist/components/Image/Image.d.ts +23 -0
  39. package/dist/components/Image/ImageGallery.d.ts +18 -0
  40. package/dist/components/Image/LightBox.d.ts +14 -0
  41. package/dist/components/Image/index.d.ts +5 -0
  42. package/dist/components/Image/useImageGallery.d.ts +10 -0
  43. package/dist/exports/Image.d.ts +1 -0
  44. package/dist/exports/ImageGallery.d.ts +1 -0
  45. package/dist/index.d.ts +4 -0
  46. package/dist/{jsx-runtime-DKDX3adD.js → jsx-runtime-ByW6EXIE.js} +96 -94
  47. package/dist/pages/ImagesPage.d.ts +2 -0
  48. package/dist/preview/ImagePreview.d.ts +2 -0
  49. package/dist/prometeo-design-system.css +1 -1
  50. package/dist/prometeo-design-system.es.js +742 -313
  51. package/package.json +9 -1
package/dist/Avatar.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as t } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as t } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as p } from "./cn-B6yFEsav.js";
3
3
  import { motion as u } from "framer-motion";
4
4
  import { useState as f } from "react";
@@ -1,4 +1,4 @@
1
- import { j as f } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as f } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as g } from "./cn-B6yFEsav.js";
3
3
  import { clsx as B } from "clsx";
4
4
  import { useAnimationControls as E, motion as j } from "framer-motion";
package/dist/Button.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as f } from "./Button-DsbEyjth.js";
1
+ import { B as f } from "./Button-Bc0LYLfg.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as l } from "./cn-B6yFEsav.js";
3
3
  import { motion as i, AnimatePresence as u } from "framer-motion";
4
4
  import m from "./Avatar.es.js";
@@ -1,4 +1,4 @@
1
- import { C as a } from "./CardProfile-BhFog7j5.js";
1
+ import { C as a } from "./CardProfile-BiYr6kY9.js";
2
2
  export {
3
3
  a as CardProfile
4
4
  };
@@ -1,4 +1,4 @@
1
- import { j as t } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as t } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { Icons as l } from "./Icons.es.js";
3
3
  import { useId as o, useRef as d } from "react";
4
4
  const k = ({ className: s, disabled: e, ...a }) => {
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { Icons as x } from "./Icons.es.js";
3
3
  import { c as r } from "./cn-B6yFEsav.js";
4
4
  import { useField as h, ErrorMessage as p } from "formik";
@@ -1,11 +1,11 @@
1
- import { j as $ } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as $ } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import m, { createContext as mn, useContext as hn, useCallback as q, useRef as Se, useLayoutEffect as yn, useState as he, useEffect as _e, useMemo as fe, memo as pn } from "react";
3
3
  import { InputMultiple as gn } from "./InputMultiple.es.js";
4
4
  import wn from "./Input.es.js";
5
5
  import { createPortal as bn } from "react-dom";
6
6
  import { Icons as Mt } from "./Icons.es.js";
7
7
  import { c as Be } from "./cn-B6yFEsav.js";
8
- import { B as vt } from "./Button-DsbEyjth.js";
8
+ import { B as vt } from "./Button-Bc0LYLfg.js";
9
9
  function Mn(e, t, n = "long") {
10
10
  return new Intl.DateTimeFormat("en-US", {
11
11
  // Enforces engine to render the time. Without the option JavaScriptCore omits it.
@@ -1,4 +1,4 @@
1
- import { j as t } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as t } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { forwardRef as u, useState as p, useImperativeHandle as f, useRef as g } from "react";
3
3
  import { c as i } from "./cn-B6yFEsav.js";
4
4
  const x = u(({
@@ -1,6 +1,6 @@
1
- import { j as s } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as s } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as b } from "./cn-B6yFEsav.js";
3
- import { c as y, B as h } from "./Button-DsbEyjth.js";
3
+ import { c as y, B as h } from "./Button-Bc0LYLfg.js";
4
4
  import { createPortal as g } from "react-dom";
5
5
  import { Icons as C } from "./Icons.es.js";
6
6
  import { forwardRef as k, useState as j, useRef as x, useEffect as v, useCallback as l, useImperativeHandle as D } from "react";
@@ -1,4 +1,4 @@
1
- import { j as d } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as d } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as T } from "./cn-B6yFEsav.js";
3
3
  import { forwardRef as q, useState as J, useRef as v, useEffect as M, useCallback as l, useMemo as B, useImperativeHandle as K } from "react";
4
4
  import { createPortal as Q } from "react-dom";
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as i } from "./cn-B6yFEsav.js";
3
3
  import R, { useCallback as w } from "react";
4
4
  import { useDropzone as z } from "react-dropzone";
package/dist/Header.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as x } from "./cn-B6yFEsav.js";
3
3
  import { motion as m } from "framer-motion";
4
4
  import { memo as i } from "react";
package/dist/Icons.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as h } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as h } from "./jsx-runtime-ByW6EXIE.js";
2
2
  const v = ({
3
3
  size: t = 24,
4
4
  className: q,
package/dist/Input.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as t } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as t } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { Icons as J } from "./Icons.es.js";
3
3
  import { c as e } from "./cn-B6yFEsav.js";
4
4
  import { memo as xe, useState as H, useRef as K, useCallback as me, useEffect as L, useLayoutEffect as ge } from "react";
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as u } from "./cn-B6yFEsav.js";
3
3
  import { FastField as O, ErrorMessage as q } from "formik";
4
4
  import { memo as G, useState as I, useRef as H, useCallback as y, useLayoutEffect as J } from "react";
@@ -1,4 +1,4 @@
1
- import { j as r } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as r } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { Icons as C } from "./Icons.es.js";
3
3
  import { c as d } from "./cn-B6yFEsav.js";
4
4
  import S, { useRef as M, useState as x, useCallback as T, useEffect as ee } from "react";
@@ -1,4 +1,4 @@
1
- import { j as t } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as t } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { useRef as a, createContext as i, useContext as u, memo as c } from "react";
3
3
  const o = i(null), l = ({ children: e }) => {
4
4
  const r = a(null), s = (n) => {
@@ -1,4 +1,4 @@
1
- import { L as f } from "./LayoutGeneric-p4Pll4Cm.js";
1
+ import { L as f } from "./LayoutGeneric-jDE96L2N.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/dist/Logo.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { Icons as t } from "./Icons.es.js";
3
3
  const s = () => /* @__PURE__ */ e.jsxs("div", { className: "container-logo flex items-center justify-center gap-1 bg-gradient-to-br from-[#312C85] to-[#1E1A4D] rounded-md min-w-[185px]", children: [
4
4
  /* @__PURE__ */ e.jsx(t.TicketFilled, { size: 28, className: "rotate-140 text-primary-medium-pressed icon-logo" }),
package/dist/Menu.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as r } from "./cn-B6yFEsav.js";
3
3
  import { AnimatePresence as n, motion as o } from "framer-motion";
4
4
  const s = ({ menuRef: t, children: a, className: i }) => /* @__PURE__ */ e.jsx("div", { ref: t, className: r("flex bg-neutral-default-default absolute bottom-10 left-24 border-1 border-neutral-strong-default h-auto w-60 rounded-md px-2", i), children: /* @__PURE__ */ e.jsx(n, { mode: "wait", children: /* @__PURE__ */ e.jsx(
@@ -1,4 +1,4 @@
1
- import { j as p } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as p } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { Icons as ve } from "./Icons.es.js";
3
3
  import { c as L } from "./cn-B6yFEsav.js";
4
4
  import * as n from "react";
@@ -1,4 +1,4 @@
1
- import { j as t } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as t } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { motion as a } from "framer-motion";
3
3
  function h({
4
4
  currentPage: i = 1,
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { motion as i, AnimatePresence as E } from "framer-motion";
3
3
  import { useRef as v, useState as R, useLayoutEffect as A } from "react";
4
4
  import H from "./Avatar.es.js";
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as x } from "./cn-B6yFEsav.js";
3
3
  import u from "react";
4
4
  const j = u.forwardRef(
package/dist/Select.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as t } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as t } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { Icons as w } from "./Icons.es.js";
3
3
  import { c as o } from "./cn-B6yFEsav.js";
4
4
  import { memo as se, useState as y, useRef as re, useEffect as oe } from "react";
@@ -1,4 +1,4 @@
1
- import { j as t } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as t } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { Icons as h } from "./Icons.es.js";
3
3
  import { c as i } from "./cn-B6yFEsav.js";
4
4
  import { useField as P, ErrorMessage as M } from "formik";
@@ -1,10 +1,28 @@
1
- import { j as x } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as x } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as P } from "./cn-B6yFEsav.js";
3
- import { useRef as $, useLayoutEffect as B } from "react";
4
- const v = (g) => {
5
- const e = $(null), { debugMode: b = !1, className: y = "", children: p, shape: f = "rounded", animation: i = "shimmer", onlyContainer: m = !1 } = g;
6
- let d = "255, 255, 255", u = "255, 255, 255, 0.1";
7
- B(() => {
3
+ import { useRef as $, useCallback as B, useLayoutEffect as E } from "react";
4
+ const A = (b) => {
5
+ const e = $(null), { debugMode: y = !1, className: p = "", children: f, shape: h = "rounded", animation: u = "shimmer", onlyContainer: l = !1 } = b;
6
+ let i = "255, 255, 255", m = "255, 255, 255, 0.1";
7
+ const g = B(() => {
8
+ if (!l && e.current)
9
+ switch (u) {
10
+ case "shimmer":
11
+ e.current.classList.add("skeleton-shimmer-animation");
12
+ const n = m.split(",").map(Number);
13
+ n && n.length >= 3 && (e.current.style.setProperty("--shimmer-color-r", n[0].toString()), e.current.style.setProperty("--shimmer-color-g", n[1].toString()), e.current.style.setProperty("--shimmer-color-b", n[2].toString()), e.current.style.setProperty("--shimmer-color-a", n[3].toString()));
14
+ break;
15
+ case "none":
16
+ e.current.style.animation = "none";
17
+ break;
18
+ case "border":
19
+ e.current.classList.add("skeleton-border-animation"), e.current.style.backgroundColor = "transparent";
20
+ const c = i.match(/\d+/g);
21
+ c && c.length >= 3 && (e.current.style.setProperty("--border-color-r", c[0]), e.current.style.setProperty("--border-color-g", c[1]), e.current.style.setProperty("--border-color-b", c[2]));
22
+ break;
23
+ }
24
+ }, [u, m, i, l]);
25
+ E(() => {
8
26
  if (e.current) {
9
27
  const n = (a) => {
10
28
  let r = a;
@@ -25,28 +43,11 @@ const v = (g) => {
25
43
  const o = t.getImageData(0, 0, 1, 1).data;
26
44
  return [o[0], o[1], o[2]];
27
45
  }, C = n(e.current.parentElement), s = c(C), S = s.reduce((a, r) => a + r, 0) < 382;
28
- let l;
29
- S ? l = `rgb(${s[0] + 10}, ${s[1] + 10}, ${s[2] + 10})` : (l = `rgb(${s[0] - 30}, ${s[1] - 30}, ${s[2] - 30})`, d = "115,115,115", u = "255,255,255, 0.4"), m && (l = "transparent", e.current.style.animation = "none"), e.current.style.backgroundColor = l, h();
46
+ let d;
47
+ S ? d = `rgb(${s[0] + 10}, ${s[1] + 10}, ${s[2] + 10})` : (d = `rgb(${s[0] - 30}, ${s[1] - 30}, ${s[2] - 30})`, i = "115,115,115", m = "255,255,255, 0.4"), l && (d = "transparent", e.current.style.animation = "none"), e.current.style.backgroundColor = d, g();
30
48
  }
31
- }, [i]);
32
- const h = () => {
33
- if (!m && e.current)
34
- switch (i) {
35
- case "shimmer":
36
- e.current.classList.add("skeleton-shimmer-animation");
37
- const n = u.split(",").map(Number);
38
- n && n.length >= 3 && (e.current.style.setProperty("--shimmer-color-r", n[0].toString()), e.current.style.setProperty("--shimmer-color-g", n[1].toString()), e.current.style.setProperty("--shimmer-color-b", n[2].toString()), e.current.style.setProperty("--shimmer-color-a", n[3].toString()));
39
- break;
40
- case "none":
41
- e.current.style.animation = "none";
42
- break;
43
- case "border":
44
- e.current.classList.add("skeleton-border-animation"), e.current.style.backgroundColor = "transparent";
45
- const c = d.match(/\d+/g);
46
- c && c.length >= 3 && (e.current.style.setProperty("--border-color-r", c[0]), e.current.style.setProperty("--border-color-g", c[1]), e.current.style.setProperty("--border-color-b", c[2]));
47
- break;
48
- }
49
- }, k = {
49
+ }, [m, i, l, g]);
50
+ const k = {
50
51
  circle: "rounded-full aspect-square",
51
52
  square: "rounded-none",
52
53
  rounded: "rounded"
@@ -56,16 +57,16 @@ const v = (g) => {
56
57
  {
57
58
  ref: e,
58
59
  className: P(
59
- b && " border-red-600/20 border",
60
- y,
60
+ y && " border-red-600/20 border",
61
+ p,
61
62
  "skeleton-container",
62
- k[f]
63
+ k[h]
63
64
  ),
64
- children: p
65
+ children: f
65
66
  },
66
67
  `skeleton-${Math.random().toFixed(10)}`
67
68
  );
68
69
  };
69
70
  export {
70
- v as Skeleton
71
+ A as Skeleton
71
72
  };
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { ClipLoader as l, SyncLoader as m, HashLoader as p, GridLoader as x, DotLoader as j, BounceLoader as f } from "react-spinners";
3
3
  import { c as L } from "./cn-B6yFEsav.js";
4
4
  const y = ({
package/dist/Steps.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as j } from "./cn-B6yFEsav.js";
3
3
  import { motion as r } from "framer-motion";
4
4
  import N from "react";
@@ -1,4 +1,4 @@
1
- import { j as o } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as o } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as i } from "./cn-B6yFEsav.js";
3
3
  import { useState as d, useRef as D, useEffect as L } from "react";
4
4
  const O = ({
package/dist/Switch.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as n } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as n } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as r } from "./cn-B6yFEsav.js";
3
3
  import { useRef as p } from "react";
4
4
  import { motion as l } from "framer-motion";
@@ -1,4 +1,4 @@
1
- import { j as a } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as a } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { motion as x } from "framer-motion";
3
3
  import { memo as b } from "react";
4
4
  import { c as r } from "./cn-B6yFEsav.js";
package/dist/Table.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as r } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as r } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as l } from "./cn-B6yFEsav.js";
3
3
  import * as o from "react";
4
4
  const n = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx("div", { className: "w-full", children: /* @__PURE__ */ r.jsx(
@@ -1,4 +1,4 @@
1
- import { j as y } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as y } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as C } from "./cn-B6yFEsav.js";
3
3
  import * as s from "react";
4
4
  function M({
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { AnimatePresence as f, motion as n } from "framer-motion";
3
3
  import { useState as p, cloneElement as x } from "react";
4
4
  import { Icons as b } from "./Icons.es.js";
@@ -0,0 +1,8 @@
1
+ import { ReactElement, default as React } from 'react';
2
+ import { ImageProps } from './Image';
3
+ interface GalleryPreviewProps {
4
+ images?: ReactElement<ImageProps>[];
5
+ className?: string;
6
+ }
7
+ declare const GalleryPreview: React.NamedExoticComponent<GalleryPreviewProps & React.RefAttributes<unknown>>;
8
+ export default GalleryPreview;
@@ -0,0 +1,23 @@
1
+ import { SpinnerProps } from '../Spinner/Spinner';
2
+ import { ImageGalleryHandle } from './ImageGallery';
3
+ export interface ImageProps {
4
+ src: string;
5
+ alt: string;
6
+ width?: number | string;
7
+ height?: number | string;
8
+ className?: string;
9
+ lazy?: boolean;
10
+ showLoader?: boolean;
11
+ loaderProps?: {
12
+ loaderType?: 'skeleton' | 'clasic';
13
+ variant?: SpinnerProps['variant'];
14
+ speedMultiplier?: SpinnerProps['speedMultiplier'];
15
+ className?: string;
16
+ size?: SpinnerProps['size'];
17
+ backdropClassName?: string;
18
+ };
19
+ allowPreview?: boolean;
20
+ galleryRef?: React.RefObject<ImageGalleryHandle | null>;
21
+ }
22
+ declare const CustomImage: import('react').MemoExoticComponent<(props: ImageProps) => import("react/jsx-runtime").JSX.Element>;
23
+ export default CustomImage;
@@ -0,0 +1,18 @@
1
+ import { ReactElement } from 'react';
2
+ import { ImageProps } from './Image';
3
+ export interface ImageGalleryProps {
4
+ children?: ReactElement<ImageProps> | ReactElement<ImageProps>[];
5
+ className?: string;
6
+ lightboxClassName?: string;
7
+ showThumbnails?: boolean;
8
+ thumbnailsClassName?: string;
9
+ }
10
+ export interface ImageGalleryHandle {
11
+ openLightbox: (index?: number) => void;
12
+ closeLightbox: () => void;
13
+ isOpen: boolean;
14
+ addImage: (image: ImageProps) => void;
15
+ images: ImageProps[];
16
+ }
17
+ declare const ImageGallery: import('react').ForwardRefExoticComponent<ImageGalleryProps & import('react').RefAttributes<ImageGalleryHandle>>;
18
+ export default ImageGallery;
@@ -0,0 +1,14 @@
1
+ import { ImageProps } from './Image';
2
+ interface LightBoxProps {
3
+ images: ImageProps[];
4
+ lightboxClassName?: string;
5
+ closeLightbox: () => void;
6
+ showThumbnails?: boolean;
7
+ thumbnailsClassName?: string;
8
+ currentIndex: number;
9
+ goToNext: () => void;
10
+ goToPrevious: () => void;
11
+ goToIndex: (index: number) => void;
12
+ }
13
+ declare const LightBox: import('react').MemoExoticComponent<({ images, lightboxClassName, closeLightbox, showThumbnails, thumbnailsClassName, currentIndex, goToNext, goToPrevious, goToIndex }: LightBoxProps) => import("react/jsx-runtime").JSX.Element | null>;
14
+ export default LightBox;
@@ -0,0 +1,5 @@
1
+ export { default as Image } from './Image';
2
+ export { default as ImageGallery } from './ImageGallery';
3
+ export { useImageGallery } from './useImageGallery';
4
+ export type { ImageProps } from './Image';
5
+ export type { ImageGalleryHandle } from './ImageGallery';
@@ -0,0 +1,10 @@
1
+ import { ImageGalleryHandle } from './ImageGallery';
2
+ import { ImageProps } from './Image';
3
+ export declare const useImageGallery: () => {
4
+ isOpen: () => boolean;
5
+ openLightbox: () => void;
6
+ closeLightbox: () => void;
7
+ galleryRef: import('react').RefObject<ImageGalleryHandle | null>;
8
+ addImage: (image: ImageProps) => void;
9
+ images: () => ImageProps[];
10
+ };
@@ -0,0 +1 @@
1
+ export { default } from '../components/Image/Image';
@@ -0,0 +1 @@
1
+ export { default } from '../components/Image/ImageGallery';
package/dist/index.d.ts CHANGED
@@ -30,6 +30,8 @@ export { default as Tooltip } from './components/Tooltip/Tootip';
30
30
  export { default as Skeleton } from './components/Skeleton/Skeleton';
31
31
  export { default as SegmentedButton } from './components/SegmentedButton/SegmentedButton';
32
32
  export { default as LayoutGeneric } from './components/Layout/LayoutGeneric';
33
+ export { default as ImageGallery } from './components/Image/ImageGallery';
34
+ export { default as Image } from './components/Image/Image';
33
35
  export * from './components/Sidebar';
34
36
  export { SecondaryBar } from './components/Sidebar/SecondaryBar/SecondaryBar';
35
37
  export { Badge } from './components/Sidebar/components/badge';
@@ -81,4 +83,6 @@ export type { SwitchProps } from './components/Switch/Switch';
81
83
  export type { SkeletonProps } from './components/Skeleton/Skeleton';
82
84
  export type { SegmentedButtonProps } from './components/SegmentedButton/SegmentedButton';
83
85
  export type { DatePickerProps } from './components/DatePicker/DatePicker';
86
+ export type { ImageProps } from './components/Image/Image';
87
+ export type { ImageGalleryProps } from './components/Image/ImageGallery';
84
88
  export { Icons } from './Icons/Icons';