@app-studio/web 0.8.84 → 0.8.86

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.
@@ -16,6 +16,7 @@ var appStudio = require('app-studio');
16
16
  require('core-js/modules/es.symbol.description.js');
17
17
  require('core-js/modules/es.parse-float.js');
18
18
  var reactRouterDom = require('react-router-dom');
19
+ var contrast = _interopDefault(require('contrast'));
19
20
  require('core-js/modules/es.promise.js');
20
21
  require('core-js/modules/es.array.reduce.js');
21
22
  require('core-js/modules/es.number.to-fixed.js');
@@ -3380,18 +3381,21 @@ var LinkView = _ref => {
3380
3381
  };
3381
3382
  return /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
3382
3383
  to: to,
3383
- target: isExternal ? '_blank' : '_self'
3384
- }, /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
3384
+ target: isExternal ? '_blank' : '_self',
3385
+ style: {
3386
+ textDecoration: 'inherit',
3387
+ color: 'inherit'
3388
+ }
3389
+ }, /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
3385
3390
  onMouseEnter: handleHover,
3386
3391
  onMouseLeave: handleHover,
3387
- textDecoration: isHovered || underline === 'underline' ? 'underline !important' : 'none'
3388
- }, views.text, props), /*#__PURE__*/React__default.createElement(appStudio.Horizontal, {
3389
3392
  gap: 3,
3390
3393
  alignItems: "center",
3391
- flexWrap: "nowrap"
3392
- }, children, isExternal && /*#__PURE__*/React__default.createElement(ExternalLinkIcon, {
3394
+ flexWrap: "nowrap",
3395
+ textDecoration: 'none'
3396
+ }, views.text, props), children, isExternal && /*#__PURE__*/React__default.createElement(ExternalLinkIcon, {
3393
3397
  widthHeight: IconSizes[iconSize]
3394
- }))));
3398
+ })));
3395
3399
  };
3396
3400
 
3397
3401
  // Defines the 'LinkComponent' as a functional component with props typed to 'LinkProps'
@@ -3404,125 +3408,6 @@ var LinkComponent = props => {
3404
3408
  // Exports 'LinkComponent' as 'Link' for use in other parts of the application
3405
3409
  var Link = LinkComponent;
3406
3410
 
3407
- /**
3408
- * Button Styles
3409
- *
3410
- * Defines the styles for the Button component following the design guidelines:
3411
- * - Typography: Inter/Geist font, specific sizes/weights
3412
- * - Spacing: 4px grid system
3413
- * - Colors: Neutral palette with semantic colors
3414
- * - Rounded corners: Consistent border radius
3415
- * - Transitions: Subtle animations
3416
- */
3417
- /**
3418
- * Button sizes following the 4px grid system
3419
- */
3420
- var ButtonSizes = {
3421
- xs: {
3422
- // Height: 24px (6 × 4px)
3423
- height: 24,
3424
- paddingTop: 2,
3425
- paddingBottom: 2,
3426
- paddingLeft: 6,
3427
- paddingRight: 6,
3428
- // Typography
3429
- fontSize: 12,
3430
- fontWeight: '500',
3431
- lineHeight: 20,
3432
- letterSpacing: '-0.01em'
3433
- },
3434
- sm: {
3435
- // Height: 32px (8 × 4px)
3436
- height: 32,
3437
- paddingTop: 6,
3438
- paddingBottom: 6,
3439
- paddingLeft: 12,
3440
- paddingRight: 12,
3441
- // Typography
3442
- fontSize: 14,
3443
- fontWeight: '500',
3444
- lineHeight: 20,
3445
- letterSpacing: '-0.01em'
3446
- },
3447
- md: {
3448
- // Height: 40px (10 × 4px) - standard height for interactive elements
3449
- height: 40,
3450
- paddingTop: 8,
3451
- paddingBottom: 8,
3452
- paddingLeft: 16,
3453
- paddingRight: 16,
3454
- // Typography
3455
- fontSize: 14,
3456
- fontWeight: '500',
3457
- lineHeight: 24,
3458
- letterSpacing: '-0.01em'
3459
- },
3460
- lg: {
3461
- // Height: 48px (12 × 4px)
3462
- height: 48,
3463
- paddingTop: 12,
3464
- paddingBottom: 12,
3465
- paddingLeft: 20,
3466
- paddingRight: 20,
3467
- // Typography
3468
- fontSize: 16,
3469
- fontWeight: '500',
3470
- lineHeight: 24,
3471
- letterSpacing: '-0.01em'
3472
- },
3473
- xl: {
3474
- // Height: 60px (15 × 4px)
3475
- height: 60,
3476
- paddingTop: 16,
3477
- paddingBottom: 16,
3478
- paddingLeft: 28,
3479
- paddingRight: 28,
3480
- // Typography
3481
- fontSize: 18,
3482
- fontWeight: '500',
3483
- lineHeight: 28,
3484
- letterSpacing: '-0.01em'
3485
- }
3486
- };
3487
- /**
3488
- * Button shapes with consistent border radius
3489
- */
3490
- var ButtonShapes = {
3491
- sharp: 0,
3492
- rounded: 8,
3493
- pillShaped: 999
3494
- };
3495
- /**
3496
- * Icon sizes for different button sizes
3497
- */
3498
- var IconSizes$1 = {
3499
- xs: {
3500
- width: 16,
3501
- height: 16,
3502
- padding: 6
3503
- },
3504
- sm: {
3505
- width: 20,
3506
- height: 20,
3507
- padding: 6
3508
- },
3509
- md: {
3510
- width: 24,
3511
- height: 24,
3512
- padding: 8
3513
- },
3514
- lg: {
3515
- width: 24,
3516
- height: 24,
3517
- padding: 12
3518
- },
3519
- xl: {
3520
- width: 28,
3521
- height: 28,
3522
- padding: 14
3523
- }
3524
- };
3525
-
3526
3411
  // Defines a mapping of spinning speed labels to their respective duration in seconds for the Loader component animations.
3527
3412
  // Sets up a scale of sizes, mapping size labels to numerical values to be used for Loader component dimensions.
3528
3413
  var DefaultSizes = {
@@ -3721,290 +3606,308 @@ React__default.createElement(LoaderView, Object.assign({}, props)));
3721
3606
  // Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
3722
3607
  var Loader = LoaderComponent;
3723
3608
 
3724
- var _excluded$a = ["icon", "shadow", "children", "ariaLabel", "to", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered", "setIsHovered", "isExternal", "themeMode", "views", "color", "backgroundColor"],
3725
- _excluded2$3 = ["_hover", "_active"],
3726
- _excluded3$3 = ["height"];
3727
- // Using require for contrast as it seems to be a common pattern in your code
3728
- var contrast = /*#__PURE__*/require('contrast');
3609
+ /**
3610
+ * Button Styles
3611
+ *
3612
+ * Defines the styles for the Button component following the design guidelines:
3613
+ * - Typography: Inter/Geist font, specific sizes/weights
3614
+ * - Spacing: 4px grid system
3615
+ * - Colors: Neutral palette with semantic colors
3616
+ * - Rounded corners: Consistent border radius
3617
+ * - Transitions: Subtle animations
3618
+ */
3619
+ /**
3620
+ * Button sizes following the 4px grid system
3621
+ */
3622
+ var ButtonSizes = {
3623
+ xs: {
3624
+ // Height: 24px (6 × 4px)
3625
+ minHeight: 24,
3626
+ paddingTop: 2,
3627
+ paddingBottom: 2,
3628
+ paddingLeft: 6,
3629
+ paddingRight: 6,
3630
+ // Typography
3631
+ fontSize: 12,
3632
+ fontWeight: '500',
3633
+ lineHeight: 20,
3634
+ letterSpacing: '-0.01em'
3635
+ },
3636
+ sm: {
3637
+ // Height: 32px (8 × 4px)
3638
+ minHeight: 32,
3639
+ paddingTop: 6,
3640
+ paddingBottom: 6,
3641
+ paddingLeft: 12,
3642
+ paddingRight: 12,
3643
+ // Typography
3644
+ fontSize: 14,
3645
+ fontWeight: '500',
3646
+ lineHeight: 20,
3647
+ letterSpacing: '-0.01em'
3648
+ },
3649
+ md: {
3650
+ // Height: 40px (10 × 4px) - standard height for interactive elements
3651
+ minHeight: 40,
3652
+ paddingTop: 8,
3653
+ paddingBottom: 8,
3654
+ paddingLeft: 16,
3655
+ paddingRight: 16,
3656
+ // Typography
3657
+ fontSize: 14,
3658
+ fontWeight: '500',
3659
+ lineHeight: 24,
3660
+ letterSpacing: '-0.01em'
3661
+ },
3662
+ lg: {
3663
+ // Height: 48px (12 × 4px)
3664
+ minHeight: 48,
3665
+ paddingTop: 12,
3666
+ paddingBottom: 12,
3667
+ paddingLeft: 20,
3668
+ paddingRight: 20,
3669
+ // Typography
3670
+ fontSize: 16,
3671
+ fontWeight: '500',
3672
+ lineHeight: 24,
3673
+ letterSpacing: '-0.01em'
3674
+ },
3675
+ xl: {
3676
+ // Height: 60px (15 × 4px)
3677
+ minHeight: 60,
3678
+ paddingTop: 16,
3679
+ paddingBottom: 16,
3680
+ paddingLeft: 28,
3681
+ paddingRight: 28,
3682
+ // Typography
3683
+ fontSize: 18,
3684
+ fontWeight: '500',
3685
+ lineHeight: 28,
3686
+ letterSpacing: '-0.01em'
3687
+ }
3688
+ };
3689
+ /**
3690
+ * Button shapes with consistent border radius
3691
+ */
3692
+ var ButtonShapes = {
3693
+ sharp: 0,
3694
+ rounded: 8,
3695
+ pillShaped: 999
3696
+ };
3697
+ /**
3698
+ * Icon sizes for different button sizes
3699
+ */
3700
+ var IconSizes$1 = {
3701
+ xs: {
3702
+ width: 16,
3703
+ height: 16,
3704
+ padding: 6
3705
+ },
3706
+ sm: {
3707
+ width: 20,
3708
+ height: 20,
3709
+ padding: 6
3710
+ },
3711
+ md: {
3712
+ width: 24,
3713
+ height: 24,
3714
+ padding: 8
3715
+ },
3716
+ lg: {
3717
+ width: 24,
3718
+ height: 24,
3719
+ padding: 12
3720
+ },
3721
+ xl: {
3722
+ width: 28,
3723
+ height: 28,
3724
+ padding: 14
3725
+ }
3726
+ };
3727
+ var getButtonVariants = (color, isLight) => ({
3728
+ filled: {
3729
+ backgroundColor: color,
3730
+ color: isLight ? 'color.black' : 'color.white',
3731
+ borderWidth: 1,
3732
+ borderStyle: 'solid',
3733
+ borderColor: 'transparent',
3734
+ _hover: {
3735
+ backgroundColor: 'transparent',
3736
+ color: color,
3737
+ borderColor: color,
3738
+ transform: 'translateY(-1px)'
3739
+ },
3740
+ _active: {
3741
+ color: color,
3742
+ borderColor: color,
3743
+ transform: 'translateY(0)'
3744
+ },
3745
+ transition: 'all 0.2s ease'
3746
+ },
3747
+ outline: {
3748
+ backgroundColor: 'transparent',
3749
+ color: color,
3750
+ borderWidth: 1,
3751
+ borderStyle: 'solid',
3752
+ borderColor: color,
3753
+ _hover: {
3754
+ backgroundColor: color,
3755
+ color: isLight ? 'light.black' : 'light.white',
3756
+ transform: 'translateY(-1px)'
3757
+ },
3758
+ _active: {
3759
+ backgroundColor: color,
3760
+ color: isLight ? 'light.black' : 'light.white',
3761
+ transform: 'translateY(0)'
3762
+ },
3763
+ transition: 'all 0.2s ease'
3764
+ },
3765
+ ghost: {
3766
+ backgroundColor: 'transparent',
3767
+ color: color,
3768
+ borderWidth: 0,
3769
+ borderStyle: 'none',
3770
+ borderColor: 'transparent',
3771
+ _hover: {
3772
+ backgroundColor: color,
3773
+ color: isLight ? 'light.black' : 'light.white',
3774
+ transform: 'translateY(-1px)'
3775
+ },
3776
+ _active: {
3777
+ backgroundColor: color,
3778
+ color: isLight ? 'light.black' : 'light.white',
3779
+ transform: 'translateY(0)'
3780
+ },
3781
+ transition: 'all 0.2s ease'
3782
+ },
3783
+ link: {
3784
+ backgroundColor: 'transparent',
3785
+ color: isLight ? color : 'light.black',
3786
+ borderWidth: 0,
3787
+ borderStyle: 'none',
3788
+ borderColor: 'transparent',
3789
+ textDecoration: 'underline',
3790
+ textUnderlineOffset: 2,
3791
+ _hover: {
3792
+ textDecorationThickness: 2
3793
+ },
3794
+ _active: {
3795
+ textDecorationThickness: 2
3796
+ },
3797
+ transition: 'all 0.2s ease'
3798
+ }
3799
+ });
3800
+
3801
+ var _excluded$a = ["variant", "size", "shape", "iconPosition", "loaderPosition", "backgroundColor", "color", "isAuto", "isFilled", "isDisabled", "isLoading", "isIconRounded", "icon", "children", "to", "isExternal", "shadow", "onClick", "views", "themeMode"];
3729
3802
  var ButtonView = _ref => {
3730
- var _props$onClick;
3803
+ var _ref2;
3731
3804
  var {
3732
- icon,
3733
- shadow,
3734
- children,
3735
- ariaLabel,
3736
- to,
3737
- isAuto = false,
3738
- isFilled = false,
3739
- isIconRounded = false,
3740
- isLoading = false,
3741
- isDisabled = false,
3742
- size = 'md',
3805
+ /* behaviour */
3743
3806
  variant = 'filled',
3744
- iconPosition = 'left',
3807
+ size = 'md',
3745
3808
  shape = 'rounded',
3746
- onClick = () => {},
3747
- loaderProps = {},
3809
+ iconPosition = 'left',
3748
3810
  loaderPosition = 'left',
3749
- effect = 'default' // 'default', 'hover', 'reverse'
3750
- ,
3751
- setIsHovered = () => {},
3752
- isExternal = false,
3753
- themeMode: elementMode,
3754
- // Allow overriding themeMode for this element
3755
- views,
3811
+ backgroundColor,
3812
+ // primary candidate for main color
3756
3813
  color,
3757
- // Text color prop
3758
- backgroundColor = 'theme.primary' // Background color prop
3814
+ // 2nd candidate for main color (NOT text‑color)
3815
+ isAuto,
3816
+ isFilled,
3817
+ isDisabled,
3818
+ isLoading,
3819
+ isIconRounded,
3820
+ /* content */
3821
+ icon,
3822
+ children,
3823
+ /* nav */
3824
+ to,
3825
+ isExternal,
3826
+ /* misc */
3827
+ shadow,
3828
+ onClick,
3829
+ views = {},
3830
+ themeMode: elementMode
3759
3831
  } = _ref,
3760
3832
  props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
3833
+ /* theme helpers */
3761
3834
  var {
3762
3835
  getColor,
3763
3836
  themeMode
3764
3837
  } = appStudio.useTheme();
3765
- var handleHover = over => setIsHovered(over);
3766
- var isActive = !(isDisabled || isLoading);
3767
- var defaultNativeProps = {
3768
- disabled: !isActive
3769
- };
3770
- // Determine the base background color key/value, considering disabled state
3771
- var buttonBackgroundColorKey = isActive ? backgroundColor : 'theme.disabled';
3772
- // --- Provided Color Logic ---
3773
- // Determine the effective theme mode for this button
3774
- var mode = elementMode != null ? elementMode : themeMode; // effective mode
3775
- // Resolve the base background color string
3776
- var bg = getColor(buttonBackgroundColorKey, {
3777
- themeMode: mode
3778
- });
3779
- // Resolve the background color string in the opposite theme mode (for reverse effect, though not directly used for ghost/outline text contrast)
3780
- // const bgHover = getColor(buttonBackgroundColorKey, {
3781
- // themeMode: mode === 'light' ? 'dark' : 'light',
3782
- // }); // bgHover is not strictly needed for the text contrast logic below
3783
- // Check contrast of base background
3784
- var isBgLight = contrast(bg) === mode;
3785
- // Determine contrasting text color key for the base background
3786
- var txtOnBgKey = isBgLight ? 'color.black' : 'color.white';
3787
- // --- End Provided Color Logic ---
3788
- // Determine the default text color key/value if 'color' prop is not provided
3789
- // For filled buttons, default text color should contrast with the background (use txtOnBgKey).
3790
- // For outline/link/ghost, a theme-appropriate text color is usually better (e.g., theme.text or theme.primary).
3791
- var defaultTextColorKey;
3792
- if (variant === 'filled') {
3793
- defaultTextColorKey = txtOnBgKey; // Use the calculated contrasting color key
3794
- } else {
3795
- // For non-filled variants, default to theme's text color or primary color
3796
- defaultTextColorKey = 'theme.primary'; // Or 'theme.primary' depending on design system
3797
- }
3798
- // Determine the actual key/value for the base text color
3799
- // Use the provided 'color' prop if available, otherwise use the calculated default
3800
- var baseTextColorKey = color || defaultTextColorKey;
3801
- // Resolve the actual base text color string
3802
- var resolvedBaseTextColor = getColor(baseTextColorKey, {
3803
- themeMode: mode
3804
- });
3805
- // Resolve the contrasting color string for the base background (used for text in outline/ghost reverse)
3806
- var contrastingColorForBg = getColor(txtOnBgKey, {
3807
- themeMode: mode
3808
- });
3809
- // Resolve the contrasting color string for the base text color (used for text in ghost reverse)
3810
- var isBaseTextLight = contrast(resolvedBaseTextColor) === 'light';
3811
- var contrastingColorForBaseText = getColor(isBaseTextLight ? 'color.black' : 'color.white', {
3838
+ var mode = elementMode != null ? elementMode : themeMode;
3839
+ /* MAIN COLOR determines the entire palette */
3840
+ var mainColorKey = (_ref2 = backgroundColor != null ? backgroundColor : color) != null ? _ref2 : 'theme.primary';
3841
+ var mainTone = getColor(isDisabled ? 'theme.disabled' : mainColorKey, {
3812
3842
  themeMode: mode
3813
3843
  });
3814
- // --- Button Variant Styles Function ---
3815
- // This function calculates the styles based on the current state (base, hover, active)
3816
- var getButtonVariantStyles = _ref2 => {
3817
- var {
3818
- currentVariant,
3819
- currentEffect,
3820
- resolvedBg,
3821
- // Resolved base background color string (bg)
3822
- resolvedBaseTextColor,
3823
- // Resolved base text color string
3824
- contrastingColorForBg,
3825
- // Resolved contrasting color string for resolvedBg
3826
- contrastingColorForBaseText,
3827
- // Resolved contrasting color string for resolvedBaseTextColor
3828
- resolvedBorderColor
3829
- } = _ref2;
3830
- // Define the base styles for each variant
3831
- var baseStyles = {
3832
- filled: {
3833
- backgroundColor: resolvedBg,
3834
- color: resolvedBaseTextColor,
3835
- borderWidth: 1,
3836
- borderStyle: 'solid',
3837
- borderColor: 'transparent'
3838
- },
3839
- outline: {
3840
- backgroundColor: 'transparent',
3841
- color: resolvedBaseTextColor,
3842
- borderWidth: 1,
3843
- borderStyle: 'solid',
3844
- borderColor: resolvedBorderColor
3845
- },
3846
- link: {
3847
- backgroundColor: 'transparent',
3848
- color: resolvedBg,
3849
- borderWidth: 0,
3850
- borderStyle: 'none',
3851
- borderColor: 'transparent',
3852
- textDecoration: 'underline'
3853
- },
3854
- ghost: {
3855
- backgroundColor: 'transparent',
3856
- color: resolvedBaseTextColor,
3857
- borderWidth: 0,
3858
- borderStyle: 'none',
3859
- borderColor: 'transparent'
3860
- }
3861
- };
3862
- // Define the styles applied on hover/active when effect is 'reverse'
3863
- var reverseHoverActiveStyles = {
3864
- filled: {
3865
- backgroundColor: 'transparent',
3866
- color: resolvedBg,
3867
- borderWidth: 1,
3868
- borderStyle: 'solid',
3869
- borderColor: resolvedBg
3870
- },
3871
- outline: {
3872
- backgroundColor: resolvedBg,
3873
- color: contrastingColorForBg,
3874
- borderWidth: 1,
3875
- borderStyle: 'solid',
3876
- borderColor: 'transparent'
3877
- },
3878
- link: {
3879
- backgroundColor: 'transparent',
3880
- color: resolvedBg,
3881
- borderWidth: 0,
3882
- borderStyle: 'none',
3883
- borderColor: 'transparent',
3884
- textDecoration: 'none'
3885
- },
3886
- ghost: {
3887
- backgroundColor: resolvedBg,
3888
- color: contrastingColorForBaseText,
3889
- borderWidth: 0,
3890
- borderStyle: 'none',
3891
- borderColor: 'transparent'
3892
- }
3893
- };
3894
- // General hover/active effects (transform, shadow, opacity, etc.)
3895
- var generalHoverStyles = {
3896
- transform: 'translateY(2px)',
3897
- boxShadow: currentVariant === 'link' ? undefined : '0 4px 8px rgba(0, 0, 0, 0.1)',
3898
- // opacity: currentVariant === 'link' ? 0.8 : undefined,
3899
- textDecorationThickness: currentVariant === 'link' ? '2px' : undefined
3900
- };
3901
- var generalActiveStyles = {
3902
- transform: 'translateY(-1px)',
3903
- boxShadow: '0 2px 4px rgba(0, 0, 0, 0.1)',
3904
- opacity: currentVariant === 'link' ? 0.8 : undefined,
3905
- textDecorationThickness: currentVariant === 'link' ? '2px' : undefined
3906
- };
3907
- // Combine base styles with conditional hover/active overrides
3908
- return Object.assign({}, baseStyles[currentVariant], {
3909
- _hover: Object.assign({}, currentEffect === 'reverse' ? reverseHoverActiveStyles[currentVariant] : {}, currentEffect === 'hover' ? {
3910
- filter: 'brightness(0.85)'
3911
- } : {}, generalHoverStyles),
3912
- _active: Object.assign({}, currentEffect === 'reverse' ? reverseHoverActiveStyles[currentVariant] : {}, currentEffect === 'hover' ? {
3913
- filter: 'brightness(0.7)'
3914
- } : {}, generalActiveStyles)
3915
- });
3916
- };
3917
- // Get the calculated variant styles for the current state
3918
- var buttonVariantStyles = getButtonVariantStyles({
3919
- currentVariant: variant,
3920
- currentEffect: effect,
3921
- resolvedBg: bg,
3922
- resolvedBaseTextColor: resolvedBaseTextColor,
3923
- contrastingColorForBg: contrastingColorForBg,
3924
- contrastingColorForBaseText: contrastingColorForBaseText,
3925
- resolvedBorderColor: bg
3926
- });
3927
- // Extract hover and active styles from the calculated styles
3928
- var {
3929
- _hover,
3930
- _active
3931
- } = buttonVariantStyles,
3932
- baseButtonVariantStyles = _objectWithoutPropertiesLoose(buttonVariantStyles, _excluded2$3);
3933
- var buttonSizeStyles = ButtonSizes[size];
3934
- var scaleWidth = {
3935
- width: isAuto === true ? 'fit-content' : isFilled ? '100%' : buttonSizeStyles.width
3936
- };
3937
- var changePadding = isIconRounded ? IconSizes$1[size] : ButtonSizes[size];
3938
- // Use Horizontal or Vertical container based on icon position
3939
- var Container = ['left', 'right'].includes(iconPosition) ? appStudio.Horizontal : appStudio.Vertical;
3940
- // Create the button content with proper spacing and alignment
3941
- var content = /*#__PURE__*/React__default.createElement(Container, Object.assign({
3844
+ var tone = contrast(mainTone);
3845
+ /* variant palette */
3846
+ var palette = React.useMemo(() => getButtonVariants(mainTone, tone == 'light'), [mainTone, tone]);
3847
+ var base = palette[variant];
3848
+ /* layout helpers */
3849
+ var Wrapper = ['left', 'right'].includes(iconPosition) ? appStudio.Horizontal : appStudio.Vertical;
3850
+ var sizeStyles = ButtonSizes[size];
3851
+ var iconPad = isIconRounded ? IconSizes$1[size] : {};
3852
+ var content = /*#__PURE__*/React__default.createElement(Wrapper, Object.assign({
3942
3853
  gap: 8,
3943
3854
  alignItems: "center",
3944
- justifyContent: "center"
3945
- }, views == null ? void 0 : views.container), isLoading && loaderPosition === 'left' && (/*#__PURE__*/React__default.createElement(Loader, Object.assign({
3946
- size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
3947
- color: baseButtonVariantStyles.color
3948
- }, loaderProps))), icon && ['left', 'top'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
3949
- display: "flex",
3950
- alignItems: "center",
3951
3855
  justifyContent: "center",
3952
- color: baseButtonVariantStyles.color
3856
+ color: 'inherit',
3857
+ _hover: {
3858
+ color: 'inherit'
3859
+ }
3860
+ }, sizeStyles, views == null ? void 0 : views.content), isLoading && loaderPosition === 'left' && (/*#__PURE__*/React__default.createElement(Loader, Object.assign({
3861
+ size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
3862
+ color: 'inherit',
3863
+ _hover: {
3864
+ color: 'inherit'
3865
+ }
3866
+ }, views == null ? void 0 : views.loader))), icon && ['left', 'top'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
3867
+ color: 'inherit',
3868
+ _hover: {
3869
+ color: 'inherit'
3870
+ }
3953
3871
  }, views == null ? void 0 : views.icon), icon)), children, icon && ['right', 'bottom'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
3954
- display: "flex",
3955
- alignItems: "center",
3956
- justifyContent: "center",
3957
- color: baseButtonVariantStyles.color
3872
+ color: 'inherit',
3873
+ _hover: {
3874
+ color: 'inherit'
3875
+ }
3958
3876
  }, views == null ? void 0 : views.icon), icon)), isLoading && loaderPosition === 'right' && (/*#__PURE__*/React__default.createElement(Loader, Object.assign({
3959
3877
  size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
3960
- color: baseButtonVariantStyles.color
3961
- }, loaderProps))));
3962
- // Determine if the button should render as a Link or a button Element
3963
- var isLink = variant === 'link' && to;
3878
+ color: 'inherit',
3879
+ _hover: {
3880
+ color: 'inherit'
3881
+ }
3882
+ }, views == null ? void 0 : views.loader))));
3964
3883
  return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
3965
- gap: 8,
3966
- as: isLink ? 'div' : 'button',
3967
- type: isLink ? undefined : 'button',
3884
+ as: variant === 'link' && to ? 'div' : 'button',
3885
+ type: variant === 'link' && to ? undefined : 'button',
3886
+ disabled: Boolean(isDisabled || isLoading)
3887
+ }, sizeStyles, iconPad, {
3968
3888
  display: "flex",
3969
3889
  alignItems: "center",
3970
3890
  justifyContent: "center",
3971
- "aria-label": ariaLabel,
3972
- // backgroundColor="transparent" // Remove this unless it's intended to override variant styles
3891
+ width: isAuto ? 'fit-content' : isFilled ? '100%' : undefined,
3892
+ /* visuals */
3973
3893
  borderRadius: ButtonShapes[shape],
3974
- onClick: (_props$onClick = props.onClick) != null ? _props$onClick : onClick,
3975
- onMouseEnter: () => handleHover(true),
3976
- onMouseLeave: () => handleHover(false),
3977
- cursor: isActive ? isLink ? 'pointer' : 'pointer' : 'default',
3894
+ backgroundColor: base.backgroundColor,
3895
+ color: base.color,
3896
+ borderWidth: base.borderWidth,
3897
+ borderStyle: base.borderStyle,
3898
+ borderColor: base.borderColor,
3899
+ _hover: base._hover,
3900
+ _active: base._active,
3901
+ boxShadow: shadow,
3978
3902
  transition: "all 0.2s ease",
3979
- // filter and transform are now handled within _hover/_active styles
3980
- // Apply shadow if provided
3981
- boxShadow: shadow ? shadow : undefined
3982
- }, defaultNativeProps, (_ref3 => {
3983
- var rest = _objectWithoutPropertiesLoose(_ref3, _excluded3$3);
3984
- return rest;
3985
- })(props), buttonSizeStyles, baseButtonVariantStyles, scaleWidth, props.padding || props.paddingHorizontal || props.paddingVertical || props.paddingLeft || props.paddingRight || props.paddingTop || props.paddingBottom ? {} : changePadding, {
3986
- // Apply hover and active styles
3987
- _hover: _hover,
3988
- _active: _active
3989
- }, props, views == null ? void 0 : views.container), to ? (/*#__PURE__*/React__default.createElement(Link, Object.assign({
3903
+ cursor: isDisabled ? 'default' : 'pointer',
3904
+ onClick: onClick
3905
+ }, views == null ? void 0 : views.container, props), to ? (/*#__PURE__*/React__default.createElement(Link, Object.assign({
3990
3906
  to: to,
3991
3907
  isExternal: isExternal,
3992
- // Link styles should inherit from the button's calculated styles or be defined here
3993
- // Let's apply relevant styles from the button variant to the Link
3994
- color: baseButtonVariantStyles.color,
3995
- textDecoration: baseButtonVariantStyles.textDecoration,
3996
- textDecorationColor: baseButtonVariantStyles.color,
3997
- textDecorationThickness: "1px" // Base thickness
3998
- ,
3999
- textUnderlineOffset: "2px",
4000
- transition: "all 0.2s ease",
4001
- // Apply Link-specific hover/active styles if needed, or let Element's _hover/_active handle it
4002
- _hover: Object.assign({}, _hover, {
4003
- textDecorationThickness: '2px'
4004
- }),
4005
- _active: Object.assign({}, _active, {
4006
- textDecorationThickness: '2px'
4007
- })
3908
+ color: 'inherit',
3909
+ textDecoration: 'inherit',
3910
+ textDecorationColor: 'inherit'
4008
3911
  }, views == null ? void 0 : views.link), content)) : content);
4009
3912
  };
4010
3913
 
@@ -4124,8 +4027,8 @@ var useCardContext = () => {
4124
4027
  };
4125
4028
 
4126
4029
  var _excluded$b = ["children", "views", "style", "themeMode"],
4127
- _excluded2$4 = ["children", "views", "style", "themeMode"],
4128
- _excluded3$4 = ["children", "views", "style", "themeMode"],
4030
+ _excluded2$3 = ["children", "views", "style", "themeMode"],
4031
+ _excluded3$3 = ["children", "views", "style", "themeMode"],
4129
4032
  _excluded4$3 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style", "themeMode"];
4130
4033
  var CardHeader = _ref => {
4131
4034
  var _contextStyles$header;
@@ -4151,7 +4054,7 @@ var CardContent = _ref2 => {
4151
4054
  children,
4152
4055
  style
4153
4056
  } = _ref2,
4154
- props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
4057
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
4155
4058
  var theme = appStudio.useTheme();
4156
4059
  var {
4157
4060
  styles: contextStyles
@@ -4169,7 +4072,7 @@ var CardFooter = _ref3 => {
4169
4072
  children,
4170
4073
  style
4171
4074
  } = _ref3,
4172
- props = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
4075
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded3$3);
4173
4076
  var theme = appStudio.useTheme();
4174
4077
  var {
4175
4078
  styles: contextStyles
@@ -4528,8 +4431,8 @@ var useCarouselContext = () => {
4528
4431
  };
4529
4432
 
4530
4433
  var _excluded$c = ["children", "isActive", "views"],
4531
- _excluded2$5 = ["views", "children"],
4532
- _excluded3$5 = ["views", "children"],
4434
+ _excluded2$4 = ["views", "children"],
4435
+ _excluded3$4 = ["views", "children"],
4533
4436
  _excluded4$4 = ["children", "views"],
4534
4437
  _excluded5$1 = ["children", "views", "style"],
4535
4438
  _excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views", "stepIndices", "themeMode"];
@@ -4555,7 +4458,7 @@ var CarouselPreviousComponent = _ref2 => {
4555
4458
  children // Allow custom content/icon
4556
4459
  // Spread remaining ButtonProps
4557
4460
  } = _ref2,
4558
- props = _objectWithoutPropertiesLoose(_ref2, _excluded2$5);
4461
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
4559
4462
  var {
4560
4463
  goToPrevious,
4561
4464
  canGoPrevious,
@@ -4578,7 +4481,7 @@ var CarouselNextComponent = _ref3 => {
4578
4481
  views,
4579
4482
  children
4580
4483
  } = _ref3,
4581
- props = _objectWithoutPropertiesLoose(_ref3, _excluded3$5);
4484
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
4582
4485
  var {
4583
4486
  goToNext,
4584
4487
  canGoNext,
@@ -5822,8 +5725,8 @@ var calculateMenuPosition = function calculateMenuPosition(x, y, menuWidth, menu
5822
5725
  };
5823
5726
 
5824
5727
  var _excluded$e = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
5825
- _excluded2$6 = ["items", "children", "position", "side", "align", "views", "style"],
5826
- _excluded3$6 = ["item", "children", "onSelect", "isDisabled", "views"],
5728
+ _excluded2$5 = ["items", "children", "position", "side", "align", "views", "style"],
5729
+ _excluded3$5 = ["item", "children", "onSelect", "isDisabled", "views"],
5827
5730
  _excluded4$5 = ["views"],
5828
5731
  _excluded5$2 = ["views"],
5829
5732
  _excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views", "themeMode"];
@@ -5931,7 +5834,7 @@ var ContextMenuContent = _ref3 => {
5931
5834
  views,
5932
5835
  style // Capture user-provided style
5933
5836
  } = _ref3,
5934
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$6);
5837
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$5);
5935
5838
  var {
5936
5839
  isOpen,
5937
5840
  position: contextPosition,
@@ -6002,7 +5905,7 @@ var ContextMenuItem = _ref4 => {
6002
5905
  isDisabled = false,
6003
5906
  views
6004
5907
  } = _ref4,
6005
- props = _objectWithoutPropertiesLoose(_ref4, _excluded3$6);
5908
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$5);
6006
5909
  var {
6007
5910
  activeSubmenuId,
6008
5911
  setActiveSubmenuId,
@@ -6228,7 +6131,7 @@ ContextMenu.Divider = ContextMenuDivider;
6228
6131
  ContextMenu.Separator = ContextMenuSeparator; // Add the Separator component
6229
6132
 
6230
6133
  var _excluded$g = ["src", "color", "views", "themeMode"],
6231
- _excluded2$7 = ["path"];
6134
+ _excluded2$6 = ["path"];
6232
6135
  var FileSVG = _ref => {
6233
6136
  var {
6234
6137
  src,
@@ -6258,7 +6161,7 @@ var FileImage = _ref2 => {
6258
6161
  var {
6259
6162
  path
6260
6163
  } = _ref2,
6261
- props = _objectWithoutPropertiesLoose(_ref2, _excluded2$7);
6164
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2$6);
6262
6165
  return /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({
6263
6166
  src: path
6264
6167
  }, props));
@@ -6690,8 +6593,8 @@ var IconSizes$2 = {
6690
6593
  };
6691
6594
 
6692
6595
  var _excluded$o = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
6693
- _excluded2$8 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
6694
- _excluded3$7 = ["option", "size", "removeOption"],
6596
+ _excluded2$7 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
6597
+ _excluded3$6 = ["option", "size", "removeOption"],
6695
6598
  _excluded4$6 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isMulti", "isFocused", "isHovered", "isDisabled", "isReadOnly", "options", "shadow", "size", "shape", "variant", "views", "onChange", "setHide", "setValue", "setIsHovered", "setIsFocused", "setHighlightedIndex", "highlightedIndex"];
6696
6599
  /**
6697
6600
  * Item Component
@@ -6808,7 +6711,7 @@ var HiddenSelect = _ref4 => {
6808
6711
  isReadOnly = false,
6809
6712
  options = []
6810
6713
  } = _ref4,
6811
- props = _objectWithoutPropertiesLoose(_ref4, _excluded2$8);
6714
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded2$7);
6812
6715
  var handleChange = event => {
6813
6716
  if (onChange) onChange(event);
6814
6717
  };
@@ -6911,7 +6814,7 @@ var MultiSelect = _ref6 => {
6911
6814
  size = 'md',
6912
6815
  removeOption = () => {}
6913
6816
  } = _ref6,
6914
- props = _objectWithoutPropertiesLoose(_ref6, _excluded3$7);
6817
+ props = _objectWithoutPropertiesLoose(_ref6, _excluded3$6);
6915
6818
  var handleClick = () => removeOption(option);
6916
6819
  return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
6917
6820
  gap: 8,
@@ -9443,8 +9346,8 @@ var IconSizes$4 = {
9443
9346
  };
9444
9347
 
9445
9348
  var _excluded$t = ["size"],
9446
- _excluded2$9 = ["size"],
9447
- _excluded3$8 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "onChange", "onBlur", "setHide", "setNewOptions", "setIsHovered", "setIsFocused", "setValue", "views", "themeMode"];
9349
+ _excluded2$8 = ["size"],
9350
+ _excluded3$7 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "onChange", "onBlur", "setHide", "setNewOptions", "setIsHovered", "setIsFocused", "setValue", "views", "themeMode"];
9448
9351
  var CountryList = _ref => {
9449
9352
  var props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
9450
9353
  return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
@@ -9455,7 +9358,7 @@ var CountrySelector = props => (/*#__PURE__*/React__default.createElement(appStu
9455
9358
  type: "country"
9456
9359
  }, props)));
9457
9360
  var CountryItem = _ref2 => {
9458
- var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$9);
9361
+ var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$8);
9459
9362
  return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
9460
9363
  as: "li"
9461
9364
  }, props));
@@ -9557,7 +9460,7 @@ var CountryPickerView = _ref5 => {
9557
9460
  },
9558
9461
  themeMode: elementMode
9559
9462
  } = _ref5,
9560
- props = _objectWithoutPropertiesLoose(_ref5, _excluded3$8);
9463
+ props = _objectWithoutPropertiesLoose(_ref5, _excluded3$7);
9561
9464
  var {
9562
9465
  getColor,
9563
9466
  themeMode
@@ -9808,7 +9711,7 @@ var usePasswordState = props => {
9808
9711
  };
9809
9712
 
9810
9713
  var _excluded$v = ["visibleIcon", "hiddenIcon"],
9811
- _excluded2$a = ["isVisible", "setIsVisible"];
9714
+ _excluded2$9 = ["isVisible", "setIsVisible"];
9812
9715
  var PasswordComponent = _ref => {
9813
9716
  var {
9814
9717
  visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
@@ -9824,7 +9727,7 @@ var PasswordComponent = _ref => {
9824
9727
  isVisible,
9825
9728
  setIsVisible
9826
9729
  } = _usePasswordState,
9827
- passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$a);
9730
+ passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$9);
9828
9731
  return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
9829
9732
  type: isVisible ? 'text' : 'password',
9830
9733
  isClearable: false,
@@ -10857,7 +10760,7 @@ var TextFieldComponent$1 = props => {
10857
10760
  var FormikTextField = TextFieldComponent$1;
10858
10761
 
10859
10762
  var _excluded$D = ["visibleIcon", "hiddenIcon"],
10860
- _excluded2$b = ["isVisible", "setIsVisible"];
10763
+ _excluded2$a = ["isVisible", "setIsVisible"];
10861
10764
  var PasswordComponent$1 = _ref => {
10862
10765
  var {
10863
10766
  visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
@@ -10874,7 +10777,7 @@ var PasswordComponent$1 = _ref => {
10874
10777
  isVisible,
10875
10778
  setIsVisible
10876
10779
  } = _usePasswordState,
10877
- passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$b);
10780
+ passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$a);
10878
10781
  return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
10879
10782
  type: isVisible ? 'text' : 'password',
10880
10783
  isClearable: false,
@@ -12306,8 +12209,8 @@ var ModalTypography = {
12306
12209
  };
12307
12210
 
12308
12211
  var _excluded$H = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
12309
- _excluded2$c = ["children", "shadow", "isFullScreen", "shape", "views", "isOpen"],
12310
- _excluded3$9 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
12212
+ _excluded2$b = ["children", "shadow", "isFullScreen", "shape", "views", "isOpen"],
12213
+ _excluded3$8 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
12311
12214
  _excluded4$7 = ["children", "views"],
12312
12215
  _excluded5$3 = ["children", "views"];
12313
12216
  var ModalOverlay = _ref => {
@@ -12356,7 +12259,7 @@ var ModalContainer = _ref2 => {
12356
12259
  shape = 'rounded',
12357
12260
  views
12358
12261
  } = _ref2,
12359
- props = _objectWithoutPropertiesLoose(_ref2, _excluded2$c);
12262
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2$b);
12360
12263
  var defaultShadow = typeof document !== undefined ? {
12361
12264
  boxShadow: '0px 4px 16px rgba(0, 0, 0, 0.15)'
12362
12265
  } : {
@@ -12389,7 +12292,7 @@ var ModalHeader = _ref3 => {
12389
12292
  buttonPosition = 'right',
12390
12293
  views
12391
12294
  } = _ref3,
12392
- props = _objectWithoutPropertiesLoose(_ref3, _excluded3$9);
12295
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded3$8);
12393
12296
  var onClose = props.onClose ? props.onClose : hideModal;
12394
12297
  var buttonIcon = /*#__PURE__*/React__default.createElement(appStudio.View, {
12395
12298
  onClick: onClose
@@ -13866,8 +13769,8 @@ var getDropdownPosition = function getDropdownPosition(side, align) {
13866
13769
  };
13867
13770
 
13868
13771
  var _excluded$M = ["children", "views"],
13869
- _excluded2$d = ["items", "side", "align", "views"],
13870
- _excluded3$a = ["item", "views"],
13772
+ _excluded2$c = ["items", "side", "align", "views"],
13773
+ _excluded3$9 = ["item", "views"],
13871
13774
  _excluded4$8 = ["views"],
13872
13775
  _excluded5$4 = ["trigger", "items", "side", "align", "views", "themeMode"];
13873
13776
  // Create context for the DropdownMenu
@@ -13928,7 +13831,7 @@ var DropdownMenuContent = _ref3 => {
13928
13831
  align = 'start',
13929
13832
  views
13930
13833
  } = _ref3,
13931
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$d);
13834
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$c);
13932
13835
  var {
13933
13836
  isOpen,
13934
13837
  //activeSubmenuId, setActiveSubmenuId, size,
@@ -13964,7 +13867,7 @@ var DropdownMenuItem = _ref4 => {
13964
13867
  item,
13965
13868
  views
13966
13869
  } = _ref4,
13967
- props = _objectWithoutPropertiesLoose(_ref4, _excluded3$a);
13870
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$9);
13968
13871
  var {
13969
13872
  activeSubmenuId,
13970
13873
  setActiveSubmenuId,
@@ -14013,8 +13916,8 @@ var DropdownMenuItem = _ref4 => {
14013
13916
  }, item.label), hasSubmenu && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
14014
13917
  marginLeft: 8
14015
13918
  }, views == null ? void 0 : views.submenuIndicator), /*#__PURE__*/React__default.createElement("svg", {
14016
- width: "16",
14017
- height: "16",
13919
+ width: "16px",
13920
+ height: "16px",
14018
13921
  viewBox: "0 0 24 24",
14019
13922
  fill: "none",
14020
13923
  xmlns: "http://www.w3.org/2000/svg"
@@ -14277,7 +14180,7 @@ var useRect = ref => {
14277
14180
  };
14278
14181
 
14279
14182
  var _excluded$O = ["children", "views", "asChild"],
14280
- _excluded2$e = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
14183
+ _excluded2$d = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
14281
14184
  // Create context for the HoverCard
14282
14185
  var HoverCardContext = /*#__PURE__*/React.createContext({
14283
14186
  isOpen: false,
@@ -14363,7 +14266,7 @@ var HoverCardContent = _ref3 => {
14363
14266
  minWidth = '200px',
14364
14267
  maxWidth = '300px'
14365
14268
  } = _ref3,
14366
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$e);
14269
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$d);
14367
14270
  var {
14368
14271
  isOpen,
14369
14272
  cancelCloseTimer,
@@ -15426,8 +15329,8 @@ var SidebarTransitions = {
15426
15329
  };
15427
15330
 
15428
15331
  var _excluded$V = ["children", "showToggleButton", "views"],
15429
- _excluded2$f = ["children", "views"],
15430
- _excluded3$b = ["children", "views"],
15332
+ _excluded2$e = ["children", "views"],
15333
+ _excluded3$a = ["children", "views"],
15431
15334
  _excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
15432
15335
  // Create context for the Sidebar
15433
15336
  var SidebarContext = /*#__PURE__*/React.createContext({
@@ -15525,7 +15428,7 @@ var SidebarContent = _ref3 => {
15525
15428
  children,
15526
15429
  views
15527
15430
  } = _ref3,
15528
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$f);
15431
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$e);
15529
15432
  var {
15530
15433
  isExpanded
15531
15434
  } = useSidebarContext();
@@ -15543,7 +15446,7 @@ var SidebarFooter = _ref4 => {
15543
15446
  children,
15544
15447
  views
15545
15448
  } = _ref4,
15546
- props = _objectWithoutPropertiesLoose(_ref4, _excluded3$b);
15449
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$a);
15547
15450
  var {
15548
15451
  isExpanded
15549
15452
  } = useSidebarContext();
@@ -16101,8 +16004,8 @@ var HandleIconStyles = {
16101
16004
  };
16102
16005
 
16103
16006
  var _excluded$X = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
16104
- _excluded2$g = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
16105
- _excluded3$c = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
16007
+ _excluded2$f = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
16008
+ _excluded3$b = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
16106
16009
  // Create context for the Resizable component
16107
16010
  var ResizableContext = /*#__PURE__*/React.createContext({
16108
16011
  orientation: 'horizontal',
@@ -16209,7 +16112,7 @@ var ResizableHandle = _ref3 => {
16209
16112
  collapseTarget,
16210
16113
  views
16211
16114
  } = _ref3,
16212
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$g);
16115
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$f);
16213
16116
  var {
16214
16117
  orientation,
16215
16118
  size,
@@ -16349,7 +16252,7 @@ var ResizableView = _ref4 => {
16349
16252
  containerRef,
16350
16253
  views
16351
16254
  } = _ref4,
16352
- props = _objectWithoutPropertiesLoose(_ref4, _excluded3$c);
16255
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$b);
16353
16256
  var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
16354
16257
  return /*#__PURE__*/React__default.createElement(Container, Object.assign({
16355
16258
  ref: containerRef,
@@ -17149,8 +17052,8 @@ var CommandFooterStyles = {
17149
17052
  };
17150
17053
 
17151
17054
  var _excluded$Z = ["value", "onValueChange", "placeholder", "views"],
17152
- _excluded2$h = ["children", "views"],
17153
- _excluded3$d = ["heading", "children", "views"],
17055
+ _excluded2$g = ["children", "views"],
17056
+ _excluded3$c = ["heading", "children", "views"],
17154
17057
  _excluded4$a = ["item", "selected", "onSelect", "views"],
17155
17058
  _excluded5$5 = ["children", "views"],
17156
17059
  _excluded6$3 = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "emptyState", "footer", "search", "setSearch", "selectedIndex", "setSelectedIndex", "filteredCommands", "filteredGroups", "listRef", "views", "filter"];
@@ -17212,7 +17115,7 @@ var CommandList = _ref3 => {
17212
17115
  children,
17213
17116
  views
17214
17117
  } = _ref3,
17215
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$h);
17118
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$g);
17216
17119
  return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandListStyles, views == null ? void 0 : views.container, props), children);
17217
17120
  };
17218
17121
  // Command Group component
@@ -17222,7 +17125,7 @@ var CommandGroup = _ref4 => {
17222
17125
  children,
17223
17126
  views
17224
17127
  } = _ref4,
17225
- props = _objectWithoutPropertiesLoose(_ref4, _excluded3$d);
17128
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$c);
17226
17129
  return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandGroupStyles, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(Text, Object.assign({}, CommandGroupHeadingStyles, views == null ? void 0 : views.heading), heading), children);
17227
17130
  };
17228
17131
  // Command Item component
@@ -17669,8 +17572,8 @@ var getArrowStyles = position => {
17669
17572
  };
17670
17573
 
17671
17574
  var _excluded$$ = ["children", "views", "asChild"],
17672
- _excluded2$i = ["children", "views"],
17673
- _excluded3$e = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
17575
+ _excluded2$h = ["children", "views"],
17576
+ _excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
17674
17577
  // Create context for the Tooltip
17675
17578
  var TooltipContext = /*#__PURE__*/React.createContext({
17676
17579
  isOpen: false,
@@ -17740,7 +17643,7 @@ var TooltipContent = _ref3 => {
17740
17643
  children,
17741
17644
  views
17742
17645
  } = _ref3,
17743
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$i);
17646
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$h);
17744
17647
  var {
17745
17648
  isOpen,
17746
17649
  contentRef,
@@ -17770,7 +17673,7 @@ var TooltipView = _ref4 => {
17770
17673
  showArrow = true,
17771
17674
  views
17772
17675
  } = _ref4,
17773
- props = _objectWithoutPropertiesLoose(_ref4, _excluded3$e);
17676
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$d);
17774
17677
  var {
17775
17678
  isOpen,
17776
17679
  // openTooltip,