@app-studio/web 0.8.86 → 0.8.87

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
@@ -3615,11 +3615,11 @@ var Loader = LoaderComponent;
3615
3615
  var ButtonSizes = {
3616
3616
  xs: {
3617
3617
  // Height: 24px (6 × 4px)
3618
- minHeight: 24,
3618
+ minHeight: 4 * 4,
3619
3619
  paddingTop: 2,
3620
3620
  paddingBottom: 2,
3621
- paddingLeft: 6,
3622
- paddingRight: 6,
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: 32,
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: 14,
3637
+ fontSize: 12,
3638
3638
  fontWeight: '500',
3639
- lineHeight: 20,
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: 40,
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: 14,
3650
+ fontSize: 16,
3651
3651
  fontWeight: '500',
3652
- lineHeight: 24,
3652
+ lineHeight: 16,
3653
3653
  letterSpacing: '-0.01em'
3654
3654
  },
3655
3655
  lg: {
3656
- // Height: 48px (12 × 4px)
3657
- minHeight: 48,
3658
- paddingTop: 12,
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: 24,
3664
+ lineHeight: 20,
3666
3665
  letterSpacing: '-0.01em'
3667
3666
  },
3668
3667
  xl: {
3669
3668
  // Height: 60px (15 × 4px)
3670
- minHeight: 60,
3671
- paddingTop: 16,
3672
- paddingBottom: 16,
3673
- paddingLeft: 28,
3674
- paddingRight: 28,
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: 28,
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
- backgroundColor: 'transparent',
3729
- color: color,
3730
- borderColor: color,
3731
- transform: 'translateY(-1px)'
3727
+ transform: 'translateY(-1px)',
3728
+ textDecoration: 'underline',
3729
+ textUnderlineOffset: '1px',
3730
+ textDecorationThickness: '1px'
3732
3731
  },
3733
3732
  _active: {
3734
- color: color,
3735
- borderColor: color,
3736
- transform: 'translateY(0)'
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: 2,
3795
+ textUnderlineOffset: '1px',
3796
+ textDecorationThickness: '1px',
3784
3797
  _hover: {
3785
- textDecorationThickness: 2
3798
+ textDecorationThickness: '2px'
3786
3799
  },
3787
3800
  _active: {
3788
- textDecorationThickness: 2
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
- // 2nd candidate for main color (NOT text‑color)
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: isAuto ? 'fit-content' : isFilled ? '100%' : undefined,
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',