azeriand-library 1.13.0 → 1.13.2

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/index.esm.js CHANGED
@@ -15772,19 +15772,19 @@ function Card({ children, noPadding, noBlur = false, appearance = "glass", color
15772
15772
  return /* @__PURE__ */ jsx$1("article", { className: classNames, style: cardStyle, onClick, children });
15773
15773
  }
15774
15774
  function Button({ children, label, icon, position: position2 = "left", onClick, size, className, ...cardProps }) {
15775
- let cardClassNames = "flex justify-center items-center gap-x-[0.40rem] h-[2.5rem] min-w-[2.5rem] box-border p-0";
15776
- if (label) {
15777
- cardClassNames += " px-0 py-1";
15775
+ let defaultCardClassNames = "flex justify-center items-center gap-x-[0.40rem] box-border cursor-pointer";
15776
+ let specificCardClassNames = "min-w-[2.5rem] px-[1rem] py-1";
15777
+ if (size === "sm") {
15778
+ specificCardClassNames = "min-w-auto text-xs px-[0.5rem] py-1";
15779
+ className = `w-fit ${className}`;
15778
15780
  }
15781
+ let cardClassNames = `${specificCardClassNames} ${defaultCardClassNames}`;
15779
15782
  if (className) {
15780
15783
  const roundedMatch = className.match(/rounded\-[a-z0-9]+/g);
15781
15784
  if (roundedMatch) {
15782
15785
  cardClassNames += " " + roundedMatch[roundedMatch.length - 1];
15783
15786
  }
15784
15787
  }
15785
- if (size === "sm") {
15786
- cardClassNames += " h-[2rem] w-[2rem] min-w-auto";
15787
- }
15788
15788
  const buttonClick = (ev) => {
15789
15789
  if (typeof onClick === "function") {
15790
15790
  onClick(ev);
@@ -17845,7 +17845,7 @@ function Timeline({ children, faded, ...cardProps }) {
17845
17845
  WebkitMaskImage: "linear-gradient(to bottom, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 100%)",
17846
17846
  maskImage: "linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%)"
17847
17847
  };
17848
- return /* @__PURE__ */ jsx$1(Card, { className: "rounded-sm", noPadding: true, appearance: "ghost", ...cardProps, style: { ...cardProps.style, ...timelineStyle }, children: /* @__PURE__ */ jsx$1("ul", { className: "vertical-line list-disc font-bold text-start relative", style: { paddingInlineStart: 20 }, children }) });
17848
+ return /* @__PURE__ */ jsx$1(Card, { className: "rounded-sm", noPadding: true, appearance: "ghost", ...cardProps, style: { ...cardProps.style, ...timelineStyle }, children: /* @__PURE__ */ jsx$1("ul", { className: "vertical-line list-disc font-bold text-start relative", style: { paddingInlineStart: 16.75 }, children }) });
17849
17849
  }
17850
17850
  function TlListItem({ label, badge, ...cardProps }) {
17851
17851
  return /* @__PURE__ */ jsx$1("li", { children: /* @__PURE__ */ jsx$1(Card, { noBlur: true, appearance: "ghost", noPadding: true, ...cardProps, children: /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center gap-x-[1rem] text-[1rem]", children: [