@app-studio/web 0.8.78 → 0.8.81

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.
Files changed (38) hide show
  1. package/dist/components/Accordion/Accordion/Accordion.view.d.ts +2 -1
  2. package/dist/components/Alert/Alert/Alert.props.d.ts +7 -1
  3. package/dist/components/Alert/Alert/Alert.style.d.ts +9 -1
  4. package/dist/components/Alert/Alert/Alert.view.d.ts +1 -1
  5. package/dist/components/Alert/Alert.d.ts +1 -1
  6. package/dist/components/Alert/examples/darkMode.d.ts +2 -0
  7. package/dist/components/Badge/Badge/Badge.style.d.ts +5 -1
  8. package/dist/components/Badge/Badge.d.ts +1 -1
  9. package/dist/components/Badge/examples/darkMode.d.ts +2 -0
  10. package/dist/components/Badge/examples/index.d.ts +1 -0
  11. package/dist/components/Button/Button/Button.props.d.ts +1 -2
  12. package/dist/components/Card/Card/Card.style.d.ts +7 -3
  13. package/dist/components/Card/examples/darkModeExample.d.ts +2 -0
  14. package/dist/components/Command/Command/Command.style.d.ts +1 -0
  15. package/dist/components/ContextMenu/ContextMenu/ContextMenu.view.d.ts +2 -1
  16. package/dist/components/DragAndDrop/DragAndDrop/DragAndDrop.props.d.ts +1 -1
  17. package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.view.d.ts +2 -1
  18. package/dist/components/Menubar/Menubar/Menubar.view.d.ts +2 -1
  19. package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.view.d.ts +2 -1
  20. package/dist/components/Resizable/Resizable/Resizable.style.d.ts +1 -0
  21. package/dist/components/Separator/Separator/Separator.style.d.ts +1 -0
  22. package/dist/components/Sidebar/Sidebar/Sidebar.style.d.ts +1 -0
  23. package/dist/components/Slider/Slider/Slider.style.d.ts +1 -0
  24. package/dist/components/Table/Table/Table.props.d.ts +2 -2
  25. package/dist/components/Toast/Toast/Toast.props.d.ts +2 -1
  26. package/dist/components/Tooltip/Tooltip/Tooltip.style.d.ts +1 -0
  27. package/dist/components/Tooltip/Tooltip/Tooltip.view.d.ts +2 -1
  28. package/dist/web.cjs.development.js +662 -631
  29. package/dist/web.cjs.development.js.map +1 -1
  30. package/dist/web.cjs.production.min.js +1 -1
  31. package/dist/web.cjs.production.min.js.map +1 -1
  32. package/dist/web.esm.js +662 -631
  33. package/dist/web.esm.js.map +1 -1
  34. package/dist/web.umd.development.js +662 -631
  35. package/dist/web.umd.development.js.map +1 -1
  36. package/dist/web.umd.production.min.js +1 -1
  37. package/dist/web.umd.production.min.js.map +1 -1
  38. package/package.json +1 -1
@@ -171,7 +171,7 @@ var AccordionVariants = {
171
171
  var _excluded = ["value", "children", "isDisabled", "views"],
172
172
  _excluded2 = ["children", "value", "isExpanded", "isDisabled", "triggerId", "contentId", "views", "asChild"],
173
173
  _excluded3 = ["children", "isExpanded", "isDisabled", "triggerId", "contentId", "views"],
174
- _excluded4 = ["children", "shape", "variant", "views", "baseId", "type", "collapsible"];
174
+ _excluded4 = ["children", "shape", "variant", "views", "baseId", "type", "collapsible", "themeMode"];
175
175
  // Create context for the Accordion
176
176
  var AccordionContext = /*#__PURE__*/React.createContext({
177
177
  expandedItems: [],
@@ -2817,93 +2817,104 @@ var Icon = {
2817
2817
  * - Transitions: Subtle animations
2818
2818
  */
2819
2819
  /**
2820
- * Theme styles for different alert variants
2820
+ * Get theme styles for different alert variants based on theme mode
2821
2821
  */
2822
- var Themes = {
2823
- default: {
2824
- container: {
2825
- backgroundColor: 'color.gray.50',
2826
- borderColor: 'color.gray.200',
2827
- boxShadow: '0 1px 2px rgba(0, 0, 0, 0.05)'
2828
- },
2829
- content: {
2830
- color: 'color.gray.700'
2831
- },
2832
- icon: {
2833
- color: 'color.gray.500'
2834
- }
2835
- },
2836
- info: {
2837
- container: {
2838
- backgroundColor: 'color.blue.50',
2839
- borderColor: 'color.blue.200',
2840
- boxShadow: '0 1px 2px rgba(59, 130, 246, 0.05)'
2841
- },
2842
- content: {
2843
- color: 'color.blue.700'
2844
- },
2845
- icon: {
2846
- color: 'color.blue.500'
2847
- }
2848
- },
2849
- success: {
2850
- container: {
2851
- backgroundColor: 'color.green.50',
2852
- borderColor: 'color.green.200',
2853
- boxShadow: '0 1px 2px rgba(34, 197, 94, 0.05)'
2854
- },
2855
- content: {
2856
- color: 'color.green.700'
2857
- },
2858
- icon: {
2859
- color: 'color.green.500'
2860
- }
2861
- },
2862
- error: {
2863
- container: {
2864
- backgroundColor: 'color.red.50',
2865
- borderColor: 'color.red.200',
2866
- boxShadow: '0 1px 2px rgba(239, 68, 68, 0.05)'
2822
+ var getThemes = themeMode => {
2823
+ var isDarkMode = themeMode === 'dark';
2824
+ return {
2825
+ default: {
2826
+ container: {
2827
+ backgroundColor: isDarkMode ? 'color.gray.800' : 'color.gray.50',
2828
+ borderColor: isDarkMode ? 'color.gray.700' : 'color.gray.200',
2829
+ boxShadow: isDarkMode ? '0 1px 2px rgba(0, 0, 0, 0.2)' : '0 1px 2px rgba(0, 0, 0, 0.05)'
2830
+ },
2831
+ content: {
2832
+ color: isDarkMode ? 'color.gray.300' : 'color.gray.700'
2833
+ },
2834
+ icon: {
2835
+ color: isDarkMode ? 'color.gray.400' : 'color.gray.500'
2836
+ }
2867
2837
  },
2868
- content: {
2869
- color: 'color.red.700'
2838
+ info: {
2839
+ container: {
2840
+ backgroundColor: isDarkMode ? 'color.blue.900' : 'color.blue.50',
2841
+ borderColor: isDarkMode ? 'color.blue.800' : 'color.blue.200',
2842
+ boxShadow: isDarkMode ? '0 1px 2px rgba(59, 130, 246, 0.2)' : '0 1px 2px rgba(59, 130, 246, 0.05)'
2843
+ },
2844
+ content: {
2845
+ color: isDarkMode ? 'color.blue.300' : 'color.blue.700'
2846
+ },
2847
+ icon: {
2848
+ color: isDarkMode ? 'color.blue.400' : 'color.blue.500'
2849
+ }
2870
2850
  },
2871
- icon: {
2872
- color: 'color.red.500'
2873
- }
2874
- },
2875
- warning: {
2876
- container: {
2877
- backgroundColor: 'color.orange.50',
2878
- borderColor: 'color.orange.200',
2879
- boxShadow: '0 1px 2px rgba(249, 115, 22, 0.05)'
2851
+ success: {
2852
+ container: {
2853
+ backgroundColor: isDarkMode ? 'color.green.900' : 'color.green.50',
2854
+ borderColor: isDarkMode ? 'color.green.800' : 'color.green.200',
2855
+ boxShadow: isDarkMode ? '0 1px 2px rgba(34, 197, 94, 0.2)' : '0 1px 2px rgba(34, 197, 94, 0.05)'
2856
+ },
2857
+ content: {
2858
+ color: isDarkMode ? 'color.green.300' : 'color.green.700'
2859
+ },
2860
+ icon: {
2861
+ color: isDarkMode ? 'color.green.400' : 'color.green.500'
2862
+ }
2880
2863
  },
2881
- content: {
2882
- color: 'color.orange.700'
2864
+ error: {
2865
+ container: {
2866
+ backgroundColor: isDarkMode ? 'color.red.900' : 'color.red.50',
2867
+ borderColor: isDarkMode ? 'color.red.800' : 'color.red.200',
2868
+ boxShadow: isDarkMode ? '0 1px 2px rgba(239, 68, 68, 0.2)' : '0 1px 2px rgba(239, 68, 68, 0.05)'
2869
+ },
2870
+ content: {
2871
+ color: isDarkMode ? 'color.red.300' : 'color.red.700'
2872
+ },
2873
+ icon: {
2874
+ color: isDarkMode ? 'color.red.400' : 'color.red.500'
2875
+ }
2883
2876
  },
2884
- icon: {
2885
- color: 'color.orange.500'
2877
+ warning: {
2878
+ container: {
2879
+ backgroundColor: isDarkMode ? 'color.orange.900' : 'color.orange.50',
2880
+ borderColor: isDarkMode ? 'color.orange.800' : 'color.orange.200',
2881
+ boxShadow: isDarkMode ? '0 1px 2px rgba(249, 115, 22, 0.2)' : '0 1px 2px rgba(249, 115, 22, 0.05)'
2882
+ },
2883
+ content: {
2884
+ color: isDarkMode ? 'color.orange.300' : 'color.orange.700'
2885
+ },
2886
+ icon: {
2887
+ color: isDarkMode ? 'color.orange.400' : 'color.orange.500'
2888
+ }
2886
2889
  }
2887
- }
2890
+ };
2888
2891
  };
2889
2892
 
2893
+ var _excluded$4 = ["icon", "title", "views", "description", "variant", "themeMode"];
2890
2894
  /**
2891
2895
  * Alert component that displays important messages to users
2892
2896
  */
2893
2897
  var AlertView = _ref => {
2894
2898
  var {
2895
- icon,
2896
- title,
2897
- views,
2898
- description,
2899
- variant = 'default'
2900
- } = _ref;
2899
+ icon,
2900
+ title,
2901
+ views,
2902
+ description,
2903
+ variant = 'default',
2904
+ themeMode: elementMode
2905
+ } = _ref,
2906
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
2907
+ var {
2908
+ themeMode
2909
+ } = appStudio.useTheme();
2910
+ var currentThemeMode = elementMode || themeMode;
2911
+ var themes = getThemes(currentThemeMode);
2901
2912
  // Select the appropriate icon based on the variant
2902
2913
  var getIcon = () => {
2903
2914
  var _views$icon$color, _views$icon;
2904
2915
  if (icon) return icon;
2905
- // Use the theme color directly from Themes
2906
- var iconColor = (_views$icon$color = views == null || (_views$icon = views.icon) == null ? void 0 : _views$icon.color) != null ? _views$icon$color : Themes[variant].icon.color;
2916
+ // Use the theme color directly from themes
2917
+ var iconColor = (_views$icon$color = views == null || (_views$icon = views.icon) == null ? void 0 : _views$icon.color) != null ? _views$icon$color : themes[variant].icon.color;
2907
2918
  var iconProps = {
2908
2919
  size: 20,
2909
2920
  color: iconColor
@@ -2934,12 +2945,12 @@ var AlertView = _ref => {
2934
2945
  ,
2935
2946
  borderWidth: "1px",
2936
2947
  borderStyle: "solid",
2937
- borderColor: Themes[variant].container.borderColor,
2938
- backgroundColor: Themes[variant].container.backgroundColor,
2939
- boxShadow: Themes[variant].container.containerShadow,
2948
+ borderColor: themes[variant].container.borderColor,
2949
+ backgroundColor: themes[variant].container.backgroundColor,
2950
+ boxShadow: themes[variant].container.boxShadow,
2940
2951
  // Animation
2941
2952
  transition: "all 0.2s ease"
2942
- }, views == null ? void 0 : views.container), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
2953
+ }, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
2943
2954
  alignSelf: "flex-start",
2944
2955
  marginTop: "2px"
2945
2956
  }, views == null ? void 0 : views.icon), getIcon()), /*#__PURE__*/React__default.createElement(appStudio.Vertical, {
@@ -2949,37 +2960,22 @@ var AlertView = _ref => {
2949
2960
  fontWeight: "600" // Semi-bold
2950
2961
  ,
2951
2962
  lineHeight: "24px",
2952
- color: Themes[variant].content.color
2963
+ color: themes[variant].content.color
2953
2964
  }, views == null ? void 0 : views.title), title), /*#__PURE__*/React__default.createElement(Text, Object.assign({
2954
2965
  fontSize: "14px",
2955
2966
  fontWeight: "400" // Regular
2956
2967
  ,
2957
2968
  lineHeight: "20px",
2958
- color: Themes[variant].content.color
2969
+ color: themes[variant].content.color
2959
2970
  }, views == null ? void 0 : views.description), description)));
2960
2971
  };
2961
2972
 
2962
- // Definition of the AlertComponent functional component with destructured props.
2963
- var AlertComponent = _ref => {
2964
- var {
2965
- icon,
2966
- title,
2967
- views,
2968
- description,
2969
- variant
2970
- } = _ref;
2971
- return /*#__PURE__*/React__default.createElement(AlertView, {
2972
- icon: icon,
2973
- title: title,
2974
- views: views,
2975
- description: description,
2976
- variant: variant
2977
- });
2978
- };
2973
+ // Definition of the AlertComponent functional component with props.
2974
+ var AlertComponent = props => /*#__PURE__*/React__default.createElement(AlertView, Object.assign({}, props));
2979
2975
  // Exporting the AlertComponent as 'Alert' for use in other parts of the application.
2980
2976
  var Alert = AlertComponent;
2981
2977
 
2982
- var _excluded$4 = ["ratio", "children", "views"];
2978
+ var _excluded$5 = ["ratio", "children", "views"];
2983
2979
  // Declaration of a functional component named AspectRatioView.
2984
2980
  var AspectRatioView = _ref => {
2985
2981
  var {
@@ -2990,7 +2986,7 @@ var AspectRatioView = _ref => {
2990
2986
  views
2991
2987
  // Spread the rest of the props to inherit additional properties.
2992
2988
  } = _ref,
2993
- props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
2989
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
2994
2990
  return /*#__PURE__*/React__default.createElement(appStudio.Center, Object.assign({
2995
2991
  width: '100%',
2996
2992
  position: "relative",
@@ -3006,14 +3002,14 @@ var AspectRatioView = _ref => {
3006
3002
  }, views == null ? void 0 : views.view), children));
3007
3003
  };
3008
3004
 
3009
- var _excluded$5 = ["ratio", "children"];
3005
+ var _excluded$6 = ["ratio", "children"];
3010
3006
  // Declaration of the AspectRatioComponent functional component with destructured props.
3011
3007
  var AspectRatioComponent = _ref => {
3012
3008
  var {
3013
3009
  ratio,
3014
3010
  children
3015
3011
  } = _ref,
3016
- props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
3012
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
3017
3013
  // Beginning of the return statement in the functional component.
3018
3014
  return /*#__PURE__*/React__default.createElement(AspectRatioView, Object.assign({
3019
3015
  ratio: ratio
@@ -3063,17 +3059,11 @@ var DefaultAvatarStyles = {
3063
3059
  borderColor: 'transparent',
3064
3060
  backgroundColor: 'color.gray.100',
3065
3061
  boxShadow: '0px 2px 4px rgba(0, 0, 0, 0.1)',
3066
- transition: 'all 0.2s ease',
3067
- '@media (prefers-color-scheme: dark)': {
3068
- backgroundColor: 'color.gray.700'
3069
- }
3062
+ transition: 'all 0.2s ease'
3070
3063
  },
3071
3064
  fallback: {
3072
3065
  fontWeight: '500',
3073
- color: 'color.gray.600',
3074
- '@media (prefers-color-scheme: dark)': {
3075
- color: 'color.gray.300'
3076
- }
3066
+ color: 'color.gray.600'
3077
3067
  },
3078
3068
  image: {
3079
3069
  objectFit: 'cover',
@@ -3244,58 +3234,69 @@ var PositionStyles = {
3244
3234
  }
3245
3235
  };
3246
3236
  /**
3247
- * Badge variants with consistent styling
3237
+ * Get badge variants with consistent styling based on theme mode
3248
3238
  */
3249
- var BadgeVariants = {
3250
- filled: {
3251
- backgroundColor: 'theme.primary',
3252
- color: 'color.white',
3253
- borderWidth: '1px',
3254
- borderStyle: 'solid',
3255
- borderColor: 'transparent',
3256
- transition: 'all 0.2s ease'
3257
- },
3258
- outline: {
3259
- backgroundColor: 'transparent',
3260
- borderWidth: '1px',
3261
- borderStyle: 'solid',
3262
- borderColor: 'theme.primary',
3263
- color: 'theme.primary',
3264
- transition: 'all 0.2s ease'
3265
- },
3266
- link: {
3267
- backgroundColor: 'transparent',
3268
- borderWidth: '1px',
3269
- borderStyle: 'solid',
3270
- borderColor: 'transparent',
3271
- color: 'theme.primary',
3272
- textDecoration: 'underline',
3273
- textUnderlineOffset: '2px',
3274
- transition: 'all 0.2s ease'
3275
- },
3276
- ghost: {
3277
- backgroundColor: 'transparent',
3278
- color: 'color.gray.500',
3279
- borderWidth: '1px',
3280
- borderStyle: 'solid',
3281
- borderColor: 'transparent',
3282
- transition: 'all 0.2s ease'
3283
- }
3239
+ var getBadgeVariants = themeMode => {
3240
+ var isDarkMode = themeMode === 'dark';
3241
+ return {
3242
+ filled: {
3243
+ backgroundColor: 'theme.primary',
3244
+ color: isDarkMode ? 'color.gray.900' : 'color.white',
3245
+ borderWidth: '1px',
3246
+ borderStyle: 'solid',
3247
+ borderColor: 'transparent',
3248
+ transition: 'all 0.2s ease'
3249
+ },
3250
+ outline: {
3251
+ backgroundColor: 'transparent',
3252
+ borderWidth: '1px',
3253
+ borderStyle: 'solid',
3254
+ borderColor: 'theme.primary',
3255
+ color: 'theme.primary',
3256
+ transition: 'all 0.2s ease'
3257
+ },
3258
+ link: {
3259
+ backgroundColor: 'transparent',
3260
+ borderWidth: '1px',
3261
+ borderStyle: 'solid',
3262
+ borderColor: 'transparent',
3263
+ color: 'theme.primary',
3264
+ textDecoration: 'underline',
3265
+ textUnderlineOffset: '2px',
3266
+ transition: 'all 0.2s ease'
3267
+ },
3268
+ ghost: {
3269
+ backgroundColor: 'transparent',
3270
+ color: isDarkMode ? 'color.gray.400' : 'color.gray.500',
3271
+ borderWidth: '1px',
3272
+ borderStyle: 'solid',
3273
+ borderColor: 'transparent',
3274
+ transition: 'all 0.2s ease'
3275
+ }
3276
+ };
3284
3277
  };
3285
3278
 
3279
+ var _excluded$7 = ["content", "position", "shape", "variant", "size", "views", "themeMode"];
3286
3280
  // No need to import ViewProps as it's not used directly
3287
3281
  /**
3288
3282
  * Badge View Component
3289
3283
  */
3290
3284
  var BadgeView = _ref => {
3291
3285
  var {
3292
- content,
3293
- position,
3294
- shape = 'pillShaped',
3295
- variant = 'filled',
3296
- size = 'md',
3297
- views
3298
- } = _ref;
3286
+ content,
3287
+ position,
3288
+ shape = 'pillShaped',
3289
+ variant = 'filled',
3290
+ size = 'md',
3291
+ views,
3292
+ themeMode: elementMode
3293
+ } = _ref,
3294
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
3295
+ var {
3296
+ themeMode
3297
+ } = appStudio.useTheme();
3298
+ var currentThemeMode = elementMode || themeMode;
3299
+ var variantStyles = getBadgeVariants(currentThemeMode)[variant];
3299
3300
  // Combine styles for the badge
3300
3301
  var combinedStyles = Object.assign({
3301
3302
  // Base styles
@@ -3303,13 +3304,13 @@ var BadgeView = _ref => {
3303
3304
  display: 'flex',
3304
3305
  alignItems: 'center',
3305
3306
  justifyContent: 'center',
3306
- backgrounColor: 'color.black',
3307
+ backgroundColor: 'color.black',
3307
3308
  // Apply shape, size, and variant styles
3308
3309
  borderRadius: BadgeShapes[shape]
3309
- }, BadgeSizes[size], BadgeVariants[variant], position ? PositionStyles[position] : {}, views == null ? void 0 : views.container);
3310
+ }, BadgeSizes[size], variantStyles, position ? PositionStyles[position] : {}, views == null ? void 0 : views.container);
3310
3311
  return /*#__PURE__*/React__default.createElement(appStudio.Center, Object.assign({
3311
3312
  role: "badge"
3312
- }, combinedStyles), /*#__PURE__*/React__default.createElement(Text, Object.assign({
3313
+ }, combinedStyles, props), /*#__PURE__*/React__default.createElement(Text, Object.assign({
3313
3314
  role: "badgeText",
3314
3315
  fontWeight: "500" // Medium weight for better readability
3315
3316
  ,
@@ -3319,29 +3320,8 @@ var BadgeView = _ref => {
3319
3320
  }), content || ''));
3320
3321
  };
3321
3322
 
3322
- // Importing type definitions for BadgeProps that will be used to type-check the Badge component's props.
3323
- var Badge = _ref => {
3324
- var {
3325
- // Importing the BadgeView component which is the presentation component for Badge.
3326
- content,
3327
- // Exporting the Badge as a functional component from this module.
3328
- shape,
3329
- // Destructuring the props in the component function parameter list, to directly access individual properties.
3330
- position,
3331
- // Passing all the destructured props to the BadgeView component to maintain the same API surface.
3332
- variant,
3333
- size,
3334
- views
3335
- } = _ref;
3336
- return /*#__PURE__*/React__default.createElement(BadgeView, {
3337
- content: content,
3338
- shape: shape,
3339
- position: position,
3340
- variant: variant,
3341
- size: size,
3342
- views: views
3343
- });
3344
- };
3323
+ // Badge component that displays a small indicator, typically used for counts or status
3324
+ var Badge = props => /*#__PURE__*/React__default.createElement(BadgeView, Object.assign({}, props));
3345
3325
 
3346
3326
  var useButtonState = () => {
3347
3327
  var [isHovered, setIsHovered] = React__default.useState(false);
@@ -3373,7 +3353,7 @@ var IconSizes = {
3373
3353
  xl: 20
3374
3354
  };
3375
3355
 
3376
- var _excluded$6 = ["children", "to", "iconSize", "underline", "isHovered", "isExternal", "views", "setIsHovered"];
3356
+ var _excluded$8 = ["children", "to", "iconSize", "underline", "isHovered", "isExternal", "views", "setIsHovered"];
3377
3357
  // Component definition for 'LinkView', a functional component with props defined by 'LinkViewProps'.
3378
3358
  var LinkView = _ref => {
3379
3359
  var {
@@ -3396,7 +3376,7 @@ var LinkView = _ref => {
3396
3376
  // Setter function for the hover state, noop function provided by default.
3397
3377
  setIsHovered = () => {}
3398
3378
  } = _ref,
3399
- props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
3379
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
3400
3380
  // Function to handle mouse enter/leave events to toggle hover state.
3401
3381
  var handleHover = () => {
3402
3382
  if (underline === 'hover') setIsHovered(true);
@@ -3545,75 +3525,6 @@ var IconSizes$1 = {
3545
3525
  padding: 14
3546
3526
  }
3547
3527
  };
3548
- /**
3549
- * Button variants with consistent styling
3550
- */
3551
- var getButtonVariants = (color, isLight) => ({
3552
- filled: {
3553
- backgroundColor: color,
3554
- color: isLight ? 'color.gray.900' : 'color.white',
3555
- borderWidth: 1,
3556
- borderStyle: 'solid',
3557
- borderColor: 'transparent',
3558
- on: {
3559
- hover: {
3560
- filter: 'brightness(0.9)',
3561
- transform: 'translateY(-1px)'
3562
- },
3563
- active: {
3564
- filter: 'brightness(0.85)',
3565
- transform: 'translateY(0)'
3566
- }
3567
- },
3568
- transition: 'all 0.2s ease'
3569
- },
3570
- outline: {
3571
- backgroundColor: 'transparent',
3572
- borderWidth: 1,
3573
- borderStyle: 'solid',
3574
- borderColor: color,
3575
- color: color,
3576
- on: {
3577
- hover: {
3578
- backgroundColor: color + "10",
3579
- transform: 'translateY(-1px)'
3580
- },
3581
- active: {
3582
- backgroundColor: color + "20",
3583
- transform: 'translateY(0)'
3584
- }
3585
- },
3586
- transition: 'all 0.2s ease'
3587
- },
3588
- ghost: {
3589
- backgroundColor: 'transparent',
3590
- color: color,
3591
- on: {
3592
- hover: {
3593
- backgroundColor: color + "10",
3594
- transform: 'translateY(-1px)'
3595
- },
3596
- active: {
3597
- backgroundColor: color + "20",
3598
- transform: 'translateY(0)'
3599
- }
3600
- },
3601
- transition: 'all 0.2s ease'
3602
- },
3603
- link: {
3604
- backgroundColor: 'transparent',
3605
- color: color,
3606
- textDecoration: 'underline',
3607
- textUnderlineOffset: 2,
3608
- on: {
3609
- hover: {
3610
- textDecoration: 'underline',
3611
- textDecorationThickness: 2
3612
- }
3613
- },
3614
- transition: 'all 0.2s ease'
3615
- }
3616
- });
3617
3528
 
3618
3529
  // Defines a mapping of spinning speed labels to their respective duration in seconds for the Loader component animations.
3619
3530
  // Sets up a scale of sizes, mapping size labels to numerical values to be used for Loader component dimensions.
@@ -3631,7 +3542,7 @@ var DefaultSpeeds = {
3631
3542
  slow: 300
3632
3543
  };
3633
3544
 
3634
- var _excluded$7 = ["size", "speed", "color", "themeMode"],
3545
+ var _excluded$9 = ["size", "speed", "color", "themeMode"],
3635
3546
  _excluded2$2 = ["size", "speed", "color", "themeMode"],
3636
3547
  _excluded3$2 = ["size", "speed", "color", "themeMode"],
3637
3548
  _excluded4$2 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition", "views"];
@@ -3642,7 +3553,7 @@ var DefaultSpinner = _ref => {
3642
3553
  color = 'theme.loading',
3643
3554
  themeMode: elementMode
3644
3555
  } = _ref,
3645
- props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
3556
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
3646
3557
  var {
3647
3558
  getColor,
3648
3559
  themeMode
@@ -3807,7 +3718,9 @@ React__default.createElement(LoaderView, Object.assign({}, props)));
3807
3718
  // Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
3808
3719
  var Loader = LoaderComponent;
3809
3720
 
3810
- var _excluded$8 = ["icon", "shadow", "children", "ariaLabel", "to", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered", "setIsHovered", "isExternal", "themeMode", "containerProps", "linkProps", "views"];
3721
+ 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"],
3722
+ _excluded2$3 = ["_hover", "_active"],
3723
+ _excluded3$3 = ["height"];
3811
3724
  var contrast = /*#__PURE__*/require('contrast');
3812
3725
  var ButtonView = _ref => {
3813
3726
  var _props$onClick;
@@ -3830,13 +3743,14 @@ var ButtonView = _ref => {
3830
3743
  loaderProps = {},
3831
3744
  loaderPosition = 'left',
3832
3745
  effect = 'default',
3746
+ isHovered,
3833
3747
  setIsHovered = () => {},
3834
3748
  isExternal = false,
3835
3749
  themeMode: elementMode,
3836
- linkProps,
3837
- views
3750
+ views,
3751
+ colorScheme = 'theme.primary'
3838
3752
  } = _ref,
3839
- props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
3753
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
3840
3754
  var {
3841
3755
  getColor,
3842
3756
  themeMode
@@ -3846,13 +3760,79 @@ var ButtonView = _ref => {
3846
3760
  var defaultNativeProps = {
3847
3761
  disabled: !isActive
3848
3762
  };
3849
- var buttonColor = isActive ? 'theme.primary' : 'theme.disabled';
3850
- // We'll handle hover effects through CSS transitions in the style
3763
+ var buttonColor = isActive ? colorScheme : 'theme.disabled';
3764
+ var hovering = isHovered && effect === 'hover';
3765
+ var reverse = isHovered && effect === 'reverse';
3851
3766
  // Determine if the button color is light or dark for proper contrast
3852
3767
  var isLight = contrast(getColor(buttonColor, elementMode ? elementMode : themeMode)) == 'light';
3853
- // Get button variants based on color and light/dark status
3854
- var ButtonVariants = getButtonVariants(buttonColor, isLight);
3855
- // Note: Effects are now handled through CSS transitions in the style definitions
3768
+ // Define button variants with effect support
3769
+ var ButtonVariants = {
3770
+ filled: {
3771
+ backgroundColor: reverse ? 'transparent' : buttonColor,
3772
+ color: reverse ? isLight ? 'white' : buttonColor : isLight ? buttonColor : 'white',
3773
+ borderWidth: 1,
3774
+ borderStyle: 'solid',
3775
+ borderColor: reverse ? buttonColor : 'transparent',
3776
+ _hover: {
3777
+ backgroundColor: reverse ? buttonColor + "10" : "" + buttonColor,
3778
+ transform: 'translateY(-2px)',
3779
+ boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1)'
3780
+ },
3781
+ _active: {
3782
+ backgroundColor: reverse ? buttonColor + "20" : "" + buttonColor,
3783
+ transform: 'translateY(0)',
3784
+ boxShadow: '0 2px 4px rgba(0, 0, 0, 0.1)'
3785
+ }
3786
+ },
3787
+ outline: {
3788
+ backgroundColor: reverse ? buttonColor : 'transparent',
3789
+ borderWidth: 1,
3790
+ borderStyle: 'solid',
3791
+ borderColor: reverse ? buttonColor : colorScheme,
3792
+ color: reverse ? 'white' : buttonColor,
3793
+ _hover: {
3794
+ backgroundColor: reverse ? "" + buttonColor : buttonColor + "10",
3795
+ transform: 'translateY(-2px)',
3796
+ boxShadow: '0 4px 8px rgba(0, 0, 0, 0.05)'
3797
+ },
3798
+ _active: {
3799
+ backgroundColor: reverse ? buttonColor + "b0" : buttonColor + "20",
3800
+ transform: 'translateY(0)',
3801
+ boxShadow: '0 2px 4px rgba(0, 0, 0, 0.05)'
3802
+ }
3803
+ },
3804
+ link: {
3805
+ backgroundColor: 'transparent',
3806
+ borderWidth: 0,
3807
+ borderStyle: 'none',
3808
+ borderColor: 'transparent',
3809
+ color: buttonColor,
3810
+ textDecoration: reverse ? 'none' : 'underline',
3811
+ _hover: {
3812
+ opacity: 0.8,
3813
+ textDecorationThickness: '2px'
3814
+ },
3815
+ _active: {
3816
+ opacity: 0.8,
3817
+ textDecorationThickness: '2px'
3818
+ }
3819
+ },
3820
+ ghost: {
3821
+ backgroundColor: reverse ? buttonColor : 'transparent',
3822
+ color: reverse ? 'white' : buttonColor,
3823
+ borderWidth: 0,
3824
+ borderStyle: 'none',
3825
+ borderColor: 'transparent',
3826
+ _hover: {
3827
+ backgroundColor: reverse ? "" + buttonColor : buttonColor + "10",
3828
+ transform: 'translateY(-2px)'
3829
+ },
3830
+ _active: {
3831
+ backgroundColor: reverse ? buttonColor + "b0" : buttonColor + "20",
3832
+ transform: 'translateY(0)'
3833
+ }
3834
+ }
3835
+ };
3856
3836
  var buttonSizeStyles = ButtonSizes[size];
3857
3837
  var buttonVariant = ButtonVariants[variant];
3858
3838
  var scaleWidth = {
@@ -3879,6 +3859,13 @@ var ButtonView = _ref => {
3879
3859
  }, views == null ? void 0 : views.icon), icon)), isLoading && loaderPosition === 'right' && (/*#__PURE__*/React__default.createElement(Loader, Object.assign({
3880
3860
  size: size === 'xs' || size === 'sm' ? 'sm' : 'md'
3881
3861
  }, loaderProps))));
3862
+ // Extract hover and active styles from buttonVariant
3863
+ var _ref2 = buttonVariant || {},
3864
+ {
3865
+ _hover,
3866
+ _active
3867
+ } = _ref2,
3868
+ baseButtonVariant = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
3882
3869
  return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
3883
3870
  gap: 8,
3884
3871
  as: "button",
@@ -3887,17 +3874,28 @@ var ButtonView = _ref => {
3887
3874
  alignItems: "center",
3888
3875
  justifyContent: "center",
3889
3876
  "aria-label": ariaLabel,
3877
+ backgroundColor: "transparent",
3890
3878
  borderRadius: ButtonShapes[shape],
3891
3879
  onClick: (_props$onClick = props.onClick) != null ? _props$onClick : onClick,
3892
3880
  onMouseEnter: () => handleHover(true),
3893
3881
  onMouseLeave: () => handleHover(false),
3894
3882
  cursor: isActive ? 'pointer' : 'default',
3883
+ filter: hovering && effect === 'hover' ? 'brightness(0.85)' : 'brightness(1)',
3884
+ transition: "all 0.2s ease",
3885
+ transform: hovering && effect === 'hover' && !isDisabled ? 'translateY(-5px)' : '',
3895
3886
  // Apply consistent styling according to design guidelines
3896
3887
  // Apply shadow if provided
3897
3888
  boxShadow: shadow ? shadow : undefined
3898
- }, defaultNativeProps, buttonSizeStyles, buttonVariant, scaleWidth, props.padding || props.paddingHorizontal || props.paddingVertical || props.paddingLeft || props.paddingRight || props.paddingTop || props.paddingBottom ? {} : changePadding, props, views == null ? void 0 : views.container), variant === 'link' && to ? (/*#__PURE__*/React__default.createElement(Link, Object.assign({
3889
+ }, defaultNativeProps, (_ref3 => {
3890
+ var rest = _objectWithoutPropertiesLoose(_ref3, _excluded3$3);
3891
+ return rest;
3892
+ })(props), buttonSizeStyles, baseButtonVariant, scaleWidth, props.padding || props.paddingHorizontal || props.paddingVertical || props.paddingLeft || props.paddingRight || props.paddingTop || props.paddingBottom ? {} : changePadding, {
3893
+ // Apply hover and active styles
3894
+ _hover: _hover,
3895
+ _active: _active
3896
+ }, views == null ? void 0 : views.container), variant === 'link' && to ? (/*#__PURE__*/React__default.createElement(Link, Object.assign({
3899
3897
  to: to,
3900
- textDecorationColor: 'theme.primary',
3898
+ textDecorationColor: colorScheme,
3901
3899
  textDecorationThickness: "1px",
3902
3900
  textUnderlineOffset: "2px",
3903
3901
  transition: "all 0.2s ease",
@@ -3905,7 +3903,7 @@ var ButtonView = _ref => {
3905
3903
  _hover: {
3906
3904
  textDecorationThickness: '2px'
3907
3905
  }
3908
- }, linkProps, views == null ? void 0 : views.link), content)) : content);
3906
+ }, views == null ? void 0 : views.link), content)) : content);
3909
3907
  };
3910
3908
 
3911
3909
  // Importing a custom hook to manage the state specific to the button component.
@@ -3954,97 +3952,95 @@ var CardShapes = {
3954
3952
  pillShaped: '16px'
3955
3953
  };
3956
3954
  /**
3957
- * Card variants with consistent styling
3955
+ * Get card variants with consistent styling based on theme mode
3958
3956
  */
3959
- var CardVariants = {
3960
- default: {
3961
- backgroundColor: 'white',
3962
- border: 'none',
3963
- transition: 'all 0.2s ease'
3964
- },
3965
- outlined: {
3966
- backgroundColor: 'white',
3967
- borderWidth: '1px',
3968
- borderStyle: 'solid',
3969
- borderColor: 'color.gray.200',
3970
- transition: 'all 0.2s ease',
3971
- _hover: {
3972
- borderColor: 'color.gray.300'
3973
- }
3974
- },
3975
- elevated: {
3976
- backgroundColor: 'white',
3977
- boxShadow: '0px 2px 8px rgba(0, 0, 0, 0.08)',
3978
- border: 'none',
3979
- transition: 'all 0.2s ease',
3980
- _hover: {
3981
- boxShadow: '0px 4px 12px rgba(0, 0, 0, 0.12)',
3982
- transform: 'translateY(-2px)'
3957
+ var getCardVariants = themeMode => {
3958
+ var isDarkMode = themeMode === 'dark';
3959
+ return {
3960
+ default: {
3961
+ backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
3962
+ border: 'none',
3963
+ transition: 'all 0.2s ease'
3964
+ },
3965
+ outlined: {
3966
+ backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
3967
+ borderWidth: '1px',
3968
+ borderStyle: 'solid',
3969
+ borderColor: isDarkMode ? 'color.gray.700' : 'color.gray.200',
3970
+ transition: 'all 0.2s ease',
3971
+ _hover: {
3972
+ borderColor: isDarkMode ? 'color.gray.600' : 'color.gray.300'
3973
+ }
3974
+ },
3975
+ elevated: {
3976
+ backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
3977
+ boxShadow: isDarkMode ? '0px 2px 8px rgba(0, 0, 0, 0.2)' : '0px 2px 8px rgba(0, 0, 0, 0.08)',
3978
+ border: 'none',
3979
+ transition: 'all 0.2s ease',
3980
+ _hover: {
3981
+ boxShadow: isDarkMode ? '0px 4px 12px rgba(0, 0, 0, 0.25)' : '0px 4px 12px rgba(0, 0, 0, 0.12)',
3982
+ transform: 'translateY(-2px)'
3983
+ }
3983
3984
  }
3984
- }
3985
+ };
3985
3986
  };
3986
3987
  /**
3987
3988
  * Function to get default styles for Card components
3988
- * @param theme - Theme object (not used directly but kept for compatibility)
3989
+ * @param theme - Theme object from useTheme hook
3989
3990
  */
3990
- var getDefaultCardStyles = _theme => ({
3991
- container: {
3992
- backgroundColor: 'white',
3993
- borderRadius: '8px',
3994
- overflow: 'hidden',
3995
- transition: 'all 0.2s ease',
3996
- '@media (prefers-color-scheme: dark)': {
3997
- backgroundColor: 'color.gray.800',
3998
- color: 'color.gray.100'
3999
- }
4000
- },
4001
- header: {
4002
- padding: '16px',
4003
- borderBottomWidth: '1px',
4004
- borderBottomStyle: 'solid',
4005
- borderBottomColor: 'color.gray.200',
4006
- '@media (prefers-color-scheme: dark)': {
4007
- borderBottomColor: 'color.gray.700'
4008
- }
4009
- },
4010
- content: {
4011
- padding: '16px',
4012
- '@media (prefers-color-scheme: dark)': {
4013
- color: 'color.gray.100'
4014
- }
4015
- },
4016
- footer: {
4017
- padding: '16px',
4018
- borderTopWidth: '1px',
4019
- borderTopStyle: 'solid',
4020
- borderTopColor: 'color.gray.200',
4021
- '@media (prefers-color-scheme: dark)': {
4022
- borderTopColor: 'color.gray.700'
3991
+ var getDefaultCardStyles = theme => {
3992
+ var {
3993
+ themeMode
3994
+ } = theme;
3995
+ var isDarkMode = themeMode === 'dark';
3996
+ return {
3997
+ container: {
3998
+ backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
3999
+ color: isDarkMode ? 'color.gray.100' : 'color.gray.900',
4000
+ borderRadius: '8px',
4001
+ overflow: 'hidden',
4002
+ transition: 'all 0.2s ease'
4003
+ },
4004
+ header: {
4005
+ padding: '16px',
4006
+ borderBottomWidth: '1px',
4007
+ borderBottomStyle: 'solid',
4008
+ borderBottomColor: isDarkMode ? 'color.gray.700' : 'color.gray.200'
4009
+ },
4010
+ content: {
4011
+ padding: '16px',
4012
+ color: isDarkMode ? 'color.gray.100' : 'color.gray.900'
4013
+ },
4014
+ footer: {
4015
+ padding: '16px',
4016
+ borderTopWidth: '1px',
4017
+ borderTopStyle: 'solid',
4018
+ borderTopColor: isDarkMode ? 'color.gray.700' : 'color.gray.200'
4023
4019
  }
4024
- }
4025
- });
4020
+ };
4021
+ };
4026
4022
 
4027
4023
  var CardContext = /*#__PURE__*/React.createContext({});
4028
4024
  var useCardContext = () => {
4029
4025
  return React.useContext(CardContext);
4030
4026
  };
4031
4027
 
4032
- var _excluded$9 = ["children", "views", "style"],
4033
- _excluded2$3 = ["children", "views", "style"],
4034
- _excluded3$3 = ["children", "views", "style"],
4035
- _excluded4$3 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style"];
4028
+ var _excluded$b = ["children", "views", "style", "themeMode"],
4029
+ _excluded2$4 = ["children", "views", "style", "themeMode"],
4030
+ _excluded3$4 = ["children", "views", "style", "themeMode"],
4031
+ _excluded4$3 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style", "themeMode"];
4036
4032
  var CardHeader = _ref => {
4037
4033
  var _contextStyles$header;
4038
4034
  var {
4039
4035
  children,
4040
4036
  style
4041
4037
  } = _ref,
4042
- props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
4038
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
4043
4039
  var theme = appStudio.useTheme();
4044
4040
  var {
4045
4041
  styles: contextStyles
4046
4042
  } = useCardContext();
4047
- var defaultStyles = getDefaultCardStyles().header;
4043
+ var defaultStyles = getDefaultCardStyles(theme).header;
4048
4044
  // Merge styles: Default < Context Override < Direct Props/Style
4049
4045
  var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.header, props, {
4050
4046
  style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$header = contextStyles.header) == null ? void 0 : _contextStyles$header.style, style)
@@ -4057,12 +4053,12 @@ var CardContent = _ref2 => {
4057
4053
  children,
4058
4054
  style
4059
4055
  } = _ref2,
4060
- props = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
4056
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
4061
4057
  var theme = appStudio.useTheme();
4062
4058
  var {
4063
4059
  styles: contextStyles
4064
4060
  } = useCardContext();
4065
- var defaultStyles = getDefaultCardStyles().content;
4061
+ var defaultStyles = getDefaultCardStyles(theme).content;
4066
4062
  // Merge styles: Default < Context Override < Direct Props/Style
4067
4063
  var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.content, props, {
4068
4064
  style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$conten = contextStyles.content) == null ? void 0 : _contextStyles$conten.style, style)
@@ -4075,12 +4071,12 @@ var CardFooter = _ref3 => {
4075
4071
  children,
4076
4072
  style
4077
4073
  } = _ref3,
4078
- props = _objectWithoutPropertiesLoose(_ref3, _excluded3$3);
4074
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
4079
4075
  var theme = appStudio.useTheme();
4080
4076
  var {
4081
4077
  styles: contextStyles
4082
4078
  } = useCardContext();
4083
- var defaultStyles = getDefaultCardStyles().footer;
4079
+ var defaultStyles = getDefaultCardStyles(theme).footer;
4084
4080
  // Merge styles: Default < Context Override < Direct Props/Style
4085
4081
  var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.footer, props, {
4086
4082
  style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$footer = contextStyles.footer) == null ? void 0 : _contextStyles$footer.style, style)
@@ -4098,11 +4094,12 @@ var CardView = _ref4 => {
4098
4094
  footer,
4099
4095
  isFullWidth = false,
4100
4096
  views,
4101
- style
4097
+ style,
4098
+ themeMode: elementMode
4102
4099
  } = _ref4,
4103
4100
  props = _objectWithoutPropertiesLoose(_ref4, _excluded4$3);
4104
4101
  var theme = appStudio.useTheme();
4105
- var defaultStyles = getDefaultCardStyles();
4102
+ var defaultStyles = getDefaultCardStyles(theme);
4106
4103
  // Prepare context value, merging default styles with user's `views` overrides
4107
4104
  var contextValue = React.useMemo(() => ({
4108
4105
  styles: {
@@ -4115,12 +4112,18 @@ var CardView = _ref4 => {
4115
4112
  // Determine if we have explicit Card.Header, Card.Content, Card.Footer components
4116
4113
  // or if we need to wrap children in a default layout
4117
4114
  var hasExplicitStructure = React__default.Children.toArray(children).some(child => /*#__PURE__*/React__default.isValidElement(child) && (child.type === CardHeader || child.type === CardContent || child.type === CardFooter));
4115
+ // Get the appropriate variant styles based on theme mode
4116
+ var {
4117
+ themeMode
4118
+ } = theme;
4119
+ var currentThemeMode = elementMode || themeMode;
4120
+ var variantStyles = getCardVariants(currentThemeMode)[variant];
4118
4121
  // Merge styles for the root element
4119
4122
  var mergedRootProps = Object.assign({
4120
4123
  width: isFullWidth ? '100%' : 'auto',
4121
4124
  borderRadius: CardShapes[shape],
4122
4125
  overflow: 'hidden'
4123
- }, CardVariants[variant], contextValue.styles.container, props, {
4126
+ }, variantStyles, contextValue.styles.container, props, {
4124
4127
  style: Object.assign({}, (_contextValue$styles$ = contextValue.styles.container) == null ? void 0 : _contextValue$styles$.style, style)
4125
4128
  });
4126
4129
  return /*#__PURE__*/React__default.createElement(CardContext.Provider, {
@@ -4431,19 +4434,19 @@ var useCarouselContext = () => {
4431
4434
  return context;
4432
4435
  };
4433
4436
 
4434
- var _excluded$a = ["children", "isActive", "views"],
4435
- _excluded2$4 = ["views", "children"],
4436
- _excluded3$4 = ["views", "children"],
4437
+ var _excluded$c = ["children", "isActive", "views"],
4438
+ _excluded2$5 = ["views", "children"],
4439
+ _excluded3$5 = ["views", "children"],
4437
4440
  _excluded4$4 = ["children", "views"],
4438
4441
  _excluded5$1 = ["children", "views", "style"],
4439
- _excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views"];
4442
+ _excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views", "themeMode"];
4440
4443
  var CarouselSlide = _ref => {
4441
4444
  var {
4442
4445
  children,
4443
4446
  isActive,
4444
4447
  views
4445
4448
  } = _ref,
4446
- props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
4449
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
4447
4450
  return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
4448
4451
  flexShrink: 0,
4449
4452
  width: "100%",
@@ -4459,7 +4462,7 @@ var CarouselPreviousComponent = _ref2 => {
4459
4462
  children // Allow custom content/icon
4460
4463
  // Spread remaining ButtonProps
4461
4464
  } = _ref2,
4462
- props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
4465
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2$5);
4463
4466
  var {
4464
4467
  goToPrevious,
4465
4468
  canGoPrevious,
@@ -4482,7 +4485,7 @@ var CarouselNextComponent = _ref3 => {
4482
4485
  views,
4483
4486
  children
4484
4487
  } = _ref3,
4485
- props = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
4488
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded3$5);
4486
4489
  var {
4487
4490
  goToNext,
4488
4491
  canGoNext,
@@ -5367,7 +5370,7 @@ var PieChart = _ref => {
5367
5370
  })));
5368
5371
  };
5369
5372
 
5370
- var _excluded$b = ["type", "data", "dataPoints", "title", "showLegend", "legendPosition", "showGrid", "showTooltips", "animated", "animationDuration", "responsive", "aspectRatio", "width", "height", "views", "onDataPointClick", "onSeriesClick", "isLoading", "error", "noData", "loadingIndicator", "errorIndicator", "noDataIndicator", "aria-label"];
5373
+ var _excluded$d = ["type", "data", "dataPoints", "title", "showLegend", "legendPosition", "showGrid", "showTooltips", "animated", "animationDuration", "responsive", "aspectRatio", "width", "height", "views", "onDataPointClick", "onSeriesClick", "isLoading", "error", "noData", "loadingIndicator", "errorIndicator", "noDataIndicator", "aria-label", "themeMode"];
5371
5374
  var ChartView = _ref => {
5372
5375
  var {
5373
5376
  type,
@@ -5395,7 +5398,7 @@ var ChartView = _ref => {
5395
5398
  noDataIndicator,
5396
5399
  'aria-label': ariaLabel
5397
5400
  } = _ref,
5398
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
5401
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
5399
5402
  // Use chart state hook
5400
5403
  var {
5401
5404
  animationProgress,
@@ -5725,12 +5728,12 @@ var calculateMenuPosition = function calculateMenuPosition(x, y, menuWidth, menu
5725
5728
  };
5726
5729
  };
5727
5730
 
5728
- var _excluded$c = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
5729
- _excluded2$5 = ["items", "children", "position", "side", "align", "views", "style"],
5730
- _excluded3$5 = ["item", "children", "onSelect", "isDisabled", "views"],
5731
+ var _excluded$e = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
5732
+ _excluded2$6 = ["items", "children", "position", "side", "align", "views", "style"],
5733
+ _excluded3$6 = ["item", "children", "onSelect", "isDisabled", "views"],
5731
5734
  _excluded4$5 = ["views"],
5732
5735
  _excluded5$2 = ["views"],
5733
- _excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views"];
5736
+ _excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views", "themeMode"];
5734
5737
  // Create context for the ContextMenu
5735
5738
  var ContextMenuContext = /*#__PURE__*/React.createContext({
5736
5739
  isOpen: false,
@@ -5781,7 +5784,7 @@ var ContextMenuTrigger = _ref2 => {
5781
5784
  isDisabled = false,
5782
5785
  views
5783
5786
  } = _ref2,
5784
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$c);
5787
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$e);
5785
5788
  var {
5786
5789
  triggerRef,
5787
5790
  contentId,
@@ -5835,7 +5838,7 @@ var ContextMenuContent = _ref3 => {
5835
5838
  views,
5836
5839
  style // Capture user-provided style
5837
5840
  } = _ref3,
5838
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$5);
5841
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$6);
5839
5842
  var {
5840
5843
  isOpen,
5841
5844
  position: contextPosition,
@@ -5906,7 +5909,7 @@ var ContextMenuItem = _ref4 => {
5906
5909
  isDisabled = false,
5907
5910
  views
5908
5911
  } = _ref4,
5909
- props = _objectWithoutPropertiesLoose(_ref4, _excluded3$5);
5912
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$6);
5910
5913
  var {
5911
5914
  activeSubmenuId,
5912
5915
  setActiveSubmenuId,
@@ -6064,7 +6067,7 @@ var ContextMenuView = _ref7 => {
6064
6067
  }));
6065
6068
  };
6066
6069
 
6067
- var _excluded$d = ["children", "items", "size", "variant", "disableNativeContextMenu", "onOpenChange", "views"];
6070
+ var _excluded$f = ["children", "items", "size", "variant", "disableNativeContextMenu", "onOpenChange", "views"];
6068
6071
  /**
6069
6072
  * ContextMenu component for displaying a custom context menu on right-click.
6070
6073
  * Supports both data-driven approach (with items prop) and compound component pattern.
@@ -6079,7 +6082,7 @@ var ContextMenuComponent = _ref => {
6079
6082
  onOpenChange,
6080
6083
  views
6081
6084
  } = _ref,
6082
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
6085
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
6083
6086
  var state = useContextMenuState({
6084
6087
  size,
6085
6088
  variant,
@@ -6131,15 +6134,15 @@ ContextMenu.Item = ContextMenuItem;
6131
6134
  ContextMenu.Divider = ContextMenuDivider;
6132
6135
  ContextMenu.Separator = ContextMenuSeparator; // Add the Separator component
6133
6136
 
6134
- var _excluded$e = ["src", "color", "views", "themeMode"],
6135
- _excluded2$6 = ["path"];
6137
+ var _excluded$g = ["src", "color", "views", "themeMode"],
6138
+ _excluded2$7 = ["path"];
6136
6139
  var FileSVG = _ref => {
6137
6140
  var {
6138
6141
  src,
6139
6142
  color,
6140
6143
  views
6141
6144
  } = _ref,
6142
- props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
6145
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
6143
6146
  var {
6144
6147
  getColor,
6145
6148
  themeMode
@@ -6162,7 +6165,7 @@ var FileImage = _ref2 => {
6162
6165
  var {
6163
6166
  path
6164
6167
  } = _ref2,
6165
- props = _objectWithoutPropertiesLoose(_ref2, _excluded2$6);
6168
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2$7);
6166
6169
  return /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({
6167
6170
  src: path
6168
6171
  }, props));
@@ -6213,7 +6216,7 @@ var useItemState = () => {
6213
6216
  };
6214
6217
  };
6215
6218
 
6216
- var _excluded$f = ["children", "views"];
6219
+ var _excluded$h = ["children", "views"];
6217
6220
  var HelperText = _ref => {
6218
6221
  var {
6219
6222
  children,
@@ -6221,7 +6224,7 @@ var HelperText = _ref => {
6221
6224
  helperText: {}
6222
6225
  }
6223
6226
  } = _ref,
6224
- props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
6227
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
6225
6228
  return /*#__PURE__*/React__default.createElement(Text
6226
6229
  // Typography properties
6227
6230
  , Object.assign({
@@ -6247,7 +6250,7 @@ var HelperText = _ref => {
6247
6250
  }, views['helperText'], props), children);
6248
6251
  };
6249
6252
 
6250
- var _excluded$g = ["children", "helperText", "error", "views"];
6253
+ var _excluded$i = ["children", "helperText", "error", "views"];
6251
6254
  var FieldContainer = _ref => {
6252
6255
  var {
6253
6256
  children,
@@ -6255,7 +6258,7 @@ var FieldContainer = _ref => {
6255
6258
  error = false,
6256
6259
  views
6257
6260
  } = _ref,
6258
- props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
6261
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
6259
6262
  return /*#__PURE__*/React__default.createElement(appStudio.Vertical
6260
6263
  // Layout properties
6261
6264
  , Object.assign({
@@ -6392,7 +6395,7 @@ var PaddingWithoutLabel = {
6392
6395
  paddingRight: '16px'
6393
6396
  };
6394
6397
 
6395
- var _excluded$h = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "showLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "views"];
6398
+ var _excluded$j = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "showLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "views"];
6396
6399
  var FieldContent = _ref => {
6397
6400
  var {
6398
6401
  shadow,
@@ -6410,7 +6413,7 @@ var FieldContent = _ref => {
6410
6413
  pickerBox: {}
6411
6414
  }
6412
6415
  } = _ref,
6413
- props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
6416
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
6414
6417
  // Determine if the field is in an interactive state
6415
6418
  var isInteractive = (isHovered || isFocused) && !isDisabled;
6416
6419
  // Set the appropriate color based on state
@@ -6439,12 +6442,12 @@ var FieldContent = _ref => {
6439
6442
  }, showLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], views['box'], props), children);
6440
6443
  };
6441
6444
 
6442
- var _excluded$i = ["children"];
6445
+ var _excluded$k = ["children"];
6443
6446
  var FieldIcons = _ref => {
6444
6447
  var {
6445
6448
  children
6446
6449
  } = _ref,
6447
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
6450
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
6448
6451
  return /*#__PURE__*/React__default.createElement(appStudio.Center, Object.assign({
6449
6452
  gap: 10,
6450
6453
  right: 16,
@@ -6496,7 +6499,7 @@ var HeadingSizes$1 = {
6496
6499
  }
6497
6500
  };
6498
6501
 
6499
- var _excluded$j = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
6502
+ var _excluded$l = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
6500
6503
  var LabelView = _ref => {
6501
6504
  var {
6502
6505
  children,
@@ -6512,7 +6515,7 @@ var LabelView = _ref => {
6512
6515
  size = 'sm'
6513
6516
  // The fontSize prop for the Element is determined by the 'size' prop passed to LabelView.
6514
6517
  } = _ref,
6515
- props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
6518
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
6516
6519
  // The fontStyle prop toggles between 'italic' and 'normal' based on the 'isItalic' boolean prop.
6517
6520
  var headingStyles = heading ? HeadingSizes$1[heading] : {};
6518
6521
  // fontWeight is derived from the Typography module, ensuring consistent font weighting across the app.
@@ -6544,7 +6547,7 @@ React__default.createElement(LabelView, Object.assign({}, props))
6544
6547
  var Label = LabelComponent;
6545
6548
  // Export the 'LabelComponent' as 'Label' to be reused throughout the project.
6546
6549
 
6547
- var _excluded$k = ["children", "size", "error", "color", "views", "helperText"];
6550
+ var _excluded$m = ["children", "size", "error", "color", "views", "helperText"];
6548
6551
  var FieldLabel = _ref => {
6549
6552
  var {
6550
6553
  children,
@@ -6555,7 +6558,7 @@ var FieldLabel = _ref => {
6555
6558
  label: {}
6556
6559
  }
6557
6560
  } = _ref,
6558
- props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
6561
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
6559
6562
  return /*#__PURE__*/React__default.createElement(Label
6560
6563
  // Position properties
6561
6564
  , Object.assign({
@@ -6576,12 +6579,12 @@ var FieldLabel = _ref => {
6576
6579
  }, views['label'], props), children);
6577
6580
  };
6578
6581
 
6579
- var _excluded$l = ["children"];
6582
+ var _excluded$n = ["children"];
6580
6583
  var FieldWrapper = _ref => {
6581
6584
  var {
6582
6585
  children
6583
6586
  } = _ref,
6584
- props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
6587
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
6585
6588
  return /*#__PURE__*/React__default.createElement(appStudio.Vertical
6586
6589
  // Layout properties
6587
6590
  , Object.assign({
@@ -6614,9 +6617,9 @@ var IconSizes$2 = {
6614
6617
  xl: 28
6615
6618
  };
6616
6619
 
6617
- var _excluded$m = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
6618
- _excluded2$7 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
6619
- _excluded3$6 = ["option", "size", "removeOption"],
6620
+ var _excluded$o = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
6621
+ _excluded2$8 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
6622
+ _excluded3$7 = ["option", "size", "removeOption"],
6620
6623
  _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"];
6621
6624
  /**
6622
6625
  * Item Component
@@ -6632,7 +6635,7 @@ var Item = _ref => {
6632
6635
  callback = () => {},
6633
6636
  style
6634
6637
  } = _ref,
6635
- props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
6638
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
6636
6639
  // Handles the click event on an option by invoking the callback with the selected option's value
6637
6640
  var handleOptionClick = option => callback(option);
6638
6641
  // Toggles the hover state on the item
@@ -6737,7 +6740,7 @@ var HiddenSelect = _ref4 => {
6737
6740
  isReadOnly = false,
6738
6741
  options = []
6739
6742
  } = _ref4,
6740
- props = _objectWithoutPropertiesLoose(_ref4, _excluded2$7);
6743
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded2$8);
6741
6744
  var handleChange = event => {
6742
6745
  if (onChange) onChange(event);
6743
6746
  };
@@ -6842,7 +6845,7 @@ var MultiSelect = _ref6 => {
6842
6845
  size = 'md',
6843
6846
  removeOption = () => {}
6844
6847
  } = _ref6,
6845
- props = _objectWithoutPropertiesLoose(_ref6, _excluded3$6);
6848
+ props = _objectWithoutPropertiesLoose(_ref6, _excluded3$7);
6846
6849
  var handleClick = () => removeOption(option);
6847
6850
  return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
6848
6851
  gap: 8,
@@ -7131,7 +7134,7 @@ var ColorSchemes = {
7131
7134
  }
7132
7135
  };
7133
7136
 
7134
- var _excluded$n = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "views"];
7137
+ var _excluded$p = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "views"];
7135
7138
  var SwitchContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
7136
7139
  type: "checkbox"
7137
7140
  }, props));
@@ -7160,7 +7163,7 @@ var SwitchView = _ref => {
7160
7163
  label: {}
7161
7164
  }
7162
7165
  } = _ref,
7163
- props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
7166
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
7164
7167
  var handleToggle = event => {
7165
7168
  if (!isReadOnly) {
7166
7169
  setValue(!value);
@@ -7284,7 +7287,7 @@ var useTextAreaState = _ref => {
7284
7287
  // Export of the useTextAreaState hook for external usage.
7285
7288
  };
7286
7289
 
7287
- var _excluded$o = ["id", "name", "hint", "error", "value", "label", "shadow", "helperText", "placeholder", "size", "shape", "variant", "isHovered", "isFocused", "isEditable", "isReadOnly", "isDisabled", "isAutoFocus", "isMultiline", "maxRows", "maxCols", "onBlur", "onChange", "onFocus", "onChangeText", "setHint", "setValue", "setIsFocused", "setIsHovered", "views"];
7290
+ var _excluded$q = ["id", "name", "hint", "error", "value", "label", "shadow", "helperText", "placeholder", "size", "shape", "variant", "isHovered", "isFocused", "isEditable", "isReadOnly", "isDisabled", "isAutoFocus", "isMultiline", "maxRows", "maxCols", "onBlur", "onChange", "onFocus", "setHint", "setValue", "setIsFocused", "setIsHovered", "views"];
7288
7291
  var TextAreaView = _ref => {
7289
7292
  var {
7290
7293
  id,
@@ -7310,7 +7313,6 @@ var TextAreaView = _ref => {
7310
7313
  onBlur = () => {},
7311
7314
  onChange,
7312
7315
  onFocus,
7313
- onChangeText,
7314
7316
  setHint = () => {},
7315
7317
  setValue = () => {},
7316
7318
  setIsFocused = () => {},
@@ -7320,7 +7322,7 @@ var TextAreaView = _ref => {
7320
7322
  helperText: {}
7321
7323
  }
7322
7324
  } = _ref,
7323
- props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
7325
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
7324
7326
  var showLabel = !!(isFocused && label);
7325
7327
  /**
7326
7328
  * Styles for the textarea field
@@ -7365,11 +7367,9 @@ var TextAreaView = _ref => {
7365
7367
  var handleChange = event => {
7366
7368
  if (typeof event === 'string') {
7367
7369
  setValue(event);
7368
- if (onChangeText) onChangeText(event);
7369
7370
  if (onChange) onChange(event);
7370
7371
  } else {
7371
7372
  setValue(event.target.value);
7372
- if (onChangeText) onChangeText(event.target.value);
7373
7373
  if (onChange) onChange(event.target.value);
7374
7374
  }
7375
7375
  };
@@ -7408,15 +7408,13 @@ var TextAreaView = _ref => {
7408
7408
  readOnly: isReadOnly,
7409
7409
  disabled: isDisabled,
7410
7410
  autoFocus: isAutoFocus,
7411
- editable: isEditable,
7411
+ editable: !!isEditable.toString(),
7412
7412
  placeholder: hint,
7413
7413
  onBlur: handleBlur,
7414
7414
  onFocus: handleFocus,
7415
- multiline: isMultiline
7416
- }, fieldStyles, {
7417
- onChange: handleChange,
7418
- onChangeText: handleChange
7419
- }, views == null ? void 0 : views.textarea)))));
7415
+ multiline: !!isMultiline.toString(),
7416
+ onChange: handleChange
7417
+ }, fieldStyles, views == null ? void 0 : views.textarea)))));
7420
7418
  };
7421
7419
 
7422
7420
  // Defines the TextAreaComponent as a functional component that accepts TextAreaProps for type safety and structure.
@@ -7463,7 +7461,7 @@ var useTextFieldState = _ref => {
7463
7461
  };
7464
7462
  };
7465
7463
 
7466
- var _excluded$p = ["id", "name", "label", "hint", "value", "onChange", "left", "right", "helperText", "placeholder", "onChangeText", "shadow", "views", "size", "shape", "variant", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setValue", "onClick", "onFocus", "onBlur", "themeMode"];
7464
+ var _excluded$r = ["id", "name", "label", "hint", "value", "onChange", "left", "right", "helperText", "placeholder", "onChangeText", "shadow", "views", "size", "shape", "variant", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setValue", "onClick", "onFocus", "onBlur", "themeMode"];
7467
7465
  /**
7468
7466
  * Input component for text fields
7469
7467
  */
@@ -7509,7 +7507,7 @@ var TextFieldView = _ref => {
7509
7507
  onBlur = () => {},
7510
7508
  themeMode: elementMode
7511
7509
  } = _ref,
7512
- props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
7510
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
7513
7511
  var {
7514
7512
  getColor,
7515
7513
  themeMode
@@ -7767,7 +7765,7 @@ var StateStyles = {
7767
7765
  }
7768
7766
  };
7769
7767
 
7770
- var _excluded$q = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "labelPosition", "size", "error", "isSelected", "isHovered", "isDisabled", "isReadOnly", "isIndeterminate", "defaultIsSelected", "setIsSelected", "setIsHovered", "views", "infoText", "helperText"];
7768
+ var _excluded$s = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "labelPosition", "size", "error", "isSelected", "isHovered", "isDisabled", "isReadOnly", "isIndeterminate", "defaultIsSelected", "setIsSelected", "setIsHovered", "views", "infoText", "helperText"];
7771
7769
  var CheckboxView = _ref => {
7772
7770
  var {
7773
7771
  id,
@@ -7794,7 +7792,7 @@ var CheckboxView = _ref => {
7794
7792
  },
7795
7793
  infoText
7796
7794
  } = _ref,
7797
- props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
7795
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
7798
7796
  var handleHover = () => setIsHovered(!isHovered);
7799
7797
  var handleChange = () => {
7800
7798
  if (!isReadOnly && !isDisabled) {
@@ -9380,11 +9378,11 @@ var IconSizes$4 = {
9380
9378
  xl: 16
9381
9379
  };
9382
9380
 
9383
- var _excluded$r = ["size"],
9384
- _excluded2$8 = ["size"],
9385
- _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"];
9381
+ var _excluded$t = ["size"],
9382
+ _excluded2$9 = ["size"],
9383
+ _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"];
9386
9384
  var CountryList = _ref => {
9387
- var props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
9385
+ var props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
9388
9386
  return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
9389
9387
  as: "ul"
9390
9388
  }, props));
@@ -9393,7 +9391,7 @@ var CountrySelector = props => (/*#__PURE__*/React__default.createElement(appStu
9393
9391
  type: "country"
9394
9392
  }, props)));
9395
9393
  var CountryItem = _ref2 => {
9396
- var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$8);
9394
+ var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$9);
9397
9395
  return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
9398
9396
  as: "li"
9399
9397
  }, props));
@@ -9495,7 +9493,7 @@ var CountryPickerView = _ref5 => {
9495
9493
  },
9496
9494
  themeMode: elementMode
9497
9495
  } = _ref5,
9498
- props = _objectWithoutPropertiesLoose(_ref5, _excluded3$7);
9496
+ props = _objectWithoutPropertiesLoose(_ref5, _excluded3$8);
9499
9497
  var {
9500
9498
  getColor,
9501
9499
  themeMode
@@ -9623,7 +9621,7 @@ var useDatePickerState = () => {
9623
9621
  };
9624
9622
  };
9625
9623
 
9626
- var _excluded$s = ["id", "icon", "name", "label", "date", "children", "helperText", "shadow", "size", "variant", "shape", "views", "error", "isHovered", "isFocused", "isDisabled", "isReadOnly", "setDate", "setIsFocused", "setIsHovered", "onChange", "onChangeText"];
9624
+ var _excluded$u = ["id", "icon", "name", "label", "date", "children", "helperText", "shadow", "size", "variant", "shape", "views", "error", "isHovered", "isFocused", "isDisabled", "isReadOnly", "setDate", "setIsFocused", "setIsHovered", "onChange", "onChangeText"];
9627
9625
  var DatePickerContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
9628
9626
  type: "date"
9629
9627
  }, props));
@@ -9656,7 +9654,7 @@ var DatePickerView = _ref => {
9656
9654
  onChange,
9657
9655
  onChangeText
9658
9656
  } = _ref,
9659
- props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
9657
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
9660
9658
  var showLabel = !!(isFocused && label);
9661
9659
  var handleHover = () => setIsHovered(!isHovered);
9662
9660
  var handleFocus = () => setIsFocused(true);
@@ -9743,8 +9741,8 @@ var usePasswordState = props => {
9743
9741
  }, props, textFieldStates);
9744
9742
  };
9745
9743
 
9746
- var _excluded$t = ["visibleIcon", "hiddenIcon"],
9747
- _excluded2$9 = ["isVisible", "setIsVisible"];
9744
+ var _excluded$v = ["visibleIcon", "hiddenIcon"],
9745
+ _excluded2$a = ["isVisible", "setIsVisible"];
9748
9746
  var PasswordComponent = _ref => {
9749
9747
  var {
9750
9748
  visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
@@ -9754,13 +9752,13 @@ var PasswordComponent = _ref => {
9754
9752
  widthHeight: 14
9755
9753
  })
9756
9754
  } = _ref,
9757
- props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
9755
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
9758
9756
  var _usePasswordState = usePasswordState(props),
9759
9757
  {
9760
9758
  isVisible,
9761
9759
  setIsVisible
9762
9760
  } = _usePasswordState,
9763
- passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$9);
9761
+ passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$a);
9764
9762
  return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
9765
9763
  type: isVisible ? 'text' : 'password',
9766
9764
  isClearable: false,
@@ -9808,7 +9806,7 @@ var useComboBoxState = (items, placeholder, searchPlaceholder) => {
9808
9806
  };
9809
9807
  };
9810
9808
 
9811
- var _excluded$u = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "views", "isDropdownVisible", "setIsDropdownVisible"];
9809
+ var _excluded$w = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "views", "isDropdownVisible", "setIsDropdownVisible"];
9812
9810
  // Defines the functional component 'ComboBoxView' with destructured props.
9813
9811
  var ComboBoxView = _ref => {
9814
9812
  var {
@@ -9833,7 +9831,7 @@ var ComboBoxView = _ref => {
9833
9831
  setIsDropdownVisible
9834
9832
  // Collects all further props not destructured explicitly.
9835
9833
  } = _ref,
9836
- props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
9834
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
9837
9835
  // Sets up an effect to handle clicking outside the dropdown to close it.
9838
9836
  React.useEffect(() => {
9839
9837
  var handleClickOutside = event => {
@@ -9945,7 +9943,7 @@ var ComboBoxView = _ref => {
9945
9943
  }))))))))))));
9946
9944
  };
9947
9945
 
9948
- var _excluded$v = ["id", "name", "items", "placeholder", "searchPlaceholder"];
9946
+ var _excluded$x = ["id", "name", "items", "placeholder", "searchPlaceholder"];
9949
9947
  // Defines the ComboBoxComponent functional component with ComboBoxProps
9950
9948
  var ComboBoxComponent = _ref => {
9951
9949
  var {
@@ -9961,7 +9959,7 @@ var ComboBoxComponent = _ref => {
9961
9959
  searchPlaceholder
9962
9960
  // Destructures the rest of the props not explicitly defined
9963
9961
  } = _ref,
9964
- props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
9962
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
9965
9963
  // Initializes ComboBox state using custom hook with items and placeholders
9966
9964
  var state = useComboBoxState(items, placeholder, searchPlaceholder);
9967
9965
  return (
@@ -10266,7 +10264,7 @@ var useOTPInputState = _ref => {
10266
10264
  };
10267
10265
  };
10268
10266
 
10269
- var _excluded$w = ["id", "name", "label", "value", "length", "onChange", "onChangeText", "onComplete", "helperText", "placeholder", "shadow", "views", "size", "shape", "variant", "gap", "type", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isAutoFocus", "setValue", "setIsFocused", "setIsHovered", "inputRef", "containerRef", "mirrorSelectionStart", "mirrorSelectionEnd", "setMirrorSelectionStart", "setMirrorSelectionEnd", "handlePaste", "handleChange", "handleFocus", "handleBlur", "handleKeyDown", "stepValues", "setInputRef", "onBlur", "onClick", "onFocus"];
10267
+ var _excluded$y = ["id", "name", "label", "value", "length", "onChange", "onChangeText", "onComplete", "helperText", "placeholder", "shadow", "views", "size", "shape", "variant", "gap", "type", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isAutoFocus", "setValue", "setIsFocused", "setIsHovered", "inputRef", "containerRef", "mirrorSelectionStart", "mirrorSelectionEnd", "setMirrorSelectionStart", "setMirrorSelectionEnd", "handlePaste", "handleChange", "handleFocus", "handleBlur", "handleKeyDown", "stepValues", "setInputRef", "onBlur", "onClick", "onFocus"];
10270
10268
  // Create a context for OTP input slots
10271
10269
  var OTPInputContext = /*#__PURE__*/React.createContext({
10272
10270
  slots: [],
@@ -10320,7 +10318,7 @@ var OTPInputView = _ref => {
10320
10318
  onFocus = () => {}
10321
10319
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
10322
10320
  } = _ref,
10323
- props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
10321
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
10324
10322
  appStudio.useTheme(); // Initialize theme context
10325
10323
  var showLabel = !!label;
10326
10324
  // Create context value for slots
@@ -10550,7 +10548,7 @@ var OTPInputComponent = props => {
10550
10548
  };
10551
10549
  var OTPInput = OTPInputComponent;
10552
10550
 
10553
- var _excluded$x = ["children", "autoFocus", "initFocus", "onChange"];
10551
+ var _excluded$z = ["children", "autoFocus", "initFocus", "onChange"];
10554
10552
  var FocusContext = /*#__PURE__*/React.createContext({
10555
10553
  active: false,
10556
10554
  focusNextInput: () => {},
@@ -10566,7 +10564,7 @@ var FormikForm = _ref => {
10566
10564
  initFocus,
10567
10565
  onChange = () => {}
10568
10566
  } = _ref,
10569
- props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
10567
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
10570
10568
  var formik$1 = formik.useFormikContext();
10571
10569
  React.useEffect(() => {
10572
10570
  onChange(formik$1.values);
@@ -10614,7 +10612,7 @@ var FormikForm = _ref => {
10614
10612
  }, /*#__PURE__*/React__default.createElement(appStudio.Form, Object.assign({}, props), children));
10615
10613
  };
10616
10614
 
10617
- var _excluded$y = ["name", "type"];
10615
+ var _excluded$A = ["name", "type"];
10618
10616
  var getInputTypeProps = type => {
10619
10617
  switch (type) {
10620
10618
  case 'email':
@@ -10653,7 +10651,7 @@ var useFormikInput = _ref => {
10653
10651
  name,
10654
10652
  type
10655
10653
  } = _ref,
10656
- props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
10654
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
10657
10655
  var focus = useFormFocus();
10658
10656
  var {
10659
10657
  touched,
@@ -10697,13 +10695,13 @@ var useFormikInput = _ref => {
10697
10695
  } : {});
10698
10696
  };
10699
10697
 
10700
- var _excluded$z = ["value"];
10698
+ var _excluded$B = ["value"];
10701
10699
  var CheckboxComponent$1 = props => {
10702
10700
  var _useFormikInput = useFormikInput(props),
10703
10701
  {
10704
10702
  value
10705
10703
  } = _useFormikInput,
10706
- formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$z);
10704
+ formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$B);
10707
10705
  formProps.isChecked = value;
10708
10706
  var checkboxStates = useCheckboxState(props);
10709
10707
  return /*#__PURE__*/React__default.createElement(CheckboxView, Object.assign({}, checkboxStates, formProps));
@@ -10761,11 +10759,11 @@ var TextAreaComponent$1 = props => {
10761
10759
  */
10762
10760
  var FormikTextArea = TextAreaComponent$1;
10763
10761
 
10764
- var _excluded$A = ["value"];
10762
+ var _excluded$C = ["value"];
10765
10763
  var TextFieldComponent$1 = props => {
10766
10764
  var formProps = useFormikInput(props);
10767
10765
  var _useTextFieldState = useTextFieldState(props),
10768
- textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$A);
10766
+ textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$C);
10769
10767
  return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, textFieldStates, formProps));
10770
10768
  };
10771
10769
  /**
@@ -10773,8 +10771,8 @@ var TextFieldComponent$1 = props => {
10773
10771
  */
10774
10772
  var FormikTextField = TextFieldComponent$1;
10775
10773
 
10776
- var _excluded$B = ["visibleIcon", "hiddenIcon"],
10777
- _excluded2$a = ["isVisible", "setIsVisible"];
10774
+ var _excluded$D = ["visibleIcon", "hiddenIcon"],
10775
+ _excluded2$b = ["isVisible", "setIsVisible"];
10778
10776
  var PasswordComponent$1 = _ref => {
10779
10777
  var {
10780
10778
  visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
@@ -10784,14 +10782,14 @@ var PasswordComponent$1 = _ref => {
10784
10782
  widthHeight: 14
10785
10783
  })
10786
10784
  } = _ref,
10787
- props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
10785
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
10788
10786
  var formProps = useFormikInput(props);
10789
10787
  var _usePasswordState = usePasswordState(formProps),
10790
10788
  {
10791
10789
  isVisible,
10792
10790
  setIsVisible
10793
10791
  } = _usePasswordState,
10794
- passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$a);
10792
+ passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$b);
10795
10793
  return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
10796
10794
  type: isVisible ? 'text' : 'password',
10797
10795
  isClearable: false,
@@ -10809,14 +10807,14 @@ var PasswordComponent$1 = _ref => {
10809
10807
  */
10810
10808
  var FormikPassword = PasswordComponent$1;
10811
10809
 
10812
- var _excluded$C = ["items", "placeholder", "searchPlaceholder"];
10810
+ var _excluded$E = ["items", "placeholder", "searchPlaceholder"];
10813
10811
  var ComboBoxComponent$1 = _ref => {
10814
10812
  var {
10815
10813
  items,
10816
10814
  placeholder,
10817
10815
  searchPlaceholder
10818
10816
  } = _ref,
10819
- props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
10817
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
10820
10818
  var formProps = useFormikInput(props);
10821
10819
  var ComboBoxStates = useComboBoxState(items, placeholder, searchPlaceholder);
10822
10820
  // Ensure the onChange function from formProps is being called when an item is selected
@@ -11040,17 +11038,22 @@ var SliderShapes = {
11040
11038
  rounded: 4,
11041
11039
  pillShaped: 24
11042
11040
  };
11043
- var SliderVariants = {
11044
- default: {
11045
- backgroundColor: 'color.blueGray.200'
11046
- },
11047
- outline: {
11048
- backgroundColor: 'transparent',
11049
- borderWidth: 1,
11050
- borderStyle: 'solid',
11051
- borderColor: 'color.blueGray.300'
11052
- }
11041
+ var getSlider = themeMode => {
11042
+ return {
11043
+ default: {
11044
+ backgroundColor: 'color.blueGray.200'
11045
+ },
11046
+ outline: {
11047
+ backgroundColor: 'transparent',
11048
+ borderWidth: 1,
11049
+ borderStyle: 'solid',
11050
+ borderColor: 'color.blueGray.300'
11051
+ }
11052
+ };
11053
+ // Add dark mode conditional styling here
11053
11054
  };
11055
+ // For backward compatibility
11056
+ var SliderVariants = /*#__PURE__*/getSlider();
11054
11057
  // Maps Size enum to track height/width and thumb size for the new implementation
11055
11058
  var EnhancedSliderSizes = {
11056
11059
  xs: {
@@ -11092,7 +11095,7 @@ var OrientationStyles = {
11092
11095
  }
11093
11096
  };
11094
11097
 
11095
- var _excluded$D = ["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"];
11098
+ 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"];
11096
11099
  var SliderView = _ref => {
11097
11100
  var _views$tooltip, _views$tooltip2;
11098
11101
  var {
@@ -11135,7 +11138,7 @@ var SliderView = _ref => {
11135
11138
  tooltip: {}
11136
11139
  }
11137
11140
  } = _ref,
11138
- props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
11141
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
11139
11142
  var {
11140
11143
  getColor,
11141
11144
  themeMode
@@ -11508,7 +11511,7 @@ var hideMessage = () => {
11508
11511
  useMessageStore.getState().hide();
11509
11512
  };
11510
11513
 
11511
- var Themes$1 = {
11514
+ var Themes = {
11512
11515
  info: {
11513
11516
  container: {
11514
11517
  backgroundColor: 'color.blue.200',
@@ -11606,7 +11609,7 @@ var MessageView = _ref => {
11606
11609
  }
11607
11610
  return;
11608
11611
  }, []);
11609
- var Theme = theme != null ? theme : Themes$1;
11612
+ var Theme = theme != null ? theme : Themes;
11610
11613
  var showAction = !!(action && actionText);
11611
11614
  var containerStyle = {
11612
11615
  borderWidth: 1,
@@ -11855,7 +11858,8 @@ var UploadView = _ref => {
11855
11858
  renderError = _ref2 => {
11856
11859
  var {
11857
11860
  errorMessage,
11858
- errorMessageProps
11861
+ errorMessageProps,
11862
+ themeMode: elementMode
11859
11863
  } = _ref2;
11860
11864
  return /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
11861
11865
  color: "red",
@@ -12006,7 +12010,7 @@ var UploadView = _ref => {
12006
12010
  }, views == null ? void 0 : views.view)));
12007
12011
  };
12008
12012
 
12009
- var _excluded$E = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress", "fileType"];
12013
+ var _excluded$G = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress", "fileType"];
12010
12014
  var Uploader = _ref => {
12011
12015
  var {
12012
12016
  accept = '*/*',
@@ -12019,7 +12023,7 @@ var Uploader = _ref => {
12019
12023
  progress = 0,
12020
12024
  fileType
12021
12025
  } = _ref,
12022
- props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
12026
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$G);
12023
12027
  var {
12024
12028
  previewUrl,
12025
12029
  thumbnailUrl,
@@ -12210,9 +12214,9 @@ var ModalTypography = {
12210
12214
  }
12211
12215
  };
12212
12216
 
12213
- var _excluded$F = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
12214
- _excluded2$b = ["children", "shadow", "isFullScreen", "shape", "views"],
12215
- _excluded3$8 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
12217
+ var _excluded$H = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
12218
+ _excluded2$c = ["children", "shadow", "isFullScreen", "shape", "views"],
12219
+ _excluded3$9 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
12216
12220
  _excluded4$7 = ["children", "views"],
12217
12221
  _excluded5$3 = ["children", "views"];
12218
12222
  var ModalOverlay = _ref => {
@@ -12225,7 +12229,7 @@ var ModalOverlay = _ref => {
12225
12229
  position = 'center',
12226
12230
  views
12227
12231
  } = _ref,
12228
- props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
12232
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
12229
12233
  var handleClick = () => {
12230
12234
  if (!isClosePrevented) onClose();
12231
12235
  };
@@ -12261,7 +12265,7 @@ var ModalContainer = _ref2 => {
12261
12265
  shape = 'rounded',
12262
12266
  views
12263
12267
  } = _ref2,
12264
- props = _objectWithoutPropertiesLoose(_ref2, _excluded2$b);
12268
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2$c);
12265
12269
  var defaultShadow = typeof document !== undefined ? {
12266
12270
  boxShadow: '0px 4px 16px rgba(0, 0, 0, 0.15)'
12267
12271
  } : {
@@ -12294,19 +12298,14 @@ var ModalHeader = _ref3 => {
12294
12298
  buttonPosition = 'right',
12295
12299
  views
12296
12300
  } = _ref3,
12297
- props = _objectWithoutPropertiesLoose(_ref3, _excluded3$8);
12301
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded3$9);
12298
12302
  var onClose = props.onClose ? props.onClose : hideModal;
12299
- var buttonIcon = /*#__PURE__*/React__default.createElement(Button, {
12300
- onClick: onClose,
12301
- icon: /*#__PURE__*/React__default.createElement(CloseIcon, {
12302
- widthHeight: HeaderIconSizes[iconSize],
12303
- color: buttonColor
12304
- }),
12305
- padding: 0,
12306
- margin: 0,
12307
- filter: "none",
12308
- width: 0
12309
- });
12303
+ var buttonIcon = /*#__PURE__*/React__default.createElement(appStudio.View, {
12304
+ onClick: onClose
12305
+ }, /*#__PURE__*/React__default.createElement(CloseIcon, {
12306
+ widthHeight: HeaderIconSizes[iconSize],
12307
+ color: buttonColor
12308
+ }));
12310
12309
  return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
12311
12310
  justifyContent: buttonPosition === 'none' ? 'center' : 'space-between',
12312
12311
  alignItems: "center",
@@ -12526,7 +12525,7 @@ var NavigationMenuItemStates = {
12526
12525
  }
12527
12526
  };
12528
12527
 
12529
- var _excluded$G = ["href", "children", "views"];
12528
+ var _excluded$I = ["href", "children", "views"];
12530
12529
  // Create context for the NavigationMenu
12531
12530
  var NavigationMenuContext = /*#__PURE__*/React.createContext({
12532
12531
  activeItemId: null,
@@ -12761,7 +12760,7 @@ var NavigationMenuLink = _ref6 => {
12761
12760
  children,
12762
12761
  views
12763
12762
  } = _ref6,
12764
- props = _objectWithoutPropertiesLoose(_ref6, _excluded$G);
12763
+ props = _objectWithoutPropertiesLoose(_ref6, _excluded$I);
12765
12764
  var {
12766
12765
  itemValue,
12767
12766
  isDisabled
@@ -12810,7 +12809,8 @@ var NavigationMenuView = _ref7 => {
12810
12809
  items,
12811
12810
  orientation,
12812
12811
  //size, variant,
12813
- views
12812
+ views,
12813
+ themeMode: elementMode
12814
12814
  } = _ref7;
12815
12815
  var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
12816
12816
  if (!items || items.length === 0) {
@@ -12827,7 +12827,7 @@ var NavigationMenuView = _ref7 => {
12827
12827
  })))));
12828
12828
  };
12829
12829
 
12830
- var _excluded$H = ["items", "children", "orientation", "size", "variant", "defaultActiveItemId", "defaultExpandedItemIds", "onItemActivate", "views"];
12830
+ var _excluded$J = ["items", "children", "orientation", "size", "variant", "defaultActiveItemId", "defaultExpandedItemIds", "onItemActivate", "views"];
12831
12831
  /**
12832
12832
  * NavigationMenu component for creating navigation menus with optional nested items.
12833
12833
  * Supports both data-driven approach (with items prop) and compound component pattern.
@@ -12844,7 +12844,7 @@ var NavigationMenuComponent = _ref => {
12844
12844
  onItemActivate,
12845
12845
  views
12846
12846
  } = _ref,
12847
- props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
12847
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$J);
12848
12848
  var {
12849
12849
  activeItemId,
12850
12850
  setActiveItemId,
@@ -13044,7 +13044,8 @@ var TableView = _ref => {
13044
13044
  data,
13045
13045
  columns,
13046
13046
  footer,
13047
- caption
13047
+ caption,
13048
+ themeMode: elementMode
13048
13049
  } = _ref;
13049
13050
  return /*#__PURE__*/React__default.createElement(TableContainer, {
13050
13051
  role: "Table"
@@ -13311,7 +13312,7 @@ var useToggleState = defaultToggled => {
13311
13312
  };
13312
13313
  };
13313
13314
 
13314
- var _excluded$I = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views"];
13315
+ var _excluded$K = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views"];
13315
13316
  var ToggleView = _ref => {
13316
13317
  var {
13317
13318
  children,
@@ -13325,7 +13326,7 @@ var ToggleView = _ref => {
13325
13326
  onToggle,
13326
13327
  views
13327
13328
  } = _ref,
13328
- props = _objectWithoutPropertiesLoose(_ref, _excluded$I);
13329
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$K);
13329
13330
  var toggleColor = !isDisabled ? 'color.trueGray.400' : 'theme.disabled';
13330
13331
  var isActive = !!(isToggle || isHovered);
13331
13332
  var toggleVariants = {
@@ -13368,7 +13369,7 @@ var ToggleView = _ref => {
13368
13369
  }, toggleVariants[variant], props, views == null ? void 0 : views.container), children);
13369
13370
  };
13370
13371
 
13371
- var _excluded$J = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
13372
+ var _excluded$L = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
13372
13373
  // Destructuring properties from ToggleProps to be used within the ToggleComponent.
13373
13374
  var ToggleComponent = _ref => {
13374
13375
  var {
@@ -13380,7 +13381,7 @@ var ToggleComponent = _ref => {
13380
13381
  isToggled = false,
13381
13382
  onToggle
13382
13383
  } = _ref,
13383
- props = _objectWithoutPropertiesLoose(_ref, _excluded$J);
13384
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$L);
13384
13385
  // Initializing toggle state and set state functions using the custom hook useToggleState.
13385
13386
  var {
13386
13387
  isHovered,
@@ -13587,7 +13588,8 @@ var DragAndDropView = _ref => {
13587
13588
  draggedIndex,
13588
13589
  itemRefs,
13589
13590
  handleDragStart,
13590
- views
13591
+ views,
13592
+ themeMode: elementMode
13591
13593
  } = _ref;
13592
13594
  return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
13593
13595
  overflow: "hidden",
@@ -13770,11 +13772,11 @@ var getDropdownPosition = function getDropdownPosition(side, align) {
13770
13772
  return positions[side];
13771
13773
  };
13772
13774
 
13773
- var _excluded$K = ["children", "views"],
13774
- _excluded2$c = ["items", "side", "align", "views"],
13775
- _excluded3$9 = ["item", "views"],
13775
+ var _excluded$M = ["children", "views"],
13776
+ _excluded2$d = ["items", "side", "align", "views"],
13777
+ _excluded3$a = ["item", "views"],
13776
13778
  _excluded4$8 = ["views"],
13777
- _excluded5$4 = ["trigger", "items", "side", "align", "views"];
13779
+ _excluded5$4 = ["trigger", "items", "side", "align", "views", "themeMode"];
13778
13780
  // Create context for the DropdownMenu
13779
13781
  var DropdownMenuContext = /*#__PURE__*/React.createContext({
13780
13782
  isOpen: false,
@@ -13808,7 +13810,7 @@ var DropdownMenuTrigger = _ref2 => {
13808
13810
  children,
13809
13811
  views
13810
13812
  } = _ref2,
13811
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$K);
13813
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$M);
13812
13814
  var {
13813
13815
  isOpen,
13814
13816
  setIsOpen
@@ -13833,7 +13835,7 @@ var DropdownMenuContent = _ref3 => {
13833
13835
  align = 'start',
13834
13836
  views
13835
13837
  } = _ref3,
13836
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$c);
13838
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$d);
13837
13839
  var {
13838
13840
  isOpen,
13839
13841
  //activeSubmenuId, setActiveSubmenuId, size,
@@ -13869,7 +13871,7 @@ var DropdownMenuItem = _ref4 => {
13869
13871
  item,
13870
13872
  views
13871
13873
  } = _ref4,
13872
- props = _objectWithoutPropertiesLoose(_ref4, _excluded3$9);
13874
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$a);
13873
13875
  var {
13874
13876
  activeSubmenuId,
13875
13877
  setActiveSubmenuId,
@@ -13968,7 +13970,7 @@ var DropdownMenuView = _ref6 => {
13968
13970
  }));
13969
13971
  };
13970
13972
 
13971
- var _excluded$L = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
13973
+ var _excluded$N = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
13972
13974
  /**
13973
13975
  * DropdownMenu component for displaying a menu when clicking on a trigger element.
13974
13976
  */
@@ -13983,7 +13985,7 @@ var DropdownMenuComponent = _ref => {
13983
13985
  defaultOpen = false,
13984
13986
  views
13985
13987
  } = _ref,
13986
- props = _objectWithoutPropertiesLoose(_ref, _excluded$L);
13988
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$N);
13987
13989
  var {
13988
13990
  isOpen,
13989
13991
  setIsOpen,
@@ -14181,8 +14183,8 @@ var useRect = ref => {
14181
14183
  return rect;
14182
14184
  };
14183
14185
 
14184
- var _excluded$M = ["children", "views", "asChild"],
14185
- _excluded2$d = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
14186
+ var _excluded$O = ["children", "views", "asChild"],
14187
+ _excluded2$e = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
14186
14188
  // Create context for the HoverCard
14187
14189
  var HoverCardContext = /*#__PURE__*/React.createContext({
14188
14190
  isOpen: false,
@@ -14220,7 +14222,7 @@ var HoverCardTrigger = _ref2 => {
14220
14222
  views,
14221
14223
  asChild = false
14222
14224
  } = _ref2,
14223
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$M);
14225
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$O);
14224
14226
  var {
14225
14227
  openCard,
14226
14228
  closeCard,
@@ -14268,7 +14270,7 @@ var HoverCardContent = _ref3 => {
14268
14270
  minWidth = '200px',
14269
14271
  maxWidth = '300px'
14270
14272
  } = _ref3,
14271
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$d);
14273
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$e);
14272
14274
  var {
14273
14275
  isOpen,
14274
14276
  cancelCloseTimer,
@@ -14307,7 +14309,7 @@ var HoverCardContent = _ref3 => {
14307
14309
  }, views == null ? void 0 : views.container, props), children);
14308
14310
  };
14309
14311
 
14310
- var _excluded$N = ["children", "views", "openDelay", "closeDelay"];
14312
+ var _excluded$P = ["children", "views", "openDelay", "closeDelay"];
14311
14313
  /**
14312
14314
  * HoverCard component displays floating content when hovering over a trigger element.
14313
14315
  * Supports configurable open and close delays for a smoother user experience.
@@ -14319,7 +14321,7 @@ var HoverCardComponent = _ref => {
14319
14321
  openDelay,
14320
14322
  closeDelay
14321
14323
  } = _ref,
14322
- props = _objectWithoutPropertiesLoose(_ref, _excluded$N);
14324
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$P);
14323
14325
  var hoverCardState = useHoverCardState({
14324
14326
  openDelay,
14325
14327
  closeDelay
@@ -14449,7 +14451,7 @@ var getMenubarContentPosition = orientation => {
14449
14451
  };
14450
14452
  };
14451
14453
 
14452
- var _excluded$O = ["children", "orientation", "size", "variant", "views"];
14454
+ var _excluded$Q = ["children", "orientation", "size", "variant", "views"];
14453
14455
  // Create context for the Menubar
14454
14456
  var MenubarContext = /*#__PURE__*/React.createContext({
14455
14457
  activeMenuId: null,
@@ -14483,7 +14485,7 @@ var MenubarRoot = _ref2 => {
14483
14485
  variant = 'default',
14484
14486
  views
14485
14487
  } = _ref2,
14486
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$O);
14488
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$Q);
14487
14489
  var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
14488
14490
  return /*#__PURE__*/React__default.createElement(Container, Object.assign({
14489
14491
  role: "menubar",
@@ -14630,7 +14632,8 @@ var MenubarView = _ref8 => {
14630
14632
  orientation,
14631
14633
  size,
14632
14634
  variant,
14633
- views
14635
+ views,
14636
+ themeMode: elementMode
14634
14637
  } = _ref8;
14635
14638
  return /*#__PURE__*/React__default.createElement(MenubarRoot, {
14636
14639
  orientation: orientation,
@@ -14668,7 +14671,7 @@ var MenubarView = _ref8 => {
14668
14671
  })))))));
14669
14672
  };
14670
14673
 
14671
- var _excluded$P = ["items", "orientation", "size", "variant", "defaultActiveMenuId", "defaultOpenMenuId", "views"];
14674
+ var _excluded$R = ["items", "orientation", "size", "variant", "defaultActiveMenuId", "defaultOpenMenuId", "views"];
14672
14675
  /**
14673
14676
  * Menubar component for creating horizontal or vertical menu bars with dropdown menus.
14674
14677
  */
@@ -14682,7 +14685,7 @@ var MenubarComponent = _ref => {
14682
14685
  defaultOpenMenuId = null,
14683
14686
  views
14684
14687
  } = _ref,
14685
- props = _objectWithoutPropertiesLoose(_ref, _excluded$P);
14688
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$R);
14686
14689
  var {
14687
14690
  activeMenuId,
14688
14691
  setActiveMenuId,
@@ -14838,7 +14841,7 @@ var DisabledButtonStyles = {
14838
14841
  }
14839
14842
  };
14840
14843
 
14841
- var _excluded$Q = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "visiblePageNumbers", "views"];
14844
+ var _excluded$S = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "visiblePageNumbers", "views"];
14842
14845
  var PaginationView = _ref => {
14843
14846
  var {
14844
14847
  currentPage,
@@ -14869,7 +14872,7 @@ var PaginationView = _ref => {
14869
14872
  visiblePageNumbers,
14870
14873
  views
14871
14874
  } = _ref,
14872
- props = _objectWithoutPropertiesLoose(_ref, _excluded$Q);
14875
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$S);
14873
14876
  var handlePageChange = page => {
14874
14877
  if (page < 1 || page > totalPages || page === currentPage) {
14875
14878
  return;
@@ -14988,7 +14991,7 @@ var PaginationView = _ref => {
14988
14991
  }, option.label))))));
14989
14992
  };
14990
14993
 
14991
- var _excluded$R = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "views"];
14994
+ var _excluded$T = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "views"];
14992
14995
  /**
14993
14996
  * Pagination component for navigating through pages of content.
14994
14997
  */
@@ -15009,7 +15012,7 @@ var PaginationComponent = _ref => {
15009
15012
  shape = 'rounded',
15010
15013
  views
15011
15014
  } = _ref,
15012
- props = _objectWithoutPropertiesLoose(_ref, _excluded$R);
15015
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$T);
15013
15016
  var {
15014
15017
  visiblePageNumbers
15015
15018
  } = usePaginationState(currentPage, totalPages, maxPageButtons);
@@ -15045,11 +15048,16 @@ var Pagination = PaginationComponent;
15045
15048
  /**
15046
15049
  * Variant configurations for the Separator component
15047
15050
  */
15048
- var SeparatorVariants = {
15049
- solid: 'solid',
15050
- dashed: 'dashed',
15051
- dotted: 'dotted'
15051
+ var getSeparator = themeMode => {
15052
+ return {
15053
+ solid: 'solid',
15054
+ dashed: 'dashed',
15055
+ dotted: 'dotted'
15056
+ };
15057
+ // Add dark mode conditional styling here
15052
15058
  };
15059
+ // For backward compatibility
15060
+ var SeparatorVariants = /*#__PURE__*/getSeparator();
15053
15061
  /**
15054
15062
  * Thickness configurations for the Separator component
15055
15063
  * Following the 4px grid system
@@ -15074,7 +15082,7 @@ var DefaultSeparatorStyles = {
15074
15082
  }
15075
15083
  };
15076
15084
 
15077
- var _excluded$S = ["orientation", "variant", "thickness", "color", "spacing", "label", "decorative", "views"];
15085
+ var _excluded$U = ["orientation", "variant", "thickness", "color", "spacing", "label", "decorative", "views", "themeMode"];
15078
15086
  var SeparatorView = _ref => {
15079
15087
  var {
15080
15088
  orientation = 'horizontal',
@@ -15086,9 +15094,11 @@ var SeparatorView = _ref => {
15086
15094
  decorative = false,
15087
15095
  views
15088
15096
  } = _ref,
15089
- props = _objectWithoutPropertiesLoose(_ref, _excluded$S);
15097
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$U);
15090
15098
  // Access theme if needed for future enhancements
15091
- var {} = appStudio.useTheme();
15099
+ var {
15100
+ themeMode
15101
+ } = appStudio.useTheme();
15092
15102
  // Use provided color or default from theme
15093
15103
  var separatorColor = color || 'color.gray.200';
15094
15104
  var borderStyle = SeparatorVariants[variant];
@@ -15244,37 +15254,42 @@ var SidebarSizes = {
15244
15254
  /**
15245
15255
  * Variant styles for the Sidebar component
15246
15256
  */
15247
- var SidebarVariants = {
15248
- default: {
15249
- backgroundColor: 'white',
15250
- color: 'color.gray.800',
15251
- transition: 'all 0.2s ease'
15252
- },
15253
- filled: {
15254
- backgroundColor: 'color.gray.100',
15255
- color: 'color.gray.800',
15256
- transition: 'all 0.2s ease'
15257
- },
15258
- outline: {
15259
- backgroundColor: 'white',
15260
- borderWidth: '1px',
15261
- borderStyle: 'solid',
15262
- borderColor: 'color.gray.200',
15263
- color: 'color.gray.800',
15264
- transition: 'all 0.2s ease'
15265
- },
15266
- subtle: {
15267
- backgroundColor: 'color.gray.50',
15268
- color: 'color.gray.800',
15269
- transition: 'all 0.2s ease'
15270
- },
15271
- elevated: {
15272
- backgroundColor: 'white',
15273
- boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.1)',
15274
- color: 'color.gray.800',
15275
- transition: 'all 0.2s ease'
15276
- }
15257
+ var getSidebar = themeMode => {
15258
+ return {
15259
+ default: {
15260
+ backgroundColor: 'white',
15261
+ color: 'color.gray.800',
15262
+ transition: 'all 0.2s ease'
15263
+ },
15264
+ filled: {
15265
+ backgroundColor: 'color.gray.100',
15266
+ color: 'color.gray.800',
15267
+ transition: 'all 0.2s ease'
15268
+ },
15269
+ outline: {
15270
+ backgroundColor: 'white',
15271
+ borderWidth: '1px',
15272
+ borderStyle: 'solid',
15273
+ borderColor: 'color.gray.200',
15274
+ color: 'color.gray.800',
15275
+ transition: 'all 0.2s ease'
15276
+ },
15277
+ subtle: {
15278
+ backgroundColor: 'color.gray.50',
15279
+ color: 'color.gray.800',
15280
+ transition: 'all 0.2s ease'
15281
+ },
15282
+ elevated: {
15283
+ backgroundColor: 'white',
15284
+ boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.1)',
15285
+ color: 'color.gray.800',
15286
+ transition: 'all 0.2s ease'
15287
+ }
15288
+ };
15289
+ // Add dark mode conditional styling here
15277
15290
  };
15291
+ // For backward compatibility
15292
+ var SidebarVariants = /*#__PURE__*/getSidebar();
15278
15293
  /**
15279
15294
  * Position styles for the Sidebar component
15280
15295
  */
@@ -15317,10 +15332,10 @@ var SidebarTransitions = {
15317
15332
  bounce: 'width 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55)'
15318
15333
  };
15319
15334
 
15320
- var _excluded$T = ["children", "showToggleButton", "views"],
15321
- _excluded2$e = ["children", "views"],
15322
- _excluded3$a = ["children", "views"],
15323
- _excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views"];
15335
+ var _excluded$V = ["children", "showToggleButton", "views"],
15336
+ _excluded2$f = ["children", "views"],
15337
+ _excluded3$b = ["children", "views"],
15338
+ _excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
15324
15339
  // Create context for the Sidebar
15325
15340
  var SidebarContext = /*#__PURE__*/React.createContext({
15326
15341
  isExpanded: true,
@@ -15350,7 +15365,7 @@ var SidebarHeader = _ref2 => {
15350
15365
  showToggleButton = true,
15351
15366
  views
15352
15367
  } = _ref2,
15353
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$T);
15368
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$V);
15354
15369
  var {
15355
15370
  isExpanded,
15356
15371
  toggleExpanded,
@@ -15417,7 +15432,7 @@ var SidebarContent = _ref3 => {
15417
15432
  children,
15418
15433
  views
15419
15434
  } = _ref3,
15420
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$e);
15435
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$f);
15421
15436
  var {
15422
15437
  isExpanded
15423
15438
  } = useSidebarContext();
@@ -15435,7 +15450,7 @@ var SidebarFooter = _ref4 => {
15435
15450
  children,
15436
15451
  views
15437
15452
  } = _ref4,
15438
- props = _objectWithoutPropertiesLoose(_ref4, _excluded3$a);
15453
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$b);
15439
15454
  var {
15440
15455
  isExpanded
15441
15456
  } = useSidebarContext();
@@ -15505,7 +15520,7 @@ var SidebarView = _ref5 => {
15505
15520
  }))));
15506
15521
  };
15507
15522
 
15508
- var _excluded$U = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
15523
+ var _excluded$W = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
15509
15524
  /**
15510
15525
  * Sidebar component for creating collapsible, themeable and customizable sidebars.
15511
15526
  */
@@ -15527,7 +15542,7 @@ var SidebarComponent = _ref => {
15527
15542
  breakpointBehavior = 'overlay',
15528
15543
  views
15529
15544
  } = _ref,
15530
- props = _objectWithoutPropertiesLoose(_ref, _excluded$U);
15545
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$W);
15531
15546
  var {
15532
15547
  isExpanded,
15533
15548
  toggleExpanded,
@@ -15943,35 +15958,40 @@ var getHandleSizeStyles = (size, orientation) => {
15943
15958
  };
15944
15959
  return sizes[size];
15945
15960
  };
15946
- var HandleVariants = {
15947
- default: {
15948
- backgroundColor: 'transparent',
15949
- _hover: {
15950
- backgroundColor: 'color.gray.200'
15951
- },
15952
- _active: {
15953
- backgroundColor: 'color.gray.300'
15954
- }
15955
- },
15956
- subtle: {
15957
- backgroundColor: 'transparent',
15958
- _hover: {
15959
- backgroundColor: 'color.gray.100'
15961
+ var getHandle = themeMode => {
15962
+ return {
15963
+ default: {
15964
+ backgroundColor: 'transparent',
15965
+ _hover: {
15966
+ backgroundColor: 'color.gray.200'
15967
+ },
15968
+ _active: {
15969
+ backgroundColor: 'color.gray.300'
15970
+ }
15960
15971
  },
15961
- _active: {
15962
- backgroundColor: 'color.gray.200'
15963
- }
15964
- },
15965
- prominent: {
15966
- backgroundColor: 'color.gray.100',
15967
- _hover: {
15968
- backgroundColor: 'color.gray.200'
15972
+ subtle: {
15973
+ backgroundColor: 'transparent',
15974
+ _hover: {
15975
+ backgroundColor: 'color.gray.100'
15976
+ },
15977
+ _active: {
15978
+ backgroundColor: 'color.gray.200'
15979
+ }
15969
15980
  },
15970
- _active: {
15971
- backgroundColor: 'color.gray.300'
15981
+ prominent: {
15982
+ backgroundColor: 'color.gray.100',
15983
+ _hover: {
15984
+ backgroundColor: 'color.gray.200'
15985
+ },
15986
+ _active: {
15987
+ backgroundColor: 'color.gray.300'
15988
+ }
15972
15989
  }
15973
- }
15990
+ };
15991
+ // Add dark mode conditional styling here
15974
15992
  };
15993
+ // For backward compatibility
15994
+ var HandleVariants = /*#__PURE__*/getHandle();
15975
15995
  var HandleIconStyles = {
15976
15996
  horizontal: {
15977
15997
  width: '2px',
@@ -15987,9 +16007,9 @@ var HandleIconStyles = {
15987
16007
  }
15988
16008
  };
15989
16009
 
15990
- var _excluded$V = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
15991
- _excluded2$f = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
15992
- _excluded3$b = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "views"];
16010
+ var _excluded$X = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
16011
+ _excluded2$g = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
16012
+ _excluded3$c = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "views"];
15993
16013
  // Create context for the Resizable component
15994
16014
  var ResizableContext = /*#__PURE__*/React.createContext({
15995
16015
  orientation: 'horizontal',
@@ -16032,7 +16052,7 @@ var ResizablePanel = _ref2 => {
16032
16052
  onCollapseChange,
16033
16053
  views
16034
16054
  } = _ref2,
16035
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$V);
16055
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$X);
16036
16056
  var {
16037
16057
  orientation,
16038
16058
  registerPanel,
@@ -16096,7 +16116,7 @@ var ResizableHandle = _ref3 => {
16096
16116
  collapseTarget,
16097
16117
  views
16098
16118
  } = _ref3,
16099
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$f);
16119
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$g);
16100
16120
  var {
16101
16121
  orientation,
16102
16122
  size,
@@ -16236,7 +16256,7 @@ var ResizableView = _ref4 => {
16236
16256
  containerRef,
16237
16257
  views
16238
16258
  } = _ref4,
16239
- props = _objectWithoutPropertiesLoose(_ref4, _excluded3$b);
16259
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$c);
16240
16260
  var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
16241
16261
  return /*#__PURE__*/React__default.createElement(Container, Object.assign({
16242
16262
  ref: containerRef,
@@ -16247,7 +16267,7 @@ var ResizableView = _ref4 => {
16247
16267
  }, ResizableOrientations[orientation], views == null ? void 0 : views.container, props), children);
16248
16268
  };
16249
16269
 
16250
- var _excluded$W = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
16270
+ var _excluded$Y = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
16251
16271
  /**
16252
16272
  * Resizable component for creating resizable panel groups and layouts.
16253
16273
  */
@@ -16267,7 +16287,7 @@ var ResizableComponent = _ref => {
16267
16287
  keyboardResizeBy = 10,
16268
16288
  views
16269
16289
  } = _ref,
16270
- props = _objectWithoutPropertiesLoose(_ref, _excluded$W);
16290
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$Y);
16271
16291
  var {
16272
16292
  isResizing,
16273
16293
  setIsResizing,
@@ -16332,7 +16352,7 @@ Resizable.Handle = ResizableHandle;
16332
16352
  * Theme configurations for the Toast component
16333
16353
  * Following the design system color palette
16334
16354
  */
16335
- var Themes$2 = {
16355
+ var Themes$1 = {
16336
16356
  info: {
16337
16357
  container: {
16338
16358
  backgroundColor: 'color.blue.50',
@@ -16525,10 +16545,11 @@ var ToastView = _ref => {
16525
16545
  render,
16526
16546
  icon: customIcon,
16527
16547
  id,
16528
- isVisible = true
16548
+ isVisible = true,
16549
+ themeMode: elementMode
16529
16550
  } = _ref;
16530
16551
  // We don't need the auto-close timer here anymore as it's handled in the store
16531
- var Theme = theme != null ? theme : Themes$2;
16552
+ var Theme = theme != null ? theme : Themes$1;
16532
16553
  // Get the appropriate icon based on the variant
16533
16554
  var getIcon = () => {
16534
16555
  // If a custom icon is provided, use it
@@ -16908,29 +16929,34 @@ var CommandSizes = {
16908
16929
  maxHeight: '500px'
16909
16930
  }
16910
16931
  };
16911
- var CommandVariants = {
16912
- default: {
16913
- backgroundColor: 'white',
16914
- borderWidth: '1px',
16915
- borderStyle: 'solid',
16916
- borderColor: 'color.gray.200',
16917
- boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16918
- },
16919
- filled: {
16920
- backgroundColor: 'color.gray.50',
16921
- borderWidth: '1px',
16922
- borderStyle: 'solid',
16923
- borderColor: 'color.gray.200',
16924
- boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16925
- },
16926
- outline: {
16927
- backgroundColor: 'white',
16928
- borderWidth: '2px',
16929
- borderStyle: 'solid',
16930
- borderColor: 'color.gray.300',
16931
- boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16932
- }
16932
+ var getCommand = themeMode => {
16933
+ return {
16934
+ default: {
16935
+ backgroundColor: 'white',
16936
+ borderWidth: '1px',
16937
+ borderStyle: 'solid',
16938
+ borderColor: 'color.gray.200',
16939
+ boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16940
+ },
16941
+ filled: {
16942
+ backgroundColor: 'color.gray.50',
16943
+ borderWidth: '1px',
16944
+ borderStyle: 'solid',
16945
+ borderColor: 'color.gray.200',
16946
+ boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16947
+ },
16948
+ outline: {
16949
+ backgroundColor: 'white',
16950
+ borderWidth: '2px',
16951
+ borderStyle: 'solid',
16952
+ borderColor: 'color.gray.300',
16953
+ boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16954
+ }
16955
+ };
16956
+ // Add dark mode conditional styling here
16933
16957
  };
16958
+ // For backward compatibility
16959
+ var CommandVariants = /*#__PURE__*/getCommand();
16934
16960
  var CommandInputStyles = {
16935
16961
  display: 'flex',
16936
16962
  alignItems: 'center',
@@ -17026,9 +17052,9 @@ var CommandFooterStyles = {
17026
17052
  color: 'color.gray.500'
17027
17053
  };
17028
17054
 
17029
- var _excluded$X = ["value", "onValueChange", "placeholder", "views"],
17030
- _excluded2$g = ["children", "views"],
17031
- _excluded3$c = ["heading", "children", "views"],
17055
+ var _excluded$Z = ["value", "onValueChange", "placeholder", "views"],
17056
+ _excluded2$h = ["children", "views"],
17057
+ _excluded3$d = ["heading", "children", "views"],
17032
17058
  _excluded4$a = ["item", "selected", "onSelect", "views"],
17033
17059
  _excluded5$5 = ["children", "views"],
17034
17060
  _excluded6$3 = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "emptyState", "footer", "search", "setSearch", "selectedIndex", "setSelectedIndex", "filteredCommands", "filteredGroups", "listRef", "views", "filter"];
@@ -17058,7 +17084,7 @@ var CommandInput = _ref2 => {
17058
17084
  placeholder = 'Type a command or search...',
17059
17085
  views
17060
17086
  } = _ref2,
17061
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$X);
17087
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$Z);
17062
17088
  var inputRef = React.useRef(null);
17063
17089
  // Focus input when component mounts
17064
17090
  React__default.useEffect(() => {
@@ -17090,7 +17116,7 @@ var CommandList = _ref3 => {
17090
17116
  children,
17091
17117
  views
17092
17118
  } = _ref3,
17093
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$g);
17119
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$h);
17094
17120
  return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandListStyles, views == null ? void 0 : views.container, props), children);
17095
17121
  };
17096
17122
  // Command Group component
@@ -17100,7 +17126,7 @@ var CommandGroup = _ref4 => {
17100
17126
  children,
17101
17127
  views
17102
17128
  } = _ref4,
17103
- props = _objectWithoutPropertiesLoose(_ref4, _excluded3$c);
17129
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$d);
17104
17130
  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);
17105
17131
  };
17106
17132
  // Command Item component
@@ -17246,7 +17272,7 @@ var CommandView = _ref7 => {
17246
17272
  })))), footer && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandFooterStyles, views == null ? void 0 : views.footer), footer)))));
17247
17273
  };
17248
17274
 
17249
- var _excluded$Y = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
17275
+ var _excluded$_ = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
17250
17276
  /**
17251
17277
  * Command component for displaying a command palette with search functionality.
17252
17278
  */
@@ -17264,7 +17290,7 @@ var CommandComponent = _ref => {
17264
17290
  footer,
17265
17291
  views
17266
17292
  } = _ref,
17267
- props = _objectWithoutPropertiesLoose(_ref, _excluded$Y);
17293
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$_);
17268
17294
  var {
17269
17295
  search,
17270
17296
  setSearch,
@@ -17421,23 +17447,28 @@ var TooltipSizes = {
17421
17447
  maxWidth: '300px'
17422
17448
  }
17423
17449
  };
17424
- var TooltipVariants = {
17425
- default: {
17426
- backgroundColor: 'color.gray.800',
17427
- color: 'color.white'
17428
- },
17429
- light: {
17430
- backgroundColor: 'color.white',
17431
- color: 'color.gray.800',
17432
- borderWidth: '1px',
17433
- borderStyle: 'solid',
17434
- borderColor: 'color.gray.200'
17435
- },
17436
- dark: {
17437
- backgroundColor: 'color.black',
17438
- color: 'color.white'
17439
- }
17450
+ var getTooltip = themeMode => {
17451
+ return {
17452
+ default: {
17453
+ backgroundColor: 'color.gray.800',
17454
+ color: 'color.white'
17455
+ },
17456
+ light: {
17457
+ backgroundColor: 'color.white',
17458
+ color: 'color.gray.800',
17459
+ borderWidth: '1px',
17460
+ borderStyle: 'solid',
17461
+ borderColor: 'color.gray.200'
17462
+ },
17463
+ dark: {
17464
+ backgroundColor: 'color.black',
17465
+ color: 'color.white'
17466
+ }
17467
+ };
17468
+ // Add dark mode conditional styling here
17440
17469
  };
17470
+ // For backward compatibility
17471
+ var TooltipVariants = /*#__PURE__*/getTooltip();
17441
17472
  var getTooltipPositionStyles = (position, align) => {
17442
17473
  var baseStyles = {
17443
17474
  position: 'absolute',
@@ -17546,9 +17577,9 @@ var getArrowStyles = position => {
17546
17577
  }
17547
17578
  };
17548
17579
 
17549
- var _excluded$Z = ["children", "views", "asChild"],
17550
- _excluded2$h = ["children", "views"],
17551
- _excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views"];
17580
+ var _excluded$$ = ["children", "views", "asChild"],
17581
+ _excluded2$i = ["children", "views"],
17582
+ _excluded3$e = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
17552
17583
  // Create context for the Tooltip
17553
17584
  var TooltipContext = /*#__PURE__*/React.createContext({
17554
17585
  isOpen: false,
@@ -17582,7 +17613,7 @@ var TooltipTrigger = _ref2 => {
17582
17613
  views,
17583
17614
  asChild = false
17584
17615
  } = _ref2,
17585
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$Z);
17616
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$$);
17586
17617
  var {
17587
17618
  openTooltip,
17588
17619
  closeTooltip,
@@ -17618,7 +17649,7 @@ var TooltipContent = _ref3 => {
17618
17649
  children,
17619
17650
  views
17620
17651
  } = _ref3,
17621
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$h);
17652
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$i);
17622
17653
  var {
17623
17654
  isOpen,
17624
17655
  contentRef,
@@ -17648,7 +17679,7 @@ var TooltipView = _ref4 => {
17648
17679
  showArrow = true,
17649
17680
  views
17650
17681
  } = _ref4,
17651
- props = _objectWithoutPropertiesLoose(_ref4, _excluded3$d);
17682
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$e);
17652
17683
  var {
17653
17684
  isOpen,
17654
17685
  // openTooltip,
@@ -17675,7 +17706,7 @@ var TooltipView = _ref4 => {
17675
17706
  }, TooltipSizes[size], TooltipVariants[variant], positionStyles, views == null ? void 0 : views.content), typeof content === 'string' ? (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({}, views == null ? void 0 : views.text), content)) : content, showArrow && /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, arrowStyles, views == null ? void 0 : views.arrow)))));
17676
17707
  };
17677
17708
 
17678
- var _excluded$_ = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
17709
+ var _excluded$10 = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
17679
17710
  /**
17680
17711
  * Tooltip component for displaying additional information when hovering over an element.
17681
17712
  * Supports configurable positions, delays, and styling.
@@ -17695,7 +17726,7 @@ var TooltipComponent = _ref => {
17695
17726
  isDisabled = false,
17696
17727
  views
17697
17728
  } = _ref,
17698
- props = _objectWithoutPropertiesLoose(_ref, _excluded$_);
17729
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$10);
17699
17730
  var tooltipState = useTooltipState({
17700
17731
  defaultOpen,
17701
17732
  openDelay,