@alexandregme/zljs 3.15.0 → 3.16.0

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/CHANGELOG.md CHANGED
@@ -8,6 +8,12 @@ A change that needs action in an app has a **Migration** note. When updating, re
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [3.16.0] - 2026-11-19
12
+
13
+ ### Added
14
+
15
+ - `target` on `Link`, as on an HTML link: `_blank` opens a new tab, for a link that leaves the app
16
+
11
17
  ## [3.15.0] - 2026-11-18
12
18
 
13
19
  ### Added
@@ -559,7 +565,8 @@ Replace the shade with the class of the `color` being tested, for example `/(^|\
559
565
 
560
566
  The message of `Error` is `text-zl-danger`. `none` and `ghost` didn't change.
561
567
 
562
- [Unreleased]: https://github.com/alexandregme/zljs/compare/v3.15.0...HEAD
568
+ [Unreleased]: https://github.com/alexandregme/zljs/compare/v3.16.0...HEAD
569
+ [3.16.0]: https://github.com/alexandregme/zljs/compare/v3.15.0...v3.16.0
563
570
  [3.15.0]: https://github.com/alexandregme/zljs/compare/v3.14.0...v3.15.0
564
571
  [3.14.0]: https://github.com/alexandregme/zljs/compare/v3.13.1...v3.14.0
565
572
  [3.13.1]: https://github.com/alexandregme/zljs/compare/v3.13.0...v3.13.1
@@ -699,6 +699,7 @@ import { jsx as jsx9 } from "react/jsx-runtime";
699
699
  var Link = ({
700
700
  children,
701
701
  href,
702
+ target,
702
703
  variant = "inline",
703
704
  color = "primary",
704
705
  active = false,
@@ -712,6 +713,7 @@ var Link = ({
712
713
  "aria-label": ariaLabel,
713
714
  onClick,
714
715
  className: link({ variant, color, active }),
716
+ target,
715
717
  ...active && { "aria-current": "page" },
716
718
  children
717
719
  }
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ import {
32
32
  usePageStore,
33
33
  useRouterStore,
34
34
  useToastStore
35
- } from "./chunk-OY4JANWC.js";
35
+ } from "./chunk-KAYLAL75.js";
36
36
  import {
37
37
  Error,
38
38
  FormInput,
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { ReactNode } from 'react';
2
+ import { ReactNode, HTMLAttributeAnchorTarget } from 'react';
3
3
  import { SemanticColor, ReduxProviderProps, ZustandProvidersProps } from '../index.js';
4
4
  import { ThunkDispatch, UnknownAction, Reducer } from '@reduxjs/toolkit';
5
5
 
@@ -29,6 +29,11 @@ type LinkVariant = "inline" | "nav";
29
29
  interface LinkProps {
30
30
  children: ReactNode;
31
31
  href: string;
32
+ /**
33
+ * Where the link opens, as on an HTML link: `_blank` is a new tab, for a
34
+ * link that leaves the app.
35
+ */
36
+ target?: HTMLAttributeAnchorTarget;
32
37
  /** `inline` is a link in a text. `nav` is a row of a menu, with no underline. */
33
38
  variant?: LinkVariant;
34
39
  color?: SemanticColor;
@@ -40,7 +45,7 @@ interface LinkProps {
40
45
  onClick?: () => void;
41
46
  }
42
47
 
43
- declare const Link: ({ children, href, variant, color, active, "aria-label": ariaLabel, onClick, }: LinkProps) => react.JSX.Element;
48
+ declare const Link: ({ children, href, target, variant, color, active, "aria-label": ariaLabel, onClick, }: LinkProps) => react.JSX.Element;
44
49
 
45
50
  type AppProvidersProps = ReduxProviderProps & Pick<ZustandProvidersProps, "auth">;
46
51
 
@@ -7,7 +7,7 @@ import {
7
7
  ZustandProviders,
8
8
  usePageStore,
9
9
  useRouterStore
10
- } from "../chunk-OY4JANWC.js";
10
+ } from "../chunk-KAYLAL75.js";
11
11
 
12
12
  // core/next/root-layout/root-layout.tsx
13
13
  import { Analytics } from "@vercel/analytics/next";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexandregme/zljs",
3
- "version": "3.15.0",
3
+ "version": "3.16.0",
4
4
  "description": "Opinionated, accessible React component library for enterprise apps (Next.js, Tailwind CSS v4).",
5
5
  "keywords": [
6
6
  "react",