@app-studio/web 0.8.82 → 0.8.84

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
@@ -2814,71 +2814,70 @@ var Icon = {
2814
2814
  * Get theme styles for different alert variants based on theme mode
2815
2815
  */
2816
2816
  var getThemes = themeMode => {
2817
- var isDarkMode = themeMode === 'dark';
2818
2817
  return {
2819
2818
  default: {
2820
2819
  container: {
2821
- backgroundColor: isDarkMode ? 'color.gray.800' : 'color.gray.50',
2822
- borderColor: isDarkMode ? 'color.gray.700' : 'color.gray.200',
2823
- boxShadow: isDarkMode ? '0 1px 2px rgba(0, 0, 0, 0.2)' : '0 1px 2px rgba(0, 0, 0, 0.05)'
2820
+ backgroundColor: 'color.gray.50',
2821
+ borderColor: 'color.gray.200',
2822
+ boxShadow: '0 1px 2px rgba(0, 0, 0, 0.05)'
2824
2823
  },
2825
2824
  content: {
2826
- color: isDarkMode ? 'color.gray.300' : 'color.gray.700'
2825
+ color: 'color.gray.700'
2827
2826
  },
2828
2827
  icon: {
2829
- color: isDarkMode ? 'color.gray.400' : 'color.gray.500'
2828
+ color: 'color.gray.500'
2830
2829
  }
2831
2830
  },
2832
2831
  info: {
2833
2832
  container: {
2834
- backgroundColor: isDarkMode ? 'color.blue.900' : 'color.blue.50',
2835
- borderColor: isDarkMode ? 'color.blue.800' : 'color.blue.200',
2836
- boxShadow: isDarkMode ? '0 1px 2px rgba(59, 130, 246, 0.2)' : '0 1px 2px rgba(59, 130, 246, 0.05)'
2833
+ backgroundColor: 'color.blue.50',
2834
+ borderColor: 'color.blue.200',
2835
+ boxShadow: '0 1px 2px rgba(59, 130, 246, 0.05)'
2837
2836
  },
2838
2837
  content: {
2839
- color: isDarkMode ? 'color.blue.300' : 'color.blue.700'
2838
+ color: 'color.blue.700'
2840
2839
  },
2841
2840
  icon: {
2842
- color: isDarkMode ? 'color.blue.400' : 'color.blue.500'
2841
+ color: 'color.blue.500'
2843
2842
  }
2844
2843
  },
2845
2844
  success: {
2846
2845
  container: {
2847
- backgroundColor: isDarkMode ? 'color.green.900' : 'color.green.50',
2848
- borderColor: isDarkMode ? 'color.green.800' : 'color.green.200',
2849
- boxShadow: isDarkMode ? '0 1px 2px rgba(34, 197, 94, 0.2)' : '0 1px 2px rgba(34, 197, 94, 0.05)'
2846
+ backgroundColor: 'color.green.50',
2847
+ borderColor: 'color.green.200',
2848
+ boxShadow: '0 1px 2px rgba(34, 197, 94, 0.05)'
2850
2849
  },
2851
2850
  content: {
2852
- color: isDarkMode ? 'color.green.300' : 'color.green.700'
2851
+ color: 'color.green.700'
2853
2852
  },
2854
2853
  icon: {
2855
- color: isDarkMode ? 'color.green.400' : 'color.green.500'
2854
+ color: 'color.green.500'
2856
2855
  }
2857
2856
  },
2858
2857
  error: {
2859
2858
  container: {
2860
- backgroundColor: isDarkMode ? 'color.red.900' : 'color.red.50',
2861
- borderColor: isDarkMode ? 'color.red.800' : 'color.red.200',
2862
- boxShadow: isDarkMode ? '0 1px 2px rgba(239, 68, 68, 0.2)' : '0 1px 2px rgba(239, 68, 68, 0.05)'
2859
+ backgroundColor: 'color.red.50',
2860
+ borderColor: 'color.red.200',
2861
+ boxShadow: '0 1px 2px rgba(239, 68, 68, 0.05)'
2863
2862
  },
2864
2863
  content: {
2865
- color: isDarkMode ? 'color.red.300' : 'color.red.700'
2864
+ color: 'color.red.700'
2866
2865
  },
2867
2866
  icon: {
2868
- color: isDarkMode ? 'color.red.400' : 'color.red.500'
2867
+ color: 'color.red.500'
2869
2868
  }
2870
2869
  },
2871
2870
  warning: {
2872
2871
  container: {
2873
- backgroundColor: isDarkMode ? 'color.orange.900' : 'color.orange.50',
2874
- borderColor: isDarkMode ? 'color.orange.800' : 'color.orange.200',
2875
- boxShadow: isDarkMode ? '0 1px 2px rgba(249, 115, 22, 0.2)' : '0 1px 2px rgba(249, 115, 22, 0.05)'
2872
+ backgroundColor: 'color.orange.50',
2873
+ borderColor: 'color.orange.200',
2874
+ boxShadow: '0 1px 2px rgba(249, 115, 22, 0.05)'
2876
2875
  },
2877
2876
  content: {
2878
- color: isDarkMode ? 'color.orange.300' : 'color.orange.700'
2877
+ color: 'color.orange.700'
2879
2878
  },
2880
2879
  icon: {
2881
- color: isDarkMode ? 'color.orange.400' : 'color.orange.500'
2880
+ color: 'color.orange.500'
2882
2881
  }
2883
2882
  }
2884
2883
  };
@@ -2901,8 +2900,7 @@ var AlertView = _ref => {
2901
2900
  var {
2902
2901
  themeMode
2903
2902
  } = useTheme();
2904
- var currentThemeMode = elementMode || themeMode;
2905
- var themes = getThemes(currentThemeMode);
2903
+ var themes = getThemes();
2906
2904
  // Select the appropriate icon based on the variant
2907
2905
  var getIcon = () => {
2908
2906
  var _views$icon$color, _views$icon;
@@ -3231,11 +3229,10 @@ var PositionStyles = {
3231
3229
  * Get badge variants with consistent styling based on theme mode
3232
3230
  */
3233
3231
  var getBadgeVariants = themeMode => {
3234
- var isDarkMode = themeMode === 'dark';
3235
3232
  return {
3236
3233
  filled: {
3237
3234
  backgroundColor: 'theme.primary',
3238
- color: isDarkMode ? 'color.gray.900' : 'color.white',
3235
+ color: 'color.white',
3239
3236
  borderWidth: '1px',
3240
3237
  borderStyle: 'solid',
3241
3238
  borderColor: 'transparent',
@@ -3261,7 +3258,7 @@ var getBadgeVariants = themeMode => {
3261
3258
  },
3262
3259
  ghost: {
3263
3260
  backgroundColor: 'transparent',
3264
- color: isDarkMode ? 'color.gray.400' : 'color.gray.500',
3261
+ color: 'color.gray.500',
3265
3262
  borderWidth: '1px',
3266
3263
  borderStyle: 'solid',
3267
3264
  borderColor: 'transparent',
@@ -3289,8 +3286,7 @@ var BadgeView = _ref => {
3289
3286
  var {
3290
3287
  themeMode
3291
3288
  } = useTheme();
3292
- var currentThemeMode = elementMode || themeMode;
3293
- var variantStyles = getBadgeVariants(currentThemeMode)[variant];
3289
+ var variantStyles = getBadgeVariants()[variant];
3294
3290
  // Combine styles for the badge
3295
3291
  var combinedStyles = Object.assign({
3296
3292
  // Base styles
@@ -3552,7 +3548,9 @@ var DefaultSpinner = _ref => {
3552
3548
  getColor,
3553
3549
  themeMode
3554
3550
  } = useTheme();
3555
- var colorStyle = getColor(color, elementMode ? elementMode : themeMode);
3551
+ var colorStyle = getColor(color, {
3552
+ themeMode: elementMode ? elementMode : themeMode
3553
+ });
3556
3554
  var sizeStyle = typeof size === 'number' ? size : DefaultSizes[size];
3557
3555
  var [angle, setAngle] = useState(0);
3558
3556
  useEffect(() => {
@@ -3599,7 +3597,9 @@ var Dotted = _ref2 => {
3599
3597
  getColor,
3600
3598
  themeMode
3601
3599
  } = useTheme();
3602
- var colorStyle = getColor(color, elementMode ? elementMode : themeMode);
3600
+ var colorStyle = getColor(color, {
3601
+ themeMode: elementMode ? elementMode : themeMode
3602
+ });
3603
3603
  var sizeStyle = typeof size === 'number' ? size : DefaultSizes[size];
3604
3604
  var [angle, setAngle] = useState(0);
3605
3605
  useEffect(() => {
@@ -3645,7 +3645,9 @@ var Quarter = _ref3 => {
3645
3645
  getColor,
3646
3646
  themeMode
3647
3647
  } = useTheme();
3648
- var colorStyle = getColor(color, elementMode ? elementMode : themeMode);
3648
+ var colorStyle = getColor(color, {
3649
+ themeMode: elementMode ? elementMode : themeMode
3650
+ });
3649
3651
  var sizeStyle = typeof size === 'number' ? size : DefaultSizes[size];
3650
3652
  var [angle, setAngle] = useState(0);
3651
3653
  useEffect(() => {
@@ -3712,9 +3714,10 @@ React.createElement(LoaderView, Object.assign({}, props)));
3712
3714
  // Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
3713
3715
  var Loader = LoaderComponent;
3714
3716
 
3715
- 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", "colorScheme"],
3717
+ 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"],
3716
3718
  _excluded2$3 = ["_hover", "_active"],
3717
3719
  _excluded3$3 = ["height"];
3720
+ // Using require for contrast as it seems to be a common pattern in your code
3718
3721
  var contrast = /*#__PURE__*/require('contrast');
3719
3722
  var ButtonView = _ref => {
3720
3723
  var _props$onClick;
@@ -3736,13 +3739,16 @@ var ButtonView = _ref => {
3736
3739
  onClick = () => {},
3737
3740
  loaderProps = {},
3738
3741
  loaderPosition = 'left',
3739
- effect = 'default',
3740
- isHovered,
3742
+ effect = 'default' // 'default', 'hover', 'reverse'
3743
+ ,
3741
3744
  setIsHovered = () => {},
3742
3745
  isExternal = false,
3743
3746
  themeMode: elementMode,
3747
+ // Allow overriding themeMode for this element
3744
3748
  views,
3745
- colorScheme = 'theme.primary'
3749
+ color,
3750
+ // Text color prop
3751
+ backgroundColor = 'theme.primary' // Background color prop
3746
3752
  } = _ref,
3747
3753
  props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
3748
3754
  var {
@@ -3754,83 +3760,170 @@ var ButtonView = _ref => {
3754
3760
  var defaultNativeProps = {
3755
3761
  disabled: !isActive
3756
3762
  };
3757
- var buttonColor = isActive ? colorScheme : 'theme.disabled';
3758
- var hovering = isHovered && effect === 'hover';
3759
- var reverse = isHovered && effect === 'reverse';
3760
- // Determine if the button color is light or dark for proper contrast
3761
- var buttonMode = elementMode ? elementMode : themeMode;
3762
- var reverseMode = reverse && buttonMode == 'light' ? 'dark' : "light"; // Slightly darker
3763
- var isLight = contrast(getColor(buttonColor, buttonMode)) == 'light';
3764
- // Define button variants with effect support
3765
- var ButtonVariants = {
3766
- filled: {
3767
- backgroundColor: reverse ? 'transparent' : buttonColor,
3768
- color: reverse ? isLight ? 'white' : buttonColor : isLight ? buttonColor : 'white',
3769
- borderWidth: 1,
3770
- borderStyle: 'solid',
3771
- borderColor: reverse ? buttonColor : 'transparent',
3772
- _hover: {
3773
- themeMode: reverse && buttonMode == 'light' ? 'light' : "dark",
3774
- transform: 'translateY(-1px)',
3775
- boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1)'
3763
+ // Determine the base background color key/value, considering disabled state
3764
+ var buttonBackgroundColorKey = isActive ? backgroundColor : 'theme.disabled';
3765
+ // --- Provided Color Logic ---
3766
+ // Determine the effective theme mode for this button
3767
+ var mode = elementMode != null ? elementMode : themeMode; // effective mode
3768
+ // Resolve the base background color string
3769
+ var bg = getColor(buttonBackgroundColorKey, {
3770
+ themeMode: mode
3771
+ });
3772
+ // Resolve the background color string in the opposite theme mode (for reverse effect, though not directly used for ghost/outline text contrast)
3773
+ // const bgHover = getColor(buttonBackgroundColorKey, {
3774
+ // themeMode: mode === 'light' ? 'dark' : 'light',
3775
+ // }); // bgHover is not strictly needed for the text contrast logic below
3776
+ // Check contrast of base background
3777
+ var isBgLight = contrast(bg) === mode;
3778
+ // Determine contrasting text color key for the base background
3779
+ var txtOnBgKey = isBgLight ? 'color.black' : 'color.white';
3780
+ // --- End Provided Color Logic ---
3781
+ // Determine the default text color key/value if 'color' prop is not provided
3782
+ // For filled buttons, default text color should contrast with the background (use txtOnBgKey).
3783
+ // For outline/link/ghost, a theme-appropriate text color is usually better (e.g., theme.text or theme.primary).
3784
+ var defaultTextColorKey;
3785
+ if (variant === 'filled') {
3786
+ defaultTextColorKey = txtOnBgKey; // Use the calculated contrasting color key
3787
+ } else {
3788
+ // For non-filled variants, default to theme's text color or primary color
3789
+ defaultTextColorKey = 'theme.primary'; // Or 'theme.primary' depending on design system
3790
+ }
3791
+ // Determine the actual key/value for the base text color
3792
+ // Use the provided 'color' prop if available, otherwise use the calculated default
3793
+ var baseTextColorKey = color || defaultTextColorKey;
3794
+ // Resolve the actual base text color string
3795
+ var resolvedBaseTextColor = getColor(baseTextColorKey, {
3796
+ themeMode: mode
3797
+ });
3798
+ // Resolve the contrasting color string for the base background (used for text in outline/ghost reverse)
3799
+ var contrastingColorForBg = getColor(txtOnBgKey, {
3800
+ themeMode: mode
3801
+ });
3802
+ // Resolve the contrasting color string for the base text color (used for text in ghost reverse)
3803
+ var isBaseTextLight = contrast(resolvedBaseTextColor) === 'light';
3804
+ var contrastingColorForBaseText = getColor(isBaseTextLight ? 'color.black' : 'color.white', {
3805
+ themeMode: mode
3806
+ });
3807
+ // --- Button Variant Styles Function ---
3808
+ // This function calculates the styles based on the current state (base, hover, active)
3809
+ var getButtonVariantStyles = _ref2 => {
3810
+ var {
3811
+ currentVariant,
3812
+ currentEffect,
3813
+ resolvedBg,
3814
+ // Resolved base background color string (bg)
3815
+ resolvedBaseTextColor,
3816
+ // Resolved base text color string
3817
+ contrastingColorForBg,
3818
+ // Resolved contrasting color string for resolvedBg
3819
+ contrastingColorForBaseText,
3820
+ // Resolved contrasting color string for resolvedBaseTextColor
3821
+ resolvedBorderColor
3822
+ } = _ref2;
3823
+ // Define the base styles for each variant
3824
+ var baseStyles = {
3825
+ filled: {
3826
+ backgroundColor: resolvedBg,
3827
+ color: resolvedBaseTextColor,
3828
+ borderWidth: 1,
3829
+ borderStyle: 'solid',
3830
+ borderColor: 'transparent'
3776
3831
  },
3777
- _active: {
3778
- themeMode: reverse && buttonMode == 'light' ? 'light' : "dark",
3779
- transform: 'translateY(0)',
3780
- boxShadow: '0 2px 4px rgba(0, 0, 0, 0.1)'
3781
- }
3782
- },
3783
- outline: {
3784
- backgroundColor: reverse ? buttonColor : 'transparent',
3785
- borderWidth: 1,
3786
- borderStyle: 'solid',
3787
- borderColor: reverse ? buttonColor : colorScheme,
3788
- color: reverse ? 'white' : buttonColor,
3789
- _hover: {
3790
- themeMode: reverse ? reverseMode : buttonMode,
3791
- transform: 'translateY(-1px)',
3792
- boxShadow: '0 4px 8px rgba(0, 0, 0, 0.05)'
3832
+ outline: {
3833
+ backgroundColor: 'transparent',
3834
+ color: resolvedBaseTextColor,
3835
+ borderWidth: 1,
3836
+ borderStyle: 'solid',
3837
+ borderColor: resolvedBorderColor
3793
3838
  },
3794
- _active: {
3795
- themeMode: reverse ? reverseMode : buttonMode,
3796
- transform: 'translateY(0)',
3797
- boxShadow: '0 2px 4px rgba(0, 0, 0, 0.05)'
3798
- }
3799
- },
3800
- link: {
3801
- backgroundColor: 'transparent',
3802
- borderWidth: 0,
3803
- borderStyle: 'none',
3804
- borderColor: 'transparent',
3805
- color: buttonColor,
3806
- textDecoration: reverse ? 'none' : 'underline',
3807
- _hover: {
3808
- opacity: 0.8,
3809
- textDecorationThickness: '2px'
3839
+ link: {
3840
+ backgroundColor: 'transparent',
3841
+ color: resolvedBg,
3842
+ borderWidth: 0,
3843
+ borderStyle: 'none',
3844
+ borderColor: 'transparent',
3845
+ textDecoration: 'underline'
3810
3846
  },
3811
- _active: {
3812
- opacity: 0.8,
3813
- textDecorationThickness: '2px'
3847
+ ghost: {
3848
+ backgroundColor: 'transparent',
3849
+ color: resolvedBaseTextColor,
3850
+ borderWidth: 0,
3851
+ borderStyle: 'none',
3852
+ borderColor: 'transparent'
3814
3853
  }
3815
- },
3816
- ghost: {
3817
- backgroundColor: reverse ? buttonColor : 'transparent',
3818
- color: reverse ? 'white' : buttonColor,
3819
- borderWidth: 0,
3820
- borderStyle: 'none',
3821
- borderColor: 'transparent',
3822
- _hover: {
3823
- themeMode: reverse ? reverseMode : buttonMode,
3824
- transform: 'translateY(-1px)'
3854
+ };
3855
+ // Define the styles applied on hover/active when effect is 'reverse'
3856
+ var reverseHoverActiveStyles = {
3857
+ filled: {
3858
+ backgroundColor: 'transparent',
3859
+ color: resolvedBg,
3860
+ borderWidth: 1,
3861
+ borderStyle: 'solid',
3862
+ borderColor: resolvedBg
3825
3863
  },
3826
- _active: {
3827
- themeMode: reverse ? reverseMode : buttonMode,
3828
- transform: 'translateY(0)'
3864
+ outline: {
3865
+ backgroundColor: resolvedBg,
3866
+ color: contrastingColorForBg,
3867
+ borderWidth: 1,
3868
+ borderStyle: 'solid',
3869
+ borderColor: 'transparent'
3870
+ },
3871
+ link: {
3872
+ backgroundColor: 'transparent',
3873
+ color: resolvedBg,
3874
+ borderWidth: 0,
3875
+ borderStyle: 'none',
3876
+ borderColor: 'transparent',
3877
+ textDecoration: 'none'
3878
+ },
3879
+ ghost: {
3880
+ backgroundColor: resolvedBg,
3881
+ color: contrastingColorForBaseText,
3882
+ borderWidth: 0,
3883
+ borderStyle: 'none',
3884
+ borderColor: 'transparent'
3829
3885
  }
3830
- }
3886
+ };
3887
+ // General hover/active effects (transform, shadow, opacity, etc.)
3888
+ var generalHoverStyles = {
3889
+ transform: 'translateY(2px)',
3890
+ boxShadow: currentVariant === 'link' ? undefined : '0 4px 8px rgba(0, 0, 0, 0.1)',
3891
+ // opacity: currentVariant === 'link' ? 0.8 : undefined,
3892
+ textDecorationThickness: currentVariant === 'link' ? '2px' : undefined
3893
+ };
3894
+ var generalActiveStyles = {
3895
+ transform: 'translateY(-1px)',
3896
+ boxShadow: '0 2px 4px rgba(0, 0, 0, 0.1)',
3897
+ opacity: currentVariant === 'link' ? 0.8 : undefined,
3898
+ textDecorationThickness: currentVariant === 'link' ? '2px' : undefined
3899
+ };
3900
+ // Combine base styles with conditional hover/active overrides
3901
+ return Object.assign({}, baseStyles[currentVariant], {
3902
+ _hover: Object.assign({}, currentEffect === 'reverse' ? reverseHoverActiveStyles[currentVariant] : {}, currentEffect === 'hover' ? {
3903
+ filter: 'brightness(0.85)'
3904
+ } : {}, generalHoverStyles),
3905
+ _active: Object.assign({}, currentEffect === 'reverse' ? reverseHoverActiveStyles[currentVariant] : {}, currentEffect === 'hover' ? {
3906
+ filter: 'brightness(0.7)'
3907
+ } : {}, generalActiveStyles)
3908
+ });
3831
3909
  };
3910
+ // Get the calculated variant styles for the current state
3911
+ var buttonVariantStyles = getButtonVariantStyles({
3912
+ currentVariant: variant,
3913
+ currentEffect: effect,
3914
+ resolvedBg: bg,
3915
+ resolvedBaseTextColor: resolvedBaseTextColor,
3916
+ contrastingColorForBg: contrastingColorForBg,
3917
+ contrastingColorForBaseText: contrastingColorForBaseText,
3918
+ resolvedBorderColor: bg
3919
+ });
3920
+ // Extract hover and active styles from the calculated styles
3921
+ var {
3922
+ _hover,
3923
+ _active
3924
+ } = buttonVariantStyles,
3925
+ baseButtonVariantStyles = _objectWithoutPropertiesLoose(buttonVariantStyles, _excluded2$3);
3832
3926
  var buttonSizeStyles = ButtonSizes[size];
3833
- var buttonVariant = ButtonVariants[variant];
3834
3927
  var scaleWidth = {
3835
3928
  width: isAuto === true ? 'fit-content' : isFilled ? '100%' : buttonSizeStyles.width
3836
3929
  };
@@ -3843,62 +3936,68 @@ var ButtonView = _ref => {
3843
3936
  alignItems: "center",
3844
3937
  justifyContent: "center"
3845
3938
  }, views == null ? void 0 : views.container), isLoading && loaderPosition === 'left' && (/*#__PURE__*/React.createElement(Loader, Object.assign({
3846
- size: size === 'xs' || size === 'sm' ? 'sm' : 'md'
3939
+ size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
3940
+ color: baseButtonVariantStyles.color
3847
3941
  }, loaderProps))), icon && ['left', 'top'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React.createElement(View, Object.assign({
3848
3942
  display: "flex",
3849
3943
  alignItems: "center",
3850
- justifyContent: "center"
3944
+ justifyContent: "center",
3945
+ color: baseButtonVariantStyles.color
3851
3946
  }, views == null ? void 0 : views.icon), icon)), children, icon && ['right', 'bottom'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React.createElement(View, Object.assign({
3852
3947
  display: "flex",
3853
3948
  alignItems: "center",
3854
- justifyContent: "center"
3949
+ justifyContent: "center",
3950
+ color: baseButtonVariantStyles.color
3855
3951
  }, views == null ? void 0 : views.icon), icon)), isLoading && loaderPosition === 'right' && (/*#__PURE__*/React.createElement(Loader, Object.assign({
3856
- size: size === 'xs' || size === 'sm' ? 'sm' : 'md'
3952
+ size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
3953
+ color: baseButtonVariantStyles.color
3857
3954
  }, loaderProps))));
3858
- // Extract hover and active styles from buttonVariant
3859
- var _ref2 = buttonVariant || {},
3860
- {
3861
- _hover,
3862
- _active
3863
- } = _ref2,
3864
- baseButtonVariant = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
3955
+ // Determine if the button should render as a Link or a button Element
3956
+ var isLink = variant === 'link' && to;
3865
3957
  return /*#__PURE__*/React.createElement(Element, Object.assign({
3866
3958
  gap: 8,
3867
- as: "button",
3868
- type: "button",
3959
+ as: isLink ? 'div' : 'button',
3960
+ type: isLink ? undefined : 'button',
3869
3961
  display: "flex",
3870
3962
  alignItems: "center",
3871
3963
  justifyContent: "center",
3872
3964
  "aria-label": ariaLabel,
3873
- backgroundColor: "transparent",
3965
+ // backgroundColor="transparent" // Remove this unless it's intended to override variant styles
3874
3966
  borderRadius: ButtonShapes[shape],
3875
3967
  onClick: (_props$onClick = props.onClick) != null ? _props$onClick : onClick,
3876
3968
  onMouseEnter: () => handleHover(true),
3877
3969
  onMouseLeave: () => handleHover(false),
3878
- cursor: isActive ? 'pointer' : 'default',
3879
- filter: hovering && effect === 'hover' ? 'brightness(0.85)' : 'brightness(1)',
3970
+ cursor: isActive ? isLink ? 'pointer' : 'pointer' : 'default',
3880
3971
  transition: "all 0.2s ease",
3881
- transform: hovering && effect === 'hover' && !isDisabled ? 'translateY(-5px)' : '',
3882
- // Apply consistent styling according to design guidelines
3972
+ // filter and transform are now handled within _hover/_active styles
3883
3973
  // Apply shadow if provided
3884
3974
  boxShadow: shadow ? shadow : undefined
3885
3975
  }, defaultNativeProps, (_ref3 => {
3886
3976
  var rest = _objectWithoutPropertiesLoose(_ref3, _excluded3$3);
3887
3977
  return rest;
3888
- })(props), buttonSizeStyles, baseButtonVariant, scaleWidth, props.padding || props.paddingHorizontal || props.paddingVertical || props.paddingLeft || props.paddingRight || props.paddingTop || props.paddingBottom ? {} : changePadding, {
3978
+ })(props), buttonSizeStyles, baseButtonVariantStyles, scaleWidth, props.padding || props.paddingHorizontal || props.paddingVertical || props.paddingLeft || props.paddingRight || props.paddingTop || props.paddingBottom ? {} : changePadding, {
3889
3979
  // Apply hover and active styles
3890
3980
  _hover: _hover,
3891
3981
  _active: _active
3892
- }, views == null ? void 0 : views.container), variant === 'link' && to ? (/*#__PURE__*/React.createElement(Link, Object.assign({
3982
+ }, props, views == null ? void 0 : views.container), to ? (/*#__PURE__*/React.createElement(Link, Object.assign({
3893
3983
  to: to,
3894
- textDecorationColor: colorScheme,
3895
- textDecorationThickness: "1px",
3984
+ isExternal: isExternal,
3985
+ // Link styles should inherit from the button's calculated styles or be defined here
3986
+ // Let's apply relevant styles from the button variant to the Link
3987
+ color: baseButtonVariantStyles.color,
3988
+ textDecoration: baseButtonVariantStyles.textDecoration,
3989
+ textDecorationColor: baseButtonVariantStyles.color,
3990
+ textDecorationThickness: "1px" // Base thickness
3991
+ ,
3896
3992
  textUnderlineOffset: "2px",
3897
3993
  transition: "all 0.2s ease",
3898
- isExternal: isExternal,
3899
- _hover: {
3994
+ // Apply Link-specific hover/active styles if needed, or let Element's _hover/_active handle it
3995
+ _hover: Object.assign({}, _hover, {
3900
3996
  textDecorationThickness: '2px'
3901
- }
3997
+ }),
3998
+ _active: Object.assign({}, _active, {
3999
+ textDecorationThickness: '2px'
4000
+ })
3902
4001
  }, views == null ? void 0 : views.link), content)) : content);
3903
4002
  };
3904
4003
 
@@ -3951,30 +4050,29 @@ var CardShapes = {
3951
4050
  * Get card variants with consistent styling based on theme mode
3952
4051
  */
3953
4052
  var getCardVariants = themeMode => {
3954
- var isDarkMode = themeMode === 'dark';
3955
4053
  return {
3956
4054
  default: {
3957
- backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
4055
+ backgroundColor: 'color.white',
3958
4056
  border: 'none',
3959
4057
  transition: 'all 0.2s ease'
3960
4058
  },
3961
4059
  outlined: {
3962
- backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
4060
+ backgroundColor: 'color.white',
3963
4061
  borderWidth: '1px',
3964
4062
  borderStyle: 'solid',
3965
- borderColor: isDarkMode ? 'color.gray.700' : 'color.gray.200',
4063
+ borderColor: 'color.gray.200',
3966
4064
  transition: 'all 0.2s ease',
3967
4065
  _hover: {
3968
- borderColor: isDarkMode ? 'color.gray.600' : 'color.gray.300'
4066
+ borderColor: 'color.gray.300'
3969
4067
  }
3970
4068
  },
3971
4069
  elevated: {
3972
- backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
3973
- boxShadow: isDarkMode ? '0px 2px 8px rgba(0, 0, 0, 0.2)' : '0px 2px 8px rgba(0, 0, 0, 0.08)',
4070
+ backgroundColor: 'color.white',
4071
+ boxShadow: '0px 2px 8px rgba(0, 0, 0, 0.08)',
3974
4072
  border: 'none',
3975
4073
  transition: 'all 0.2s ease',
3976
4074
  _hover: {
3977
- boxShadow: isDarkMode ? '0px 4px 12px rgba(0, 0, 0, 0.25)' : '0px 4px 12px rgba(0, 0, 0, 0.12)',
4075
+ boxShadow: '0px 4px 12px rgba(0, 0, 0, 0.12)',
3978
4076
  transform: 'translateY(-2px)'
3979
4077
  }
3980
4078
  }
@@ -3985,14 +4083,10 @@ var getCardVariants = themeMode => {
3985
4083
  * @param theme - Theme object from useTheme hook
3986
4084
  */
3987
4085
  var getDefaultCardStyles = theme => {
3988
- var {
3989
- themeMode
3990
- } = theme;
3991
- var isDarkMode = themeMode === 'dark';
3992
4086
  return {
3993
4087
  container: {
3994
- backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
3995
- color: isDarkMode ? 'color.gray.100' : 'color.gray.900',
4088
+ backgroundColor: 'color.white',
4089
+ color: 'color.black',
3996
4090
  borderRadius: '8px',
3997
4091
  overflow: 'hidden',
3998
4092
  transition: 'all 0.2s ease'
@@ -4001,17 +4095,18 @@ var getDefaultCardStyles = theme => {
4001
4095
  padding: '16px',
4002
4096
  borderBottomWidth: '1px',
4003
4097
  borderBottomStyle: 'solid',
4004
- borderBottomColor: isDarkMode ? 'color.gray.700' : 'color.gray.200'
4098
+ borderBottomColor: 'color.gray.200',
4099
+ color: 'color.black'
4005
4100
  },
4006
4101
  content: {
4007
4102
  padding: '16px',
4008
- color: isDarkMode ? 'color.gray.100' : 'color.gray.900'
4103
+ color: 'color.black'
4009
4104
  },
4010
4105
  footer: {
4011
4106
  padding: '16px',
4012
4107
  borderTopWidth: '1px',
4013
4108
  borderTopStyle: 'solid',
4014
- borderTopColor: isDarkMode ? 'color.gray.700' : 'color.gray.200'
4109
+ borderTopColor: 'color.gray.200'
4015
4110
  }
4016
4111
  };
4017
4112
  };
@@ -4036,7 +4131,7 @@ var CardHeader = _ref => {
4036
4131
  var {
4037
4132
  styles: contextStyles
4038
4133
  } = useCardContext();
4039
- var defaultStyles = getDefaultCardStyles(theme).header;
4134
+ var defaultStyles = getDefaultCardStyles().header;
4040
4135
  // Merge styles: Default < Context Override < Direct Props/Style
4041
4136
  var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.header, props, {
4042
4137
  style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$header = contextStyles.header) == null ? void 0 : _contextStyles$header.style, style)
@@ -4054,7 +4149,7 @@ var CardContent = _ref2 => {
4054
4149
  var {
4055
4150
  styles: contextStyles
4056
4151
  } = useCardContext();
4057
- var defaultStyles = getDefaultCardStyles(theme).content;
4152
+ var defaultStyles = getDefaultCardStyles().content;
4058
4153
  // Merge styles: Default < Context Override < Direct Props/Style
4059
4154
  var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.content, props, {
4060
4155
  style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$conten = contextStyles.content) == null ? void 0 : _contextStyles$conten.style, style)
@@ -4072,7 +4167,7 @@ var CardFooter = _ref3 => {
4072
4167
  var {
4073
4168
  styles: contextStyles
4074
4169
  } = useCardContext();
4075
- var defaultStyles = getDefaultCardStyles(theme).footer;
4170
+ var defaultStyles = getDefaultCardStyles().footer;
4076
4171
  // Merge styles: Default < Context Override < Direct Props/Style
4077
4172
  var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.footer, props, {
4078
4173
  style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$footer = contextStyles.footer) == null ? void 0 : _contextStyles$footer.style, style)
@@ -4095,7 +4190,7 @@ var CardView = _ref4 => {
4095
4190
  } = _ref4,
4096
4191
  props = _objectWithoutPropertiesLoose(_ref4, _excluded4$3);
4097
4192
  var theme = useTheme();
4098
- var defaultStyles = getDefaultCardStyles(theme);
4193
+ var defaultStyles = getDefaultCardStyles();
4099
4194
  // Prepare context value, merging default styles with user's `views` overrides
4100
4195
  var contextValue = useMemo(() => ({
4101
4196
  styles: {
@@ -4108,12 +4203,7 @@ var CardView = _ref4 => {
4108
4203
  // Determine if we have explicit Card.Header, Card.Content, Card.Footer components
4109
4204
  // or if we need to wrap children in a default layout
4110
4205
  var hasExplicitStructure = React.Children.toArray(children).some(child => /*#__PURE__*/React.isValidElement(child) && (child.type === CardHeader || child.type === CardContent || child.type === CardFooter));
4111
- // Get the appropriate variant styles based on theme mode
4112
- var {
4113
- themeMode
4114
- } = theme;
4115
- var currentThemeMode = elementMode || themeMode;
4116
- var variantStyles = getCardVariants(currentThemeMode)[variant];
4206
+ var variantStyles = getCardVariants()[variant];
4117
4207
  // Merge styles for the root element
4118
4208
  var mergedRootProps = Object.assign({
4119
4209
  width: isFullWidth ? '100%' : 'auto',
@@ -4360,7 +4450,7 @@ var ActiveIndicatorStyles = {
4360
4450
  },
4361
4451
  number: {
4362
4452
  backgroundColor: 'theme.primary',
4363
- color: 'white'
4453
+ color: 'color.white'
4364
4454
  }
4365
4455
  };
4366
4456
  var NavigationButtonStyles = {
@@ -4805,7 +4895,7 @@ var LegendTextStyles = {
4805
4895
  // Default styles for tooltip
4806
4896
  var TooltipStyles = {
4807
4897
  position: 'absolute',
4808
- backgroundColor: 'white',
4898
+ backgroundColor: 'color.white',
4809
4899
  padding: '8px 12px',
4810
4900
  borderRadius: '4px',
4811
4901
  boxShadow: '0 2px 5px rgba(0, 0, 0, 0.1)',
@@ -5642,7 +5732,7 @@ var ContextMenuSizes = {
5642
5732
  };
5643
5733
  var ContextMenuVariants = {
5644
5734
  default: {
5645
- backgroundColor: 'white',
5735
+ backgroundColor: 'color.white',
5646
5736
  color: 'color.gray.800'
5647
5737
  },
5648
5738
  filled: {
@@ -5650,7 +5740,7 @@ var ContextMenuVariants = {
5650
5740
  color: 'color.gray.800'
5651
5741
  },
5652
5742
  outline: {
5653
- backgroundColor: 'white',
5743
+ backgroundColor: 'color.white',
5654
5744
  borderWidth: '1px',
5655
5745
  borderStyle: 'solid',
5656
5746
  borderColor: 'color.gray.200',
@@ -6320,7 +6410,7 @@ var InputVariants = {
6320
6410
  borderWidth: '1px',
6321
6411
  borderStyle: 'solid',
6322
6412
  borderColor: 'color.gray.200',
6323
- backgroundColor: 'white',
6413
+ backgroundColor: 'color.white',
6324
6414
  transition: 'all 0.2s ease',
6325
6415
  _hover: {
6326
6416
  borderColor: 'color.gray.300'
@@ -6336,7 +6426,7 @@ var InputVariants = {
6336
6426
  borderBottomStyle: 'solid',
6337
6427
  borderBottomColor: 'color.gray.200',
6338
6428
  borderRadius: 0,
6339
- backgroundColor: 'white',
6429
+ backgroundColor: 'color.white',
6340
6430
  transition: 'all 0.2s ease',
6341
6431
  _hover: {
6342
6432
  borderBottomColor: 'color.gray.300'
@@ -6772,7 +6862,7 @@ var DropDown = _ref5 => {
6772
6862
  ,
6773
6863
  overflowY: "auto",
6774
6864
  zIndex: 1000,
6775
- backgroundColor: "white",
6865
+ backgroundColor: "color.white",
6776
6866
  borderRadius: "8px" // Consistent with design system (rounded-md)
6777
6867
  ,
6778
6868
  borderWidth: "1px",
@@ -7481,7 +7571,9 @@ var TextFieldView = _ref => {
7481
7571
  getColor,
7482
7572
  themeMode
7483
7573
  } = useTheme();
7484
- var IconColor = getColor('color.blueGray.700', elementMode ? elementMode : themeMode);
7574
+ var IconColor = getColor('color.blueGray.700', {
7575
+ themeMode: elementMode ? elementMode : themeMode
7576
+ });
7485
7577
  var showLabel = !!(isFocused && label);
7486
7578
  /**
7487
7579
  * Styles for the input field
@@ -7667,19 +7759,19 @@ var VariantStyles = {
7667
7759
  selected: {
7668
7760
  backgroundColor: 'theme.primary',
7669
7761
  borderColor: 'theme.primary',
7670
- color: 'white'
7762
+ color: 'color.white'
7671
7763
  },
7672
7764
  unselected: {
7673
- backgroundColor: 'transparent',
7765
+ backgroundColor: 'color.white',
7674
7766
  borderWidth: '2px',
7675
7767
  borderStyle: 'solid',
7676
7768
  borderColor: 'color.gray.300',
7677
- color: 'transparent'
7769
+ color: 'color.black'
7678
7770
  },
7679
7771
  indeterminate: {
7680
7772
  backgroundColor: 'theme.primary',
7681
7773
  borderColor: 'theme.primary',
7682
- color: 'white'
7774
+ color: 'color.white'
7683
7775
  }
7684
7776
  };
7685
7777
  /**
@@ -9413,7 +9505,7 @@ var DropDown$1 = _ref4 => {
9413
9505
  borderRadius: 4,
9414
9506
  position: "absolute",
9415
9507
  flexDirection: "column",
9416
- backgroundColor: "white",
9508
+ backgroundColor: "color.white",
9417
9509
  boxShadow: "rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px"
9418
9510
  }, views['dropDown']), options.map(option => (/*#__PURE__*/React.createElement(DropDownItem, Object.assign({
9419
9511
  key: option.code,
@@ -9463,7 +9555,9 @@ var CountryPickerView = _ref5 => {
9463
9555
  getColor,
9464
9556
  themeMode
9465
9557
  } = useTheme();
9466
- var IconColor = getColor('color.blueGray.700', elementMode ? elementMode : themeMode);
9558
+ var IconColor = getColor('color.blueGray.700', {
9559
+ themeMode: elementMode ? elementMode : themeMode
9560
+ });
9467
9561
  var handleHover = () => setIsHovered(!isHovered);
9468
9562
  var handleFocus = () => setIsFocused(true);
9469
9563
  var handleCallback = option => {
@@ -9840,7 +9934,7 @@ var ComboBoxView = _ref => {
9840
9934
  position: "relative"
9841
9935
  }, /*#__PURE__*/React.createElement(Horizontal, Object.assign({
9842
9936
  cursor: "pointer",
9843
- backgroundColor: "white",
9937
+ backgroundColor: "color.white",
9844
9938
  boxShadow: "rgba(0, 0, 0, 0.16) 0px 1px 4px",
9845
9939
  padding: "12px",
9846
9940
  display: "flex",
@@ -9862,7 +9956,7 @@ var ComboBoxView = _ref => {
9862
9956
  }, views == null ? void 0 : views.label), selectedItem.label)), right, isDropdownVisible && (/*#__PURE__*/React.createElement(View, Object.assign({
9863
9957
  id: "combobox-dropdown",
9864
9958
  position: "absolute",
9865
- backgroundColor: "white",
9959
+ backgroundColor: "color.white",
9866
9960
  boxShadow: "rgba(0, 0 ,0 ,0.16) 0px 1px 4px",
9867
9961
  width: "100%",
9868
9962
  overflowY: "auto",
@@ -11079,7 +11173,7 @@ var OrientationStyles = {
11079
11173
  }
11080
11174
  };
11081
11175
 
11082
- var _excluded$F = ["min", "max", "step", "currentValue", "stepValues", "shape", "size", "variant", "orientation", "isDisabled", "showValue", "showTooltip", "colorScheme", "label", "helperText", "themeMode", "shadow", "isDragging", "isHovered", "setIsHovered", "trackRef", "thumbRef", "handleThumbMouseDown", "handleTrackMouseDown", "handleKeyDown", "thumbPositionPercent", "ariaLabel", "views"];
11176
+ var _excluded$F = ["min", "max", "step", "currentValue", "stepValues", "shape", "size", "variant", "orientation", "isDisabled", "showValue", "showTooltip", "backgroundColor", "label", "helperText", "themeMode", "shadow", "isDragging", "isHovered", "setIsHovered", "trackRef", "thumbRef", "handleThumbMouseDown", "handleTrackMouseDown", "handleKeyDown", "thumbPositionPercent", "ariaLabel", "views"];
11083
11177
  var SliderView = _ref => {
11084
11178
  var _views$tooltip, _views$tooltip2;
11085
11179
  var {
@@ -11095,7 +11189,7 @@ var SliderView = _ref => {
11095
11189
  isDisabled = false,
11096
11190
  showValue = false,
11097
11191
  showTooltip = false,
11098
- colorScheme = 'theme.primary',
11192
+ backgroundColor = 'theme.primary',
11099
11193
  label,
11100
11194
  helperText,
11101
11195
  themeMode: elementMode,
@@ -11127,9 +11221,15 @@ var SliderView = _ref => {
11127
11221
  getColor,
11128
11222
  themeMode
11129
11223
  } = useTheme();
11130
- var themeColor = getColor(colorScheme, elementMode || themeMode);
11131
- var disabledColor = getColor('theme.disabled', elementMode || themeMode);
11132
- var trackColor = getColor(SliderVariants[variant].backgroundColor, elementMode || themeMode);
11224
+ var themeColor = getColor(backgroundColor, {
11225
+ themeMode: elementMode || themeMode
11226
+ });
11227
+ var disabledColor = getColor('theme.disabled', {
11228
+ themeMode: elementMode || themeMode
11229
+ });
11230
+ var trackColor = getColor(SliderVariants[variant].backgroundColor, {
11231
+ themeMode: elementMode || themeMode
11232
+ });
11133
11233
  var isVertical = orientation === 'vertical';
11134
11234
  var {
11135
11235
  trackCrossAxisSize,
@@ -11199,7 +11299,7 @@ var SliderView = _ref => {
11199
11299
  top: "50%",
11200
11300
  left: thumbPositionPercent + "%",
11201
11301
  borderRadius: "50%",
11202
- backgroundColor: "white",
11302
+ backgroundColor: "color.white",
11203
11303
  boxShadow: "0 2px 4px rgba(0, 0, 0, 0.2)",
11204
11304
  border: "2px solid " + (isDisabled ? disabledColor : themeColor),
11205
11305
  transition: isDragging ? 'none' : 'transform 0.1s ease-in-out',
@@ -12267,7 +12367,7 @@ var ModalContainer = _ref2 => {
12267
12367
  };
12268
12368
  return /*#__PURE__*/React.createElement(Vertical, Object.assign({
12269
12369
  cursor: "default",
12270
- backgroundColor: "white",
12370
+ backgroundColor: "color.white",
12271
12371
  width: isFullScreen ? '100%' : 600,
12272
12372
  height: isFullScreen ? '100%' : 'fit-content',
12273
12373
  onClick: handleClick,
@@ -13674,7 +13774,7 @@ var DropdownMenuSizes = {
13674
13774
  };
13675
13775
  var DropdownMenuVariants = {
13676
13776
  default: {
13677
- backgroundColor: 'white',
13777
+ backgroundColor: 'color.white',
13678
13778
  color: 'color.gray.800'
13679
13779
  },
13680
13780
  filled: {
@@ -13682,7 +13782,7 @@ var DropdownMenuVariants = {
13682
13782
  color: 'color.gray.800'
13683
13783
  },
13684
13784
  outline: {
13685
- backgroundColor: 'white',
13785
+ backgroundColor: 'color.white',
13686
13786
  borderWidth: '1px',
13687
13787
  borderStyle: 'solid',
13688
13788
  borderColor: 'color.gray.200',
@@ -14562,7 +14662,7 @@ var MenubarContent = _ref5 => {
14562
14662
  position: "absolute",
14563
14663
  zIndex: 1000,
14564
14664
  minWidth: "200px",
14565
- backgroundColor: "white",
14665
+ backgroundColor: "color.white",
14566
14666
  borderRadius: 4,
14567
14667
  boxShadow: "0px 2px 8px rgba(0, 0, 0, 0.15)",
14568
14668
  overflow: "hidden"
@@ -14814,7 +14914,7 @@ var PaginationShapes = {
14814
14914
  };
14815
14915
  var ActivePageButtonStyles = {
14816
14916
  backgroundColor: 'color.blue.500',
14817
- color: 'white',
14917
+ color: 'color.white',
14818
14918
  _hover: {
14819
14919
  backgroundColor: 'color.blue.600'
14820
14920
  }
@@ -14967,7 +15067,7 @@ var PaginationView = _ref => {
14967
15067
  borderWidth: "1px",
14968
15068
  borderStyle: "solid",
14969
15069
  borderColor: "color.gray.200",
14970
- backgroundColor: "white",
15070
+ backgroundColor: "color.white",
14971
15071
  cursor: "pointer",
14972
15072
  value: pageSize,
14973
15073
  onChange: handlePageSizeChange
@@ -15243,7 +15343,7 @@ var SidebarSizes = {
15243
15343
  var getSidebar = themeMode => {
15244
15344
  return {
15245
15345
  default: {
15246
- backgroundColor: 'white',
15346
+ backgroundColor: 'color.white',
15247
15347
  color: 'color.gray.800',
15248
15348
  transition: 'all 0.2s ease'
15249
15349
  },
@@ -15253,7 +15353,7 @@ var getSidebar = themeMode => {
15253
15353
  transition: 'all 0.2s ease'
15254
15354
  },
15255
15355
  outline: {
15256
- backgroundColor: 'white',
15356
+ backgroundColor: 'color.white',
15257
15357
  borderWidth: '1px',
15258
15358
  borderStyle: 'solid',
15259
15359
  borderColor: 'color.gray.200',
@@ -15266,7 +15366,7 @@ var getSidebar = themeMode => {
15266
15366
  transition: 'all 0.2s ease'
15267
15367
  },
15268
15368
  elevated: {
15269
- backgroundColor: 'white',
15369
+ backgroundColor: 'color.white',
15270
15370
  boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.1)',
15271
15371
  color: 'color.gray.800',
15272
15372
  transition: 'all 0.2s ease'
@@ -16921,7 +17021,7 @@ var CommandSizes = {
16921
17021
  var getCommand = themeMode => {
16922
17022
  return {
16923
17023
  default: {
16924
- backgroundColor: 'white',
17024
+ backgroundColor: 'color.white',
16925
17025
  borderWidth: '1px',
16926
17026
  borderStyle: 'solid',
16927
17027
  borderColor: 'color.gray.200',
@@ -16935,7 +17035,7 @@ var getCommand = themeMode => {
16935
17035
  boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16936
17036
  },
16937
17037
  outline: {
16938
- backgroundColor: 'white',
17038
+ backgroundColor: 'color.white',
16939
17039
  borderWidth: '2px',
16940
17040
  borderStyle: 'solid',
16941
17041
  borderColor: 'color.gray.300',