@app-studio/web 0.8.77 → 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 (41) 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/Form/Label/Label/Label.type.d.ts +1 -1
  18. package/dist/components/Form/TextArea/TextArea/TextArea.type.d.ts +4 -2
  19. package/dist/components/Input/Input.type.d.ts +2 -1
  20. package/dist/components/Menubar/Menubar/Menubar.view.d.ts +2 -1
  21. package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.view.d.ts +2 -1
  22. package/dist/components/OTPInput/OTPInput/OTPInput.type.d.ts +1 -2
  23. package/dist/components/Resizable/Resizable/Resizable.style.d.ts +1 -0
  24. package/dist/components/Separator/Separator/Separator.style.d.ts +1 -0
  25. package/dist/components/Sidebar/Sidebar/Sidebar.style.d.ts +1 -0
  26. package/dist/components/Slider/Slider/Slider.style.d.ts +1 -0
  27. package/dist/components/Table/Table/Table.props.d.ts +2 -2
  28. package/dist/components/Toast/Toast/Toast.props.d.ts +2 -1
  29. package/dist/components/Tooltip/Tooltip/Tooltip.style.d.ts +1 -0
  30. package/dist/components/Tooltip/Tooltip/Tooltip.view.d.ts +2 -1
  31. package/dist/web.cjs.development.js +559 -663
  32. package/dist/web.cjs.development.js.map +1 -1
  33. package/dist/web.cjs.production.min.js +1 -1
  34. package/dist/web.cjs.production.min.js.map +1 -1
  35. package/dist/web.esm.js +560 -664
  36. package/dist/web.esm.js.map +1 -1
  37. package/dist/web.umd.development.js +559 -663
  38. package/dist/web.umd.development.js.map +1 -1
  39. package/dist/web.umd.production.min.js +1 -1
  40. package/dist/web.umd.production.min.js.map +1 -1
  41. 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: [],
@@ -470,12 +470,7 @@ var FontSizes = {
470
470
  sm: '14px',
471
471
  md: '16px',
472
472
  lg: '18px',
473
- xl: '20px',
474
- '2xl': '24px',
475
- '3xl': '30px',
476
- '4xl': '36px',
477
- '5xl': '48px',
478
- '6xl': '60px'
473
+ xl: '20px'
479
474
  };
480
475
  /**
481
476
  * Line heights following typography guidelines
@@ -485,12 +480,7 @@ var LineHeights = {
485
480
  sm: '20px',
486
481
  md: '24px',
487
482
  lg: '28px',
488
- xl: '28px',
489
- '2xl': '32px',
490
- '3xl': '36px',
491
- '4xl': '40px',
492
- '5xl': '60px',
493
- '6xl': '72px'
483
+ xl: '28px'
494
484
  };
495
485
  /**
496
486
  * Font weights following typography guidelines
@@ -731,9 +721,12 @@ var IconWrapper = _ref => {
731
721
  };
732
722
  // Utility function to handle fill and stroke based on 'filled' prop
733
723
  var getSvgProps = (filled, color, strokeWidth) => {
724
+ var {
725
+ getColor
726
+ } = appStudio.useTheme();
734
727
  return {
735
- fill: filled ? color : 'none',
736
- stroke: filled ? 'none' : color,
728
+ fill: filled ? getColor(color) : 'none',
729
+ stroke: filled ? 'none' : getColor(color),
737
730
  strokeWidth,
738
731
  strokeLinecap: 'round',
739
732
  strokeLinejoin: 'round'
@@ -1199,7 +1192,7 @@ var InfoIcon = _ref19 => {
1199
1192
  var {
1200
1193
  widthHeight = 24,
1201
1194
  color = 'currentColor',
1202
- filled = false,
1195
+ filled = true,
1203
1196
  strokeWidth = 1
1204
1197
  } = _ref19,
1205
1198
  props = _objectWithoutPropertiesLoose(_ref19, _excluded19);
@@ -2824,93 +2817,104 @@ var Icon = {
2824
2817
  * - Transitions: Subtle animations
2825
2818
  */
2826
2819
  /**
2827
- * Theme styles for different alert variants
2820
+ * Get theme styles for different alert variants based on theme mode
2828
2821
  */
2829
- var Themes = {
2830
- default: {
2831
- container: {
2832
- backgroundColor: 'color.gray.50',
2833
- borderColor: 'color.gray.200',
2834
- boxShadow: '0 1px 2px rgba(0, 0, 0, 0.05)'
2835
- },
2836
- content: {
2837
- color: 'color.gray.700'
2838
- },
2839
- icon: {
2840
- color: 'color.gray.500'
2841
- }
2842
- },
2843
- info: {
2844
- container: {
2845
- backgroundColor: 'color.blue.50',
2846
- borderColor: 'color.blue.200',
2847
- boxShadow: '0 1px 2px rgba(59, 130, 246, 0.05)'
2848
- },
2849
- content: {
2850
- color: 'color.blue.700'
2851
- },
2852
- icon: {
2853
- color: 'color.blue.500'
2854
- }
2855
- },
2856
- success: {
2857
- container: {
2858
- backgroundColor: 'color.green.50',
2859
- borderColor: 'color.green.200',
2860
- boxShadow: '0 1px 2px rgba(34, 197, 94, 0.05)'
2861
- },
2862
- content: {
2863
- color: 'color.green.700'
2864
- },
2865
- icon: {
2866
- color: 'color.green.500'
2867
- }
2868
- },
2869
- error: {
2870
- container: {
2871
- backgroundColor: 'color.red.50',
2872
- borderColor: 'color.red.200',
2873
- 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
+ }
2874
2837
  },
2875
- content: {
2876
- 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
+ }
2877
2850
  },
2878
- icon: {
2879
- color: 'color.red.500'
2880
- }
2881
- },
2882
- warning: {
2883
- container: {
2884
- backgroundColor: 'color.orange.50',
2885
- borderColor: 'color.orange.200',
2886
- 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
+ }
2887
2863
  },
2888
- content: {
2889
- 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
+ }
2890
2876
  },
2891
- icon: {
2892
- 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
+ }
2893
2889
  }
2894
- }
2890
+ };
2895
2891
  };
2896
2892
 
2893
+ var _excluded$4 = ["icon", "title", "views", "description", "variant", "themeMode"];
2897
2894
  /**
2898
2895
  * Alert component that displays important messages to users
2899
2896
  */
2900
2897
  var AlertView = _ref => {
2901
2898
  var {
2902
- icon,
2903
- title,
2904
- views,
2905
- description,
2906
- variant = 'default'
2907
- } = _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);
2908
2912
  // Select the appropriate icon based on the variant
2909
2913
  var getIcon = () => {
2910
2914
  var _views$icon$color, _views$icon;
2911
2915
  if (icon) return icon;
2912
- // Use the theme color directly from Themes
2913
- 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;
2914
2918
  var iconProps = {
2915
2919
  size: 20,
2916
2920
  color: iconColor
@@ -2941,12 +2945,12 @@ var AlertView = _ref => {
2941
2945
  ,
2942
2946
  borderWidth: "1px",
2943
2947
  borderStyle: "solid",
2944
- borderColor: Themes[variant].container.borderColor,
2945
- backgroundColor: Themes[variant].container.backgroundColor,
2946
- boxShadow: Themes[variant].container.boxShadow,
2948
+ borderColor: themes[variant].container.borderColor,
2949
+ backgroundColor: themes[variant].container.backgroundColor,
2950
+ boxShadow: themes[variant].container.boxShadow,
2947
2951
  // Animation
2948
2952
  transition: "all 0.2s ease"
2949
- }, 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({
2950
2954
  alignSelf: "flex-start",
2951
2955
  marginTop: "2px"
2952
2956
  }, views == null ? void 0 : views.icon), getIcon()), /*#__PURE__*/React__default.createElement(appStudio.Vertical, {
@@ -2956,37 +2960,22 @@ var AlertView = _ref => {
2956
2960
  fontWeight: "600" // Semi-bold
2957
2961
  ,
2958
2962
  lineHeight: "24px",
2959
- color: Themes[variant].content.color
2963
+ color: themes[variant].content.color
2960
2964
  }, views == null ? void 0 : views.title), title), /*#__PURE__*/React__default.createElement(Text, Object.assign({
2961
2965
  fontSize: "14px",
2962
2966
  fontWeight: "400" // Regular
2963
2967
  ,
2964
2968
  lineHeight: "20px",
2965
- color: Themes[variant].content.color
2969
+ color: themes[variant].content.color
2966
2970
  }, views == null ? void 0 : views.description), description)));
2967
2971
  };
2968
2972
 
2969
- // Definition of the AlertComponent functional component with destructured props.
2970
- var AlertComponent = _ref => {
2971
- var {
2972
- icon,
2973
- title,
2974
- views,
2975
- description,
2976
- variant
2977
- } = _ref;
2978
- return /*#__PURE__*/React__default.createElement(AlertView, {
2979
- icon: icon,
2980
- title: title,
2981
- views: views,
2982
- description: description,
2983
- variant: variant
2984
- });
2985
- };
2973
+ // Definition of the AlertComponent functional component with props.
2974
+ var AlertComponent = props => /*#__PURE__*/React__default.createElement(AlertView, Object.assign({}, props));
2986
2975
  // Exporting the AlertComponent as 'Alert' for use in other parts of the application.
2987
2976
  var Alert = AlertComponent;
2988
2977
 
2989
- var _excluded$4 = ["ratio", "children", "views"];
2978
+ var _excluded$5 = ["ratio", "children", "views"];
2990
2979
  // Declaration of a functional component named AspectRatioView.
2991
2980
  var AspectRatioView = _ref => {
2992
2981
  var {
@@ -2997,7 +2986,7 @@ var AspectRatioView = _ref => {
2997
2986
  views
2998
2987
  // Spread the rest of the props to inherit additional properties.
2999
2988
  } = _ref,
3000
- props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
2989
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
3001
2990
  return /*#__PURE__*/React__default.createElement(appStudio.Center, Object.assign({
3002
2991
  width: '100%',
3003
2992
  position: "relative",
@@ -3013,14 +3002,14 @@ var AspectRatioView = _ref => {
3013
3002
  }, views == null ? void 0 : views.view), children));
3014
3003
  };
3015
3004
 
3016
- var _excluded$5 = ["ratio", "children"];
3005
+ var _excluded$6 = ["ratio", "children"];
3017
3006
  // Declaration of the AspectRatioComponent functional component with destructured props.
3018
3007
  var AspectRatioComponent = _ref => {
3019
3008
  var {
3020
3009
  ratio,
3021
3010
  children
3022
3011
  } = _ref,
3023
- props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
3012
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
3024
3013
  // Beginning of the return statement in the functional component.
3025
3014
  return /*#__PURE__*/React__default.createElement(AspectRatioView, Object.assign({
3026
3015
  ratio: ratio
@@ -3070,17 +3059,11 @@ var DefaultAvatarStyles = {
3070
3059
  borderColor: 'transparent',
3071
3060
  backgroundColor: 'color.gray.100',
3072
3061
  boxShadow: '0px 2px 4px rgba(0, 0, 0, 0.1)',
3073
- transition: 'all 0.2s ease',
3074
- '@media (prefers-color-scheme: dark)': {
3075
- backgroundColor: 'color.gray.700'
3076
- }
3062
+ transition: 'all 0.2s ease'
3077
3063
  },
3078
3064
  fallback: {
3079
3065
  fontWeight: '500',
3080
- color: 'color.gray.600',
3081
- '@media (prefers-color-scheme: dark)': {
3082
- color: 'color.gray.300'
3083
- }
3066
+ color: 'color.gray.600'
3084
3067
  },
3085
3068
  image: {
3086
3069
  objectFit: 'cover',
@@ -3251,58 +3234,69 @@ var PositionStyles = {
3251
3234
  }
3252
3235
  };
3253
3236
  /**
3254
- * Badge variants with consistent styling
3237
+ * Get badge variants with consistent styling based on theme mode
3255
3238
  */
3256
- var BadgeVariants = {
3257
- filled: {
3258
- backgroundColor: 'theme.primary',
3259
- color: 'color.white',
3260
- borderWidth: '1px',
3261
- borderStyle: 'solid',
3262
- borderColor: 'transparent',
3263
- transition: 'all 0.2s ease'
3264
- },
3265
- outline: {
3266
- backgroundColor: 'transparent',
3267
- borderWidth: '1px',
3268
- borderStyle: 'solid',
3269
- borderColor: 'theme.primary',
3270
- color: 'theme.primary',
3271
- transition: 'all 0.2s ease'
3272
- },
3273
- link: {
3274
- backgroundColor: 'transparent',
3275
- borderWidth: '1px',
3276
- borderStyle: 'solid',
3277
- borderColor: 'transparent',
3278
- color: 'theme.primary',
3279
- textDecoration: 'underline',
3280
- textUnderlineOffset: '2px',
3281
- transition: 'all 0.2s ease'
3282
- },
3283
- ghost: {
3284
- backgroundColor: 'transparent',
3285
- color: 'color.gray.500',
3286
- borderWidth: '1px',
3287
- borderStyle: 'solid',
3288
- borderColor: 'transparent',
3289
- transition: 'all 0.2s ease'
3290
- }
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
+ };
3291
3277
  };
3292
3278
 
3279
+ var _excluded$7 = ["content", "position", "shape", "variant", "size", "views", "themeMode"];
3293
3280
  // No need to import ViewProps as it's not used directly
3294
3281
  /**
3295
3282
  * Badge View Component
3296
3283
  */
3297
3284
  var BadgeView = _ref => {
3298
3285
  var {
3299
- content,
3300
- position,
3301
- shape = 'pillShaped',
3302
- variant = 'filled',
3303
- size = 'md',
3304
- views
3305
- } = _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];
3306
3300
  // Combine styles for the badge
3307
3301
  var combinedStyles = Object.assign({
3308
3302
  // Base styles
@@ -3310,13 +3304,13 @@ var BadgeView = _ref => {
3310
3304
  display: 'flex',
3311
3305
  alignItems: 'center',
3312
3306
  justifyContent: 'center',
3313
- backgrounColor: 'color.black',
3307
+ backgroundColor: 'color.black',
3314
3308
  // Apply shape, size, and variant styles
3315
3309
  borderRadius: BadgeShapes[shape]
3316
- }, 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);
3317
3311
  return /*#__PURE__*/React__default.createElement(appStudio.Center, Object.assign({
3318
3312
  role: "badge"
3319
- }, combinedStyles), /*#__PURE__*/React__default.createElement(Text, Object.assign({
3313
+ }, combinedStyles, props), /*#__PURE__*/React__default.createElement(Text, Object.assign({
3320
3314
  role: "badgeText",
3321
3315
  fontWeight: "500" // Medium weight for better readability
3322
3316
  ,
@@ -3326,29 +3320,8 @@ var BadgeView = _ref => {
3326
3320
  }), content || ''));
3327
3321
  };
3328
3322
 
3329
- // Importing type definitions for BadgeProps that will be used to type-check the Badge component's props.
3330
- var Badge = _ref => {
3331
- var {
3332
- // Importing the BadgeView component which is the presentation component for Badge.
3333
- content,
3334
- // Exporting the Badge as a functional component from this module.
3335
- shape,
3336
- // Destructuring the props in the component function parameter list, to directly access individual properties.
3337
- position,
3338
- // Passing all the destructured props to the BadgeView component to maintain the same API surface.
3339
- variant,
3340
- size,
3341
- views
3342
- } = _ref;
3343
- return /*#__PURE__*/React__default.createElement(BadgeView, {
3344
- content: content,
3345
- shape: shape,
3346
- position: position,
3347
- variant: variant,
3348
- size: size,
3349
- views: views
3350
- });
3351
- };
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));
3352
3325
 
3353
3326
  var useButtonState = () => {
3354
3327
  var [isHovered, setIsHovered] = React__default.useState(false);
@@ -3377,15 +3350,10 @@ var IconSizes = {
3377
3350
  sm: 14,
3378
3351
  md: 16,
3379
3352
  lg: 18,
3380
- xl: 20,
3381
- '2xl': 24,
3382
- '3xl': 30,
3383
- '4xl': 36,
3384
- '5xl': 48,
3385
- '6xl': 64
3353
+ xl: 20
3386
3354
  };
3387
3355
 
3388
- var _excluded$6 = ["children", "to", "iconSize", "underline", "isHovered", "isExternal", "views", "setIsHovered"];
3356
+ var _excluded$8 = ["children", "to", "iconSize", "underline", "isHovered", "isExternal", "views", "setIsHovered"];
3389
3357
  // Component definition for 'LinkView', a functional component with props defined by 'LinkViewProps'.
3390
3358
  var LinkView = _ref => {
3391
3359
  var {
@@ -3408,7 +3376,7 @@ var LinkView = _ref => {
3408
3376
  // Setter function for the hover state, noop function provided by default.
3409
3377
  setIsHovered = () => {}
3410
3378
  } = _ref,
3411
- props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
3379
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
3412
3380
  // Function to handle mouse enter/leave events to toggle hover state.
3413
3381
  var handleHover = () => {
3414
3382
  if (underline === 'hover') setIsHovered(true);
@@ -3600,6 +3568,9 @@ var getButtonVariants = (color, isLight) => ({
3600
3568
  ghost: {
3601
3569
  backgroundColor: 'transparent',
3602
3570
  color: color,
3571
+ borderWidth: 0,
3572
+ borderStyle: 'none',
3573
+ borderColor: 'transparent',
3603
3574
  on: {
3604
3575
  hover: {
3605
3576
  backgroundColor: color + "10",
@@ -3634,12 +3605,7 @@ var DefaultSizes = {
3634
3605
  sm: 18,
3635
3606
  md: 22,
3636
3607
  lg: 26,
3637
- xl: 30,
3638
- '2xl': 40,
3639
- '3xl': 50,
3640
- '4xl': 60,
3641
- '5xl': 70,
3642
- '6xl': 80
3608
+ xl: 30
3643
3609
  };
3644
3610
  // Specifies a mapping of spinning speed labels to numerical millisecond values, determining the speed of the Loader component's animation cycles.
3645
3611
  var DefaultSpeeds = {
@@ -3648,7 +3614,7 @@ var DefaultSpeeds = {
3648
3614
  slow: 300
3649
3615
  };
3650
3616
 
3651
- var _excluded$7 = ["size", "speed", "color", "themeMode"],
3617
+ var _excluded$9 = ["size", "speed", "color", "themeMode"],
3652
3618
  _excluded2$2 = ["size", "speed", "color", "themeMode"],
3653
3619
  _excluded3$2 = ["size", "speed", "color", "themeMode"],
3654
3620
  _excluded4$2 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition", "views"];
@@ -3659,7 +3625,7 @@ var DefaultSpinner = _ref => {
3659
3625
  color = 'theme.loading',
3660
3626
  themeMode: elementMode
3661
3627
  } = _ref,
3662
- props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
3628
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
3663
3629
  var {
3664
3630
  getColor,
3665
3631
  themeMode
@@ -3824,7 +3790,7 @@ React__default.createElement(LoaderView, Object.assign({}, props)));
3824
3790
  // Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
3825
3791
  var Loader = LoaderComponent;
3826
3792
 
3827
- 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"];
3828
3794
  var contrast = /*#__PURE__*/require('contrast');
3829
3795
  var ButtonView = _ref => {
3830
3796
  var _props$onClick;
@@ -3853,7 +3819,7 @@ var ButtonView = _ref => {
3853
3819
  linkProps,
3854
3820
  views
3855
3821
  } = _ref,
3856
- props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
3822
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
3857
3823
  var {
3858
3824
  getColor,
3859
3825
  themeMode
@@ -3904,6 +3870,7 @@ var ButtonView = _ref => {
3904
3870
  alignItems: "center",
3905
3871
  justifyContent: "center",
3906
3872
  "aria-label": ariaLabel,
3873
+ backgroundColor: "transparent",
3907
3874
  borderRadius: ButtonShapes[shape],
3908
3875
  onClick: (_props$onClick = props.onClick) != null ? _props$onClick : onClick,
3909
3876
  onMouseEnter: () => handleHover(true),
@@ -3971,97 +3938,95 @@ var CardShapes = {
3971
3938
  pillShaped: '16px'
3972
3939
  };
3973
3940
  /**
3974
- * Card variants with consistent styling
3941
+ * Get card variants with consistent styling based on theme mode
3975
3942
  */
3976
- var CardVariants = {
3977
- default: {
3978
- backgroundColor: 'white',
3979
- border: 'none',
3980
- transition: 'all 0.2s ease'
3981
- },
3982
- outlined: {
3983
- backgroundColor: 'white',
3984
- borderWidth: '1px',
3985
- borderStyle: 'solid',
3986
- borderColor: 'color.gray.200',
3987
- transition: 'all 0.2s ease',
3988
- _hover: {
3989
- borderColor: 'color.gray.300'
3990
- }
3991
- },
3992
- elevated: {
3993
- backgroundColor: 'white',
3994
- boxShadow: '0px 2px 8px rgba(0, 0, 0, 0.08)',
3995
- border: 'none',
3996
- transition: 'all 0.2s ease',
3997
- _hover: {
3998
- boxShadow: '0px 4px 12px rgba(0, 0, 0, 0.12)',
3999
- 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
+ }
4000
3970
  }
4001
- }
3971
+ };
4002
3972
  };
4003
3973
  /**
4004
3974
  * Function to get default styles for Card components
4005
- * @param theme - Theme object (not used directly but kept for compatibility)
3975
+ * @param theme - Theme object from useTheme hook
4006
3976
  */
4007
- var getDefaultCardStyles = _theme => ({
4008
- container: {
4009
- backgroundColor: 'white',
4010
- borderRadius: '8px',
4011
- overflow: 'hidden',
4012
- transition: 'all 0.2s ease',
4013
- '@media (prefers-color-scheme: dark)': {
4014
- backgroundColor: 'color.gray.800',
4015
- color: 'color.gray.100'
4016
- }
4017
- },
4018
- header: {
4019
- padding: '16px',
4020
- borderBottomWidth: '1px',
4021
- borderBottomStyle: 'solid',
4022
- borderBottomColor: 'color.gray.200',
4023
- '@media (prefers-color-scheme: dark)': {
4024
- borderBottomColor: 'color.gray.700'
4025
- }
4026
- },
4027
- content: {
4028
- padding: '16px',
4029
- '@media (prefers-color-scheme: dark)': {
4030
- color: 'color.gray.100'
4031
- }
4032
- },
4033
- footer: {
4034
- padding: '16px',
4035
- borderTopWidth: '1px',
4036
- borderTopStyle: 'solid',
4037
- borderTopColor: 'color.gray.200',
4038
- '@media (prefers-color-scheme: dark)': {
4039
- 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'
4040
4005
  }
4041
- }
4042
- });
4006
+ };
4007
+ };
4043
4008
 
4044
4009
  var CardContext = /*#__PURE__*/React.createContext({});
4045
4010
  var useCardContext = () => {
4046
4011
  return React.useContext(CardContext);
4047
4012
  };
4048
4013
 
4049
- var _excluded$9 = ["children", "views", "style"],
4050
- _excluded2$3 = ["children", "views", "style"],
4051
- _excluded3$3 = ["children", "views", "style"],
4052
- _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"];
4053
4018
  var CardHeader = _ref => {
4054
4019
  var _contextStyles$header;
4055
4020
  var {
4056
4021
  children,
4057
4022
  style
4058
4023
  } = _ref,
4059
- props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
4024
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
4060
4025
  var theme = appStudio.useTheme();
4061
4026
  var {
4062
4027
  styles: contextStyles
4063
4028
  } = useCardContext();
4064
- var defaultStyles = getDefaultCardStyles().header;
4029
+ var defaultStyles = getDefaultCardStyles(theme).header;
4065
4030
  // Merge styles: Default < Context Override < Direct Props/Style
4066
4031
  var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.header, props, {
4067
4032
  style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$header = contextStyles.header) == null ? void 0 : _contextStyles$header.style, style)
@@ -4079,7 +4044,7 @@ var CardContent = _ref2 => {
4079
4044
  var {
4080
4045
  styles: contextStyles
4081
4046
  } = useCardContext();
4082
- var defaultStyles = getDefaultCardStyles().content;
4047
+ var defaultStyles = getDefaultCardStyles(theme).content;
4083
4048
  // Merge styles: Default < Context Override < Direct Props/Style
4084
4049
  var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.content, props, {
4085
4050
  style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$conten = contextStyles.content) == null ? void 0 : _contextStyles$conten.style, style)
@@ -4097,7 +4062,7 @@ var CardFooter = _ref3 => {
4097
4062
  var {
4098
4063
  styles: contextStyles
4099
4064
  } = useCardContext();
4100
- var defaultStyles = getDefaultCardStyles().footer;
4065
+ var defaultStyles = getDefaultCardStyles(theme).footer;
4101
4066
  // Merge styles: Default < Context Override < Direct Props/Style
4102
4067
  var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.footer, props, {
4103
4068
  style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$footer = contextStyles.footer) == null ? void 0 : _contextStyles$footer.style, style)
@@ -4115,11 +4080,12 @@ var CardView = _ref4 => {
4115
4080
  footer,
4116
4081
  isFullWidth = false,
4117
4082
  views,
4118
- style
4083
+ style,
4084
+ themeMode: elementMode
4119
4085
  } = _ref4,
4120
4086
  props = _objectWithoutPropertiesLoose(_ref4, _excluded4$3);
4121
4087
  var theme = appStudio.useTheme();
4122
- var defaultStyles = getDefaultCardStyles();
4088
+ var defaultStyles = getDefaultCardStyles(theme);
4123
4089
  // Prepare context value, merging default styles with user's `views` overrides
4124
4090
  var contextValue = React.useMemo(() => ({
4125
4091
  styles: {
@@ -4132,12 +4098,18 @@ var CardView = _ref4 => {
4132
4098
  // Determine if we have explicit Card.Header, Card.Content, Card.Footer components
4133
4099
  // or if we need to wrap children in a default layout
4134
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];
4135
4107
  // Merge styles for the root element
4136
4108
  var mergedRootProps = Object.assign({
4137
4109
  width: isFullWidth ? '100%' : 'auto',
4138
4110
  borderRadius: CardShapes[shape],
4139
4111
  overflow: 'hidden'
4140
- }, CardVariants[variant], contextValue.styles.container, props, {
4112
+ }, variantStyles, contextValue.styles.container, props, {
4141
4113
  style: Object.assign({}, (_contextValue$styles$ = contextValue.styles.container) == null ? void 0 : _contextValue$styles$.style, style)
4142
4114
  });
4143
4115
  return /*#__PURE__*/React__default.createElement(CardContext.Provider, {
@@ -4448,19 +4420,19 @@ var useCarouselContext = () => {
4448
4420
  return context;
4449
4421
  };
4450
4422
 
4451
- var _excluded$a = ["children", "isActive", "views"],
4423
+ var _excluded$c = ["children", "isActive", "views"],
4452
4424
  _excluded2$4 = ["views", "children"],
4453
4425
  _excluded3$4 = ["views", "children"],
4454
4426
  _excluded4$4 = ["children", "views"],
4455
4427
  _excluded5$1 = ["children", "views", "style"],
4456
- _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"];
4457
4429
  var CarouselSlide = _ref => {
4458
4430
  var {
4459
4431
  children,
4460
4432
  isActive,
4461
4433
  views
4462
4434
  } = _ref,
4463
- props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
4435
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
4464
4436
  return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
4465
4437
  flexShrink: 0,
4466
4438
  width: "100%",
@@ -5384,7 +5356,7 @@ var PieChart = _ref => {
5384
5356
  })));
5385
5357
  };
5386
5358
 
5387
- 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"];
5388
5360
  var ChartView = _ref => {
5389
5361
  var {
5390
5362
  type,
@@ -5412,7 +5384,7 @@ var ChartView = _ref => {
5412
5384
  noDataIndicator,
5413
5385
  'aria-label': ariaLabel
5414
5386
  } = _ref,
5415
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
5387
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
5416
5388
  // Use chart state hook
5417
5389
  var {
5418
5390
  animationProgress,
@@ -5742,12 +5714,12 @@ var calculateMenuPosition = function calculateMenuPosition(x, y, menuWidth, menu
5742
5714
  };
5743
5715
  };
5744
5716
 
5745
- var _excluded$c = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
5717
+ var _excluded$e = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
5746
5718
  _excluded2$5 = ["items", "children", "position", "side", "align", "views", "style"],
5747
5719
  _excluded3$5 = ["item", "children", "onSelect", "isDisabled", "views"],
5748
5720
  _excluded4$5 = ["views"],
5749
5721
  _excluded5$2 = ["views"],
5750
- _excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views"];
5722
+ _excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views", "themeMode"];
5751
5723
  // Create context for the ContextMenu
5752
5724
  var ContextMenuContext = /*#__PURE__*/React.createContext({
5753
5725
  isOpen: false,
@@ -5798,7 +5770,7 @@ var ContextMenuTrigger = _ref2 => {
5798
5770
  isDisabled = false,
5799
5771
  views
5800
5772
  } = _ref2,
5801
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$c);
5773
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$e);
5802
5774
  var {
5803
5775
  triggerRef,
5804
5776
  contentId,
@@ -6081,7 +6053,7 @@ var ContextMenuView = _ref7 => {
6081
6053
  }));
6082
6054
  };
6083
6055
 
6084
- var _excluded$d = ["children", "items", "size", "variant", "disableNativeContextMenu", "onOpenChange", "views"];
6056
+ var _excluded$f = ["children", "items", "size", "variant", "disableNativeContextMenu", "onOpenChange", "views"];
6085
6057
  /**
6086
6058
  * ContextMenu component for displaying a custom context menu on right-click.
6087
6059
  * Supports both data-driven approach (with items prop) and compound component pattern.
@@ -6096,7 +6068,7 @@ var ContextMenuComponent = _ref => {
6096
6068
  onOpenChange,
6097
6069
  views
6098
6070
  } = _ref,
6099
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
6071
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
6100
6072
  var state = useContextMenuState({
6101
6073
  size,
6102
6074
  variant,
@@ -6148,7 +6120,7 @@ ContextMenu.Item = ContextMenuItem;
6148
6120
  ContextMenu.Divider = ContextMenuDivider;
6149
6121
  ContextMenu.Separator = ContextMenuSeparator; // Add the Separator component
6150
6122
 
6151
- var _excluded$e = ["src", "color", "views", "themeMode"],
6123
+ var _excluded$g = ["src", "color", "views", "themeMode"],
6152
6124
  _excluded2$6 = ["path"];
6153
6125
  var FileSVG = _ref => {
6154
6126
  var {
@@ -6156,7 +6128,7 @@ var FileSVG = _ref => {
6156
6128
  color,
6157
6129
  views
6158
6130
  } = _ref,
6159
- props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
6131
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
6160
6132
  var {
6161
6133
  getColor,
6162
6134
  themeMode
@@ -6230,7 +6202,7 @@ var useItemState = () => {
6230
6202
  };
6231
6203
  };
6232
6204
 
6233
- var _excluded$f = ["children", "views"];
6205
+ var _excluded$h = ["children", "views"];
6234
6206
  var HelperText = _ref => {
6235
6207
  var {
6236
6208
  children,
@@ -6238,7 +6210,7 @@ var HelperText = _ref => {
6238
6210
  helperText: {}
6239
6211
  }
6240
6212
  } = _ref,
6241
- props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
6213
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
6242
6214
  return /*#__PURE__*/React__default.createElement(Text
6243
6215
  // Typography properties
6244
6216
  , Object.assign({
@@ -6264,7 +6236,7 @@ var HelperText = _ref => {
6264
6236
  }, views['helperText'], props), children);
6265
6237
  };
6266
6238
 
6267
- var _excluded$g = ["children", "helperText", "error", "views"];
6239
+ var _excluded$i = ["children", "helperText", "error", "views"];
6268
6240
  var FieldContainer = _ref => {
6269
6241
  var {
6270
6242
  children,
@@ -6272,7 +6244,7 @@ var FieldContainer = _ref => {
6272
6244
  error = false,
6273
6245
  views
6274
6246
  } = _ref,
6275
- props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
6247
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
6276
6248
  return /*#__PURE__*/React__default.createElement(appStudio.Vertical
6277
6249
  // Layout properties
6278
6250
  , Object.assign({
@@ -6280,9 +6252,9 @@ var FieldContainer = _ref => {
6280
6252
  gap: 8,
6281
6253
  position: "relative",
6282
6254
  width: "100%"
6283
- }, props), children, !error && helperText && (/*#__PURE__*/React__default.createElement(HelperText, Object.assign({
6255
+ }, props, views == null ? void 0 : views.container), children, !error && helperText && (/*#__PURE__*/React__default.createElement(HelperText, Object.assign({
6284
6256
  marginTop: 4
6285
- }, views), helperText)), error && (/*#__PURE__*/React__default.createElement(Text, {
6257
+ }, views == null ? void 0 : views.helperText), helperText)), error && (/*#__PURE__*/React__default.createElement(Text, Object.assign({
6286
6258
  size: "xs",
6287
6259
  marginTop: 4,
6288
6260
  marginHorizontal: 0,
@@ -6290,7 +6262,7 @@ var FieldContainer = _ref => {
6290
6262
  ,
6291
6263
  color: "color.red.500",
6292
6264
  transition: "all 0.2s ease"
6293
- }, error)));
6265
+ }, views == null ? void 0 : views.error), error)));
6294
6266
  };
6295
6267
 
6296
6268
  /**
@@ -6409,7 +6381,7 @@ var PaddingWithoutLabel = {
6409
6381
  paddingRight: '16px'
6410
6382
  };
6411
6383
 
6412
- 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"];
6413
6385
  var FieldContent = _ref => {
6414
6386
  var {
6415
6387
  shadow,
@@ -6427,7 +6399,7 @@ var FieldContent = _ref => {
6427
6399
  pickerBox: {}
6428
6400
  }
6429
6401
  } = _ref,
6430
- props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
6402
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
6431
6403
  // Determine if the field is in an interactive state
6432
6404
  var isInteractive = (isHovered || isFocused) && !isDisabled;
6433
6405
  // Set the appropriate color based on state
@@ -6456,12 +6428,12 @@ var FieldContent = _ref => {
6456
6428
  }, showLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], views['box'], props), children);
6457
6429
  };
6458
6430
 
6459
- var _excluded$i = ["children"];
6431
+ var _excluded$k = ["children"];
6460
6432
  var FieldIcons = _ref => {
6461
6433
  var {
6462
6434
  children
6463
6435
  } = _ref,
6464
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
6436
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
6465
6437
  return /*#__PURE__*/React__default.createElement(appStudio.Center, Object.assign({
6466
6438
  gap: 10,
6467
6439
  right: 16,
@@ -6513,7 +6485,7 @@ var HeadingSizes$1 = {
6513
6485
  }
6514
6486
  };
6515
6487
 
6516
- var _excluded$j = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
6488
+ var _excluded$l = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
6517
6489
  var LabelView = _ref => {
6518
6490
  var {
6519
6491
  children,
@@ -6529,7 +6501,7 @@ var LabelView = _ref => {
6529
6501
  size = 'sm'
6530
6502
  // The fontSize prop for the Element is determined by the 'size' prop passed to LabelView.
6531
6503
  } = _ref,
6532
- props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
6504
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
6533
6505
  // The fontStyle prop toggles between 'italic' and 'normal' based on the 'isItalic' boolean prop.
6534
6506
  var headingStyles = heading ? HeadingSizes$1[heading] : {};
6535
6507
  // fontWeight is derived from the Typography module, ensuring consistent font weighting across the app.
@@ -6561,7 +6533,7 @@ React__default.createElement(LabelView, Object.assign({}, props))
6561
6533
  var Label = LabelComponent;
6562
6534
  // Export the 'LabelComponent' as 'Label' to be reused throughout the project.
6563
6535
 
6564
- var _excluded$k = ["children", "size", "error", "color", "views", "helperText"];
6536
+ var _excluded$m = ["children", "size", "error", "color", "views", "helperText"];
6565
6537
  var FieldLabel = _ref => {
6566
6538
  var {
6567
6539
  children,
@@ -6572,7 +6544,7 @@ var FieldLabel = _ref => {
6572
6544
  label: {}
6573
6545
  }
6574
6546
  } = _ref,
6575
- props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
6547
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
6576
6548
  return /*#__PURE__*/React__default.createElement(Label
6577
6549
  // Position properties
6578
6550
  , Object.assign({
@@ -6593,12 +6565,12 @@ var FieldLabel = _ref => {
6593
6565
  }, views['label'], props), children);
6594
6566
  };
6595
6567
 
6596
- var _excluded$l = ["children"];
6568
+ var _excluded$n = ["children"];
6597
6569
  var FieldWrapper = _ref => {
6598
6570
  var {
6599
6571
  children
6600
6572
  } = _ref,
6601
- props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
6573
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
6602
6574
  return /*#__PURE__*/React__default.createElement(appStudio.Vertical
6603
6575
  // Layout properties
6604
6576
  , Object.assign({
@@ -6631,7 +6603,7 @@ var IconSizes$2 = {
6631
6603
  xl: 28
6632
6604
  };
6633
6605
 
6634
- var _excluded$m = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
6606
+ var _excluded$o = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
6635
6607
  _excluded2$7 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
6636
6608
  _excluded3$6 = ["option", "size", "removeOption"],
6637
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"];
@@ -6649,7 +6621,7 @@ var Item = _ref => {
6649
6621
  callback = () => {},
6650
6622
  style
6651
6623
  } = _ref,
6652
- props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
6624
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
6653
6625
  // Handles the click event on an option by invoking the callback with the selected option's value
6654
6626
  var handleOptionClick = option => callback(option);
6655
6627
  // Toggles the hover state on the item
@@ -7069,26 +7041,6 @@ var KnobSizes = {
7069
7041
  xl: {
7070
7042
  height: '28px',
7071
7043
  width: '28px'
7072
- },
7073
- '2xl': {
7074
- height: '32px',
7075
- width: '32px'
7076
- },
7077
- '3xl': {
7078
- height: '36px',
7079
- width: '36px'
7080
- },
7081
- '4xl': {
7082
- height: '40px',
7083
- width: '40px'
7084
- },
7085
- '5xl': {
7086
- height: '44px',
7087
- width: '44px'
7088
- },
7089
- '6xl': {
7090
- height: '48px',
7091
- width: '48px'
7092
7044
  }
7093
7045
  };
7094
7046
  /**
@@ -7115,26 +7067,6 @@ var SliderSizes = {
7115
7067
  xl: {
7116
7068
  height: '40px',
7117
7069
  width: '72px'
7118
- },
7119
- '2xl': {
7120
- height: '44px',
7121
- width: '80px'
7122
- },
7123
- '3xl': {
7124
- height: '48px',
7125
- width: '88px'
7126
- },
7127
- '4xl': {
7128
- height: '52px',
7129
- width: '96px'
7130
- },
7131
- '5xl': {
7132
- height: '56px',
7133
- width: '104px'
7134
- },
7135
- '6xl': {
7136
- height: '60px',
7137
- width: '112px'
7138
7070
  }
7139
7071
  };
7140
7072
  /**
@@ -7161,26 +7093,6 @@ var SliderPadding = {
7161
7093
  xl: {
7162
7094
  paddingVertical: 4,
7163
7095
  paddingHorizontal: 4
7164
- },
7165
- '2xl': {
7166
- paddingVertical: 4,
7167
- paddingHorizontal: 4
7168
- },
7169
- '3xl': {
7170
- paddingVertical: 4,
7171
- paddingHorizontal: 4
7172
- },
7173
- '4xl': {
7174
- paddingVertical: 4,
7175
- paddingHorizontal: 4
7176
- },
7177
- '5xl': {
7178
- paddingVertical: 4,
7179
- paddingHorizontal: 4
7180
- },
7181
- '6xl': {
7182
- paddingVertical: 4,
7183
- paddingHorizontal: 4
7184
7096
  }
7185
7097
  };
7186
7098
  /**
@@ -7208,7 +7120,7 @@ var ColorSchemes = {
7208
7120
  }
7209
7121
  };
7210
7122
 
7211
- 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"];
7212
7124
  var SwitchContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
7213
7125
  type: "checkbox"
7214
7126
  }, props));
@@ -7237,7 +7149,7 @@ var SwitchView = _ref => {
7237
7149
  label: {}
7238
7150
  }
7239
7151
  } = _ref,
7240
- props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
7152
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
7241
7153
  var handleToggle = event => {
7242
7154
  if (!isReadOnly) {
7243
7155
  setValue(!value);
@@ -7361,7 +7273,7 @@ var useTextAreaState = _ref => {
7361
7273
  // Export of the useTextAreaState hook for external usage.
7362
7274
  };
7363
7275
 
7364
- 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"];
7365
7277
  var TextAreaView = _ref => {
7366
7278
  var {
7367
7279
  id,
@@ -7387,20 +7299,16 @@ var TextAreaView = _ref => {
7387
7299
  onBlur = () => {},
7388
7300
  onChange,
7389
7301
  onFocus,
7390
- onChangeText,
7391
7302
  setHint = () => {},
7392
7303
  setValue = () => {},
7393
7304
  setIsFocused = () => {},
7394
7305
  setIsHovered = () => {},
7395
7306
  views = {
7396
- box: {},
7397
- text: {},
7398
7307
  label: {},
7399
- helperText: {},
7400
- field: {}
7308
+ helperText: {}
7401
7309
  }
7402
7310
  } = _ref,
7403
- props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
7311
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
7404
7312
  var showLabel = !!(isFocused && label);
7405
7313
  /**
7406
7314
  * Styles for the textarea field
@@ -7408,11 +7316,11 @@ var TextAreaView = _ref => {
7408
7316
  var fieldStyles = Object.assign({
7409
7317
  // Layout properties
7410
7318
  margin: 0,
7411
- paddingVertical: 12,
7412
- paddingHorizontal: 0,
7319
+ paddingVertical: 2,
7320
+ paddingHorizontal: 2,
7413
7321
  width: '100%',
7414
- height: '100%',
7415
- minHeight: '80px',
7322
+ maxHeight: 'calc(100vh - 100px)',
7323
+ height: 'calc(5em)',
7416
7324
  border: 'none',
7417
7325
  resize: 'vertical',
7418
7326
  // Focus state
@@ -7423,7 +7331,7 @@ var TextAreaView = _ref => {
7423
7331
  },
7424
7332
  // Typography properties
7425
7333
  fontSize: appStudio.Typography.fontSizes[size],
7426
- lineHeight: '1.5',
7334
+ lineHeight: appStudio.Typography.fontSizes[size] * 1.5,
7427
7335
  letterSpacing: '-0.01em',
7428
7336
  // Visual properties
7429
7337
  backgroundColor: 'transparent',
@@ -7431,11 +7339,7 @@ var TextAreaView = _ref => {
7431
7339
  // State properties
7432
7340
  cursor: isDisabled ? 'not-allowed' : 'text',
7433
7341
  // Animation
7434
- transition: 'all 0.2s ease',
7435
- // Dark mode support
7436
- '@media (prefers-color-scheme: dark)': {
7437
- color: isDisabled ? 'color.gray.600' : 'color.gray.100'
7438
- }
7342
+ transition: 'all 0.2s ease'
7439
7343
  }, views['field']);
7440
7344
  var handleHover = () => setIsHovered(!isHovered);
7441
7345
  var handleFocus = () => {
@@ -7449,19 +7353,17 @@ var TextAreaView = _ref => {
7449
7353
  var handleChange = event => {
7450
7354
  if (typeof event === 'string') {
7451
7355
  setValue(event);
7452
- if (onChangeText) onChangeText(event);
7453
7356
  if (onChange) onChange(event);
7454
7357
  } else {
7455
7358
  setValue(event.target.value);
7456
- if (onChangeText) onChangeText(event.target.value);
7457
7359
  if (onChange) onChange(event.target.value);
7458
7360
  }
7459
7361
  };
7460
- return /*#__PURE__*/React__default.createElement(FieldContainer, {
7362
+ return /*#__PURE__*/React__default.createElement(FieldContainer, Object.assign({
7461
7363
  helperText: helperText,
7462
7364
  error: error,
7463
7365
  views: views
7464
- }, /*#__PURE__*/React__default.createElement(FieldContent, {
7366
+ }, props), /*#__PURE__*/React__default.createElement(FieldContent, Object.assign({
7465
7367
  label: label,
7466
7368
  size: size,
7467
7369
  error: error,
@@ -7478,11 +7380,11 @@ var TextAreaView = _ref => {
7478
7380
  showLabel: showLabel,
7479
7381
  onMouseEnter: handleHover,
7480
7382
  onMouseLeave: handleHover
7481
- }, /*#__PURE__*/React__default.createElement(FieldWrapper, null, showLabel && (/*#__PURE__*/React__default.createElement(FieldLabel, Object.assign({
7383
+ }, views == null ? void 0 : views.content), /*#__PURE__*/React__default.createElement(FieldWrapper, Object.assign({}, views == null ? void 0 : views.warper), showLabel && (/*#__PURE__*/React__default.createElement(FieldLabel, Object.assign({
7482
7384
  htmlFor: id,
7483
7385
  color: 'theme.primary',
7484
7386
  error: error
7485
- }, views), label)), /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
7387
+ }, views == null ? void 0 : views.label), label)), /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
7486
7388
  as: "textarea",
7487
7389
  id: id,
7488
7390
  name: name,
@@ -7492,15 +7394,13 @@ var TextAreaView = _ref => {
7492
7394
  readOnly: isReadOnly,
7493
7395
  disabled: isDisabled,
7494
7396
  autoFocus: isAutoFocus,
7495
- editable: isEditable,
7397
+ editable: !!isEditable.toString(),
7496
7398
  placeholder: hint,
7497
7399
  onBlur: handleBlur,
7498
7400
  onFocus: handleFocus,
7499
- multiline: isMultiline
7500
- }, fieldStyles, props, {
7501
- onChange: handleChange,
7502
- onChangeText: handleChange
7503
- })))));
7401
+ multiline: !!isMultiline.toString(),
7402
+ onChange: handleChange
7403
+ }, fieldStyles, views == null ? void 0 : views.textarea)))));
7504
7404
  };
7505
7405
 
7506
7406
  // Defines the TextAreaComponent as a functional component that accepts TextAreaProps for type safety and structure.
@@ -7547,7 +7447,7 @@ var useTextFieldState = _ref => {
7547
7447
  };
7548
7448
  };
7549
7449
 
7550
- 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"];
7551
7451
  /**
7552
7452
  * Input component for text fields
7553
7453
  */
@@ -7568,7 +7468,7 @@ var TextFieldView = _ref => {
7568
7468
  onChangeText,
7569
7469
  shadow = {},
7570
7470
  views = {
7571
- box: {},
7471
+ container: {},
7572
7472
  field: {},
7573
7473
  label: {},
7574
7474
  helperText: {},
@@ -7593,7 +7493,7 @@ var TextFieldView = _ref => {
7593
7493
  onBlur = () => {},
7594
7494
  themeMode: elementMode
7595
7495
  } = _ref,
7596
- props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
7496
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
7597
7497
  var {
7598
7498
  getColor,
7599
7499
  themeMode
@@ -7768,26 +7668,6 @@ var Sizes = {
7768
7668
  xl: {
7769
7669
  height: '32px',
7770
7670
  width: '32px'
7771
- },
7772
- '2xl': {
7773
- height: '36px',
7774
- width: '36px'
7775
- },
7776
- '3xl': {
7777
- height: '40px',
7778
- width: '40px'
7779
- },
7780
- '4xl': {
7781
- height: '44px',
7782
- width: '44px'
7783
- },
7784
- '5xl': {
7785
- height: '48px',
7786
- width: '48px'
7787
- },
7788
- '6xl': {
7789
- height: '52px',
7790
- width: '52px'
7791
7671
  }
7792
7672
  };
7793
7673
  /**
@@ -7799,12 +7679,7 @@ var IconSizes$3 = {
7799
7679
  sm: 14,
7800
7680
  md: 16,
7801
7681
  lg: 20,
7802
- xl: 24,
7803
- '2xl': 28,
7804
- '3xl': 32,
7805
- '4xl': 36,
7806
- '5xl': 40,
7807
- '6xl': 44
7682
+ xl: 24
7808
7683
  };
7809
7684
  /**
7810
7685
  * Variant styles for the Checkbox component
@@ -7876,7 +7751,7 @@ var StateStyles = {
7876
7751
  }
7877
7752
  };
7878
7753
 
7879
- 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"];
7880
7755
  var CheckboxView = _ref => {
7881
7756
  var {
7882
7757
  id,
@@ -7903,7 +7778,7 @@ var CheckboxView = _ref => {
7903
7778
  },
7904
7779
  infoText
7905
7780
  } = _ref,
7906
- props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
7781
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
7907
7782
  var handleHover = () => setIsHovered(!isHovered);
7908
7783
  var handleChange = () => {
7909
7784
  if (!isReadOnly && !isDisabled) {
@@ -9489,11 +9364,11 @@ var IconSizes$4 = {
9489
9364
  xl: 16
9490
9365
  };
9491
9366
 
9492
- var _excluded$r = ["size"],
9367
+ var _excluded$t = ["size"],
9493
9368
  _excluded2$8 = ["size"],
9494
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"];
9495
9370
  var CountryList = _ref => {
9496
- var props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
9371
+ var props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
9497
9372
  return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
9498
9373
  as: "ul"
9499
9374
  }, props));
@@ -9600,8 +9475,7 @@ var CountryPickerView = _ref5 => {
9600
9475
  icon: {},
9601
9476
  label: {},
9602
9477
  dropDown: {},
9603
- helperText: {},
9604
- box: {}
9478
+ helperText: {}
9605
9479
  },
9606
9480
  themeMode: elementMode
9607
9481
  } = _ref5,
@@ -9733,7 +9607,7 @@ var useDatePickerState = () => {
9733
9607
  };
9734
9608
  };
9735
9609
 
9736
- 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"];
9737
9611
  var DatePickerContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
9738
9612
  type: "date"
9739
9613
  }, props));
@@ -9749,7 +9623,7 @@ var DatePickerView = _ref => {
9749
9623
  variant = 'default',
9750
9624
  shape = 'default',
9751
9625
  views = {
9752
- box: {},
9626
+ container: {},
9753
9627
  label: {},
9754
9628
  helperText: {},
9755
9629
  text: {},
@@ -9766,7 +9640,7 @@ var DatePickerView = _ref => {
9766
9640
  onChange,
9767
9641
  onChangeText
9768
9642
  } = _ref,
9769
- props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
9643
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
9770
9644
  var showLabel = !!(isFocused && label);
9771
9645
  var handleHover = () => setIsHovered(!isHovered);
9772
9646
  var handleFocus = () => setIsFocused(true);
@@ -9853,7 +9727,7 @@ var usePasswordState = props => {
9853
9727
  }, props, textFieldStates);
9854
9728
  };
9855
9729
 
9856
- var _excluded$t = ["visibleIcon", "hiddenIcon"],
9730
+ var _excluded$v = ["visibleIcon", "hiddenIcon"],
9857
9731
  _excluded2$9 = ["isVisible", "setIsVisible"];
9858
9732
  var PasswordComponent = _ref => {
9859
9733
  var {
@@ -9864,7 +9738,7 @@ var PasswordComponent = _ref => {
9864
9738
  widthHeight: 14
9865
9739
  })
9866
9740
  } = _ref,
9867
- props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
9741
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
9868
9742
  var _usePasswordState = usePasswordState(props),
9869
9743
  {
9870
9744
  isVisible,
@@ -9918,7 +9792,7 @@ var useComboBoxState = (items, placeholder, searchPlaceholder) => {
9918
9792
  };
9919
9793
  };
9920
9794
 
9921
- 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"];
9922
9796
  // Defines the functional component 'ComboBoxView' with destructured props.
9923
9797
  var ComboBoxView = _ref => {
9924
9798
  var {
@@ -9943,7 +9817,7 @@ var ComboBoxView = _ref => {
9943
9817
  setIsDropdownVisible
9944
9818
  // Collects all further props not destructured explicitly.
9945
9819
  } = _ref,
9946
- props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
9820
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
9947
9821
  // Sets up an effect to handle clicking outside the dropdown to close it.
9948
9822
  React.useEffect(() => {
9949
9823
  var handleClickOutside = event => {
@@ -10032,7 +9906,7 @@ var ComboBoxView = _ref => {
10032
9906
  widthHeight: 12
10033
9907
  }),
10034
9908
  views: {
10035
- box: Object.assign({
9909
+ container: Object.assign({
10036
9910
  width: '100%',
10037
9911
  padding: '6px 12px',
10038
9912
  borderBottom: filteredItems.length > 0 ? '1px solid #ccc' : '1px solid transparent'
@@ -10055,7 +9929,7 @@ var ComboBoxView = _ref => {
10055
9929
  }))))))))))));
10056
9930
  };
10057
9931
 
10058
- var _excluded$v = ["id", "name", "items", "placeholder", "searchPlaceholder"];
9932
+ var _excluded$x = ["id", "name", "items", "placeholder", "searchPlaceholder"];
10059
9933
  // Defines the ComboBoxComponent functional component with ComboBoxProps
10060
9934
  var ComboBoxComponent = _ref => {
10061
9935
  var {
@@ -10071,7 +9945,7 @@ var ComboBoxComponent = _ref => {
10071
9945
  searchPlaceholder
10072
9946
  // Destructures the rest of the props not explicitly defined
10073
9947
  } = _ref,
10074
- props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
9948
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
10075
9949
  // Initializes ComboBox state using custom hook with items and placeholders
10076
9950
  var state = useComboBoxState(items, placeholder, searchPlaceholder);
10077
9951
  return (
@@ -10376,7 +10250,7 @@ var useOTPInputState = _ref => {
10376
10250
  };
10377
10251
  };
10378
10252
 
10379
- 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"];
10380
10254
  // Create a context for OTP input slots
10381
10255
  var OTPInputContext = /*#__PURE__*/React.createContext({
10382
10256
  slots: [],
@@ -10402,14 +10276,7 @@ var OTPInputView = _ref => {
10402
10276
  length = 6,
10403
10277
  helperText,
10404
10278
  placeholder = '',
10405
- views = {
10406
- container: {},
10407
- input: {},
10408
- box: {},
10409
- text: {},
10410
- label: {},
10411
- helperText: {}
10412
- },
10279
+ views = {},
10413
10280
  size = 'md',
10414
10281
  shape = 'rounded',
10415
10282
  variant = 'outline',
@@ -10437,7 +10304,7 @@ var OTPInputView = _ref => {
10437
10304
  onFocus = () => {}
10438
10305
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
10439
10306
  } = _ref,
10440
- props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
10307
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
10441
10308
  appStudio.useTheme(); // Initialize theme context
10442
10309
  var showLabel = !!label;
10443
10310
  // Create context value for slots
@@ -10515,7 +10382,7 @@ var OTPInputView = _ref => {
10515
10382
  width: "100%",
10516
10383
  position: "relative",
10517
10384
  height: size === 'xs' ? '32px' : size === 'sm' ? '36px' : size === 'md' ? '40px' : size === 'lg' ? '48px' : '56px'
10518
- }, views.box), slot.char ? (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
10385
+ }, views.container), slot.char ? (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
10519
10386
  textAlign: "center",
10520
10387
  fontSize: size === 'xs' ? '14px' : size === 'sm' ? '16px' : size === 'md' ? '18px' : size === 'lg' ? '20px' : '24px',
10521
10388
  fontWeight: "medium"
@@ -10667,7 +10534,7 @@ var OTPInputComponent = props => {
10667
10534
  };
10668
10535
  var OTPInput = OTPInputComponent;
10669
10536
 
10670
- var _excluded$x = ["children", "autoFocus", "initFocus", "onChange"];
10537
+ var _excluded$z = ["children", "autoFocus", "initFocus", "onChange"];
10671
10538
  var FocusContext = /*#__PURE__*/React.createContext({
10672
10539
  active: false,
10673
10540
  focusNextInput: () => {},
@@ -10683,7 +10550,7 @@ var FormikForm = _ref => {
10683
10550
  initFocus,
10684
10551
  onChange = () => {}
10685
10552
  } = _ref,
10686
- props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
10553
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
10687
10554
  var formik$1 = formik.useFormikContext();
10688
10555
  React.useEffect(() => {
10689
10556
  onChange(formik$1.values);
@@ -10731,7 +10598,7 @@ var FormikForm = _ref => {
10731
10598
  }, /*#__PURE__*/React__default.createElement(appStudio.Form, Object.assign({}, props), children));
10732
10599
  };
10733
10600
 
10734
- var _excluded$y = ["name", "type"];
10601
+ var _excluded$A = ["name", "type"];
10735
10602
  var getInputTypeProps = type => {
10736
10603
  switch (type) {
10737
10604
  case 'email':
@@ -10770,7 +10637,7 @@ var useFormikInput = _ref => {
10770
10637
  name,
10771
10638
  type
10772
10639
  } = _ref,
10773
- props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
10640
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
10774
10641
  var focus = useFormFocus();
10775
10642
  var {
10776
10643
  touched,
@@ -10814,13 +10681,13 @@ var useFormikInput = _ref => {
10814
10681
  } : {});
10815
10682
  };
10816
10683
 
10817
- var _excluded$z = ["value"];
10684
+ var _excluded$B = ["value"];
10818
10685
  var CheckboxComponent$1 = props => {
10819
10686
  var _useFormikInput = useFormikInput(props),
10820
10687
  {
10821
10688
  value
10822
10689
  } = _useFormikInput,
10823
- formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$z);
10690
+ formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$B);
10824
10691
  formProps.isChecked = value;
10825
10692
  var checkboxStates = useCheckboxState(props);
10826
10693
  return /*#__PURE__*/React__default.createElement(CheckboxView, Object.assign({}, checkboxStates, formProps));
@@ -10878,11 +10745,11 @@ var TextAreaComponent$1 = props => {
10878
10745
  */
10879
10746
  var FormikTextArea = TextAreaComponent$1;
10880
10747
 
10881
- var _excluded$A = ["value"];
10748
+ var _excluded$C = ["value"];
10882
10749
  var TextFieldComponent$1 = props => {
10883
10750
  var formProps = useFormikInput(props);
10884
10751
  var _useTextFieldState = useTextFieldState(props),
10885
- textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$A);
10752
+ textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$C);
10886
10753
  return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, textFieldStates, formProps));
10887
10754
  };
10888
10755
  /**
@@ -10890,7 +10757,7 @@ var TextFieldComponent$1 = props => {
10890
10757
  */
10891
10758
  var FormikTextField = TextFieldComponent$1;
10892
10759
 
10893
- var _excluded$B = ["visibleIcon", "hiddenIcon"],
10760
+ var _excluded$D = ["visibleIcon", "hiddenIcon"],
10894
10761
  _excluded2$a = ["isVisible", "setIsVisible"];
10895
10762
  var PasswordComponent$1 = _ref => {
10896
10763
  var {
@@ -10901,7 +10768,7 @@ var PasswordComponent$1 = _ref => {
10901
10768
  widthHeight: 14
10902
10769
  })
10903
10770
  } = _ref,
10904
- props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
10771
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
10905
10772
  var formProps = useFormikInput(props);
10906
10773
  var _usePasswordState = usePasswordState(formProps),
10907
10774
  {
@@ -10926,14 +10793,14 @@ var PasswordComponent$1 = _ref => {
10926
10793
  */
10927
10794
  var FormikPassword = PasswordComponent$1;
10928
10795
 
10929
- var _excluded$C = ["items", "placeholder", "searchPlaceholder"];
10796
+ var _excluded$E = ["items", "placeholder", "searchPlaceholder"];
10930
10797
  var ComboBoxComponent$1 = _ref => {
10931
10798
  var {
10932
10799
  items,
10933
10800
  placeholder,
10934
10801
  searchPlaceholder
10935
10802
  } = _ref,
10936
- props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
10803
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
10937
10804
  var formProps = useFormikInput(props);
10938
10805
  var ComboBoxStates = useComboBoxState(items, placeholder, searchPlaceholder);
10939
10806
  // Ensure the onChange function from formProps is being called when an item is selected
@@ -11157,17 +11024,22 @@ var SliderShapes = {
11157
11024
  rounded: 4,
11158
11025
  pillShaped: 24
11159
11026
  };
11160
- var SliderVariants = {
11161
- default: {
11162
- backgroundColor: 'color.blueGray.200'
11163
- },
11164
- outline: {
11165
- backgroundColor: 'transparent',
11166
- borderWidth: 1,
11167
- borderStyle: 'solid',
11168
- borderColor: 'color.blueGray.300'
11169
- }
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
11170
11040
  };
11041
+ // For backward compatibility
11042
+ var SliderVariants = /*#__PURE__*/getSlider();
11171
11043
  // Maps Size enum to track height/width and thumb size for the new implementation
11172
11044
  var EnhancedSliderSizes = {
11173
11045
  xs: {
@@ -11209,7 +11081,7 @@ var OrientationStyles = {
11209
11081
  }
11210
11082
  };
11211
11083
 
11212
- 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"];
11213
11085
  var SliderView = _ref => {
11214
11086
  var _views$tooltip, _views$tooltip2;
11215
11087
  var {
@@ -11252,7 +11124,7 @@ var SliderView = _ref => {
11252
11124
  tooltip: {}
11253
11125
  }
11254
11126
  } = _ref,
11255
- props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
11127
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
11256
11128
  var {
11257
11129
  getColor,
11258
11130
  themeMode
@@ -11625,7 +11497,7 @@ var hideMessage = () => {
11625
11497
  useMessageStore.getState().hide();
11626
11498
  };
11627
11499
 
11628
- var Themes$1 = {
11500
+ var Themes = {
11629
11501
  info: {
11630
11502
  container: {
11631
11503
  backgroundColor: 'color.blue.200',
@@ -11723,7 +11595,7 @@ var MessageView = _ref => {
11723
11595
  }
11724
11596
  return;
11725
11597
  }, []);
11726
- var Theme = theme != null ? theme : Themes$1;
11598
+ var Theme = theme != null ? theme : Themes;
11727
11599
  var showAction = !!(action && actionText);
11728
11600
  var containerStyle = {
11729
11601
  borderWidth: 1,
@@ -11972,7 +11844,8 @@ var UploadView = _ref => {
11972
11844
  renderError = _ref2 => {
11973
11845
  var {
11974
11846
  errorMessage,
11975
- errorMessageProps
11847
+ errorMessageProps,
11848
+ themeMode: elementMode
11976
11849
  } = _ref2;
11977
11850
  return /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
11978
11851
  color: "red",
@@ -12123,7 +11996,7 @@ var UploadView = _ref => {
12123
11996
  }, views == null ? void 0 : views.view)));
12124
11997
  };
12125
11998
 
12126
- 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"];
12127
12000
  var Uploader = _ref => {
12128
12001
  var {
12129
12002
  accept = '*/*',
@@ -12136,7 +12009,7 @@ var Uploader = _ref => {
12136
12009
  progress = 0,
12137
12010
  fileType
12138
12011
  } = _ref,
12139
- props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
12012
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$G);
12140
12013
  var {
12141
12014
  previewUrl,
12142
12015
  thumbnailUrl,
@@ -12283,23 +12156,19 @@ var OverlayAlignments = {
12283
12156
  },
12284
12157
  top: {
12285
12158
  justifyContent: 'center',
12286
- alignItems: 'flex-start',
12287
- paddingTop: '64px'
12159
+ alignItems: 'flex-start'
12288
12160
  },
12289
12161
  right: {
12290
12162
  justifyContent: 'flex-end',
12291
- alignItems: 'center',
12292
- paddingRight: '32px'
12163
+ alignItems: 'center'
12293
12164
  },
12294
12165
  bottom: {
12295
12166
  justifyContent: 'center',
12296
- alignItems: 'flex-end',
12297
- paddingBottom: '64px'
12167
+ alignItems: 'flex-end'
12298
12168
  },
12299
12169
  left: {
12300
12170
  justifyContent: 'flex-start',
12301
- alignItems: 'center',
12302
- paddingLeft: '32px'
12171
+ alignItems: 'center'
12303
12172
  }
12304
12173
  };
12305
12174
  /**
@@ -12331,7 +12200,7 @@ var ModalTypography = {
12331
12200
  }
12332
12201
  };
12333
12202
 
12334
- var _excluded$F = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
12203
+ var _excluded$H = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
12335
12204
  _excluded2$b = ["children", "shadow", "isFullScreen", "shape", "views"],
12336
12205
  _excluded3$8 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
12337
12206
  _excluded4$7 = ["children", "views"],
@@ -12346,7 +12215,7 @@ var ModalOverlay = _ref => {
12346
12215
  position = 'center',
12347
12216
  views
12348
12217
  } = _ref,
12349
- props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
12218
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
12350
12219
  var handleClick = () => {
12351
12220
  if (!isClosePrevented) onClose();
12352
12221
  };
@@ -12417,17 +12286,12 @@ var ModalHeader = _ref3 => {
12417
12286
  } = _ref3,
12418
12287
  props = _objectWithoutPropertiesLoose(_ref3, _excluded3$8);
12419
12288
  var onClose = props.onClose ? props.onClose : hideModal;
12420
- var buttonIcon = /*#__PURE__*/React__default.createElement(Button, {
12421
- onClick: onClose,
12422
- icon: /*#__PURE__*/React__default.createElement(CloseIcon, {
12423
- widthHeight: HeaderIconSizes[iconSize],
12424
- color: buttonColor
12425
- }),
12426
- padding: 0,
12427
- margin: 0,
12428
- filter: "none",
12429
- width: 0
12430
- });
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
+ }));
12431
12295
  return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
12432
12296
  justifyContent: buttonPosition === 'none' ? 'center' : 'space-between',
12433
12297
  alignItems: "center",
@@ -12647,7 +12511,7 @@ var NavigationMenuItemStates = {
12647
12511
  }
12648
12512
  };
12649
12513
 
12650
- var _excluded$G = ["href", "children", "views"];
12514
+ var _excluded$I = ["href", "children", "views"];
12651
12515
  // Create context for the NavigationMenu
12652
12516
  var NavigationMenuContext = /*#__PURE__*/React.createContext({
12653
12517
  activeItemId: null,
@@ -12882,7 +12746,7 @@ var NavigationMenuLink = _ref6 => {
12882
12746
  children,
12883
12747
  views
12884
12748
  } = _ref6,
12885
- props = _objectWithoutPropertiesLoose(_ref6, _excluded$G);
12749
+ props = _objectWithoutPropertiesLoose(_ref6, _excluded$I);
12886
12750
  var {
12887
12751
  itemValue,
12888
12752
  isDisabled
@@ -12931,7 +12795,8 @@ var NavigationMenuView = _ref7 => {
12931
12795
  items,
12932
12796
  orientation,
12933
12797
  //size, variant,
12934
- views
12798
+ views,
12799
+ themeMode: elementMode
12935
12800
  } = _ref7;
12936
12801
  var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
12937
12802
  if (!items || items.length === 0) {
@@ -12948,7 +12813,7 @@ var NavigationMenuView = _ref7 => {
12948
12813
  })))));
12949
12814
  };
12950
12815
 
12951
- 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"];
12952
12817
  /**
12953
12818
  * NavigationMenu component for creating navigation menus with optional nested items.
12954
12819
  * Supports both data-driven approach (with items prop) and compound component pattern.
@@ -12965,7 +12830,7 @@ var NavigationMenuComponent = _ref => {
12965
12830
  onItemActivate,
12966
12831
  views
12967
12832
  } = _ref,
12968
- props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
12833
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$J);
12969
12834
  var {
12970
12835
  activeItemId,
12971
12836
  setActiveItemId,
@@ -13165,7 +13030,8 @@ var TableView = _ref => {
13165
13030
  data,
13166
13031
  columns,
13167
13032
  footer,
13168
- caption
13033
+ caption,
13034
+ themeMode: elementMode
13169
13035
  } = _ref;
13170
13036
  return /*#__PURE__*/React__default.createElement(TableContainer, {
13171
13037
  role: "Table"
@@ -13432,7 +13298,7 @@ var useToggleState = defaultToggled => {
13432
13298
  };
13433
13299
  };
13434
13300
 
13435
- 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"];
13436
13302
  var ToggleView = _ref => {
13437
13303
  var {
13438
13304
  children,
@@ -13446,7 +13312,7 @@ var ToggleView = _ref => {
13446
13312
  onToggle,
13447
13313
  views
13448
13314
  } = _ref,
13449
- props = _objectWithoutPropertiesLoose(_ref, _excluded$I);
13315
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$K);
13450
13316
  var toggleColor = !isDisabled ? 'color.trueGray.400' : 'theme.disabled';
13451
13317
  var isActive = !!(isToggle || isHovered);
13452
13318
  var toggleVariants = {
@@ -13489,7 +13355,7 @@ var ToggleView = _ref => {
13489
13355
  }, toggleVariants[variant], props, views == null ? void 0 : views.container), children);
13490
13356
  };
13491
13357
 
13492
- var _excluded$J = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
13358
+ var _excluded$L = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
13493
13359
  // Destructuring properties from ToggleProps to be used within the ToggleComponent.
13494
13360
  var ToggleComponent = _ref => {
13495
13361
  var {
@@ -13501,7 +13367,7 @@ var ToggleComponent = _ref => {
13501
13367
  isToggled = false,
13502
13368
  onToggle
13503
13369
  } = _ref,
13504
- props = _objectWithoutPropertiesLoose(_ref, _excluded$J);
13370
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$L);
13505
13371
  // Initializing toggle state and set state functions using the custom hook useToggleState.
13506
13372
  var {
13507
13373
  isHovered,
@@ -13708,7 +13574,8 @@ var DragAndDropView = _ref => {
13708
13574
  draggedIndex,
13709
13575
  itemRefs,
13710
13576
  handleDragStart,
13711
- views
13577
+ views,
13578
+ themeMode: elementMode
13712
13579
  } = _ref;
13713
13580
  return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
13714
13581
  overflow: "hidden",
@@ -13891,11 +13758,11 @@ var getDropdownPosition = function getDropdownPosition(side, align) {
13891
13758
  return positions[side];
13892
13759
  };
13893
13760
 
13894
- var _excluded$K = ["children", "views"],
13761
+ var _excluded$M = ["children", "views"],
13895
13762
  _excluded2$c = ["items", "side", "align", "views"],
13896
13763
  _excluded3$9 = ["item", "views"],
13897
13764
  _excluded4$8 = ["views"],
13898
- _excluded5$4 = ["trigger", "items", "side", "align", "views"];
13765
+ _excluded5$4 = ["trigger", "items", "side", "align", "views", "themeMode"];
13899
13766
  // Create context for the DropdownMenu
13900
13767
  var DropdownMenuContext = /*#__PURE__*/React.createContext({
13901
13768
  isOpen: false,
@@ -13929,7 +13796,7 @@ var DropdownMenuTrigger = _ref2 => {
13929
13796
  children,
13930
13797
  views
13931
13798
  } = _ref2,
13932
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$K);
13799
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$M);
13933
13800
  var {
13934
13801
  isOpen,
13935
13802
  setIsOpen
@@ -14089,7 +13956,7 @@ var DropdownMenuView = _ref6 => {
14089
13956
  }));
14090
13957
  };
14091
13958
 
14092
- var _excluded$L = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
13959
+ var _excluded$N = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
14093
13960
  /**
14094
13961
  * DropdownMenu component for displaying a menu when clicking on a trigger element.
14095
13962
  */
@@ -14104,7 +13971,7 @@ var DropdownMenuComponent = _ref => {
14104
13971
  defaultOpen = false,
14105
13972
  views
14106
13973
  } = _ref,
14107
- props = _objectWithoutPropertiesLoose(_ref, _excluded$L);
13974
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$N);
14108
13975
  var {
14109
13976
  isOpen,
14110
13977
  setIsOpen,
@@ -14302,7 +14169,7 @@ var useRect = ref => {
14302
14169
  return rect;
14303
14170
  };
14304
14171
 
14305
- var _excluded$M = ["children", "views", "asChild"],
14172
+ var _excluded$O = ["children", "views", "asChild"],
14306
14173
  _excluded2$d = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
14307
14174
  // Create context for the HoverCard
14308
14175
  var HoverCardContext = /*#__PURE__*/React.createContext({
@@ -14341,7 +14208,7 @@ var HoverCardTrigger = _ref2 => {
14341
14208
  views,
14342
14209
  asChild = false
14343
14210
  } = _ref2,
14344
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$M);
14211
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$O);
14345
14212
  var {
14346
14213
  openCard,
14347
14214
  closeCard,
@@ -14428,7 +14295,7 @@ var HoverCardContent = _ref3 => {
14428
14295
  }, views == null ? void 0 : views.container, props), children);
14429
14296
  };
14430
14297
 
14431
- var _excluded$N = ["children", "views", "openDelay", "closeDelay"];
14298
+ var _excluded$P = ["children", "views", "openDelay", "closeDelay"];
14432
14299
  /**
14433
14300
  * HoverCard component displays floating content when hovering over a trigger element.
14434
14301
  * Supports configurable open and close delays for a smoother user experience.
@@ -14440,7 +14307,7 @@ var HoverCardComponent = _ref => {
14440
14307
  openDelay,
14441
14308
  closeDelay
14442
14309
  } = _ref,
14443
- props = _objectWithoutPropertiesLoose(_ref, _excluded$N);
14310
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$P);
14444
14311
  var hoverCardState = useHoverCardState({
14445
14312
  openDelay,
14446
14313
  closeDelay
@@ -14570,7 +14437,7 @@ var getMenubarContentPosition = orientation => {
14570
14437
  };
14571
14438
  };
14572
14439
 
14573
- var _excluded$O = ["children", "orientation", "size", "variant", "views"];
14440
+ var _excluded$Q = ["children", "orientation", "size", "variant", "views"];
14574
14441
  // Create context for the Menubar
14575
14442
  var MenubarContext = /*#__PURE__*/React.createContext({
14576
14443
  activeMenuId: null,
@@ -14604,7 +14471,7 @@ var MenubarRoot = _ref2 => {
14604
14471
  variant = 'default',
14605
14472
  views
14606
14473
  } = _ref2,
14607
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$O);
14474
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$Q);
14608
14475
  var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
14609
14476
  return /*#__PURE__*/React__default.createElement(Container, Object.assign({
14610
14477
  role: "menubar",
@@ -14751,7 +14618,8 @@ var MenubarView = _ref8 => {
14751
14618
  orientation,
14752
14619
  size,
14753
14620
  variant,
14754
- views
14621
+ views,
14622
+ themeMode: elementMode
14755
14623
  } = _ref8;
14756
14624
  return /*#__PURE__*/React__default.createElement(MenubarRoot, {
14757
14625
  orientation: orientation,
@@ -14789,7 +14657,7 @@ var MenubarView = _ref8 => {
14789
14657
  })))))));
14790
14658
  };
14791
14659
 
14792
- var _excluded$P = ["items", "orientation", "size", "variant", "defaultActiveMenuId", "defaultOpenMenuId", "views"];
14660
+ var _excluded$R = ["items", "orientation", "size", "variant", "defaultActiveMenuId", "defaultOpenMenuId", "views"];
14793
14661
  /**
14794
14662
  * Menubar component for creating horizontal or vertical menu bars with dropdown menus.
14795
14663
  */
@@ -14803,7 +14671,7 @@ var MenubarComponent = _ref => {
14803
14671
  defaultOpenMenuId = null,
14804
14672
  views
14805
14673
  } = _ref,
14806
- props = _objectWithoutPropertiesLoose(_ref, _excluded$P);
14674
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$R);
14807
14675
  var {
14808
14676
  activeMenuId,
14809
14677
  setActiveMenuId,
@@ -14959,7 +14827,7 @@ var DisabledButtonStyles = {
14959
14827
  }
14960
14828
  };
14961
14829
 
14962
- 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"];
14963
14831
  var PaginationView = _ref => {
14964
14832
  var {
14965
14833
  currentPage,
@@ -14990,7 +14858,7 @@ var PaginationView = _ref => {
14990
14858
  visiblePageNumbers,
14991
14859
  views
14992
14860
  } = _ref,
14993
- props = _objectWithoutPropertiesLoose(_ref, _excluded$Q);
14861
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$S);
14994
14862
  var handlePageChange = page => {
14995
14863
  if (page < 1 || page > totalPages || page === currentPage) {
14996
14864
  return;
@@ -15109,7 +14977,7 @@ var PaginationView = _ref => {
15109
14977
  }, option.label))))));
15110
14978
  };
15111
14979
 
15112
- 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"];
15113
14981
  /**
15114
14982
  * Pagination component for navigating through pages of content.
15115
14983
  */
@@ -15130,7 +14998,7 @@ var PaginationComponent = _ref => {
15130
14998
  shape = 'rounded',
15131
14999
  views
15132
15000
  } = _ref,
15133
- props = _objectWithoutPropertiesLoose(_ref, _excluded$R);
15001
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$T);
15134
15002
  var {
15135
15003
  visiblePageNumbers
15136
15004
  } = usePaginationState(currentPage, totalPages, maxPageButtons);
@@ -15166,11 +15034,16 @@ var Pagination = PaginationComponent;
15166
15034
  /**
15167
15035
  * Variant configurations for the Separator component
15168
15036
  */
15169
- var SeparatorVariants = {
15170
- solid: 'solid',
15171
- dashed: 'dashed',
15172
- 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
15173
15044
  };
15045
+ // For backward compatibility
15046
+ var SeparatorVariants = /*#__PURE__*/getSeparator();
15174
15047
  /**
15175
15048
  * Thickness configurations for the Separator component
15176
15049
  * Following the 4px grid system
@@ -15195,21 +15068,23 @@ var DefaultSeparatorStyles = {
15195
15068
  }
15196
15069
  };
15197
15070
 
15198
- var _excluded$S = ["orientation", "variant", "thickness", "color", "spacing", "label", "decorative", "views"];
15071
+ var _excluded$U = ["orientation", "variant", "thickness", "color", "spacing", "label", "decorative", "views", "themeMode"];
15199
15072
  var SeparatorView = _ref => {
15200
15073
  var {
15201
15074
  orientation = 'horizontal',
15202
15075
  variant = 'solid',
15203
15076
  thickness = 'thin',
15204
15077
  color,
15205
- spacing = '16px',
15078
+ spacing = '0px',
15206
15079
  label,
15207
15080
  decorative = false,
15208
15081
  views
15209
15082
  } = _ref,
15210
- props = _objectWithoutPropertiesLoose(_ref, _excluded$S);
15083
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$U);
15211
15084
  // Access theme if needed for future enhancements
15212
- var {} = appStudio.useTheme();
15085
+ var {
15086
+ themeMode
15087
+ } = appStudio.useTheme();
15213
15088
  // Use provided color or default from theme
15214
15089
  var separatorColor = color || 'color.gray.200';
15215
15090
  var borderStyle = SeparatorVariants[variant];
@@ -15227,7 +15102,7 @@ var SeparatorView = _ref => {
15227
15102
  alignItems: "center",
15228
15103
  justifyContent: "center",
15229
15104
  width: "100%",
15230
- margin: spacing
15105
+ padding: spacing
15231
15106
  }, ariaProps, props), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
15232
15107
  height: "0px",
15233
15108
  flexGrow: 1,
@@ -15250,7 +15125,7 @@ var SeparatorView = _ref => {
15250
15125
  borderTopWidth: borderWidth,
15251
15126
  borderTopStyle: borderStyle,
15252
15127
  borderTopColor: separatorColor,
15253
- margin: spacing
15128
+ padding: spacing
15254
15129
  }, DefaultSeparatorStyles.container, ariaProps, views == null ? void 0 : views.container, props));
15255
15130
  }
15256
15131
  // For vertical separator
@@ -15260,7 +15135,7 @@ var SeparatorView = _ref => {
15260
15135
  borderLeftWidth: borderWidth,
15261
15136
  borderLeftStyle: borderStyle,
15262
15137
  borderLeftColor: separatorColor,
15263
- margin: spacing
15138
+ padding: spacing
15264
15139
  }, DefaultSeparatorStyles.container, ariaProps, views == null ? void 0 : views.container, props));
15265
15140
  };
15266
15141
 
@@ -15365,37 +15240,42 @@ var SidebarSizes = {
15365
15240
  /**
15366
15241
  * Variant styles for the Sidebar component
15367
15242
  */
15368
- var SidebarVariants = {
15369
- default: {
15370
- backgroundColor: 'white',
15371
- color: 'color.gray.800',
15372
- transition: 'all 0.2s ease'
15373
- },
15374
- filled: {
15375
- backgroundColor: 'color.gray.100',
15376
- color: 'color.gray.800',
15377
- transition: 'all 0.2s ease'
15378
- },
15379
- outline: {
15380
- backgroundColor: 'white',
15381
- borderWidth: '1px',
15382
- borderStyle: 'solid',
15383
- borderColor: 'color.gray.200',
15384
- color: 'color.gray.800',
15385
- transition: 'all 0.2s ease'
15386
- },
15387
- subtle: {
15388
- backgroundColor: 'color.gray.50',
15389
- color: 'color.gray.800',
15390
- transition: 'all 0.2s ease'
15391
- },
15392
- elevated: {
15393
- backgroundColor: 'white',
15394
- boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.1)',
15395
- color: 'color.gray.800',
15396
- transition: 'all 0.2s ease'
15397
- }
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
15398
15276
  };
15277
+ // For backward compatibility
15278
+ var SidebarVariants = /*#__PURE__*/getSidebar();
15399
15279
  /**
15400
15280
  * Position styles for the Sidebar component
15401
15281
  */
@@ -15438,10 +15318,10 @@ var SidebarTransitions = {
15438
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)'
15439
15319
  };
15440
15320
 
15441
- var _excluded$T = ["children", "showToggleButton", "views"],
15321
+ var _excluded$V = ["children", "showToggleButton", "views"],
15442
15322
  _excluded2$e = ["children", "views"],
15443
15323
  _excluded3$a = ["children", "views"],
15444
- _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"];
15445
15325
  // Create context for the Sidebar
15446
15326
  var SidebarContext = /*#__PURE__*/React.createContext({
15447
15327
  isExpanded: true,
@@ -15471,7 +15351,7 @@ var SidebarHeader = _ref2 => {
15471
15351
  showToggleButton = true,
15472
15352
  views
15473
15353
  } = _ref2,
15474
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$T);
15354
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$V);
15475
15355
  var {
15476
15356
  isExpanded,
15477
15357
  toggleExpanded,
@@ -15626,7 +15506,7 @@ var SidebarView = _ref5 => {
15626
15506
  }))));
15627
15507
  };
15628
15508
 
15629
- 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"];
15630
15510
  /**
15631
15511
  * Sidebar component for creating collapsible, themeable and customizable sidebars.
15632
15512
  */
@@ -15648,7 +15528,7 @@ var SidebarComponent = _ref => {
15648
15528
  breakpointBehavior = 'overlay',
15649
15529
  views
15650
15530
  } = _ref,
15651
- props = _objectWithoutPropertiesLoose(_ref, _excluded$U);
15531
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$W);
15652
15532
  var {
15653
15533
  isExpanded,
15654
15534
  toggleExpanded,
@@ -16064,35 +15944,40 @@ var getHandleSizeStyles = (size, orientation) => {
16064
15944
  };
16065
15945
  return sizes[size];
16066
15946
  };
16067
- var HandleVariants = {
16068
- default: {
16069
- backgroundColor: 'transparent',
16070
- _hover: {
16071
- backgroundColor: 'color.gray.200'
16072
- },
16073
- _active: {
16074
- backgroundColor: 'color.gray.300'
16075
- }
16076
- },
16077
- subtle: {
16078
- backgroundColor: 'transparent',
16079
- _hover: {
16080
- 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
+ }
16081
15957
  },
16082
- _active: {
16083
- backgroundColor: 'color.gray.200'
16084
- }
16085
- },
16086
- prominent: {
16087
- backgroundColor: 'color.gray.100',
16088
- _hover: {
16089
- 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
+ }
16090
15966
  },
16091
- _active: {
16092
- 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
+ }
16093
15975
  }
16094
- }
15976
+ };
15977
+ // Add dark mode conditional styling here
16095
15978
  };
15979
+ // For backward compatibility
15980
+ var HandleVariants = /*#__PURE__*/getHandle();
16096
15981
  var HandleIconStyles = {
16097
15982
  horizontal: {
16098
15983
  width: '2px',
@@ -16108,7 +15993,7 @@ var HandleIconStyles = {
16108
15993
  }
16109
15994
  };
16110
15995
 
16111
- 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"],
16112
15997
  _excluded2$f = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
16113
15998
  _excluded3$b = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "views"];
16114
15999
  // Create context for the Resizable component
@@ -16153,7 +16038,7 @@ var ResizablePanel = _ref2 => {
16153
16038
  onCollapseChange,
16154
16039
  views
16155
16040
  } = _ref2,
16156
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$V);
16041
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$X);
16157
16042
  var {
16158
16043
  orientation,
16159
16044
  registerPanel,
@@ -16368,7 +16253,7 @@ var ResizableView = _ref4 => {
16368
16253
  }, ResizableOrientations[orientation], views == null ? void 0 : views.container, props), children);
16369
16254
  };
16370
16255
 
16371
- 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"];
16372
16257
  /**
16373
16258
  * Resizable component for creating resizable panel groups and layouts.
16374
16259
  */
@@ -16388,7 +16273,7 @@ var ResizableComponent = _ref => {
16388
16273
  keyboardResizeBy = 10,
16389
16274
  views
16390
16275
  } = _ref,
16391
- props = _objectWithoutPropertiesLoose(_ref, _excluded$W);
16276
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$Y);
16392
16277
  var {
16393
16278
  isResizing,
16394
16279
  setIsResizing,
@@ -16453,7 +16338,7 @@ Resizable.Handle = ResizableHandle;
16453
16338
  * Theme configurations for the Toast component
16454
16339
  * Following the design system color palette
16455
16340
  */
16456
- var Themes$2 = {
16341
+ var Themes$1 = {
16457
16342
  info: {
16458
16343
  container: {
16459
16344
  backgroundColor: 'color.blue.50',
@@ -16646,10 +16531,11 @@ var ToastView = _ref => {
16646
16531
  render,
16647
16532
  icon: customIcon,
16648
16533
  id,
16649
- isVisible = true
16534
+ isVisible = true,
16535
+ themeMode: elementMode
16650
16536
  } = _ref;
16651
16537
  // We don't need the auto-close timer here anymore as it's handled in the store
16652
- var Theme = theme != null ? theme : Themes$2;
16538
+ var Theme = theme != null ? theme : Themes$1;
16653
16539
  // Get the appropriate icon based on the variant
16654
16540
  var getIcon = () => {
16655
16541
  // If a custom icon is provided, use it
@@ -17029,29 +16915,34 @@ var CommandSizes = {
17029
16915
  maxHeight: '500px'
17030
16916
  }
17031
16917
  };
17032
- var CommandVariants = {
17033
- default: {
17034
- backgroundColor: 'white',
17035
- borderWidth: '1px',
17036
- borderStyle: 'solid',
17037
- borderColor: 'color.gray.200',
17038
- boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
17039
- },
17040
- filled: {
17041
- backgroundColor: 'color.gray.50',
17042
- borderWidth: '1px',
17043
- borderStyle: 'solid',
17044
- borderColor: 'color.gray.200',
17045
- boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
17046
- },
17047
- outline: {
17048
- backgroundColor: 'white',
17049
- borderWidth: '2px',
17050
- borderStyle: 'solid',
17051
- borderColor: 'color.gray.300',
17052
- boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
17053
- }
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
17054
16943
  };
16944
+ // For backward compatibility
16945
+ var CommandVariants = /*#__PURE__*/getCommand();
17055
16946
  var CommandInputStyles = {
17056
16947
  display: 'flex',
17057
16948
  alignItems: 'center',
@@ -17147,7 +17038,7 @@ var CommandFooterStyles = {
17147
17038
  color: 'color.gray.500'
17148
17039
  };
17149
17040
 
17150
- var _excluded$X = ["value", "onValueChange", "placeholder", "views"],
17041
+ var _excluded$Z = ["value", "onValueChange", "placeholder", "views"],
17151
17042
  _excluded2$g = ["children", "views"],
17152
17043
  _excluded3$c = ["heading", "children", "views"],
17153
17044
  _excluded4$a = ["item", "selected", "onSelect", "views"],
@@ -17179,7 +17070,7 @@ var CommandInput = _ref2 => {
17179
17070
  placeholder = 'Type a command or search...',
17180
17071
  views
17181
17072
  } = _ref2,
17182
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$X);
17073
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$Z);
17183
17074
  var inputRef = React.useRef(null);
17184
17075
  // Focus input when component mounts
17185
17076
  React__default.useEffect(() => {
@@ -17367,7 +17258,7 @@ var CommandView = _ref7 => {
17367
17258
  })))), footer && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandFooterStyles, views == null ? void 0 : views.footer), footer)))));
17368
17259
  };
17369
17260
 
17370
- 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"];
17371
17262
  /**
17372
17263
  * Command component for displaying a command palette with search functionality.
17373
17264
  */
@@ -17385,7 +17276,7 @@ var CommandComponent = _ref => {
17385
17276
  footer,
17386
17277
  views
17387
17278
  } = _ref,
17388
- props = _objectWithoutPropertiesLoose(_ref, _excluded$Y);
17279
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$_);
17389
17280
  var {
17390
17281
  search,
17391
17282
  setSearch,
@@ -17542,23 +17433,28 @@ var TooltipSizes = {
17542
17433
  maxWidth: '300px'
17543
17434
  }
17544
17435
  };
17545
- var TooltipVariants = {
17546
- default: {
17547
- backgroundColor: 'color.gray.800',
17548
- color: 'color.white'
17549
- },
17550
- light: {
17551
- backgroundColor: 'color.white',
17552
- color: 'color.gray.800',
17553
- borderWidth: '1px',
17554
- borderStyle: 'solid',
17555
- borderColor: 'color.gray.200'
17556
- },
17557
- dark: {
17558
- backgroundColor: 'color.black',
17559
- color: 'color.white'
17560
- }
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
17561
17455
  };
17456
+ // For backward compatibility
17457
+ var TooltipVariants = /*#__PURE__*/getTooltip();
17562
17458
  var getTooltipPositionStyles = (position, align) => {
17563
17459
  var baseStyles = {
17564
17460
  position: 'absolute',
@@ -17667,9 +17563,9 @@ var getArrowStyles = position => {
17667
17563
  }
17668
17564
  };
17669
17565
 
17670
- var _excluded$Z = ["children", "views", "asChild"],
17566
+ var _excluded$$ = ["children", "views", "asChild"],
17671
17567
  _excluded2$h = ["children", "views"],
17672
- _excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views"];
17568
+ _excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
17673
17569
  // Create context for the Tooltip
17674
17570
  var TooltipContext = /*#__PURE__*/React.createContext({
17675
17571
  isOpen: false,
@@ -17703,7 +17599,7 @@ var TooltipTrigger = _ref2 => {
17703
17599
  views,
17704
17600
  asChild = false
17705
17601
  } = _ref2,
17706
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$Z);
17602
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$$);
17707
17603
  var {
17708
17604
  openTooltip,
17709
17605
  closeTooltip,
@@ -17796,7 +17692,7 @@ var TooltipView = _ref4 => {
17796
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)))));
17797
17693
  };
17798
17694
 
17799
- 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"];
17800
17696
  /**
17801
17697
  * Tooltip component for displaying additional information when hovering over an element.
17802
17698
  * Supports configurable positions, delays, and styling.
@@ -17816,7 +17712,7 @@ var TooltipComponent = _ref => {
17816
17712
  isDisabled = false,
17817
17713
  views
17818
17714
  } = _ref,
17819
- props = _objectWithoutPropertiesLoose(_ref, _excluded$_);
17715
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$10);
17820
17716
  var tooltipState = useTooltipState({
17821
17717
  defaultOpen,
17822
17718
  openDelay,