@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/components/Button/Button/Button.props.d.ts +1 -1
- package/dist/components/Form/TextField/TextField/TextField.props.d.ts +2 -2
- package/dist/web.cjs.development.js +19 -17
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +19 -17
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +19 -17
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import { LoaderProps } from '../../Loader/Loader/Loader.props';
|
|
|
6
6
|
export interface ButtonProps extends Omit<$ButtonProps, 'size'> {
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
colorScheme?: any;
|
|
9
|
-
|
|
9
|
+
to?: string;
|
|
10
10
|
isLoading?: boolean;
|
|
11
11
|
loaderProps?: LoaderProps;
|
|
12
12
|
loaderPosition?: LoaderPosition;
|
|
@@ -9,8 +9,8 @@ export interface TextFieldProps extends Omit<InputProps, 'size'> {
|
|
|
9
9
|
name?: string;
|
|
10
10
|
label?: string;
|
|
11
11
|
colorScheme?: string;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
left?: React.ReactNode;
|
|
13
|
+
right?: React.ReactNode;
|
|
14
14
|
placeholder?: string;
|
|
15
15
|
isReadOnly?: boolean;
|
|
16
16
|
isDisabled?: boolean;
|
|
@@ -2391,7 +2391,7 @@ React__default.createElement(LoaderView, Object.assign({}, props)));
|
|
|
2391
2391
|
// Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
|
|
2392
2392
|
var Loader = LoaderComponent;
|
|
2393
2393
|
|
|
2394
|
-
var _excluded$9 = ["icon", "shadow", "children", "ariaLabel", "
|
|
2394
|
+
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"];
|
|
2395
2395
|
var contrast = /*#__PURE__*/require('contrast');
|
|
2396
2396
|
var ButtonView = _ref => {
|
|
2397
2397
|
var _props$onClick;
|
|
@@ -2402,7 +2402,7 @@ var ButtonView = _ref => {
|
|
|
2402
2402
|
// Defines the functional component ButtonView with its expected props detailed in ButtonProps.
|
|
2403
2403
|
ariaLabel,
|
|
2404
2404
|
// Initializes default values for the ButtonProps object; useful for defining states like isAuto, isFilled, etc.
|
|
2405
|
-
|
|
2405
|
+
to,
|
|
2406
2406
|
isAuto = false,
|
|
2407
2407
|
// Determines if button should be active based on isDisabled and isLoading properties.
|
|
2408
2408
|
isFilled = false,
|
|
@@ -2424,7 +2424,8 @@ var ButtonView = _ref => {
|
|
|
2424
2424
|
loaderPosition = 'left',
|
|
2425
2425
|
effect = 'default',
|
|
2426
2426
|
isHovered,
|
|
2427
|
-
setIsHovered = () => {}
|
|
2427
|
+
setIsHovered = () => {},
|
|
2428
|
+
isExternal = false
|
|
2428
2429
|
// Defines CSS properties for 'outline' variant of the button with conditional styles based on reverse state.
|
|
2429
2430
|
} = _ref,
|
|
2430
2431
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
@@ -2477,7 +2478,7 @@ var ButtonView = _ref => {
|
|
|
2477
2478
|
borderColor: reverse ? buttonColor : 'transparent'
|
|
2478
2479
|
}
|
|
2479
2480
|
};
|
|
2480
|
-
// Executes rendering of the button or a link element based on the variant; applies conditional rendering for
|
|
2481
|
+
// Executes rendering of the button or a link element based on the variant; applies conditional rendering for to in 'link' variant.
|
|
2481
2482
|
var buttonSizeStyles = ButtonSizes[size];
|
|
2482
2483
|
var buttonVariant = ButtonVariants[variant];
|
|
2483
2484
|
var scaleWidth = {
|
|
@@ -2507,11 +2508,11 @@ var ButtonView = _ref => {
|
|
|
2507
2508
|
}, hovering && !props.isDisabled ? {
|
|
2508
2509
|
transition: 'transform 0.3s ease',
|
|
2509
2510
|
transform: 'translateY(-5px)'
|
|
2510
|
-
} : {}, defaultNativeProps, buttonSizeStyles, buttonVariant, scaleWidth, props.padding || props.paddingHorizontal || props.paddingVertical || props.paddingLeft || props.paddingRight || props.paddingTop || props.paddingBottom ? {} : changePadding, shadow, props), variant === 'link' &&
|
|
2511
|
-
to:
|
|
2511
|
+
} : {}, 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__default.createElement(Link, {
|
|
2512
|
+
to: to,
|
|
2512
2513
|
textDecorationColor: colorScheme,
|
|
2513
2514
|
colorScheme: colorScheme,
|
|
2514
|
-
isExternal:
|
|
2515
|
+
isExternal: isExternal
|
|
2515
2516
|
}, content)) : content);
|
|
2516
2517
|
};
|
|
2517
2518
|
|
|
@@ -2878,7 +2879,8 @@ var FieldWrapper = _ref => {
|
|
|
2878
2879
|
} = _ref,
|
|
2879
2880
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
2880
2881
|
return /*#__PURE__*/React__default.createElement(Vertical, Object.assign({
|
|
2881
|
-
width: "100%"
|
|
2882
|
+
width: "100%",
|
|
2883
|
+
maxWidth: '100%'
|
|
2882
2884
|
}, props), children);
|
|
2883
2885
|
};
|
|
2884
2886
|
|
|
@@ -3658,7 +3660,7 @@ var useTextFieldState = _ref => {
|
|
|
3658
3660
|
};
|
|
3659
3661
|
};
|
|
3660
3662
|
|
|
3661
|
-
var _excluded$l = ["id", "name", "label", "hint", "value", "onChange", "
|
|
3663
|
+
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"];
|
|
3662
3664
|
var TextFieldInput = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
|
|
3663
3665
|
type: "text"
|
|
3664
3666
|
}, props));
|
|
@@ -3670,8 +3672,8 @@ var TextFieldView = _ref => {
|
|
|
3670
3672
|
hint,
|
|
3671
3673
|
value,
|
|
3672
3674
|
onChange,
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
+
left,
|
|
3676
|
+
right,
|
|
3675
3677
|
helperText,
|
|
3676
3678
|
onChangeText,
|
|
3677
3679
|
shadow = {},
|
|
@@ -3780,7 +3782,7 @@ var TextFieldView = _ref => {
|
|
|
3780
3782
|
colorScheme: colorScheme,
|
|
3781
3783
|
onMouseEnter: handleHover,
|
|
3782
3784
|
onMouseLeave: handleHover
|
|
3783
|
-
},
|
|
3785
|
+
}, left, /*#__PURE__*/React__default.createElement(FieldWrapper, null, isWithLabel && (/*#__PURE__*/React__default.createElement(FieldLabel, Object.assign({
|
|
3784
3786
|
htmlFor: id,
|
|
3785
3787
|
color: colorScheme,
|
|
3786
3788
|
error: error
|
|
@@ -3797,11 +3799,11 @@ var TextFieldView = _ref => {
|
|
|
3797
3799
|
}, fieldStyles, props, {
|
|
3798
3800
|
onChange: handleChange,
|
|
3799
3801
|
value: value
|
|
3800
|
-
}))),
|
|
3802
|
+
}))), isClearable && value && !isReadOnly && !isDisabled && (/*#__PURE__*/React__default.createElement(FieldIcons, null, /*#__PURE__*/React__default.createElement(CloseIcon, {
|
|
3801
3803
|
size: appStudio.Typography.fontSizes[size],
|
|
3802
3804
|
color: IconColor,
|
|
3803
3805
|
onClick: handleClear
|
|
3804
|
-
})),
|
|
3806
|
+
}))), right));
|
|
3805
3807
|
};
|
|
3806
3808
|
|
|
3807
3809
|
var TextFieldComponent = props => {
|
|
@@ -5860,7 +5862,7 @@ var PasswordComponent = _ref => {
|
|
|
5860
5862
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
5861
5863
|
type: isVisible ? 'text' : 'password',
|
|
5862
5864
|
isClearable: false,
|
|
5863
|
-
|
|
5865
|
+
right: /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5864
5866
|
onClick: () => {
|
|
5865
5867
|
if (!props.isDisabled) {
|
|
5866
5868
|
setIsVisible(!isVisible);
|
|
@@ -6013,7 +6015,7 @@ var ComboBoxView = _ref => {
|
|
|
6013
6015
|
onChange: value => handleSearch(value),
|
|
6014
6016
|
hint: placeholder,
|
|
6015
6017
|
isClearable: false,
|
|
6016
|
-
|
|
6018
|
+
left: /*#__PURE__*/React__default.createElement(SearchIcon, {
|
|
6017
6019
|
size: 12
|
|
6018
6020
|
}),
|
|
6019
6021
|
styles: {
|
|
@@ -6317,7 +6319,7 @@ var PasswordComponent$1 = _ref => {
|
|
|
6317
6319
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
6318
6320
|
type: isVisible ? 'text' : 'password',
|
|
6319
6321
|
isClearable: false,
|
|
6320
|
-
|
|
6322
|
+
right: /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
6321
6323
|
onClick: () => {
|
|
6322
6324
|
if (!props.isDisabled) {
|
|
6323
6325
|
setIsVisible(!isVisible);
|