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.
- package/dist/Avatar.es.js +1 -1
- package/dist/{Button-DsbEyjth.js → Button-Bc0LYLfg.js} +1 -1
- package/dist/Button.es.js +1 -1
- package/dist/{CardProfile-DV3gwvqE.js → CardProfile-DA-HDUpi.js} +1 -1
- package/dist/CardProfile.es.js +1 -1
- package/dist/CheckBox.es.js +1 -1
- package/dist/CheckboxFormik.es.js +1 -1
- package/dist/DatePicker.es.js +3 -3
- package/dist/DialogModal.es.js +1 -1
- package/dist/DrawerDesktop.es.js +2 -2
- package/dist/DrawerMobile.es.js +1 -3
- package/dist/DropZone.es.js +1 -1
- package/dist/Header.es.js +1 -1
- package/dist/Icons.es.js +1 -1
- package/dist/Image.es.js +1 -1
- package/dist/{ImageGallery-DnoRTpCr.js → ImageGallery-BeADef_g.js} +2 -2
- package/dist/ImageGallery.es.js +1 -1
- package/dist/{Input-PNwH7rb6.js → Input-DwIAUqcc.js} +2 -2
- package/dist/Input.es.js +1 -1
- package/dist/InputFormik.es.js +1 -1
- package/dist/InputMultiple.es.js +1 -1
- package/dist/LayoutGeneric-B6E-yOYJ.js +26 -0
- package/dist/LayoutGeneric.es.js +1 -1
- package/dist/Logo.es.js +1 -1
- package/dist/Menu.es.js +1 -1
- package/dist/OtpInput.es.js +1 -1
- package/dist/Pagination.es.js +1 -1
- package/dist/ProfilePictureUpload.es.js +1 -1
- package/dist/ProgressBar.es.js +1 -1
- package/dist/SegmentedButton.es.js +1 -1
- package/dist/Select-C1MxM6yq.js +813 -0
- package/dist/Select.es.js +1 -1
- package/dist/SelectFormik.es.js +55 -29
- package/dist/SelectFormikLegacy.es.js +1 -1
- package/dist/SelectSearch.es.js +167 -132
- package/dist/Skeleton.es.js +1 -1
- package/dist/Spinner.es.js +1 -1
- package/dist/Steps.es.js +1 -1
- package/dist/SwipeContainer.es.js +1 -1
- package/dist/Switch.es.js +1 -1
- package/dist/TabLinks.es.js +1 -1
- package/dist/Table.es.js +1 -1
- package/dist/TextArea.es.js +1 -1
- package/dist/Toast.es.js +2 -2
- package/dist/ToastProvider.es.js +1 -1
- package/dist/Tooltip.es.js +1 -1
- package/dist/components/Autocomplete/useAutocomplete.d.ts +14 -6
- package/dist/components/Select/Select.d.ts +19 -7
- package/dist/components/SelectFormik/SelectFormik.d.ts +5 -3
- package/dist/components/SelectSearch/SelectSearch.d.ts +12 -4
- package/dist/components/Sidebar/context/SidebarContext.d.ts +2 -0
- package/dist/components/TabSwitch/TabSwitch.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/{jsx-runtime-DKDX3adD.js → jsx-runtime-ByW6EXIE.js} +96 -94
- package/dist/prometeo-design-system.es.js +141 -134
- package/package.json +1 -1
- package/dist/LayoutGeneric-p4Pll4Cm.js +0 -24
- package/dist/Select-C-aLaiJu.js +0 -804
package/dist/Avatar.es.js
CHANGED
package/dist/Button.es.js
CHANGED
package/dist/CardProfile.es.js
CHANGED
package/dist/CheckBox.es.js
CHANGED
package/dist/DatePicker.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { j as $ } from "./jsx-runtime-
|
|
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-
|
|
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-
|
|
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.
|
package/dist/DialogModal.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as o } from "./jsx-runtime-
|
|
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(
|
package/dist/DrawerDesktop.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as s } from "./jsx-runtime-
|
|
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-
|
|
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";
|
package/dist/DrawerMobile.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as g } from "./jsx-runtime-
|
|
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);
|
package/dist/DropZone.es.js
CHANGED
package/dist/Header.es.js
CHANGED
package/dist/Icons.es.js
CHANGED
package/dist/Image.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as n } from "./jsx-runtime-
|
|
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-
|
|
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-
|
|
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({
|
package/dist/ImageGallery.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { j as r } from "./jsx-runtime-
|
|
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-
|
|
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
package/dist/InputFormik.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
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";
|
package/dist/InputMultiple.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r } from "./jsx-runtime-
|
|
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
|
+
};
|
package/dist/LayoutGeneric.es.js
CHANGED
package/dist/Logo.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
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-
|
|
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(
|
package/dist/OtpInput.es.js
CHANGED
package/dist/Pagination.es.js
CHANGED
package/dist/ProgressBar.es.js
CHANGED