@app-studio/web 0.8.52 → 0.8.53

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/dist/web.esm.js CHANGED
@@ -2384,7 +2384,7 @@ React.createElement(LoaderView, Object.assign({}, props)));
2384
2384
  // Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
2385
2385
  var Loader = LoaderComponent;
2386
2386
 
2387
- var _excluded$9 = ["icon", "shadow", "children", "ariaLabel", "externalHref", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "colorScheme", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered", "setIsHovered"];
2387
+ var _excluded$9 = ["icon", "shadow", "children", "ariaLabel", "to", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "colorScheme", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered", "setIsHovered", "isExternal"];
2388
2388
  var contrast = /*#__PURE__*/require('contrast');
2389
2389
  var ButtonView = _ref => {
2390
2390
  var _props$onClick;
@@ -2395,7 +2395,7 @@ var ButtonView = _ref => {
2395
2395
  // Defines the functional component ButtonView with its expected props detailed in ButtonProps.
2396
2396
  ariaLabel,
2397
2397
  // Initializes default values for the ButtonProps object; useful for defining states like isAuto, isFilled, etc.
2398
- externalHref,
2398
+ to,
2399
2399
  isAuto = false,
2400
2400
  // Determines if button should be active based on isDisabled and isLoading properties.
2401
2401
  isFilled = false,
@@ -2417,7 +2417,8 @@ var ButtonView = _ref => {
2417
2417
  loaderPosition = 'left',
2418
2418
  effect = 'default',
2419
2419
  isHovered,
2420
- setIsHovered = () => {}
2420
+ setIsHovered = () => {},
2421
+ isExternal = false
2421
2422
  // Defines CSS properties for 'outline' variant of the button with conditional styles based on reverse state.
2422
2423
  } = _ref,
2423
2424
  props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
@@ -2470,7 +2471,7 @@ var ButtonView = _ref => {
2470
2471
  borderColor: reverse ? buttonColor : 'transparent'
2471
2472
  }
2472
2473
  };
2473
- // Executes rendering of the button or a link element based on the variant; applies conditional rendering for externalHref in 'link' variant.
2474
+ // Executes rendering of the button or a link element based on the variant; applies conditional rendering for to in 'link' variant.
2474
2475
  var buttonSizeStyles = ButtonSizes[size];
2475
2476
  var buttonVariant = ButtonVariants[variant];
2476
2477
  var scaleWidth = {
@@ -2500,11 +2501,11 @@ var ButtonView = _ref => {
2500
2501
  }, hovering && !props.isDisabled ? {
2501
2502
  transition: 'transform 0.3s ease',
2502
2503
  transform: 'translateY(-5px)'
2503
- } : {}, 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.createElement(Link, {
2504
- to: externalHref,
2504
+ } : {}, defaultNativeProps, buttonSizeStyles, buttonVariant, scaleWidth, props.padding || props.paddingHorizontal || props.paddingVertical || props.paddingLeft || props.paddingRight || props.paddingTop || props.paddingBottom ? {} : changePadding, shadow, props), variant === 'link' && to ? (/*#__PURE__*/React.createElement(Link, {
2505
+ to: to,
2505
2506
  textDecorationColor: colorScheme,
2506
2507
  colorScheme: colorScheme,
2507
- isExternal: true
2508
+ isExternal: isExternal
2508
2509
  }, content)) : content);
2509
2510
  };
2510
2511
 
@@ -2871,7 +2872,8 @@ var FieldWrapper = _ref => {
2871
2872
  } = _ref,
2872
2873
  props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
2873
2874
  return /*#__PURE__*/React.createElement(Vertical, Object.assign({
2874
- width: "100%"
2875
+ width: "100%",
2876
+ maxWidth: '100%'
2875
2877
  }, props), children);
2876
2878
  };
2877
2879
 
@@ -3651,7 +3653,7 @@ var useTextFieldState = _ref => {
3651
3653
  };
3652
3654
  };
3653
3655
 
3654
- var _excluded$l = ["id", "name", "label", "hint", "value", "onChange", "leftChild", "rightChild", "helperText", "placeholder", "onChangeText", "shadow", "styles", "size", "shape", "variant", "colorScheme", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setValue", "onClick", "onFocus", "onBlur"];
3656
+ var _excluded$l = ["id", "name", "label", "hint", "value", "onChange", "left", "right", "helperText", "placeholder", "onChangeText", "shadow", "styles", "size", "shape", "variant", "colorScheme", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setValue", "onClick", "onFocus", "onBlur"];
3655
3657
  var TextFieldInput = props => /*#__PURE__*/React.createElement(Input, Object.assign({
3656
3658
  type: "text"
3657
3659
  }, props));
@@ -3663,8 +3665,8 @@ var TextFieldView = _ref => {
3663
3665
  hint,
3664
3666
  value,
3665
3667
  onChange,
3666
- leftChild,
3667
- rightChild,
3668
+ left,
3669
+ right,
3668
3670
  helperText,
3669
3671
  onChangeText,
3670
3672
  shadow = {},
@@ -3773,7 +3775,7 @@ var TextFieldView = _ref => {
3773
3775
  colorScheme: colorScheme,
3774
3776
  onMouseEnter: handleHover,
3775
3777
  onMouseLeave: handleHover
3776
- }, leftChild, /*#__PURE__*/React.createElement(FieldWrapper, null, isWithLabel && (/*#__PURE__*/React.createElement(FieldLabel, Object.assign({
3778
+ }, left, /*#__PURE__*/React.createElement(FieldWrapper, null, isWithLabel && (/*#__PURE__*/React.createElement(FieldLabel, Object.assign({
3777
3779
  htmlFor: id,
3778
3780
  color: colorScheme,
3779
3781
  error: error
@@ -3790,11 +3792,11 @@ var TextFieldView = _ref => {
3790
3792
  }, fieldStyles, props, {
3791
3793
  onChange: handleChange,
3792
3794
  value: value
3793
- }))), (rightChild || isClearable && value) && (/*#__PURE__*/React.createElement(FieldIcons, null, isClearable && value && !isReadOnly && !isDisabled && (/*#__PURE__*/React.createElement(CloseIcon, {
3795
+ }))), isClearable && value && !isReadOnly && !isDisabled && (/*#__PURE__*/React.createElement(FieldIcons, null, /*#__PURE__*/React.createElement(CloseIcon, {
3794
3796
  size: Typography.fontSizes[size],
3795
3797
  color: IconColor,
3796
3798
  onClick: handleClear
3797
- })), rightChild && /*#__PURE__*/React.createElement(React.Fragment, null, rightChild)))));
3799
+ }))), right));
3798
3800
  };
3799
3801
 
3800
3802
  var TextFieldComponent = props => {
@@ -5853,7 +5855,7 @@ var PasswordComponent = _ref => {
5853
5855
  return /*#__PURE__*/React.createElement(TextFieldView, Object.assign({}, passwordProps, {
5854
5856
  type: isVisible ? 'text' : 'password',
5855
5857
  isClearable: false,
5856
- rightChild: /*#__PURE__*/React.createElement(View$1, {
5858
+ right: /*#__PURE__*/React.createElement(View$1, {
5857
5859
  onClick: () => {
5858
5860
  if (!props.isDisabled) {
5859
5861
  setIsVisible(!isVisible);
@@ -6006,7 +6008,7 @@ var ComboBoxView = _ref => {
6006
6008
  onChange: value => handleSearch(value),
6007
6009
  hint: placeholder,
6008
6010
  isClearable: false,
6009
- leftChild: /*#__PURE__*/React.createElement(SearchIcon, {
6011
+ left: /*#__PURE__*/React.createElement(SearchIcon, {
6010
6012
  size: 12
6011
6013
  }),
6012
6014
  styles: {
@@ -6310,7 +6312,7 @@ var PasswordComponent$1 = _ref => {
6310
6312
  return /*#__PURE__*/React.createElement(TextFieldView, Object.assign({}, passwordProps, {
6311
6313
  type: isVisible ? 'text' : 'password',
6312
6314
  isClearable: false,
6313
- rightChild: /*#__PURE__*/React.createElement(View$1, {
6315
+ right: /*#__PURE__*/React.createElement(View$1, {
6314
6316
  onClick: () => {
6315
6317
  if (!props.isDisabled) {
6316
6318
  setIsVisible(!isVisible);