@claralight-design/abweb-navbar 0.1.0 → 0.1.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.
@@ -17,6 +17,10 @@
17
17
  max-height: 72px;
18
18
  }
19
19
 
20
+ .header > * {
21
+ corner-shape: unset;
22
+ }
23
+
20
24
  .inner {
21
25
  width: calc(100% - 12px);
22
26
  max-width: calc(1200px - 12px);
@@ -127,16 +131,16 @@
127
131
  align-items: center;
128
132
  justify-content: center;
129
133
  padding: 4px 8px;
130
- border-radius: 12px;
134
+ border-radius: 999px;
131
135
  transition: transform 0.25s ease, opacity 0.25s ease;
132
136
  color: inherit;
133
137
  text-decoration: none;
134
138
  white-space: nowrap;
135
- }
136
-
137
- .logotypeWrapper:hover {
138
- transform: translateY(-1px);
139
- opacity: 0.92;
139
+ min-height: 36px;
140
+ transition:
141
+ background 0.2s ease,
142
+ color 0.2s ease,
143
+ transform 0.15s ease;
140
144
  }
141
145
 
142
146
  .breadcrumb {
@@ -228,7 +232,6 @@
228
232
  align-items: center;
229
233
  justify-content: center;
230
234
  text-decoration: none;
231
- cursor: pointer;
232
235
  transition:
233
236
  background 0.2s ease,
234
237
  color 0.2s ease,
@@ -239,12 +242,12 @@
239
242
  font-weight: 500;
240
243
  }
241
244
 
242
- .navLink:hover {
245
+ .navLink:hover, .logotypeWrapper:hover {
243
246
  background: color-mix(in srgb, var(--color-text) 8%, transparent);
244
247
  color: var(--color-text);
245
248
  }
246
249
 
247
- .navLink:active {
250
+ .navLink:active, .logotypeWrapper:active {
248
251
  transform: scale(0.96);
249
252
  }
250
253
 
@@ -257,6 +260,7 @@
257
260
  display: inline-flex;
258
261
  align-items: center;
259
262
  min-width: 0;
263
+ font-weight: 600;
260
264
  }
261
265
 
262
266
  .desktopLabel svg {
@@ -272,8 +276,8 @@ max-height: 12px;
272
276
  inset: 0;
273
277
  z-index: 1001;
274
278
  background: rgba(0, 0, 0, 0.52);
275
- -webkit-backdrop-filter: blur(6px);
276
- backdrop-filter: blur(6px);
279
+ -webkit-backdrop-filter: blur(16px);
280
+ backdrop-filter: blur(16px);
277
281
  }
278
282
 
279
283
  .menuDrawerContent {
@@ -315,6 +319,8 @@ max-height: 12px;
315
319
  .menuDrawerHeader {
316
320
  width: 100%;
317
321
  position: relative;
322
+ display: none;
323
+ visibility: hidden;
318
324
  }
319
325
 
320
326
  .menuTitle {
@@ -442,6 +448,14 @@ max-height: 12px;
442
448
  .menuTitle {
443
449
  font-size: 36px;
444
450
  }
451
+
452
+ .logotypeWrapper {
453
+ margin: 0 auto;
454
+ }
455
+
456
+ .centerColumn {
457
+ justify-content: center;
458
+ }
445
459
  }
446
460
 
447
461
  @media (prefers-reduced-motion: reduce) {
package/NavHeader.tsx CHANGED
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useMemo, useRef, useState } from 'react'
2
2
  import styles from './NavHeader.module.css'
3
- import { ArrowLeftIcon, OptionIcon, XIcon } from '@phosphor-icons/react'
3
+ import { ArrowLeftIcon, DotsNineIcon, XIcon } from '@phosphor-icons/react'
4
4
  import { Drawer } from 'vaul'
5
5
  import BlurEffect from 'react-progressive-blur'
6
6
 
@@ -338,7 +338,6 @@ const NavHeader: React.FC<NavHeaderProps> = ({
338
338
  open={menuOpen}
339
339
  onOpenChange={setMenuOpen}
340
340
  shouldScaleBackground
341
- disablePreventScroll={false}
342
341
  direction='top'
343
342
  >
344
343
  <Drawer.Trigger asChild>
@@ -347,7 +346,7 @@ const NavHeader: React.FC<NavHeaderProps> = ({
347
346
  className={styles.iconButton}
348
347
  aria-label={resolvedLabels.menu}
349
348
  >
350
- <OptionIcon size={18} weight='bold' />
349
+ <DotsNineIcon size={18} weight='bold' />
351
350
  </button>
352
351
  </Drawer.Trigger>
353
352
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claralight-design/abweb-navbar",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "A react components for AstroBox websites.",
5
5
  "scripts": {
6
6
  "dev": "vite",