design-zystem 1.0.509 → 1.0.510

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.
@@ -1651,6 +1651,7 @@ interface BannerAction {
1651
1651
  label: string;
1652
1652
  icon?: ReactNode;
1653
1653
  onClick?: () => void;
1654
+ variant?: 'outline' | 'link';
1654
1655
  }
1655
1656
  interface BannerToggle {
1656
1657
  checked: boolean;
@@ -1651,6 +1651,7 @@ interface BannerAction {
1651
1651
  label: string;
1652
1652
  icon?: ReactNode;
1653
1653
  onClick?: () => void;
1654
+ variant?: 'outline' | 'link';
1654
1655
  }
1655
1656
  interface BannerToggle {
1656
1657
  checked: boolean;
package/dist/ui/index.js CHANGED
@@ -7912,7 +7912,7 @@ var bannerVariants = (0, import_class_variance_authority16.cva)("rounded-[6px] p
7912
7912
  "red-500": "bg-red-50 text-red-500",
7913
7913
  "green-700": "bg-green-50 text-green-900",
7914
7914
  "green-100": "bg-green-50 text-green-900",
7915
- "grey-600": "bg-grey-100 text-grey-600",
7915
+ "grey-600": "bg-grey-200 text-grey-600",
7916
7916
  "yellow-500": "bg-yellow-50 text-yellow-500",
7917
7917
  "yellow-300": "bg-yellow-50 text-yellow-500",
7918
7918
  "yellow-200": "bg-yellow-50 text-yellow-500",
@@ -7937,6 +7937,10 @@ var TEXT_CLASS2 = {
7937
7937
  "orange-600": "text-orange-600",
7938
7938
  "purple-700": "text-purple-700"
7939
7939
  };
7940
+ var LINK_COLOR_BY_THEME = {
7941
+ "red-500": "red-500",
7942
+ "red-900": "red-500"
7943
+ };
7940
7944
  var textAlignByJustify = {
7941
7945
  start: "left",
7942
7946
  center: "center",
@@ -7985,6 +7989,24 @@ var Banner = ({
7985
7989
  disabled: toggle.disabled,
7986
7990
  "aria-label": toggle.label
7987
7991
  }
7992
+ ) : (action == null ? void 0 : action.variant) === "link" ? /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
7993
+ "button",
7994
+ {
7995
+ type: "button",
7996
+ onClick: action.onClick,
7997
+ className: cn(
7998
+ linkVariants({
7999
+ size: "s",
8000
+ color: LINK_COLOR_BY_THEME[theme != null ? theme : "blue-700"]
8001
+ }),
8002
+ "inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap"
8003
+ ),
8004
+ children: [
8005
+ action.icon,
8006
+ action.label,
8007
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(FaIcon, { name: "chevron-right", size: 10 })
8008
+ ]
8009
+ }
7988
8010
  ) : action && /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
7989
8011
  Button,
7990
8012
  {
package/dist/ui/index.mjs CHANGED
@@ -7695,7 +7695,7 @@ var bannerVariants = cva16("rounded-[6px] px-4 py-2", {
7695
7695
  "red-500": "bg-red-50 text-red-500",
7696
7696
  "green-700": "bg-green-50 text-green-900",
7697
7697
  "green-100": "bg-green-50 text-green-900",
7698
- "grey-600": "bg-grey-100 text-grey-600",
7698
+ "grey-600": "bg-grey-200 text-grey-600",
7699
7699
  "yellow-500": "bg-yellow-50 text-yellow-500",
7700
7700
  "yellow-300": "bg-yellow-50 text-yellow-500",
7701
7701
  "yellow-200": "bg-yellow-50 text-yellow-500",
@@ -7720,6 +7720,10 @@ var TEXT_CLASS2 = {
7720
7720
  "orange-600": "text-orange-600",
7721
7721
  "purple-700": "text-purple-700"
7722
7722
  };
7723
+ var LINK_COLOR_BY_THEME = {
7724
+ "red-500": "red-500",
7725
+ "red-900": "red-500"
7726
+ };
7723
7727
  var textAlignByJustify = {
7724
7728
  start: "left",
7725
7729
  center: "center",
@@ -7768,6 +7772,24 @@ var Banner = ({
7768
7772
  disabled: toggle.disabled,
7769
7773
  "aria-label": toggle.label
7770
7774
  }
7775
+ ) : (action == null ? void 0 : action.variant) === "link" ? /* @__PURE__ */ jsxs49(
7776
+ "button",
7777
+ {
7778
+ type: "button",
7779
+ onClick: action.onClick,
7780
+ className: cn(
7781
+ linkVariants({
7782
+ size: "s",
7783
+ color: LINK_COLOR_BY_THEME[theme != null ? theme : "blue-700"]
7784
+ }),
7785
+ "inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap"
7786
+ ),
7787
+ children: [
7788
+ action.icon,
7789
+ action.label,
7790
+ /* @__PURE__ */ jsx104(FaIcon, { name: "chevron-right", size: 10 })
7791
+ ]
7792
+ }
7771
7793
  ) : action && /* @__PURE__ */ jsxs49(
7772
7794
  Button,
7773
7795
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "design-zystem",
3
- "version": "1.0.509",
3
+ "version": "1.0.510",
4
4
  "description": "A React design system of importable components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",