@nattstack/ui 0.0.81 → 0.0.82

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.
@@ -35,7 +35,7 @@ type ButtonLinkHrefProps<ComponentType extends ElementType> = ComponentProps<Com
35
35
  } ? {
36
36
  href?: Href | string;
37
37
  } : unknown;
38
- interface ButtonLinkInternalProps<ComponentType extends ElementType> extends Pick<ButtonProps, "isFullWidth" | "isRounded" | "label" | "size" | "variant"> {
38
+ interface ButtonLinkInternalProps<ComponentType extends ElementType> extends Pick<ButtonProps, "iconEnd" | "iconStart" | "isFullWidth" | "isRounded" | "label" | "size" | "variant"> {
39
39
  as?: ComponentType;
40
40
  }
41
41
  declare function ButtonLink<ComponentType extends ElementType = "a">(props: ButtonLinkProps<ComponentType>): JSX.Element;
@@ -90,8 +90,8 @@ const button = cva(button_module_default.base, { variants: {
90
90
  //#endregion
91
91
  //#region src/components/button-link/button-link.tsx
92
92
  function ButtonLink(props) {
93
- const { as = "a", className: customClassName = "", isFullWidth = false, isRounded = false, label = "", size = 40, variant = "primary", ...rest } = props;
94
- return /* @__PURE__ */ jsx(as, {
93
+ const { as = "a", className: customClassName = "", iconEnd = "", iconStart = "", isFullWidth = false, isRounded = false, label = "", size = 40, variant = "primary", ...rest } = props;
94
+ return /* @__PURE__ */ jsxs(as, {
95
95
  className: button({
96
96
  className: customClassName,
97
97
  isFullWidth,
@@ -100,7 +100,11 @@ function ButtonLink(props) {
100
100
  variant
101
101
  }),
102
102
  ...rest,
103
- children: /* @__PURE__ */ jsx("span", { children: label })
103
+ children: [
104
+ iconStart,
105
+ /* @__PURE__ */ jsx("span", { children: label }),
106
+ iconEnd
107
+ ]
104
108
  });
105
109
  }
106
110
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nattstack/ui",
3
- "version": "0.0.81",
3
+ "version": "0.0.82",
4
4
  "description": "A collection of reusable React components built with Base UI, TypeScript, and CSS Modules",
5
5
  "keywords": [
6
6
  "base-ui",