prometeo-design-system 2.5.3 → 2.5.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.
Files changed (58) 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-DV3gwvqE.js → CardProfile-DA-HDUpi.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 +3 -3
  9. package/dist/DialogModal.es.js +1 -1
  10. package/dist/DrawerDesktop.es.js +2 -2
  11. package/dist/DrawerMobile.es.js +1 -3
  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/Image.es.js +1 -1
  16. package/dist/{ImageGallery-DnoRTpCr.js → ImageGallery-BeADef_g.js} +2 -2
  17. package/dist/ImageGallery.es.js +1 -1
  18. package/dist/{Input-PNwH7rb6.js → Input-DwIAUqcc.js} +2 -2
  19. package/dist/Input.es.js +1 -1
  20. package/dist/InputFormik.es.js +1 -1
  21. package/dist/InputMultiple.es.js +1 -1
  22. package/dist/LayoutGeneric-B6E-yOYJ.js +26 -0
  23. package/dist/LayoutGeneric.es.js +1 -1
  24. package/dist/Logo.es.js +1 -1
  25. package/dist/Menu.es.js +1 -1
  26. package/dist/OtpInput.es.js +1 -1
  27. package/dist/Pagination.es.js +1 -1
  28. package/dist/ProfilePictureUpload.es.js +1 -1
  29. package/dist/ProgressBar.es.js +1 -1
  30. package/dist/SegmentedButton.es.js +1 -1
  31. package/dist/Select-C1MxM6yq.js +813 -0
  32. package/dist/Select.es.js +1 -1
  33. package/dist/SelectFormik.es.js +55 -29
  34. package/dist/SelectFormikLegacy.es.js +1 -1
  35. package/dist/SelectSearch.es.js +167 -132
  36. package/dist/Skeleton.es.js +1 -1
  37. package/dist/Spinner.es.js +1 -1
  38. package/dist/Steps.es.js +1 -1
  39. package/dist/SwipeContainer.es.js +1 -1
  40. package/dist/Switch.es.js +1 -1
  41. package/dist/TabLinks.es.js +1 -1
  42. package/dist/Table.es.js +1 -1
  43. package/dist/TextArea.es.js +1 -1
  44. package/dist/Toast.es.js +2 -2
  45. package/dist/ToastProvider.es.js +1 -1
  46. package/dist/Tooltip.es.js +1 -1
  47. package/dist/components/Autocomplete/useAutocomplete.d.ts +14 -6
  48. package/dist/components/Select/Select.d.ts +19 -7
  49. package/dist/components/SelectFormik/SelectFormik.d.ts +5 -3
  50. package/dist/components/SelectSearch/SelectSearch.d.ts +12 -4
  51. package/dist/components/Sidebar/context/SidebarContext.d.ts +2 -0
  52. package/dist/components/TabSwitch/TabSwitch.d.ts +1 -1
  53. package/dist/index.d.ts +1 -1
  54. package/dist/{jsx-runtime-DKDX3adD.js → jsx-runtime-ByW6EXIE.js} +96 -94
  55. package/dist/prometeo-design-system.es.js +141 -134
  56. package/package.json +1 -1
  57. package/dist/LayoutGeneric-p4Pll4Cm.js +0 -24
  58. package/dist/Select-C-aLaiJu.js +0 -804
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-DV3gwvqE.js";
1
+ import { C as a } from "./CardProfile-DA-HDUpi.js";
2
2
  export {
3
3
  a as CardProfile
4
4
  };
@@ -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 h } from "./Icons.es.js";
3
3
  import { memo as x, useId as o, useRef as m } from "react";
4
4
  const n = ({ className: s, disabled: e, ...t }) => {
@@ -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
- import { I as wn } from "./Input-PNwH7rb6.js";
4
+ import { I as wn } from "./Input-DwIAUqcc.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 o } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as o } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { forwardRef as h, memo as s, useState as D, useRef as p, useCallback as n, useImperativeHandle as R } from "react";
3
3
  import { c as j } from "./cn-B6yFEsav.js";
4
4
  const C = h(
@@ -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 g } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as g } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as G } from "./cn-B6yFEsav.js";
3
3
  import { forwardRef as J, useState as _, useRef as h, useEffect as F, useCallback as c, useMemo as q, useImperativeHandle as K } from "react";
4
4
  import { createPortal as Q } from "react-dom";
@@ -25,7 +25,6 @@ const W = 44, U = "height 0.5s cubic-bezier(0.32, 0.72, 0, 1)", ee = J((a, o) =>
25
25
  }), B = ({ children: a, attachToParent: o = !1, className: x, snap: s, snapPoints: f = ["60%"], setSnap: d, hideOnClose: v = !1, header: w, modal: O = !1, closeOnOverlayClick: E = !1 }) => {
26
26
  const r = h(null), C = h(null), Y = h(null), u = h(null), p = h(null), b = c(() => {
27
27
  if (!r.current) return [];
28
- console.log(f, "snapPoints");
29
28
  const e = o && r.current.parentElement?.offsetHeight || window.innerHeight;
30
29
  return f?.map((t) => typeof t == "string" && t.endsWith("%") ? parseFloat(t) > 100 ? e : parseFloat(t) / 100 * e : typeof t == "string" && t.endsWith("px") ? parseFloat(t) : typeof t == "number" && t >= 0 && t <= 1 ? t * e : typeof t == "number" ? t : 0) || [];
31
30
  }, [f, o]), M = c((e, t) => {
@@ -58,7 +57,6 @@ const W = 44, U = "height 0.5s cubic-bezier(0.32, 0.72, 0, 1)", ee = J((a, o) =>
58
57
  y();
59
58
  }, [y]), F(() => {
60
59
  if (!r.current || !s) return;
61
- console.log(s, "new snap");
62
60
  const e = o && r.current.parentElement?.offsetHeight || window.innerHeight;
63
61
  let t = 0;
64
62
  typeof s == "string" && s.endsWith("%") ? parseFloat(s) <= 0 ? t = v ? 0 : W : t = parseFloat(s) / 100 * e : typeof s == "string" && s.endsWith("px") ? t = parseFloat(s) : typeof s == "number" && (s >= 0 && s <= 1 ? t = s * e : t = s), S(t);
@@ -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 l } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as l } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as s } from "./cn-B6yFEsav.js";
3
3
  import { motion as m } from "framer-motion";
4
4
  import { memo as n } 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
  import { memo as v } from "react";
3
3
  const l = (t) => v(t), o = l(({
4
4
  size: t = 24,
package/dist/Image.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 { memo as x, useState as E, useRef as R, useCallback as N, useEffect as b } from "react";
3
3
  import M from "./Spinner.es.js";
4
4
  import { c as d } from "./cn-B6yFEsav.js";
@@ -1,8 +1,8 @@
1
- import { j as t } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as t } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import ee, { memo as D, forwardRef as L, useRef as v, useEffect as te, useCallback as i, useState as R, useImperativeHandle as ne } from "react";
3
3
  import { c as X } from "./cn-B6yFEsav.js";
4
4
  import { u as re } from "./useDragScroll-CHN9OMwn.js";
5
- import { B as S } from "./Button-DsbEyjth.js";
5
+ import { B as S } from "./Button-Bc0LYLfg.js";
6
6
  import { Icons as M } from "./Icons.es.js";
7
7
  const O = D(L(({ images: n, className: c }, r) => {
8
8
  const { ref: d, bind: a } = re({
@@ -1,4 +1,4 @@
1
- import { I as p } from "./ImageGallery-DnoRTpCr.js";
1
+ import { I as p } from "./ImageGallery-BeADef_g.js";
2
2
  import { useRef as u, useCallback as r } from "react";
3
3
  const g = () => {
4
4
  const e = u(null), t = r((a) => {
@@ -1,10 +1,10 @@
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 R } from "./Icons.es.js";
3
3
  import { c as t } from "./cn-B6yFEsav.js";
4
4
  import { useRef as $, useLayoutEffect as be, memo as he, forwardRef as we, useState as S, useCallback as ye, useEffect as k } from "react";
5
5
  import { useDebounce as je } from "use-debounce";
6
6
  import Ce from "./Spinner.es.js";
7
- import { B as ze } from "./Button-DsbEyjth.js";
7
+ import { B as ze } from "./Button-Bc0LYLfg.js";
8
8
  const Ie = (s) => {
9
9
  let e = s;
10
10
  for (; e && e !== document.body; ) {
package/dist/Input.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { I as f } from "./Input-PNwH7rb6.js";
1
+ import { I as f } from "./Input-DwIAUqcc.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 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";
@@ -0,0 +1,26 @@
1
+ import { j as n } from "./jsx-runtime-ByW6EXIE.js";
2
+ import { useRef as o, createContext as c, useContext as l, memo as d } from "react";
3
+ const a = c(null), x = ({ children: e }) => {
4
+ const r = o(null), s = o(null), u = (t) => {
5
+ t.current && r && (r.current = t.current);
6
+ }, i = (t) => {
7
+ t.current && s && (s.current = t.current);
8
+ };
9
+ return /* @__PURE__ */ n.jsx(a.Provider, { value: { primarySidebarRef: r, registerPrimarySidebar: u, tabBarRef: s, registerTabBar: i }, children: e });
10
+ }, S = () => {
11
+ const e = l(a);
12
+ if (!e)
13
+ throw new Error("useSidebarContext must be used within a SidebarProvider");
14
+ return e;
15
+ }, f = ({
16
+ children: e,
17
+ sidebar: r
18
+ }) => /* @__PURE__ */ n.jsxs("div", { className: "flex h-screen w-full bg-neutral-default-default", children: [
19
+ /* @__PURE__ */ n.jsx(x, { children: r }),
20
+ /* @__PURE__ */ n.jsx("main", { className: "w-full h-full overflow-y-auto", children: e })
21
+ ] }), h = d(f);
22
+ export {
23
+ h as L,
24
+ x as S,
25
+ S as u
26
+ };
@@ -1,4 +1,4 @@
1
- import { L as f } from "./LayoutGeneric-p4Pll4Cm.js";
1
+ import { L as f } from "./LayoutGeneric-B6E-yOYJ.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 ge } from "./Icons.es.js";
3
3
  import { c as $ } 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 n } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as n } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { motion as s } from "framer-motion";
3
3
  import { memo as T, useRef as b, useLayoutEffect as A } from "react";
4
4
  import M 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(
@@ -1,4 +1,4 @@
1
- import { j as u } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as u } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as s } from "./cn-B6yFEsav.js";
3
3
  import z, { useState as M, useMemo as C, useEffect as L } from "react";
4
4
  import { motion as E } from "framer-motion";