@app-studio/web 0.8.78 → 0.8.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/components/Accordion/Accordion/Accordion.view.d.ts +2 -1
  2. package/dist/components/Alert/Alert/Alert.props.d.ts +7 -1
  3. package/dist/components/Alert/Alert/Alert.style.d.ts +9 -1
  4. package/dist/components/Alert/Alert/Alert.view.d.ts +1 -1
  5. package/dist/components/Alert/Alert.d.ts +1 -1
  6. package/dist/components/Alert/examples/darkMode.d.ts +2 -0
  7. package/dist/components/Badge/Badge/Badge.style.d.ts +5 -1
  8. package/dist/components/Badge/Badge.d.ts +1 -1
  9. package/dist/components/Badge/examples/darkMode.d.ts +2 -0
  10. package/dist/components/Badge/examples/index.d.ts +1 -0
  11. package/dist/components/Button/Button/Button.props.d.ts +1 -2
  12. package/dist/components/Card/Card/Card.style.d.ts +7 -3
  13. package/dist/components/Card/examples/darkModeExample.d.ts +2 -0
  14. package/dist/components/Command/Command/Command.style.d.ts +1 -0
  15. package/dist/components/ContextMenu/ContextMenu/ContextMenu.view.d.ts +2 -1
  16. package/dist/components/DragAndDrop/DragAndDrop/DragAndDrop.props.d.ts +1 -1
  17. package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.view.d.ts +2 -1
  18. package/dist/components/Menubar/Menubar/Menubar.view.d.ts +2 -1
  19. package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.view.d.ts +2 -1
  20. package/dist/components/Resizable/Resizable/Resizable.style.d.ts +1 -0
  21. package/dist/components/Separator/Separator/Separator.style.d.ts +1 -0
  22. package/dist/components/Sidebar/Sidebar/Sidebar.style.d.ts +1 -0
  23. package/dist/components/Slider/Slider/Slider.style.d.ts +1 -0
  24. package/dist/components/Table/Table/Table.props.d.ts +2 -2
  25. package/dist/components/Toast/Toast/Toast.props.d.ts +2 -1
  26. package/dist/components/Tooltip/Tooltip/Tooltip.style.d.ts +1 -0
  27. package/dist/components/Tooltip/Tooltip/Tooltip.view.d.ts +2 -1
  28. package/dist/web.cjs.development.js +662 -631
  29. package/dist/web.cjs.development.js.map +1 -1
  30. package/dist/web.cjs.production.min.js +1 -1
  31. package/dist/web.cjs.production.min.js.map +1 -1
  32. package/dist/web.esm.js +662 -631
  33. package/dist/web.esm.js.map +1 -1
  34. package/dist/web.umd.development.js +662 -631
  35. package/dist/web.umd.development.js.map +1 -1
  36. package/dist/web.umd.production.min.js +1 -1
  37. package/dist/web.umd.production.min.js.map +1 -1
  38. package/package.json +1 -1
@@ -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);
@@ -3517,75 +3497,6 @@
3517
3497
  padding: 14
3518
3498
  }
3519
3499
  };
3520
- /**
3521
- * Button variants with consistent styling
3522
- */
3523
- var getButtonVariants = (color, isLight) => ({
3524
- filled: {
3525
- backgroundColor: color,
3526
- color: isLight ? 'color.gray.900' : 'color.white',
3527
- borderWidth: 1,
3528
- borderStyle: 'solid',
3529
- borderColor: 'transparent',
3530
- on: {
3531
- hover: {
3532
- filter: 'brightness(0.9)',
3533
- transform: 'translateY(-1px)'
3534
- },
3535
- active: {
3536
- filter: 'brightness(0.85)',
3537
- transform: 'translateY(0)'
3538
- }
3539
- },
3540
- transition: 'all 0.2s ease'
3541
- },
3542
- outline: {
3543
- backgroundColor: 'transparent',
3544
- borderWidth: 1,
3545
- borderStyle: 'solid',
3546
- borderColor: color,
3547
- color: color,
3548
- on: {
3549
- hover: {
3550
- backgroundColor: color + "10",
3551
- transform: 'translateY(-1px)'
3552
- },
3553
- active: {
3554
- backgroundColor: color + "20",
3555
- transform: 'translateY(0)'
3556
- }
3557
- },
3558
- transition: 'all 0.2s ease'
3559
- },
3560
- ghost: {
3561
- backgroundColor: 'transparent',
3562
- color: color,
3563
- on: {
3564
- hover: {
3565
- backgroundColor: color + "10",
3566
- transform: 'translateY(-1px)'
3567
- },
3568
- active: {
3569
- backgroundColor: color + "20",
3570
- transform: 'translateY(0)'
3571
- }
3572
- },
3573
- transition: 'all 0.2s ease'
3574
- },
3575
- link: {
3576
- backgroundColor: 'transparent',
3577
- color: color,
3578
- textDecoration: 'underline',
3579
- textUnderlineOffset: 2,
3580
- on: {
3581
- hover: {
3582
- textDecoration: 'underline',
3583
- textDecorationThickness: 2
3584
- }
3585
- },
3586
- transition: 'all 0.2s ease'
3587
- }
3588
- });
3589
3500
 
3590
3501
  // Defines a mapping of spinning speed labels to their respective duration in seconds for the Loader component animations.
3591
3502
  // Sets up a scale of sizes, mapping size labels to numerical values to be used for Loader component dimensions.
@@ -3603,7 +3514,7 @@
3603
3514
  slow: 300
3604
3515
  };
3605
3516
 
3606
- var _excluded$7 = ["size", "speed", "color", "themeMode"],
3517
+ var _excluded$9 = ["size", "speed", "color", "themeMode"],
3607
3518
  _excluded2$2 = ["size", "speed", "color", "themeMode"],
3608
3519
  _excluded3$2 = ["size", "speed", "color", "themeMode"],
3609
3520
  _excluded4$2 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition", "views"];
@@ -3614,7 +3525,7 @@
3614
3525
  color = 'theme.loading',
3615
3526
  themeMode: elementMode
3616
3527
  } = _ref,
3617
- props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
3528
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
3618
3529
  var {
3619
3530
  getColor,
3620
3531
  themeMode
@@ -3779,7 +3690,9 @@
3779
3690
  // Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
3780
3691
  var Loader = LoaderComponent;
3781
3692
 
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"];
3693
+ var _excluded$a = ["icon", "shadow", "children", "ariaLabel", "to", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered", "setIsHovered", "isExternal", "themeMode", "views", "colorScheme"],
3694
+ _excluded2$3 = ["_hover", "_active"],
3695
+ _excluded3$3 = ["height"];
3783
3696
  var contrast = /*#__PURE__*/require('contrast');
3784
3697
  var ButtonView = _ref => {
3785
3698
  var _props$onClick;
@@ -3802,13 +3715,14 @@
3802
3715
  loaderProps = {},
3803
3716
  loaderPosition = 'left',
3804
3717
  effect = 'default',
3718
+ isHovered,
3805
3719
  setIsHovered = () => {},
3806
3720
  isExternal = false,
3807
3721
  themeMode: elementMode,
3808
- linkProps,
3809
- views
3722
+ views,
3723
+ colorScheme = 'theme.primary'
3810
3724
  } = _ref,
3811
- props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
3725
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
3812
3726
  var {
3813
3727
  getColor,
3814
3728
  themeMode
@@ -3818,13 +3732,79 @@
3818
3732
  var defaultNativeProps = {
3819
3733
  disabled: !isActive
3820
3734
  };
3821
- var buttonColor = isActive ? 'theme.primary' : 'theme.disabled';
3822
- // We'll handle hover effects through CSS transitions in the style
3735
+ var buttonColor = isActive ? colorScheme : 'theme.disabled';
3736
+ var hovering = isHovered && effect === 'hover';
3737
+ var reverse = isHovered && effect === 'reverse';
3823
3738
  // Determine if the button color is light or dark for proper contrast
3824
3739
  var isLight = contrast(getColor(buttonColor, elementMode ? elementMode : themeMode)) == 'light';
3825
- // Get button variants based on color and light/dark status
3826
- var ButtonVariants = getButtonVariants(buttonColor, isLight);
3827
- // Note: Effects are now handled through CSS transitions in the style definitions
3740
+ // Define button variants with effect support
3741
+ var ButtonVariants = {
3742
+ filled: {
3743
+ backgroundColor: reverse ? 'transparent' : buttonColor,
3744
+ color: reverse ? isLight ? 'white' : buttonColor : isLight ? buttonColor : 'white',
3745
+ borderWidth: 1,
3746
+ borderStyle: 'solid',
3747
+ borderColor: reverse ? buttonColor : 'transparent',
3748
+ _hover: {
3749
+ backgroundColor: reverse ? buttonColor + "10" : "" + buttonColor,
3750
+ transform: 'translateY(-2px)',
3751
+ boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1)'
3752
+ },
3753
+ _active: {
3754
+ backgroundColor: reverse ? buttonColor + "20" : "" + buttonColor,
3755
+ transform: 'translateY(0)',
3756
+ boxShadow: '0 2px 4px rgba(0, 0, 0, 0.1)'
3757
+ }
3758
+ },
3759
+ outline: {
3760
+ backgroundColor: reverse ? buttonColor : 'transparent',
3761
+ borderWidth: 1,
3762
+ borderStyle: 'solid',
3763
+ borderColor: reverse ? buttonColor : colorScheme,
3764
+ color: reverse ? 'white' : buttonColor,
3765
+ _hover: {
3766
+ backgroundColor: reverse ? "" + buttonColor : buttonColor + "10",
3767
+ transform: 'translateY(-2px)',
3768
+ boxShadow: '0 4px 8px rgba(0, 0, 0, 0.05)'
3769
+ },
3770
+ _active: {
3771
+ backgroundColor: reverse ? buttonColor + "b0" : buttonColor + "20",
3772
+ transform: 'translateY(0)',
3773
+ boxShadow: '0 2px 4px rgba(0, 0, 0, 0.05)'
3774
+ }
3775
+ },
3776
+ link: {
3777
+ backgroundColor: 'transparent',
3778
+ borderWidth: 0,
3779
+ borderStyle: 'none',
3780
+ borderColor: 'transparent',
3781
+ color: buttonColor,
3782
+ textDecoration: reverse ? 'none' : 'underline',
3783
+ _hover: {
3784
+ opacity: 0.8,
3785
+ textDecorationThickness: '2px'
3786
+ },
3787
+ _active: {
3788
+ opacity: 0.8,
3789
+ textDecorationThickness: '2px'
3790
+ }
3791
+ },
3792
+ ghost: {
3793
+ backgroundColor: reverse ? buttonColor : 'transparent',
3794
+ color: reverse ? 'white' : buttonColor,
3795
+ borderWidth: 0,
3796
+ borderStyle: 'none',
3797
+ borderColor: 'transparent',
3798
+ _hover: {
3799
+ backgroundColor: reverse ? "" + buttonColor : buttonColor + "10",
3800
+ transform: 'translateY(-2px)'
3801
+ },
3802
+ _active: {
3803
+ backgroundColor: reverse ? buttonColor + "b0" : buttonColor + "20",
3804
+ transform: 'translateY(0)'
3805
+ }
3806
+ }
3807
+ };
3828
3808
  var buttonSizeStyles = ButtonSizes[size];
3829
3809
  var buttonVariant = ButtonVariants[variant];
3830
3810
  var scaleWidth = {
@@ -3851,6 +3831,13 @@
3851
3831
  }, views == null ? void 0 : views.icon), icon)), isLoading && loaderPosition === 'right' && (/*#__PURE__*/React__default.createElement(Loader, Object.assign({
3852
3832
  size: size === 'xs' || size === 'sm' ? 'sm' : 'md'
3853
3833
  }, loaderProps))));
3834
+ // Extract hover and active styles from buttonVariant
3835
+ var _ref2 = buttonVariant || {},
3836
+ {
3837
+ _hover,
3838
+ _active
3839
+ } = _ref2,
3840
+ baseButtonVariant = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
3854
3841
  return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
3855
3842
  gap: 8,
3856
3843
  as: "button",
@@ -3859,17 +3846,28 @@
3859
3846
  alignItems: "center",
3860
3847
  justifyContent: "center",
3861
3848
  "aria-label": ariaLabel,
3849
+ backgroundColor: "transparent",
3862
3850
  borderRadius: ButtonShapes[shape],
3863
3851
  onClick: (_props$onClick = props.onClick) != null ? _props$onClick : onClick,
3864
3852
  onMouseEnter: () => handleHover(true),
3865
3853
  onMouseLeave: () => handleHover(false),
3866
3854
  cursor: isActive ? 'pointer' : 'default',
3855
+ filter: hovering && effect === 'hover' ? 'brightness(0.85)' : 'brightness(1)',
3856
+ transition: "all 0.2s ease",
3857
+ transform: hovering && effect === 'hover' && !isDisabled ? 'translateY(-5px)' : '',
3867
3858
  // Apply consistent styling according to design guidelines
3868
3859
  // Apply shadow if provided
3869
3860
  boxShadow: shadow ? shadow : undefined
3870
- }, defaultNativeProps, buttonSizeStyles, buttonVariant, scaleWidth, props.padding || props.paddingHorizontal || props.paddingVertical || props.paddingLeft || props.paddingRight || props.paddingTop || props.paddingBottom ? {} : changePadding, props, views == null ? void 0 : views.container), variant === 'link' && to ? (/*#__PURE__*/React__default.createElement(Link, Object.assign({
3861
+ }, defaultNativeProps, (_ref3 => {
3862
+ var rest = _objectWithoutPropertiesLoose(_ref3, _excluded3$3);
3863
+ return rest;
3864
+ })(props), buttonSizeStyles, baseButtonVariant, scaleWidth, props.padding || props.paddingHorizontal || props.paddingVertical || props.paddingLeft || props.paddingRight || props.paddingTop || props.paddingBottom ? {} : changePadding, {
3865
+ // Apply hover and active styles
3866
+ _hover: _hover,
3867
+ _active: _active
3868
+ }, views == null ? void 0 : views.container), variant === 'link' && to ? (/*#__PURE__*/React__default.createElement(Link, Object.assign({
3871
3869
  to: to,
3872
- textDecorationColor: 'theme.primary',
3870
+ textDecorationColor: colorScheme,
3873
3871
  textDecorationThickness: "1px",
3874
3872
  textUnderlineOffset: "2px",
3875
3873
  transition: "all 0.2s ease",
@@ -3877,7 +3875,7 @@
3877
3875
  _hover: {
3878
3876
  textDecorationThickness: '2px'
3879
3877
  }
3880
- }, linkProps, views == null ? void 0 : views.link), content)) : content);
3878
+ }, views == null ? void 0 : views.link), content)) : content);
3881
3879
  };
3882
3880
 
3883
3881
  // Importing a custom hook to manage the state specific to the button component.
@@ -3926,97 +3924,95 @@
3926
3924
  pillShaped: '16px'
3927
3925
  };
3928
3926
  /**
3929
- * Card variants with consistent styling
3927
+ * Get card variants with consistent styling based on theme mode
3930
3928
  */
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)'
3929
+ var getCardVariants = themeMode => {
3930
+ var isDarkMode = themeMode === 'dark';
3931
+ return {
3932
+ default: {
3933
+ backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
3934
+ border: 'none',
3935
+ transition: 'all 0.2s ease'
3936
+ },
3937
+ outlined: {
3938
+ backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
3939
+ borderWidth: '1px',
3940
+ borderStyle: 'solid',
3941
+ borderColor: isDarkMode ? 'color.gray.700' : 'color.gray.200',
3942
+ transition: 'all 0.2s ease',
3943
+ _hover: {
3944
+ borderColor: isDarkMode ? 'color.gray.600' : 'color.gray.300'
3945
+ }
3946
+ },
3947
+ elevated: {
3948
+ backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
3949
+ boxShadow: isDarkMode ? '0px 2px 8px rgba(0, 0, 0, 0.2)' : '0px 2px 8px rgba(0, 0, 0, 0.08)',
3950
+ border: 'none',
3951
+ transition: 'all 0.2s ease',
3952
+ _hover: {
3953
+ boxShadow: isDarkMode ? '0px 4px 12px rgba(0, 0, 0, 0.25)' : '0px 4px 12px rgba(0, 0, 0, 0.12)',
3954
+ transform: 'translateY(-2px)'
3955
+ }
3955
3956
  }
3956
- }
3957
+ };
3957
3958
  };
3958
3959
  /**
3959
3960
  * Function to get default styles for Card components
3960
- * @param theme - Theme object (not used directly but kept for compatibility)
3961
+ * @param theme - Theme object from useTheme hook
3961
3962
  */
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'
3963
+ var getDefaultCardStyles = theme => {
3964
+ var {
3965
+ themeMode
3966
+ } = theme;
3967
+ var isDarkMode = themeMode === 'dark';
3968
+ return {
3969
+ container: {
3970
+ backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
3971
+ color: isDarkMode ? 'color.gray.100' : 'color.gray.900',
3972
+ borderRadius: '8px',
3973
+ overflow: 'hidden',
3974
+ transition: 'all 0.2s ease'
3975
+ },
3976
+ header: {
3977
+ padding: '16px',
3978
+ borderBottomWidth: '1px',
3979
+ borderBottomStyle: 'solid',
3980
+ borderBottomColor: isDarkMode ? 'color.gray.700' : 'color.gray.200'
3981
+ },
3982
+ content: {
3983
+ padding: '16px',
3984
+ color: isDarkMode ? 'color.gray.100' : 'color.gray.900'
3985
+ },
3986
+ footer: {
3987
+ padding: '16px',
3988
+ borderTopWidth: '1px',
3989
+ borderTopStyle: 'solid',
3990
+ borderTopColor: isDarkMode ? 'color.gray.700' : 'color.gray.200'
3995
3991
  }
3996
- }
3997
- });
3992
+ };
3993
+ };
3998
3994
 
3999
3995
  var CardContext = /*#__PURE__*/React.createContext({});
4000
3996
  var useCardContext = () => {
4001
3997
  return React.useContext(CardContext);
4002
3998
  };
4003
3999
 
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"];
4000
+ var _excluded$b = ["children", "views", "style", "themeMode"],
4001
+ _excluded2$4 = ["children", "views", "style", "themeMode"],
4002
+ _excluded3$4 = ["children", "views", "style", "themeMode"],
4003
+ _excluded4$3 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style", "themeMode"];
4008
4004
  var CardHeader = _ref => {
4009
4005
  var _contextStyles$header;
4010
4006
  var {
4011
4007
  children,
4012
4008
  style
4013
4009
  } = _ref,
4014
- props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
4010
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
4015
4011
  var theme = appStudio.useTheme();
4016
4012
  var {
4017
4013
  styles: contextStyles
4018
4014
  } = useCardContext();
4019
- var defaultStyles = getDefaultCardStyles().header;
4015
+ var defaultStyles = getDefaultCardStyles(theme).header;
4020
4016
  // Merge styles: Default < Context Override < Direct Props/Style
4021
4017
  var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.header, props, {
4022
4018
  style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$header = contextStyles.header) == null ? void 0 : _contextStyles$header.style, style)
@@ -4029,12 +4025,12 @@
4029
4025
  children,
4030
4026
  style
4031
4027
  } = _ref2,
4032
- props = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
4028
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
4033
4029
  var theme = appStudio.useTheme();
4034
4030
  var {
4035
4031
  styles: contextStyles
4036
4032
  } = useCardContext();
4037
- var defaultStyles = getDefaultCardStyles().content;
4033
+ var defaultStyles = getDefaultCardStyles(theme).content;
4038
4034
  // Merge styles: Default < Context Override < Direct Props/Style
4039
4035
  var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.content, props, {
4040
4036
  style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$conten = contextStyles.content) == null ? void 0 : _contextStyles$conten.style, style)
@@ -4047,12 +4043,12 @@
4047
4043
  children,
4048
4044
  style
4049
4045
  } = _ref3,
4050
- props = _objectWithoutPropertiesLoose(_ref3, _excluded3$3);
4046
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
4051
4047
  var theme = appStudio.useTheme();
4052
4048
  var {
4053
4049
  styles: contextStyles
4054
4050
  } = useCardContext();
4055
- var defaultStyles = getDefaultCardStyles().footer;
4051
+ var defaultStyles = getDefaultCardStyles(theme).footer;
4056
4052
  // Merge styles: Default < Context Override < Direct Props/Style
4057
4053
  var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.footer, props, {
4058
4054
  style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$footer = contextStyles.footer) == null ? void 0 : _contextStyles$footer.style, style)
@@ -4070,11 +4066,12 @@
4070
4066
  footer,
4071
4067
  isFullWidth = false,
4072
4068
  views,
4073
- style
4069
+ style,
4070
+ themeMode: elementMode
4074
4071
  } = _ref4,
4075
4072
  props = _objectWithoutPropertiesLoose(_ref4, _excluded4$3);
4076
4073
  var theme = appStudio.useTheme();
4077
- var defaultStyles = getDefaultCardStyles();
4074
+ var defaultStyles = getDefaultCardStyles(theme);
4078
4075
  // Prepare context value, merging default styles with user's `views` overrides
4079
4076
  var contextValue = React.useMemo(() => ({
4080
4077
  styles: {
@@ -4087,12 +4084,18 @@
4087
4084
  // Determine if we have explicit Card.Header, Card.Content, Card.Footer components
4088
4085
  // or if we need to wrap children in a default layout
4089
4086
  var hasExplicitStructure = React__default.Children.toArray(children).some(child => /*#__PURE__*/React__default.isValidElement(child) && (child.type === CardHeader || child.type === CardContent || child.type === CardFooter));
4087
+ // Get the appropriate variant styles based on theme mode
4088
+ var {
4089
+ themeMode
4090
+ } = theme;
4091
+ var currentThemeMode = elementMode || themeMode;
4092
+ var variantStyles = getCardVariants(currentThemeMode)[variant];
4090
4093
  // Merge styles for the root element
4091
4094
  var mergedRootProps = Object.assign({
4092
4095
  width: isFullWidth ? '100%' : 'auto',
4093
4096
  borderRadius: CardShapes[shape],
4094
4097
  overflow: 'hidden'
4095
- }, CardVariants[variant], contextValue.styles.container, props, {
4098
+ }, variantStyles, contextValue.styles.container, props, {
4096
4099
  style: Object.assign({}, (_contextValue$styles$ = contextValue.styles.container) == null ? void 0 : _contextValue$styles$.style, style)
4097
4100
  });
4098
4101
  return /*#__PURE__*/React__default.createElement(CardContext.Provider, {
@@ -4403,19 +4406,19 @@
4403
4406
  return context;
4404
4407
  };
4405
4408
 
4406
- var _excluded$a = ["children", "isActive", "views"],
4407
- _excluded2$4 = ["views", "children"],
4408
- _excluded3$4 = ["views", "children"],
4409
+ var _excluded$c = ["children", "isActive", "views"],
4410
+ _excluded2$5 = ["views", "children"],
4411
+ _excluded3$5 = ["views", "children"],
4409
4412
  _excluded4$4 = ["children", "views"],
4410
4413
  _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"];
4414
+ _excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views", "themeMode"];
4412
4415
  var CarouselSlide = _ref => {
4413
4416
  var {
4414
4417
  children,
4415
4418
  isActive,
4416
4419
  views
4417
4420
  } = _ref,
4418
- props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
4421
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
4419
4422
  return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
4420
4423
  flexShrink: 0,
4421
4424
  width: "100%",
@@ -4431,7 +4434,7 @@
4431
4434
  children // Allow custom content/icon
4432
4435
  // Spread remaining ButtonProps
4433
4436
  } = _ref2,
4434
- props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
4437
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2$5);
4435
4438
  var {
4436
4439
  goToPrevious,
4437
4440
  canGoPrevious,
@@ -4454,7 +4457,7 @@
4454
4457
  views,
4455
4458
  children
4456
4459
  } = _ref3,
4457
- props = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
4460
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded3$5);
4458
4461
  var {
4459
4462
  goToNext,
4460
4463
  canGoNext,
@@ -5339,7 +5342,7 @@
5339
5342
  })));
5340
5343
  };
5341
5344
 
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"];
5345
+ 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
5346
  var ChartView = _ref => {
5344
5347
  var {
5345
5348
  type,
@@ -5367,7 +5370,7 @@
5367
5370
  noDataIndicator,
5368
5371
  'aria-label': ariaLabel
5369
5372
  } = _ref,
5370
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
5373
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
5371
5374
  // Use chart state hook
5372
5375
  var {
5373
5376
  animationProgress,
@@ -5697,12 +5700,12 @@
5697
5700
  };
5698
5701
  };
5699
5702
 
5700
- var _excluded$c = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
5701
- _excluded2$5 = ["items", "children", "position", "side", "align", "views", "style"],
5702
- _excluded3$5 = ["item", "children", "onSelect", "isDisabled", "views"],
5703
+ var _excluded$e = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
5704
+ _excluded2$6 = ["items", "children", "position", "side", "align", "views", "style"],
5705
+ _excluded3$6 = ["item", "children", "onSelect", "isDisabled", "views"],
5703
5706
  _excluded4$5 = ["views"],
5704
5707
  _excluded5$2 = ["views"],
5705
- _excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views"];
5708
+ _excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views", "themeMode"];
5706
5709
  // Create context for the ContextMenu
5707
5710
  var ContextMenuContext = /*#__PURE__*/React.createContext({
5708
5711
  isOpen: false,
@@ -5753,7 +5756,7 @@
5753
5756
  isDisabled = false,
5754
5757
  views
5755
5758
  } = _ref2,
5756
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$c);
5759
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$e);
5757
5760
  var {
5758
5761
  triggerRef,
5759
5762
  contentId,
@@ -5807,7 +5810,7 @@
5807
5810
  views,
5808
5811
  style // Capture user-provided style
5809
5812
  } = _ref3,
5810
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$5);
5813
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$6);
5811
5814
  var {
5812
5815
  isOpen,
5813
5816
  position: contextPosition,
@@ -5878,7 +5881,7 @@
5878
5881
  isDisabled = false,
5879
5882
  views
5880
5883
  } = _ref4,
5881
- props = _objectWithoutPropertiesLoose(_ref4, _excluded3$5);
5884
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$6);
5882
5885
  var {
5883
5886
  activeSubmenuId,
5884
5887
  setActiveSubmenuId,
@@ -6036,7 +6039,7 @@
6036
6039
  }));
6037
6040
  };
6038
6041
 
6039
- var _excluded$d = ["children", "items", "size", "variant", "disableNativeContextMenu", "onOpenChange", "views"];
6042
+ var _excluded$f = ["children", "items", "size", "variant", "disableNativeContextMenu", "onOpenChange", "views"];
6040
6043
  /**
6041
6044
  * ContextMenu component for displaying a custom context menu on right-click.
6042
6045
  * Supports both data-driven approach (with items prop) and compound component pattern.
@@ -6051,7 +6054,7 @@
6051
6054
  onOpenChange,
6052
6055
  views
6053
6056
  } = _ref,
6054
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
6057
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
6055
6058
  var state = useContextMenuState({
6056
6059
  size,
6057
6060
  variant,
@@ -6103,15 +6106,15 @@
6103
6106
  ContextMenu.Divider = ContextMenuDivider;
6104
6107
  ContextMenu.Separator = ContextMenuSeparator; // Add the Separator component
6105
6108
 
6106
- var _excluded$e = ["src", "color", "views", "themeMode"],
6107
- _excluded2$6 = ["path"];
6109
+ var _excluded$g = ["src", "color", "views", "themeMode"],
6110
+ _excluded2$7 = ["path"];
6108
6111
  var FileSVG = _ref => {
6109
6112
  var {
6110
6113
  src,
6111
6114
  color,
6112
6115
  views
6113
6116
  } = _ref,
6114
- props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
6117
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
6115
6118
  var {
6116
6119
  getColor,
6117
6120
  themeMode
@@ -6134,7 +6137,7 @@
6134
6137
  var {
6135
6138
  path
6136
6139
  } = _ref2,
6137
- props = _objectWithoutPropertiesLoose(_ref2, _excluded2$6);
6140
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2$7);
6138
6141
  return /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({
6139
6142
  src: path
6140
6143
  }, props));
@@ -6185,7 +6188,7 @@
6185
6188
  };
6186
6189
  };
6187
6190
 
6188
- var _excluded$f = ["children", "views"];
6191
+ var _excluded$h = ["children", "views"];
6189
6192
  var HelperText = _ref => {
6190
6193
  var {
6191
6194
  children,
@@ -6193,7 +6196,7 @@
6193
6196
  helperText: {}
6194
6197
  }
6195
6198
  } = _ref,
6196
- props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
6199
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
6197
6200
  return /*#__PURE__*/React__default.createElement(Text
6198
6201
  // Typography properties
6199
6202
  , Object.assign({
@@ -6219,7 +6222,7 @@
6219
6222
  }, views['helperText'], props), children);
6220
6223
  };
6221
6224
 
6222
- var _excluded$g = ["children", "helperText", "error", "views"];
6225
+ var _excluded$i = ["children", "helperText", "error", "views"];
6223
6226
  var FieldContainer = _ref => {
6224
6227
  var {
6225
6228
  children,
@@ -6227,7 +6230,7 @@
6227
6230
  error = false,
6228
6231
  views
6229
6232
  } = _ref,
6230
- props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
6233
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
6231
6234
  return /*#__PURE__*/React__default.createElement(appStudio.Vertical
6232
6235
  // Layout properties
6233
6236
  , Object.assign({
@@ -6364,7 +6367,7 @@
6364
6367
  paddingRight: '16px'
6365
6368
  };
6366
6369
 
6367
- var _excluded$h = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "showLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "views"];
6370
+ var _excluded$j = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "showLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "views"];
6368
6371
  var FieldContent = _ref => {
6369
6372
  var {
6370
6373
  shadow,
@@ -6382,7 +6385,7 @@
6382
6385
  pickerBox: {}
6383
6386
  }
6384
6387
  } = _ref,
6385
- props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
6388
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
6386
6389
  // Determine if the field is in an interactive state
6387
6390
  var isInteractive = (isHovered || isFocused) && !isDisabled;
6388
6391
  // Set the appropriate color based on state
@@ -6411,12 +6414,12 @@
6411
6414
  }, showLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], views['box'], props), children);
6412
6415
  };
6413
6416
 
6414
- var _excluded$i = ["children"];
6417
+ var _excluded$k = ["children"];
6415
6418
  var FieldIcons = _ref => {
6416
6419
  var {
6417
6420
  children
6418
6421
  } = _ref,
6419
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
6422
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
6420
6423
  return /*#__PURE__*/React__default.createElement(appStudio.Center, Object.assign({
6421
6424
  gap: 10,
6422
6425
  right: 16,
@@ -6468,7 +6471,7 @@
6468
6471
  }
6469
6472
  };
6470
6473
 
6471
- var _excluded$j = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
6474
+ var _excluded$l = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
6472
6475
  var LabelView = _ref => {
6473
6476
  var {
6474
6477
  children,
@@ -6484,7 +6487,7 @@
6484
6487
  size = 'sm'
6485
6488
  // The fontSize prop for the Element is determined by the 'size' prop passed to LabelView.
6486
6489
  } = _ref,
6487
- props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
6490
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
6488
6491
  // The fontStyle prop toggles between 'italic' and 'normal' based on the 'isItalic' boolean prop.
6489
6492
  var headingStyles = heading ? HeadingSizes$1[heading] : {};
6490
6493
  // fontWeight is derived from the Typography module, ensuring consistent font weighting across the app.
@@ -6516,7 +6519,7 @@
6516
6519
  var Label = LabelComponent;
6517
6520
  // Export the 'LabelComponent' as 'Label' to be reused throughout the project.
6518
6521
 
6519
- var _excluded$k = ["children", "size", "error", "color", "views", "helperText"];
6522
+ var _excluded$m = ["children", "size", "error", "color", "views", "helperText"];
6520
6523
  var FieldLabel = _ref => {
6521
6524
  var {
6522
6525
  children,
@@ -6527,7 +6530,7 @@
6527
6530
  label: {}
6528
6531
  }
6529
6532
  } = _ref,
6530
- props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
6533
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
6531
6534
  return /*#__PURE__*/React__default.createElement(Label
6532
6535
  // Position properties
6533
6536
  , Object.assign({
@@ -6548,12 +6551,12 @@
6548
6551
  }, views['label'], props), children);
6549
6552
  };
6550
6553
 
6551
- var _excluded$l = ["children"];
6554
+ var _excluded$n = ["children"];
6552
6555
  var FieldWrapper = _ref => {
6553
6556
  var {
6554
6557
  children
6555
6558
  } = _ref,
6556
- props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
6559
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
6557
6560
  return /*#__PURE__*/React__default.createElement(appStudio.Vertical
6558
6561
  // Layout properties
6559
6562
  , Object.assign({
@@ -6586,9 +6589,9 @@
6586
6589
  xl: 28
6587
6590
  };
6588
6591
 
6589
- var _excluded$m = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
6590
- _excluded2$7 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
6591
- _excluded3$6 = ["option", "size", "removeOption"],
6592
+ var _excluded$o = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
6593
+ _excluded2$8 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
6594
+ _excluded3$7 = ["option", "size", "removeOption"],
6592
6595
  _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"];
6593
6596
  /**
6594
6597
  * Item Component
@@ -6604,7 +6607,7 @@
6604
6607
  callback = () => {},
6605
6608
  style
6606
6609
  } = _ref,
6607
- props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
6610
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
6608
6611
  // Handles the click event on an option by invoking the callback with the selected option's value
6609
6612
  var handleOptionClick = option => callback(option);
6610
6613
  // Toggles the hover state on the item
@@ -6709,7 +6712,7 @@
6709
6712
  isReadOnly = false,
6710
6713
  options = []
6711
6714
  } = _ref4,
6712
- props = _objectWithoutPropertiesLoose(_ref4, _excluded2$7);
6715
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded2$8);
6713
6716
  var handleChange = event => {
6714
6717
  if (onChange) onChange(event);
6715
6718
  };
@@ -6814,7 +6817,7 @@
6814
6817
  size = 'md',
6815
6818
  removeOption = () => {}
6816
6819
  } = _ref6,
6817
- props = _objectWithoutPropertiesLoose(_ref6, _excluded3$6);
6820
+ props = _objectWithoutPropertiesLoose(_ref6, _excluded3$7);
6818
6821
  var handleClick = () => removeOption(option);
6819
6822
  return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
6820
6823
  gap: 8,
@@ -7103,7 +7106,7 @@
7103
7106
  }
7104
7107
  };
7105
7108
 
7106
- var _excluded$n = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "views"];
7109
+ var _excluded$p = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "views"];
7107
7110
  var SwitchContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
7108
7111
  type: "checkbox"
7109
7112
  }, props));
@@ -7132,7 +7135,7 @@
7132
7135
  label: {}
7133
7136
  }
7134
7137
  } = _ref,
7135
- props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
7138
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
7136
7139
  var handleToggle = event => {
7137
7140
  if (!isReadOnly) {
7138
7141
  setValue(!value);
@@ -7256,7 +7259,7 @@
7256
7259
  // Export of the useTextAreaState hook for external usage.
7257
7260
  };
7258
7261
 
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"];
7262
+ 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
7263
  var TextAreaView = _ref => {
7261
7264
  var {
7262
7265
  id,
@@ -7282,7 +7285,6 @@
7282
7285
  onBlur = () => {},
7283
7286
  onChange,
7284
7287
  onFocus,
7285
- onChangeText,
7286
7288
  setHint = () => {},
7287
7289
  setValue = () => {},
7288
7290
  setIsFocused = () => {},
@@ -7292,7 +7294,7 @@
7292
7294
  helperText: {}
7293
7295
  }
7294
7296
  } = _ref,
7295
- props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
7297
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
7296
7298
  var showLabel = !!(isFocused && label);
7297
7299
  /**
7298
7300
  * Styles for the textarea field
@@ -7337,11 +7339,9 @@
7337
7339
  var handleChange = event => {
7338
7340
  if (typeof event === 'string') {
7339
7341
  setValue(event);
7340
- if (onChangeText) onChangeText(event);
7341
7342
  if (onChange) onChange(event);
7342
7343
  } else {
7343
7344
  setValue(event.target.value);
7344
- if (onChangeText) onChangeText(event.target.value);
7345
7345
  if (onChange) onChange(event.target.value);
7346
7346
  }
7347
7347
  };
@@ -7380,15 +7380,13 @@
7380
7380
  readOnly: isReadOnly,
7381
7381
  disabled: isDisabled,
7382
7382
  autoFocus: isAutoFocus,
7383
- editable: isEditable,
7383
+ editable: !!isEditable.toString(),
7384
7384
  placeholder: hint,
7385
7385
  onBlur: handleBlur,
7386
7386
  onFocus: handleFocus,
7387
- multiline: isMultiline
7388
- }, fieldStyles, {
7389
- onChange: handleChange,
7390
- onChangeText: handleChange
7391
- }, views == null ? void 0 : views.textarea)))));
7387
+ multiline: !!isMultiline.toString(),
7388
+ onChange: handleChange
7389
+ }, fieldStyles, views == null ? void 0 : views.textarea)))));
7392
7390
  };
7393
7391
 
7394
7392
  // Defines the TextAreaComponent as a functional component that accepts TextAreaProps for type safety and structure.
@@ -7435,7 +7433,7 @@
7435
7433
  };
7436
7434
  };
7437
7435
 
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"];
7436
+ 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
7437
  /**
7440
7438
  * Input component for text fields
7441
7439
  */
@@ -7481,7 +7479,7 @@
7481
7479
  onBlur = () => {},
7482
7480
  themeMode: elementMode
7483
7481
  } = _ref,
7484
- props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
7482
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
7485
7483
  var {
7486
7484
  getColor,
7487
7485
  themeMode
@@ -7739,7 +7737,7 @@
7739
7737
  }
7740
7738
  };
7741
7739
 
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"];
7740
+ 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
7741
  var CheckboxView = _ref => {
7744
7742
  var {
7745
7743
  id,
@@ -7766,7 +7764,7 @@
7766
7764
  },
7767
7765
  infoText
7768
7766
  } = _ref,
7769
- props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
7767
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
7770
7768
  var handleHover = () => setIsHovered(!isHovered);
7771
7769
  var handleChange = () => {
7772
7770
  if (!isReadOnly && !isDisabled) {
@@ -9352,11 +9350,11 @@
9352
9350
  xl: 16
9353
9351
  };
9354
9352
 
9355
- var _excluded$r = ["size"],
9356
- _excluded2$8 = ["size"],
9357
- _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"];
9353
+ var _excluded$t = ["size"],
9354
+ _excluded2$9 = ["size"],
9355
+ _excluded3$8 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "onChange", "onBlur", "setHide", "setNewOptions", "setIsHovered", "setIsFocused", "setValue", "views", "themeMode"];
9358
9356
  var CountryList = _ref => {
9359
- var props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
9357
+ var props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
9360
9358
  return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
9361
9359
  as: "ul"
9362
9360
  }, props));
@@ -9365,7 +9363,7 @@
9365
9363
  type: "country"
9366
9364
  }, props)));
9367
9365
  var CountryItem = _ref2 => {
9368
- var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$8);
9366
+ var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$9);
9369
9367
  return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
9370
9368
  as: "li"
9371
9369
  }, props));
@@ -9467,7 +9465,7 @@
9467
9465
  },
9468
9466
  themeMode: elementMode
9469
9467
  } = _ref5,
9470
- props = _objectWithoutPropertiesLoose(_ref5, _excluded3$7);
9468
+ props = _objectWithoutPropertiesLoose(_ref5, _excluded3$8);
9471
9469
  var {
9472
9470
  getColor,
9473
9471
  themeMode
@@ -9595,7 +9593,7 @@
9595
9593
  };
9596
9594
  };
9597
9595
 
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"];
9596
+ 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
9597
  var DatePickerContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
9600
9598
  type: "date"
9601
9599
  }, props));
@@ -9628,7 +9626,7 @@
9628
9626
  onChange,
9629
9627
  onChangeText
9630
9628
  } = _ref,
9631
- props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
9629
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
9632
9630
  var showLabel = !!(isFocused && label);
9633
9631
  var handleHover = () => setIsHovered(!isHovered);
9634
9632
  var handleFocus = () => setIsFocused(true);
@@ -9715,8 +9713,8 @@
9715
9713
  }, props, textFieldStates);
9716
9714
  };
9717
9715
 
9718
- var _excluded$t = ["visibleIcon", "hiddenIcon"],
9719
- _excluded2$9 = ["isVisible", "setIsVisible"];
9716
+ var _excluded$v = ["visibleIcon", "hiddenIcon"],
9717
+ _excluded2$a = ["isVisible", "setIsVisible"];
9720
9718
  var PasswordComponent = _ref => {
9721
9719
  var {
9722
9720
  visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
@@ -9726,13 +9724,13 @@
9726
9724
  widthHeight: 14
9727
9725
  })
9728
9726
  } = _ref,
9729
- props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
9727
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
9730
9728
  var _usePasswordState = usePasswordState(props),
9731
9729
  {
9732
9730
  isVisible,
9733
9731
  setIsVisible
9734
9732
  } = _usePasswordState,
9735
- passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$9);
9733
+ passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$a);
9736
9734
  return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
9737
9735
  type: isVisible ? 'text' : 'password',
9738
9736
  isClearable: false,
@@ -9780,7 +9778,7 @@
9780
9778
  };
9781
9779
  };
9782
9780
 
9783
- var _excluded$u = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "views", "isDropdownVisible", "setIsDropdownVisible"];
9781
+ var _excluded$w = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "views", "isDropdownVisible", "setIsDropdownVisible"];
9784
9782
  // Defines the functional component 'ComboBoxView' with destructured props.
9785
9783
  var ComboBoxView = _ref => {
9786
9784
  var {
@@ -9805,7 +9803,7 @@
9805
9803
  setIsDropdownVisible
9806
9804
  // Collects all further props not destructured explicitly.
9807
9805
  } = _ref,
9808
- props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
9806
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
9809
9807
  // Sets up an effect to handle clicking outside the dropdown to close it.
9810
9808
  React.useEffect(() => {
9811
9809
  var handleClickOutside = event => {
@@ -9917,7 +9915,7 @@
9917
9915
  }))))))))))));
9918
9916
  };
9919
9917
 
9920
- var _excluded$v = ["id", "name", "items", "placeholder", "searchPlaceholder"];
9918
+ var _excluded$x = ["id", "name", "items", "placeholder", "searchPlaceholder"];
9921
9919
  // Defines the ComboBoxComponent functional component with ComboBoxProps
9922
9920
  var ComboBoxComponent = _ref => {
9923
9921
  var {
@@ -9933,7 +9931,7 @@
9933
9931
  searchPlaceholder
9934
9932
  // Destructures the rest of the props not explicitly defined
9935
9933
  } = _ref,
9936
- props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
9934
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
9937
9935
  // Initializes ComboBox state using custom hook with items and placeholders
9938
9936
  var state = useComboBoxState(items, placeholder, searchPlaceholder);
9939
9937
  return (
@@ -10238,7 +10236,7 @@
10238
10236
  };
10239
10237
  };
10240
10238
 
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"];
10239
+ 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
10240
  // Create a context for OTP input slots
10243
10241
  var OTPInputContext = /*#__PURE__*/React.createContext({
10244
10242
  slots: [],
@@ -10292,7 +10290,7 @@
10292
10290
  onFocus = () => {}
10293
10291
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
10294
10292
  } = _ref,
10295
- props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
10293
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
10296
10294
  appStudio.useTheme(); // Initialize theme context
10297
10295
  var showLabel = !!label;
10298
10296
  // Create context value for slots
@@ -10522,7 +10520,7 @@
10522
10520
  };
10523
10521
  var OTPInput = OTPInputComponent;
10524
10522
 
10525
- var _excluded$x = ["children", "autoFocus", "initFocus", "onChange"];
10523
+ var _excluded$z = ["children", "autoFocus", "initFocus", "onChange"];
10526
10524
  var FocusContext = /*#__PURE__*/React.createContext({
10527
10525
  active: false,
10528
10526
  focusNextInput: () => {},
@@ -10538,7 +10536,7 @@
10538
10536
  initFocus,
10539
10537
  onChange = () => {}
10540
10538
  } = _ref,
10541
- props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
10539
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
10542
10540
  var formik$1 = formik.useFormikContext();
10543
10541
  React.useEffect(() => {
10544
10542
  onChange(formik$1.values);
@@ -10586,7 +10584,7 @@
10586
10584
  }, /*#__PURE__*/React__default.createElement(appStudio.Form, Object.assign({}, props), children));
10587
10585
  };
10588
10586
 
10589
- var _excluded$y = ["name", "type"];
10587
+ var _excluded$A = ["name", "type"];
10590
10588
  var getInputTypeProps = type => {
10591
10589
  switch (type) {
10592
10590
  case 'email':
@@ -10625,7 +10623,7 @@
10625
10623
  name,
10626
10624
  type
10627
10625
  } = _ref,
10628
- props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
10626
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
10629
10627
  var focus = useFormFocus();
10630
10628
  var {
10631
10629
  touched,
@@ -10669,13 +10667,13 @@
10669
10667
  } : {});
10670
10668
  };
10671
10669
 
10672
- var _excluded$z = ["value"];
10670
+ var _excluded$B = ["value"];
10673
10671
  var CheckboxComponent$1 = props => {
10674
10672
  var _useFormikInput = useFormikInput(props),
10675
10673
  {
10676
10674
  value
10677
10675
  } = _useFormikInput,
10678
- formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$z);
10676
+ formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$B);
10679
10677
  formProps.isChecked = value;
10680
10678
  var checkboxStates = useCheckboxState(props);
10681
10679
  return /*#__PURE__*/React__default.createElement(CheckboxView, Object.assign({}, checkboxStates, formProps));
@@ -10733,11 +10731,11 @@
10733
10731
  */
10734
10732
  var FormikTextArea = TextAreaComponent$1;
10735
10733
 
10736
- var _excluded$A = ["value"];
10734
+ var _excluded$C = ["value"];
10737
10735
  var TextFieldComponent$1 = props => {
10738
10736
  var formProps = useFormikInput(props);
10739
10737
  var _useTextFieldState = useTextFieldState(props),
10740
- textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$A);
10738
+ textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$C);
10741
10739
  return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, textFieldStates, formProps));
10742
10740
  };
10743
10741
  /**
@@ -10745,8 +10743,8 @@
10745
10743
  */
10746
10744
  var FormikTextField = TextFieldComponent$1;
10747
10745
 
10748
- var _excluded$B = ["visibleIcon", "hiddenIcon"],
10749
- _excluded2$a = ["isVisible", "setIsVisible"];
10746
+ var _excluded$D = ["visibleIcon", "hiddenIcon"],
10747
+ _excluded2$b = ["isVisible", "setIsVisible"];
10750
10748
  var PasswordComponent$1 = _ref => {
10751
10749
  var {
10752
10750
  visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
@@ -10756,14 +10754,14 @@
10756
10754
  widthHeight: 14
10757
10755
  })
10758
10756
  } = _ref,
10759
- props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
10757
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
10760
10758
  var formProps = useFormikInput(props);
10761
10759
  var _usePasswordState = usePasswordState(formProps),
10762
10760
  {
10763
10761
  isVisible,
10764
10762
  setIsVisible
10765
10763
  } = _usePasswordState,
10766
- passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$a);
10764
+ passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$b);
10767
10765
  return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
10768
10766
  type: isVisible ? 'text' : 'password',
10769
10767
  isClearable: false,
@@ -10781,14 +10779,14 @@
10781
10779
  */
10782
10780
  var FormikPassword = PasswordComponent$1;
10783
10781
 
10784
- var _excluded$C = ["items", "placeholder", "searchPlaceholder"];
10782
+ var _excluded$E = ["items", "placeholder", "searchPlaceholder"];
10785
10783
  var ComboBoxComponent$1 = _ref => {
10786
10784
  var {
10787
10785
  items,
10788
10786
  placeholder,
10789
10787
  searchPlaceholder
10790
10788
  } = _ref,
10791
- props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
10789
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
10792
10790
  var formProps = useFormikInput(props);
10793
10791
  var ComboBoxStates = useComboBoxState(items, placeholder, searchPlaceholder);
10794
10792
  // Ensure the onChange function from formProps is being called when an item is selected
@@ -11012,17 +11010,22 @@
11012
11010
  rounded: 4,
11013
11011
  pillShaped: 24
11014
11012
  };
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
- }
11013
+ var getSlider = themeMode => {
11014
+ return {
11015
+ default: {
11016
+ backgroundColor: 'color.blueGray.200'
11017
+ },
11018
+ outline: {
11019
+ backgroundColor: 'transparent',
11020
+ borderWidth: 1,
11021
+ borderStyle: 'solid',
11022
+ borderColor: 'color.blueGray.300'
11023
+ }
11024
+ };
11025
+ // Add dark mode conditional styling here
11025
11026
  };
11027
+ // For backward compatibility
11028
+ var SliderVariants = /*#__PURE__*/getSlider();
11026
11029
  // Maps Size enum to track height/width and thumb size for the new implementation
11027
11030
  var EnhancedSliderSizes = {
11028
11031
  xs: {
@@ -11064,7 +11067,7 @@
11064
11067
  }
11065
11068
  };
11066
11069
 
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"];
11070
+ 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
11071
  var SliderView = _ref => {
11069
11072
  var _views$tooltip, _views$tooltip2;
11070
11073
  var {
@@ -11107,7 +11110,7 @@
11107
11110
  tooltip: {}
11108
11111
  }
11109
11112
  } = _ref,
11110
- props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
11113
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
11111
11114
  var {
11112
11115
  getColor,
11113
11116
  themeMode
@@ -11480,7 +11483,7 @@
11480
11483
  useMessageStore.getState().hide();
11481
11484
  };
11482
11485
 
11483
- var Themes$1 = {
11486
+ var Themes = {
11484
11487
  info: {
11485
11488
  container: {
11486
11489
  backgroundColor: 'color.blue.200',
@@ -11578,7 +11581,7 @@
11578
11581
  }
11579
11582
  return;
11580
11583
  }, []);
11581
- var Theme = theme != null ? theme : Themes$1;
11584
+ var Theme = theme != null ? theme : Themes;
11582
11585
  var showAction = !!(action && actionText);
11583
11586
  var containerStyle = {
11584
11587
  borderWidth: 1,
@@ -11827,7 +11830,8 @@
11827
11830
  renderError = _ref2 => {
11828
11831
  var {
11829
11832
  errorMessage,
11830
- errorMessageProps
11833
+ errorMessageProps,
11834
+ themeMode: elementMode
11831
11835
  } = _ref2;
11832
11836
  return /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
11833
11837
  color: "red",
@@ -11978,7 +11982,7 @@
11978
11982
  }, views == null ? void 0 : views.view)));
11979
11983
  };
11980
11984
 
11981
- var _excluded$E = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress", "fileType"];
11985
+ var _excluded$G = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress", "fileType"];
11982
11986
  var Uploader = _ref => {
11983
11987
  var {
11984
11988
  accept = '*/*',
@@ -11991,7 +11995,7 @@
11991
11995
  progress = 0,
11992
11996
  fileType
11993
11997
  } = _ref,
11994
- props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
11998
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$G);
11995
11999
  var {
11996
12000
  previewUrl,
11997
12001
  thumbnailUrl,
@@ -12182,9 +12186,9 @@
12182
12186
  }
12183
12187
  };
12184
12188
 
12185
- var _excluded$F = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
12186
- _excluded2$b = ["children", "shadow", "isFullScreen", "shape", "views"],
12187
- _excluded3$8 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
12189
+ var _excluded$H = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
12190
+ _excluded2$c = ["children", "shadow", "isFullScreen", "shape", "views"],
12191
+ _excluded3$9 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
12188
12192
  _excluded4$7 = ["children", "views"],
12189
12193
  _excluded5$3 = ["children", "views"];
12190
12194
  var ModalOverlay = _ref => {
@@ -12197,7 +12201,7 @@
12197
12201
  position = 'center',
12198
12202
  views
12199
12203
  } = _ref,
12200
- props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
12204
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
12201
12205
  var handleClick = () => {
12202
12206
  if (!isClosePrevented) onClose();
12203
12207
  };
@@ -12233,7 +12237,7 @@
12233
12237
  shape = 'rounded',
12234
12238
  views
12235
12239
  } = _ref2,
12236
- props = _objectWithoutPropertiesLoose(_ref2, _excluded2$b);
12240
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2$c);
12237
12241
  var defaultShadow = typeof document !== undefined ? {
12238
12242
  boxShadow: '0px 4px 16px rgba(0, 0, 0, 0.15)'
12239
12243
  } : {
@@ -12266,19 +12270,14 @@
12266
12270
  buttonPosition = 'right',
12267
12271
  views
12268
12272
  } = _ref3,
12269
- props = _objectWithoutPropertiesLoose(_ref3, _excluded3$8);
12273
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded3$9);
12270
12274
  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
- });
12275
+ var buttonIcon = /*#__PURE__*/React__default.createElement(appStudio.View, {
12276
+ onClick: onClose
12277
+ }, /*#__PURE__*/React__default.createElement(CloseIcon, {
12278
+ widthHeight: HeaderIconSizes[iconSize],
12279
+ color: buttonColor
12280
+ }));
12282
12281
  return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
12283
12282
  justifyContent: buttonPosition === 'none' ? 'center' : 'space-between',
12284
12283
  alignItems: "center",
@@ -12498,7 +12497,7 @@
12498
12497
  }
12499
12498
  };
12500
12499
 
12501
- var _excluded$G = ["href", "children", "views"];
12500
+ var _excluded$I = ["href", "children", "views"];
12502
12501
  // Create context for the NavigationMenu
12503
12502
  var NavigationMenuContext = /*#__PURE__*/React.createContext({
12504
12503
  activeItemId: null,
@@ -12733,7 +12732,7 @@
12733
12732
  children,
12734
12733
  views
12735
12734
  } = _ref6,
12736
- props = _objectWithoutPropertiesLoose(_ref6, _excluded$G);
12735
+ props = _objectWithoutPropertiesLoose(_ref6, _excluded$I);
12737
12736
  var {
12738
12737
  itemValue,
12739
12738
  isDisabled
@@ -12782,7 +12781,8 @@
12782
12781
  items,
12783
12782
  orientation,
12784
12783
  //size, variant,
12785
- views
12784
+ views,
12785
+ themeMode: elementMode
12786
12786
  } = _ref7;
12787
12787
  var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
12788
12788
  if (!items || items.length === 0) {
@@ -12799,7 +12799,7 @@
12799
12799
  })))));
12800
12800
  };
12801
12801
 
12802
- var _excluded$H = ["items", "children", "orientation", "size", "variant", "defaultActiveItemId", "defaultExpandedItemIds", "onItemActivate", "views"];
12802
+ var _excluded$J = ["items", "children", "orientation", "size", "variant", "defaultActiveItemId", "defaultExpandedItemIds", "onItemActivate", "views"];
12803
12803
  /**
12804
12804
  * NavigationMenu component for creating navigation menus with optional nested items.
12805
12805
  * Supports both data-driven approach (with items prop) and compound component pattern.
@@ -12816,7 +12816,7 @@
12816
12816
  onItemActivate,
12817
12817
  views
12818
12818
  } = _ref,
12819
- props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
12819
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$J);
12820
12820
  var {
12821
12821
  activeItemId,
12822
12822
  setActiveItemId,
@@ -13016,7 +13016,8 @@
13016
13016
  data,
13017
13017
  columns,
13018
13018
  footer,
13019
- caption
13019
+ caption,
13020
+ themeMode: elementMode
13020
13021
  } = _ref;
13021
13022
  return /*#__PURE__*/React__default.createElement(TableContainer, {
13022
13023
  role: "Table"
@@ -13283,7 +13284,7 @@
13283
13284
  };
13284
13285
  };
13285
13286
 
13286
- var _excluded$I = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views"];
13287
+ var _excluded$K = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views"];
13287
13288
  var ToggleView = _ref => {
13288
13289
  var {
13289
13290
  children,
@@ -13297,7 +13298,7 @@
13297
13298
  onToggle,
13298
13299
  views
13299
13300
  } = _ref,
13300
- props = _objectWithoutPropertiesLoose(_ref, _excluded$I);
13301
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$K);
13301
13302
  var toggleColor = !isDisabled ? 'color.trueGray.400' : 'theme.disabled';
13302
13303
  var isActive = !!(isToggle || isHovered);
13303
13304
  var toggleVariants = {
@@ -13340,7 +13341,7 @@
13340
13341
  }, toggleVariants[variant], props, views == null ? void 0 : views.container), children);
13341
13342
  };
13342
13343
 
13343
- var _excluded$J = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
13344
+ var _excluded$L = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
13344
13345
  // Destructuring properties from ToggleProps to be used within the ToggleComponent.
13345
13346
  var ToggleComponent = _ref => {
13346
13347
  var {
@@ -13352,7 +13353,7 @@
13352
13353
  isToggled = false,
13353
13354
  onToggle
13354
13355
  } = _ref,
13355
- props = _objectWithoutPropertiesLoose(_ref, _excluded$J);
13356
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$L);
13356
13357
  // Initializing toggle state and set state functions using the custom hook useToggleState.
13357
13358
  var {
13358
13359
  isHovered,
@@ -13559,7 +13560,8 @@
13559
13560
  draggedIndex,
13560
13561
  itemRefs,
13561
13562
  handleDragStart,
13562
- views
13563
+ views,
13564
+ themeMode: elementMode
13563
13565
  } = _ref;
13564
13566
  return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
13565
13567
  overflow: "hidden",
@@ -13742,11 +13744,11 @@
13742
13744
  return positions[side];
13743
13745
  };
13744
13746
 
13745
- var _excluded$K = ["children", "views"],
13746
- _excluded2$c = ["items", "side", "align", "views"],
13747
- _excluded3$9 = ["item", "views"],
13747
+ var _excluded$M = ["children", "views"],
13748
+ _excluded2$d = ["items", "side", "align", "views"],
13749
+ _excluded3$a = ["item", "views"],
13748
13750
  _excluded4$8 = ["views"],
13749
- _excluded5$4 = ["trigger", "items", "side", "align", "views"];
13751
+ _excluded5$4 = ["trigger", "items", "side", "align", "views", "themeMode"];
13750
13752
  // Create context for the DropdownMenu
13751
13753
  var DropdownMenuContext = /*#__PURE__*/React.createContext({
13752
13754
  isOpen: false,
@@ -13780,7 +13782,7 @@
13780
13782
  children,
13781
13783
  views
13782
13784
  } = _ref2,
13783
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$K);
13785
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$M);
13784
13786
  var {
13785
13787
  isOpen,
13786
13788
  setIsOpen
@@ -13805,7 +13807,7 @@
13805
13807
  align = 'start',
13806
13808
  views
13807
13809
  } = _ref3,
13808
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$c);
13810
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$d);
13809
13811
  var {
13810
13812
  isOpen,
13811
13813
  //activeSubmenuId, setActiveSubmenuId, size,
@@ -13841,7 +13843,7 @@
13841
13843
  item,
13842
13844
  views
13843
13845
  } = _ref4,
13844
- props = _objectWithoutPropertiesLoose(_ref4, _excluded3$9);
13846
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$a);
13845
13847
  var {
13846
13848
  activeSubmenuId,
13847
13849
  setActiveSubmenuId,
@@ -13940,7 +13942,7 @@
13940
13942
  }));
13941
13943
  };
13942
13944
 
13943
- var _excluded$L = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
13945
+ var _excluded$N = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
13944
13946
  /**
13945
13947
  * DropdownMenu component for displaying a menu when clicking on a trigger element.
13946
13948
  */
@@ -13955,7 +13957,7 @@
13955
13957
  defaultOpen = false,
13956
13958
  views
13957
13959
  } = _ref,
13958
- props = _objectWithoutPropertiesLoose(_ref, _excluded$L);
13960
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$N);
13959
13961
  var {
13960
13962
  isOpen,
13961
13963
  setIsOpen,
@@ -14153,8 +14155,8 @@
14153
14155
  return rect;
14154
14156
  };
14155
14157
 
14156
- var _excluded$M = ["children", "views", "asChild"],
14157
- _excluded2$d = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
14158
+ var _excluded$O = ["children", "views", "asChild"],
14159
+ _excluded2$e = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
14158
14160
  // Create context for the HoverCard
14159
14161
  var HoverCardContext = /*#__PURE__*/React.createContext({
14160
14162
  isOpen: false,
@@ -14192,7 +14194,7 @@
14192
14194
  views,
14193
14195
  asChild = false
14194
14196
  } = _ref2,
14195
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$M);
14197
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$O);
14196
14198
  var {
14197
14199
  openCard,
14198
14200
  closeCard,
@@ -14240,7 +14242,7 @@
14240
14242
  minWidth = '200px',
14241
14243
  maxWidth = '300px'
14242
14244
  } = _ref3,
14243
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$d);
14245
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$e);
14244
14246
  var {
14245
14247
  isOpen,
14246
14248
  cancelCloseTimer,
@@ -14279,7 +14281,7 @@
14279
14281
  }, views == null ? void 0 : views.container, props), children);
14280
14282
  };
14281
14283
 
14282
- var _excluded$N = ["children", "views", "openDelay", "closeDelay"];
14284
+ var _excluded$P = ["children", "views", "openDelay", "closeDelay"];
14283
14285
  /**
14284
14286
  * HoverCard component displays floating content when hovering over a trigger element.
14285
14287
  * Supports configurable open and close delays for a smoother user experience.
@@ -14291,7 +14293,7 @@
14291
14293
  openDelay,
14292
14294
  closeDelay
14293
14295
  } = _ref,
14294
- props = _objectWithoutPropertiesLoose(_ref, _excluded$N);
14296
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$P);
14295
14297
  var hoverCardState = useHoverCardState({
14296
14298
  openDelay,
14297
14299
  closeDelay
@@ -14421,7 +14423,7 @@
14421
14423
  };
14422
14424
  };
14423
14425
 
14424
- var _excluded$O = ["children", "orientation", "size", "variant", "views"];
14426
+ var _excluded$Q = ["children", "orientation", "size", "variant", "views"];
14425
14427
  // Create context for the Menubar
14426
14428
  var MenubarContext = /*#__PURE__*/React.createContext({
14427
14429
  activeMenuId: null,
@@ -14455,7 +14457,7 @@
14455
14457
  variant = 'default',
14456
14458
  views
14457
14459
  } = _ref2,
14458
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$O);
14460
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$Q);
14459
14461
  var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
14460
14462
  return /*#__PURE__*/React__default.createElement(Container, Object.assign({
14461
14463
  role: "menubar",
@@ -14602,7 +14604,8 @@
14602
14604
  orientation,
14603
14605
  size,
14604
14606
  variant,
14605
- views
14607
+ views,
14608
+ themeMode: elementMode
14606
14609
  } = _ref8;
14607
14610
  return /*#__PURE__*/React__default.createElement(MenubarRoot, {
14608
14611
  orientation: orientation,
@@ -14640,7 +14643,7 @@
14640
14643
  })))))));
14641
14644
  };
14642
14645
 
14643
- var _excluded$P = ["items", "orientation", "size", "variant", "defaultActiveMenuId", "defaultOpenMenuId", "views"];
14646
+ var _excluded$R = ["items", "orientation", "size", "variant", "defaultActiveMenuId", "defaultOpenMenuId", "views"];
14644
14647
  /**
14645
14648
  * Menubar component for creating horizontal or vertical menu bars with dropdown menus.
14646
14649
  */
@@ -14654,7 +14657,7 @@
14654
14657
  defaultOpenMenuId = null,
14655
14658
  views
14656
14659
  } = _ref,
14657
- props = _objectWithoutPropertiesLoose(_ref, _excluded$P);
14660
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$R);
14658
14661
  var {
14659
14662
  activeMenuId,
14660
14663
  setActiveMenuId,
@@ -14810,7 +14813,7 @@
14810
14813
  }
14811
14814
  };
14812
14815
 
14813
- var _excluded$Q = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "visiblePageNumbers", "views"];
14816
+ var _excluded$S = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "visiblePageNumbers", "views"];
14814
14817
  var PaginationView = _ref => {
14815
14818
  var {
14816
14819
  currentPage,
@@ -14841,7 +14844,7 @@
14841
14844
  visiblePageNumbers,
14842
14845
  views
14843
14846
  } = _ref,
14844
- props = _objectWithoutPropertiesLoose(_ref, _excluded$Q);
14847
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$S);
14845
14848
  var handlePageChange = page => {
14846
14849
  if (page < 1 || page > totalPages || page === currentPage) {
14847
14850
  return;
@@ -14960,7 +14963,7 @@
14960
14963
  }, option.label))))));
14961
14964
  };
14962
14965
 
14963
- var _excluded$R = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "views"];
14966
+ var _excluded$T = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "views"];
14964
14967
  /**
14965
14968
  * Pagination component for navigating through pages of content.
14966
14969
  */
@@ -14981,7 +14984,7 @@
14981
14984
  shape = 'rounded',
14982
14985
  views
14983
14986
  } = _ref,
14984
- props = _objectWithoutPropertiesLoose(_ref, _excluded$R);
14987
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$T);
14985
14988
  var {
14986
14989
  visiblePageNumbers
14987
14990
  } = usePaginationState(currentPage, totalPages, maxPageButtons);
@@ -15017,11 +15020,16 @@
15017
15020
  /**
15018
15021
  * Variant configurations for the Separator component
15019
15022
  */
15020
- var SeparatorVariants = {
15021
- solid: 'solid',
15022
- dashed: 'dashed',
15023
- dotted: 'dotted'
15023
+ var getSeparator = themeMode => {
15024
+ return {
15025
+ solid: 'solid',
15026
+ dashed: 'dashed',
15027
+ dotted: 'dotted'
15028
+ };
15029
+ // Add dark mode conditional styling here
15024
15030
  };
15031
+ // For backward compatibility
15032
+ var SeparatorVariants = /*#__PURE__*/getSeparator();
15025
15033
  /**
15026
15034
  * Thickness configurations for the Separator component
15027
15035
  * Following the 4px grid system
@@ -15046,7 +15054,7 @@
15046
15054
  }
15047
15055
  };
15048
15056
 
15049
- var _excluded$S = ["orientation", "variant", "thickness", "color", "spacing", "label", "decorative", "views"];
15057
+ var _excluded$U = ["orientation", "variant", "thickness", "color", "spacing", "label", "decorative", "views", "themeMode"];
15050
15058
  var SeparatorView = _ref => {
15051
15059
  var {
15052
15060
  orientation = 'horizontal',
@@ -15058,9 +15066,11 @@
15058
15066
  decorative = false,
15059
15067
  views
15060
15068
  } = _ref,
15061
- props = _objectWithoutPropertiesLoose(_ref, _excluded$S);
15069
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$U);
15062
15070
  // Access theme if needed for future enhancements
15063
- var {} = appStudio.useTheme();
15071
+ var {
15072
+ themeMode
15073
+ } = appStudio.useTheme();
15064
15074
  // Use provided color or default from theme
15065
15075
  var separatorColor = color || 'color.gray.200';
15066
15076
  var borderStyle = SeparatorVariants[variant];
@@ -15216,37 +15226,42 @@
15216
15226
  /**
15217
15227
  * Variant styles for the Sidebar component
15218
15228
  */
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
- }
15229
+ var getSidebar = themeMode => {
15230
+ return {
15231
+ default: {
15232
+ backgroundColor: 'white',
15233
+ color: 'color.gray.800',
15234
+ transition: 'all 0.2s ease'
15235
+ },
15236
+ filled: {
15237
+ backgroundColor: 'color.gray.100',
15238
+ color: 'color.gray.800',
15239
+ transition: 'all 0.2s ease'
15240
+ },
15241
+ outline: {
15242
+ backgroundColor: 'white',
15243
+ borderWidth: '1px',
15244
+ borderStyle: 'solid',
15245
+ borderColor: 'color.gray.200',
15246
+ color: 'color.gray.800',
15247
+ transition: 'all 0.2s ease'
15248
+ },
15249
+ subtle: {
15250
+ backgroundColor: 'color.gray.50',
15251
+ color: 'color.gray.800',
15252
+ transition: 'all 0.2s ease'
15253
+ },
15254
+ elevated: {
15255
+ backgroundColor: 'white',
15256
+ boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.1)',
15257
+ color: 'color.gray.800',
15258
+ transition: 'all 0.2s ease'
15259
+ }
15260
+ };
15261
+ // Add dark mode conditional styling here
15249
15262
  };
15263
+ // For backward compatibility
15264
+ var SidebarVariants = /*#__PURE__*/getSidebar();
15250
15265
  /**
15251
15266
  * Position styles for the Sidebar component
15252
15267
  */
@@ -15289,10 +15304,10 @@
15289
15304
  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
15305
  };
15291
15306
 
15292
- var _excluded$T = ["children", "showToggleButton", "views"],
15293
- _excluded2$e = ["children", "views"],
15294
- _excluded3$a = ["children", "views"],
15295
- _excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views"];
15307
+ var _excluded$V = ["children", "showToggleButton", "views"],
15308
+ _excluded2$f = ["children", "views"],
15309
+ _excluded3$b = ["children", "views"],
15310
+ _excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
15296
15311
  // Create context for the Sidebar
15297
15312
  var SidebarContext = /*#__PURE__*/React.createContext({
15298
15313
  isExpanded: true,
@@ -15322,7 +15337,7 @@
15322
15337
  showToggleButton = true,
15323
15338
  views
15324
15339
  } = _ref2,
15325
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$T);
15340
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$V);
15326
15341
  var {
15327
15342
  isExpanded,
15328
15343
  toggleExpanded,
@@ -15389,7 +15404,7 @@
15389
15404
  children,
15390
15405
  views
15391
15406
  } = _ref3,
15392
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$e);
15407
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$f);
15393
15408
  var {
15394
15409
  isExpanded
15395
15410
  } = useSidebarContext();
@@ -15407,7 +15422,7 @@
15407
15422
  children,
15408
15423
  views
15409
15424
  } = _ref4,
15410
- props = _objectWithoutPropertiesLoose(_ref4, _excluded3$a);
15425
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$b);
15411
15426
  var {
15412
15427
  isExpanded
15413
15428
  } = useSidebarContext();
@@ -15477,7 +15492,7 @@
15477
15492
  }))));
15478
15493
  };
15479
15494
 
15480
- var _excluded$U = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
15495
+ var _excluded$W = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
15481
15496
  /**
15482
15497
  * Sidebar component for creating collapsible, themeable and customizable sidebars.
15483
15498
  */
@@ -15499,7 +15514,7 @@
15499
15514
  breakpointBehavior = 'overlay',
15500
15515
  views
15501
15516
  } = _ref,
15502
- props = _objectWithoutPropertiesLoose(_ref, _excluded$U);
15517
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$W);
15503
15518
  var {
15504
15519
  isExpanded,
15505
15520
  toggleExpanded,
@@ -15915,35 +15930,40 @@
15915
15930
  };
15916
15931
  return sizes[size];
15917
15932
  };
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'
15933
+ var getHandle = themeMode => {
15934
+ return {
15935
+ default: {
15936
+ backgroundColor: 'transparent',
15937
+ _hover: {
15938
+ backgroundColor: 'color.gray.200'
15939
+ },
15940
+ _active: {
15941
+ backgroundColor: 'color.gray.300'
15942
+ }
15932
15943
  },
15933
- _active: {
15934
- backgroundColor: 'color.gray.200'
15935
- }
15936
- },
15937
- prominent: {
15938
- backgroundColor: 'color.gray.100',
15939
- _hover: {
15940
- backgroundColor: 'color.gray.200'
15944
+ subtle: {
15945
+ backgroundColor: 'transparent',
15946
+ _hover: {
15947
+ backgroundColor: 'color.gray.100'
15948
+ },
15949
+ _active: {
15950
+ backgroundColor: 'color.gray.200'
15951
+ }
15941
15952
  },
15942
- _active: {
15943
- backgroundColor: 'color.gray.300'
15953
+ prominent: {
15954
+ backgroundColor: 'color.gray.100',
15955
+ _hover: {
15956
+ backgroundColor: 'color.gray.200'
15957
+ },
15958
+ _active: {
15959
+ backgroundColor: 'color.gray.300'
15960
+ }
15944
15961
  }
15945
- }
15962
+ };
15963
+ // Add dark mode conditional styling here
15946
15964
  };
15965
+ // For backward compatibility
15966
+ var HandleVariants = /*#__PURE__*/getHandle();
15947
15967
  var HandleIconStyles = {
15948
15968
  horizontal: {
15949
15969
  width: '2px',
@@ -15959,9 +15979,9 @@
15959
15979
  }
15960
15980
  };
15961
15981
 
15962
- var _excluded$V = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
15963
- _excluded2$f = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
15964
- _excluded3$b = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "views"];
15982
+ var _excluded$X = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
15983
+ _excluded2$g = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
15984
+ _excluded3$c = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "views"];
15965
15985
  // Create context for the Resizable component
15966
15986
  var ResizableContext = /*#__PURE__*/React.createContext({
15967
15987
  orientation: 'horizontal',
@@ -16004,7 +16024,7 @@
16004
16024
  onCollapseChange,
16005
16025
  views
16006
16026
  } = _ref2,
16007
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$V);
16027
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$X);
16008
16028
  var {
16009
16029
  orientation,
16010
16030
  registerPanel,
@@ -16068,7 +16088,7 @@
16068
16088
  collapseTarget,
16069
16089
  views
16070
16090
  } = _ref3,
16071
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$f);
16091
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$g);
16072
16092
  var {
16073
16093
  orientation,
16074
16094
  size,
@@ -16208,7 +16228,7 @@
16208
16228
  containerRef,
16209
16229
  views
16210
16230
  } = _ref4,
16211
- props = _objectWithoutPropertiesLoose(_ref4, _excluded3$b);
16231
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$c);
16212
16232
  var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
16213
16233
  return /*#__PURE__*/React__default.createElement(Container, Object.assign({
16214
16234
  ref: containerRef,
@@ -16219,7 +16239,7 @@
16219
16239
  }, ResizableOrientations[orientation], views == null ? void 0 : views.container, props), children);
16220
16240
  };
16221
16241
 
16222
- var _excluded$W = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
16242
+ var _excluded$Y = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
16223
16243
  /**
16224
16244
  * Resizable component for creating resizable panel groups and layouts.
16225
16245
  */
@@ -16239,7 +16259,7 @@
16239
16259
  keyboardResizeBy = 10,
16240
16260
  views
16241
16261
  } = _ref,
16242
- props = _objectWithoutPropertiesLoose(_ref, _excluded$W);
16262
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$Y);
16243
16263
  var {
16244
16264
  isResizing,
16245
16265
  setIsResizing,
@@ -16304,7 +16324,7 @@
16304
16324
  * Theme configurations for the Toast component
16305
16325
  * Following the design system color palette
16306
16326
  */
16307
- var Themes$2 = {
16327
+ var Themes$1 = {
16308
16328
  info: {
16309
16329
  container: {
16310
16330
  backgroundColor: 'color.blue.50',
@@ -16497,10 +16517,11 @@
16497
16517
  render,
16498
16518
  icon: customIcon,
16499
16519
  id,
16500
- isVisible = true
16520
+ isVisible = true,
16521
+ themeMode: elementMode
16501
16522
  } = _ref;
16502
16523
  // 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;
16524
+ var Theme = theme != null ? theme : Themes$1;
16504
16525
  // Get the appropriate icon based on the variant
16505
16526
  var getIcon = () => {
16506
16527
  // If a custom icon is provided, use it
@@ -16880,29 +16901,34 @@
16880
16901
  maxHeight: '500px'
16881
16902
  }
16882
16903
  };
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
- }
16904
+ var getCommand = themeMode => {
16905
+ return {
16906
+ default: {
16907
+ backgroundColor: 'white',
16908
+ borderWidth: '1px',
16909
+ borderStyle: 'solid',
16910
+ borderColor: 'color.gray.200',
16911
+ boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16912
+ },
16913
+ filled: {
16914
+ backgroundColor: 'color.gray.50',
16915
+ borderWidth: '1px',
16916
+ borderStyle: 'solid',
16917
+ borderColor: 'color.gray.200',
16918
+ boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16919
+ },
16920
+ outline: {
16921
+ backgroundColor: 'white',
16922
+ borderWidth: '2px',
16923
+ borderStyle: 'solid',
16924
+ borderColor: 'color.gray.300',
16925
+ boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16926
+ }
16927
+ };
16928
+ // Add dark mode conditional styling here
16905
16929
  };
16930
+ // For backward compatibility
16931
+ var CommandVariants = /*#__PURE__*/getCommand();
16906
16932
  var CommandInputStyles = {
16907
16933
  display: 'flex',
16908
16934
  alignItems: 'center',
@@ -16998,9 +17024,9 @@
16998
17024
  color: 'color.gray.500'
16999
17025
  };
17000
17026
 
17001
- var _excluded$X = ["value", "onValueChange", "placeholder", "views"],
17002
- _excluded2$g = ["children", "views"],
17003
- _excluded3$c = ["heading", "children", "views"],
17027
+ var _excluded$Z = ["value", "onValueChange", "placeholder", "views"],
17028
+ _excluded2$h = ["children", "views"],
17029
+ _excluded3$d = ["heading", "children", "views"],
17004
17030
  _excluded4$a = ["item", "selected", "onSelect", "views"],
17005
17031
  _excluded5$5 = ["children", "views"],
17006
17032
  _excluded6$3 = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "emptyState", "footer", "search", "setSearch", "selectedIndex", "setSelectedIndex", "filteredCommands", "filteredGroups", "listRef", "views", "filter"];
@@ -17030,7 +17056,7 @@
17030
17056
  placeholder = 'Type a command or search...',
17031
17057
  views
17032
17058
  } = _ref2,
17033
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$X);
17059
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$Z);
17034
17060
  var inputRef = React.useRef(null);
17035
17061
  // Focus input when component mounts
17036
17062
  React__default.useEffect(() => {
@@ -17062,7 +17088,7 @@
17062
17088
  children,
17063
17089
  views
17064
17090
  } = _ref3,
17065
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$g);
17091
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$h);
17066
17092
  return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandListStyles, views == null ? void 0 : views.container, props), children);
17067
17093
  };
17068
17094
  // Command Group component
@@ -17072,7 +17098,7 @@
17072
17098
  children,
17073
17099
  views
17074
17100
  } = _ref4,
17075
- props = _objectWithoutPropertiesLoose(_ref4, _excluded3$c);
17101
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$d);
17076
17102
  return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandGroupStyles, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(Text, Object.assign({}, CommandGroupHeadingStyles, views == null ? void 0 : views.heading), heading), children);
17077
17103
  };
17078
17104
  // Command Item component
@@ -17218,7 +17244,7 @@
17218
17244
  })))), footer && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandFooterStyles, views == null ? void 0 : views.footer), footer)))));
17219
17245
  };
17220
17246
 
17221
- var _excluded$Y = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
17247
+ var _excluded$_ = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
17222
17248
  /**
17223
17249
  * Command component for displaying a command palette with search functionality.
17224
17250
  */
@@ -17236,7 +17262,7 @@
17236
17262
  footer,
17237
17263
  views
17238
17264
  } = _ref,
17239
- props = _objectWithoutPropertiesLoose(_ref, _excluded$Y);
17265
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$_);
17240
17266
  var {
17241
17267
  search,
17242
17268
  setSearch,
@@ -17393,23 +17419,28 @@
17393
17419
  maxWidth: '300px'
17394
17420
  }
17395
17421
  };
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
- }
17422
+ var getTooltip = themeMode => {
17423
+ return {
17424
+ default: {
17425
+ backgroundColor: 'color.gray.800',
17426
+ color: 'color.white'
17427
+ },
17428
+ light: {
17429
+ backgroundColor: 'color.white',
17430
+ color: 'color.gray.800',
17431
+ borderWidth: '1px',
17432
+ borderStyle: 'solid',
17433
+ borderColor: 'color.gray.200'
17434
+ },
17435
+ dark: {
17436
+ backgroundColor: 'color.black',
17437
+ color: 'color.white'
17438
+ }
17439
+ };
17440
+ // Add dark mode conditional styling here
17412
17441
  };
17442
+ // For backward compatibility
17443
+ var TooltipVariants = /*#__PURE__*/getTooltip();
17413
17444
  var getTooltipPositionStyles = (position, align) => {
17414
17445
  var baseStyles = {
17415
17446
  position: 'absolute',
@@ -17518,9 +17549,9 @@
17518
17549
  }
17519
17550
  };
17520
17551
 
17521
- var _excluded$Z = ["children", "views", "asChild"],
17522
- _excluded2$h = ["children", "views"],
17523
- _excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views"];
17552
+ var _excluded$$ = ["children", "views", "asChild"],
17553
+ _excluded2$i = ["children", "views"],
17554
+ _excluded3$e = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
17524
17555
  // Create context for the Tooltip
17525
17556
  var TooltipContext = /*#__PURE__*/React.createContext({
17526
17557
  isOpen: false,
@@ -17554,7 +17585,7 @@
17554
17585
  views,
17555
17586
  asChild = false
17556
17587
  } = _ref2,
17557
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$Z);
17588
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$$);
17558
17589
  var {
17559
17590
  openTooltip,
17560
17591
  closeTooltip,
@@ -17590,7 +17621,7 @@
17590
17621
  children,
17591
17622
  views
17592
17623
  } = _ref3,
17593
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$h);
17624
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$i);
17594
17625
  var {
17595
17626
  isOpen,
17596
17627
  contentRef,
@@ -17620,7 +17651,7 @@
17620
17651
  showArrow = true,
17621
17652
  views
17622
17653
  } = _ref4,
17623
- props = _objectWithoutPropertiesLoose(_ref4, _excluded3$d);
17654
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$e);
17624
17655
  var {
17625
17656
  isOpen,
17626
17657
  // openTooltip,
@@ -17647,7 +17678,7 @@
17647
17678
  }, 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
17679
  };
17649
17680
 
17650
- var _excluded$_ = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
17681
+ var _excluded$10 = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
17651
17682
  /**
17652
17683
  * Tooltip component for displaying additional information when hovering over an element.
17653
17684
  * Supports configurable positions, delays, and styling.
@@ -17667,7 +17698,7 @@
17667
17698
  isDisabled = false,
17668
17699
  views
17669
17700
  } = _ref,
17670
- props = _objectWithoutPropertiesLoose(_ref, _excluded$_);
17701
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$10);
17671
17702
  var tooltipState = useTooltipState({
17672
17703
  defaultOpen,
17673
17704
  openDelay,