framepexls-ui-lib 0.1.6 → 0.1.7
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/StatCard.js +4 -4
- package/dist/StatCard.mjs +1 -1
- package/package.json +4 -4
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_react2 = require("motion/react");
|
|
39
39
|
var import_Badge = __toESM(require("./Badge"));
|
|
40
40
|
function BadgeCluster({
|
|
41
41
|
items,
|
|
@@ -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_react2.AnimatePresence, { children: open && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
84
|
+
import_react2.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 "
|
|
5
|
+
import { AnimatePresence, motion } from "motion/react";
|
|
6
6
|
import Badge from "./Badge";
|
|
7
7
|
function BadgeCluster({
|
|
8
8
|
items,
|
package/dist/ColumnSelector.js
CHANGED
|
@@ -22,7 +22,7 @@ __export(ColumnSelector_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(ColumnSelector_exports);
|
|
24
24
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
-
var
|
|
25
|
+
var import_react = require("motion/react");
|
|
26
26
|
function ColumnSelector({
|
|
27
27
|
open,
|
|
28
28
|
onToggleOpen,
|
|
@@ -42,8 +42,8 @@ function ColumnSelector({
|
|
|
42
42
|
children: "Columnas"
|
|
43
43
|
}
|
|
44
44
|
),
|
|
45
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
46
|
-
|
|
45
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.AnimatePresence, { children: open && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
46
|
+
import_react.motion.div,
|
|
47
47
|
{
|
|
48
48
|
initial: { opacity: 0, y: 6 },
|
|
49
49
|
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_react2 = require("motion/react");
|
|
45
45
|
var import_ActionIconButton = __toESM(require("./ActionIconButton"));
|
|
46
46
|
const sizeToMaxW = {
|
|
47
47
|
sm: "max-w-sm",
|
|
@@ -123,9 +123,9 @@ function DialogBase({
|
|
|
123
123
|
if (!dismissibleBackdrop) return;
|
|
124
124
|
if (e.target === e.currentTarget) onClose();
|
|
125
125
|
};
|
|
126
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
126
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.AnimatePresence, { children: open && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
127
127
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
128
|
-
|
|
128
|
+
import_react2.motion.div,
|
|
129
129
|
{
|
|
130
130
|
className: "fixed inset-0 z-[100] bg-black/45 backdrop-blur-sm",
|
|
131
131
|
initial: { opacity: 0 },
|
|
@@ -134,7 +134,7 @@ function DialogBase({
|
|
|
134
134
|
}
|
|
135
135
|
),
|
|
136
136
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
137
|
-
|
|
137
|
+
import_react2.motion.div,
|
|
138
138
|
{
|
|
139
139
|
role: "dialog",
|
|
140
140
|
"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 "
|
|
4
|
+
import { motion, AnimatePresence } from "motion/react";
|
|
5
5
|
import ActionIconButton from "./ActionIconButton";
|
|
6
6
|
const sizeToMaxW = {
|
|
7
7
|
sm: "max-w-sm",
|
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_react = require("motion/react");
|
|
27
|
+
var import_react2 = 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_react2.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_react.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 "
|
|
3
|
+
import { motion } from "motion/react";
|
|
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.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Componentes UI de Framepexls para React/Next.",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"react": ">=18",
|
|
31
31
|
"react-dom": ">=18",
|
|
32
32
|
"next": ">=13",
|
|
33
|
-
"
|
|
34
|
-
"recharts": "
|
|
33
|
+
"motion": "^12.23.16",
|
|
34
|
+
"recharts": "^3.2.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"typescript": "^5.6.3",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@types/react-dom": "^18",
|
|
41
41
|
"tailwindcss": "^4.1.13",
|
|
42
42
|
"@tailwindcss/postcss": "^4.1.13",
|
|
43
|
-
"
|
|
43
|
+
"motion": "^12.23.16",
|
|
44
44
|
"recharts": "^3.2.1",
|
|
45
45
|
"next": "15.5.3"
|
|
46
46
|
},
|