@alexandregme/zljs 3.15.0 → 3.17.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 +15 -1
- package/dist/{chunk-OY4JANWC.js → chunk-W44HHGBY.js} +11 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/next/index.d.ts +7 -2
- package/dist/next/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,18 @@ A change that needs action in an app has a **Migration** note. When updating, re
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [3.17.0] - 2026-11-19
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- `Icon` has the `Settings` (gear) and `SiGithub` icons
|
|
16
|
+
|
|
17
|
+
## [3.16.0] - 2026-11-19
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- `target` on `Link`, as on an HTML link: `_blank` opens a new tab, for a link that leaves the app
|
|
22
|
+
|
|
11
23
|
## [3.15.0] - 2026-11-18
|
|
12
24
|
|
|
13
25
|
### Added
|
|
@@ -559,7 +571,9 @@ Replace the shade with the class of the `color` being tested, for example `/(^|\
|
|
|
559
571
|
|
|
560
572
|
The message of `Error` is `text-zl-danger`. `none` and `ghost` didn't change.
|
|
561
573
|
|
|
562
|
-
[Unreleased]: https://github.com/alexandregme/zljs/compare/v3.
|
|
574
|
+
[Unreleased]: https://github.com/alexandregme/zljs/compare/v3.17.0...HEAD
|
|
575
|
+
[3.17.0]: https://github.com/alexandregme/zljs/compare/v3.16.0...v3.17.0
|
|
576
|
+
[3.16.0]: https://github.com/alexandregme/zljs/compare/v3.15.0...v3.16.0
|
|
563
577
|
[3.15.0]: https://github.com/alexandregme/zljs/compare/v3.14.0...v3.15.0
|
|
564
578
|
[3.14.0]: https://github.com/alexandregme/zljs/compare/v3.13.1...v3.14.0
|
|
565
579
|
[3.13.1]: https://github.com/alexandregme/zljs/compare/v3.13.0...v3.13.1
|
|
@@ -4,12 +4,19 @@
|
|
|
4
4
|
import * as LucideIcons from "lucide-react";
|
|
5
5
|
|
|
6
6
|
// core/icon/icon.const.ts
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
SiWhatsapp,
|
|
9
|
+
SiFacebook,
|
|
10
|
+
SiInstagram,
|
|
11
|
+
SiShopify,
|
|
12
|
+
SiGithub
|
|
13
|
+
} from "react-icons/si";
|
|
8
14
|
var iconBrands = {
|
|
9
15
|
SiWhatsapp,
|
|
10
16
|
SiFacebook,
|
|
11
17
|
SiInstagram,
|
|
12
|
-
SiShopify
|
|
18
|
+
SiShopify,
|
|
19
|
+
SiGithub
|
|
13
20
|
};
|
|
14
21
|
var iconSizes = {
|
|
15
22
|
sm: 12,
|
|
@@ -699,6 +706,7 @@ import { jsx as jsx9 } from "react/jsx-runtime";
|
|
|
699
706
|
var Link = ({
|
|
700
707
|
children,
|
|
701
708
|
href,
|
|
709
|
+
target,
|
|
702
710
|
variant = "inline",
|
|
703
711
|
color = "primary",
|
|
704
712
|
active = false,
|
|
@@ -712,6 +720,7 @@ var Link = ({
|
|
|
712
720
|
"aria-label": ariaLabel,
|
|
713
721
|
onClick,
|
|
714
722
|
className: link({ variant, color, active }),
|
|
723
|
+
target,
|
|
715
724
|
...active && { "aria-current": "page" },
|
|
716
725
|
children
|
|
717
726
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import 'react-hook-form';
|
|
|
12
12
|
*/
|
|
13
13
|
type Size = "sm" | "md" | "lg";
|
|
14
14
|
|
|
15
|
-
declare const iconNames: readonly ["Check", "X", "Plus", "Minus", "Search", "Menu", "ChevronDown", "ChevronUp", "ChevronLeft", "ChevronRight", "ChevronsUp", "ArrowUp", "Pencil", "Trash2", "Save", "RefreshCw", "Home", "MessageSquare", "Users", "Store", "ShoppingCart", "BarChart3", "Brain", "Send", "LogOut", "Download", "User", "Key", "Contact", "Package", "Warehouse", "HandCoins", "Stethoscope", "LogIn", "Megaphone", "LayoutDashboard", "Smile", "Frown", "Cat", "ArrowRight", "Loader", "LoaderCircle", "CheckCircle", "XCircle", "AlertTriangle", "Info", "Route", "Navigation", "ListChecks", "Map", "MapPinOff", "SiWhatsapp", "SiFacebook", "SiInstagram", "SiShopify"];
|
|
15
|
+
declare const iconNames: readonly ["Check", "X", "Plus", "Minus", "Search", "Menu", "ChevronDown", "ChevronUp", "ChevronLeft", "ChevronRight", "ChevronsUp", "ArrowUp", "Pencil", "Trash2", "Save", "RefreshCw", "Home", "MessageSquare", "Users", "Store", "ShoppingCart", "BarChart3", "Brain", "Send", "LogOut", "Download", "User", "Key", "Contact", "Package", "Warehouse", "HandCoins", "Stethoscope", "LogIn", "Megaphone", "LayoutDashboard", "Smile", "Frown", "Cat", "ArrowRight", "Loader", "LoaderCircle", "CheckCircle", "XCircle", "AlertTriangle", "Info", "Route", "Navigation", "ListChecks", "Map", "MapPinOff", "Settings", "SiWhatsapp", "SiFacebook", "SiInstagram", "SiShopify", "SiGithub"];
|
|
16
16
|
|
|
17
17
|
type IconName = (typeof iconNames)[number];
|
|
18
18
|
interface IconProps {
|
package/dist/index.js
CHANGED
package/dist/next/index.d.ts
CHANGED
|
@@ -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
|
|
package/dist/next/index.js
CHANGED