@app-studio/web 0.8.78 → 0.8.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/components/Accordion/Accordion/Accordion.view.d.ts +2 -1
  2. package/dist/components/Alert/Alert/Alert.props.d.ts +7 -1
  3. package/dist/components/Alert/Alert/Alert.style.d.ts +9 -1
  4. package/dist/components/Alert/Alert/Alert.view.d.ts +1 -1
  5. package/dist/components/Alert/Alert.d.ts +1 -1
  6. package/dist/components/Alert/examples/darkMode.d.ts +2 -0
  7. package/dist/components/Badge/Badge/Badge.style.d.ts +5 -1
  8. package/dist/components/Badge/Badge.d.ts +1 -1
  9. package/dist/components/Badge/examples/darkMode.d.ts +2 -0
  10. package/dist/components/Badge/examples/index.d.ts +1 -0
  11. package/dist/components/Card/Card/Card.style.d.ts +7 -3
  12. package/dist/components/Card/examples/darkModeExample.d.ts +2 -0
  13. package/dist/components/Command/Command/Command.style.d.ts +1 -0
  14. package/dist/components/ContextMenu/ContextMenu/ContextMenu.view.d.ts +2 -1
  15. package/dist/components/DragAndDrop/DragAndDrop/DragAndDrop.props.d.ts +1 -1
  16. package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.view.d.ts +2 -1
  17. package/dist/components/Menubar/Menubar/Menubar.view.d.ts +2 -1
  18. package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.view.d.ts +2 -1
  19. package/dist/components/Resizable/Resizable/Resizable.style.d.ts +1 -0
  20. package/dist/components/Separator/Separator/Separator.style.d.ts +1 -0
  21. package/dist/components/Sidebar/Sidebar/Sidebar.style.d.ts +1 -0
  22. package/dist/components/Slider/Slider/Slider.style.d.ts +1 -0
  23. package/dist/components/Table/Table/Table.props.d.ts +2 -2
  24. package/dist/components/Toast/Toast/Toast.props.d.ts +2 -1
  25. package/dist/components/Tooltip/Tooltip/Tooltip.style.d.ts +1 -0
  26. package/dist/components/Tooltip/Tooltip/Tooltip.view.d.ts +2 -1
  27. package/dist/web.cjs.development.js +520 -503
  28. package/dist/web.cjs.development.js.map +1 -1
  29. package/dist/web.cjs.production.min.js +1 -1
  30. package/dist/web.cjs.production.min.js.map +1 -1
  31. package/dist/web.esm.js +520 -503
  32. package/dist/web.esm.js.map +1 -1
  33. package/dist/web.umd.development.js +520 -503
  34. package/dist/web.umd.development.js.map +1 -1
  35. package/dist/web.umd.production.min.js +1 -1
  36. package/dist/web.umd.production.min.js.map +1 -1
  37. package/package.json +1 -1
@@ -171,7 +171,7 @@ var AccordionVariants = {
171
171
  var _excluded = ["value", "children", "isDisabled", "views"],
172
172
  _excluded2 = ["children", "value", "isExpanded", "isDisabled", "triggerId", "contentId", "views", "asChild"],
173
173
  _excluded3 = ["children", "isExpanded", "isDisabled", "triggerId", "contentId", "views"],
174
- _excluded4 = ["children", "shape", "variant", "views", "baseId", "type", "collapsible"];
174
+ _excluded4 = ["children", "shape", "variant", "views", "baseId", "type", "collapsible", "themeMode"];
175
175
  // Create context for the Accordion
176
176
  var AccordionContext = /*#__PURE__*/React.createContext({
177
177
  expandedItems: [],
@@ -2817,93 +2817,104 @@ var Icon = {
2817
2817
  * - Transitions: Subtle animations
2818
2818
  */
2819
2819
  /**
2820
- * Theme styles for different alert variants
2820
+ * Get theme styles for different alert variants based on theme mode
2821
2821
  */
2822
- var Themes = {
2823
- default: {
2824
- container: {
2825
- backgroundColor: 'color.gray.50',
2826
- borderColor: 'color.gray.200',
2827
- boxShadow: '0 1px 2px rgba(0, 0, 0, 0.05)'
2828
- },
2829
- content: {
2830
- color: 'color.gray.700'
2831
- },
2832
- icon: {
2833
- color: 'color.gray.500'
2834
- }
2835
- },
2836
- info: {
2837
- container: {
2838
- backgroundColor: 'color.blue.50',
2839
- borderColor: 'color.blue.200',
2840
- boxShadow: '0 1px 2px rgba(59, 130, 246, 0.05)'
2841
- },
2842
- content: {
2843
- color: 'color.blue.700'
2844
- },
2845
- icon: {
2846
- color: 'color.blue.500'
2847
- }
2848
- },
2849
- success: {
2850
- container: {
2851
- backgroundColor: 'color.green.50',
2852
- borderColor: 'color.green.200',
2853
- boxShadow: '0 1px 2px rgba(34, 197, 94, 0.05)'
2854
- },
2855
- content: {
2856
- color: 'color.green.700'
2857
- },
2858
- icon: {
2859
- color: 'color.green.500'
2860
- }
2861
- },
2862
- error: {
2863
- container: {
2864
- backgroundColor: 'color.red.50',
2865
- borderColor: 'color.red.200',
2866
- boxShadow: '0 1px 2px rgba(239, 68, 68, 0.05)'
2822
+ var getThemes = themeMode => {
2823
+ var isDarkMode = themeMode === 'dark';
2824
+ return {
2825
+ default: {
2826
+ container: {
2827
+ backgroundColor: isDarkMode ? 'color.gray.800' : 'color.gray.50',
2828
+ borderColor: isDarkMode ? 'color.gray.700' : 'color.gray.200',
2829
+ boxShadow: isDarkMode ? '0 1px 2px rgba(0, 0, 0, 0.2)' : '0 1px 2px rgba(0, 0, 0, 0.05)'
2830
+ },
2831
+ content: {
2832
+ color: isDarkMode ? 'color.gray.300' : 'color.gray.700'
2833
+ },
2834
+ icon: {
2835
+ color: isDarkMode ? 'color.gray.400' : 'color.gray.500'
2836
+ }
2867
2837
  },
2868
- content: {
2869
- color: 'color.red.700'
2838
+ info: {
2839
+ container: {
2840
+ backgroundColor: isDarkMode ? 'color.blue.900' : 'color.blue.50',
2841
+ borderColor: isDarkMode ? 'color.blue.800' : 'color.blue.200',
2842
+ boxShadow: isDarkMode ? '0 1px 2px rgba(59, 130, 246, 0.2)' : '0 1px 2px rgba(59, 130, 246, 0.05)'
2843
+ },
2844
+ content: {
2845
+ color: isDarkMode ? 'color.blue.300' : 'color.blue.700'
2846
+ },
2847
+ icon: {
2848
+ color: isDarkMode ? 'color.blue.400' : 'color.blue.500'
2849
+ }
2870
2850
  },
2871
- icon: {
2872
- color: 'color.red.500'
2873
- }
2874
- },
2875
- warning: {
2876
- container: {
2877
- backgroundColor: 'color.orange.50',
2878
- borderColor: 'color.orange.200',
2879
- boxShadow: '0 1px 2px rgba(249, 115, 22, 0.05)'
2851
+ success: {
2852
+ container: {
2853
+ backgroundColor: isDarkMode ? 'color.green.900' : 'color.green.50',
2854
+ borderColor: isDarkMode ? 'color.green.800' : 'color.green.200',
2855
+ boxShadow: isDarkMode ? '0 1px 2px rgba(34, 197, 94, 0.2)' : '0 1px 2px rgba(34, 197, 94, 0.05)'
2856
+ },
2857
+ content: {
2858
+ color: isDarkMode ? 'color.green.300' : 'color.green.700'
2859
+ },
2860
+ icon: {
2861
+ color: isDarkMode ? 'color.green.400' : 'color.green.500'
2862
+ }
2880
2863
  },
2881
- content: {
2882
- color: 'color.orange.700'
2864
+ error: {
2865
+ container: {
2866
+ backgroundColor: isDarkMode ? 'color.red.900' : 'color.red.50',
2867
+ borderColor: isDarkMode ? 'color.red.800' : 'color.red.200',
2868
+ boxShadow: isDarkMode ? '0 1px 2px rgba(239, 68, 68, 0.2)' : '0 1px 2px rgba(239, 68, 68, 0.05)'
2869
+ },
2870
+ content: {
2871
+ color: isDarkMode ? 'color.red.300' : 'color.red.700'
2872
+ },
2873
+ icon: {
2874
+ color: isDarkMode ? 'color.red.400' : 'color.red.500'
2875
+ }
2883
2876
  },
2884
- icon: {
2885
- color: 'color.orange.500'
2877
+ warning: {
2878
+ container: {
2879
+ backgroundColor: isDarkMode ? 'color.orange.900' : 'color.orange.50',
2880
+ borderColor: isDarkMode ? 'color.orange.800' : 'color.orange.200',
2881
+ boxShadow: isDarkMode ? '0 1px 2px rgba(249, 115, 22, 0.2)' : '0 1px 2px rgba(249, 115, 22, 0.05)'
2882
+ },
2883
+ content: {
2884
+ color: isDarkMode ? 'color.orange.300' : 'color.orange.700'
2885
+ },
2886
+ icon: {
2887
+ color: isDarkMode ? 'color.orange.400' : 'color.orange.500'
2888
+ }
2886
2889
  }
2887
- }
2890
+ };
2888
2891
  };
2889
2892
 
2893
+ var _excluded$4 = ["icon", "title", "views", "description", "variant", "themeMode"];
2890
2894
  /**
2891
2895
  * Alert component that displays important messages to users
2892
2896
  */
2893
2897
  var AlertView = _ref => {
2894
2898
  var {
2895
- icon,
2896
- title,
2897
- views,
2898
- description,
2899
- variant = 'default'
2900
- } = _ref;
2899
+ icon,
2900
+ title,
2901
+ views,
2902
+ description,
2903
+ variant = 'default',
2904
+ themeMode: elementMode
2905
+ } = _ref,
2906
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
2907
+ var {
2908
+ themeMode
2909
+ } = appStudio.useTheme();
2910
+ var currentThemeMode = elementMode || themeMode;
2911
+ var themes = getThemes(currentThemeMode);
2901
2912
  // Select the appropriate icon based on the variant
2902
2913
  var getIcon = () => {
2903
2914
  var _views$icon$color, _views$icon;
2904
2915
  if (icon) return icon;
2905
- // Use the theme color directly from Themes
2906
- var iconColor = (_views$icon$color = views == null || (_views$icon = views.icon) == null ? void 0 : _views$icon.color) != null ? _views$icon$color : Themes[variant].icon.color;
2916
+ // Use the theme color directly from themes
2917
+ var iconColor = (_views$icon$color = views == null || (_views$icon = views.icon) == null ? void 0 : _views$icon.color) != null ? _views$icon$color : themes[variant].icon.color;
2907
2918
  var iconProps = {
2908
2919
  size: 20,
2909
2920
  color: iconColor
@@ -2934,12 +2945,12 @@ var AlertView = _ref => {
2934
2945
  ,
2935
2946
  borderWidth: "1px",
2936
2947
  borderStyle: "solid",
2937
- borderColor: Themes[variant].container.borderColor,
2938
- backgroundColor: Themes[variant].container.backgroundColor,
2939
- boxShadow: Themes[variant].container.containerShadow,
2948
+ borderColor: themes[variant].container.borderColor,
2949
+ backgroundColor: themes[variant].container.backgroundColor,
2950
+ boxShadow: themes[variant].container.boxShadow,
2940
2951
  // Animation
2941
2952
  transition: "all 0.2s ease"
2942
- }, views == null ? void 0 : views.container), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
2953
+ }, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
2943
2954
  alignSelf: "flex-start",
2944
2955
  marginTop: "2px"
2945
2956
  }, views == null ? void 0 : views.icon), getIcon()), /*#__PURE__*/React__default.createElement(appStudio.Vertical, {
@@ -2949,37 +2960,22 @@ var AlertView = _ref => {
2949
2960
  fontWeight: "600" // Semi-bold
2950
2961
  ,
2951
2962
  lineHeight: "24px",
2952
- color: Themes[variant].content.color
2963
+ color: themes[variant].content.color
2953
2964
  }, views == null ? void 0 : views.title), title), /*#__PURE__*/React__default.createElement(Text, Object.assign({
2954
2965
  fontSize: "14px",
2955
2966
  fontWeight: "400" // Regular
2956
2967
  ,
2957
2968
  lineHeight: "20px",
2958
- color: Themes[variant].content.color
2969
+ color: themes[variant].content.color
2959
2970
  }, views == null ? void 0 : views.description), description)));
2960
2971
  };
2961
2972
 
2962
- // Definition of the AlertComponent functional component with destructured props.
2963
- var AlertComponent = _ref => {
2964
- var {
2965
- icon,
2966
- title,
2967
- views,
2968
- description,
2969
- variant
2970
- } = _ref;
2971
- return /*#__PURE__*/React__default.createElement(AlertView, {
2972
- icon: icon,
2973
- title: title,
2974
- views: views,
2975
- description: description,
2976
- variant: variant
2977
- });
2978
- };
2973
+ // Definition of the AlertComponent functional component with props.
2974
+ var AlertComponent = props => /*#__PURE__*/React__default.createElement(AlertView, Object.assign({}, props));
2979
2975
  // Exporting the AlertComponent as 'Alert' for use in other parts of the application.
2980
2976
  var Alert = AlertComponent;
2981
2977
 
2982
- var _excluded$4 = ["ratio", "children", "views"];
2978
+ var _excluded$5 = ["ratio", "children", "views"];
2983
2979
  // Declaration of a functional component named AspectRatioView.
2984
2980
  var AspectRatioView = _ref => {
2985
2981
  var {
@@ -2990,7 +2986,7 @@ var AspectRatioView = _ref => {
2990
2986
  views
2991
2987
  // Spread the rest of the props to inherit additional properties.
2992
2988
  } = _ref,
2993
- props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
2989
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
2994
2990
  return /*#__PURE__*/React__default.createElement(appStudio.Center, Object.assign({
2995
2991
  width: '100%',
2996
2992
  position: "relative",
@@ -3006,14 +3002,14 @@ var AspectRatioView = _ref => {
3006
3002
  }, views == null ? void 0 : views.view), children));
3007
3003
  };
3008
3004
 
3009
- var _excluded$5 = ["ratio", "children"];
3005
+ var _excluded$6 = ["ratio", "children"];
3010
3006
  // Declaration of the AspectRatioComponent functional component with destructured props.
3011
3007
  var AspectRatioComponent = _ref => {
3012
3008
  var {
3013
3009
  ratio,
3014
3010
  children
3015
3011
  } = _ref,
3016
- props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
3012
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
3017
3013
  // Beginning of the return statement in the functional component.
3018
3014
  return /*#__PURE__*/React__default.createElement(AspectRatioView, Object.assign({
3019
3015
  ratio: ratio
@@ -3063,17 +3059,11 @@ var DefaultAvatarStyles = {
3063
3059
  borderColor: 'transparent',
3064
3060
  backgroundColor: 'color.gray.100',
3065
3061
  boxShadow: '0px 2px 4px rgba(0, 0, 0, 0.1)',
3066
- transition: 'all 0.2s ease',
3067
- '@media (prefers-color-scheme: dark)': {
3068
- backgroundColor: 'color.gray.700'
3069
- }
3062
+ transition: 'all 0.2s ease'
3070
3063
  },
3071
3064
  fallback: {
3072
3065
  fontWeight: '500',
3073
- color: 'color.gray.600',
3074
- '@media (prefers-color-scheme: dark)': {
3075
- color: 'color.gray.300'
3076
- }
3066
+ color: 'color.gray.600'
3077
3067
  },
3078
3068
  image: {
3079
3069
  objectFit: 'cover',
@@ -3244,58 +3234,69 @@ var PositionStyles = {
3244
3234
  }
3245
3235
  };
3246
3236
  /**
3247
- * Badge variants with consistent styling
3237
+ * Get badge variants with consistent styling based on theme mode
3248
3238
  */
3249
- var BadgeVariants = {
3250
- filled: {
3251
- backgroundColor: 'theme.primary',
3252
- color: 'color.white',
3253
- borderWidth: '1px',
3254
- borderStyle: 'solid',
3255
- borderColor: 'transparent',
3256
- transition: 'all 0.2s ease'
3257
- },
3258
- outline: {
3259
- backgroundColor: 'transparent',
3260
- borderWidth: '1px',
3261
- borderStyle: 'solid',
3262
- borderColor: 'theme.primary',
3263
- color: 'theme.primary',
3264
- transition: 'all 0.2s ease'
3265
- },
3266
- link: {
3267
- backgroundColor: 'transparent',
3268
- borderWidth: '1px',
3269
- borderStyle: 'solid',
3270
- borderColor: 'transparent',
3271
- color: 'theme.primary',
3272
- textDecoration: 'underline',
3273
- textUnderlineOffset: '2px',
3274
- transition: 'all 0.2s ease'
3275
- },
3276
- ghost: {
3277
- backgroundColor: 'transparent',
3278
- color: 'color.gray.500',
3279
- borderWidth: '1px',
3280
- borderStyle: 'solid',
3281
- borderColor: 'transparent',
3282
- transition: 'all 0.2s ease'
3283
- }
3239
+ var getBadgeVariants = themeMode => {
3240
+ var isDarkMode = themeMode === 'dark';
3241
+ return {
3242
+ filled: {
3243
+ backgroundColor: 'theme.primary',
3244
+ color: isDarkMode ? 'color.gray.900' : 'color.white',
3245
+ borderWidth: '1px',
3246
+ borderStyle: 'solid',
3247
+ borderColor: 'transparent',
3248
+ transition: 'all 0.2s ease'
3249
+ },
3250
+ outline: {
3251
+ backgroundColor: 'transparent',
3252
+ borderWidth: '1px',
3253
+ borderStyle: 'solid',
3254
+ borderColor: 'theme.primary',
3255
+ color: 'theme.primary',
3256
+ transition: 'all 0.2s ease'
3257
+ },
3258
+ link: {
3259
+ backgroundColor: 'transparent',
3260
+ borderWidth: '1px',
3261
+ borderStyle: 'solid',
3262
+ borderColor: 'transparent',
3263
+ color: 'theme.primary',
3264
+ textDecoration: 'underline',
3265
+ textUnderlineOffset: '2px',
3266
+ transition: 'all 0.2s ease'
3267
+ },
3268
+ ghost: {
3269
+ backgroundColor: 'transparent',
3270
+ color: isDarkMode ? 'color.gray.400' : 'color.gray.500',
3271
+ borderWidth: '1px',
3272
+ borderStyle: 'solid',
3273
+ borderColor: 'transparent',
3274
+ transition: 'all 0.2s ease'
3275
+ }
3276
+ };
3284
3277
  };
3285
3278
 
3279
+ var _excluded$7 = ["content", "position", "shape", "variant", "size", "views", "themeMode"];
3286
3280
  // No need to import ViewProps as it's not used directly
3287
3281
  /**
3288
3282
  * Badge View Component
3289
3283
  */
3290
3284
  var BadgeView = _ref => {
3291
3285
  var {
3292
- content,
3293
- position,
3294
- shape = 'pillShaped',
3295
- variant = 'filled',
3296
- size = 'md',
3297
- views
3298
- } = _ref;
3286
+ content,
3287
+ position,
3288
+ shape = 'pillShaped',
3289
+ variant = 'filled',
3290
+ size = 'md',
3291
+ views,
3292
+ themeMode: elementMode
3293
+ } = _ref,
3294
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
3295
+ var {
3296
+ themeMode
3297
+ } = appStudio.useTheme();
3298
+ var currentThemeMode = elementMode || themeMode;
3299
+ var variantStyles = getBadgeVariants(currentThemeMode)[variant];
3299
3300
  // Combine styles for the badge
3300
3301
  var combinedStyles = Object.assign({
3301
3302
  // Base styles
@@ -3303,13 +3304,13 @@ var BadgeView = _ref => {
3303
3304
  display: 'flex',
3304
3305
  alignItems: 'center',
3305
3306
  justifyContent: 'center',
3306
- backgrounColor: 'color.black',
3307
+ backgroundColor: 'color.black',
3307
3308
  // Apply shape, size, and variant styles
3308
3309
  borderRadius: BadgeShapes[shape]
3309
- }, BadgeSizes[size], BadgeVariants[variant], position ? PositionStyles[position] : {}, views == null ? void 0 : views.container);
3310
+ }, BadgeSizes[size], variantStyles, position ? PositionStyles[position] : {}, views == null ? void 0 : views.container);
3310
3311
  return /*#__PURE__*/React__default.createElement(appStudio.Center, Object.assign({
3311
3312
  role: "badge"
3312
- }, combinedStyles), /*#__PURE__*/React__default.createElement(Text, Object.assign({
3313
+ }, combinedStyles, props), /*#__PURE__*/React__default.createElement(Text, Object.assign({
3313
3314
  role: "badgeText",
3314
3315
  fontWeight: "500" // Medium weight for better readability
3315
3316
  ,
@@ -3319,29 +3320,8 @@ var BadgeView = _ref => {
3319
3320
  }), content || ''));
3320
3321
  };
3321
3322
 
3322
- // Importing type definitions for BadgeProps that will be used to type-check the Badge component's props.
3323
- var Badge = _ref => {
3324
- var {
3325
- // Importing the BadgeView component which is the presentation component for Badge.
3326
- content,
3327
- // Exporting the Badge as a functional component from this module.
3328
- shape,
3329
- // Destructuring the props in the component function parameter list, to directly access individual properties.
3330
- position,
3331
- // Passing all the destructured props to the BadgeView component to maintain the same API surface.
3332
- variant,
3333
- size,
3334
- views
3335
- } = _ref;
3336
- return /*#__PURE__*/React__default.createElement(BadgeView, {
3337
- content: content,
3338
- shape: shape,
3339
- position: position,
3340
- variant: variant,
3341
- size: size,
3342
- views: views
3343
- });
3344
- };
3323
+ // Badge component that displays a small indicator, typically used for counts or status
3324
+ var Badge = props => /*#__PURE__*/React__default.createElement(BadgeView, Object.assign({}, props));
3345
3325
 
3346
3326
  var useButtonState = () => {
3347
3327
  var [isHovered, setIsHovered] = React__default.useState(false);
@@ -3373,7 +3353,7 @@ var IconSizes = {
3373
3353
  xl: 20
3374
3354
  };
3375
3355
 
3376
- var _excluded$6 = ["children", "to", "iconSize", "underline", "isHovered", "isExternal", "views", "setIsHovered"];
3356
+ var _excluded$8 = ["children", "to", "iconSize", "underline", "isHovered", "isExternal", "views", "setIsHovered"];
3377
3357
  // Component definition for 'LinkView', a functional component with props defined by 'LinkViewProps'.
3378
3358
  var LinkView = _ref => {
3379
3359
  var {
@@ -3396,7 +3376,7 @@ var LinkView = _ref => {
3396
3376
  // Setter function for the hover state, noop function provided by default.
3397
3377
  setIsHovered = () => {}
3398
3378
  } = _ref,
3399
- props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
3379
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
3400
3380
  // Function to handle mouse enter/leave events to toggle hover state.
3401
3381
  var handleHover = () => {
3402
3382
  if (underline === 'hover') setIsHovered(true);
@@ -3588,6 +3568,9 @@ var getButtonVariants = (color, isLight) => ({
3588
3568
  ghost: {
3589
3569
  backgroundColor: 'transparent',
3590
3570
  color: color,
3571
+ borderWidth: 0,
3572
+ borderStyle: 'none',
3573
+ borderColor: 'transparent',
3591
3574
  on: {
3592
3575
  hover: {
3593
3576
  backgroundColor: color + "10",
@@ -3631,7 +3614,7 @@ var DefaultSpeeds = {
3631
3614
  slow: 300
3632
3615
  };
3633
3616
 
3634
- var _excluded$7 = ["size", "speed", "color", "themeMode"],
3617
+ var _excluded$9 = ["size", "speed", "color", "themeMode"],
3635
3618
  _excluded2$2 = ["size", "speed", "color", "themeMode"],
3636
3619
  _excluded3$2 = ["size", "speed", "color", "themeMode"],
3637
3620
  _excluded4$2 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition", "views"];
@@ -3642,7 +3625,7 @@ var DefaultSpinner = _ref => {
3642
3625
  color = 'theme.loading',
3643
3626
  themeMode: elementMode
3644
3627
  } = _ref,
3645
- props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
3628
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
3646
3629
  var {
3647
3630
  getColor,
3648
3631
  themeMode
@@ -3807,7 +3790,7 @@ React__default.createElement(LoaderView, Object.assign({}, props)));
3807
3790
  // Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
3808
3791
  var Loader = LoaderComponent;
3809
3792
 
3810
- var _excluded$8 = ["icon", "shadow", "children", "ariaLabel", "to", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered", "setIsHovered", "isExternal", "themeMode", "containerProps", "linkProps", "views"];
3793
+ var _excluded$a = ["icon", "shadow", "children", "ariaLabel", "to", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered", "setIsHovered", "isExternal", "themeMode", "containerProps", "linkProps", "views"];
3811
3794
  var contrast = /*#__PURE__*/require('contrast');
3812
3795
  var ButtonView = _ref => {
3813
3796
  var _props$onClick;
@@ -3836,7 +3819,7 @@ var ButtonView = _ref => {
3836
3819
  linkProps,
3837
3820
  views
3838
3821
  } = _ref,
3839
- props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
3822
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
3840
3823
  var {
3841
3824
  getColor,
3842
3825
  themeMode
@@ -3887,6 +3870,7 @@ var ButtonView = _ref => {
3887
3870
  alignItems: "center",
3888
3871
  justifyContent: "center",
3889
3872
  "aria-label": ariaLabel,
3873
+ backgroundColor: "transparent",
3890
3874
  borderRadius: ButtonShapes[shape],
3891
3875
  onClick: (_props$onClick = props.onClick) != null ? _props$onClick : onClick,
3892
3876
  onMouseEnter: () => handleHover(true),
@@ -3954,97 +3938,95 @@ var CardShapes = {
3954
3938
  pillShaped: '16px'
3955
3939
  };
3956
3940
  /**
3957
- * Card variants with consistent styling
3941
+ * Get card variants with consistent styling based on theme mode
3958
3942
  */
3959
- var CardVariants = {
3960
- default: {
3961
- backgroundColor: 'white',
3962
- border: 'none',
3963
- transition: 'all 0.2s ease'
3964
- },
3965
- outlined: {
3966
- backgroundColor: 'white',
3967
- borderWidth: '1px',
3968
- borderStyle: 'solid',
3969
- borderColor: 'color.gray.200',
3970
- transition: 'all 0.2s ease',
3971
- _hover: {
3972
- borderColor: 'color.gray.300'
3973
- }
3974
- },
3975
- elevated: {
3976
- backgroundColor: 'white',
3977
- boxShadow: '0px 2px 8px rgba(0, 0, 0, 0.08)',
3978
- border: 'none',
3979
- transition: 'all 0.2s ease',
3980
- _hover: {
3981
- boxShadow: '0px 4px 12px rgba(0, 0, 0, 0.12)',
3982
- transform: 'translateY(-2px)'
3943
+ var getCardVariants = themeMode => {
3944
+ var isDarkMode = themeMode === 'dark';
3945
+ return {
3946
+ default: {
3947
+ backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
3948
+ border: 'none',
3949
+ transition: 'all 0.2s ease'
3950
+ },
3951
+ outlined: {
3952
+ backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
3953
+ borderWidth: '1px',
3954
+ borderStyle: 'solid',
3955
+ borderColor: isDarkMode ? 'color.gray.700' : 'color.gray.200',
3956
+ transition: 'all 0.2s ease',
3957
+ _hover: {
3958
+ borderColor: isDarkMode ? 'color.gray.600' : 'color.gray.300'
3959
+ }
3960
+ },
3961
+ elevated: {
3962
+ backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
3963
+ boxShadow: isDarkMode ? '0px 2px 8px rgba(0, 0, 0, 0.2)' : '0px 2px 8px rgba(0, 0, 0, 0.08)',
3964
+ border: 'none',
3965
+ transition: 'all 0.2s ease',
3966
+ _hover: {
3967
+ boxShadow: isDarkMode ? '0px 4px 12px rgba(0, 0, 0, 0.25)' : '0px 4px 12px rgba(0, 0, 0, 0.12)',
3968
+ transform: 'translateY(-2px)'
3969
+ }
3983
3970
  }
3984
- }
3971
+ };
3985
3972
  };
3986
3973
  /**
3987
3974
  * Function to get default styles for Card components
3988
- * @param theme - Theme object (not used directly but kept for compatibility)
3975
+ * @param theme - Theme object from useTheme hook
3989
3976
  */
3990
- var getDefaultCardStyles = _theme => ({
3991
- container: {
3992
- backgroundColor: 'white',
3993
- borderRadius: '8px',
3994
- overflow: 'hidden',
3995
- transition: 'all 0.2s ease',
3996
- '@media (prefers-color-scheme: dark)': {
3997
- backgroundColor: 'color.gray.800',
3998
- color: 'color.gray.100'
3999
- }
4000
- },
4001
- header: {
4002
- padding: '16px',
4003
- borderBottomWidth: '1px',
4004
- borderBottomStyle: 'solid',
4005
- borderBottomColor: 'color.gray.200',
4006
- '@media (prefers-color-scheme: dark)': {
4007
- borderBottomColor: 'color.gray.700'
4008
- }
4009
- },
4010
- content: {
4011
- padding: '16px',
4012
- '@media (prefers-color-scheme: dark)': {
4013
- color: 'color.gray.100'
4014
- }
4015
- },
4016
- footer: {
4017
- padding: '16px',
4018
- borderTopWidth: '1px',
4019
- borderTopStyle: 'solid',
4020
- borderTopColor: 'color.gray.200',
4021
- '@media (prefers-color-scheme: dark)': {
4022
- borderTopColor: 'color.gray.700'
3977
+ var getDefaultCardStyles = theme => {
3978
+ var {
3979
+ themeMode
3980
+ } = theme;
3981
+ var isDarkMode = themeMode === 'dark';
3982
+ return {
3983
+ container: {
3984
+ backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
3985
+ color: isDarkMode ? 'color.gray.100' : 'color.gray.900',
3986
+ borderRadius: '8px',
3987
+ overflow: 'hidden',
3988
+ transition: 'all 0.2s ease'
3989
+ },
3990
+ header: {
3991
+ padding: '16px',
3992
+ borderBottomWidth: '1px',
3993
+ borderBottomStyle: 'solid',
3994
+ borderBottomColor: isDarkMode ? 'color.gray.700' : 'color.gray.200'
3995
+ },
3996
+ content: {
3997
+ padding: '16px',
3998
+ color: isDarkMode ? 'color.gray.100' : 'color.gray.900'
3999
+ },
4000
+ footer: {
4001
+ padding: '16px',
4002
+ borderTopWidth: '1px',
4003
+ borderTopStyle: 'solid',
4004
+ borderTopColor: isDarkMode ? 'color.gray.700' : 'color.gray.200'
4023
4005
  }
4024
- }
4025
- });
4006
+ };
4007
+ };
4026
4008
 
4027
4009
  var CardContext = /*#__PURE__*/React.createContext({});
4028
4010
  var useCardContext = () => {
4029
4011
  return React.useContext(CardContext);
4030
4012
  };
4031
4013
 
4032
- var _excluded$9 = ["children", "views", "style"],
4033
- _excluded2$3 = ["children", "views", "style"],
4034
- _excluded3$3 = ["children", "views", "style"],
4035
- _excluded4$3 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style"];
4014
+ var _excluded$b = ["children", "views", "style", "themeMode"],
4015
+ _excluded2$3 = ["children", "views", "style", "themeMode"],
4016
+ _excluded3$3 = ["children", "views", "style", "themeMode"],
4017
+ _excluded4$3 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style", "themeMode"];
4036
4018
  var CardHeader = _ref => {
4037
4019
  var _contextStyles$header;
4038
4020
  var {
4039
4021
  children,
4040
4022
  style
4041
4023
  } = _ref,
4042
- props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
4024
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
4043
4025
  var theme = appStudio.useTheme();
4044
4026
  var {
4045
4027
  styles: contextStyles
4046
4028
  } = useCardContext();
4047
- var defaultStyles = getDefaultCardStyles().header;
4029
+ var defaultStyles = getDefaultCardStyles(theme).header;
4048
4030
  // Merge styles: Default < Context Override < Direct Props/Style
4049
4031
  var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.header, props, {
4050
4032
  style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$header = contextStyles.header) == null ? void 0 : _contextStyles$header.style, style)
@@ -4062,7 +4044,7 @@ var CardContent = _ref2 => {
4062
4044
  var {
4063
4045
  styles: contextStyles
4064
4046
  } = useCardContext();
4065
- var defaultStyles = getDefaultCardStyles().content;
4047
+ var defaultStyles = getDefaultCardStyles(theme).content;
4066
4048
  // Merge styles: Default < Context Override < Direct Props/Style
4067
4049
  var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.content, props, {
4068
4050
  style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$conten = contextStyles.content) == null ? void 0 : _contextStyles$conten.style, style)
@@ -4080,7 +4062,7 @@ var CardFooter = _ref3 => {
4080
4062
  var {
4081
4063
  styles: contextStyles
4082
4064
  } = useCardContext();
4083
- var defaultStyles = getDefaultCardStyles().footer;
4065
+ var defaultStyles = getDefaultCardStyles(theme).footer;
4084
4066
  // Merge styles: Default < Context Override < Direct Props/Style
4085
4067
  var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.footer, props, {
4086
4068
  style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$footer = contextStyles.footer) == null ? void 0 : _contextStyles$footer.style, style)
@@ -4098,11 +4080,12 @@ var CardView = _ref4 => {
4098
4080
  footer,
4099
4081
  isFullWidth = false,
4100
4082
  views,
4101
- style
4083
+ style,
4084
+ themeMode: elementMode
4102
4085
  } = _ref4,
4103
4086
  props = _objectWithoutPropertiesLoose(_ref4, _excluded4$3);
4104
4087
  var theme = appStudio.useTheme();
4105
- var defaultStyles = getDefaultCardStyles();
4088
+ var defaultStyles = getDefaultCardStyles(theme);
4106
4089
  // Prepare context value, merging default styles with user's `views` overrides
4107
4090
  var contextValue = React.useMemo(() => ({
4108
4091
  styles: {
@@ -4115,12 +4098,18 @@ var CardView = _ref4 => {
4115
4098
  // Determine if we have explicit Card.Header, Card.Content, Card.Footer components
4116
4099
  // or if we need to wrap children in a default layout
4117
4100
  var hasExplicitStructure = React__default.Children.toArray(children).some(child => /*#__PURE__*/React__default.isValidElement(child) && (child.type === CardHeader || child.type === CardContent || child.type === CardFooter));
4101
+ // Get the appropriate variant styles based on theme mode
4102
+ var {
4103
+ themeMode
4104
+ } = theme;
4105
+ var currentThemeMode = elementMode || themeMode;
4106
+ var variantStyles = getCardVariants(currentThemeMode)[variant];
4118
4107
  // Merge styles for the root element
4119
4108
  var mergedRootProps = Object.assign({
4120
4109
  width: isFullWidth ? '100%' : 'auto',
4121
4110
  borderRadius: CardShapes[shape],
4122
4111
  overflow: 'hidden'
4123
- }, CardVariants[variant], contextValue.styles.container, props, {
4112
+ }, variantStyles, contextValue.styles.container, props, {
4124
4113
  style: Object.assign({}, (_contextValue$styles$ = contextValue.styles.container) == null ? void 0 : _contextValue$styles$.style, style)
4125
4114
  });
4126
4115
  return /*#__PURE__*/React__default.createElement(CardContext.Provider, {
@@ -4431,19 +4420,19 @@ var useCarouselContext = () => {
4431
4420
  return context;
4432
4421
  };
4433
4422
 
4434
- var _excluded$a = ["children", "isActive", "views"],
4423
+ var _excluded$c = ["children", "isActive", "views"],
4435
4424
  _excluded2$4 = ["views", "children"],
4436
4425
  _excluded3$4 = ["views", "children"],
4437
4426
  _excluded4$4 = ["children", "views"],
4438
4427
  _excluded5$1 = ["children", "views", "style"],
4439
- _excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views"];
4428
+ _excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views", "themeMode"];
4440
4429
  var CarouselSlide = _ref => {
4441
4430
  var {
4442
4431
  children,
4443
4432
  isActive,
4444
4433
  views
4445
4434
  } = _ref,
4446
- props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
4435
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
4447
4436
  return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
4448
4437
  flexShrink: 0,
4449
4438
  width: "100%",
@@ -5367,7 +5356,7 @@ var PieChart = _ref => {
5367
5356
  })));
5368
5357
  };
5369
5358
 
5370
- var _excluded$b = ["type", "data", "dataPoints", "title", "showLegend", "legendPosition", "showGrid", "showTooltips", "animated", "animationDuration", "responsive", "aspectRatio", "width", "height", "views", "onDataPointClick", "onSeriesClick", "isLoading", "error", "noData", "loadingIndicator", "errorIndicator", "noDataIndicator", "aria-label"];
5359
+ var _excluded$d = ["type", "data", "dataPoints", "title", "showLegend", "legendPosition", "showGrid", "showTooltips", "animated", "animationDuration", "responsive", "aspectRatio", "width", "height", "views", "onDataPointClick", "onSeriesClick", "isLoading", "error", "noData", "loadingIndicator", "errorIndicator", "noDataIndicator", "aria-label", "themeMode"];
5371
5360
  var ChartView = _ref => {
5372
5361
  var {
5373
5362
  type,
@@ -5395,7 +5384,7 @@ var ChartView = _ref => {
5395
5384
  noDataIndicator,
5396
5385
  'aria-label': ariaLabel
5397
5386
  } = _ref,
5398
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
5387
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
5399
5388
  // Use chart state hook
5400
5389
  var {
5401
5390
  animationProgress,
@@ -5725,12 +5714,12 @@ var calculateMenuPosition = function calculateMenuPosition(x, y, menuWidth, menu
5725
5714
  };
5726
5715
  };
5727
5716
 
5728
- var _excluded$c = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
5717
+ var _excluded$e = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
5729
5718
  _excluded2$5 = ["items", "children", "position", "side", "align", "views", "style"],
5730
5719
  _excluded3$5 = ["item", "children", "onSelect", "isDisabled", "views"],
5731
5720
  _excluded4$5 = ["views"],
5732
5721
  _excluded5$2 = ["views"],
5733
- _excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views"];
5722
+ _excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views", "themeMode"];
5734
5723
  // Create context for the ContextMenu
5735
5724
  var ContextMenuContext = /*#__PURE__*/React.createContext({
5736
5725
  isOpen: false,
@@ -5781,7 +5770,7 @@ var ContextMenuTrigger = _ref2 => {
5781
5770
  isDisabled = false,
5782
5771
  views
5783
5772
  } = _ref2,
5784
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$c);
5773
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$e);
5785
5774
  var {
5786
5775
  triggerRef,
5787
5776
  contentId,
@@ -6064,7 +6053,7 @@ var ContextMenuView = _ref7 => {
6064
6053
  }));
6065
6054
  };
6066
6055
 
6067
- var _excluded$d = ["children", "items", "size", "variant", "disableNativeContextMenu", "onOpenChange", "views"];
6056
+ var _excluded$f = ["children", "items", "size", "variant", "disableNativeContextMenu", "onOpenChange", "views"];
6068
6057
  /**
6069
6058
  * ContextMenu component for displaying a custom context menu on right-click.
6070
6059
  * Supports both data-driven approach (with items prop) and compound component pattern.
@@ -6079,7 +6068,7 @@ var ContextMenuComponent = _ref => {
6079
6068
  onOpenChange,
6080
6069
  views
6081
6070
  } = _ref,
6082
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
6071
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
6083
6072
  var state = useContextMenuState({
6084
6073
  size,
6085
6074
  variant,
@@ -6131,7 +6120,7 @@ ContextMenu.Item = ContextMenuItem;
6131
6120
  ContextMenu.Divider = ContextMenuDivider;
6132
6121
  ContextMenu.Separator = ContextMenuSeparator; // Add the Separator component
6133
6122
 
6134
- var _excluded$e = ["src", "color", "views", "themeMode"],
6123
+ var _excluded$g = ["src", "color", "views", "themeMode"],
6135
6124
  _excluded2$6 = ["path"];
6136
6125
  var FileSVG = _ref => {
6137
6126
  var {
@@ -6139,7 +6128,7 @@ var FileSVG = _ref => {
6139
6128
  color,
6140
6129
  views
6141
6130
  } = _ref,
6142
- props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
6131
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
6143
6132
  var {
6144
6133
  getColor,
6145
6134
  themeMode
@@ -6213,7 +6202,7 @@ var useItemState = () => {
6213
6202
  };
6214
6203
  };
6215
6204
 
6216
- var _excluded$f = ["children", "views"];
6205
+ var _excluded$h = ["children", "views"];
6217
6206
  var HelperText = _ref => {
6218
6207
  var {
6219
6208
  children,
@@ -6221,7 +6210,7 @@ var HelperText = _ref => {
6221
6210
  helperText: {}
6222
6211
  }
6223
6212
  } = _ref,
6224
- props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
6213
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
6225
6214
  return /*#__PURE__*/React__default.createElement(Text
6226
6215
  // Typography properties
6227
6216
  , Object.assign({
@@ -6247,7 +6236,7 @@ var HelperText = _ref => {
6247
6236
  }, views['helperText'], props), children);
6248
6237
  };
6249
6238
 
6250
- var _excluded$g = ["children", "helperText", "error", "views"];
6239
+ var _excluded$i = ["children", "helperText", "error", "views"];
6251
6240
  var FieldContainer = _ref => {
6252
6241
  var {
6253
6242
  children,
@@ -6255,7 +6244,7 @@ var FieldContainer = _ref => {
6255
6244
  error = false,
6256
6245
  views
6257
6246
  } = _ref,
6258
- props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
6247
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
6259
6248
  return /*#__PURE__*/React__default.createElement(appStudio.Vertical
6260
6249
  // Layout properties
6261
6250
  , Object.assign({
@@ -6392,7 +6381,7 @@ var PaddingWithoutLabel = {
6392
6381
  paddingRight: '16px'
6393
6382
  };
6394
6383
 
6395
- var _excluded$h = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "showLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "views"];
6384
+ var _excluded$j = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "showLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "views"];
6396
6385
  var FieldContent = _ref => {
6397
6386
  var {
6398
6387
  shadow,
@@ -6410,7 +6399,7 @@ var FieldContent = _ref => {
6410
6399
  pickerBox: {}
6411
6400
  }
6412
6401
  } = _ref,
6413
- props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
6402
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
6414
6403
  // Determine if the field is in an interactive state
6415
6404
  var isInteractive = (isHovered || isFocused) && !isDisabled;
6416
6405
  // Set the appropriate color based on state
@@ -6439,12 +6428,12 @@ var FieldContent = _ref => {
6439
6428
  }, showLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], views['box'], props), children);
6440
6429
  };
6441
6430
 
6442
- var _excluded$i = ["children"];
6431
+ var _excluded$k = ["children"];
6443
6432
  var FieldIcons = _ref => {
6444
6433
  var {
6445
6434
  children
6446
6435
  } = _ref,
6447
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
6436
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
6448
6437
  return /*#__PURE__*/React__default.createElement(appStudio.Center, Object.assign({
6449
6438
  gap: 10,
6450
6439
  right: 16,
@@ -6496,7 +6485,7 @@ var HeadingSizes$1 = {
6496
6485
  }
6497
6486
  };
6498
6487
 
6499
- var _excluded$j = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
6488
+ var _excluded$l = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
6500
6489
  var LabelView = _ref => {
6501
6490
  var {
6502
6491
  children,
@@ -6512,7 +6501,7 @@ var LabelView = _ref => {
6512
6501
  size = 'sm'
6513
6502
  // The fontSize prop for the Element is determined by the 'size' prop passed to LabelView.
6514
6503
  } = _ref,
6515
- props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
6504
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
6516
6505
  // The fontStyle prop toggles between 'italic' and 'normal' based on the 'isItalic' boolean prop.
6517
6506
  var headingStyles = heading ? HeadingSizes$1[heading] : {};
6518
6507
  // fontWeight is derived from the Typography module, ensuring consistent font weighting across the app.
@@ -6544,7 +6533,7 @@ React__default.createElement(LabelView, Object.assign({}, props))
6544
6533
  var Label = LabelComponent;
6545
6534
  // Export the 'LabelComponent' as 'Label' to be reused throughout the project.
6546
6535
 
6547
- var _excluded$k = ["children", "size", "error", "color", "views", "helperText"];
6536
+ var _excluded$m = ["children", "size", "error", "color", "views", "helperText"];
6548
6537
  var FieldLabel = _ref => {
6549
6538
  var {
6550
6539
  children,
@@ -6555,7 +6544,7 @@ var FieldLabel = _ref => {
6555
6544
  label: {}
6556
6545
  }
6557
6546
  } = _ref,
6558
- props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
6547
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
6559
6548
  return /*#__PURE__*/React__default.createElement(Label
6560
6549
  // Position properties
6561
6550
  , Object.assign({
@@ -6576,12 +6565,12 @@ var FieldLabel = _ref => {
6576
6565
  }, views['label'], props), children);
6577
6566
  };
6578
6567
 
6579
- var _excluded$l = ["children"];
6568
+ var _excluded$n = ["children"];
6580
6569
  var FieldWrapper = _ref => {
6581
6570
  var {
6582
6571
  children
6583
6572
  } = _ref,
6584
- props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
6573
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
6585
6574
  return /*#__PURE__*/React__default.createElement(appStudio.Vertical
6586
6575
  // Layout properties
6587
6576
  , Object.assign({
@@ -6614,7 +6603,7 @@ var IconSizes$2 = {
6614
6603
  xl: 28
6615
6604
  };
6616
6605
 
6617
- var _excluded$m = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
6606
+ var _excluded$o = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
6618
6607
  _excluded2$7 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
6619
6608
  _excluded3$6 = ["option", "size", "removeOption"],
6620
6609
  _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"];
@@ -6632,7 +6621,7 @@ var Item = _ref => {
6632
6621
  callback = () => {},
6633
6622
  style
6634
6623
  } = _ref,
6635
- props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
6624
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
6636
6625
  // Handles the click event on an option by invoking the callback with the selected option's value
6637
6626
  var handleOptionClick = option => callback(option);
6638
6627
  // Toggles the hover state on the item
@@ -7131,7 +7120,7 @@ var ColorSchemes = {
7131
7120
  }
7132
7121
  };
7133
7122
 
7134
- var _excluded$n = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "views"];
7123
+ var _excluded$p = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "views"];
7135
7124
  var SwitchContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
7136
7125
  type: "checkbox"
7137
7126
  }, props));
@@ -7160,7 +7149,7 @@ var SwitchView = _ref => {
7160
7149
  label: {}
7161
7150
  }
7162
7151
  } = _ref,
7163
- props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
7152
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
7164
7153
  var handleToggle = event => {
7165
7154
  if (!isReadOnly) {
7166
7155
  setValue(!value);
@@ -7284,7 +7273,7 @@ var useTextAreaState = _ref => {
7284
7273
  // Export of the useTextAreaState hook for external usage.
7285
7274
  };
7286
7275
 
7287
- var _excluded$o = ["id", "name", "hint", "error", "value", "label", "shadow", "helperText", "placeholder", "size", "shape", "variant", "isHovered", "isFocused", "isEditable", "isReadOnly", "isDisabled", "isAutoFocus", "isMultiline", "maxRows", "maxCols", "onBlur", "onChange", "onFocus", "onChangeText", "setHint", "setValue", "setIsFocused", "setIsHovered", "views"];
7276
+ var _excluded$q = ["id", "name", "hint", "error", "value", "label", "shadow", "helperText", "placeholder", "size", "shape", "variant", "isHovered", "isFocused", "isEditable", "isReadOnly", "isDisabled", "isAutoFocus", "isMultiline", "maxRows", "maxCols", "onBlur", "onChange", "onFocus", "setHint", "setValue", "setIsFocused", "setIsHovered", "views"];
7288
7277
  var TextAreaView = _ref => {
7289
7278
  var {
7290
7279
  id,
@@ -7310,7 +7299,6 @@ var TextAreaView = _ref => {
7310
7299
  onBlur = () => {},
7311
7300
  onChange,
7312
7301
  onFocus,
7313
- onChangeText,
7314
7302
  setHint = () => {},
7315
7303
  setValue = () => {},
7316
7304
  setIsFocused = () => {},
@@ -7320,7 +7308,7 @@ var TextAreaView = _ref => {
7320
7308
  helperText: {}
7321
7309
  }
7322
7310
  } = _ref,
7323
- props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
7311
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
7324
7312
  var showLabel = !!(isFocused && label);
7325
7313
  /**
7326
7314
  * Styles for the textarea field
@@ -7365,11 +7353,9 @@ var TextAreaView = _ref => {
7365
7353
  var handleChange = event => {
7366
7354
  if (typeof event === 'string') {
7367
7355
  setValue(event);
7368
- if (onChangeText) onChangeText(event);
7369
7356
  if (onChange) onChange(event);
7370
7357
  } else {
7371
7358
  setValue(event.target.value);
7372
- if (onChangeText) onChangeText(event.target.value);
7373
7359
  if (onChange) onChange(event.target.value);
7374
7360
  }
7375
7361
  };
@@ -7408,15 +7394,13 @@ var TextAreaView = _ref => {
7408
7394
  readOnly: isReadOnly,
7409
7395
  disabled: isDisabled,
7410
7396
  autoFocus: isAutoFocus,
7411
- editable: isEditable,
7397
+ editable: !!isEditable.toString(),
7412
7398
  placeholder: hint,
7413
7399
  onBlur: handleBlur,
7414
7400
  onFocus: handleFocus,
7415
- multiline: isMultiline
7416
- }, fieldStyles, {
7417
- onChange: handleChange,
7418
- onChangeText: handleChange
7419
- }, views == null ? void 0 : views.textarea)))));
7401
+ multiline: !!isMultiline.toString(),
7402
+ onChange: handleChange
7403
+ }, fieldStyles, views == null ? void 0 : views.textarea)))));
7420
7404
  };
7421
7405
 
7422
7406
  // Defines the TextAreaComponent as a functional component that accepts TextAreaProps for type safety and structure.
@@ -7463,7 +7447,7 @@ var useTextFieldState = _ref => {
7463
7447
  };
7464
7448
  };
7465
7449
 
7466
- var _excluded$p = ["id", "name", "label", "hint", "value", "onChange", "left", "right", "helperText", "placeholder", "onChangeText", "shadow", "views", "size", "shape", "variant", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setValue", "onClick", "onFocus", "onBlur", "themeMode"];
7450
+ var _excluded$r = ["id", "name", "label", "hint", "value", "onChange", "left", "right", "helperText", "placeholder", "onChangeText", "shadow", "views", "size", "shape", "variant", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setValue", "onClick", "onFocus", "onBlur", "themeMode"];
7467
7451
  /**
7468
7452
  * Input component for text fields
7469
7453
  */
@@ -7509,7 +7493,7 @@ var TextFieldView = _ref => {
7509
7493
  onBlur = () => {},
7510
7494
  themeMode: elementMode
7511
7495
  } = _ref,
7512
- props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
7496
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
7513
7497
  var {
7514
7498
  getColor,
7515
7499
  themeMode
@@ -7767,7 +7751,7 @@ var StateStyles = {
7767
7751
  }
7768
7752
  };
7769
7753
 
7770
- var _excluded$q = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "labelPosition", "size", "error", "isSelected", "isHovered", "isDisabled", "isReadOnly", "isIndeterminate", "defaultIsSelected", "setIsSelected", "setIsHovered", "views", "infoText", "helperText"];
7754
+ var _excluded$s = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "labelPosition", "size", "error", "isSelected", "isHovered", "isDisabled", "isReadOnly", "isIndeterminate", "defaultIsSelected", "setIsSelected", "setIsHovered", "views", "infoText", "helperText"];
7771
7755
  var CheckboxView = _ref => {
7772
7756
  var {
7773
7757
  id,
@@ -7794,7 +7778,7 @@ var CheckboxView = _ref => {
7794
7778
  },
7795
7779
  infoText
7796
7780
  } = _ref,
7797
- props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
7781
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
7798
7782
  var handleHover = () => setIsHovered(!isHovered);
7799
7783
  var handleChange = () => {
7800
7784
  if (!isReadOnly && !isDisabled) {
@@ -9380,11 +9364,11 @@ var IconSizes$4 = {
9380
9364
  xl: 16
9381
9365
  };
9382
9366
 
9383
- var _excluded$r = ["size"],
9367
+ var _excluded$t = ["size"],
9384
9368
  _excluded2$8 = ["size"],
9385
9369
  _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"];
9386
9370
  var CountryList = _ref => {
9387
- var props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
9371
+ var props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
9388
9372
  return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
9389
9373
  as: "ul"
9390
9374
  }, props));
@@ -9623,7 +9607,7 @@ var useDatePickerState = () => {
9623
9607
  };
9624
9608
  };
9625
9609
 
9626
- var _excluded$s = ["id", "icon", "name", "label", "date", "children", "helperText", "shadow", "size", "variant", "shape", "views", "error", "isHovered", "isFocused", "isDisabled", "isReadOnly", "setDate", "setIsFocused", "setIsHovered", "onChange", "onChangeText"];
9610
+ var _excluded$u = ["id", "icon", "name", "label", "date", "children", "helperText", "shadow", "size", "variant", "shape", "views", "error", "isHovered", "isFocused", "isDisabled", "isReadOnly", "setDate", "setIsFocused", "setIsHovered", "onChange", "onChangeText"];
9627
9611
  var DatePickerContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
9628
9612
  type: "date"
9629
9613
  }, props));
@@ -9656,7 +9640,7 @@ var DatePickerView = _ref => {
9656
9640
  onChange,
9657
9641
  onChangeText
9658
9642
  } = _ref,
9659
- props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
9643
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
9660
9644
  var showLabel = !!(isFocused && label);
9661
9645
  var handleHover = () => setIsHovered(!isHovered);
9662
9646
  var handleFocus = () => setIsFocused(true);
@@ -9743,7 +9727,7 @@ var usePasswordState = props => {
9743
9727
  }, props, textFieldStates);
9744
9728
  };
9745
9729
 
9746
- var _excluded$t = ["visibleIcon", "hiddenIcon"],
9730
+ var _excluded$v = ["visibleIcon", "hiddenIcon"],
9747
9731
  _excluded2$9 = ["isVisible", "setIsVisible"];
9748
9732
  var PasswordComponent = _ref => {
9749
9733
  var {
@@ -9754,7 +9738,7 @@ var PasswordComponent = _ref => {
9754
9738
  widthHeight: 14
9755
9739
  })
9756
9740
  } = _ref,
9757
- props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
9741
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
9758
9742
  var _usePasswordState = usePasswordState(props),
9759
9743
  {
9760
9744
  isVisible,
@@ -9808,7 +9792,7 @@ var useComboBoxState = (items, placeholder, searchPlaceholder) => {
9808
9792
  };
9809
9793
  };
9810
9794
 
9811
- var _excluded$u = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "views", "isDropdownVisible", "setIsDropdownVisible"];
9795
+ var _excluded$w = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "views", "isDropdownVisible", "setIsDropdownVisible"];
9812
9796
  // Defines the functional component 'ComboBoxView' with destructured props.
9813
9797
  var ComboBoxView = _ref => {
9814
9798
  var {
@@ -9833,7 +9817,7 @@ var ComboBoxView = _ref => {
9833
9817
  setIsDropdownVisible
9834
9818
  // Collects all further props not destructured explicitly.
9835
9819
  } = _ref,
9836
- props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
9820
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
9837
9821
  // Sets up an effect to handle clicking outside the dropdown to close it.
9838
9822
  React.useEffect(() => {
9839
9823
  var handleClickOutside = event => {
@@ -9945,7 +9929,7 @@ var ComboBoxView = _ref => {
9945
9929
  }))))))))))));
9946
9930
  };
9947
9931
 
9948
- var _excluded$v = ["id", "name", "items", "placeholder", "searchPlaceholder"];
9932
+ var _excluded$x = ["id", "name", "items", "placeholder", "searchPlaceholder"];
9949
9933
  // Defines the ComboBoxComponent functional component with ComboBoxProps
9950
9934
  var ComboBoxComponent = _ref => {
9951
9935
  var {
@@ -9961,7 +9945,7 @@ var ComboBoxComponent = _ref => {
9961
9945
  searchPlaceholder
9962
9946
  // Destructures the rest of the props not explicitly defined
9963
9947
  } = _ref,
9964
- props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
9948
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
9965
9949
  // Initializes ComboBox state using custom hook with items and placeholders
9966
9950
  var state = useComboBoxState(items, placeholder, searchPlaceholder);
9967
9951
  return (
@@ -10266,7 +10250,7 @@ var useOTPInputState = _ref => {
10266
10250
  };
10267
10251
  };
10268
10252
 
10269
- var _excluded$w = ["id", "name", "label", "value", "length", "onChange", "onChangeText", "onComplete", "helperText", "placeholder", "shadow", "views", "size", "shape", "variant", "gap", "type", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isAutoFocus", "setValue", "setIsFocused", "setIsHovered", "inputRef", "containerRef", "mirrorSelectionStart", "mirrorSelectionEnd", "setMirrorSelectionStart", "setMirrorSelectionEnd", "handlePaste", "handleChange", "handleFocus", "handleBlur", "handleKeyDown", "stepValues", "setInputRef", "onBlur", "onClick", "onFocus"];
10253
+ var _excluded$y = ["id", "name", "label", "value", "length", "onChange", "onChangeText", "onComplete", "helperText", "placeholder", "shadow", "views", "size", "shape", "variant", "gap", "type", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isAutoFocus", "setValue", "setIsFocused", "setIsHovered", "inputRef", "containerRef", "mirrorSelectionStart", "mirrorSelectionEnd", "setMirrorSelectionStart", "setMirrorSelectionEnd", "handlePaste", "handleChange", "handleFocus", "handleBlur", "handleKeyDown", "stepValues", "setInputRef", "onBlur", "onClick", "onFocus"];
10270
10254
  // Create a context for OTP input slots
10271
10255
  var OTPInputContext = /*#__PURE__*/React.createContext({
10272
10256
  slots: [],
@@ -10320,7 +10304,7 @@ var OTPInputView = _ref => {
10320
10304
  onFocus = () => {}
10321
10305
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
10322
10306
  } = _ref,
10323
- props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
10307
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
10324
10308
  appStudio.useTheme(); // Initialize theme context
10325
10309
  var showLabel = !!label;
10326
10310
  // Create context value for slots
@@ -10550,7 +10534,7 @@ var OTPInputComponent = props => {
10550
10534
  };
10551
10535
  var OTPInput = OTPInputComponent;
10552
10536
 
10553
- var _excluded$x = ["children", "autoFocus", "initFocus", "onChange"];
10537
+ var _excluded$z = ["children", "autoFocus", "initFocus", "onChange"];
10554
10538
  var FocusContext = /*#__PURE__*/React.createContext({
10555
10539
  active: false,
10556
10540
  focusNextInput: () => {},
@@ -10566,7 +10550,7 @@ var FormikForm = _ref => {
10566
10550
  initFocus,
10567
10551
  onChange = () => {}
10568
10552
  } = _ref,
10569
- props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
10553
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
10570
10554
  var formik$1 = formik.useFormikContext();
10571
10555
  React.useEffect(() => {
10572
10556
  onChange(formik$1.values);
@@ -10614,7 +10598,7 @@ var FormikForm = _ref => {
10614
10598
  }, /*#__PURE__*/React__default.createElement(appStudio.Form, Object.assign({}, props), children));
10615
10599
  };
10616
10600
 
10617
- var _excluded$y = ["name", "type"];
10601
+ var _excluded$A = ["name", "type"];
10618
10602
  var getInputTypeProps = type => {
10619
10603
  switch (type) {
10620
10604
  case 'email':
@@ -10653,7 +10637,7 @@ var useFormikInput = _ref => {
10653
10637
  name,
10654
10638
  type
10655
10639
  } = _ref,
10656
- props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
10640
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
10657
10641
  var focus = useFormFocus();
10658
10642
  var {
10659
10643
  touched,
@@ -10697,13 +10681,13 @@ var useFormikInput = _ref => {
10697
10681
  } : {});
10698
10682
  };
10699
10683
 
10700
- var _excluded$z = ["value"];
10684
+ var _excluded$B = ["value"];
10701
10685
  var CheckboxComponent$1 = props => {
10702
10686
  var _useFormikInput = useFormikInput(props),
10703
10687
  {
10704
10688
  value
10705
10689
  } = _useFormikInput,
10706
- formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$z);
10690
+ formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$B);
10707
10691
  formProps.isChecked = value;
10708
10692
  var checkboxStates = useCheckboxState(props);
10709
10693
  return /*#__PURE__*/React__default.createElement(CheckboxView, Object.assign({}, checkboxStates, formProps));
@@ -10761,11 +10745,11 @@ var TextAreaComponent$1 = props => {
10761
10745
  */
10762
10746
  var FormikTextArea = TextAreaComponent$1;
10763
10747
 
10764
- var _excluded$A = ["value"];
10748
+ var _excluded$C = ["value"];
10765
10749
  var TextFieldComponent$1 = props => {
10766
10750
  var formProps = useFormikInput(props);
10767
10751
  var _useTextFieldState = useTextFieldState(props),
10768
- textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$A);
10752
+ textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$C);
10769
10753
  return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, textFieldStates, formProps));
10770
10754
  };
10771
10755
  /**
@@ -10773,7 +10757,7 @@ var TextFieldComponent$1 = props => {
10773
10757
  */
10774
10758
  var FormikTextField = TextFieldComponent$1;
10775
10759
 
10776
- var _excluded$B = ["visibleIcon", "hiddenIcon"],
10760
+ var _excluded$D = ["visibleIcon", "hiddenIcon"],
10777
10761
  _excluded2$a = ["isVisible", "setIsVisible"];
10778
10762
  var PasswordComponent$1 = _ref => {
10779
10763
  var {
@@ -10784,7 +10768,7 @@ var PasswordComponent$1 = _ref => {
10784
10768
  widthHeight: 14
10785
10769
  })
10786
10770
  } = _ref,
10787
- props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
10771
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
10788
10772
  var formProps = useFormikInput(props);
10789
10773
  var _usePasswordState = usePasswordState(formProps),
10790
10774
  {
@@ -10809,14 +10793,14 @@ var PasswordComponent$1 = _ref => {
10809
10793
  */
10810
10794
  var FormikPassword = PasswordComponent$1;
10811
10795
 
10812
- var _excluded$C = ["items", "placeholder", "searchPlaceholder"];
10796
+ var _excluded$E = ["items", "placeholder", "searchPlaceholder"];
10813
10797
  var ComboBoxComponent$1 = _ref => {
10814
10798
  var {
10815
10799
  items,
10816
10800
  placeholder,
10817
10801
  searchPlaceholder
10818
10802
  } = _ref,
10819
- props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
10803
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
10820
10804
  var formProps = useFormikInput(props);
10821
10805
  var ComboBoxStates = useComboBoxState(items, placeholder, searchPlaceholder);
10822
10806
  // Ensure the onChange function from formProps is being called when an item is selected
@@ -11040,17 +11024,22 @@ var SliderShapes = {
11040
11024
  rounded: 4,
11041
11025
  pillShaped: 24
11042
11026
  };
11043
- var SliderVariants = {
11044
- default: {
11045
- backgroundColor: 'color.blueGray.200'
11046
- },
11047
- outline: {
11048
- backgroundColor: 'transparent',
11049
- borderWidth: 1,
11050
- borderStyle: 'solid',
11051
- borderColor: 'color.blueGray.300'
11052
- }
11027
+ var getSlider = themeMode => {
11028
+ return {
11029
+ default: {
11030
+ backgroundColor: 'color.blueGray.200'
11031
+ },
11032
+ outline: {
11033
+ backgroundColor: 'transparent',
11034
+ borderWidth: 1,
11035
+ borderStyle: 'solid',
11036
+ borderColor: 'color.blueGray.300'
11037
+ }
11038
+ };
11039
+ // Add dark mode conditional styling here
11053
11040
  };
11041
+ // For backward compatibility
11042
+ var SliderVariants = /*#__PURE__*/getSlider();
11054
11043
  // Maps Size enum to track height/width and thumb size for the new implementation
11055
11044
  var EnhancedSliderSizes = {
11056
11045
  xs: {
@@ -11092,7 +11081,7 @@ var OrientationStyles = {
11092
11081
  }
11093
11082
  };
11094
11083
 
11095
- var _excluded$D = ["min", "max", "step", "currentValue", "stepValues", "shape", "size", "variant", "orientation", "isDisabled", "showValue", "showTooltip", "colorScheme", "label", "helperText", "themeMode", "shadow", "isDragging", "isHovered", "setIsHovered", "trackRef", "thumbRef", "handleThumbMouseDown", "handleTrackMouseDown", "handleKeyDown", "thumbPositionPercent", "ariaLabel", "views"];
11084
+ var _excluded$F = ["min", "max", "step", "currentValue", "stepValues", "shape", "size", "variant", "orientation", "isDisabled", "showValue", "showTooltip", "colorScheme", "label", "helperText", "themeMode", "shadow", "isDragging", "isHovered", "setIsHovered", "trackRef", "thumbRef", "handleThumbMouseDown", "handleTrackMouseDown", "handleKeyDown", "thumbPositionPercent", "ariaLabel", "views"];
11096
11085
  var SliderView = _ref => {
11097
11086
  var _views$tooltip, _views$tooltip2;
11098
11087
  var {
@@ -11135,7 +11124,7 @@ var SliderView = _ref => {
11135
11124
  tooltip: {}
11136
11125
  }
11137
11126
  } = _ref,
11138
- props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
11127
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
11139
11128
  var {
11140
11129
  getColor,
11141
11130
  themeMode
@@ -11508,7 +11497,7 @@ var hideMessage = () => {
11508
11497
  useMessageStore.getState().hide();
11509
11498
  };
11510
11499
 
11511
- var Themes$1 = {
11500
+ var Themes = {
11512
11501
  info: {
11513
11502
  container: {
11514
11503
  backgroundColor: 'color.blue.200',
@@ -11606,7 +11595,7 @@ var MessageView = _ref => {
11606
11595
  }
11607
11596
  return;
11608
11597
  }, []);
11609
- var Theme = theme != null ? theme : Themes$1;
11598
+ var Theme = theme != null ? theme : Themes;
11610
11599
  var showAction = !!(action && actionText);
11611
11600
  var containerStyle = {
11612
11601
  borderWidth: 1,
@@ -11855,7 +11844,8 @@ var UploadView = _ref => {
11855
11844
  renderError = _ref2 => {
11856
11845
  var {
11857
11846
  errorMessage,
11858
- errorMessageProps
11847
+ errorMessageProps,
11848
+ themeMode: elementMode
11859
11849
  } = _ref2;
11860
11850
  return /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
11861
11851
  color: "red",
@@ -12006,7 +11996,7 @@ var UploadView = _ref => {
12006
11996
  }, views == null ? void 0 : views.view)));
12007
11997
  };
12008
11998
 
12009
- var _excluded$E = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress", "fileType"];
11999
+ var _excluded$G = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress", "fileType"];
12010
12000
  var Uploader = _ref => {
12011
12001
  var {
12012
12002
  accept = '*/*',
@@ -12019,7 +12009,7 @@ var Uploader = _ref => {
12019
12009
  progress = 0,
12020
12010
  fileType
12021
12011
  } = _ref,
12022
- props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
12012
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$G);
12023
12013
  var {
12024
12014
  previewUrl,
12025
12015
  thumbnailUrl,
@@ -12210,7 +12200,7 @@ var ModalTypography = {
12210
12200
  }
12211
12201
  };
12212
12202
 
12213
- var _excluded$F = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
12203
+ var _excluded$H = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
12214
12204
  _excluded2$b = ["children", "shadow", "isFullScreen", "shape", "views"],
12215
12205
  _excluded3$8 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
12216
12206
  _excluded4$7 = ["children", "views"],
@@ -12225,7 +12215,7 @@ var ModalOverlay = _ref => {
12225
12215
  position = 'center',
12226
12216
  views
12227
12217
  } = _ref,
12228
- props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
12218
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
12229
12219
  var handleClick = () => {
12230
12220
  if (!isClosePrevented) onClose();
12231
12221
  };
@@ -12296,17 +12286,12 @@ var ModalHeader = _ref3 => {
12296
12286
  } = _ref3,
12297
12287
  props = _objectWithoutPropertiesLoose(_ref3, _excluded3$8);
12298
12288
  var onClose = props.onClose ? props.onClose : hideModal;
12299
- var buttonIcon = /*#__PURE__*/React__default.createElement(Button, {
12300
- onClick: onClose,
12301
- icon: /*#__PURE__*/React__default.createElement(CloseIcon, {
12302
- widthHeight: HeaderIconSizes[iconSize],
12303
- color: buttonColor
12304
- }),
12305
- padding: 0,
12306
- margin: 0,
12307
- filter: "none",
12308
- width: 0
12309
- });
12289
+ var buttonIcon = /*#__PURE__*/React__default.createElement(appStudio.View, {
12290
+ onClick: onClose
12291
+ }, /*#__PURE__*/React__default.createElement(CloseIcon, {
12292
+ widthHeight: HeaderIconSizes[iconSize],
12293
+ color: buttonColor
12294
+ }));
12310
12295
  return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
12311
12296
  justifyContent: buttonPosition === 'none' ? 'center' : 'space-between',
12312
12297
  alignItems: "center",
@@ -12526,7 +12511,7 @@ var NavigationMenuItemStates = {
12526
12511
  }
12527
12512
  };
12528
12513
 
12529
- var _excluded$G = ["href", "children", "views"];
12514
+ var _excluded$I = ["href", "children", "views"];
12530
12515
  // Create context for the NavigationMenu
12531
12516
  var NavigationMenuContext = /*#__PURE__*/React.createContext({
12532
12517
  activeItemId: null,
@@ -12761,7 +12746,7 @@ var NavigationMenuLink = _ref6 => {
12761
12746
  children,
12762
12747
  views
12763
12748
  } = _ref6,
12764
- props = _objectWithoutPropertiesLoose(_ref6, _excluded$G);
12749
+ props = _objectWithoutPropertiesLoose(_ref6, _excluded$I);
12765
12750
  var {
12766
12751
  itemValue,
12767
12752
  isDisabled
@@ -12810,7 +12795,8 @@ var NavigationMenuView = _ref7 => {
12810
12795
  items,
12811
12796
  orientation,
12812
12797
  //size, variant,
12813
- views
12798
+ views,
12799
+ themeMode: elementMode
12814
12800
  } = _ref7;
12815
12801
  var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
12816
12802
  if (!items || items.length === 0) {
@@ -12827,7 +12813,7 @@ var NavigationMenuView = _ref7 => {
12827
12813
  })))));
12828
12814
  };
12829
12815
 
12830
- var _excluded$H = ["items", "children", "orientation", "size", "variant", "defaultActiveItemId", "defaultExpandedItemIds", "onItemActivate", "views"];
12816
+ var _excluded$J = ["items", "children", "orientation", "size", "variant", "defaultActiveItemId", "defaultExpandedItemIds", "onItemActivate", "views"];
12831
12817
  /**
12832
12818
  * NavigationMenu component for creating navigation menus with optional nested items.
12833
12819
  * Supports both data-driven approach (with items prop) and compound component pattern.
@@ -12844,7 +12830,7 @@ var NavigationMenuComponent = _ref => {
12844
12830
  onItemActivate,
12845
12831
  views
12846
12832
  } = _ref,
12847
- props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
12833
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$J);
12848
12834
  var {
12849
12835
  activeItemId,
12850
12836
  setActiveItemId,
@@ -13044,7 +13030,8 @@ var TableView = _ref => {
13044
13030
  data,
13045
13031
  columns,
13046
13032
  footer,
13047
- caption
13033
+ caption,
13034
+ themeMode: elementMode
13048
13035
  } = _ref;
13049
13036
  return /*#__PURE__*/React__default.createElement(TableContainer, {
13050
13037
  role: "Table"
@@ -13311,7 +13298,7 @@ var useToggleState = defaultToggled => {
13311
13298
  };
13312
13299
  };
13313
13300
 
13314
- var _excluded$I = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views"];
13301
+ var _excluded$K = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views"];
13315
13302
  var ToggleView = _ref => {
13316
13303
  var {
13317
13304
  children,
@@ -13325,7 +13312,7 @@ var ToggleView = _ref => {
13325
13312
  onToggle,
13326
13313
  views
13327
13314
  } = _ref,
13328
- props = _objectWithoutPropertiesLoose(_ref, _excluded$I);
13315
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$K);
13329
13316
  var toggleColor = !isDisabled ? 'color.trueGray.400' : 'theme.disabled';
13330
13317
  var isActive = !!(isToggle || isHovered);
13331
13318
  var toggleVariants = {
@@ -13368,7 +13355,7 @@ var ToggleView = _ref => {
13368
13355
  }, toggleVariants[variant], props, views == null ? void 0 : views.container), children);
13369
13356
  };
13370
13357
 
13371
- var _excluded$J = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
13358
+ var _excluded$L = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
13372
13359
  // Destructuring properties from ToggleProps to be used within the ToggleComponent.
13373
13360
  var ToggleComponent = _ref => {
13374
13361
  var {
@@ -13380,7 +13367,7 @@ var ToggleComponent = _ref => {
13380
13367
  isToggled = false,
13381
13368
  onToggle
13382
13369
  } = _ref,
13383
- props = _objectWithoutPropertiesLoose(_ref, _excluded$J);
13370
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$L);
13384
13371
  // Initializing toggle state and set state functions using the custom hook useToggleState.
13385
13372
  var {
13386
13373
  isHovered,
@@ -13587,7 +13574,8 @@ var DragAndDropView = _ref => {
13587
13574
  draggedIndex,
13588
13575
  itemRefs,
13589
13576
  handleDragStart,
13590
- views
13577
+ views,
13578
+ themeMode: elementMode
13591
13579
  } = _ref;
13592
13580
  return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
13593
13581
  overflow: "hidden",
@@ -13770,11 +13758,11 @@ var getDropdownPosition = function getDropdownPosition(side, align) {
13770
13758
  return positions[side];
13771
13759
  };
13772
13760
 
13773
- var _excluded$K = ["children", "views"],
13761
+ var _excluded$M = ["children", "views"],
13774
13762
  _excluded2$c = ["items", "side", "align", "views"],
13775
13763
  _excluded3$9 = ["item", "views"],
13776
13764
  _excluded4$8 = ["views"],
13777
- _excluded5$4 = ["trigger", "items", "side", "align", "views"];
13765
+ _excluded5$4 = ["trigger", "items", "side", "align", "views", "themeMode"];
13778
13766
  // Create context for the DropdownMenu
13779
13767
  var DropdownMenuContext = /*#__PURE__*/React.createContext({
13780
13768
  isOpen: false,
@@ -13808,7 +13796,7 @@ var DropdownMenuTrigger = _ref2 => {
13808
13796
  children,
13809
13797
  views
13810
13798
  } = _ref2,
13811
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$K);
13799
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$M);
13812
13800
  var {
13813
13801
  isOpen,
13814
13802
  setIsOpen
@@ -13968,7 +13956,7 @@ var DropdownMenuView = _ref6 => {
13968
13956
  }));
13969
13957
  };
13970
13958
 
13971
- var _excluded$L = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
13959
+ var _excluded$N = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
13972
13960
  /**
13973
13961
  * DropdownMenu component for displaying a menu when clicking on a trigger element.
13974
13962
  */
@@ -13983,7 +13971,7 @@ var DropdownMenuComponent = _ref => {
13983
13971
  defaultOpen = false,
13984
13972
  views
13985
13973
  } = _ref,
13986
- props = _objectWithoutPropertiesLoose(_ref, _excluded$L);
13974
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$N);
13987
13975
  var {
13988
13976
  isOpen,
13989
13977
  setIsOpen,
@@ -14181,7 +14169,7 @@ var useRect = ref => {
14181
14169
  return rect;
14182
14170
  };
14183
14171
 
14184
- var _excluded$M = ["children", "views", "asChild"],
14172
+ var _excluded$O = ["children", "views", "asChild"],
14185
14173
  _excluded2$d = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
14186
14174
  // Create context for the HoverCard
14187
14175
  var HoverCardContext = /*#__PURE__*/React.createContext({
@@ -14220,7 +14208,7 @@ var HoverCardTrigger = _ref2 => {
14220
14208
  views,
14221
14209
  asChild = false
14222
14210
  } = _ref2,
14223
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$M);
14211
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$O);
14224
14212
  var {
14225
14213
  openCard,
14226
14214
  closeCard,
@@ -14307,7 +14295,7 @@ var HoverCardContent = _ref3 => {
14307
14295
  }, views == null ? void 0 : views.container, props), children);
14308
14296
  };
14309
14297
 
14310
- var _excluded$N = ["children", "views", "openDelay", "closeDelay"];
14298
+ var _excluded$P = ["children", "views", "openDelay", "closeDelay"];
14311
14299
  /**
14312
14300
  * HoverCard component displays floating content when hovering over a trigger element.
14313
14301
  * Supports configurable open and close delays for a smoother user experience.
@@ -14319,7 +14307,7 @@ var HoverCardComponent = _ref => {
14319
14307
  openDelay,
14320
14308
  closeDelay
14321
14309
  } = _ref,
14322
- props = _objectWithoutPropertiesLoose(_ref, _excluded$N);
14310
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$P);
14323
14311
  var hoverCardState = useHoverCardState({
14324
14312
  openDelay,
14325
14313
  closeDelay
@@ -14449,7 +14437,7 @@ var getMenubarContentPosition = orientation => {
14449
14437
  };
14450
14438
  };
14451
14439
 
14452
- var _excluded$O = ["children", "orientation", "size", "variant", "views"];
14440
+ var _excluded$Q = ["children", "orientation", "size", "variant", "views"];
14453
14441
  // Create context for the Menubar
14454
14442
  var MenubarContext = /*#__PURE__*/React.createContext({
14455
14443
  activeMenuId: null,
@@ -14483,7 +14471,7 @@ var MenubarRoot = _ref2 => {
14483
14471
  variant = 'default',
14484
14472
  views
14485
14473
  } = _ref2,
14486
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$O);
14474
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$Q);
14487
14475
  var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
14488
14476
  return /*#__PURE__*/React__default.createElement(Container, Object.assign({
14489
14477
  role: "menubar",
@@ -14630,7 +14618,8 @@ var MenubarView = _ref8 => {
14630
14618
  orientation,
14631
14619
  size,
14632
14620
  variant,
14633
- views
14621
+ views,
14622
+ themeMode: elementMode
14634
14623
  } = _ref8;
14635
14624
  return /*#__PURE__*/React__default.createElement(MenubarRoot, {
14636
14625
  orientation: orientation,
@@ -14668,7 +14657,7 @@ var MenubarView = _ref8 => {
14668
14657
  })))))));
14669
14658
  };
14670
14659
 
14671
- var _excluded$P = ["items", "orientation", "size", "variant", "defaultActiveMenuId", "defaultOpenMenuId", "views"];
14660
+ var _excluded$R = ["items", "orientation", "size", "variant", "defaultActiveMenuId", "defaultOpenMenuId", "views"];
14672
14661
  /**
14673
14662
  * Menubar component for creating horizontal or vertical menu bars with dropdown menus.
14674
14663
  */
@@ -14682,7 +14671,7 @@ var MenubarComponent = _ref => {
14682
14671
  defaultOpenMenuId = null,
14683
14672
  views
14684
14673
  } = _ref,
14685
- props = _objectWithoutPropertiesLoose(_ref, _excluded$P);
14674
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$R);
14686
14675
  var {
14687
14676
  activeMenuId,
14688
14677
  setActiveMenuId,
@@ -14838,7 +14827,7 @@ var DisabledButtonStyles = {
14838
14827
  }
14839
14828
  };
14840
14829
 
14841
- var _excluded$Q = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "visiblePageNumbers", "views"];
14830
+ var _excluded$S = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "visiblePageNumbers", "views"];
14842
14831
  var PaginationView = _ref => {
14843
14832
  var {
14844
14833
  currentPage,
@@ -14869,7 +14858,7 @@ var PaginationView = _ref => {
14869
14858
  visiblePageNumbers,
14870
14859
  views
14871
14860
  } = _ref,
14872
- props = _objectWithoutPropertiesLoose(_ref, _excluded$Q);
14861
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$S);
14873
14862
  var handlePageChange = page => {
14874
14863
  if (page < 1 || page > totalPages || page === currentPage) {
14875
14864
  return;
@@ -14988,7 +14977,7 @@ var PaginationView = _ref => {
14988
14977
  }, option.label))))));
14989
14978
  };
14990
14979
 
14991
- var _excluded$R = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "views"];
14980
+ var _excluded$T = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "views"];
14992
14981
  /**
14993
14982
  * Pagination component for navigating through pages of content.
14994
14983
  */
@@ -15009,7 +14998,7 @@ var PaginationComponent = _ref => {
15009
14998
  shape = 'rounded',
15010
14999
  views
15011
15000
  } = _ref,
15012
- props = _objectWithoutPropertiesLoose(_ref, _excluded$R);
15001
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$T);
15013
15002
  var {
15014
15003
  visiblePageNumbers
15015
15004
  } = usePaginationState(currentPage, totalPages, maxPageButtons);
@@ -15045,11 +15034,16 @@ var Pagination = PaginationComponent;
15045
15034
  /**
15046
15035
  * Variant configurations for the Separator component
15047
15036
  */
15048
- var SeparatorVariants = {
15049
- solid: 'solid',
15050
- dashed: 'dashed',
15051
- dotted: 'dotted'
15037
+ var getSeparator = themeMode => {
15038
+ return {
15039
+ solid: 'solid',
15040
+ dashed: 'dashed',
15041
+ dotted: 'dotted'
15042
+ };
15043
+ // Add dark mode conditional styling here
15052
15044
  };
15045
+ // For backward compatibility
15046
+ var SeparatorVariants = /*#__PURE__*/getSeparator();
15053
15047
  /**
15054
15048
  * Thickness configurations for the Separator component
15055
15049
  * Following the 4px grid system
@@ -15074,7 +15068,7 @@ var DefaultSeparatorStyles = {
15074
15068
  }
15075
15069
  };
15076
15070
 
15077
- var _excluded$S = ["orientation", "variant", "thickness", "color", "spacing", "label", "decorative", "views"];
15071
+ var _excluded$U = ["orientation", "variant", "thickness", "color", "spacing", "label", "decorative", "views", "themeMode"];
15078
15072
  var SeparatorView = _ref => {
15079
15073
  var {
15080
15074
  orientation = 'horizontal',
@@ -15086,9 +15080,11 @@ var SeparatorView = _ref => {
15086
15080
  decorative = false,
15087
15081
  views
15088
15082
  } = _ref,
15089
- props = _objectWithoutPropertiesLoose(_ref, _excluded$S);
15083
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$U);
15090
15084
  // Access theme if needed for future enhancements
15091
- var {} = appStudio.useTheme();
15085
+ var {
15086
+ themeMode
15087
+ } = appStudio.useTheme();
15092
15088
  // Use provided color or default from theme
15093
15089
  var separatorColor = color || 'color.gray.200';
15094
15090
  var borderStyle = SeparatorVariants[variant];
@@ -15244,37 +15240,42 @@ var SidebarSizes = {
15244
15240
  /**
15245
15241
  * Variant styles for the Sidebar component
15246
15242
  */
15247
- var SidebarVariants = {
15248
- default: {
15249
- backgroundColor: 'white',
15250
- color: 'color.gray.800',
15251
- transition: 'all 0.2s ease'
15252
- },
15253
- filled: {
15254
- backgroundColor: 'color.gray.100',
15255
- color: 'color.gray.800',
15256
- transition: 'all 0.2s ease'
15257
- },
15258
- outline: {
15259
- backgroundColor: 'white',
15260
- borderWidth: '1px',
15261
- borderStyle: 'solid',
15262
- borderColor: 'color.gray.200',
15263
- color: 'color.gray.800',
15264
- transition: 'all 0.2s ease'
15265
- },
15266
- subtle: {
15267
- backgroundColor: 'color.gray.50',
15268
- color: 'color.gray.800',
15269
- transition: 'all 0.2s ease'
15270
- },
15271
- elevated: {
15272
- backgroundColor: 'white',
15273
- boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.1)',
15274
- color: 'color.gray.800',
15275
- transition: 'all 0.2s ease'
15276
- }
15243
+ var getSidebar = themeMode => {
15244
+ return {
15245
+ default: {
15246
+ backgroundColor: 'white',
15247
+ color: 'color.gray.800',
15248
+ transition: 'all 0.2s ease'
15249
+ },
15250
+ filled: {
15251
+ backgroundColor: 'color.gray.100',
15252
+ color: 'color.gray.800',
15253
+ transition: 'all 0.2s ease'
15254
+ },
15255
+ outline: {
15256
+ backgroundColor: 'white',
15257
+ borderWidth: '1px',
15258
+ borderStyle: 'solid',
15259
+ borderColor: 'color.gray.200',
15260
+ color: 'color.gray.800',
15261
+ transition: 'all 0.2s ease'
15262
+ },
15263
+ subtle: {
15264
+ backgroundColor: 'color.gray.50',
15265
+ color: 'color.gray.800',
15266
+ transition: 'all 0.2s ease'
15267
+ },
15268
+ elevated: {
15269
+ backgroundColor: 'white',
15270
+ boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.1)',
15271
+ color: 'color.gray.800',
15272
+ transition: 'all 0.2s ease'
15273
+ }
15274
+ };
15275
+ // Add dark mode conditional styling here
15277
15276
  };
15277
+ // For backward compatibility
15278
+ var SidebarVariants = /*#__PURE__*/getSidebar();
15278
15279
  /**
15279
15280
  * Position styles for the Sidebar component
15280
15281
  */
@@ -15317,10 +15318,10 @@ var SidebarTransitions = {
15317
15318
  bounce: 'width 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55)'
15318
15319
  };
15319
15320
 
15320
- var _excluded$T = ["children", "showToggleButton", "views"],
15321
+ var _excluded$V = ["children", "showToggleButton", "views"],
15321
15322
  _excluded2$e = ["children", "views"],
15322
15323
  _excluded3$a = ["children", "views"],
15323
- _excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views"];
15324
+ _excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
15324
15325
  // Create context for the Sidebar
15325
15326
  var SidebarContext = /*#__PURE__*/React.createContext({
15326
15327
  isExpanded: true,
@@ -15350,7 +15351,7 @@ var SidebarHeader = _ref2 => {
15350
15351
  showToggleButton = true,
15351
15352
  views
15352
15353
  } = _ref2,
15353
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$T);
15354
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$V);
15354
15355
  var {
15355
15356
  isExpanded,
15356
15357
  toggleExpanded,
@@ -15505,7 +15506,7 @@ var SidebarView = _ref5 => {
15505
15506
  }))));
15506
15507
  };
15507
15508
 
15508
- var _excluded$U = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
15509
+ var _excluded$W = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
15509
15510
  /**
15510
15511
  * Sidebar component for creating collapsible, themeable and customizable sidebars.
15511
15512
  */
@@ -15527,7 +15528,7 @@ var SidebarComponent = _ref => {
15527
15528
  breakpointBehavior = 'overlay',
15528
15529
  views
15529
15530
  } = _ref,
15530
- props = _objectWithoutPropertiesLoose(_ref, _excluded$U);
15531
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$W);
15531
15532
  var {
15532
15533
  isExpanded,
15533
15534
  toggleExpanded,
@@ -15943,35 +15944,40 @@ var getHandleSizeStyles = (size, orientation) => {
15943
15944
  };
15944
15945
  return sizes[size];
15945
15946
  };
15946
- var HandleVariants = {
15947
- default: {
15948
- backgroundColor: 'transparent',
15949
- _hover: {
15950
- backgroundColor: 'color.gray.200'
15951
- },
15952
- _active: {
15953
- backgroundColor: 'color.gray.300'
15954
- }
15955
- },
15956
- subtle: {
15957
- backgroundColor: 'transparent',
15958
- _hover: {
15959
- backgroundColor: 'color.gray.100'
15947
+ var getHandle = themeMode => {
15948
+ return {
15949
+ default: {
15950
+ backgroundColor: 'transparent',
15951
+ _hover: {
15952
+ backgroundColor: 'color.gray.200'
15953
+ },
15954
+ _active: {
15955
+ backgroundColor: 'color.gray.300'
15956
+ }
15960
15957
  },
15961
- _active: {
15962
- backgroundColor: 'color.gray.200'
15963
- }
15964
- },
15965
- prominent: {
15966
- backgroundColor: 'color.gray.100',
15967
- _hover: {
15968
- backgroundColor: 'color.gray.200'
15958
+ subtle: {
15959
+ backgroundColor: 'transparent',
15960
+ _hover: {
15961
+ backgroundColor: 'color.gray.100'
15962
+ },
15963
+ _active: {
15964
+ backgroundColor: 'color.gray.200'
15965
+ }
15969
15966
  },
15970
- _active: {
15971
- backgroundColor: 'color.gray.300'
15967
+ prominent: {
15968
+ backgroundColor: 'color.gray.100',
15969
+ _hover: {
15970
+ backgroundColor: 'color.gray.200'
15971
+ },
15972
+ _active: {
15973
+ backgroundColor: 'color.gray.300'
15974
+ }
15972
15975
  }
15973
- }
15976
+ };
15977
+ // Add dark mode conditional styling here
15974
15978
  };
15979
+ // For backward compatibility
15980
+ var HandleVariants = /*#__PURE__*/getHandle();
15975
15981
  var HandleIconStyles = {
15976
15982
  horizontal: {
15977
15983
  width: '2px',
@@ -15987,7 +15993,7 @@ var HandleIconStyles = {
15987
15993
  }
15988
15994
  };
15989
15995
 
15990
- var _excluded$V = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
15996
+ var _excluded$X = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
15991
15997
  _excluded2$f = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
15992
15998
  _excluded3$b = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "views"];
15993
15999
  // Create context for the Resizable component
@@ -16032,7 +16038,7 @@ var ResizablePanel = _ref2 => {
16032
16038
  onCollapseChange,
16033
16039
  views
16034
16040
  } = _ref2,
16035
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$V);
16041
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$X);
16036
16042
  var {
16037
16043
  orientation,
16038
16044
  registerPanel,
@@ -16247,7 +16253,7 @@ var ResizableView = _ref4 => {
16247
16253
  }, ResizableOrientations[orientation], views == null ? void 0 : views.container, props), children);
16248
16254
  };
16249
16255
 
16250
- var _excluded$W = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
16256
+ var _excluded$Y = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
16251
16257
  /**
16252
16258
  * Resizable component for creating resizable panel groups and layouts.
16253
16259
  */
@@ -16267,7 +16273,7 @@ var ResizableComponent = _ref => {
16267
16273
  keyboardResizeBy = 10,
16268
16274
  views
16269
16275
  } = _ref,
16270
- props = _objectWithoutPropertiesLoose(_ref, _excluded$W);
16276
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$Y);
16271
16277
  var {
16272
16278
  isResizing,
16273
16279
  setIsResizing,
@@ -16332,7 +16338,7 @@ Resizable.Handle = ResizableHandle;
16332
16338
  * Theme configurations for the Toast component
16333
16339
  * Following the design system color palette
16334
16340
  */
16335
- var Themes$2 = {
16341
+ var Themes$1 = {
16336
16342
  info: {
16337
16343
  container: {
16338
16344
  backgroundColor: 'color.blue.50',
@@ -16525,10 +16531,11 @@ var ToastView = _ref => {
16525
16531
  render,
16526
16532
  icon: customIcon,
16527
16533
  id,
16528
- isVisible = true
16534
+ isVisible = true,
16535
+ themeMode: elementMode
16529
16536
  } = _ref;
16530
16537
  // We don't need the auto-close timer here anymore as it's handled in the store
16531
- var Theme = theme != null ? theme : Themes$2;
16538
+ var Theme = theme != null ? theme : Themes$1;
16532
16539
  // Get the appropriate icon based on the variant
16533
16540
  var getIcon = () => {
16534
16541
  // If a custom icon is provided, use it
@@ -16908,29 +16915,34 @@ var CommandSizes = {
16908
16915
  maxHeight: '500px'
16909
16916
  }
16910
16917
  };
16911
- var CommandVariants = {
16912
- default: {
16913
- backgroundColor: 'white',
16914
- borderWidth: '1px',
16915
- borderStyle: 'solid',
16916
- borderColor: 'color.gray.200',
16917
- boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16918
- },
16919
- filled: {
16920
- backgroundColor: 'color.gray.50',
16921
- borderWidth: '1px',
16922
- borderStyle: 'solid',
16923
- borderColor: 'color.gray.200',
16924
- boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16925
- },
16926
- outline: {
16927
- backgroundColor: 'white',
16928
- borderWidth: '2px',
16929
- borderStyle: 'solid',
16930
- borderColor: 'color.gray.300',
16931
- boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16932
- }
16918
+ var getCommand = themeMode => {
16919
+ return {
16920
+ default: {
16921
+ backgroundColor: 'white',
16922
+ borderWidth: '1px',
16923
+ borderStyle: 'solid',
16924
+ borderColor: 'color.gray.200',
16925
+ boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16926
+ },
16927
+ filled: {
16928
+ backgroundColor: 'color.gray.50',
16929
+ borderWidth: '1px',
16930
+ borderStyle: 'solid',
16931
+ borderColor: 'color.gray.200',
16932
+ boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16933
+ },
16934
+ outline: {
16935
+ backgroundColor: 'white',
16936
+ borderWidth: '2px',
16937
+ borderStyle: 'solid',
16938
+ borderColor: 'color.gray.300',
16939
+ boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16940
+ }
16941
+ };
16942
+ // Add dark mode conditional styling here
16933
16943
  };
16944
+ // For backward compatibility
16945
+ var CommandVariants = /*#__PURE__*/getCommand();
16934
16946
  var CommandInputStyles = {
16935
16947
  display: 'flex',
16936
16948
  alignItems: 'center',
@@ -17026,7 +17038,7 @@ var CommandFooterStyles = {
17026
17038
  color: 'color.gray.500'
17027
17039
  };
17028
17040
 
17029
- var _excluded$X = ["value", "onValueChange", "placeholder", "views"],
17041
+ var _excluded$Z = ["value", "onValueChange", "placeholder", "views"],
17030
17042
  _excluded2$g = ["children", "views"],
17031
17043
  _excluded3$c = ["heading", "children", "views"],
17032
17044
  _excluded4$a = ["item", "selected", "onSelect", "views"],
@@ -17058,7 +17070,7 @@ var CommandInput = _ref2 => {
17058
17070
  placeholder = 'Type a command or search...',
17059
17071
  views
17060
17072
  } = _ref2,
17061
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$X);
17073
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$Z);
17062
17074
  var inputRef = React.useRef(null);
17063
17075
  // Focus input when component mounts
17064
17076
  React__default.useEffect(() => {
@@ -17246,7 +17258,7 @@ var CommandView = _ref7 => {
17246
17258
  })))), footer && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandFooterStyles, views == null ? void 0 : views.footer), footer)))));
17247
17259
  };
17248
17260
 
17249
- var _excluded$Y = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
17261
+ var _excluded$_ = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
17250
17262
  /**
17251
17263
  * Command component for displaying a command palette with search functionality.
17252
17264
  */
@@ -17264,7 +17276,7 @@ var CommandComponent = _ref => {
17264
17276
  footer,
17265
17277
  views
17266
17278
  } = _ref,
17267
- props = _objectWithoutPropertiesLoose(_ref, _excluded$Y);
17279
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$_);
17268
17280
  var {
17269
17281
  search,
17270
17282
  setSearch,
@@ -17421,23 +17433,28 @@ var TooltipSizes = {
17421
17433
  maxWidth: '300px'
17422
17434
  }
17423
17435
  };
17424
- var TooltipVariants = {
17425
- default: {
17426
- backgroundColor: 'color.gray.800',
17427
- color: 'color.white'
17428
- },
17429
- light: {
17430
- backgroundColor: 'color.white',
17431
- color: 'color.gray.800',
17432
- borderWidth: '1px',
17433
- borderStyle: 'solid',
17434
- borderColor: 'color.gray.200'
17435
- },
17436
- dark: {
17437
- backgroundColor: 'color.black',
17438
- color: 'color.white'
17439
- }
17436
+ var getTooltip = themeMode => {
17437
+ return {
17438
+ default: {
17439
+ backgroundColor: 'color.gray.800',
17440
+ color: 'color.white'
17441
+ },
17442
+ light: {
17443
+ backgroundColor: 'color.white',
17444
+ color: 'color.gray.800',
17445
+ borderWidth: '1px',
17446
+ borderStyle: 'solid',
17447
+ borderColor: 'color.gray.200'
17448
+ },
17449
+ dark: {
17450
+ backgroundColor: 'color.black',
17451
+ color: 'color.white'
17452
+ }
17453
+ };
17454
+ // Add dark mode conditional styling here
17440
17455
  };
17456
+ // For backward compatibility
17457
+ var TooltipVariants = /*#__PURE__*/getTooltip();
17441
17458
  var getTooltipPositionStyles = (position, align) => {
17442
17459
  var baseStyles = {
17443
17460
  position: 'absolute',
@@ -17546,9 +17563,9 @@ var getArrowStyles = position => {
17546
17563
  }
17547
17564
  };
17548
17565
 
17549
- var _excluded$Z = ["children", "views", "asChild"],
17566
+ var _excluded$$ = ["children", "views", "asChild"],
17550
17567
  _excluded2$h = ["children", "views"],
17551
- _excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views"];
17568
+ _excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
17552
17569
  // Create context for the Tooltip
17553
17570
  var TooltipContext = /*#__PURE__*/React.createContext({
17554
17571
  isOpen: false,
@@ -17582,7 +17599,7 @@ var TooltipTrigger = _ref2 => {
17582
17599
  views,
17583
17600
  asChild = false
17584
17601
  } = _ref2,
17585
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$Z);
17602
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$$);
17586
17603
  var {
17587
17604
  openTooltip,
17588
17605
  closeTooltip,
@@ -17675,7 +17692,7 @@ var TooltipView = _ref4 => {
17675
17692
  }, TooltipSizes[size], TooltipVariants[variant], positionStyles, views == null ? void 0 : views.content), typeof content === 'string' ? (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({}, views == null ? void 0 : views.text), content)) : content, showArrow && /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, arrowStyles, views == null ? void 0 : views.arrow)))));
17676
17693
  };
17677
17694
 
17678
- var _excluded$_ = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
17695
+ var _excluded$10 = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
17679
17696
  /**
17680
17697
  * Tooltip component for displaying additional information when hovering over an element.
17681
17698
  * Supports configurable positions, delays, and styling.
@@ -17695,7 +17712,7 @@ var TooltipComponent = _ref => {
17695
17712
  isDisabled = false,
17696
17713
  views
17697
17714
  } = _ref,
17698
- props = _objectWithoutPropertiesLoose(_ref, _excluded$_);
17715
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$10);
17699
17716
  var tooltipState = useTooltipState({
17700
17717
  defaultOpen,
17701
17718
  openDelay,