aura-ui-library 1.0.26 → 1.0.27

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.js CHANGED
@@ -279,7 +279,9 @@ var Navbar = ({
279
279
  // "dark" | "light"
280
280
  style = {},
281
281
  animationDuration = 1.2,
282
- easing = "expo.inOut"
282
+ easing = "expo.inOut",
283
+ linkSize = "clamp(42px, 7vw, 100px)"
284
+ // Option to change navlink size
283
285
  }) => {
284
286
  const [isOpen, setIsOpen] = (0, import_react2.useState)(false);
285
287
  const [isScrolled, setIsScrolled] = (0, import_react2.useState)(false);
@@ -394,12 +396,10 @@ var Navbar = ({
394
396
  fontWeight: "900",
395
397
  letterSpacing: "1px",
396
398
  textDecoration: "none",
397
- color: isOpen ? textMain : textMain,
398
- // Text logic handles contrast
399
+ color: textMain,
400
+ // Text logic handles contrast via theme
399
401
  zIndex: 1001,
400
402
  cursor: "pointer",
401
- mixBlendMode: isOpen ? "normal" : "difference",
402
- // Only difference when closed over unpredictable content
403
403
  willChange: "transform",
404
404
  transition: "transform 0.3s ease"
405
405
  },
@@ -424,14 +424,13 @@ var Navbar = ({
424
424
  cursor: "pointer",
425
425
  zIndex: 1001,
426
426
  border: `1px solid ${isOpen ? borderCol : "transparent"}`,
427
- transition: "all 0.4s ease",
428
- mixBlendMode: isOpen ? "normal" : "difference"
427
+ transition: "all 0.4s ease"
429
428
  },
430
429
  line: {
431
430
  width: "22px",
432
431
  height: "2px",
433
- backgroundColor: isOpen ? textMain : textMain,
434
- // In difference mode, white behaves properly
432
+ backgroundColor: textMain,
433
+ // Uses theme for color
435
434
  borderRadius: "2px",
436
435
  transition: "all 0.4s cubic-bezier(0.16, 1, 0.3, 1)",
437
436
  transformOrigin: "center"
@@ -474,7 +473,7 @@ var Navbar = ({
474
473
  willChange: "transform, opacity, color"
475
474
  },
476
475
  linkText: {
477
- fontSize: "clamp(42px, 7vw, 100px)",
476
+ fontSize: linkSize,
478
477
  fontWeight: "900",
479
478
  letterSpacing: "-2px",
480
479
  textTransform: "uppercase",
package/dist/index.mjs CHANGED
@@ -223,7 +223,9 @@ var Navbar = ({
223
223
  // "dark" | "light"
224
224
  style = {},
225
225
  animationDuration = 1.2,
226
- easing = "expo.inOut"
226
+ easing = "expo.inOut",
227
+ linkSize = "clamp(42px, 7vw, 100px)"
228
+ // Option to change navlink size
227
229
  }) => {
228
230
  const [isOpen, setIsOpen] = useState(false);
229
231
  const [isScrolled, setIsScrolled] = useState(false);
@@ -338,12 +340,10 @@ var Navbar = ({
338
340
  fontWeight: "900",
339
341
  letterSpacing: "1px",
340
342
  textDecoration: "none",
341
- color: isOpen ? textMain : textMain,
342
- // Text logic handles contrast
343
+ color: textMain,
344
+ // Text logic handles contrast via theme
343
345
  zIndex: 1001,
344
346
  cursor: "pointer",
345
- mixBlendMode: isOpen ? "normal" : "difference",
346
- // Only difference when closed over unpredictable content
347
347
  willChange: "transform",
348
348
  transition: "transform 0.3s ease"
349
349
  },
@@ -368,14 +368,13 @@ var Navbar = ({
368
368
  cursor: "pointer",
369
369
  zIndex: 1001,
370
370
  border: `1px solid ${isOpen ? borderCol : "transparent"}`,
371
- transition: "all 0.4s ease",
372
- mixBlendMode: isOpen ? "normal" : "difference"
371
+ transition: "all 0.4s ease"
373
372
  },
374
373
  line: {
375
374
  width: "22px",
376
375
  height: "2px",
377
- backgroundColor: isOpen ? textMain : textMain,
378
- // In difference mode, white behaves properly
376
+ backgroundColor: textMain,
377
+ // Uses theme for color
379
378
  borderRadius: "2px",
380
379
  transition: "all 0.4s cubic-bezier(0.16, 1, 0.3, 1)",
381
380
  transformOrigin: "center"
@@ -418,7 +417,7 @@ var Navbar = ({
418
417
  willChange: "transform, opacity, color"
419
418
  },
420
419
  linkText: {
421
- fontSize: "clamp(42px, 7vw, 100px)",
420
+ fontSize: linkSize,
422
421
  fontWeight: "900",
423
422
  letterSpacing: "-2px",
424
423
  textTransform: "uppercase",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aura-ui-library",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "A modern and customizable UI library for React applications.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",