@app-studio/web 0.8.28 → 0.8.30

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 {
@@ -363,8 +363,12 @@ var MinusIcon = _ref4 => {
363
363
  viewBox: "0 0 24 24",
364
364
  "aria-hidden": "true",
365
365
  focusable: "false"
366
- }, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("path", {
367
- d: "M5 12h14"
366
+ }, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("line", {
367
+ stroke: color,
368
+ x1: "8",
369
+ y1: "12",
370
+ x2: "16",
371
+ y2: "12"
368
372
  })));
369
373
  };
370
374
  // Example Refactored Icon: InfoIcon with accessibility enhancements
@@ -1314,8 +1318,18 @@ var PlusIcon = _ref45 => {
1314
1318
  viewBox: "0 0 24 24",
1315
1319
  "aria-hidden": "false",
1316
1320
  focusable: "false"
1317
- }, getSvgProps(false, color, strokeWidth)), /*#__PURE__*/React__default.createElement("path", {
1318
- d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"
1321
+ }, getSvgProps(false, color, strokeWidth)), /*#__PURE__*/React__default.createElement("line", {
1322
+ stroke: color,
1323
+ x1: "12",
1324
+ y1: "5",
1325
+ x2: "12",
1326
+ y2: "19"
1327
+ }), /*#__PURE__*/React__default.createElement("line", {
1328
+ stroke: color,
1329
+ x1: "5",
1330
+ y1: "12",
1331
+ x2: "19",
1332
+ y2: "12"
1319
1333
  })));
1320
1334
  };
1321
1335
  var TickIcon = _ref46 => {
@@ -1919,13 +1933,13 @@ var IconSizes = {
1919
1933
  '6xl': 64
1920
1934
  };
1921
1935
 
1922
- var _excluded$6 = ["children", "href", "iconSize", "underline", "isHovered", "isExternal", "styles", "setIsHovered"];
1936
+ var _excluded$6 = ["children", "to", "iconSize", "underline", "isHovered", "isExternal", "styles", "setIsHovered"];
1923
1937
  // Component definition for 'LinkView', a functional component with props defined by 'LinkViewProps'.
1924
1938
  var LinkView = _ref => {
1925
1939
  var {
1926
1940
  children,
1927
1941
  // Default href prop set to root '/', used for navigation target.
1928
- href = '/',
1942
+ to = '/',
1929
1943
  // Default icon size for links, with 'sm' specifying a small-sized icon.
1930
1944
  iconSize = 'sm',
1931
1945
  // Determines the default underline behavior of the link, set to 'default'.
@@ -1948,7 +1962,7 @@ var LinkView = _ref => {
1948
1962
  if (underline === 'hover') setIsHovered(true);
1949
1963
  };
1950
1964
  return /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
1951
- to: href,
1965
+ to: to,
1952
1966
  target: isExternal ? '_blank' : '_self'
1953
1967
  }, /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
1954
1968
  onMouseEnter: handleHover,
@@ -2379,7 +2393,7 @@ var ButtonView = _ref => {
2379
2393
  transition: 'transform 0.3s ease',
2380
2394
  transform: 'translateY(-5px)'
2381
2395
  } : {}, 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,
2396
+ to: externalHref,
2383
2397
  textDecorationColor: colorScheme,
2384
2398
  colorScheme: colorScheme,
2385
2399
  isExternal: true