@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
|
@@ -2378,7 +2378,7 @@
|
|
|
2378
2378
|
// Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
|
|
2379
2379
|
var Loader = LoaderComponent;
|
|
2380
2380
|
|
|
2381
|
-
var _excluded$9 = ["icon", "shadow", "children", "ariaLabel", "
|
|
2381
|
+
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"];
|
|
2382
2382
|
var contrast = /*#__PURE__*/require('contrast');
|
|
2383
2383
|
var ButtonView = _ref => {
|
|
2384
2384
|
var _props$onClick;
|
|
@@ -2389,7 +2389,7 @@
|
|
|
2389
2389
|
// Defines the functional component ButtonView with its expected props detailed in ButtonProps.
|
|
2390
2390
|
ariaLabel,
|
|
2391
2391
|
// Initializes default values for the ButtonProps object; useful for defining states like isAuto, isFilled, etc.
|
|
2392
|
-
|
|
2392
|
+
to,
|
|
2393
2393
|
isAuto = false,
|
|
2394
2394
|
// Determines if button should be active based on isDisabled and isLoading properties.
|
|
2395
2395
|
isFilled = false,
|
|
@@ -2411,7 +2411,8 @@
|
|
|
2411
2411
|
loaderPosition = 'left',
|
|
2412
2412
|
effect = 'default',
|
|
2413
2413
|
isHovered,
|
|
2414
|
-
setIsHovered = () => {}
|
|
2414
|
+
setIsHovered = () => {},
|
|
2415
|
+
isExternal = false
|
|
2415
2416
|
// Defines CSS properties for 'outline' variant of the button with conditional styles based on reverse state.
|
|
2416
2417
|
} = _ref,
|
|
2417
2418
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
@@ -2464,7 +2465,7 @@
|
|
|
2464
2465
|
borderColor: reverse ? buttonColor : 'transparent'
|
|
2465
2466
|
}
|
|
2466
2467
|
};
|
|
2467
|
-
// Executes rendering of the button or a link element based on the variant; applies conditional rendering for
|
|
2468
|
+
// Executes rendering of the button or a link element based on the variant; applies conditional rendering for to in 'link' variant.
|
|
2468
2469
|
var buttonSizeStyles = ButtonSizes[size];
|
|
2469
2470
|
var buttonVariant = ButtonVariants[variant];
|
|
2470
2471
|
var scaleWidth = {
|
|
@@ -2494,11 +2495,11 @@
|
|
|
2494
2495
|
}, hovering && !props.isDisabled ? {
|
|
2495
2496
|
transition: 'transform 0.3s ease',
|
|
2496
2497
|
transform: 'translateY(-5px)'
|
|
2497
|
-
} : {}, defaultNativeProps, buttonSizeStyles, buttonVariant, scaleWidth, props.padding || props.paddingHorizontal || props.paddingVertical || props.paddingLeft || props.paddingRight || props.paddingTop || props.paddingBottom ? {} : changePadding, shadow, props), variant === 'link' &&
|
|
2498
|
-
to:
|
|
2498
|
+
} : {}, 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, {
|
|
2499
|
+
to: to,
|
|
2499
2500
|
textDecorationColor: colorScheme,
|
|
2500
2501
|
colorScheme: colorScheme,
|
|
2501
|
-
isExternal:
|
|
2502
|
+
isExternal: isExternal
|
|
2502
2503
|
}, content)) : content);
|
|
2503
2504
|
};
|
|
2504
2505
|
|
|
@@ -2865,7 +2866,8 @@
|
|
|
2865
2866
|
} = _ref,
|
|
2866
2867
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
2867
2868
|
return /*#__PURE__*/React__default.createElement(Vertical, Object.assign({
|
|
2868
|
-
width: "100%"
|
|
2869
|
+
width: "100%",
|
|
2870
|
+
maxWidth: '100%'
|
|
2869
2871
|
}, props), children);
|
|
2870
2872
|
};
|
|
2871
2873
|
|
|
@@ -3645,7 +3647,7 @@
|
|
|
3645
3647
|
};
|
|
3646
3648
|
};
|
|
3647
3649
|
|
|
3648
|
-
var _excluded$l = ["id", "name", "label", "hint", "value", "onChange", "
|
|
3650
|
+
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"];
|
|
3649
3651
|
var TextFieldInput = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
|
|
3650
3652
|
type: "text"
|
|
3651
3653
|
}, props));
|
|
@@ -3657,8 +3659,8 @@
|
|
|
3657
3659
|
hint,
|
|
3658
3660
|
value,
|
|
3659
3661
|
onChange,
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
+
left,
|
|
3663
|
+
right,
|
|
3662
3664
|
helperText,
|
|
3663
3665
|
onChangeText,
|
|
3664
3666
|
shadow = {},
|
|
@@ -3767,7 +3769,7 @@
|
|
|
3767
3769
|
colorScheme: colorScheme,
|
|
3768
3770
|
onMouseEnter: handleHover,
|
|
3769
3771
|
onMouseLeave: handleHover
|
|
3770
|
-
},
|
|
3772
|
+
}, left, /*#__PURE__*/React__default.createElement(FieldWrapper, null, isWithLabel && (/*#__PURE__*/React__default.createElement(FieldLabel, Object.assign({
|
|
3771
3773
|
htmlFor: id,
|
|
3772
3774
|
color: colorScheme,
|
|
3773
3775
|
error: error
|
|
@@ -3784,11 +3786,11 @@
|
|
|
3784
3786
|
}, fieldStyles, props, {
|
|
3785
3787
|
onChange: handleChange,
|
|
3786
3788
|
value: value
|
|
3787
|
-
}))),
|
|
3789
|
+
}))), isClearable && value && !isReadOnly && !isDisabled && (/*#__PURE__*/React__default.createElement(FieldIcons, null, /*#__PURE__*/React__default.createElement(CloseIcon, {
|
|
3788
3790
|
size: appStudio.Typography.fontSizes[size],
|
|
3789
3791
|
color: IconColor,
|
|
3790
3792
|
onClick: handleClear
|
|
3791
|
-
})),
|
|
3793
|
+
}))), right));
|
|
3792
3794
|
};
|
|
3793
3795
|
|
|
3794
3796
|
var TextFieldComponent = props => {
|
|
@@ -5847,7 +5849,7 @@
|
|
|
5847
5849
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
5848
5850
|
type: isVisible ? 'text' : 'password',
|
|
5849
5851
|
isClearable: false,
|
|
5850
|
-
|
|
5852
|
+
right: /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5851
5853
|
onClick: () => {
|
|
5852
5854
|
if (!props.isDisabled) {
|
|
5853
5855
|
setIsVisible(!isVisible);
|
|
@@ -6000,7 +6002,7 @@
|
|
|
6000
6002
|
onChange: value => handleSearch(value),
|
|
6001
6003
|
hint: placeholder,
|
|
6002
6004
|
isClearable: false,
|
|
6003
|
-
|
|
6005
|
+
left: /*#__PURE__*/React__default.createElement(SearchIcon, {
|
|
6004
6006
|
size: 12
|
|
6005
6007
|
}),
|
|
6006
6008
|
styles: {
|
|
@@ -6304,7 +6306,7 @@
|
|
|
6304
6306
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
6305
6307
|
type: isVisible ? 'text' : 'password',
|
|
6306
6308
|
isClearable: false,
|
|
6307
|
-
|
|
6309
|
+
right: /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
6308
6310
|
onClick: () => {
|
|
6309
6311
|
if (!props.isDisabled) {
|
|
6310
6312
|
setIsVisible(!isVisible);
|