azeriand-library 1.13.1 → 1.13.3

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,22 @@ 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}`;
15780
+ }
15781
+ if (icon && !label) {
15782
+ specificCardClassNames = "square-8 p-2";
15778
15783
  }
15784
+ let cardClassNames = `${specificCardClassNames} ${defaultCardClassNames}`;
15779
15785
  if (className) {
15780
15786
  const roundedMatch = className.match(/rounded\-[a-z0-9]+/g);
15781
15787
  if (roundedMatch) {
15782
15788
  cardClassNames += " " + roundedMatch[roundedMatch.length - 1];
15783
15789
  }
15784
15790
  }
15785
- if (size === "sm") {
15786
- cardClassNames += " h-[2rem] w-[2rem] min-w-auto";
15787
- }
15788
15791
  const buttonClick = (ev) => {
15789
15792
  if (typeof onClick === "function") {
15790
15793
  onClick(ev);