trepur_components 2.3.17 → 2.3.18

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.
@@ -5,6 +5,7 @@ declare const meta: {
5
5
  title: string;
6
6
  component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLAnchorElement> & {
7
7
  href: string;
8
+ active?: boolean | undefined;
8
9
  } & import('react').RefAttributes<HTMLAnchorElement>> & {
9
10
  Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
10
11
  };
@@ -15,3 +16,4 @@ declare const meta: {
15
16
  export default meta;
16
17
  type Story = StoryObj<typeof NavItem>;
17
18
  export declare const Default: Story;
19
+ export declare const Active: Story;
@@ -2,6 +2,7 @@ import { HTMLAttributes } from 'react';
2
2
 
3
3
  declare const NavItem: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLAnchorElement> & {
4
4
  href: string;
5
+ active?: boolean | undefined;
5
6
  } & import('react').RefAttributes<HTMLAnchorElement>> & {
6
7
  Label: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
7
8
  };
@@ -1,31 +1,35 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as o } from "react";
3
- import f from "clsx";
4
- const n = o(({ children: t, className: e, href: a, ...m }, l) => /* @__PURE__ */ r(
3
+ import c from "clsx";
4
+ const n = o(({ active: e, children: t, className: a, href: m, ...l }, f) => /* @__PURE__ */ r(
5
5
  "a",
6
6
  {
7
- href: a,
8
- ref: l,
9
- className: f(
7
+ href: m,
8
+ ref: f,
9
+ className: c(
10
10
  "m-auto h-8 py-0 text-nav-text after:block after:scale-x-0 after:border-b-4 after:border-nav-text after:transition-all after:duration-300 after:ease-in-out hover:cursor-pointer hover:after:scale-x-100",
11
- e
11
+ {
12
+ "font-bold": e,
13
+ "font-normal": !e
14
+ },
15
+ a
12
16
  ),
13
- ...m,
17
+ ...l,
14
18
  children: t
15
19
  }
16
- )), s = o(({ className: t, ...e }, a) => /* @__PURE__ */ r(
20
+ )), s = o(({ className: e, ...t }, a) => /* @__PURE__ */ r(
17
21
  "p",
18
22
  {
19
- className: "flex-none text-nowrap text-xl font-normal tracking-wider",
23
+ className: "flex-none text-nowrap text-xl tracking-wider",
20
24
  ref: a,
21
- ...e
25
+ ...t
22
26
  }
23
27
  ));
24
28
  n.displayName = "NavItem";
25
29
  s.displayName = "NavItem.Label";
26
- const p = Object.assign(n, {
30
+ const N = Object.assign(n, {
27
31
  Label: s
28
32
  });
29
33
  export {
30
- p as NavItem
34
+ N as NavItem
31
35
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trepur_components",
3
- "version": "2.3.17",
3
+ "version": "2.3.18",
4
4
  "description": "component lib",
5
5
  "author": "trepur_ttenneb",
6
6
  "private": false,