@almadar/ui 2.19.0 → 2.19.2

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.
@@ -14905,14 +14905,26 @@ var HeroSection = ({
14905
14905
  ),
14906
14906
  installCommand && /* @__PURE__ */ jsxRuntime.jsx(InstallBox, { command: installCommand }),
14907
14907
  (primaryAction || secondaryAction) && /* @__PURE__ */ jsxRuntime.jsxs(HStack, { gap: "md", align: "center", children: [
14908
- primaryAction && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "primary", size: "lg", onClick: () => {
14909
- const external = primaryAction.href.startsWith("http");
14910
- window.open(primaryAction.href, external ? "_blank" : "_self");
14911
- }, children: primaryAction.label }),
14912
- secondaryAction && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "secondary", size: "lg", onClick: () => {
14913
- const external = secondaryAction.href.startsWith("http");
14914
- window.open(secondaryAction.href, external ? "_blank" : "_self");
14915
- }, children: secondaryAction.label })
14908
+ primaryAction && /* @__PURE__ */ jsxRuntime.jsx(
14909
+ "a",
14910
+ {
14911
+ href: primaryAction.href,
14912
+ target: primaryAction.href.startsWith("http") ? "_blank" : void 0,
14913
+ rel: primaryAction.href.startsWith("http") ? "noopener noreferrer" : void 0,
14914
+ className: "no-underline",
14915
+ children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "primary", size: "lg", children: primaryAction.label })
14916
+ }
14917
+ ),
14918
+ secondaryAction && /* @__PURE__ */ jsxRuntime.jsx(
14919
+ "a",
14920
+ {
14921
+ href: secondaryAction.href,
14922
+ target: secondaryAction.href.startsWith("http") ? "_blank" : void 0,
14923
+ rel: secondaryAction.href.startsWith("http") ? "noopener noreferrer" : void 0,
14924
+ className: "no-underline",
14925
+ children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "secondary", size: "lg", children: secondaryAction.label })
14926
+ }
14927
+ )
14916
14928
  ] }),
14917
14929
  children
14918
14930
  ]
@@ -14875,14 +14875,26 @@ var HeroSection = ({
14875
14875
  ),
14876
14876
  installCommand && /* @__PURE__ */ jsx(InstallBox, { command: installCommand }),
14877
14877
  (primaryAction || secondaryAction) && /* @__PURE__ */ jsxs(HStack, { gap: "md", align: "center", children: [
14878
- primaryAction && /* @__PURE__ */ jsx(Button, { variant: "primary", size: "lg", onClick: () => {
14879
- const external = primaryAction.href.startsWith("http");
14880
- window.open(primaryAction.href, external ? "_blank" : "_self");
14881
- }, children: primaryAction.label }),
14882
- secondaryAction && /* @__PURE__ */ jsx(Button, { variant: "secondary", size: "lg", onClick: () => {
14883
- const external = secondaryAction.href.startsWith("http");
14884
- window.open(secondaryAction.href, external ? "_blank" : "_self");
14885
- }, children: secondaryAction.label })
14878
+ primaryAction && /* @__PURE__ */ jsx(
14879
+ "a",
14880
+ {
14881
+ href: primaryAction.href,
14882
+ target: primaryAction.href.startsWith("http") ? "_blank" : void 0,
14883
+ rel: primaryAction.href.startsWith("http") ? "noopener noreferrer" : void 0,
14884
+ className: "no-underline",
14885
+ children: /* @__PURE__ */ jsx(Button, { variant: "primary", size: "lg", children: primaryAction.label })
14886
+ }
14887
+ ),
14888
+ secondaryAction && /* @__PURE__ */ jsx(
14889
+ "a",
14890
+ {
14891
+ href: secondaryAction.href,
14892
+ target: secondaryAction.href.startsWith("http") ? "_blank" : void 0,
14893
+ rel: secondaryAction.href.startsWith("http") ? "noopener noreferrer" : void 0,
14894
+ className: "no-underline",
14895
+ children: /* @__PURE__ */ jsx(Button, { variant: "secondary", size: "lg", children: secondaryAction.label })
14896
+ }
14897
+ )
14886
14898
  ] }),
14887
14899
  children
14888
14900
  ]
@@ -3656,14 +3656,26 @@ var HeroSection = ({
3656
3656
  ),
3657
3657
  installCommand && /* @__PURE__ */ jsxRuntime.jsx(InstallBox, { command: installCommand }),
3658
3658
  (primaryAction || secondaryAction) && /* @__PURE__ */ jsxRuntime.jsxs(HStack, { gap: "md", align: "center", children: [
3659
- primaryAction && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "primary", size: "lg", onClick: () => {
3660
- const external = primaryAction.href.startsWith("http");
3661
- window.open(primaryAction.href, external ? "_blank" : "_self");
3662
- }, children: primaryAction.label }),
3663
- secondaryAction && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "secondary", size: "lg", onClick: () => {
3664
- const external = secondaryAction.href.startsWith("http");
3665
- window.open(secondaryAction.href, external ? "_blank" : "_self");
3666
- }, children: secondaryAction.label })
3659
+ primaryAction && /* @__PURE__ */ jsxRuntime.jsx(
3660
+ "a",
3661
+ {
3662
+ href: primaryAction.href,
3663
+ target: primaryAction.href.startsWith("http") ? "_blank" : void 0,
3664
+ rel: primaryAction.href.startsWith("http") ? "noopener noreferrer" : void 0,
3665
+ className: "no-underline",
3666
+ children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "primary", size: "lg", children: primaryAction.label })
3667
+ }
3668
+ ),
3669
+ secondaryAction && /* @__PURE__ */ jsxRuntime.jsx(
3670
+ "a",
3671
+ {
3672
+ href: secondaryAction.href,
3673
+ target: secondaryAction.href.startsWith("http") ? "_blank" : void 0,
3674
+ rel: secondaryAction.href.startsWith("http") ? "noopener noreferrer" : void 0,
3675
+ className: "no-underline",
3676
+ children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "secondary", size: "lg", children: secondaryAction.label })
3677
+ }
3678
+ )
3667
3679
  ] }),
3668
3680
  children
3669
3681
  ]
@@ -3632,14 +3632,26 @@ var HeroSection = ({
3632
3632
  ),
3633
3633
  installCommand && /* @__PURE__ */ jsx(InstallBox, { command: installCommand }),
3634
3634
  (primaryAction || secondaryAction) && /* @__PURE__ */ jsxs(HStack, { gap: "md", align: "center", children: [
3635
- primaryAction && /* @__PURE__ */ jsx(Button, { variant: "primary", size: "lg", onClick: () => {
3636
- const external = primaryAction.href.startsWith("http");
3637
- window.open(primaryAction.href, external ? "_blank" : "_self");
3638
- }, children: primaryAction.label }),
3639
- secondaryAction && /* @__PURE__ */ jsx(Button, { variant: "secondary", size: "lg", onClick: () => {
3640
- const external = secondaryAction.href.startsWith("http");
3641
- window.open(secondaryAction.href, external ? "_blank" : "_self");
3642
- }, children: secondaryAction.label })
3635
+ primaryAction && /* @__PURE__ */ jsx(
3636
+ "a",
3637
+ {
3638
+ href: primaryAction.href,
3639
+ target: primaryAction.href.startsWith("http") ? "_blank" : void 0,
3640
+ rel: primaryAction.href.startsWith("http") ? "noopener noreferrer" : void 0,
3641
+ className: "no-underline",
3642
+ children: /* @__PURE__ */ jsx(Button, { variant: "primary", size: "lg", children: primaryAction.label })
3643
+ }
3644
+ ),
3645
+ secondaryAction && /* @__PURE__ */ jsx(
3646
+ "a",
3647
+ {
3648
+ href: secondaryAction.href,
3649
+ target: secondaryAction.href.startsWith("http") ? "_blank" : void 0,
3650
+ rel: secondaryAction.href.startsWith("http") ? "noopener noreferrer" : void 0,
3651
+ className: "no-underline",
3652
+ children: /* @__PURE__ */ jsx(Button, { variant: "secondary", size: "lg", children: secondaryAction.label })
3653
+ }
3654
+ )
3643
3655
  ] }),
3644
3656
  children
3645
3657
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "2.19.0",
3
+ "version": "2.19.2",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/components/index.js",