@webdevarif/dashui 0.1.3 → 0.1.5

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.mjs CHANGED
@@ -1513,14 +1513,23 @@ function AuthCard({ children }) {
1513
1513
 
1514
1514
  // src/components/auth/AuthLogo.tsx
1515
1515
  import { jsx as jsx34, jsxs as jsxs19 } from "react/jsx-runtime";
1516
- function AuthLogo({ appName = "Builify CMS", letter = "B" }) {
1516
+ function AuthLogo({ appName = "Builify CMS", letter = "B", imageUrl, size = 36 }) {
1517
1517
  return /* @__PURE__ */ jsxs19("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", gap: "10px", marginBottom: "28px" }, children: [
1518
- /* @__PURE__ */ jsx34(
1518
+ imageUrl ? /* @__PURE__ */ jsx34(
1519
+ "img",
1520
+ {
1521
+ src: imageUrl,
1522
+ alt: appName,
1523
+ width: size,
1524
+ height: size,
1525
+ style: { borderRadius: "calc(var(--radius, 0.5rem) * 1.2)", flexShrink: 0, display: "block" }
1526
+ }
1527
+ ) : /* @__PURE__ */ jsx34(
1519
1528
  "div",
1520
1529
  {
1521
1530
  style: {
1522
- width: 36,
1523
- height: 36,
1531
+ width: size,
1532
+ height: size,
1524
1533
  background: "var(--primary)",
1525
1534
  borderRadius: "calc(var(--radius, 0.5rem) * 1.2)",
1526
1535
  display: "flex",
@@ -1528,7 +1537,7 @@ function AuthLogo({ appName = "Builify CMS", letter = "B" }) {
1528
1537
  justifyContent: "center",
1529
1538
  color: "var(--primary-foreground)",
1530
1539
  fontWeight: 800,
1531
- fontSize: "1rem",
1540
+ fontSize: `${size * 0.44}px`,
1532
1541
  flexShrink: 0
1533
1542
  },
1534
1543
  children: letter
@@ -1751,6 +1760,37 @@ function AuthFootnote({ text, linkText, linkHref }) {
1751
1760
  ] });
1752
1761
  }
1753
1762
 
1763
+ // src/components/Skeleton.tsx
1764
+ import { jsx as jsx40 } from "react/jsx-runtime";
1765
+ function Skeleton2({ width = "100%", height = 16, rounded, style }) {
1766
+ return /* @__PURE__ */ jsx40(
1767
+ "div",
1768
+ {
1769
+ style: {
1770
+ width,
1771
+ height,
1772
+ background: "var(--muted, #e5e7eb)",
1773
+ borderRadius: rounded ?? "var(--radius, 0.5rem)",
1774
+ overflow: "hidden",
1775
+ position: "relative",
1776
+ flexShrink: 0,
1777
+ ...style
1778
+ },
1779
+ children: /* @__PURE__ */ jsx40(
1780
+ "div",
1781
+ {
1782
+ style: {
1783
+ position: "absolute",
1784
+ inset: 0,
1785
+ background: "linear-gradient(90deg, transparent 0%, color-mix(in oklab, var(--background, #fff) 40%, transparent) 50%, transparent 100%)",
1786
+ animation: "dashui-shimmer 1.6s ease-in-out infinite"
1787
+ }
1788
+ }
1789
+ )
1790
+ }
1791
+ );
1792
+ }
1793
+
1754
1794
  // src/index.ts
1755
1795
  import { ThemeProvider, useTheme } from "next-themes";
1756
1796
  export {
@@ -1825,7 +1865,7 @@ export {
1825
1865
  SelectValue,
1826
1866
  Separator3 as Separator,
1827
1867
  Sidebar,
1828
- Skeleton,
1868
+ Skeleton2 as Skeleton,
1829
1869
  Stats,
1830
1870
  Switch,
1831
1871
  Tabs,