@app-studio/web 0.8.2 → 0.8.4
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.cjs.development.js +25 -21
- 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 +25 -21
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +25 -21
- 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 +3 -3
package/dist/web.esm.js
CHANGED
|
@@ -1440,11 +1440,6 @@ var ButtonView = function ButtonView(_ref) {
|
|
|
1440
1440
|
_ref$setIsHovered = _ref.setIsHovered,
|
|
1441
1441
|
setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
|
|
1442
1442
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
1443
|
-
console.log({
|
|
1444
|
-
button: props,
|
|
1445
|
-
size: size,
|
|
1446
|
-
isDisabled: isDisabled
|
|
1447
|
-
});
|
|
1448
1443
|
var _useTheme = useTheme(),
|
|
1449
1444
|
getColor = _useTheme.getColor;
|
|
1450
1445
|
var handleHover = function handleHover() {
|
|
@@ -1501,9 +1496,7 @@ var ButtonView = function ButtonView(_ref) {
|
|
|
1501
1496
|
var scaleWidth = {
|
|
1502
1497
|
width: isAuto ? 'fit-content' : isFilled ? '100%' : buttonSizeStyles.width
|
|
1503
1498
|
};
|
|
1504
|
-
var changePadding =
|
|
1505
|
-
padding: isIconRounded ? IconSizes$1[size].padding : ButtonSizes[size].padding
|
|
1506
|
-
};
|
|
1499
|
+
var changePadding = isIconRounded ? IconSizes$1[size] : ButtonSizes[size];
|
|
1507
1500
|
var content = React.createElement(Horizontal, {
|
|
1508
1501
|
gap: 10
|
|
1509
1502
|
}, isLoading && loaderPosition === 'left' && React.createElement(Loader, Object.assign({}, loaderProps)), icon && iconPosition === 'left' && !isLoading && icon, children, icon && iconPosition === 'right' && !isLoading && icon, isLoading && loaderPosition === 'right' && React.createElement(Loader, Object.assign({}, loaderProps)));
|
|
@@ -1516,17 +1509,18 @@ var ButtonView = function ButtonView(_ref) {
|
|
|
1516
1509
|
display: "flex",
|
|
1517
1510
|
alignItems: "center",
|
|
1518
1511
|
justifyContent: "center",
|
|
1519
|
-
|
|
1512
|
+
"aria-label": ariaLabel,
|
|
1520
1513
|
backgroundColor: buttonColor,
|
|
1521
1514
|
borderRadius: ButtonShapes[shape],
|
|
1522
1515
|
onClick: (_props$onClick = props.onClick) != null ? _props$onClick : onClick,
|
|
1523
1516
|
onMouseEnter: handleHover,
|
|
1524
1517
|
onMouseLeave: handleHover,
|
|
1525
1518
|
cursor: isActive ? 'pointer' : 'default',
|
|
1526
|
-
filter: hovering ? 'brightness(0.85)' : 'brightness(1)'
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1519
|
+
filter: hovering ? 'brightness(0.85)' : 'brightness(1)'
|
|
1520
|
+
}, hovering && !props.isDisabled ? {
|
|
1521
|
+
transition: 'transform 0.3s ease',
|
|
1522
|
+
transform: 'translateY(-5px)'
|
|
1523
|
+
} : {}, defaultNativeProps, buttonSizeStyles, buttonVariant, scaleWidth, changePadding, shadow, props), variant === 'link' && externalHref ? React.createElement(Link, {
|
|
1530
1524
|
href: externalHref,
|
|
1531
1525
|
textDecorationColor: colorScheme,
|
|
1532
1526
|
colorScheme: colorScheme,
|
|
@@ -2415,7 +2409,7 @@ var SliderPadding = {
|
|
|
2415
2409
|
}
|
|
2416
2410
|
};
|
|
2417
2411
|
|
|
2418
|
-
var _excluded$s = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "colorScheme", "value", "isHovered", "isDisabled", "isReadOnly", "onChange", "setValue", "setIsHovered", "styles"];
|
|
2412
|
+
var _excluded$s = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "colorScheme", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "styles"];
|
|
2419
2413
|
var SwitchContent = function SwitchContent(props) {
|
|
2420
2414
|
return React.createElement(Input, Object.assign({
|
|
2421
2415
|
type: "checkbox"
|
|
@@ -2443,6 +2437,8 @@ var SwitchView = function SwitchView(_ref) {
|
|
|
2443
2437
|
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
2444
2438
|
_ref$isReadOnly = _ref.isReadOnly,
|
|
2445
2439
|
isReadOnly = _ref$isReadOnly === void 0 ? false : _ref$isReadOnly,
|
|
2440
|
+
on = _ref.on,
|
|
2441
|
+
setOn = _ref.setOn,
|
|
2446
2442
|
onChange = _ref.onChange,
|
|
2447
2443
|
_ref$setValue = _ref.setValue,
|
|
2448
2444
|
setValue = _ref$setValue === void 0 ? function () {} : _ref$setValue,
|
|
@@ -2458,6 +2454,7 @@ var SwitchView = function SwitchView(_ref) {
|
|
|
2458
2454
|
var handleToggle = function handleToggle(event) {
|
|
2459
2455
|
if (!isReadOnly) {
|
|
2460
2456
|
setValue(!value);
|
|
2457
|
+
setOn(!on);
|
|
2461
2458
|
if (onChange) onChange(event.target.checked);
|
|
2462
2459
|
}
|
|
2463
2460
|
};
|
|
@@ -3037,9 +3034,10 @@ var CheckboxView = function CheckboxView(_ref) {
|
|
|
3037
3034
|
borderColor: error ? 'theme.error' : isHovered ? 'color.gray.500' : 'color.gray.300',
|
|
3038
3035
|
borderStyle: 'solid'
|
|
3039
3036
|
}, {
|
|
3040
|
-
borderRadius: 3
|
|
3041
|
-
|
|
3042
|
-
|
|
3037
|
+
borderRadius: 3
|
|
3038
|
+
}, isHovered ? {
|
|
3039
|
+
filter: 'brightness(0.9)'
|
|
3040
|
+
} : {}, Sizes[size], shadow, styles['checkbox'])
|
|
3043
3041
|
};
|
|
3044
3042
|
return React.createElement(Label, Object.assign({
|
|
3045
3043
|
htmlFor: id,
|
|
@@ -5095,7 +5093,8 @@ var getInputTypeProps = function getInputTypeProps(type) {
|
|
|
5095
5093
|
case 'email':
|
|
5096
5094
|
return {
|
|
5097
5095
|
autoCorrect: 'off',
|
|
5098
|
-
keyboardType: 'email-address',
|
|
5096
|
+
// keyboardType: 'email-address',
|
|
5097
|
+
inputmode: 'email',
|
|
5099
5098
|
autoCapitalize: 'none'
|
|
5100
5099
|
};
|
|
5101
5100
|
case 'password':
|
|
@@ -5106,7 +5105,13 @@ var getInputTypeProps = function getInputTypeProps(type) {
|
|
|
5106
5105
|
};
|
|
5107
5106
|
case 'digits':
|
|
5108
5107
|
return {
|
|
5109
|
-
keyboardType: 'phone-pad'
|
|
5108
|
+
// keyboardType: 'phone-pad',
|
|
5109
|
+
inputmode: 'tel'
|
|
5110
|
+
};
|
|
5111
|
+
case 'numeric':
|
|
5112
|
+
return {
|
|
5113
|
+
// keyboardType: 'phone-pad',
|
|
5114
|
+
inputmode: 'numeric'
|
|
5110
5115
|
};
|
|
5111
5116
|
case 'name':
|
|
5112
5117
|
return {
|
|
@@ -6478,8 +6483,7 @@ var ToggleGroupView = function ToggleGroupView(_ref) {
|
|
|
6478
6483
|
onToggle: function onToggle(state) {
|
|
6479
6484
|
return handleToggle(item.id, state);
|
|
6480
6485
|
},
|
|
6481
|
-
isDisabled: item.isDisabled
|
|
6482
|
-
isIntern: true
|
|
6486
|
+
isDisabled: item.isDisabled
|
|
6483
6487
|
}, item.value);
|
|
6484
6488
|
}));
|
|
6485
6489
|
};
|