@app-studio/web 0.8.78 → 0.8.80

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 (37) 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/Card/Card/Card.style.d.ts +7 -3
  12. package/dist/components/Card/examples/darkModeExample.d.ts +2 -0
  13. package/dist/components/Command/Command/Command.style.d.ts +1 -0
  14. package/dist/components/ContextMenu/ContextMenu/ContextMenu.view.d.ts +2 -1
  15. package/dist/components/DragAndDrop/DragAndDrop/DragAndDrop.props.d.ts +1 -1
  16. package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.view.d.ts +2 -1
  17. package/dist/components/Menubar/Menubar/Menubar.view.d.ts +2 -1
  18. package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.view.d.ts +2 -1
  19. package/dist/components/Resizable/Resizable/Resizable.style.d.ts +1 -0
  20. package/dist/components/Separator/Separator/Separator.style.d.ts +1 -0
  21. package/dist/components/Sidebar/Sidebar/Sidebar.style.d.ts +1 -0
  22. package/dist/components/Slider/Slider/Slider.style.d.ts +1 -0
  23. package/dist/components/Table/Table/Table.props.d.ts +2 -2
  24. package/dist/components/Toast/Toast/Toast.props.d.ts +2 -1
  25. package/dist/components/Tooltip/Tooltip/Tooltip.style.d.ts +1 -0
  26. package/dist/components/Tooltip/Tooltip/Tooltip.view.d.ts +2 -1
  27. package/dist/web.cjs.development.js +520 -503
  28. package/dist/web.cjs.development.js.map +1 -1
  29. package/dist/web.cjs.production.min.js +1 -1
  30. package/dist/web.cjs.production.min.js.map +1 -1
  31. package/dist/web.esm.js +520 -503
  32. package/dist/web.esm.js.map +1 -1
  33. package/dist/web.umd.development.js +520 -503
  34. package/dist/web.umd.development.js.map +1 -1
  35. package/dist/web.umd.production.min.js +1 -1
  36. package/dist/web.umd.production.min.js.map +1 -1
  37. package/package.json +1 -1
@@ -143,7 +143,7 @@
143
143
  var _excluded = ["value", "children", "isDisabled", "views"],
144
144
  _excluded2 = ["children", "value", "isExpanded", "isDisabled", "triggerId", "contentId", "views", "asChild"],
145
145
  _excluded3 = ["children", "isExpanded", "isDisabled", "triggerId", "contentId", "views"],
146
- _excluded4 = ["children", "shape", "variant", "views", "baseId", "type", "collapsible"];
146
+ _excluded4 = ["children", "shape", "variant", "views", "baseId", "type", "collapsible", "themeMode"];
147
147
  // Create context for the Accordion
148
148
  var AccordionContext = /*#__PURE__*/React.createContext({
149
149
  expandedItems: [],
@@ -2789,93 +2789,104 @@
2789
2789
  * - Transitions: Subtle animations
2790
2790
  */
2791
2791
  /**
2792
- * Theme styles for different alert variants
2792
+ * Get theme styles for different alert variants based on theme mode
2793
2793
  */
2794
- var Themes = {
2795
- default: {
2796
- container: {
2797
- backgroundColor: 'color.gray.50',
2798
- borderColor: 'color.gray.200',
2799
- boxShadow: '0 1px 2px rgba(0, 0, 0, 0.05)'
2800
- },
2801
- content: {
2802
- color: 'color.gray.700'
2803
- },
2804
- icon: {
2805
- color: 'color.gray.500'
2806
- }
2807
- },
2808
- info: {
2809
- container: {
2810
- backgroundColor: 'color.blue.50',
2811
- borderColor: 'color.blue.200',
2812
- boxShadow: '0 1px 2px rgba(59, 130, 246, 0.05)'
2813
- },
2814
- content: {
2815
- color: 'color.blue.700'
2816
- },
2817
- icon: {
2818
- color: 'color.blue.500'
2819
- }
2820
- },
2821
- success: {
2822
- container: {
2823
- backgroundColor: 'color.green.50',
2824
- borderColor: 'color.green.200',
2825
- boxShadow: '0 1px 2px rgba(34, 197, 94, 0.05)'
2826
- },
2827
- content: {
2828
- color: 'color.green.700'
2829
- },
2830
- icon: {
2831
- color: 'color.green.500'
2832
- }
2833
- },
2834
- error: {
2835
- container: {
2836
- backgroundColor: 'color.red.50',
2837
- borderColor: 'color.red.200',
2838
- boxShadow: '0 1px 2px rgba(239, 68, 68, 0.05)'
2794
+ var getThemes = themeMode => {
2795
+ var isDarkMode = themeMode === 'dark';
2796
+ return {
2797
+ default: {
2798
+ container: {
2799
+ backgroundColor: isDarkMode ? 'color.gray.800' : 'color.gray.50',
2800
+ borderColor: isDarkMode ? 'color.gray.700' : 'color.gray.200',
2801
+ boxShadow: isDarkMode ? '0 1px 2px rgba(0, 0, 0, 0.2)' : '0 1px 2px rgba(0, 0, 0, 0.05)'
2802
+ },
2803
+ content: {
2804
+ color: isDarkMode ? 'color.gray.300' : 'color.gray.700'
2805
+ },
2806
+ icon: {
2807
+ color: isDarkMode ? 'color.gray.400' : 'color.gray.500'
2808
+ }
2839
2809
  },
2840
- content: {
2841
- color: 'color.red.700'
2810
+ info: {
2811
+ container: {
2812
+ backgroundColor: isDarkMode ? 'color.blue.900' : 'color.blue.50',
2813
+ borderColor: isDarkMode ? 'color.blue.800' : 'color.blue.200',
2814
+ boxShadow: isDarkMode ? '0 1px 2px rgba(59, 130, 246, 0.2)' : '0 1px 2px rgba(59, 130, 246, 0.05)'
2815
+ },
2816
+ content: {
2817
+ color: isDarkMode ? 'color.blue.300' : 'color.blue.700'
2818
+ },
2819
+ icon: {
2820
+ color: isDarkMode ? 'color.blue.400' : 'color.blue.500'
2821
+ }
2842
2822
  },
2843
- icon: {
2844
- color: 'color.red.500'
2845
- }
2846
- },
2847
- warning: {
2848
- container: {
2849
- backgroundColor: 'color.orange.50',
2850
- borderColor: 'color.orange.200',
2851
- boxShadow: '0 1px 2px rgba(249, 115, 22, 0.05)'
2823
+ success: {
2824
+ container: {
2825
+ backgroundColor: isDarkMode ? 'color.green.900' : 'color.green.50',
2826
+ borderColor: isDarkMode ? 'color.green.800' : 'color.green.200',
2827
+ boxShadow: isDarkMode ? '0 1px 2px rgba(34, 197, 94, 0.2)' : '0 1px 2px rgba(34, 197, 94, 0.05)'
2828
+ },
2829
+ content: {
2830
+ color: isDarkMode ? 'color.green.300' : 'color.green.700'
2831
+ },
2832
+ icon: {
2833
+ color: isDarkMode ? 'color.green.400' : 'color.green.500'
2834
+ }
2852
2835
  },
2853
- content: {
2854
- color: 'color.orange.700'
2836
+ error: {
2837
+ container: {
2838
+ backgroundColor: isDarkMode ? 'color.red.900' : 'color.red.50',
2839
+ borderColor: isDarkMode ? 'color.red.800' : 'color.red.200',
2840
+ boxShadow: isDarkMode ? '0 1px 2px rgba(239, 68, 68, 0.2)' : '0 1px 2px rgba(239, 68, 68, 0.05)'
2841
+ },
2842
+ content: {
2843
+ color: isDarkMode ? 'color.red.300' : 'color.red.700'
2844
+ },
2845
+ icon: {
2846
+ color: isDarkMode ? 'color.red.400' : 'color.red.500'
2847
+ }
2855
2848
  },
2856
- icon: {
2857
- color: 'color.orange.500'
2849
+ warning: {
2850
+ container: {
2851
+ backgroundColor: isDarkMode ? 'color.orange.900' : 'color.orange.50',
2852
+ borderColor: isDarkMode ? 'color.orange.800' : 'color.orange.200',
2853
+ boxShadow: isDarkMode ? '0 1px 2px rgba(249, 115, 22, 0.2)' : '0 1px 2px rgba(249, 115, 22, 0.05)'
2854
+ },
2855
+ content: {
2856
+ color: isDarkMode ? 'color.orange.300' : 'color.orange.700'
2857
+ },
2858
+ icon: {
2859
+ color: isDarkMode ? 'color.orange.400' : 'color.orange.500'
2860
+ }
2858
2861
  }
2859
- }
2862
+ };
2860
2863
  };
2861
2864
 
2865
+ var _excluded$4 = ["icon", "title", "views", "description", "variant", "themeMode"];
2862
2866
  /**
2863
2867
  * Alert component that displays important messages to users
2864
2868
  */
2865
2869
  var AlertView = _ref => {
2866
2870
  var {
2867
- icon,
2868
- title,
2869
- views,
2870
- description,
2871
- variant = 'default'
2872
- } = _ref;
2871
+ icon,
2872
+ title,
2873
+ views,
2874
+ description,
2875
+ variant = 'default',
2876
+ themeMode: elementMode
2877
+ } = _ref,
2878
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
2879
+ var {
2880
+ themeMode
2881
+ } = appStudio.useTheme();
2882
+ var currentThemeMode = elementMode || themeMode;
2883
+ var themes = getThemes(currentThemeMode);
2873
2884
  // Select the appropriate icon based on the variant
2874
2885
  var getIcon = () => {
2875
2886
  var _views$icon$color, _views$icon;
2876
2887
  if (icon) return icon;
2877
- // Use the theme color directly from Themes
2878
- 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;
2888
+ // Use the theme color directly from themes
2889
+ 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;
2879
2890
  var iconProps = {
2880
2891
  size: 20,
2881
2892
  color: iconColor
@@ -2906,12 +2917,12 @@
2906
2917
  ,
2907
2918
  borderWidth: "1px",
2908
2919
  borderStyle: "solid",
2909
- borderColor: Themes[variant].container.borderColor,
2910
- backgroundColor: Themes[variant].container.backgroundColor,
2911
- boxShadow: Themes[variant].container.containerShadow,
2920
+ borderColor: themes[variant].container.borderColor,
2921
+ backgroundColor: themes[variant].container.backgroundColor,
2922
+ boxShadow: themes[variant].container.boxShadow,
2912
2923
  // Animation
2913
2924
  transition: "all 0.2s ease"
2914
- }, views == null ? void 0 : views.container), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
2925
+ }, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
2915
2926
  alignSelf: "flex-start",
2916
2927
  marginTop: "2px"
2917
2928
  }, views == null ? void 0 : views.icon), getIcon()), /*#__PURE__*/React__default.createElement(appStudio.Vertical, {
@@ -2921,37 +2932,22 @@
2921
2932
  fontWeight: "600" // Semi-bold
2922
2933
  ,
2923
2934
  lineHeight: "24px",
2924
- color: Themes[variant].content.color
2935
+ color: themes[variant].content.color
2925
2936
  }, views == null ? void 0 : views.title), title), /*#__PURE__*/React__default.createElement(Text, Object.assign({
2926
2937
  fontSize: "14px",
2927
2938
  fontWeight: "400" // Regular
2928
2939
  ,
2929
2940
  lineHeight: "20px",
2930
- color: Themes[variant].content.color
2941
+ color: themes[variant].content.color
2931
2942
  }, views == null ? void 0 : views.description), description)));
2932
2943
  };
2933
2944
 
2934
- // Definition of the AlertComponent functional component with destructured props.
2935
- var AlertComponent = _ref => {
2936
- var {
2937
- icon,
2938
- title,
2939
- views,
2940
- description,
2941
- variant
2942
- } = _ref;
2943
- return /*#__PURE__*/React__default.createElement(AlertView, {
2944
- icon: icon,
2945
- title: title,
2946
- views: views,
2947
- description: description,
2948
- variant: variant
2949
- });
2950
- };
2945
+ // Definition of the AlertComponent functional component with props.
2946
+ var AlertComponent = props => /*#__PURE__*/React__default.createElement(AlertView, Object.assign({}, props));
2951
2947
  // Exporting the AlertComponent as 'Alert' for use in other parts of the application.
2952
2948
  var Alert = AlertComponent;
2953
2949
 
2954
- var _excluded$4 = ["ratio", "children", "views"];
2950
+ var _excluded$5 = ["ratio", "children", "views"];
2955
2951
  // Declaration of a functional component named AspectRatioView.
2956
2952
  var AspectRatioView = _ref => {
2957
2953
  var {
@@ -2962,7 +2958,7 @@
2962
2958
  views
2963
2959
  // Spread the rest of the props to inherit additional properties.
2964
2960
  } = _ref,
2965
- props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
2961
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
2966
2962
  return /*#__PURE__*/React__default.createElement(appStudio.Center, Object.assign({
2967
2963
  width: '100%',
2968
2964
  position: "relative",
@@ -2978,14 +2974,14 @@
2978
2974
  }, views == null ? void 0 : views.view), children));
2979
2975
  };
2980
2976
 
2981
- var _excluded$5 = ["ratio", "children"];
2977
+ var _excluded$6 = ["ratio", "children"];
2982
2978
  // Declaration of the AspectRatioComponent functional component with destructured props.
2983
2979
  var AspectRatioComponent = _ref => {
2984
2980
  var {
2985
2981
  ratio,
2986
2982
  children
2987
2983
  } = _ref,
2988
- props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
2984
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
2989
2985
  // Beginning of the return statement in the functional component.
2990
2986
  return /*#__PURE__*/React__default.createElement(AspectRatioView, Object.assign({
2991
2987
  ratio: ratio
@@ -3035,17 +3031,11 @@
3035
3031
  borderColor: 'transparent',
3036
3032
  backgroundColor: 'color.gray.100',
3037
3033
  boxShadow: '0px 2px 4px rgba(0, 0, 0, 0.1)',
3038
- transition: 'all 0.2s ease',
3039
- '@media (prefers-color-scheme: dark)': {
3040
- backgroundColor: 'color.gray.700'
3041
- }
3034
+ transition: 'all 0.2s ease'
3042
3035
  },
3043
3036
  fallback: {
3044
3037
  fontWeight: '500',
3045
- color: 'color.gray.600',
3046
- '@media (prefers-color-scheme: dark)': {
3047
- color: 'color.gray.300'
3048
- }
3038
+ color: 'color.gray.600'
3049
3039
  },
3050
3040
  image: {
3051
3041
  objectFit: 'cover',
@@ -3216,58 +3206,69 @@
3216
3206
  }
3217
3207
  };
3218
3208
  /**
3219
- * Badge variants with consistent styling
3209
+ * Get badge variants with consistent styling based on theme mode
3220
3210
  */
3221
- var BadgeVariants = {
3222
- filled: {
3223
- backgroundColor: 'theme.primary',
3224
- color: 'color.white',
3225
- borderWidth: '1px',
3226
- borderStyle: 'solid',
3227
- borderColor: 'transparent',
3228
- transition: 'all 0.2s ease'
3229
- },
3230
- outline: {
3231
- backgroundColor: 'transparent',
3232
- borderWidth: '1px',
3233
- borderStyle: 'solid',
3234
- borderColor: 'theme.primary',
3235
- color: 'theme.primary',
3236
- transition: 'all 0.2s ease'
3237
- },
3238
- link: {
3239
- backgroundColor: 'transparent',
3240
- borderWidth: '1px',
3241
- borderStyle: 'solid',
3242
- borderColor: 'transparent',
3243
- color: 'theme.primary',
3244
- textDecoration: 'underline',
3245
- textUnderlineOffset: '2px',
3246
- transition: 'all 0.2s ease'
3247
- },
3248
- ghost: {
3249
- backgroundColor: 'transparent',
3250
- color: 'color.gray.500',
3251
- borderWidth: '1px',
3252
- borderStyle: 'solid',
3253
- borderColor: 'transparent',
3254
- transition: 'all 0.2s ease'
3255
- }
3211
+ var getBadgeVariants = themeMode => {
3212
+ var isDarkMode = themeMode === 'dark';
3213
+ return {
3214
+ filled: {
3215
+ backgroundColor: 'theme.primary',
3216
+ color: isDarkMode ? 'color.gray.900' : 'color.white',
3217
+ borderWidth: '1px',
3218
+ borderStyle: 'solid',
3219
+ borderColor: 'transparent',
3220
+ transition: 'all 0.2s ease'
3221
+ },
3222
+ outline: {
3223
+ backgroundColor: 'transparent',
3224
+ borderWidth: '1px',
3225
+ borderStyle: 'solid',
3226
+ borderColor: 'theme.primary',
3227
+ color: 'theme.primary',
3228
+ transition: 'all 0.2s ease'
3229
+ },
3230
+ link: {
3231
+ backgroundColor: 'transparent',
3232
+ borderWidth: '1px',
3233
+ borderStyle: 'solid',
3234
+ borderColor: 'transparent',
3235
+ color: 'theme.primary',
3236
+ textDecoration: 'underline',
3237
+ textUnderlineOffset: '2px',
3238
+ transition: 'all 0.2s ease'
3239
+ },
3240
+ ghost: {
3241
+ backgroundColor: 'transparent',
3242
+ color: isDarkMode ? 'color.gray.400' : 'color.gray.500',
3243
+ borderWidth: '1px',
3244
+ borderStyle: 'solid',
3245
+ borderColor: 'transparent',
3246
+ transition: 'all 0.2s ease'
3247
+ }
3248
+ };
3256
3249
  };
3257
3250
 
3251
+ var _excluded$7 = ["content", "position", "shape", "variant", "size", "views", "themeMode"];
3258
3252
  // No need to import ViewProps as it's not used directly
3259
3253
  /**
3260
3254
  * Badge View Component
3261
3255
  */
3262
3256
  var BadgeView = _ref => {
3263
3257
  var {
3264
- content,
3265
- position,
3266
- shape = 'pillShaped',
3267
- variant = 'filled',
3268
- size = 'md',
3269
- views
3270
- } = _ref;
3258
+ content,
3259
+ position,
3260
+ shape = 'pillShaped',
3261
+ variant = 'filled',
3262
+ size = 'md',
3263
+ views,
3264
+ themeMode: elementMode
3265
+ } = _ref,
3266
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
3267
+ var {
3268
+ themeMode
3269
+ } = appStudio.useTheme();
3270
+ var currentThemeMode = elementMode || themeMode;
3271
+ var variantStyles = getBadgeVariants(currentThemeMode)[variant];
3271
3272
  // Combine styles for the badge
3272
3273
  var combinedStyles = Object.assign({
3273
3274
  // Base styles
@@ -3275,13 +3276,13 @@
3275
3276
  display: 'flex',
3276
3277
  alignItems: 'center',
3277
3278
  justifyContent: 'center',
3278
- backgrounColor: 'color.black',
3279
+ backgroundColor: 'color.black',
3279
3280
  // Apply shape, size, and variant styles
3280
3281
  borderRadius: BadgeShapes[shape]
3281
- }, BadgeSizes[size], BadgeVariants[variant], position ? PositionStyles[position] : {}, views == null ? void 0 : views.container);
3282
+ }, BadgeSizes[size], variantStyles, position ? PositionStyles[position] : {}, views == null ? void 0 : views.container);
3282
3283
  return /*#__PURE__*/React__default.createElement(appStudio.Center, Object.assign({
3283
3284
  role: "badge"
3284
- }, combinedStyles), /*#__PURE__*/React__default.createElement(Text, Object.assign({
3285
+ }, combinedStyles, props), /*#__PURE__*/React__default.createElement(Text, Object.assign({
3285
3286
  role: "badgeText",
3286
3287
  fontWeight: "500" // Medium weight for better readability
3287
3288
  ,
@@ -3291,29 +3292,8 @@
3291
3292
  }), content || ''));
3292
3293
  };
3293
3294
 
3294
- // Importing type definitions for BadgeProps that will be used to type-check the Badge component's props.
3295
- var Badge = _ref => {
3296
- var {
3297
- // Importing the BadgeView component which is the presentation component for Badge.
3298
- content,
3299
- // Exporting the Badge as a functional component from this module.
3300
- shape,
3301
- // Destructuring the props in the component function parameter list, to directly access individual properties.
3302
- position,
3303
- // Passing all the destructured props to the BadgeView component to maintain the same API surface.
3304
- variant,
3305
- size,
3306
- views
3307
- } = _ref;
3308
- return /*#__PURE__*/React__default.createElement(BadgeView, {
3309
- content: content,
3310
- shape: shape,
3311
- position: position,
3312
- variant: variant,
3313
- size: size,
3314
- views: views
3315
- });
3316
- };
3295
+ // Badge component that displays a small indicator, typically used for counts or status
3296
+ var Badge = props => /*#__PURE__*/React__default.createElement(BadgeView, Object.assign({}, props));
3317
3297
 
3318
3298
  var useButtonState = () => {
3319
3299
  var [isHovered, setIsHovered] = React__default.useState(false);
@@ -3345,7 +3325,7 @@
3345
3325
  xl: 20
3346
3326
  };
3347
3327
 
3348
- var _excluded$6 = ["children", "to", "iconSize", "underline", "isHovered", "isExternal", "views", "setIsHovered"];
3328
+ var _excluded$8 = ["children", "to", "iconSize", "underline", "isHovered", "isExternal", "views", "setIsHovered"];
3349
3329
  // Component definition for 'LinkView', a functional component with props defined by 'LinkViewProps'.
3350
3330
  var LinkView = _ref => {
3351
3331
  var {
@@ -3368,7 +3348,7 @@
3368
3348
  // Setter function for the hover state, noop function provided by default.
3369
3349
  setIsHovered = () => {}
3370
3350
  } = _ref,
3371
- props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
3351
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
3372
3352
  // Function to handle mouse enter/leave events to toggle hover state.
3373
3353
  var handleHover = () => {
3374
3354
  if (underline === 'hover') setIsHovered(true);
@@ -3560,6 +3540,9 @@
3560
3540
  ghost: {
3561
3541
  backgroundColor: 'transparent',
3562
3542
  color: color,
3543
+ borderWidth: 0,
3544
+ borderStyle: 'none',
3545
+ borderColor: 'transparent',
3563
3546
  on: {
3564
3547
  hover: {
3565
3548
  backgroundColor: color + "10",
@@ -3603,7 +3586,7 @@
3603
3586
  slow: 300
3604
3587
  };
3605
3588
 
3606
- var _excluded$7 = ["size", "speed", "color", "themeMode"],
3589
+ var _excluded$9 = ["size", "speed", "color", "themeMode"],
3607
3590
  _excluded2$2 = ["size", "speed", "color", "themeMode"],
3608
3591
  _excluded3$2 = ["size", "speed", "color", "themeMode"],
3609
3592
  _excluded4$2 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition", "views"];
@@ -3614,7 +3597,7 @@
3614
3597
  color = 'theme.loading',
3615
3598
  themeMode: elementMode
3616
3599
  } = _ref,
3617
- props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
3600
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
3618
3601
  var {
3619
3602
  getColor,
3620
3603
  themeMode
@@ -3779,7 +3762,7 @@
3779
3762
  // Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
3780
3763
  var Loader = LoaderComponent;
3781
3764
 
3782
- 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"];
3765
+ 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", "containerProps", "linkProps", "views"];
3783
3766
  var contrast = /*#__PURE__*/require('contrast');
3784
3767
  var ButtonView = _ref => {
3785
3768
  var _props$onClick;
@@ -3808,7 +3791,7 @@
3808
3791
  linkProps,
3809
3792
  views
3810
3793
  } = _ref,
3811
- props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
3794
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
3812
3795
  var {
3813
3796
  getColor,
3814
3797
  themeMode
@@ -3859,6 +3842,7 @@
3859
3842
  alignItems: "center",
3860
3843
  justifyContent: "center",
3861
3844
  "aria-label": ariaLabel,
3845
+ backgroundColor: "transparent",
3862
3846
  borderRadius: ButtonShapes[shape],
3863
3847
  onClick: (_props$onClick = props.onClick) != null ? _props$onClick : onClick,
3864
3848
  onMouseEnter: () => handleHover(true),
@@ -3926,97 +3910,95 @@
3926
3910
  pillShaped: '16px'
3927
3911
  };
3928
3912
  /**
3929
- * Card variants with consistent styling
3913
+ * Get card variants with consistent styling based on theme mode
3930
3914
  */
3931
- var CardVariants = {
3932
- default: {
3933
- backgroundColor: 'white',
3934
- border: 'none',
3935
- transition: 'all 0.2s ease'
3936
- },
3937
- outlined: {
3938
- backgroundColor: 'white',
3939
- borderWidth: '1px',
3940
- borderStyle: 'solid',
3941
- borderColor: 'color.gray.200',
3942
- transition: 'all 0.2s ease',
3943
- _hover: {
3944
- borderColor: 'color.gray.300'
3945
- }
3946
- },
3947
- elevated: {
3948
- backgroundColor: 'white',
3949
- boxShadow: '0px 2px 8px rgba(0, 0, 0, 0.08)',
3950
- border: 'none',
3951
- transition: 'all 0.2s ease',
3952
- _hover: {
3953
- boxShadow: '0px 4px 12px rgba(0, 0, 0, 0.12)',
3954
- transform: 'translateY(-2px)'
3915
+ var getCardVariants = themeMode => {
3916
+ var isDarkMode = themeMode === 'dark';
3917
+ return {
3918
+ default: {
3919
+ backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
3920
+ border: 'none',
3921
+ transition: 'all 0.2s ease'
3922
+ },
3923
+ outlined: {
3924
+ backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
3925
+ borderWidth: '1px',
3926
+ borderStyle: 'solid',
3927
+ borderColor: isDarkMode ? 'color.gray.700' : 'color.gray.200',
3928
+ transition: 'all 0.2s ease',
3929
+ _hover: {
3930
+ borderColor: isDarkMode ? 'color.gray.600' : 'color.gray.300'
3931
+ }
3932
+ },
3933
+ elevated: {
3934
+ backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
3935
+ boxShadow: isDarkMode ? '0px 2px 8px rgba(0, 0, 0, 0.2)' : '0px 2px 8px rgba(0, 0, 0, 0.08)',
3936
+ border: 'none',
3937
+ transition: 'all 0.2s ease',
3938
+ _hover: {
3939
+ boxShadow: isDarkMode ? '0px 4px 12px rgba(0, 0, 0, 0.25)' : '0px 4px 12px rgba(0, 0, 0, 0.12)',
3940
+ transform: 'translateY(-2px)'
3941
+ }
3955
3942
  }
3956
- }
3943
+ };
3957
3944
  };
3958
3945
  /**
3959
3946
  * Function to get default styles for Card components
3960
- * @param theme - Theme object (not used directly but kept for compatibility)
3947
+ * @param theme - Theme object from useTheme hook
3961
3948
  */
3962
- var getDefaultCardStyles = _theme => ({
3963
- container: {
3964
- backgroundColor: 'white',
3965
- borderRadius: '8px',
3966
- overflow: 'hidden',
3967
- transition: 'all 0.2s ease',
3968
- '@media (prefers-color-scheme: dark)': {
3969
- backgroundColor: 'color.gray.800',
3970
- color: 'color.gray.100'
3971
- }
3972
- },
3973
- header: {
3974
- padding: '16px',
3975
- borderBottomWidth: '1px',
3976
- borderBottomStyle: 'solid',
3977
- borderBottomColor: 'color.gray.200',
3978
- '@media (prefers-color-scheme: dark)': {
3979
- borderBottomColor: 'color.gray.700'
3980
- }
3981
- },
3982
- content: {
3983
- padding: '16px',
3984
- '@media (prefers-color-scheme: dark)': {
3985
- color: 'color.gray.100'
3986
- }
3987
- },
3988
- footer: {
3989
- padding: '16px',
3990
- borderTopWidth: '1px',
3991
- borderTopStyle: 'solid',
3992
- borderTopColor: 'color.gray.200',
3993
- '@media (prefers-color-scheme: dark)': {
3994
- borderTopColor: 'color.gray.700'
3949
+ var getDefaultCardStyles = theme => {
3950
+ var {
3951
+ themeMode
3952
+ } = theme;
3953
+ var isDarkMode = themeMode === 'dark';
3954
+ return {
3955
+ container: {
3956
+ backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
3957
+ color: isDarkMode ? 'color.gray.100' : 'color.gray.900',
3958
+ borderRadius: '8px',
3959
+ overflow: 'hidden',
3960
+ transition: 'all 0.2s ease'
3961
+ },
3962
+ header: {
3963
+ padding: '16px',
3964
+ borderBottomWidth: '1px',
3965
+ borderBottomStyle: 'solid',
3966
+ borderBottomColor: isDarkMode ? 'color.gray.700' : 'color.gray.200'
3967
+ },
3968
+ content: {
3969
+ padding: '16px',
3970
+ color: isDarkMode ? 'color.gray.100' : 'color.gray.900'
3971
+ },
3972
+ footer: {
3973
+ padding: '16px',
3974
+ borderTopWidth: '1px',
3975
+ borderTopStyle: 'solid',
3976
+ borderTopColor: isDarkMode ? 'color.gray.700' : 'color.gray.200'
3995
3977
  }
3996
- }
3997
- });
3978
+ };
3979
+ };
3998
3980
 
3999
3981
  var CardContext = /*#__PURE__*/React.createContext({});
4000
3982
  var useCardContext = () => {
4001
3983
  return React.useContext(CardContext);
4002
3984
  };
4003
3985
 
4004
- var _excluded$9 = ["children", "views", "style"],
4005
- _excluded2$3 = ["children", "views", "style"],
4006
- _excluded3$3 = ["children", "views", "style"],
4007
- _excluded4$3 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style"];
3986
+ var _excluded$b = ["children", "views", "style", "themeMode"],
3987
+ _excluded2$3 = ["children", "views", "style", "themeMode"],
3988
+ _excluded3$3 = ["children", "views", "style", "themeMode"],
3989
+ _excluded4$3 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style", "themeMode"];
4008
3990
  var CardHeader = _ref => {
4009
3991
  var _contextStyles$header;
4010
3992
  var {
4011
3993
  children,
4012
3994
  style
4013
3995
  } = _ref,
4014
- props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
3996
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
4015
3997
  var theme = appStudio.useTheme();
4016
3998
  var {
4017
3999
  styles: contextStyles
4018
4000
  } = useCardContext();
4019
- var defaultStyles = getDefaultCardStyles().header;
4001
+ var defaultStyles = getDefaultCardStyles(theme).header;
4020
4002
  // Merge styles: Default < Context Override < Direct Props/Style
4021
4003
  var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.header, props, {
4022
4004
  style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$header = contextStyles.header) == null ? void 0 : _contextStyles$header.style, style)
@@ -4034,7 +4016,7 @@
4034
4016
  var {
4035
4017
  styles: contextStyles
4036
4018
  } = useCardContext();
4037
- var defaultStyles = getDefaultCardStyles().content;
4019
+ var defaultStyles = getDefaultCardStyles(theme).content;
4038
4020
  // Merge styles: Default < Context Override < Direct Props/Style
4039
4021
  var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.content, props, {
4040
4022
  style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$conten = contextStyles.content) == null ? void 0 : _contextStyles$conten.style, style)
@@ -4052,7 +4034,7 @@
4052
4034
  var {
4053
4035
  styles: contextStyles
4054
4036
  } = useCardContext();
4055
- var defaultStyles = getDefaultCardStyles().footer;
4037
+ var defaultStyles = getDefaultCardStyles(theme).footer;
4056
4038
  // Merge styles: Default < Context Override < Direct Props/Style
4057
4039
  var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.footer, props, {
4058
4040
  style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$footer = contextStyles.footer) == null ? void 0 : _contextStyles$footer.style, style)
@@ -4070,11 +4052,12 @@
4070
4052
  footer,
4071
4053
  isFullWidth = false,
4072
4054
  views,
4073
- style
4055
+ style,
4056
+ themeMode: elementMode
4074
4057
  } = _ref4,
4075
4058
  props = _objectWithoutPropertiesLoose(_ref4, _excluded4$3);
4076
4059
  var theme = appStudio.useTheme();
4077
- var defaultStyles = getDefaultCardStyles();
4060
+ var defaultStyles = getDefaultCardStyles(theme);
4078
4061
  // Prepare context value, merging default styles with user's `views` overrides
4079
4062
  var contextValue = React.useMemo(() => ({
4080
4063
  styles: {
@@ -4087,12 +4070,18 @@
4087
4070
  // Determine if we have explicit Card.Header, Card.Content, Card.Footer components
4088
4071
  // or if we need to wrap children in a default layout
4089
4072
  var hasExplicitStructure = React__default.Children.toArray(children).some(child => /*#__PURE__*/React__default.isValidElement(child) && (child.type === CardHeader || child.type === CardContent || child.type === CardFooter));
4073
+ // Get the appropriate variant styles based on theme mode
4074
+ var {
4075
+ themeMode
4076
+ } = theme;
4077
+ var currentThemeMode = elementMode || themeMode;
4078
+ var variantStyles = getCardVariants(currentThemeMode)[variant];
4090
4079
  // Merge styles for the root element
4091
4080
  var mergedRootProps = Object.assign({
4092
4081
  width: isFullWidth ? '100%' : 'auto',
4093
4082
  borderRadius: CardShapes[shape],
4094
4083
  overflow: 'hidden'
4095
- }, CardVariants[variant], contextValue.styles.container, props, {
4084
+ }, variantStyles, contextValue.styles.container, props, {
4096
4085
  style: Object.assign({}, (_contextValue$styles$ = contextValue.styles.container) == null ? void 0 : _contextValue$styles$.style, style)
4097
4086
  });
4098
4087
  return /*#__PURE__*/React__default.createElement(CardContext.Provider, {
@@ -4403,19 +4392,19 @@
4403
4392
  return context;
4404
4393
  };
4405
4394
 
4406
- var _excluded$a = ["children", "isActive", "views"],
4395
+ var _excluded$c = ["children", "isActive", "views"],
4407
4396
  _excluded2$4 = ["views", "children"],
4408
4397
  _excluded3$4 = ["views", "children"],
4409
4398
  _excluded4$4 = ["children", "views"],
4410
4399
  _excluded5$1 = ["children", "views", "style"],
4411
- _excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views"];
4400
+ _excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views", "themeMode"];
4412
4401
  var CarouselSlide = _ref => {
4413
4402
  var {
4414
4403
  children,
4415
4404
  isActive,
4416
4405
  views
4417
4406
  } = _ref,
4418
- props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
4407
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
4419
4408
  return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
4420
4409
  flexShrink: 0,
4421
4410
  width: "100%",
@@ -5339,7 +5328,7 @@
5339
5328
  })));
5340
5329
  };
5341
5330
 
5342
- 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"];
5331
+ 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"];
5343
5332
  var ChartView = _ref => {
5344
5333
  var {
5345
5334
  type,
@@ -5367,7 +5356,7 @@
5367
5356
  noDataIndicator,
5368
5357
  'aria-label': ariaLabel
5369
5358
  } = _ref,
5370
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
5359
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
5371
5360
  // Use chart state hook
5372
5361
  var {
5373
5362
  animationProgress,
@@ -5697,12 +5686,12 @@
5697
5686
  };
5698
5687
  };
5699
5688
 
5700
- var _excluded$c = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
5689
+ var _excluded$e = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
5701
5690
  _excluded2$5 = ["items", "children", "position", "side", "align", "views", "style"],
5702
5691
  _excluded3$5 = ["item", "children", "onSelect", "isDisabled", "views"],
5703
5692
  _excluded4$5 = ["views"],
5704
5693
  _excluded5$2 = ["views"],
5705
- _excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views"];
5694
+ _excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views", "themeMode"];
5706
5695
  // Create context for the ContextMenu
5707
5696
  var ContextMenuContext = /*#__PURE__*/React.createContext({
5708
5697
  isOpen: false,
@@ -5753,7 +5742,7 @@
5753
5742
  isDisabled = false,
5754
5743
  views
5755
5744
  } = _ref2,
5756
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$c);
5745
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$e);
5757
5746
  var {
5758
5747
  triggerRef,
5759
5748
  contentId,
@@ -6036,7 +6025,7 @@
6036
6025
  }));
6037
6026
  };
6038
6027
 
6039
- var _excluded$d = ["children", "items", "size", "variant", "disableNativeContextMenu", "onOpenChange", "views"];
6028
+ var _excluded$f = ["children", "items", "size", "variant", "disableNativeContextMenu", "onOpenChange", "views"];
6040
6029
  /**
6041
6030
  * ContextMenu component for displaying a custom context menu on right-click.
6042
6031
  * Supports both data-driven approach (with items prop) and compound component pattern.
@@ -6051,7 +6040,7 @@
6051
6040
  onOpenChange,
6052
6041
  views
6053
6042
  } = _ref,
6054
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
6043
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
6055
6044
  var state = useContextMenuState({
6056
6045
  size,
6057
6046
  variant,
@@ -6103,7 +6092,7 @@
6103
6092
  ContextMenu.Divider = ContextMenuDivider;
6104
6093
  ContextMenu.Separator = ContextMenuSeparator; // Add the Separator component
6105
6094
 
6106
- var _excluded$e = ["src", "color", "views", "themeMode"],
6095
+ var _excluded$g = ["src", "color", "views", "themeMode"],
6107
6096
  _excluded2$6 = ["path"];
6108
6097
  var FileSVG = _ref => {
6109
6098
  var {
@@ -6111,7 +6100,7 @@
6111
6100
  color,
6112
6101
  views
6113
6102
  } = _ref,
6114
- props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
6103
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
6115
6104
  var {
6116
6105
  getColor,
6117
6106
  themeMode
@@ -6185,7 +6174,7 @@
6185
6174
  };
6186
6175
  };
6187
6176
 
6188
- var _excluded$f = ["children", "views"];
6177
+ var _excluded$h = ["children", "views"];
6189
6178
  var HelperText = _ref => {
6190
6179
  var {
6191
6180
  children,
@@ -6193,7 +6182,7 @@
6193
6182
  helperText: {}
6194
6183
  }
6195
6184
  } = _ref,
6196
- props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
6185
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
6197
6186
  return /*#__PURE__*/React__default.createElement(Text
6198
6187
  // Typography properties
6199
6188
  , Object.assign({
@@ -6219,7 +6208,7 @@
6219
6208
  }, views['helperText'], props), children);
6220
6209
  };
6221
6210
 
6222
- var _excluded$g = ["children", "helperText", "error", "views"];
6211
+ var _excluded$i = ["children", "helperText", "error", "views"];
6223
6212
  var FieldContainer = _ref => {
6224
6213
  var {
6225
6214
  children,
@@ -6227,7 +6216,7 @@
6227
6216
  error = false,
6228
6217
  views
6229
6218
  } = _ref,
6230
- props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
6219
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
6231
6220
  return /*#__PURE__*/React__default.createElement(appStudio.Vertical
6232
6221
  // Layout properties
6233
6222
  , Object.assign({
@@ -6364,7 +6353,7 @@
6364
6353
  paddingRight: '16px'
6365
6354
  };
6366
6355
 
6367
- var _excluded$h = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "showLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "views"];
6356
+ var _excluded$j = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "showLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "views"];
6368
6357
  var FieldContent = _ref => {
6369
6358
  var {
6370
6359
  shadow,
@@ -6382,7 +6371,7 @@
6382
6371
  pickerBox: {}
6383
6372
  }
6384
6373
  } = _ref,
6385
- props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
6374
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
6386
6375
  // Determine if the field is in an interactive state
6387
6376
  var isInteractive = (isHovered || isFocused) && !isDisabled;
6388
6377
  // Set the appropriate color based on state
@@ -6411,12 +6400,12 @@
6411
6400
  }, showLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], views['box'], props), children);
6412
6401
  };
6413
6402
 
6414
- var _excluded$i = ["children"];
6403
+ var _excluded$k = ["children"];
6415
6404
  var FieldIcons = _ref => {
6416
6405
  var {
6417
6406
  children
6418
6407
  } = _ref,
6419
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
6408
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
6420
6409
  return /*#__PURE__*/React__default.createElement(appStudio.Center, Object.assign({
6421
6410
  gap: 10,
6422
6411
  right: 16,
@@ -6468,7 +6457,7 @@
6468
6457
  }
6469
6458
  };
6470
6459
 
6471
- var _excluded$j = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
6460
+ var _excluded$l = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
6472
6461
  var LabelView = _ref => {
6473
6462
  var {
6474
6463
  children,
@@ -6484,7 +6473,7 @@
6484
6473
  size = 'sm'
6485
6474
  // The fontSize prop for the Element is determined by the 'size' prop passed to LabelView.
6486
6475
  } = _ref,
6487
- props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
6476
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
6488
6477
  // The fontStyle prop toggles between 'italic' and 'normal' based on the 'isItalic' boolean prop.
6489
6478
  var headingStyles = heading ? HeadingSizes$1[heading] : {};
6490
6479
  // fontWeight is derived from the Typography module, ensuring consistent font weighting across the app.
@@ -6516,7 +6505,7 @@
6516
6505
  var Label = LabelComponent;
6517
6506
  // Export the 'LabelComponent' as 'Label' to be reused throughout the project.
6518
6507
 
6519
- var _excluded$k = ["children", "size", "error", "color", "views", "helperText"];
6508
+ var _excluded$m = ["children", "size", "error", "color", "views", "helperText"];
6520
6509
  var FieldLabel = _ref => {
6521
6510
  var {
6522
6511
  children,
@@ -6527,7 +6516,7 @@
6527
6516
  label: {}
6528
6517
  }
6529
6518
  } = _ref,
6530
- props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
6519
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
6531
6520
  return /*#__PURE__*/React__default.createElement(Label
6532
6521
  // Position properties
6533
6522
  , Object.assign({
@@ -6548,12 +6537,12 @@
6548
6537
  }, views['label'], props), children);
6549
6538
  };
6550
6539
 
6551
- var _excluded$l = ["children"];
6540
+ var _excluded$n = ["children"];
6552
6541
  var FieldWrapper = _ref => {
6553
6542
  var {
6554
6543
  children
6555
6544
  } = _ref,
6556
- props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
6545
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
6557
6546
  return /*#__PURE__*/React__default.createElement(appStudio.Vertical
6558
6547
  // Layout properties
6559
6548
  , Object.assign({
@@ -6586,7 +6575,7 @@
6586
6575
  xl: 28
6587
6576
  };
6588
6577
 
6589
- var _excluded$m = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
6578
+ var _excluded$o = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
6590
6579
  _excluded2$7 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
6591
6580
  _excluded3$6 = ["option", "size", "removeOption"],
6592
6581
  _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"];
@@ -6604,7 +6593,7 @@
6604
6593
  callback = () => {},
6605
6594
  style
6606
6595
  } = _ref,
6607
- props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
6596
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
6608
6597
  // Handles the click event on an option by invoking the callback with the selected option's value
6609
6598
  var handleOptionClick = option => callback(option);
6610
6599
  // Toggles the hover state on the item
@@ -7103,7 +7092,7 @@
7103
7092
  }
7104
7093
  };
7105
7094
 
7106
- var _excluded$n = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "views"];
7095
+ var _excluded$p = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "views"];
7107
7096
  var SwitchContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
7108
7097
  type: "checkbox"
7109
7098
  }, props));
@@ -7132,7 +7121,7 @@
7132
7121
  label: {}
7133
7122
  }
7134
7123
  } = _ref,
7135
- props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
7124
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
7136
7125
  var handleToggle = event => {
7137
7126
  if (!isReadOnly) {
7138
7127
  setValue(!value);
@@ -7256,7 +7245,7 @@
7256
7245
  // Export of the useTextAreaState hook for external usage.
7257
7246
  };
7258
7247
 
7259
- 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"];
7248
+ 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"];
7260
7249
  var TextAreaView = _ref => {
7261
7250
  var {
7262
7251
  id,
@@ -7282,7 +7271,6 @@
7282
7271
  onBlur = () => {},
7283
7272
  onChange,
7284
7273
  onFocus,
7285
- onChangeText,
7286
7274
  setHint = () => {},
7287
7275
  setValue = () => {},
7288
7276
  setIsFocused = () => {},
@@ -7292,7 +7280,7 @@
7292
7280
  helperText: {}
7293
7281
  }
7294
7282
  } = _ref,
7295
- props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
7283
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
7296
7284
  var showLabel = !!(isFocused && label);
7297
7285
  /**
7298
7286
  * Styles for the textarea field
@@ -7337,11 +7325,9 @@
7337
7325
  var handleChange = event => {
7338
7326
  if (typeof event === 'string') {
7339
7327
  setValue(event);
7340
- if (onChangeText) onChangeText(event);
7341
7328
  if (onChange) onChange(event);
7342
7329
  } else {
7343
7330
  setValue(event.target.value);
7344
- if (onChangeText) onChangeText(event.target.value);
7345
7331
  if (onChange) onChange(event.target.value);
7346
7332
  }
7347
7333
  };
@@ -7380,15 +7366,13 @@
7380
7366
  readOnly: isReadOnly,
7381
7367
  disabled: isDisabled,
7382
7368
  autoFocus: isAutoFocus,
7383
- editable: isEditable,
7369
+ editable: !!isEditable.toString(),
7384
7370
  placeholder: hint,
7385
7371
  onBlur: handleBlur,
7386
7372
  onFocus: handleFocus,
7387
- multiline: isMultiline
7388
- }, fieldStyles, {
7389
- onChange: handleChange,
7390
- onChangeText: handleChange
7391
- }, views == null ? void 0 : views.textarea)))));
7373
+ multiline: !!isMultiline.toString(),
7374
+ onChange: handleChange
7375
+ }, fieldStyles, views == null ? void 0 : views.textarea)))));
7392
7376
  };
7393
7377
 
7394
7378
  // Defines the TextAreaComponent as a functional component that accepts TextAreaProps for type safety and structure.
@@ -7435,7 +7419,7 @@
7435
7419
  };
7436
7420
  };
7437
7421
 
7438
- 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"];
7422
+ 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"];
7439
7423
  /**
7440
7424
  * Input component for text fields
7441
7425
  */
@@ -7481,7 +7465,7 @@
7481
7465
  onBlur = () => {},
7482
7466
  themeMode: elementMode
7483
7467
  } = _ref,
7484
- props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
7468
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
7485
7469
  var {
7486
7470
  getColor,
7487
7471
  themeMode
@@ -7739,7 +7723,7 @@
7739
7723
  }
7740
7724
  };
7741
7725
 
7742
- 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"];
7726
+ 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"];
7743
7727
  var CheckboxView = _ref => {
7744
7728
  var {
7745
7729
  id,
@@ -7766,7 +7750,7 @@
7766
7750
  },
7767
7751
  infoText
7768
7752
  } = _ref,
7769
- props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
7753
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
7770
7754
  var handleHover = () => setIsHovered(!isHovered);
7771
7755
  var handleChange = () => {
7772
7756
  if (!isReadOnly && !isDisabled) {
@@ -9352,11 +9336,11 @@
9352
9336
  xl: 16
9353
9337
  };
9354
9338
 
9355
- var _excluded$r = ["size"],
9339
+ var _excluded$t = ["size"],
9356
9340
  _excluded2$8 = ["size"],
9357
9341
  _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"];
9358
9342
  var CountryList = _ref => {
9359
- var props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
9343
+ var props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
9360
9344
  return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
9361
9345
  as: "ul"
9362
9346
  }, props));
@@ -9595,7 +9579,7 @@
9595
9579
  };
9596
9580
  };
9597
9581
 
9598
- 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"];
9582
+ 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"];
9599
9583
  var DatePickerContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
9600
9584
  type: "date"
9601
9585
  }, props));
@@ -9628,7 +9612,7 @@
9628
9612
  onChange,
9629
9613
  onChangeText
9630
9614
  } = _ref,
9631
- props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
9615
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
9632
9616
  var showLabel = !!(isFocused && label);
9633
9617
  var handleHover = () => setIsHovered(!isHovered);
9634
9618
  var handleFocus = () => setIsFocused(true);
@@ -9715,7 +9699,7 @@
9715
9699
  }, props, textFieldStates);
9716
9700
  };
9717
9701
 
9718
- var _excluded$t = ["visibleIcon", "hiddenIcon"],
9702
+ var _excluded$v = ["visibleIcon", "hiddenIcon"],
9719
9703
  _excluded2$9 = ["isVisible", "setIsVisible"];
9720
9704
  var PasswordComponent = _ref => {
9721
9705
  var {
@@ -9726,7 +9710,7 @@
9726
9710
  widthHeight: 14
9727
9711
  })
9728
9712
  } = _ref,
9729
- props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
9713
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
9730
9714
  var _usePasswordState = usePasswordState(props),
9731
9715
  {
9732
9716
  isVisible,
@@ -9780,7 +9764,7 @@
9780
9764
  };
9781
9765
  };
9782
9766
 
9783
- var _excluded$u = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "views", "isDropdownVisible", "setIsDropdownVisible"];
9767
+ var _excluded$w = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "views", "isDropdownVisible", "setIsDropdownVisible"];
9784
9768
  // Defines the functional component 'ComboBoxView' with destructured props.
9785
9769
  var ComboBoxView = _ref => {
9786
9770
  var {
@@ -9805,7 +9789,7 @@
9805
9789
  setIsDropdownVisible
9806
9790
  // Collects all further props not destructured explicitly.
9807
9791
  } = _ref,
9808
- props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
9792
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
9809
9793
  // Sets up an effect to handle clicking outside the dropdown to close it.
9810
9794
  React.useEffect(() => {
9811
9795
  var handleClickOutside = event => {
@@ -9917,7 +9901,7 @@
9917
9901
  }))))))))))));
9918
9902
  };
9919
9903
 
9920
- var _excluded$v = ["id", "name", "items", "placeholder", "searchPlaceholder"];
9904
+ var _excluded$x = ["id", "name", "items", "placeholder", "searchPlaceholder"];
9921
9905
  // Defines the ComboBoxComponent functional component with ComboBoxProps
9922
9906
  var ComboBoxComponent = _ref => {
9923
9907
  var {
@@ -9933,7 +9917,7 @@
9933
9917
  searchPlaceholder
9934
9918
  // Destructures the rest of the props not explicitly defined
9935
9919
  } = _ref,
9936
- props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
9920
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
9937
9921
  // Initializes ComboBox state using custom hook with items and placeholders
9938
9922
  var state = useComboBoxState(items, placeholder, searchPlaceholder);
9939
9923
  return (
@@ -10238,7 +10222,7 @@
10238
10222
  };
10239
10223
  };
10240
10224
 
10241
- 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"];
10225
+ 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"];
10242
10226
  // Create a context for OTP input slots
10243
10227
  var OTPInputContext = /*#__PURE__*/React.createContext({
10244
10228
  slots: [],
@@ -10292,7 +10276,7 @@
10292
10276
  onFocus = () => {}
10293
10277
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
10294
10278
  } = _ref,
10295
- props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
10279
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
10296
10280
  appStudio.useTheme(); // Initialize theme context
10297
10281
  var showLabel = !!label;
10298
10282
  // Create context value for slots
@@ -10522,7 +10506,7 @@
10522
10506
  };
10523
10507
  var OTPInput = OTPInputComponent;
10524
10508
 
10525
- var _excluded$x = ["children", "autoFocus", "initFocus", "onChange"];
10509
+ var _excluded$z = ["children", "autoFocus", "initFocus", "onChange"];
10526
10510
  var FocusContext = /*#__PURE__*/React.createContext({
10527
10511
  active: false,
10528
10512
  focusNextInput: () => {},
@@ -10538,7 +10522,7 @@
10538
10522
  initFocus,
10539
10523
  onChange = () => {}
10540
10524
  } = _ref,
10541
- props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
10525
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
10542
10526
  var formik$1 = formik.useFormikContext();
10543
10527
  React.useEffect(() => {
10544
10528
  onChange(formik$1.values);
@@ -10586,7 +10570,7 @@
10586
10570
  }, /*#__PURE__*/React__default.createElement(appStudio.Form, Object.assign({}, props), children));
10587
10571
  };
10588
10572
 
10589
- var _excluded$y = ["name", "type"];
10573
+ var _excluded$A = ["name", "type"];
10590
10574
  var getInputTypeProps = type => {
10591
10575
  switch (type) {
10592
10576
  case 'email':
@@ -10625,7 +10609,7 @@
10625
10609
  name,
10626
10610
  type
10627
10611
  } = _ref,
10628
- props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
10612
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
10629
10613
  var focus = useFormFocus();
10630
10614
  var {
10631
10615
  touched,
@@ -10669,13 +10653,13 @@
10669
10653
  } : {});
10670
10654
  };
10671
10655
 
10672
- var _excluded$z = ["value"];
10656
+ var _excluded$B = ["value"];
10673
10657
  var CheckboxComponent$1 = props => {
10674
10658
  var _useFormikInput = useFormikInput(props),
10675
10659
  {
10676
10660
  value
10677
10661
  } = _useFormikInput,
10678
- formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$z);
10662
+ formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$B);
10679
10663
  formProps.isChecked = value;
10680
10664
  var checkboxStates = useCheckboxState(props);
10681
10665
  return /*#__PURE__*/React__default.createElement(CheckboxView, Object.assign({}, checkboxStates, formProps));
@@ -10733,11 +10717,11 @@
10733
10717
  */
10734
10718
  var FormikTextArea = TextAreaComponent$1;
10735
10719
 
10736
- var _excluded$A = ["value"];
10720
+ var _excluded$C = ["value"];
10737
10721
  var TextFieldComponent$1 = props => {
10738
10722
  var formProps = useFormikInput(props);
10739
10723
  var _useTextFieldState = useTextFieldState(props),
10740
- textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$A);
10724
+ textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$C);
10741
10725
  return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, textFieldStates, formProps));
10742
10726
  };
10743
10727
  /**
@@ -10745,7 +10729,7 @@
10745
10729
  */
10746
10730
  var FormikTextField = TextFieldComponent$1;
10747
10731
 
10748
- var _excluded$B = ["visibleIcon", "hiddenIcon"],
10732
+ var _excluded$D = ["visibleIcon", "hiddenIcon"],
10749
10733
  _excluded2$a = ["isVisible", "setIsVisible"];
10750
10734
  var PasswordComponent$1 = _ref => {
10751
10735
  var {
@@ -10756,7 +10740,7 @@
10756
10740
  widthHeight: 14
10757
10741
  })
10758
10742
  } = _ref,
10759
- props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
10743
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
10760
10744
  var formProps = useFormikInput(props);
10761
10745
  var _usePasswordState = usePasswordState(formProps),
10762
10746
  {
@@ -10781,14 +10765,14 @@
10781
10765
  */
10782
10766
  var FormikPassword = PasswordComponent$1;
10783
10767
 
10784
- var _excluded$C = ["items", "placeholder", "searchPlaceholder"];
10768
+ var _excluded$E = ["items", "placeholder", "searchPlaceholder"];
10785
10769
  var ComboBoxComponent$1 = _ref => {
10786
10770
  var {
10787
10771
  items,
10788
10772
  placeholder,
10789
10773
  searchPlaceholder
10790
10774
  } = _ref,
10791
- props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
10775
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
10792
10776
  var formProps = useFormikInput(props);
10793
10777
  var ComboBoxStates = useComboBoxState(items, placeholder, searchPlaceholder);
10794
10778
  // Ensure the onChange function from formProps is being called when an item is selected
@@ -11012,17 +10996,22 @@
11012
10996
  rounded: 4,
11013
10997
  pillShaped: 24
11014
10998
  };
11015
- var SliderVariants = {
11016
- default: {
11017
- backgroundColor: 'color.blueGray.200'
11018
- },
11019
- outline: {
11020
- backgroundColor: 'transparent',
11021
- borderWidth: 1,
11022
- borderStyle: 'solid',
11023
- borderColor: 'color.blueGray.300'
11024
- }
10999
+ var getSlider = themeMode => {
11000
+ return {
11001
+ default: {
11002
+ backgroundColor: 'color.blueGray.200'
11003
+ },
11004
+ outline: {
11005
+ backgroundColor: 'transparent',
11006
+ borderWidth: 1,
11007
+ borderStyle: 'solid',
11008
+ borderColor: 'color.blueGray.300'
11009
+ }
11010
+ };
11011
+ // Add dark mode conditional styling here
11025
11012
  };
11013
+ // For backward compatibility
11014
+ var SliderVariants = /*#__PURE__*/getSlider();
11026
11015
  // Maps Size enum to track height/width and thumb size for the new implementation
11027
11016
  var EnhancedSliderSizes = {
11028
11017
  xs: {
@@ -11064,7 +11053,7 @@
11064
11053
  }
11065
11054
  };
11066
11055
 
11067
- 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"];
11056
+ 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"];
11068
11057
  var SliderView = _ref => {
11069
11058
  var _views$tooltip, _views$tooltip2;
11070
11059
  var {
@@ -11107,7 +11096,7 @@
11107
11096
  tooltip: {}
11108
11097
  }
11109
11098
  } = _ref,
11110
- props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
11099
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
11111
11100
  var {
11112
11101
  getColor,
11113
11102
  themeMode
@@ -11480,7 +11469,7 @@
11480
11469
  useMessageStore.getState().hide();
11481
11470
  };
11482
11471
 
11483
- var Themes$1 = {
11472
+ var Themes = {
11484
11473
  info: {
11485
11474
  container: {
11486
11475
  backgroundColor: 'color.blue.200',
@@ -11578,7 +11567,7 @@
11578
11567
  }
11579
11568
  return;
11580
11569
  }, []);
11581
- var Theme = theme != null ? theme : Themes$1;
11570
+ var Theme = theme != null ? theme : Themes;
11582
11571
  var showAction = !!(action && actionText);
11583
11572
  var containerStyle = {
11584
11573
  borderWidth: 1,
@@ -11827,7 +11816,8 @@
11827
11816
  renderError = _ref2 => {
11828
11817
  var {
11829
11818
  errorMessage,
11830
- errorMessageProps
11819
+ errorMessageProps,
11820
+ themeMode: elementMode
11831
11821
  } = _ref2;
11832
11822
  return /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
11833
11823
  color: "red",
@@ -11978,7 +11968,7 @@
11978
11968
  }, views == null ? void 0 : views.view)));
11979
11969
  };
11980
11970
 
11981
- var _excluded$E = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress", "fileType"];
11971
+ var _excluded$G = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress", "fileType"];
11982
11972
  var Uploader = _ref => {
11983
11973
  var {
11984
11974
  accept = '*/*',
@@ -11991,7 +11981,7 @@
11991
11981
  progress = 0,
11992
11982
  fileType
11993
11983
  } = _ref,
11994
- props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
11984
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$G);
11995
11985
  var {
11996
11986
  previewUrl,
11997
11987
  thumbnailUrl,
@@ -12182,7 +12172,7 @@
12182
12172
  }
12183
12173
  };
12184
12174
 
12185
- var _excluded$F = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
12175
+ var _excluded$H = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
12186
12176
  _excluded2$b = ["children", "shadow", "isFullScreen", "shape", "views"],
12187
12177
  _excluded3$8 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
12188
12178
  _excluded4$7 = ["children", "views"],
@@ -12197,7 +12187,7 @@
12197
12187
  position = 'center',
12198
12188
  views
12199
12189
  } = _ref,
12200
- props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
12190
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
12201
12191
  var handleClick = () => {
12202
12192
  if (!isClosePrevented) onClose();
12203
12193
  };
@@ -12268,17 +12258,12 @@
12268
12258
  } = _ref3,
12269
12259
  props = _objectWithoutPropertiesLoose(_ref3, _excluded3$8);
12270
12260
  var onClose = props.onClose ? props.onClose : hideModal;
12271
- var buttonIcon = /*#__PURE__*/React__default.createElement(Button, {
12272
- onClick: onClose,
12273
- icon: /*#__PURE__*/React__default.createElement(CloseIcon, {
12274
- widthHeight: HeaderIconSizes[iconSize],
12275
- color: buttonColor
12276
- }),
12277
- padding: 0,
12278
- margin: 0,
12279
- filter: "none",
12280
- width: 0
12281
- });
12261
+ var buttonIcon = /*#__PURE__*/React__default.createElement(appStudio.View, {
12262
+ onClick: onClose
12263
+ }, /*#__PURE__*/React__default.createElement(CloseIcon, {
12264
+ widthHeight: HeaderIconSizes[iconSize],
12265
+ color: buttonColor
12266
+ }));
12282
12267
  return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
12283
12268
  justifyContent: buttonPosition === 'none' ? 'center' : 'space-between',
12284
12269
  alignItems: "center",
@@ -12498,7 +12483,7 @@
12498
12483
  }
12499
12484
  };
12500
12485
 
12501
- var _excluded$G = ["href", "children", "views"];
12486
+ var _excluded$I = ["href", "children", "views"];
12502
12487
  // Create context for the NavigationMenu
12503
12488
  var NavigationMenuContext = /*#__PURE__*/React.createContext({
12504
12489
  activeItemId: null,
@@ -12733,7 +12718,7 @@
12733
12718
  children,
12734
12719
  views
12735
12720
  } = _ref6,
12736
- props = _objectWithoutPropertiesLoose(_ref6, _excluded$G);
12721
+ props = _objectWithoutPropertiesLoose(_ref6, _excluded$I);
12737
12722
  var {
12738
12723
  itemValue,
12739
12724
  isDisabled
@@ -12782,7 +12767,8 @@
12782
12767
  items,
12783
12768
  orientation,
12784
12769
  //size, variant,
12785
- views
12770
+ views,
12771
+ themeMode: elementMode
12786
12772
  } = _ref7;
12787
12773
  var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
12788
12774
  if (!items || items.length === 0) {
@@ -12799,7 +12785,7 @@
12799
12785
  })))));
12800
12786
  };
12801
12787
 
12802
- var _excluded$H = ["items", "children", "orientation", "size", "variant", "defaultActiveItemId", "defaultExpandedItemIds", "onItemActivate", "views"];
12788
+ var _excluded$J = ["items", "children", "orientation", "size", "variant", "defaultActiveItemId", "defaultExpandedItemIds", "onItemActivate", "views"];
12803
12789
  /**
12804
12790
  * NavigationMenu component for creating navigation menus with optional nested items.
12805
12791
  * Supports both data-driven approach (with items prop) and compound component pattern.
@@ -12816,7 +12802,7 @@
12816
12802
  onItemActivate,
12817
12803
  views
12818
12804
  } = _ref,
12819
- props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
12805
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$J);
12820
12806
  var {
12821
12807
  activeItemId,
12822
12808
  setActiveItemId,
@@ -13016,7 +13002,8 @@
13016
13002
  data,
13017
13003
  columns,
13018
13004
  footer,
13019
- caption
13005
+ caption,
13006
+ themeMode: elementMode
13020
13007
  } = _ref;
13021
13008
  return /*#__PURE__*/React__default.createElement(TableContainer, {
13022
13009
  role: "Table"
@@ -13283,7 +13270,7 @@
13283
13270
  };
13284
13271
  };
13285
13272
 
13286
- var _excluded$I = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views"];
13273
+ var _excluded$K = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views"];
13287
13274
  var ToggleView = _ref => {
13288
13275
  var {
13289
13276
  children,
@@ -13297,7 +13284,7 @@
13297
13284
  onToggle,
13298
13285
  views
13299
13286
  } = _ref,
13300
- props = _objectWithoutPropertiesLoose(_ref, _excluded$I);
13287
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$K);
13301
13288
  var toggleColor = !isDisabled ? 'color.trueGray.400' : 'theme.disabled';
13302
13289
  var isActive = !!(isToggle || isHovered);
13303
13290
  var toggleVariants = {
@@ -13340,7 +13327,7 @@
13340
13327
  }, toggleVariants[variant], props, views == null ? void 0 : views.container), children);
13341
13328
  };
13342
13329
 
13343
- var _excluded$J = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
13330
+ var _excluded$L = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
13344
13331
  // Destructuring properties from ToggleProps to be used within the ToggleComponent.
13345
13332
  var ToggleComponent = _ref => {
13346
13333
  var {
@@ -13352,7 +13339,7 @@
13352
13339
  isToggled = false,
13353
13340
  onToggle
13354
13341
  } = _ref,
13355
- props = _objectWithoutPropertiesLoose(_ref, _excluded$J);
13342
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$L);
13356
13343
  // Initializing toggle state and set state functions using the custom hook useToggleState.
13357
13344
  var {
13358
13345
  isHovered,
@@ -13559,7 +13546,8 @@
13559
13546
  draggedIndex,
13560
13547
  itemRefs,
13561
13548
  handleDragStart,
13562
- views
13549
+ views,
13550
+ themeMode: elementMode
13563
13551
  } = _ref;
13564
13552
  return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
13565
13553
  overflow: "hidden",
@@ -13742,11 +13730,11 @@
13742
13730
  return positions[side];
13743
13731
  };
13744
13732
 
13745
- var _excluded$K = ["children", "views"],
13733
+ var _excluded$M = ["children", "views"],
13746
13734
  _excluded2$c = ["items", "side", "align", "views"],
13747
13735
  _excluded3$9 = ["item", "views"],
13748
13736
  _excluded4$8 = ["views"],
13749
- _excluded5$4 = ["trigger", "items", "side", "align", "views"];
13737
+ _excluded5$4 = ["trigger", "items", "side", "align", "views", "themeMode"];
13750
13738
  // Create context for the DropdownMenu
13751
13739
  var DropdownMenuContext = /*#__PURE__*/React.createContext({
13752
13740
  isOpen: false,
@@ -13780,7 +13768,7 @@
13780
13768
  children,
13781
13769
  views
13782
13770
  } = _ref2,
13783
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$K);
13771
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$M);
13784
13772
  var {
13785
13773
  isOpen,
13786
13774
  setIsOpen
@@ -13940,7 +13928,7 @@
13940
13928
  }));
13941
13929
  };
13942
13930
 
13943
- var _excluded$L = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
13931
+ var _excluded$N = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
13944
13932
  /**
13945
13933
  * DropdownMenu component for displaying a menu when clicking on a trigger element.
13946
13934
  */
@@ -13955,7 +13943,7 @@
13955
13943
  defaultOpen = false,
13956
13944
  views
13957
13945
  } = _ref,
13958
- props = _objectWithoutPropertiesLoose(_ref, _excluded$L);
13946
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$N);
13959
13947
  var {
13960
13948
  isOpen,
13961
13949
  setIsOpen,
@@ -14153,7 +14141,7 @@
14153
14141
  return rect;
14154
14142
  };
14155
14143
 
14156
- var _excluded$M = ["children", "views", "asChild"],
14144
+ var _excluded$O = ["children", "views", "asChild"],
14157
14145
  _excluded2$d = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
14158
14146
  // Create context for the HoverCard
14159
14147
  var HoverCardContext = /*#__PURE__*/React.createContext({
@@ -14192,7 +14180,7 @@
14192
14180
  views,
14193
14181
  asChild = false
14194
14182
  } = _ref2,
14195
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$M);
14183
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$O);
14196
14184
  var {
14197
14185
  openCard,
14198
14186
  closeCard,
@@ -14279,7 +14267,7 @@
14279
14267
  }, views == null ? void 0 : views.container, props), children);
14280
14268
  };
14281
14269
 
14282
- var _excluded$N = ["children", "views", "openDelay", "closeDelay"];
14270
+ var _excluded$P = ["children", "views", "openDelay", "closeDelay"];
14283
14271
  /**
14284
14272
  * HoverCard component displays floating content when hovering over a trigger element.
14285
14273
  * Supports configurable open and close delays for a smoother user experience.
@@ -14291,7 +14279,7 @@
14291
14279
  openDelay,
14292
14280
  closeDelay
14293
14281
  } = _ref,
14294
- props = _objectWithoutPropertiesLoose(_ref, _excluded$N);
14282
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$P);
14295
14283
  var hoverCardState = useHoverCardState({
14296
14284
  openDelay,
14297
14285
  closeDelay
@@ -14421,7 +14409,7 @@
14421
14409
  };
14422
14410
  };
14423
14411
 
14424
- var _excluded$O = ["children", "orientation", "size", "variant", "views"];
14412
+ var _excluded$Q = ["children", "orientation", "size", "variant", "views"];
14425
14413
  // Create context for the Menubar
14426
14414
  var MenubarContext = /*#__PURE__*/React.createContext({
14427
14415
  activeMenuId: null,
@@ -14455,7 +14443,7 @@
14455
14443
  variant = 'default',
14456
14444
  views
14457
14445
  } = _ref2,
14458
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$O);
14446
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$Q);
14459
14447
  var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
14460
14448
  return /*#__PURE__*/React__default.createElement(Container, Object.assign({
14461
14449
  role: "menubar",
@@ -14602,7 +14590,8 @@
14602
14590
  orientation,
14603
14591
  size,
14604
14592
  variant,
14605
- views
14593
+ views,
14594
+ themeMode: elementMode
14606
14595
  } = _ref8;
14607
14596
  return /*#__PURE__*/React__default.createElement(MenubarRoot, {
14608
14597
  orientation: orientation,
@@ -14640,7 +14629,7 @@
14640
14629
  })))))));
14641
14630
  };
14642
14631
 
14643
- var _excluded$P = ["items", "orientation", "size", "variant", "defaultActiveMenuId", "defaultOpenMenuId", "views"];
14632
+ var _excluded$R = ["items", "orientation", "size", "variant", "defaultActiveMenuId", "defaultOpenMenuId", "views"];
14644
14633
  /**
14645
14634
  * Menubar component for creating horizontal or vertical menu bars with dropdown menus.
14646
14635
  */
@@ -14654,7 +14643,7 @@
14654
14643
  defaultOpenMenuId = null,
14655
14644
  views
14656
14645
  } = _ref,
14657
- props = _objectWithoutPropertiesLoose(_ref, _excluded$P);
14646
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$R);
14658
14647
  var {
14659
14648
  activeMenuId,
14660
14649
  setActiveMenuId,
@@ -14810,7 +14799,7 @@
14810
14799
  }
14811
14800
  };
14812
14801
 
14813
- var _excluded$Q = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "visiblePageNumbers", "views"];
14802
+ var _excluded$S = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "visiblePageNumbers", "views"];
14814
14803
  var PaginationView = _ref => {
14815
14804
  var {
14816
14805
  currentPage,
@@ -14841,7 +14830,7 @@
14841
14830
  visiblePageNumbers,
14842
14831
  views
14843
14832
  } = _ref,
14844
- props = _objectWithoutPropertiesLoose(_ref, _excluded$Q);
14833
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$S);
14845
14834
  var handlePageChange = page => {
14846
14835
  if (page < 1 || page > totalPages || page === currentPage) {
14847
14836
  return;
@@ -14960,7 +14949,7 @@
14960
14949
  }, option.label))))));
14961
14950
  };
14962
14951
 
14963
- var _excluded$R = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "views"];
14952
+ var _excluded$T = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "views"];
14964
14953
  /**
14965
14954
  * Pagination component for navigating through pages of content.
14966
14955
  */
@@ -14981,7 +14970,7 @@
14981
14970
  shape = 'rounded',
14982
14971
  views
14983
14972
  } = _ref,
14984
- props = _objectWithoutPropertiesLoose(_ref, _excluded$R);
14973
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$T);
14985
14974
  var {
14986
14975
  visiblePageNumbers
14987
14976
  } = usePaginationState(currentPage, totalPages, maxPageButtons);
@@ -15017,11 +15006,16 @@
15017
15006
  /**
15018
15007
  * Variant configurations for the Separator component
15019
15008
  */
15020
- var SeparatorVariants = {
15021
- solid: 'solid',
15022
- dashed: 'dashed',
15023
- dotted: 'dotted'
15009
+ var getSeparator = themeMode => {
15010
+ return {
15011
+ solid: 'solid',
15012
+ dashed: 'dashed',
15013
+ dotted: 'dotted'
15014
+ };
15015
+ // Add dark mode conditional styling here
15024
15016
  };
15017
+ // For backward compatibility
15018
+ var SeparatorVariants = /*#__PURE__*/getSeparator();
15025
15019
  /**
15026
15020
  * Thickness configurations for the Separator component
15027
15021
  * Following the 4px grid system
@@ -15046,7 +15040,7 @@
15046
15040
  }
15047
15041
  };
15048
15042
 
15049
- var _excluded$S = ["orientation", "variant", "thickness", "color", "spacing", "label", "decorative", "views"];
15043
+ var _excluded$U = ["orientation", "variant", "thickness", "color", "spacing", "label", "decorative", "views", "themeMode"];
15050
15044
  var SeparatorView = _ref => {
15051
15045
  var {
15052
15046
  orientation = 'horizontal',
@@ -15058,9 +15052,11 @@
15058
15052
  decorative = false,
15059
15053
  views
15060
15054
  } = _ref,
15061
- props = _objectWithoutPropertiesLoose(_ref, _excluded$S);
15055
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$U);
15062
15056
  // Access theme if needed for future enhancements
15063
- var {} = appStudio.useTheme();
15057
+ var {
15058
+ themeMode
15059
+ } = appStudio.useTheme();
15064
15060
  // Use provided color or default from theme
15065
15061
  var separatorColor = color || 'color.gray.200';
15066
15062
  var borderStyle = SeparatorVariants[variant];
@@ -15216,37 +15212,42 @@
15216
15212
  /**
15217
15213
  * Variant styles for the Sidebar component
15218
15214
  */
15219
- var SidebarVariants = {
15220
- default: {
15221
- backgroundColor: 'white',
15222
- color: 'color.gray.800',
15223
- transition: 'all 0.2s ease'
15224
- },
15225
- filled: {
15226
- backgroundColor: 'color.gray.100',
15227
- color: 'color.gray.800',
15228
- transition: 'all 0.2s ease'
15229
- },
15230
- outline: {
15231
- backgroundColor: 'white',
15232
- borderWidth: '1px',
15233
- borderStyle: 'solid',
15234
- borderColor: 'color.gray.200',
15235
- color: 'color.gray.800',
15236
- transition: 'all 0.2s ease'
15237
- },
15238
- subtle: {
15239
- backgroundColor: 'color.gray.50',
15240
- color: 'color.gray.800',
15241
- transition: 'all 0.2s ease'
15242
- },
15243
- elevated: {
15244
- backgroundColor: 'white',
15245
- boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.1)',
15246
- color: 'color.gray.800',
15247
- transition: 'all 0.2s ease'
15248
- }
15215
+ var getSidebar = themeMode => {
15216
+ return {
15217
+ default: {
15218
+ backgroundColor: 'white',
15219
+ color: 'color.gray.800',
15220
+ transition: 'all 0.2s ease'
15221
+ },
15222
+ filled: {
15223
+ backgroundColor: 'color.gray.100',
15224
+ color: 'color.gray.800',
15225
+ transition: 'all 0.2s ease'
15226
+ },
15227
+ outline: {
15228
+ backgroundColor: 'white',
15229
+ borderWidth: '1px',
15230
+ borderStyle: 'solid',
15231
+ borderColor: 'color.gray.200',
15232
+ color: 'color.gray.800',
15233
+ transition: 'all 0.2s ease'
15234
+ },
15235
+ subtle: {
15236
+ backgroundColor: 'color.gray.50',
15237
+ color: 'color.gray.800',
15238
+ transition: 'all 0.2s ease'
15239
+ },
15240
+ elevated: {
15241
+ backgroundColor: 'white',
15242
+ boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.1)',
15243
+ color: 'color.gray.800',
15244
+ transition: 'all 0.2s ease'
15245
+ }
15246
+ };
15247
+ // Add dark mode conditional styling here
15249
15248
  };
15249
+ // For backward compatibility
15250
+ var SidebarVariants = /*#__PURE__*/getSidebar();
15250
15251
  /**
15251
15252
  * Position styles for the Sidebar component
15252
15253
  */
@@ -15289,10 +15290,10 @@
15289
15290
  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)'
15290
15291
  };
15291
15292
 
15292
- var _excluded$T = ["children", "showToggleButton", "views"],
15293
+ var _excluded$V = ["children", "showToggleButton", "views"],
15293
15294
  _excluded2$e = ["children", "views"],
15294
15295
  _excluded3$a = ["children", "views"],
15295
- _excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views"];
15296
+ _excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
15296
15297
  // Create context for the Sidebar
15297
15298
  var SidebarContext = /*#__PURE__*/React.createContext({
15298
15299
  isExpanded: true,
@@ -15322,7 +15323,7 @@
15322
15323
  showToggleButton = true,
15323
15324
  views
15324
15325
  } = _ref2,
15325
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$T);
15326
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$V);
15326
15327
  var {
15327
15328
  isExpanded,
15328
15329
  toggleExpanded,
@@ -15477,7 +15478,7 @@
15477
15478
  }))));
15478
15479
  };
15479
15480
 
15480
- var _excluded$U = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
15481
+ var _excluded$W = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
15481
15482
  /**
15482
15483
  * Sidebar component for creating collapsible, themeable and customizable sidebars.
15483
15484
  */
@@ -15499,7 +15500,7 @@
15499
15500
  breakpointBehavior = 'overlay',
15500
15501
  views
15501
15502
  } = _ref,
15502
- props = _objectWithoutPropertiesLoose(_ref, _excluded$U);
15503
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$W);
15503
15504
  var {
15504
15505
  isExpanded,
15505
15506
  toggleExpanded,
@@ -15915,35 +15916,40 @@
15915
15916
  };
15916
15917
  return sizes[size];
15917
15918
  };
15918
- var HandleVariants = {
15919
- default: {
15920
- backgroundColor: 'transparent',
15921
- _hover: {
15922
- backgroundColor: 'color.gray.200'
15923
- },
15924
- _active: {
15925
- backgroundColor: 'color.gray.300'
15926
- }
15927
- },
15928
- subtle: {
15929
- backgroundColor: 'transparent',
15930
- _hover: {
15931
- backgroundColor: 'color.gray.100'
15919
+ var getHandle = themeMode => {
15920
+ return {
15921
+ default: {
15922
+ backgroundColor: 'transparent',
15923
+ _hover: {
15924
+ backgroundColor: 'color.gray.200'
15925
+ },
15926
+ _active: {
15927
+ backgroundColor: 'color.gray.300'
15928
+ }
15932
15929
  },
15933
- _active: {
15934
- backgroundColor: 'color.gray.200'
15935
- }
15936
- },
15937
- prominent: {
15938
- backgroundColor: 'color.gray.100',
15939
- _hover: {
15940
- backgroundColor: 'color.gray.200'
15930
+ subtle: {
15931
+ backgroundColor: 'transparent',
15932
+ _hover: {
15933
+ backgroundColor: 'color.gray.100'
15934
+ },
15935
+ _active: {
15936
+ backgroundColor: 'color.gray.200'
15937
+ }
15941
15938
  },
15942
- _active: {
15943
- backgroundColor: 'color.gray.300'
15939
+ prominent: {
15940
+ backgroundColor: 'color.gray.100',
15941
+ _hover: {
15942
+ backgroundColor: 'color.gray.200'
15943
+ },
15944
+ _active: {
15945
+ backgroundColor: 'color.gray.300'
15946
+ }
15944
15947
  }
15945
- }
15948
+ };
15949
+ // Add dark mode conditional styling here
15946
15950
  };
15951
+ // For backward compatibility
15952
+ var HandleVariants = /*#__PURE__*/getHandle();
15947
15953
  var HandleIconStyles = {
15948
15954
  horizontal: {
15949
15955
  width: '2px',
@@ -15959,7 +15965,7 @@
15959
15965
  }
15960
15966
  };
15961
15967
 
15962
- var _excluded$V = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
15968
+ var _excluded$X = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
15963
15969
  _excluded2$f = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
15964
15970
  _excluded3$b = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "views"];
15965
15971
  // Create context for the Resizable component
@@ -16004,7 +16010,7 @@
16004
16010
  onCollapseChange,
16005
16011
  views
16006
16012
  } = _ref2,
16007
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$V);
16013
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$X);
16008
16014
  var {
16009
16015
  orientation,
16010
16016
  registerPanel,
@@ -16219,7 +16225,7 @@
16219
16225
  }, ResizableOrientations[orientation], views == null ? void 0 : views.container, props), children);
16220
16226
  };
16221
16227
 
16222
- var _excluded$W = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
16228
+ var _excluded$Y = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
16223
16229
  /**
16224
16230
  * Resizable component for creating resizable panel groups and layouts.
16225
16231
  */
@@ -16239,7 +16245,7 @@
16239
16245
  keyboardResizeBy = 10,
16240
16246
  views
16241
16247
  } = _ref,
16242
- props = _objectWithoutPropertiesLoose(_ref, _excluded$W);
16248
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$Y);
16243
16249
  var {
16244
16250
  isResizing,
16245
16251
  setIsResizing,
@@ -16304,7 +16310,7 @@
16304
16310
  * Theme configurations for the Toast component
16305
16311
  * Following the design system color palette
16306
16312
  */
16307
- var Themes$2 = {
16313
+ var Themes$1 = {
16308
16314
  info: {
16309
16315
  container: {
16310
16316
  backgroundColor: 'color.blue.50',
@@ -16497,10 +16503,11 @@
16497
16503
  render,
16498
16504
  icon: customIcon,
16499
16505
  id,
16500
- isVisible = true
16506
+ isVisible = true,
16507
+ themeMode: elementMode
16501
16508
  } = _ref;
16502
16509
  // We don't need the auto-close timer here anymore as it's handled in the store
16503
- var Theme = theme != null ? theme : Themes$2;
16510
+ var Theme = theme != null ? theme : Themes$1;
16504
16511
  // Get the appropriate icon based on the variant
16505
16512
  var getIcon = () => {
16506
16513
  // If a custom icon is provided, use it
@@ -16880,29 +16887,34 @@
16880
16887
  maxHeight: '500px'
16881
16888
  }
16882
16889
  };
16883
- var CommandVariants = {
16884
- default: {
16885
- backgroundColor: 'white',
16886
- borderWidth: '1px',
16887
- borderStyle: 'solid',
16888
- borderColor: 'color.gray.200',
16889
- boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16890
- },
16891
- filled: {
16892
- backgroundColor: 'color.gray.50',
16893
- borderWidth: '1px',
16894
- borderStyle: 'solid',
16895
- borderColor: 'color.gray.200',
16896
- boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16897
- },
16898
- outline: {
16899
- backgroundColor: 'white',
16900
- borderWidth: '2px',
16901
- borderStyle: 'solid',
16902
- borderColor: 'color.gray.300',
16903
- boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16904
- }
16890
+ var getCommand = themeMode => {
16891
+ return {
16892
+ default: {
16893
+ backgroundColor: 'white',
16894
+ borderWidth: '1px',
16895
+ borderStyle: 'solid',
16896
+ borderColor: 'color.gray.200',
16897
+ boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16898
+ },
16899
+ filled: {
16900
+ backgroundColor: 'color.gray.50',
16901
+ borderWidth: '1px',
16902
+ borderStyle: 'solid',
16903
+ borderColor: 'color.gray.200',
16904
+ boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16905
+ },
16906
+ outline: {
16907
+ backgroundColor: 'white',
16908
+ borderWidth: '2px',
16909
+ borderStyle: 'solid',
16910
+ borderColor: 'color.gray.300',
16911
+ boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16912
+ }
16913
+ };
16914
+ // Add dark mode conditional styling here
16905
16915
  };
16916
+ // For backward compatibility
16917
+ var CommandVariants = /*#__PURE__*/getCommand();
16906
16918
  var CommandInputStyles = {
16907
16919
  display: 'flex',
16908
16920
  alignItems: 'center',
@@ -16998,7 +17010,7 @@
16998
17010
  color: 'color.gray.500'
16999
17011
  };
17000
17012
 
17001
- var _excluded$X = ["value", "onValueChange", "placeholder", "views"],
17013
+ var _excluded$Z = ["value", "onValueChange", "placeholder", "views"],
17002
17014
  _excluded2$g = ["children", "views"],
17003
17015
  _excluded3$c = ["heading", "children", "views"],
17004
17016
  _excluded4$a = ["item", "selected", "onSelect", "views"],
@@ -17030,7 +17042,7 @@
17030
17042
  placeholder = 'Type a command or search...',
17031
17043
  views
17032
17044
  } = _ref2,
17033
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$X);
17045
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$Z);
17034
17046
  var inputRef = React.useRef(null);
17035
17047
  // Focus input when component mounts
17036
17048
  React__default.useEffect(() => {
@@ -17218,7 +17230,7 @@
17218
17230
  })))), footer && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandFooterStyles, views == null ? void 0 : views.footer), footer)))));
17219
17231
  };
17220
17232
 
17221
- var _excluded$Y = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
17233
+ var _excluded$_ = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
17222
17234
  /**
17223
17235
  * Command component for displaying a command palette with search functionality.
17224
17236
  */
@@ -17236,7 +17248,7 @@
17236
17248
  footer,
17237
17249
  views
17238
17250
  } = _ref,
17239
- props = _objectWithoutPropertiesLoose(_ref, _excluded$Y);
17251
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$_);
17240
17252
  var {
17241
17253
  search,
17242
17254
  setSearch,
@@ -17393,23 +17405,28 @@
17393
17405
  maxWidth: '300px'
17394
17406
  }
17395
17407
  };
17396
- var TooltipVariants = {
17397
- default: {
17398
- backgroundColor: 'color.gray.800',
17399
- color: 'color.white'
17400
- },
17401
- light: {
17402
- backgroundColor: 'color.white',
17403
- color: 'color.gray.800',
17404
- borderWidth: '1px',
17405
- borderStyle: 'solid',
17406
- borderColor: 'color.gray.200'
17407
- },
17408
- dark: {
17409
- backgroundColor: 'color.black',
17410
- color: 'color.white'
17411
- }
17408
+ var getTooltip = themeMode => {
17409
+ return {
17410
+ default: {
17411
+ backgroundColor: 'color.gray.800',
17412
+ color: 'color.white'
17413
+ },
17414
+ light: {
17415
+ backgroundColor: 'color.white',
17416
+ color: 'color.gray.800',
17417
+ borderWidth: '1px',
17418
+ borderStyle: 'solid',
17419
+ borderColor: 'color.gray.200'
17420
+ },
17421
+ dark: {
17422
+ backgroundColor: 'color.black',
17423
+ color: 'color.white'
17424
+ }
17425
+ };
17426
+ // Add dark mode conditional styling here
17412
17427
  };
17428
+ // For backward compatibility
17429
+ var TooltipVariants = /*#__PURE__*/getTooltip();
17413
17430
  var getTooltipPositionStyles = (position, align) => {
17414
17431
  var baseStyles = {
17415
17432
  position: 'absolute',
@@ -17518,9 +17535,9 @@
17518
17535
  }
17519
17536
  };
17520
17537
 
17521
- var _excluded$Z = ["children", "views", "asChild"],
17538
+ var _excluded$$ = ["children", "views", "asChild"],
17522
17539
  _excluded2$h = ["children", "views"],
17523
- _excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views"];
17540
+ _excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
17524
17541
  // Create context for the Tooltip
17525
17542
  var TooltipContext = /*#__PURE__*/React.createContext({
17526
17543
  isOpen: false,
@@ -17554,7 +17571,7 @@
17554
17571
  views,
17555
17572
  asChild = false
17556
17573
  } = _ref2,
17557
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$Z);
17574
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$$);
17558
17575
  var {
17559
17576
  openTooltip,
17560
17577
  closeTooltip,
@@ -17647,7 +17664,7 @@
17647
17664
  }, 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)))));
17648
17665
  };
17649
17666
 
17650
- var _excluded$_ = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
17667
+ var _excluded$10 = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
17651
17668
  /**
17652
17669
  * Tooltip component for displaying additional information when hovering over an element.
17653
17670
  * Supports configurable positions, delays, and styling.
@@ -17667,7 +17684,7 @@
17667
17684
  isDisabled = false,
17668
17685
  views
17669
17686
  } = _ref,
17670
- props = _objectWithoutPropertiesLoose(_ref, _excluded$_);
17687
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$10);
17671
17688
  var tooltipState = useTooltipState({
17672
17689
  defaultOpen,
17673
17690
  openDelay,