@sebgroup/green-react 3.8.0 → 3.8.1

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/index.esm.js CHANGED
@@ -2000,15 +2000,18 @@ var InPageWizardStepCard = function InPageWizardStepCard(_ref) {
2000
2000
 
2001
2001
  var Link = function Link(_a) {
2002
2002
  var button = _a.button,
2003
+ secondary = _a.secondary,
2003
2004
  children = _a.children,
2004
2005
  className = _a.className,
2005
2006
  role = _a.role,
2006
- otherProps = __rest(_a, ["button", "children", "className", "role"]);
2007
- var buttonClassName = classNames(className, {
2007
+ otherProps = __rest(_a, ["button", "secondary", "children", "className", "role"]);
2008
+ var linkClassName = classNames(className, {
2008
2009
  button: button
2009
- }, button);
2010
+ }, button, {
2011
+ 'link gds-link-arrow': secondary
2012
+ });
2010
2013
  return jsx("a", Object.assign({
2011
- className: buttonClassName,
2014
+ className: linkClassName,
2012
2015
  role: button ? 'button' : role
2013
2016
  }, otherProps, {
2014
2017
  children: children
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@sebgroup/green-react",
3
- "version": "3.8.0",
3
+ "version": "3.8.1",
4
4
  "peerDependencies": {
5
5
  "react": "^17 || ^18",
6
6
  "react-dom": "^17 || ^18"
7
7
  },
8
8
  "dependencies": {
9
- "@sebgroup/green-core": "^1.23.0",
9
+ "@sebgroup/green-core": "^1.25.0",
10
10
  "@sebgroup/chlorophyll": "^3.4.1",
11
11
  "@sebgroup/extract": "^3.0.1",
12
12
  "@lit/react": "^1.0.2",
@@ -2,6 +2,7 @@ import { HTMLProps, PropsWithChildren } from 'react';
2
2
  import { ButtonVariant } from '@sebgroup/extract';
3
3
  interface LinkProps extends HTMLProps<HTMLAnchorElement> {
4
4
  button?: boolean | ButtonVariant;
5
+ secondary?: boolean;
5
6
  }
6
- export declare const Link: ({ button, children, className, role, ...otherProps }: PropsWithChildren<LinkProps>) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const Link: ({ button, secondary, children, className, role, ...otherProps }: PropsWithChildren<LinkProps>) => import("react/jsx-runtime").JSX.Element;
7
8
  export default Link;