@app-studio/web 0.8.86 → 0.8.88
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 -2
- package/dist/components/Button/examples/index.d.ts +0 -1
- package/dist/web.cjs.development.js +51 -47
- 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 +51 -47
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +51 -47
- 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
- package/dist/components/Button/examples/effect.d.ts +0 -2
package/dist/web.esm.js
CHANGED
|
@@ -3615,11 +3615,11 @@ var Loader = LoaderComponent;
|
|
|
3615
3615
|
var ButtonSizes = {
|
|
3616
3616
|
xs: {
|
|
3617
3617
|
// Height: 24px (6 × 4px)
|
|
3618
|
-
minHeight:
|
|
3618
|
+
minHeight: 4 * 4,
|
|
3619
3619
|
paddingTop: 2,
|
|
3620
3620
|
paddingBottom: 2,
|
|
3621
|
-
paddingLeft:
|
|
3622
|
-
paddingRight:
|
|
3621
|
+
paddingLeft: 4,
|
|
3622
|
+
paddingRight: 4,
|
|
3623
3623
|
// Typography
|
|
3624
3624
|
fontSize: 12,
|
|
3625
3625
|
fontWeight: '500',
|
|
@@ -3628,54 +3628,53 @@ var ButtonSizes = {
|
|
|
3628
3628
|
},
|
|
3629
3629
|
sm: {
|
|
3630
3630
|
// Height: 32px (8 × 4px)
|
|
3631
|
-
minHeight:
|
|
3631
|
+
minHeight: 6 * 4,
|
|
3632
3632
|
paddingTop: 6,
|
|
3633
3633
|
paddingBottom: 6,
|
|
3634
3634
|
paddingLeft: 12,
|
|
3635
3635
|
paddingRight: 12,
|
|
3636
3636
|
// Typography
|
|
3637
|
-
fontSize:
|
|
3637
|
+
fontSize: 12,
|
|
3638
3638
|
fontWeight: '500',
|
|
3639
|
-
lineHeight:
|
|
3639
|
+
lineHeight: 12,
|
|
3640
3640
|
letterSpacing: '-0.01em'
|
|
3641
3641
|
},
|
|
3642
3642
|
md: {
|
|
3643
3643
|
// Height: 40px (10 × 4px) - standard height for interactive elements
|
|
3644
|
-
minHeight:
|
|
3644
|
+
minHeight: 8 * 4,
|
|
3645
3645
|
paddingTop: 8,
|
|
3646
3646
|
paddingBottom: 8,
|
|
3647
3647
|
paddingLeft: 16,
|
|
3648
3648
|
paddingRight: 16,
|
|
3649
3649
|
// Typography
|
|
3650
|
-
fontSize:
|
|
3650
|
+
fontSize: 16,
|
|
3651
3651
|
fontWeight: '500',
|
|
3652
|
-
lineHeight:
|
|
3652
|
+
lineHeight: 16,
|
|
3653
3653
|
letterSpacing: '-0.01em'
|
|
3654
3654
|
},
|
|
3655
3655
|
lg: {
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
paddingBottom: 12,
|
|
3656
|
+
minHeight: 10 * 4,
|
|
3657
|
+
paddingTop: 10,
|
|
3658
|
+
paddingBottom: 10,
|
|
3660
3659
|
paddingLeft: 20,
|
|
3661
3660
|
paddingRight: 20,
|
|
3662
3661
|
// Typography
|
|
3663
3662
|
fontSize: 16,
|
|
3664
3663
|
fontWeight: '500',
|
|
3665
|
-
lineHeight:
|
|
3664
|
+
lineHeight: 20,
|
|
3666
3665
|
letterSpacing: '-0.01em'
|
|
3667
3666
|
},
|
|
3668
3667
|
xl: {
|
|
3669
3668
|
// Height: 60px (15 × 4px)
|
|
3670
|
-
minHeight:
|
|
3671
|
-
paddingTop:
|
|
3672
|
-
paddingBottom:
|
|
3673
|
-
paddingLeft:
|
|
3674
|
-
paddingRight:
|
|
3669
|
+
minHeight: 12 * 4,
|
|
3670
|
+
paddingTop: 12,
|
|
3671
|
+
paddingBottom: 12,
|
|
3672
|
+
paddingLeft: 24,
|
|
3673
|
+
paddingRight: 24,
|
|
3675
3674
|
// Typography
|
|
3676
3675
|
fontSize: 18,
|
|
3677
3676
|
fontWeight: '500',
|
|
3678
|
-
lineHeight:
|
|
3677
|
+
lineHeight: 24,
|
|
3679
3678
|
letterSpacing: '-0.01em'
|
|
3680
3679
|
}
|
|
3681
3680
|
};
|
|
@@ -3725,15 +3724,16 @@ var getButtonVariants = (color, isLight) => ({
|
|
|
3725
3724
|
borderStyle: 'solid',
|
|
3726
3725
|
borderColor: 'transparent',
|
|
3727
3726
|
_hover: {
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3727
|
+
transform: 'translateY(-1px)',
|
|
3728
|
+
textDecoration: 'underline',
|
|
3729
|
+
textUnderlineOffset: '1px',
|
|
3730
|
+
textDecorationThickness: '1px'
|
|
3732
3731
|
},
|
|
3733
3732
|
_active: {
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3733
|
+
transform: 'translateY(-1px)',
|
|
3734
|
+
textDecoration: 'underline',
|
|
3735
|
+
textUnderlineOffset: '1px',
|
|
3736
|
+
textDecorationThickness: '1px'
|
|
3737
3737
|
},
|
|
3738
3738
|
transition: 'all 0.2s ease'
|
|
3739
3739
|
},
|
|
@@ -3746,12 +3746,18 @@ var getButtonVariants = (color, isLight) => ({
|
|
|
3746
3746
|
_hover: {
|
|
3747
3747
|
backgroundColor: color,
|
|
3748
3748
|
color: isLight ? 'light.black' : 'light.white',
|
|
3749
|
-
transform: 'translateY(-1px)'
|
|
3749
|
+
transform: 'translateY(-1px)',
|
|
3750
|
+
textDecoration: 'underline',
|
|
3751
|
+
textUnderlineOffset: '1px',
|
|
3752
|
+
textDecorationThickness: '1px'
|
|
3750
3753
|
},
|
|
3751
3754
|
_active: {
|
|
3752
3755
|
backgroundColor: color,
|
|
3753
3756
|
color: isLight ? 'light.black' : 'light.white',
|
|
3754
|
-
transform: 'translateY(0)'
|
|
3757
|
+
transform: 'translateY(0)',
|
|
3758
|
+
textDecoration: 'underline',
|
|
3759
|
+
textUnderlineOffset: '1px',
|
|
3760
|
+
textDecorationThickness: '1px'
|
|
3755
3761
|
},
|
|
3756
3762
|
transition: 'all 0.2s ease'
|
|
3757
3763
|
},
|
|
@@ -3764,12 +3770,18 @@ var getButtonVariants = (color, isLight) => ({
|
|
|
3764
3770
|
_hover: {
|
|
3765
3771
|
backgroundColor: color,
|
|
3766
3772
|
color: isLight ? 'light.black' : 'light.white',
|
|
3767
|
-
transform: 'translateY(-1px)'
|
|
3773
|
+
transform: 'translateY(-1px)',
|
|
3774
|
+
textDecoration: 'underline',
|
|
3775
|
+
textUnderlineOffset: '1px',
|
|
3776
|
+
textDecorationThickness: '1px'
|
|
3768
3777
|
},
|
|
3769
3778
|
_active: {
|
|
3770
3779
|
backgroundColor: color,
|
|
3771
3780
|
color: isLight ? 'light.black' : 'light.white',
|
|
3772
|
-
transform: 'translateY(0)'
|
|
3781
|
+
transform: 'translateY(0)',
|
|
3782
|
+
textDecoration: 'underline',
|
|
3783
|
+
textUnderlineOffset: '1px',
|
|
3784
|
+
textDecorationThickness: '1px'
|
|
3773
3785
|
},
|
|
3774
3786
|
transition: 'all 0.2s ease'
|
|
3775
3787
|
},
|
|
@@ -3780,12 +3792,13 @@ var getButtonVariants = (color, isLight) => ({
|
|
|
3780
3792
|
borderStyle: 'none',
|
|
3781
3793
|
borderColor: 'transparent',
|
|
3782
3794
|
textDecoration: 'underline',
|
|
3783
|
-
textUnderlineOffset:
|
|
3795
|
+
textUnderlineOffset: '1px',
|
|
3796
|
+
textDecorationThickness: '1px',
|
|
3784
3797
|
_hover: {
|
|
3785
|
-
textDecorationThickness:
|
|
3798
|
+
textDecorationThickness: '2px'
|
|
3786
3799
|
},
|
|
3787
3800
|
_active: {
|
|
3788
|
-
textDecorationThickness:
|
|
3801
|
+
textDecorationThickness: '2px'
|
|
3789
3802
|
},
|
|
3790
3803
|
transition: 'all 0.2s ease'
|
|
3791
3804
|
}
|
|
@@ -3803,10 +3816,8 @@ var ButtonView = _ref => {
|
|
|
3803
3816
|
loaderPosition = 'left',
|
|
3804
3817
|
backgroundColor,
|
|
3805
3818
|
// primary candidate for main color
|
|
3806
|
-
color
|
|
3807
|
-
|
|
3808
|
-
isAuto,
|
|
3809
|
-
isFilled,
|
|
3819
|
+
color // 2nd candidate for main color (NOT text‑color)
|
|
3820
|
+
,
|
|
3810
3821
|
isDisabled,
|
|
3811
3822
|
isLoading,
|
|
3812
3823
|
isIconRounded,
|
|
@@ -3881,21 +3892,14 @@ var ButtonView = _ref => {
|
|
|
3881
3892
|
display: "flex",
|
|
3882
3893
|
alignItems: "center",
|
|
3883
3894
|
justifyContent: "center",
|
|
3884
|
-
width
|
|
3895
|
+
// width={isAuto ? 'fit-content' : isFilled ? '100%' : undefined}
|
|
3885
3896
|
/* visuals */
|
|
3886
3897
|
borderRadius: ButtonShapes[shape],
|
|
3887
|
-
backgroundColor: base.backgroundColor,
|
|
3888
|
-
color: base.color,
|
|
3889
|
-
borderWidth: base.borderWidth,
|
|
3890
|
-
borderStyle: base.borderStyle,
|
|
3891
|
-
borderColor: base.borderColor,
|
|
3892
|
-
_hover: base._hover,
|
|
3893
|
-
_active: base._active,
|
|
3894
3898
|
boxShadow: shadow,
|
|
3895
3899
|
transition: "all 0.2s ease",
|
|
3896
3900
|
cursor: isDisabled ? 'default' : 'pointer',
|
|
3897
3901
|
onClick: onClick
|
|
3898
|
-
}, views == null ? void 0 : views.container, props), to ? (/*#__PURE__*/React.createElement(Link, Object.assign({
|
|
3902
|
+
}, base, views == null ? void 0 : views.container, props), to ? (/*#__PURE__*/React.createElement(Link, Object.assign({
|
|
3899
3903
|
to: to,
|
|
3900
3904
|
isExternal: isExternal,
|
|
3901
3905
|
color: 'inherit',
|