framepexls-ui-lib 0.1.5 → 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.
@@ -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 import_framer_motion = require("framer-motion");
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)(import_framer_motion.AnimatePresence, { children: open && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
84
- import_framer_motion.motion.div,
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 },
@@ -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 "framer-motion";
5
+ import { AnimatePresence, motion } from "motion/react";
6
6
  import Badge from "./Badge";
7
7
  function BadgeCluster({
8
8
  items,
@@ -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 import_framer_motion = require("framer-motion");
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)(import_framer_motion.AnimatePresence, { children: open && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
46
- import_framer_motion.motion.div,
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 },
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { AnimatePresence, motion } from "framer-motion";
2
+ import { AnimatePresence, motion } from "motion/react";
3
3
  function ColumnSelector({
4
4
  open,
5
5
  onToggleOpen,
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 import_framer_motion = require("framer-motion");
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)(import_framer_motion.AnimatePresence, { children: open && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
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
- import_framer_motion.motion.div,
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
- import_framer_motion.motion.div,
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 "framer-motion";
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 import_framer_motion = require("framer-motion");
27
- var import_react = require("react");
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, import_react.useId)();
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)(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: [
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 "framer-motion";
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,8 +1,9 @@
1
1
  {
2
2
  "name": "framepexls-ui-lib",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "private": false,
5
- "license": "UNLICENSED",
5
+ "license": "MIT",
6
+ "description": "Componentes UI de Framepexls para React/Next.",
6
7
  "main": "dist/index.cjs",
7
8
  "module": "dist/index.mjs",
8
9
  "types": "dist/index.d.ts",
@@ -14,21 +15,29 @@
14
15
  }
15
16
  },
16
17
  "files": [
17
- "dist"
18
+ "dist",
19
+ "README.md",
20
+ "LICENSE"
18
21
  ],
19
22
  "sideEffects": false,
23
+ "engines": {
24
+ "node": ">=18"
25
+ },
26
+ "publishConfig": {
27
+ "access": "public"
28
+ },
20
29
  "peerDependencies": {
21
30
  "react": ">=18",
22
31
  "react-dom": ">=18",
32
+ "next": ">=13",
23
33
  "motion": "^12.23.16",
24
- "next": "15.5.3",
25
34
  "recharts": "^3.2.1"
26
35
  },
27
36
  "devDependencies": {
37
+ "typescript": "^5.6.3",
38
+ "tsup": "^8.1.0",
28
39
  "@types/react": "^18",
29
40
  "@types/react-dom": "^18",
30
- "tsup": "^8.1.0",
31
- "typescript": "^5.6.3",
32
41
  "tailwindcss": "^4.1.13",
33
42
  "@tailwindcss/postcss": "^4.1.13",
34
43
  "motion": "^12.23.16",
@@ -36,135 +45,10 @@
36
45
  "next": "15.5.3"
37
46
  },
38
47
  "scripts": {
39
- "build": "tsup --dts",
40
- "dev": "tsup --watch --dts",
48
+ "build": "tsup",
49
+ "dev": "tsup --watch",
41
50
  "prepare": "npm run build"
42
51
  },
43
- "dependencies": {
44
- "acorn": "^8.15.0",
45
- "ansi-regex": "^5.0.1",
46
- "ansi-styles": "^4.3.0",
47
- "any-promise": "^1.3.0",
48
- "balanced-match": "^1.0.2",
49
- "brace-expansion": "^2.0.2",
50
- "bundle-require": "^5.1.0",
51
- "cac": "^6.7.14",
52
- "caniuse-lite": "^1.0.30001746",
53
- "chokidar": "^4.0.3",
54
- "chownr": "^3.0.0",
55
- "client-only": "^0.0.1",
56
- "clsx": "^2.1.1",
57
- "color-convert": "^2.0.1",
58
- "color-name": "^1.1.4",
59
- "commander": "^4.1.1",
60
- "confbox": "^0.1.8",
61
- "consola": "^3.4.2",
62
- "cross-spawn": "^7.0.6",
63
- "csstype": "^3.1.3",
64
- "d3-array": "^3.2.4",
65
- "d3-color": "^3.1.0",
66
- "d3-ease": "^3.0.1",
67
- "d3-format": "^3.1.0",
68
- "d3-interpolate": "^3.0.1",
69
- "d3-path": "^3.1.0",
70
- "d3-scale": "^4.0.2",
71
- "d3-shape": "^3.2.0",
72
- "d3-time": "^3.1.0",
73
- "d3-time-format": "^4.1.0",
74
- "d3-timer": "^3.0.1",
75
- "debug": "^4.4.3",
76
- "decimal.js-light": "^2.5.1",
77
- "detect-libc": "^2.1.1",
78
- "eastasianwidth": "^0.2.0",
79
- "emoji-regex": "^8.0.0",
80
- "enhanced-resolve": "^5.18.3",
81
- "es-toolkit": "^1.39.10",
82
- "esbuild": "^0.25.10",
83
- "eventemitter3": "^5.0.1",
84
- "fdir": "^6.5.0",
85
- "fix-dts-default-cjs-exports": "^1.0.1",
86
- "foreground-child": "^3.3.1",
87
- "framer-motion": "^12.23.22",
88
- "fsevents": "^2.3.3",
89
- "glob": "^10.4.5",
90
- "graceful-fs": "^4.2.11",
91
- "immer": "^10.1.3",
92
- "internmap": "^2.0.3",
93
- "is-fullwidth-code-point": "^3.0.0",
94
- "isexe": "^2.0.0",
95
- "jackspeak": "^3.4.3",
96
- "jiti": "^2.6.0",
97
- "joycon": "^3.1.1",
98
- "lightningcss": "^1.30.1",
99
- "lightningcss-darwin-arm64": "^1.30.1",
100
- "lilconfig": "^3.1.3",
101
- "lines-and-columns": "^1.2.4",
102
- "load-tsconfig": "^0.2.5",
103
- "lodash.sortby": "^4.7.0",
104
- "lru-cache": "^10.4.3",
105
- "magic-string": "^0.30.19",
106
- "minimatch": "^9.0.5",
107
- "minipass": "^7.1.2",
108
- "minizlib": "^3.1.0",
109
- "mlly": "^1.8.0",
110
- "motion-dom": "^12.23.21",
111
- "motion-utils": "^12.23.6",
112
- "ms": "^2.1.3",
113
- "mz": "^2.7.0",
114
- "nanoid": "^3.3.11",
115
- "object-assign": "^4.1.1",
116
- "package-json-from-dist": "^1.0.1",
117
- "path-key": "^3.1.1",
118
- "path-scurry": "^1.11.1",
119
- "pathe": "^2.0.3",
120
- "picocolors": "^1.1.1",
121
- "picomatch": "^4.0.3",
122
- "pirates": "^4.0.7",
123
- "pkg-types": "^1.3.1",
124
- "postcss": "^8.4.31",
125
- "postcss-load-config": "^6.0.1",
126
- "punycode": "^2.3.1",
127
- "react-redux": "^9.2.0",
128
- "readdirp": "^4.1.2",
129
- "redux": "^5.0.1",
130
- "redux-thunk": "^3.1.0",
131
- "reselect": "^5.1.1",
132
- "resolve-from": "^5.0.0",
133
- "rollup": "^4.52.3",
134
- "semver": "^7.7.2",
135
- "sharp": "^0.34.4",
136
- "shebang-command": "^2.0.0",
137
- "shebang-regex": "^3.0.0",
138
- "signal-exit": "^4.1.0",
139
- "source-map": "^0.8.0-beta.0",
140
- "source-map-js": "^1.2.1",
141
- "string-width": "^5.1.2",
142
- "string-width-cjs": "^4.2.3",
143
- "strip-ansi": "^6.0.1",
144
- "strip-ansi-cjs": "^6.0.1",
145
- "styled-jsx": "^5.1.6",
146
- "sucrase": "^3.35.0",
147
- "tapable": "^2.2.3",
148
- "tar": "^7.5.1",
149
- "thenify": "^3.3.1",
150
- "thenify-all": "^1.6.0",
151
- "tiny-invariant": "^1.3.3",
152
- "tinyexec": "^0.3.2",
153
- "tinyglobby": "^0.2.15",
154
- "tr46": "^1.0.1",
155
- "tree-kill": "^1.2.2",
156
- "ts-interface-checker": "^0.1.13",
157
- "tslib": "^2.8.1",
158
- "ufo": "^1.6.1",
159
- "use-sync-external-store": "^1.5.0",
160
- "victory-vendor": "^37.3.6",
161
- "webidl-conversions": "^4.0.2",
162
- "whatwg-url": "^7.1.0",
163
- "which": "^2.0.2",
164
- "wrap-ansi": "^8.1.0",
165
- "wrap-ansi-cjs": "^7.0.0",
166
- "yallist": "^5.0.0"
167
- },
168
52
  "repository": {
169
53
  "type": "git",
170
54
  "url": "git+https://github.com/cponce-framepexls/ui-lib.git"
@@ -173,6 +57,5 @@
173
57
  "bugs": {
174
58
  "url": "https://github.com/cponce-framepexls/ui-lib/issues"
175
59
  },
176
- "homepage": "https://github.com/cponce-framepexls/ui-lib#readme",
177
- "description": ""
178
- }
60
+ "homepage": "https://github.com/cponce-framepexls/ui-lib#readme"
61
+ }