@authdog/react-elements 0.0.44 → 0.0.46

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/styles.css CHANGED
@@ -572,6 +572,19 @@ video {
572
572
  color: hsl(var(--foreground));
573
573
  font-feature-settings: "rlig" 1, "calt" 1;
574
574
  }
575
+ .container {
576
+ width: 100%;
577
+ margin-right: auto;
578
+ margin-left: auto;
579
+ padding-right: 2rem;
580
+ padding-left: 2rem;
581
+ }
582
+ @media (min-width: 1400px) {
583
+
584
+ .container {
585
+ max-width: 1400px;
586
+ }
587
+ }
575
588
  .sr-only {
576
589
  position: absolute;
577
590
  width: 1px;
@@ -633,9 +646,6 @@ video {
633
646
  .top-4 {
634
647
  top: 1rem;
635
648
  }
636
- .z-40 {
637
- z-index: 40;
638
- }
639
649
  .z-50 {
640
650
  z-index: 50;
641
651
  }
@@ -1132,9 +1142,6 @@ video {
1132
1142
  .bg-background {
1133
1143
  background-color: hsl(var(--background));
1134
1144
  }
1135
- .bg-background\/80 {
1136
- background-color: hsl(var(--background) / 0.8);
1137
- }
1138
1145
  .bg-black\/50 {
1139
1146
  background-color: rgb(0 0 0 / 0.5);
1140
1147
  }
@@ -1593,10 +1600,6 @@ video {
1593
1600
  -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
1594
1601
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
1595
1602
  }
1596
- .backdrop-filter {
1597
- -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
1598
- backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
1599
- }
1600
1603
  .transition {
1601
1604
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
1602
1605
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
@@ -1958,12 +1961,6 @@ video {
1958
1961
  .group[data-disabled="true"] .group-data-\[disabled\=true\]\:opacity-50 {
1959
1962
  opacity: 0.5;
1960
1963
  }
1961
- @supports ((-webkit-backdrop-filter: var(--tw)) or (backdrop-filter: var(--tw))) {
1962
-
1963
- .supports-\[backdrop-filter\]\:bg-background\/60 {
1964
- background-color: hsl(var(--background) / 0.6);
1965
- }
1966
- }
1967
1964
  .dark\:border-amber-400\/40:is(.dark *) {
1968
1965
  border-color: rgb(251 191 36 / 0.4);
1969
1966
  }
@@ -2117,10 +2114,6 @@ video {
2117
2114
  }
2118
2115
  @media (min-width: 1024px) {
2119
2116
 
2120
- .lg\:max-w-\[80vw\] {
2121
- max-width: 80vw;
2122
- }
2123
-
2124
2117
  .lg\:grid-cols-4 {
2125
2118
  grid-template-columns: repeat(4, minmax(0, 1fr));
2126
2119
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authdog/react-elements",
3
- "version": "0.0.44",
3
+ "version": "0.0.46",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.mts",
@@ -20,7 +20,7 @@
20
20
  "autoprefixer": "^10",
21
21
  "css-loader": "^6.8.1",
22
22
  "eslint-plugin-storybook": "^10.1.3",
23
- "next": "15.1.6",
23
+ "next": "15.4.8",
24
24
  "postcss": "^8",
25
25
  "postcss-cli": "^11.0.1",
26
26
  "postcss-import": "^16.1.0",
@@ -36,6 +36,12 @@ interface NavbarProps {
36
36
  className?: string;
37
37
  logoText?: string;
38
38
  logoSrc?: string;
39
+ /**
40
+ * Optional custom alt text element rendered next to the logo.
41
+ * When not provided, the plain `logoText` string is rendered.
42
+ * Use this to pass in custom typography / font classes.
43
+ */
44
+ altText?: React.ReactNode;
39
45
  isLoading?: boolean;
40
46
  user?: any;
41
47
  onNavigateHome?: () => void;
@@ -55,6 +61,7 @@ export function Navbar({
55
61
  className,
56
62
  logoText = "ACME Corp",
57
63
  logoSrc,
64
+ altText,
58
65
  user = {
59
66
  name: "John Doe",
60
67
  email: "john@example.com",
@@ -79,14 +86,16 @@ export function Navbar({
79
86
  return (
80
87
  <header
81
88
  className={cn(
82
- "sticky top-0 z-40 w-full border-b bg-background/80 backdrop-blur supports-[backdrop-filter]:bg-background/60",
89
+ // Keep the navbar simple and predictable so host apps can style around it.
90
+ // We avoid sticky positioning, backdrop filters, and custom width constraints.
91
+ "w-full border-b bg-background",
83
92
  className,
84
93
  )}
85
94
  >
86
95
  <div
87
96
  className={cn(
88
- "flex h-16 items-center justify-between px-4 md:px-6",
89
- "w-full lg:max-w-[80vw] mx-auto",
97
+ // Basic centered container with horizontal padding.
98
+ "mx-auto flex h-16 w-full max-w-6xl items-center justify-between px-4 md:px-6",
90
99
  )}
91
100
  >
92
101
  <div className="flex items-center gap-3 md:gap-4">
@@ -109,9 +118,11 @@ export function Navbar({
109
118
  />
110
119
  </span>
111
120
  )}
112
- <span className="text-base font-semibold tracking-tight md:text-lg group-hover:text-primary">
113
- {logoText}
114
- </span>
121
+ {altText ?? (
122
+ <span className="text-base font-semibold tracking-tight md:text-lg group-hover:text-primary">
123
+ {logoText}
124
+ </span>
125
+ )}
115
126
  </button>
116
127
  {children}
117
128
  </div>