framepexls-ui-lib 0.1.15 → 0.1.16
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/BadgeCluster.js +3 -3
- package/dist/BadgeCluster.mjs +1 -1
- package/dist/ColumnSelector.js +3 -3
- package/dist/ColumnSelector.mjs +1 -1
- package/dist/Dialog.js +4 -4
- package/dist/Dialog.mjs +1 -1
- package/dist/FiltersMultiSelect.js +3 -3
- package/dist/FiltersMultiSelect.mjs +1 -1
- package/dist/Sidebar.js +5 -5
- package/dist/Sidebar.mjs +1 -1
- package/dist/StatCard.js +4 -4
- package/dist/StatCard.mjs +1 -1
- package/package.json +11 -8
package/dist/BadgeCluster.js
CHANGED
|
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(BadgeCluster_exports);
|
|
|
35
35
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
36
|
var import_react = require("react");
|
|
37
37
|
var import_react_dom = require("react-dom");
|
|
38
|
-
var
|
|
38
|
+
var import_framer_motion = require("framer-motion");
|
|
39
39
|
var import_Badge = __toESM(require("./Badge"));
|
|
40
40
|
var import_Button = __toESM(require("./Button"));
|
|
41
41
|
function BadgeCluster({
|
|
@@ -80,8 +80,8 @@ function BadgeCluster({
|
|
|
80
80
|
window.removeEventListener("resize", onResize);
|
|
81
81
|
};
|
|
82
82
|
}, [open, align]);
|
|
83
|
-
const Popover = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
84
|
-
|
|
83
|
+
const Popover = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_framer_motion.AnimatePresence, { children: open && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
84
|
+
import_framer_motion.motion.div,
|
|
85
85
|
{
|
|
86
86
|
initial: { opacity: 0, y: 6, scale: 0.98 },
|
|
87
87
|
animate: { opacity: 1, y: 0, scale: 1 },
|
package/dist/BadgeCluster.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
4
4
|
import { createPortal } from "react-dom";
|
|
5
|
-
import { AnimatePresence, motion } from "motion
|
|
5
|
+
import { AnimatePresence, motion } from "framer-motion";
|
|
6
6
|
import Badge from "./Badge";
|
|
7
7
|
import Button from "./Button";
|
|
8
8
|
function BadgeCluster({
|
package/dist/ColumnSelector.js
CHANGED
|
@@ -32,7 +32,7 @@ __export(ColumnSelector_exports, {
|
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(ColumnSelector_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
-
var
|
|
35
|
+
var import_framer_motion = require("framer-motion");
|
|
36
36
|
var import_Button = __toESM(require("./Button"));
|
|
37
37
|
var import_Input = __toESM(require("./Input"));
|
|
38
38
|
function ColumnSelector({
|
|
@@ -55,8 +55,8 @@ function ColumnSelector({
|
|
|
55
55
|
children: "Columnas"
|
|
56
56
|
}
|
|
57
57
|
),
|
|
58
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
59
|
-
|
|
58
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_framer_motion.AnimatePresence, { children: open && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
59
|
+
import_framer_motion.motion.div,
|
|
60
60
|
{
|
|
61
61
|
initial: { opacity: 0, y: 6 },
|
|
62
62
|
animate: { opacity: 1, y: 0 },
|
package/dist/ColumnSelector.mjs
CHANGED
package/dist/Dialog.js
CHANGED
|
@@ -41,7 +41,7 @@ __export(Dialog_exports, {
|
|
|
41
41
|
module.exports = __toCommonJS(Dialog_exports);
|
|
42
42
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
43
43
|
var import_react = __toESM(require("react"));
|
|
44
|
-
var
|
|
44
|
+
var import_framer_motion = require("framer-motion");
|
|
45
45
|
var import_ActionIconButton = __toESM(require("./ActionIconButton"));
|
|
46
46
|
var import_Button = __toESM(require("./Button"));
|
|
47
47
|
const sizeToMaxW = {
|
|
@@ -124,9 +124,9 @@ function DialogBase({
|
|
|
124
124
|
if (!dismissibleBackdrop) return;
|
|
125
125
|
if (e.target === e.currentTarget) onClose();
|
|
126
126
|
};
|
|
127
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
127
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_framer_motion.AnimatePresence, { children: open && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
128
128
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
129
|
-
|
|
129
|
+
import_framer_motion.motion.div,
|
|
130
130
|
{
|
|
131
131
|
className: "fixed inset-0 z-[100] bg-black/45 backdrop-blur-sm",
|
|
132
132
|
initial: { opacity: 0 },
|
|
@@ -135,7 +135,7 @@ function DialogBase({
|
|
|
135
135
|
}
|
|
136
136
|
),
|
|
137
137
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
138
|
-
|
|
138
|
+
import_framer_motion.motion.div,
|
|
139
139
|
{
|
|
140
140
|
role: "dialog",
|
|
141
141
|
"aria-modal": "true",
|
package/dist/Dialog.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import React, { useEffect, useRef } from "react";
|
|
4
|
-
import { motion, AnimatePresence } from "motion
|
|
4
|
+
import { motion, AnimatePresence } from "framer-motion";
|
|
5
5
|
import ActionIconButton from "./ActionIconButton";
|
|
6
6
|
import Button from "./Button";
|
|
7
7
|
const sizeToMaxW = {
|
|
@@ -34,7 +34,7 @@ __export(FiltersMultiSelect_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(FiltersMultiSelect_exports);
|
|
35
35
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
36
|
var import_react = __toESM(require("react"));
|
|
37
|
-
var
|
|
37
|
+
var import_framer_motion = require("framer-motion");
|
|
38
38
|
var import_CheckboxPillsGroup = __toESM(require("./CheckboxPillsGroup"));
|
|
39
39
|
var import_Button = __toESM(require("./Button"));
|
|
40
40
|
const clsx = (...a) => a.filter(Boolean).join(" ");
|
|
@@ -102,8 +102,8 @@ function FiltersMultiSelect({
|
|
|
102
102
|
]
|
|
103
103
|
}
|
|
104
104
|
),
|
|
105
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
106
|
-
|
|
105
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_framer_motion.AnimatePresence, { children: open && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
106
|
+
import_framer_motion.motion.div,
|
|
107
107
|
{
|
|
108
108
|
initial: { opacity: 0, y: 6 },
|
|
109
109
|
animate: { opacity: 1, y: 0 },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { AnimatePresence, motion } from "motion
|
|
4
|
+
import { AnimatePresence, motion } from "framer-motion";
|
|
5
5
|
import CheckboxPillsGroup from "./CheckboxPillsGroup";
|
|
6
6
|
import Button from "./Button";
|
|
7
7
|
const clsx = (...a) => a.filter(Boolean).join(" ");
|
package/dist/Sidebar.js
CHANGED
|
@@ -33,7 +33,7 @@ __export(Sidebar_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(Sidebar_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var import_react = require("react");
|
|
36
|
-
var
|
|
36
|
+
var import_framer_motion = require("framer-motion");
|
|
37
37
|
var import_Button = __toESM(require("./Button"));
|
|
38
38
|
var import_AvatarSquare = __toESM(require("./AvatarSquare"));
|
|
39
39
|
var import_iconos = require("./iconos");
|
|
@@ -248,10 +248,10 @@ function Sidebar({
|
|
|
248
248
|
}
|
|
249
249
|
),
|
|
250
250
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: ["hidden xl:block", "transition-[width] duration-200", collapsed ? "xl:w-20" : "xl:w-72"].join(" ") }),
|
|
251
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
251
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_framer_motion.AnimatePresence, { children: drawerOpen && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_framer_motion.motion.div, { className: "fixed inset-0 z-40 xl:hidden", initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, children: [
|
|
252
252
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "absolute inset-0 bg-black/40" }),
|
|
253
253
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
254
|
-
|
|
254
|
+
import_framer_motion.motion.div,
|
|
255
255
|
{
|
|
256
256
|
role: "dialog",
|
|
257
257
|
"aria-modal": "true",
|
|
@@ -455,8 +455,8 @@ function RenderItem({
|
|
|
455
455
|
]
|
|
456
456
|
}
|
|
457
457
|
),
|
|
458
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
459
|
-
|
|
458
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_framer_motion.AnimatePresence, { initial: false, children: open && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
459
|
+
import_framer_motion.motion.div,
|
|
460
460
|
{
|
|
461
461
|
initial: { height: 0, opacity: 0, y: -4 },
|
|
462
462
|
animate: { height: "auto", opacity: 1, y: 0 },
|
package/dist/Sidebar.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useMemo, useState } from "react";
|
|
3
|
-
import { AnimatePresence, motion } from "motion
|
|
3
|
+
import { AnimatePresence, motion } from "framer-motion";
|
|
4
4
|
import Button from "./Button";
|
|
5
5
|
import AvatarSquare from "./AvatarSquare";
|
|
6
6
|
import { CloseIcon, ChevronLeftRightIcon, MenuIcon } from "./iconos";
|
package/dist/StatCard.js
CHANGED
|
@@ -23,14 +23,14 @@ __export(StatCard_exports, {
|
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(StatCard_exports);
|
|
25
25
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
|
-
var
|
|
27
|
-
var
|
|
26
|
+
var import_framer_motion = require("framer-motion");
|
|
27
|
+
var import_react = require("react");
|
|
28
28
|
var import_recharts = require("recharts");
|
|
29
29
|
function StatCard({ title, value, hint, spark }) {
|
|
30
30
|
var _a;
|
|
31
|
-
const gid = (0,
|
|
31
|
+
const gid = (0, import_react.useId)();
|
|
32
32
|
const color = (_a = spark == null ? void 0 : spark.color) != null ? _a : "#10b981";
|
|
33
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
33
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_framer_motion.motion.div, { initial: { opacity: 0, y: 8 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.25 }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "h-full group relative overflow-hidden rounded-2xl border border-slate-200 bg-white/80 p-4 shadow-sm ring-1 ring-black/5 backdrop-blur transition hover:shadow-md dark:border-white/10 dark:bg-white/5", children: [
|
|
34
34
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative z-10", children: [
|
|
35
35
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-xs font-medium text-slate-500", children: title }),
|
|
36
36
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mt-1 text-2xl font-semibold tracking-tight", children: value }),
|
package/dist/StatCard.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { motion } from "motion
|
|
3
|
+
import { motion } from "framer-motion";
|
|
4
4
|
import { useId } from "react";
|
|
5
5
|
import { Area, AreaChart, ResponsiveContainer } from "recharts";
|
|
6
6
|
function StatCard({ title, value, hint, spark }) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "framepexls-ui-lib",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Componentes UI de Framepexls para React/Next.",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"react": ">=18",
|
|
31
|
-
"react-dom": ">=18",
|
|
32
|
-
"next": "
|
|
33
|
-
"motion": "^12.23.
|
|
34
|
-
"recharts": "
|
|
30
|
+
"react": ">=18.2.0 || ^19",
|
|
31
|
+
"react-dom": ">=18.2.0 || ^19",
|
|
32
|
+
"next": "^15.0.0",
|
|
33
|
+
"framer-motion": "^12.23.0",
|
|
34
|
+
"recharts": ">=3.1.0 <4"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"typescript": "^5.6.3",
|
|
@@ -40,9 +40,12 @@
|
|
|
40
40
|
"@types/react-dom": "^19",
|
|
41
41
|
"tailwindcss": "^4.1.13",
|
|
42
42
|
"@tailwindcss/postcss": "^4.1.13",
|
|
43
|
-
"motion": "^12.23.
|
|
43
|
+
"framer-motion": "^12.23.20",
|
|
44
44
|
"recharts": "^3.2.1",
|
|
45
|
-
"next": "15.
|
|
45
|
+
"next": "15.4.3",
|
|
46
|
+
"react": "19.1.0",
|
|
47
|
+
"react-dom": "19.1.0",
|
|
48
|
+
"react-is": "^19.0.0"
|
|
46
49
|
},
|
|
47
50
|
"scripts": {
|
|
48
51
|
"build": "tsup",
|