@cagatayfdn/flora-components 0.0.146 → 0.0.147

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.
@@ -0,0 +1,25 @@
1
+ import { j as e } from "../../jsx-runtime-BcAkpsdy.js";
2
+ import n from "../Icon/index.js";
3
+ import { useState as i } from "react";
4
+ function c({ image: s, fallbackName: r }) {
5
+ const [t, o] = i();
6
+ return /* @__PURE__ */ e.jsx("span", { className: "rounded-half w-[35px] h-[35px] overflow-hidden flex items-center justify-center ml-[15px]", children: s && !t ? /* @__PURE__ */ e.jsx("picture", { children: /* @__PURE__ */ e.jsx(
7
+ "img",
8
+ {
9
+ src: s,
10
+ className: "rounded-half w-[35px] h-[35px] object-cover",
11
+ onError: () => {
12
+ o(!0);
13
+ }
14
+ }
15
+ ) }) : r ? /* @__PURE__ */ e.jsx("span", { className: "flex items-center justify-center w-[35px] h-[35px] rounded-half", children: r == null ? void 0 : r[0].toLocaleUpperCase() }) : /* @__PURE__ */ e.jsx(
16
+ n,
17
+ {
18
+ name: "profile",
19
+ className: "bg-[hsla(0_0%_100%_0.3)] w-full h-full border-white border bg-blue-ff! rounded-half flex justify-center items-center"
20
+ }
21
+ ) });
22
+ }
23
+ export {
24
+ c as default
25
+ };
@@ -0,0 +1,24 @@
1
+ import { j as s } from "../../jsx-runtime-BcAkpsdy.js";
2
+ import { c as r } from "../../index-BHf7G3IG.js";
3
+ const n = ({
4
+ leftAlign: t,
5
+ email: e,
6
+ firstName: a,
7
+ lastName: o
8
+ }) => /* @__PURE__ */ s.jsxs(
9
+ "span",
10
+ {
11
+ className: r("font-semibold", {
12
+ "ml-[10px]! text-left!": t
13
+ }),
14
+ children: [
15
+ a,
16
+ " ",
17
+ o,
18
+ /* @__PURE__ */ s.jsx("span", { className: "block text-[11px] font-normal text-gray-ec", children: e })
19
+ ]
20
+ }
21
+ );
22
+ export {
23
+ n as default
24
+ };