@app-studio/web 0.8.28 → 0.8.29

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.
@@ -7,7 +7,7 @@ export interface LinkProps extends Omit<ViewProps, 'size'> {
7
7
  isExternal?: boolean;
8
8
  iconSize?: Size;
9
9
  colorScheme?: string;
10
- href: string;
10
+ to: string;
11
11
  styles?: Styles;
12
12
  }
13
13
  export interface LinkViewProps extends LinkProps {
@@ -1919,13 +1919,13 @@ var IconSizes = {
1919
1919
  '6xl': 64
1920
1920
  };
1921
1921
 
1922
- var _excluded$6 = ["children", "href", "iconSize", "underline", "isHovered", "isExternal", "styles", "setIsHovered"];
1922
+ var _excluded$6 = ["children", "to", "iconSize", "underline", "isHovered", "isExternal", "styles", "setIsHovered"];
1923
1923
  // Component definition for 'LinkView', a functional component with props defined by 'LinkViewProps'.
1924
1924
  var LinkView = _ref => {
1925
1925
  var {
1926
1926
  children,
1927
1927
  // Default href prop set to root '/', used for navigation target.
1928
- href = '/',
1928
+ to = '/',
1929
1929
  // Default icon size for links, with 'sm' specifying a small-sized icon.
1930
1930
  iconSize = 'sm',
1931
1931
  // Determines the default underline behavior of the link, set to 'default'.
@@ -1948,7 +1948,7 @@ var LinkView = _ref => {
1948
1948
  if (underline === 'hover') setIsHovered(true);
1949
1949
  };
1950
1950
  return /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
1951
- to: href,
1951
+ to: to,
1952
1952
  target: isExternal ? '_blank' : '_self'
1953
1953
  }, /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
1954
1954
  onMouseEnter: handleHover,
@@ -2379,7 +2379,7 @@ var ButtonView = _ref => {
2379
2379
  transition: 'transform 0.3s ease',
2380
2380
  transform: 'translateY(-5px)'
2381
2381
  } : {}, defaultNativeProps, buttonSizeStyles, buttonVariant, scaleWidth, props.padding || props.paddingHorizontal || props.paddingVertical || props.paddingLeft || props.paddingRight || props.paddingTop || props.paddingBottom ? {} : changePadding, shadow, props), variant === 'link' && externalHref ? (/*#__PURE__*/React__default.createElement(Link, {
2382
- href: externalHref,
2382
+ to: externalHref,
2383
2383
  textDecorationColor: colorScheme,
2384
2384
  colorScheme: colorScheme,
2385
2385
  isExternal: true