prometeo-design-system 1.9.7 → 2.0.0

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 CHANGED
@@ -1,14 +1,14 @@
1
1
  import { j as t } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as p } from "./cn-B6yFEsav.js";
3
- import { motion as f } from "framer-motion";
4
- import { useState as u } from "react";
3
+ import { motion as u } from "framer-motion";
4
+ import { useState as f } from "react";
5
5
  function C({
6
- urlImage: s,
7
- sizeImage: a = "md",
6
+ imageUrl: s,
7
+ sizeImage: o = "md",
8
8
  sizeFallback: e = "md",
9
- fallbackText: i = "Matias tejerina"
9
+ fallbackText: a = "Selene Soluciones"
10
10
  }) {
11
- const [o, x] = u(!1), l = s && s.trim() !== "" && !o, n = (m) => m.split(" ").map((d) => d.charAt(0)).join("").toUpperCase().slice(0, 2), r = {
11
+ const [i, x] = f(!1), l = s && s.trim() !== "" && !i, n = (m) => m.split(" ").map((d) => d.charAt(0)).join("").toUpperCase().slice(0, 2), r = {
12
12
  xxxs: "w-6.5 h-6.5",
13
13
  xxs: "w-8.5 h-8.5",
14
14
  xs: "w-10 h-10",
@@ -32,11 +32,11 @@ function C({
32
32
  x(!0);
33
33
  },
34
34
  src: s,
35
- className: `rounded-full object-cover ${r[a]}`,
35
+ className: `rounded-full object-cover ${r[o]}`,
36
36
  alt: "Profile"
37
37
  }
38
38
  ) : /* @__PURE__ */ t.jsx(
39
- f.div,
39
+ u.div,
40
40
  {
41
41
  className: ` flex items-center justify-center rounded-full aspect-square ${r[e]}`,
42
42
  style: { backgroundColor: "#C6D2FF" },
@@ -44,7 +44,7 @@ function C({
44
44
  animate: { opacity: 1, scale: 1 },
45
45
  exit: { opacity: 0, scale: 0.9 },
46
46
  transition: { duration: 0.3 },
47
- children: /* @__PURE__ */ t.jsx("span", { className: p("text-[#312C85] font-semibold", c[e]), children: n(i) })
47
+ children: /* @__PURE__ */ t.jsx("span", { className: p("text-[#312C85] font-semibold", c[e]), children: n(a) })
48
48
  },
49
49
  "initials"
50
50
  ) });
@@ -152,7 +152,7 @@ const x = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
152
152
  )
153
153
  ]
154
154
  }
155
- ) }), p = ({ imageUrl: t, fallbackText: a }) => /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-center profile-image-wrapper ml-1", children: /* @__PURE__ */ e.jsx(m, { urlImage: t, sizeImage: "xs", sizeFallback: "xs", fallbackText: a }) }), j = ({ isExpanded: t, name: a, nameCompany: r, nameArea: n, cardProfile: d, onClick: c }) => /* @__PURE__ */ e.jsxs(
155
+ ) }), p = ({ imageUrl: t, fallbackText: a }) => /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-center profile-image-wrapper ml-1", children: /* @__PURE__ */ e.jsx(m, { imageUrl: t, sizeImage: "xs", sizeFallback: "xs", fallbackText: a }) }), j = ({ isExpanded: t, name: a, nameCompany: r, nameArea: n, cardProfile: d, onClick: c }) => /* @__PURE__ */ e.jsxs(
156
156
  i.button,
157
157
  {
158
158
  onClick: c,
@@ -1,4 +1,4 @@
1
- import { C as a } from "./CardProfile-BZajBGbO.js";
1
+ import { C as a } from "./CardProfile-BiYr6kY9.js";
2
2
  export {
3
3
  a as CardProfile
4
4
  };
package/dist/Header.es.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as x } from "./cn-B6yFEsav.js";
3
- import { motion as i } from "framer-motion";
4
- import { memo as m } from "react";
5
- const n = ({ title: s, subtitle: l, children: t, className: a }) => /* @__PURE__ */ e.jsx("header", { className: x("h-16 flex items-center px-4 sm:h-20 md:h-24 md:px-6 lg:h-28 xl:h-32 2xl:h-36", a), children: /* @__PURE__ */ e.jsxs(
6
- i.div,
3
+ import { motion as m } from "framer-motion";
4
+ import { memo as i } from "react";
5
+ const n = ({ title: t, subtitle: s, children: a, className: l }) => /* @__PURE__ */ e.jsx("header", { className: x("h-16 flex items-center px-4 sm:h-20 md:h-24 md:px-6 lg:h-28 xl:h-32 2xl:h-36", l), children: /* @__PURE__ */ e.jsxs(
6
+ m.div,
7
7
  {
8
8
  initial: { opacity: 0, y: -10 },
9
9
  animate: { opacity: 1, y: 0 },
@@ -11,13 +11,13 @@ const n = ({ title: s, subtitle: l, children: t, className: a }) => /* @__PURE__
11
11
  className: "flex justify-between items-center w-full ",
12
12
  children: [
13
13
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col leading-6", children: [
14
- /* @__PURE__ */ e.jsx("h3", { className: "text-xs font-semibold text-neutral-medium-default leading-1 sm:leading-2 prometeo-fonts-headline-large", children: l }),
15
- /* @__PURE__ */ e.jsx("h1", { className: "text-xl font-bold text-neutral-strong-default sm:text-2xl md:text-3xl xl:text-[32px] 2xl:text-[34px]", children: s })
14
+ s && /* @__PURE__ */ e.jsx("h3", { className: "text-xs font-semibold text-neutral-medium-default leading-1 sm:leading-2 prometeo-fonts-headline-large", children: s }),
15
+ t && /* @__PURE__ */ e.jsx("h1", { className: "text-xl font-bold text-neutral-strong-default sm:text-2xl md:text-3xl xl:text-[32px] 2xl:text-[34px]", children: t })
16
16
  ] }),
17
- t && /* @__PURE__ */ e.jsx("div", { className: "flex gap-4", children: t })
17
+ a && /* @__PURE__ */ e.jsx("div", { className: "flex gap-4", children: a })
18
18
  ]
19
19
  }
20
- ) }), f = m(n);
20
+ ) }), f = i(n);
21
21
  export {
22
22
  f as default
23
23
  };
@@ -44,4 +44,8 @@ export declare const Icons: {
44
44
  readonly Error: ({ size, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
45
45
  readonly TicketFilled: ({ size, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
46
46
  readonly UploadCloud: ({ size, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
47
+ readonly Clock: ({ size, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
48
+ readonly Pause: ({ size, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
49
+ readonly FastForward: ({ size, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
50
+ readonly Trash: ({ size, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
47
51
  };