@app-studio/web 0.8.78 → 0.8.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/components/Accordion/Accordion/Accordion.view.d.ts +2 -1
  2. package/dist/components/Alert/Alert/Alert.props.d.ts +7 -1
  3. package/dist/components/Alert/Alert/Alert.style.d.ts +9 -1
  4. package/dist/components/Alert/Alert/Alert.view.d.ts +1 -1
  5. package/dist/components/Alert/Alert.d.ts +1 -1
  6. package/dist/components/Alert/examples/darkMode.d.ts +2 -0
  7. package/dist/components/Badge/Badge/Badge.style.d.ts +5 -1
  8. package/dist/components/Badge/Badge.d.ts +1 -1
  9. package/dist/components/Badge/examples/darkMode.d.ts +2 -0
  10. package/dist/components/Badge/examples/index.d.ts +1 -0
  11. package/dist/components/Card/Card/Card.style.d.ts +7 -3
  12. package/dist/components/Card/examples/darkModeExample.d.ts +2 -0
  13. package/dist/components/Command/Command/Command.style.d.ts +1 -0
  14. package/dist/components/ContextMenu/ContextMenu/ContextMenu.view.d.ts +2 -1
  15. package/dist/components/DragAndDrop/DragAndDrop/DragAndDrop.props.d.ts +1 -1
  16. package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.view.d.ts +2 -1
  17. package/dist/components/Menubar/Menubar/Menubar.view.d.ts +2 -1
  18. package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.view.d.ts +2 -1
  19. package/dist/components/Resizable/Resizable/Resizable.style.d.ts +1 -0
  20. package/dist/components/Separator/Separator/Separator.style.d.ts +1 -0
  21. package/dist/components/Sidebar/Sidebar/Sidebar.style.d.ts +1 -0
  22. package/dist/components/Slider/Slider/Slider.style.d.ts +1 -0
  23. package/dist/components/Table/Table/Table.props.d.ts +2 -2
  24. package/dist/components/Toast/Toast/Toast.props.d.ts +2 -1
  25. package/dist/components/Tooltip/Tooltip/Tooltip.style.d.ts +1 -0
  26. package/dist/components/Tooltip/Tooltip/Tooltip.view.d.ts +2 -1
  27. package/dist/web.cjs.development.js +520 -503
  28. package/dist/web.cjs.development.js.map +1 -1
  29. package/dist/web.cjs.production.min.js +1 -1
  30. package/dist/web.cjs.production.min.js.map +1 -1
  31. package/dist/web.esm.js +520 -503
  32. package/dist/web.esm.js.map +1 -1
  33. package/dist/web.umd.development.js +520 -503
  34. package/dist/web.umd.development.js.map +1 -1
  35. package/dist/web.umd.production.min.js +1 -1
  36. package/dist/web.umd.production.min.js.map +1 -1
  37. package/package.json +1 -1
package/dist/web.esm.js CHANGED
@@ -164,7 +164,7 @@ var AccordionVariants = {
164
164
  var _excluded = ["value", "children", "isDisabled", "views"],
165
165
  _excluded2 = ["children", "value", "isExpanded", "isDisabled", "triggerId", "contentId", "views", "asChild"],
166
166
  _excluded3 = ["children", "isExpanded", "isDisabled", "triggerId", "contentId", "views"],
167
- _excluded4 = ["children", "shape", "variant", "views", "baseId", "type", "collapsible"];
167
+ _excluded4 = ["children", "shape", "variant", "views", "baseId", "type", "collapsible", "themeMode"];
168
168
  // Create context for the Accordion
169
169
  var AccordionContext = /*#__PURE__*/createContext({
170
170
  expandedItems: [],
@@ -2810,93 +2810,104 @@ var Icon = {
2810
2810
  * - Transitions: Subtle animations
2811
2811
  */
2812
2812
  /**
2813
- * Theme styles for different alert variants
2813
+ * Get theme styles for different alert variants based on theme mode
2814
2814
  */
2815
- var Themes = {
2816
- default: {
2817
- container: {
2818
- backgroundColor: 'color.gray.50',
2819
- borderColor: 'color.gray.200',
2820
- boxShadow: '0 1px 2px rgba(0, 0, 0, 0.05)'
2821
- },
2822
- content: {
2823
- color: 'color.gray.700'
2824
- },
2825
- icon: {
2826
- color: 'color.gray.500'
2827
- }
2828
- },
2829
- info: {
2830
- container: {
2831
- backgroundColor: 'color.blue.50',
2832
- borderColor: 'color.blue.200',
2833
- boxShadow: '0 1px 2px rgba(59, 130, 246, 0.05)'
2834
- },
2835
- content: {
2836
- color: 'color.blue.700'
2837
- },
2838
- icon: {
2839
- color: 'color.blue.500'
2840
- }
2841
- },
2842
- success: {
2843
- container: {
2844
- backgroundColor: 'color.green.50',
2845
- borderColor: 'color.green.200',
2846
- boxShadow: '0 1px 2px rgba(34, 197, 94, 0.05)'
2847
- },
2848
- content: {
2849
- color: 'color.green.700'
2850
- },
2851
- icon: {
2852
- color: 'color.green.500'
2853
- }
2854
- },
2855
- error: {
2856
- container: {
2857
- backgroundColor: 'color.red.50',
2858
- borderColor: 'color.red.200',
2859
- boxShadow: '0 1px 2px rgba(239, 68, 68, 0.05)'
2815
+ var getThemes = themeMode => {
2816
+ var isDarkMode = themeMode === 'dark';
2817
+ return {
2818
+ default: {
2819
+ container: {
2820
+ backgroundColor: isDarkMode ? 'color.gray.800' : 'color.gray.50',
2821
+ borderColor: isDarkMode ? 'color.gray.700' : 'color.gray.200',
2822
+ boxShadow: isDarkMode ? '0 1px 2px rgba(0, 0, 0, 0.2)' : '0 1px 2px rgba(0, 0, 0, 0.05)'
2823
+ },
2824
+ content: {
2825
+ color: isDarkMode ? 'color.gray.300' : 'color.gray.700'
2826
+ },
2827
+ icon: {
2828
+ color: isDarkMode ? 'color.gray.400' : 'color.gray.500'
2829
+ }
2860
2830
  },
2861
- content: {
2862
- color: 'color.red.700'
2831
+ info: {
2832
+ container: {
2833
+ backgroundColor: isDarkMode ? 'color.blue.900' : 'color.blue.50',
2834
+ borderColor: isDarkMode ? 'color.blue.800' : 'color.blue.200',
2835
+ boxShadow: isDarkMode ? '0 1px 2px rgba(59, 130, 246, 0.2)' : '0 1px 2px rgba(59, 130, 246, 0.05)'
2836
+ },
2837
+ content: {
2838
+ color: isDarkMode ? 'color.blue.300' : 'color.blue.700'
2839
+ },
2840
+ icon: {
2841
+ color: isDarkMode ? 'color.blue.400' : 'color.blue.500'
2842
+ }
2863
2843
  },
2864
- icon: {
2865
- color: 'color.red.500'
2866
- }
2867
- },
2868
- warning: {
2869
- container: {
2870
- backgroundColor: 'color.orange.50',
2871
- borderColor: 'color.orange.200',
2872
- boxShadow: '0 1px 2px rgba(249, 115, 22, 0.05)'
2844
+ success: {
2845
+ container: {
2846
+ backgroundColor: isDarkMode ? 'color.green.900' : 'color.green.50',
2847
+ borderColor: isDarkMode ? 'color.green.800' : 'color.green.200',
2848
+ boxShadow: isDarkMode ? '0 1px 2px rgba(34, 197, 94, 0.2)' : '0 1px 2px rgba(34, 197, 94, 0.05)'
2849
+ },
2850
+ content: {
2851
+ color: isDarkMode ? 'color.green.300' : 'color.green.700'
2852
+ },
2853
+ icon: {
2854
+ color: isDarkMode ? 'color.green.400' : 'color.green.500'
2855
+ }
2873
2856
  },
2874
- content: {
2875
- color: 'color.orange.700'
2857
+ error: {
2858
+ container: {
2859
+ backgroundColor: isDarkMode ? 'color.red.900' : 'color.red.50',
2860
+ borderColor: isDarkMode ? 'color.red.800' : 'color.red.200',
2861
+ boxShadow: isDarkMode ? '0 1px 2px rgba(239, 68, 68, 0.2)' : '0 1px 2px rgba(239, 68, 68, 0.05)'
2862
+ },
2863
+ content: {
2864
+ color: isDarkMode ? 'color.red.300' : 'color.red.700'
2865
+ },
2866
+ icon: {
2867
+ color: isDarkMode ? 'color.red.400' : 'color.red.500'
2868
+ }
2876
2869
  },
2877
- icon: {
2878
- color: 'color.orange.500'
2870
+ warning: {
2871
+ container: {
2872
+ backgroundColor: isDarkMode ? 'color.orange.900' : 'color.orange.50',
2873
+ borderColor: isDarkMode ? 'color.orange.800' : 'color.orange.200',
2874
+ boxShadow: isDarkMode ? '0 1px 2px rgba(249, 115, 22, 0.2)' : '0 1px 2px rgba(249, 115, 22, 0.05)'
2875
+ },
2876
+ content: {
2877
+ color: isDarkMode ? 'color.orange.300' : 'color.orange.700'
2878
+ },
2879
+ icon: {
2880
+ color: isDarkMode ? 'color.orange.400' : 'color.orange.500'
2881
+ }
2879
2882
  }
2880
- }
2883
+ };
2881
2884
  };
2882
2885
 
2886
+ var _excluded$4 = ["icon", "title", "views", "description", "variant", "themeMode"];
2883
2887
  /**
2884
2888
  * Alert component that displays important messages to users
2885
2889
  */
2886
2890
  var AlertView = _ref => {
2887
2891
  var {
2888
- icon,
2889
- title,
2890
- views,
2891
- description,
2892
- variant = 'default'
2893
- } = _ref;
2892
+ icon,
2893
+ title,
2894
+ views,
2895
+ description,
2896
+ variant = 'default',
2897
+ themeMode: elementMode
2898
+ } = _ref,
2899
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
2900
+ var {
2901
+ themeMode
2902
+ } = useTheme();
2903
+ var currentThemeMode = elementMode || themeMode;
2904
+ var themes = getThemes(currentThemeMode);
2894
2905
  // Select the appropriate icon based on the variant
2895
2906
  var getIcon = () => {
2896
2907
  var _views$icon$color, _views$icon;
2897
2908
  if (icon) return icon;
2898
- // Use the theme color directly from Themes
2899
- 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;
2909
+ // Use the theme color directly from themes
2910
+ 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;
2900
2911
  var iconProps = {
2901
2912
  size: 20,
2902
2913
  color: iconColor
@@ -2927,12 +2938,12 @@ var AlertView = _ref => {
2927
2938
  ,
2928
2939
  borderWidth: "1px",
2929
2940
  borderStyle: "solid",
2930
- borderColor: Themes[variant].container.borderColor,
2931
- backgroundColor: Themes[variant].container.backgroundColor,
2932
- boxShadow: Themes[variant].container.containerShadow,
2941
+ borderColor: themes[variant].container.borderColor,
2942
+ backgroundColor: themes[variant].container.backgroundColor,
2943
+ boxShadow: themes[variant].container.boxShadow,
2933
2944
  // Animation
2934
2945
  transition: "all 0.2s ease"
2935
- }, views == null ? void 0 : views.container), /*#__PURE__*/React.createElement(View, Object.assign({
2946
+ }, views == null ? void 0 : views.container, props), /*#__PURE__*/React.createElement(View, Object.assign({
2936
2947
  alignSelf: "flex-start",
2937
2948
  marginTop: "2px"
2938
2949
  }, views == null ? void 0 : views.icon), getIcon()), /*#__PURE__*/React.createElement(Vertical, {
@@ -2942,37 +2953,22 @@ var AlertView = _ref => {
2942
2953
  fontWeight: "600" // Semi-bold
2943
2954
  ,
2944
2955
  lineHeight: "24px",
2945
- color: Themes[variant].content.color
2956
+ color: themes[variant].content.color
2946
2957
  }, views == null ? void 0 : views.title), title), /*#__PURE__*/React.createElement(Text, Object.assign({
2947
2958
  fontSize: "14px",
2948
2959
  fontWeight: "400" // Regular
2949
2960
  ,
2950
2961
  lineHeight: "20px",
2951
- color: Themes[variant].content.color
2962
+ color: themes[variant].content.color
2952
2963
  }, views == null ? void 0 : views.description), description)));
2953
2964
  };
2954
2965
 
2955
- // Definition of the AlertComponent functional component with destructured props.
2956
- var AlertComponent = _ref => {
2957
- var {
2958
- icon,
2959
- title,
2960
- views,
2961
- description,
2962
- variant
2963
- } = _ref;
2964
- return /*#__PURE__*/React.createElement(AlertView, {
2965
- icon: icon,
2966
- title: title,
2967
- views: views,
2968
- description: description,
2969
- variant: variant
2970
- });
2971
- };
2966
+ // Definition of the AlertComponent functional component with props.
2967
+ var AlertComponent = props => /*#__PURE__*/React.createElement(AlertView, Object.assign({}, props));
2972
2968
  // Exporting the AlertComponent as 'Alert' for use in other parts of the application.
2973
2969
  var Alert = AlertComponent;
2974
2970
 
2975
- var _excluded$4 = ["ratio", "children", "views"];
2971
+ var _excluded$5 = ["ratio", "children", "views"];
2976
2972
  // Declaration of a functional component named AspectRatioView.
2977
2973
  var AspectRatioView = _ref => {
2978
2974
  var {
@@ -2983,7 +2979,7 @@ var AspectRatioView = _ref => {
2983
2979
  views
2984
2980
  // Spread the rest of the props to inherit additional properties.
2985
2981
  } = _ref,
2986
- props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
2982
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
2987
2983
  return /*#__PURE__*/React.createElement(Center, Object.assign({
2988
2984
  width: '100%',
2989
2985
  position: "relative",
@@ -2999,14 +2995,14 @@ var AspectRatioView = _ref => {
2999
2995
  }, views == null ? void 0 : views.view), children));
3000
2996
  };
3001
2997
 
3002
- var _excluded$5 = ["ratio", "children"];
2998
+ var _excluded$6 = ["ratio", "children"];
3003
2999
  // Declaration of the AspectRatioComponent functional component with destructured props.
3004
3000
  var AspectRatioComponent = _ref => {
3005
3001
  var {
3006
3002
  ratio,
3007
3003
  children
3008
3004
  } = _ref,
3009
- props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
3005
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
3010
3006
  // Beginning of the return statement in the functional component.
3011
3007
  return /*#__PURE__*/React.createElement(AspectRatioView, Object.assign({
3012
3008
  ratio: ratio
@@ -3056,17 +3052,11 @@ var DefaultAvatarStyles = {
3056
3052
  borderColor: 'transparent',
3057
3053
  backgroundColor: 'color.gray.100',
3058
3054
  boxShadow: '0px 2px 4px rgba(0, 0, 0, 0.1)',
3059
- transition: 'all 0.2s ease',
3060
- '@media (prefers-color-scheme: dark)': {
3061
- backgroundColor: 'color.gray.700'
3062
- }
3055
+ transition: 'all 0.2s ease'
3063
3056
  },
3064
3057
  fallback: {
3065
3058
  fontWeight: '500',
3066
- color: 'color.gray.600',
3067
- '@media (prefers-color-scheme: dark)': {
3068
- color: 'color.gray.300'
3069
- }
3059
+ color: 'color.gray.600'
3070
3060
  },
3071
3061
  image: {
3072
3062
  objectFit: 'cover',
@@ -3237,58 +3227,69 @@ var PositionStyles = {
3237
3227
  }
3238
3228
  };
3239
3229
  /**
3240
- * Badge variants with consistent styling
3230
+ * Get badge variants with consistent styling based on theme mode
3241
3231
  */
3242
- var BadgeVariants = {
3243
- filled: {
3244
- backgroundColor: 'theme.primary',
3245
- color: 'color.white',
3246
- borderWidth: '1px',
3247
- borderStyle: 'solid',
3248
- borderColor: 'transparent',
3249
- transition: 'all 0.2s ease'
3250
- },
3251
- outline: {
3252
- backgroundColor: 'transparent',
3253
- borderWidth: '1px',
3254
- borderStyle: 'solid',
3255
- borderColor: 'theme.primary',
3256
- color: 'theme.primary',
3257
- transition: 'all 0.2s ease'
3258
- },
3259
- link: {
3260
- backgroundColor: 'transparent',
3261
- borderWidth: '1px',
3262
- borderStyle: 'solid',
3263
- borderColor: 'transparent',
3264
- color: 'theme.primary',
3265
- textDecoration: 'underline',
3266
- textUnderlineOffset: '2px',
3267
- transition: 'all 0.2s ease'
3268
- },
3269
- ghost: {
3270
- backgroundColor: 'transparent',
3271
- color: 'color.gray.500',
3272
- borderWidth: '1px',
3273
- borderStyle: 'solid',
3274
- borderColor: 'transparent',
3275
- transition: 'all 0.2s ease'
3276
- }
3232
+ var getBadgeVariants = themeMode => {
3233
+ var isDarkMode = themeMode === 'dark';
3234
+ return {
3235
+ filled: {
3236
+ backgroundColor: 'theme.primary',
3237
+ color: isDarkMode ? 'color.gray.900' : 'color.white',
3238
+ borderWidth: '1px',
3239
+ borderStyle: 'solid',
3240
+ borderColor: 'transparent',
3241
+ transition: 'all 0.2s ease'
3242
+ },
3243
+ outline: {
3244
+ backgroundColor: 'transparent',
3245
+ borderWidth: '1px',
3246
+ borderStyle: 'solid',
3247
+ borderColor: 'theme.primary',
3248
+ color: 'theme.primary',
3249
+ transition: 'all 0.2s ease'
3250
+ },
3251
+ link: {
3252
+ backgroundColor: 'transparent',
3253
+ borderWidth: '1px',
3254
+ borderStyle: 'solid',
3255
+ borderColor: 'transparent',
3256
+ color: 'theme.primary',
3257
+ textDecoration: 'underline',
3258
+ textUnderlineOffset: '2px',
3259
+ transition: 'all 0.2s ease'
3260
+ },
3261
+ ghost: {
3262
+ backgroundColor: 'transparent',
3263
+ color: isDarkMode ? 'color.gray.400' : 'color.gray.500',
3264
+ borderWidth: '1px',
3265
+ borderStyle: 'solid',
3266
+ borderColor: 'transparent',
3267
+ transition: 'all 0.2s ease'
3268
+ }
3269
+ };
3277
3270
  };
3278
3271
 
3272
+ var _excluded$7 = ["content", "position", "shape", "variant", "size", "views", "themeMode"];
3279
3273
  // No need to import ViewProps as it's not used directly
3280
3274
  /**
3281
3275
  * Badge View Component
3282
3276
  */
3283
3277
  var BadgeView = _ref => {
3284
3278
  var {
3285
- content,
3286
- position,
3287
- shape = 'pillShaped',
3288
- variant = 'filled',
3289
- size = 'md',
3290
- views
3291
- } = _ref;
3279
+ content,
3280
+ position,
3281
+ shape = 'pillShaped',
3282
+ variant = 'filled',
3283
+ size = 'md',
3284
+ views,
3285
+ themeMode: elementMode
3286
+ } = _ref,
3287
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
3288
+ var {
3289
+ themeMode
3290
+ } = useTheme();
3291
+ var currentThemeMode = elementMode || themeMode;
3292
+ var variantStyles = getBadgeVariants(currentThemeMode)[variant];
3292
3293
  // Combine styles for the badge
3293
3294
  var combinedStyles = Object.assign({
3294
3295
  // Base styles
@@ -3296,13 +3297,13 @@ var BadgeView = _ref => {
3296
3297
  display: 'flex',
3297
3298
  alignItems: 'center',
3298
3299
  justifyContent: 'center',
3299
- backgrounColor: 'color.black',
3300
+ backgroundColor: 'color.black',
3300
3301
  // Apply shape, size, and variant styles
3301
3302
  borderRadius: BadgeShapes[shape]
3302
- }, BadgeSizes[size], BadgeVariants[variant], position ? PositionStyles[position] : {}, views == null ? void 0 : views.container);
3303
+ }, BadgeSizes[size], variantStyles, position ? PositionStyles[position] : {}, views == null ? void 0 : views.container);
3303
3304
  return /*#__PURE__*/React.createElement(Center, Object.assign({
3304
3305
  role: "badge"
3305
- }, combinedStyles), /*#__PURE__*/React.createElement(Text, Object.assign({
3306
+ }, combinedStyles, props), /*#__PURE__*/React.createElement(Text, Object.assign({
3306
3307
  role: "badgeText",
3307
3308
  fontWeight: "500" // Medium weight for better readability
3308
3309
  ,
@@ -3312,29 +3313,8 @@ var BadgeView = _ref => {
3312
3313
  }), content || ''));
3313
3314
  };
3314
3315
 
3315
- // Importing type definitions for BadgeProps that will be used to type-check the Badge component's props.
3316
- var Badge = _ref => {
3317
- var {
3318
- // Importing the BadgeView component which is the presentation component for Badge.
3319
- content,
3320
- // Exporting the Badge as a functional component from this module.
3321
- shape,
3322
- // Destructuring the props in the component function parameter list, to directly access individual properties.
3323
- position,
3324
- // Passing all the destructured props to the BadgeView component to maintain the same API surface.
3325
- variant,
3326
- size,
3327
- views
3328
- } = _ref;
3329
- return /*#__PURE__*/React.createElement(BadgeView, {
3330
- content: content,
3331
- shape: shape,
3332
- position: position,
3333
- variant: variant,
3334
- size: size,
3335
- views: views
3336
- });
3337
- };
3316
+ // Badge component that displays a small indicator, typically used for counts or status
3317
+ var Badge = props => /*#__PURE__*/React.createElement(BadgeView, Object.assign({}, props));
3338
3318
 
3339
3319
  var useButtonState = () => {
3340
3320
  var [isHovered, setIsHovered] = React.useState(false);
@@ -3366,7 +3346,7 @@ var IconSizes = {
3366
3346
  xl: 20
3367
3347
  };
3368
3348
 
3369
- var _excluded$6 = ["children", "to", "iconSize", "underline", "isHovered", "isExternal", "views", "setIsHovered"];
3349
+ var _excluded$8 = ["children", "to", "iconSize", "underline", "isHovered", "isExternal", "views", "setIsHovered"];
3370
3350
  // Component definition for 'LinkView', a functional component with props defined by 'LinkViewProps'.
3371
3351
  var LinkView = _ref => {
3372
3352
  var {
@@ -3389,7 +3369,7 @@ var LinkView = _ref => {
3389
3369
  // Setter function for the hover state, noop function provided by default.
3390
3370
  setIsHovered = () => {}
3391
3371
  } = _ref,
3392
- props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
3372
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
3393
3373
  // Function to handle mouse enter/leave events to toggle hover state.
3394
3374
  var handleHover = () => {
3395
3375
  if (underline === 'hover') setIsHovered(true);
@@ -3581,6 +3561,9 @@ var getButtonVariants = (color, isLight) => ({
3581
3561
  ghost: {
3582
3562
  backgroundColor: 'transparent',
3583
3563
  color: color,
3564
+ borderWidth: 0,
3565
+ borderStyle: 'none',
3566
+ borderColor: 'transparent',
3584
3567
  on: {
3585
3568
  hover: {
3586
3569
  backgroundColor: color + "10",
@@ -3624,7 +3607,7 @@ var DefaultSpeeds = {
3624
3607
  slow: 300
3625
3608
  };
3626
3609
 
3627
- var _excluded$7 = ["size", "speed", "color", "themeMode"],
3610
+ var _excluded$9 = ["size", "speed", "color", "themeMode"],
3628
3611
  _excluded2$2 = ["size", "speed", "color", "themeMode"],
3629
3612
  _excluded3$2 = ["size", "speed", "color", "themeMode"],
3630
3613
  _excluded4$2 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition", "views"];
@@ -3635,7 +3618,7 @@ var DefaultSpinner = _ref => {
3635
3618
  color = 'theme.loading',
3636
3619
  themeMode: elementMode
3637
3620
  } = _ref,
3638
- props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
3621
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
3639
3622
  var {
3640
3623
  getColor,
3641
3624
  themeMode
@@ -3800,7 +3783,7 @@ React.createElement(LoaderView, Object.assign({}, props)));
3800
3783
  // Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
3801
3784
  var Loader = LoaderComponent;
3802
3785
 
3803
- 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"];
3786
+ 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"];
3804
3787
  var contrast = /*#__PURE__*/require('contrast');
3805
3788
  var ButtonView = _ref => {
3806
3789
  var _props$onClick;
@@ -3829,7 +3812,7 @@ var ButtonView = _ref => {
3829
3812
  linkProps,
3830
3813
  views
3831
3814
  } = _ref,
3832
- props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
3815
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
3833
3816
  var {
3834
3817
  getColor,
3835
3818
  themeMode
@@ -3880,6 +3863,7 @@ var ButtonView = _ref => {
3880
3863
  alignItems: "center",
3881
3864
  justifyContent: "center",
3882
3865
  "aria-label": ariaLabel,
3866
+ backgroundColor: "transparent",
3883
3867
  borderRadius: ButtonShapes[shape],
3884
3868
  onClick: (_props$onClick = props.onClick) != null ? _props$onClick : onClick,
3885
3869
  onMouseEnter: () => handleHover(true),
@@ -3947,97 +3931,95 @@ var CardShapes = {
3947
3931
  pillShaped: '16px'
3948
3932
  };
3949
3933
  /**
3950
- * Card variants with consistent styling
3934
+ * Get card variants with consistent styling based on theme mode
3951
3935
  */
3952
- var CardVariants = {
3953
- default: {
3954
- backgroundColor: 'white',
3955
- border: 'none',
3956
- transition: 'all 0.2s ease'
3957
- },
3958
- outlined: {
3959
- backgroundColor: 'white',
3960
- borderWidth: '1px',
3961
- borderStyle: 'solid',
3962
- borderColor: 'color.gray.200',
3963
- transition: 'all 0.2s ease',
3964
- _hover: {
3965
- borderColor: 'color.gray.300'
3966
- }
3967
- },
3968
- elevated: {
3969
- backgroundColor: 'white',
3970
- boxShadow: '0px 2px 8px rgba(0, 0, 0, 0.08)',
3971
- border: 'none',
3972
- transition: 'all 0.2s ease',
3973
- _hover: {
3974
- boxShadow: '0px 4px 12px rgba(0, 0, 0, 0.12)',
3975
- transform: 'translateY(-2px)'
3936
+ var getCardVariants = themeMode => {
3937
+ var isDarkMode = themeMode === 'dark';
3938
+ return {
3939
+ default: {
3940
+ backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
3941
+ border: 'none',
3942
+ transition: 'all 0.2s ease'
3943
+ },
3944
+ outlined: {
3945
+ backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
3946
+ borderWidth: '1px',
3947
+ borderStyle: 'solid',
3948
+ borderColor: isDarkMode ? 'color.gray.700' : 'color.gray.200',
3949
+ transition: 'all 0.2s ease',
3950
+ _hover: {
3951
+ borderColor: isDarkMode ? 'color.gray.600' : 'color.gray.300'
3952
+ }
3953
+ },
3954
+ elevated: {
3955
+ backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
3956
+ boxShadow: isDarkMode ? '0px 2px 8px rgba(0, 0, 0, 0.2)' : '0px 2px 8px rgba(0, 0, 0, 0.08)',
3957
+ border: 'none',
3958
+ transition: 'all 0.2s ease',
3959
+ _hover: {
3960
+ boxShadow: isDarkMode ? '0px 4px 12px rgba(0, 0, 0, 0.25)' : '0px 4px 12px rgba(0, 0, 0, 0.12)',
3961
+ transform: 'translateY(-2px)'
3962
+ }
3976
3963
  }
3977
- }
3964
+ };
3978
3965
  };
3979
3966
  /**
3980
3967
  * Function to get default styles for Card components
3981
- * @param theme - Theme object (not used directly but kept for compatibility)
3968
+ * @param theme - Theme object from useTheme hook
3982
3969
  */
3983
- var getDefaultCardStyles = _theme => ({
3984
- container: {
3985
- backgroundColor: 'white',
3986
- borderRadius: '8px',
3987
- overflow: 'hidden',
3988
- transition: 'all 0.2s ease',
3989
- '@media (prefers-color-scheme: dark)': {
3990
- backgroundColor: 'color.gray.800',
3991
- color: 'color.gray.100'
3992
- }
3993
- },
3994
- header: {
3995
- padding: '16px',
3996
- borderBottomWidth: '1px',
3997
- borderBottomStyle: 'solid',
3998
- borderBottomColor: 'color.gray.200',
3999
- '@media (prefers-color-scheme: dark)': {
4000
- borderBottomColor: 'color.gray.700'
4001
- }
4002
- },
4003
- content: {
4004
- padding: '16px',
4005
- '@media (prefers-color-scheme: dark)': {
4006
- color: 'color.gray.100'
4007
- }
4008
- },
4009
- footer: {
4010
- padding: '16px',
4011
- borderTopWidth: '1px',
4012
- borderTopStyle: 'solid',
4013
- borderTopColor: 'color.gray.200',
4014
- '@media (prefers-color-scheme: dark)': {
4015
- borderTopColor: 'color.gray.700'
3970
+ var getDefaultCardStyles = theme => {
3971
+ var {
3972
+ themeMode
3973
+ } = theme;
3974
+ var isDarkMode = themeMode === 'dark';
3975
+ return {
3976
+ container: {
3977
+ backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
3978
+ color: isDarkMode ? 'color.gray.100' : 'color.gray.900',
3979
+ borderRadius: '8px',
3980
+ overflow: 'hidden',
3981
+ transition: 'all 0.2s ease'
3982
+ },
3983
+ header: {
3984
+ padding: '16px',
3985
+ borderBottomWidth: '1px',
3986
+ borderBottomStyle: 'solid',
3987
+ borderBottomColor: isDarkMode ? 'color.gray.700' : 'color.gray.200'
3988
+ },
3989
+ content: {
3990
+ padding: '16px',
3991
+ color: isDarkMode ? 'color.gray.100' : 'color.gray.900'
3992
+ },
3993
+ footer: {
3994
+ padding: '16px',
3995
+ borderTopWidth: '1px',
3996
+ borderTopStyle: 'solid',
3997
+ borderTopColor: isDarkMode ? 'color.gray.700' : 'color.gray.200'
4016
3998
  }
4017
- }
4018
- });
3999
+ };
4000
+ };
4019
4001
 
4020
4002
  var CardContext = /*#__PURE__*/createContext({});
4021
4003
  var useCardContext = () => {
4022
4004
  return useContext(CardContext);
4023
4005
  };
4024
4006
 
4025
- var _excluded$9 = ["children", "views", "style"],
4026
- _excluded2$3 = ["children", "views", "style"],
4027
- _excluded3$3 = ["children", "views", "style"],
4028
- _excluded4$3 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style"];
4007
+ var _excluded$b = ["children", "views", "style", "themeMode"],
4008
+ _excluded2$3 = ["children", "views", "style", "themeMode"],
4009
+ _excluded3$3 = ["children", "views", "style", "themeMode"],
4010
+ _excluded4$3 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style", "themeMode"];
4029
4011
  var CardHeader = _ref => {
4030
4012
  var _contextStyles$header;
4031
4013
  var {
4032
4014
  children,
4033
4015
  style
4034
4016
  } = _ref,
4035
- props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
4017
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
4036
4018
  var theme = useTheme();
4037
4019
  var {
4038
4020
  styles: contextStyles
4039
4021
  } = useCardContext();
4040
- var defaultStyles = getDefaultCardStyles().header;
4022
+ var defaultStyles = getDefaultCardStyles(theme).header;
4041
4023
  // Merge styles: Default < Context Override < Direct Props/Style
4042
4024
  var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.header, props, {
4043
4025
  style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$header = contextStyles.header) == null ? void 0 : _contextStyles$header.style, style)
@@ -4055,7 +4037,7 @@ var CardContent = _ref2 => {
4055
4037
  var {
4056
4038
  styles: contextStyles
4057
4039
  } = useCardContext();
4058
- var defaultStyles = getDefaultCardStyles().content;
4040
+ var defaultStyles = getDefaultCardStyles(theme).content;
4059
4041
  // Merge styles: Default < Context Override < Direct Props/Style
4060
4042
  var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.content, props, {
4061
4043
  style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$conten = contextStyles.content) == null ? void 0 : _contextStyles$conten.style, style)
@@ -4073,7 +4055,7 @@ var CardFooter = _ref3 => {
4073
4055
  var {
4074
4056
  styles: contextStyles
4075
4057
  } = useCardContext();
4076
- var defaultStyles = getDefaultCardStyles().footer;
4058
+ var defaultStyles = getDefaultCardStyles(theme).footer;
4077
4059
  // Merge styles: Default < Context Override < Direct Props/Style
4078
4060
  var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.footer, props, {
4079
4061
  style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$footer = contextStyles.footer) == null ? void 0 : _contextStyles$footer.style, style)
@@ -4091,11 +4073,12 @@ var CardView = _ref4 => {
4091
4073
  footer,
4092
4074
  isFullWidth = false,
4093
4075
  views,
4094
- style
4076
+ style,
4077
+ themeMode: elementMode
4095
4078
  } = _ref4,
4096
4079
  props = _objectWithoutPropertiesLoose(_ref4, _excluded4$3);
4097
4080
  var theme = useTheme();
4098
- var defaultStyles = getDefaultCardStyles();
4081
+ var defaultStyles = getDefaultCardStyles(theme);
4099
4082
  // Prepare context value, merging default styles with user's `views` overrides
4100
4083
  var contextValue = useMemo(() => ({
4101
4084
  styles: {
@@ -4108,12 +4091,18 @@ var CardView = _ref4 => {
4108
4091
  // Determine if we have explicit Card.Header, Card.Content, Card.Footer components
4109
4092
  // or if we need to wrap children in a default layout
4110
4093
  var hasExplicitStructure = React.Children.toArray(children).some(child => /*#__PURE__*/React.isValidElement(child) && (child.type === CardHeader || child.type === CardContent || child.type === CardFooter));
4094
+ // Get the appropriate variant styles based on theme mode
4095
+ var {
4096
+ themeMode
4097
+ } = theme;
4098
+ var currentThemeMode = elementMode || themeMode;
4099
+ var variantStyles = getCardVariants(currentThemeMode)[variant];
4111
4100
  // Merge styles for the root element
4112
4101
  var mergedRootProps = Object.assign({
4113
4102
  width: isFullWidth ? '100%' : 'auto',
4114
4103
  borderRadius: CardShapes[shape],
4115
4104
  overflow: 'hidden'
4116
- }, CardVariants[variant], contextValue.styles.container, props, {
4105
+ }, variantStyles, contextValue.styles.container, props, {
4117
4106
  style: Object.assign({}, (_contextValue$styles$ = contextValue.styles.container) == null ? void 0 : _contextValue$styles$.style, style)
4118
4107
  });
4119
4108
  return /*#__PURE__*/React.createElement(CardContext.Provider, {
@@ -4424,19 +4413,19 @@ var useCarouselContext = () => {
4424
4413
  return context;
4425
4414
  };
4426
4415
 
4427
- var _excluded$a = ["children", "isActive", "views"],
4416
+ var _excluded$c = ["children", "isActive", "views"],
4428
4417
  _excluded2$4 = ["views", "children"],
4429
4418
  _excluded3$4 = ["views", "children"],
4430
4419
  _excluded4$4 = ["children", "views"],
4431
4420
  _excluded5$1 = ["children", "views", "style"],
4432
- _excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views"];
4421
+ _excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views", "themeMode"];
4433
4422
  var CarouselSlide = _ref => {
4434
4423
  var {
4435
4424
  children,
4436
4425
  isActive,
4437
4426
  views
4438
4427
  } = _ref,
4439
- props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
4428
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
4440
4429
  return /*#__PURE__*/React.createElement(View, Object.assign({
4441
4430
  flexShrink: 0,
4442
4431
  width: "100%",
@@ -5360,7 +5349,7 @@ var PieChart = _ref => {
5360
5349
  })));
5361
5350
  };
5362
5351
 
5363
- 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"];
5352
+ 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"];
5364
5353
  var ChartView = _ref => {
5365
5354
  var {
5366
5355
  type,
@@ -5388,7 +5377,7 @@ var ChartView = _ref => {
5388
5377
  noDataIndicator,
5389
5378
  'aria-label': ariaLabel
5390
5379
  } = _ref,
5391
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
5380
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
5392
5381
  // Use chart state hook
5393
5382
  var {
5394
5383
  animationProgress,
@@ -5718,12 +5707,12 @@ var calculateMenuPosition = function calculateMenuPosition(x, y, menuWidth, menu
5718
5707
  };
5719
5708
  };
5720
5709
 
5721
- var _excluded$c = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
5710
+ var _excluded$e = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
5722
5711
  _excluded2$5 = ["items", "children", "position", "side", "align", "views", "style"],
5723
5712
  _excluded3$5 = ["item", "children", "onSelect", "isDisabled", "views"],
5724
5713
  _excluded4$5 = ["views"],
5725
5714
  _excluded5$2 = ["views"],
5726
- _excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views"];
5715
+ _excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views", "themeMode"];
5727
5716
  // Create context for the ContextMenu
5728
5717
  var ContextMenuContext = /*#__PURE__*/createContext({
5729
5718
  isOpen: false,
@@ -5774,7 +5763,7 @@ var ContextMenuTrigger = _ref2 => {
5774
5763
  isDisabled = false,
5775
5764
  views
5776
5765
  } = _ref2,
5777
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$c);
5766
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$e);
5778
5767
  var {
5779
5768
  triggerRef,
5780
5769
  contentId,
@@ -6057,7 +6046,7 @@ var ContextMenuView = _ref7 => {
6057
6046
  }));
6058
6047
  };
6059
6048
 
6060
- var _excluded$d = ["children", "items", "size", "variant", "disableNativeContextMenu", "onOpenChange", "views"];
6049
+ var _excluded$f = ["children", "items", "size", "variant", "disableNativeContextMenu", "onOpenChange", "views"];
6061
6050
  /**
6062
6051
  * ContextMenu component for displaying a custom context menu on right-click.
6063
6052
  * Supports both data-driven approach (with items prop) and compound component pattern.
@@ -6072,7 +6061,7 @@ var ContextMenuComponent = _ref => {
6072
6061
  onOpenChange,
6073
6062
  views
6074
6063
  } = _ref,
6075
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
6064
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
6076
6065
  var state = useContextMenuState({
6077
6066
  size,
6078
6067
  variant,
@@ -6124,7 +6113,7 @@ ContextMenu.Item = ContextMenuItem;
6124
6113
  ContextMenu.Divider = ContextMenuDivider;
6125
6114
  ContextMenu.Separator = ContextMenuSeparator; // Add the Separator component
6126
6115
 
6127
- var _excluded$e = ["src", "color", "views", "themeMode"],
6116
+ var _excluded$g = ["src", "color", "views", "themeMode"],
6128
6117
  _excluded2$6 = ["path"];
6129
6118
  var FileSVG = _ref => {
6130
6119
  var {
@@ -6132,7 +6121,7 @@ var FileSVG = _ref => {
6132
6121
  color,
6133
6122
  views
6134
6123
  } = _ref,
6135
- props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
6124
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
6136
6125
  var {
6137
6126
  getColor,
6138
6127
  themeMode
@@ -6206,7 +6195,7 @@ var useItemState = () => {
6206
6195
  };
6207
6196
  };
6208
6197
 
6209
- var _excluded$f = ["children", "views"];
6198
+ var _excluded$h = ["children", "views"];
6210
6199
  var HelperText = _ref => {
6211
6200
  var {
6212
6201
  children,
@@ -6214,7 +6203,7 @@ var HelperText = _ref => {
6214
6203
  helperText: {}
6215
6204
  }
6216
6205
  } = _ref,
6217
- props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
6206
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
6218
6207
  return /*#__PURE__*/React.createElement(Text
6219
6208
  // Typography properties
6220
6209
  , Object.assign({
@@ -6240,7 +6229,7 @@ var HelperText = _ref => {
6240
6229
  }, views['helperText'], props), children);
6241
6230
  };
6242
6231
 
6243
- var _excluded$g = ["children", "helperText", "error", "views"];
6232
+ var _excluded$i = ["children", "helperText", "error", "views"];
6244
6233
  var FieldContainer = _ref => {
6245
6234
  var {
6246
6235
  children,
@@ -6248,7 +6237,7 @@ var FieldContainer = _ref => {
6248
6237
  error = false,
6249
6238
  views
6250
6239
  } = _ref,
6251
- props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
6240
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
6252
6241
  return /*#__PURE__*/React.createElement(Vertical
6253
6242
  // Layout properties
6254
6243
  , Object.assign({
@@ -6385,7 +6374,7 @@ var PaddingWithoutLabel = {
6385
6374
  paddingRight: '16px'
6386
6375
  };
6387
6376
 
6388
- var _excluded$h = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "showLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "views"];
6377
+ var _excluded$j = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "showLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "views"];
6389
6378
  var FieldContent = _ref => {
6390
6379
  var {
6391
6380
  shadow,
@@ -6403,7 +6392,7 @@ var FieldContent = _ref => {
6403
6392
  pickerBox: {}
6404
6393
  }
6405
6394
  } = _ref,
6406
- props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
6395
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
6407
6396
  // Determine if the field is in an interactive state
6408
6397
  var isInteractive = (isHovered || isFocused) && !isDisabled;
6409
6398
  // Set the appropriate color based on state
@@ -6432,12 +6421,12 @@ var FieldContent = _ref => {
6432
6421
  }, showLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], views['box'], props), children);
6433
6422
  };
6434
6423
 
6435
- var _excluded$i = ["children"];
6424
+ var _excluded$k = ["children"];
6436
6425
  var FieldIcons = _ref => {
6437
6426
  var {
6438
6427
  children
6439
6428
  } = _ref,
6440
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
6429
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
6441
6430
  return /*#__PURE__*/React.createElement(Center, Object.assign({
6442
6431
  gap: 10,
6443
6432
  right: 16,
@@ -6489,7 +6478,7 @@ var HeadingSizes$1 = {
6489
6478
  }
6490
6479
  };
6491
6480
 
6492
- var _excluded$j = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
6481
+ var _excluded$l = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
6493
6482
  var LabelView = _ref => {
6494
6483
  var {
6495
6484
  children,
@@ -6505,7 +6494,7 @@ var LabelView = _ref => {
6505
6494
  size = 'sm'
6506
6495
  // The fontSize prop for the Element is determined by the 'size' prop passed to LabelView.
6507
6496
  } = _ref,
6508
- props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
6497
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
6509
6498
  // The fontStyle prop toggles between 'italic' and 'normal' based on the 'isItalic' boolean prop.
6510
6499
  var headingStyles = heading ? HeadingSizes$1[heading] : {};
6511
6500
  // fontWeight is derived from the Typography module, ensuring consistent font weighting across the app.
@@ -6537,7 +6526,7 @@ React.createElement(LabelView, Object.assign({}, props))
6537
6526
  var Label = LabelComponent;
6538
6527
  // Export the 'LabelComponent' as 'Label' to be reused throughout the project.
6539
6528
 
6540
- var _excluded$k = ["children", "size", "error", "color", "views", "helperText"];
6529
+ var _excluded$m = ["children", "size", "error", "color", "views", "helperText"];
6541
6530
  var FieldLabel = _ref => {
6542
6531
  var {
6543
6532
  children,
@@ -6548,7 +6537,7 @@ var FieldLabel = _ref => {
6548
6537
  label: {}
6549
6538
  }
6550
6539
  } = _ref,
6551
- props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
6540
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
6552
6541
  return /*#__PURE__*/React.createElement(Label
6553
6542
  // Position properties
6554
6543
  , Object.assign({
@@ -6569,12 +6558,12 @@ var FieldLabel = _ref => {
6569
6558
  }, views['label'], props), children);
6570
6559
  };
6571
6560
 
6572
- var _excluded$l = ["children"];
6561
+ var _excluded$n = ["children"];
6573
6562
  var FieldWrapper = _ref => {
6574
6563
  var {
6575
6564
  children
6576
6565
  } = _ref,
6577
- props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
6566
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
6578
6567
  return /*#__PURE__*/React.createElement(Vertical
6579
6568
  // Layout properties
6580
6569
  , Object.assign({
@@ -6607,7 +6596,7 @@ var IconSizes$2 = {
6607
6596
  xl: 28
6608
6597
  };
6609
6598
 
6610
- var _excluded$m = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
6599
+ var _excluded$o = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
6611
6600
  _excluded2$7 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
6612
6601
  _excluded3$6 = ["option", "size", "removeOption"],
6613
6602
  _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"];
@@ -6625,7 +6614,7 @@ var Item = _ref => {
6625
6614
  callback = () => {},
6626
6615
  style
6627
6616
  } = _ref,
6628
- props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
6617
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
6629
6618
  // Handles the click event on an option by invoking the callback with the selected option's value
6630
6619
  var handleOptionClick = option => callback(option);
6631
6620
  // Toggles the hover state on the item
@@ -7124,7 +7113,7 @@ var ColorSchemes = {
7124
7113
  }
7125
7114
  };
7126
7115
 
7127
- var _excluded$n = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "views"];
7116
+ var _excluded$p = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "views"];
7128
7117
  var SwitchContent = props => /*#__PURE__*/React.createElement(Input, Object.assign({
7129
7118
  type: "checkbox"
7130
7119
  }, props));
@@ -7153,7 +7142,7 @@ var SwitchView = _ref => {
7153
7142
  label: {}
7154
7143
  }
7155
7144
  } = _ref,
7156
- props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
7145
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
7157
7146
  var handleToggle = event => {
7158
7147
  if (!isReadOnly) {
7159
7148
  setValue(!value);
@@ -7277,7 +7266,7 @@ var useTextAreaState = _ref => {
7277
7266
  // Export of the useTextAreaState hook for external usage.
7278
7267
  };
7279
7268
 
7280
- 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"];
7269
+ 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"];
7281
7270
  var TextAreaView = _ref => {
7282
7271
  var {
7283
7272
  id,
@@ -7303,7 +7292,6 @@ var TextAreaView = _ref => {
7303
7292
  onBlur = () => {},
7304
7293
  onChange,
7305
7294
  onFocus,
7306
- onChangeText,
7307
7295
  setHint = () => {},
7308
7296
  setValue = () => {},
7309
7297
  setIsFocused = () => {},
@@ -7313,7 +7301,7 @@ var TextAreaView = _ref => {
7313
7301
  helperText: {}
7314
7302
  }
7315
7303
  } = _ref,
7316
- props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
7304
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
7317
7305
  var showLabel = !!(isFocused && label);
7318
7306
  /**
7319
7307
  * Styles for the textarea field
@@ -7358,11 +7346,9 @@ var TextAreaView = _ref => {
7358
7346
  var handleChange = event => {
7359
7347
  if (typeof event === 'string') {
7360
7348
  setValue(event);
7361
- if (onChangeText) onChangeText(event);
7362
7349
  if (onChange) onChange(event);
7363
7350
  } else {
7364
7351
  setValue(event.target.value);
7365
- if (onChangeText) onChangeText(event.target.value);
7366
7352
  if (onChange) onChange(event.target.value);
7367
7353
  }
7368
7354
  };
@@ -7401,15 +7387,13 @@ var TextAreaView = _ref => {
7401
7387
  readOnly: isReadOnly,
7402
7388
  disabled: isDisabled,
7403
7389
  autoFocus: isAutoFocus,
7404
- editable: isEditable,
7390
+ editable: !!isEditable.toString(),
7405
7391
  placeholder: hint,
7406
7392
  onBlur: handleBlur,
7407
7393
  onFocus: handleFocus,
7408
- multiline: isMultiline
7409
- }, fieldStyles, {
7410
- onChange: handleChange,
7411
- onChangeText: handleChange
7412
- }, views == null ? void 0 : views.textarea)))));
7394
+ multiline: !!isMultiline.toString(),
7395
+ onChange: handleChange
7396
+ }, fieldStyles, views == null ? void 0 : views.textarea)))));
7413
7397
  };
7414
7398
 
7415
7399
  // Defines the TextAreaComponent as a functional component that accepts TextAreaProps for type safety and structure.
@@ -7456,7 +7440,7 @@ var useTextFieldState = _ref => {
7456
7440
  };
7457
7441
  };
7458
7442
 
7459
- 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"];
7443
+ 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"];
7460
7444
  /**
7461
7445
  * Input component for text fields
7462
7446
  */
@@ -7502,7 +7486,7 @@ var TextFieldView = _ref => {
7502
7486
  onBlur = () => {},
7503
7487
  themeMode: elementMode
7504
7488
  } = _ref,
7505
- props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
7489
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
7506
7490
  var {
7507
7491
  getColor,
7508
7492
  themeMode
@@ -7760,7 +7744,7 @@ var StateStyles = {
7760
7744
  }
7761
7745
  };
7762
7746
 
7763
- 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"];
7747
+ 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"];
7764
7748
  var CheckboxView = _ref => {
7765
7749
  var {
7766
7750
  id,
@@ -7787,7 +7771,7 @@ var CheckboxView = _ref => {
7787
7771
  },
7788
7772
  infoText
7789
7773
  } = _ref,
7790
- props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
7774
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
7791
7775
  var handleHover = () => setIsHovered(!isHovered);
7792
7776
  var handleChange = () => {
7793
7777
  if (!isReadOnly && !isDisabled) {
@@ -9373,11 +9357,11 @@ var IconSizes$4 = {
9373
9357
  xl: 16
9374
9358
  };
9375
9359
 
9376
- var _excluded$r = ["size"],
9360
+ var _excluded$t = ["size"],
9377
9361
  _excluded2$8 = ["size"],
9378
9362
  _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"];
9379
9363
  var CountryList = _ref => {
9380
- var props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
9364
+ var props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
9381
9365
  return /*#__PURE__*/React.createElement(Element, Object.assign({
9382
9366
  as: "ul"
9383
9367
  }, props));
@@ -9616,7 +9600,7 @@ var useDatePickerState = () => {
9616
9600
  };
9617
9601
  };
9618
9602
 
9619
- 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"];
9603
+ 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"];
9620
9604
  var DatePickerContent = props => /*#__PURE__*/React.createElement(Input, Object.assign({
9621
9605
  type: "date"
9622
9606
  }, props));
@@ -9649,7 +9633,7 @@ var DatePickerView = _ref => {
9649
9633
  onChange,
9650
9634
  onChangeText
9651
9635
  } = _ref,
9652
- props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
9636
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
9653
9637
  var showLabel = !!(isFocused && label);
9654
9638
  var handleHover = () => setIsHovered(!isHovered);
9655
9639
  var handleFocus = () => setIsFocused(true);
@@ -9736,7 +9720,7 @@ var usePasswordState = props => {
9736
9720
  }, props, textFieldStates);
9737
9721
  };
9738
9722
 
9739
- var _excluded$t = ["visibleIcon", "hiddenIcon"],
9723
+ var _excluded$v = ["visibleIcon", "hiddenIcon"],
9740
9724
  _excluded2$9 = ["isVisible", "setIsVisible"];
9741
9725
  var PasswordComponent = _ref => {
9742
9726
  var {
@@ -9747,7 +9731,7 @@ var PasswordComponent = _ref => {
9747
9731
  widthHeight: 14
9748
9732
  })
9749
9733
  } = _ref,
9750
- props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
9734
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
9751
9735
  var _usePasswordState = usePasswordState(props),
9752
9736
  {
9753
9737
  isVisible,
@@ -9801,7 +9785,7 @@ var useComboBoxState = (items, placeholder, searchPlaceholder) => {
9801
9785
  };
9802
9786
  };
9803
9787
 
9804
- var _excluded$u = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "views", "isDropdownVisible", "setIsDropdownVisible"];
9788
+ var _excluded$w = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "views", "isDropdownVisible", "setIsDropdownVisible"];
9805
9789
  // Defines the functional component 'ComboBoxView' with destructured props.
9806
9790
  var ComboBoxView = _ref => {
9807
9791
  var {
@@ -9826,7 +9810,7 @@ var ComboBoxView = _ref => {
9826
9810
  setIsDropdownVisible
9827
9811
  // Collects all further props not destructured explicitly.
9828
9812
  } = _ref,
9829
- props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
9813
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
9830
9814
  // Sets up an effect to handle clicking outside the dropdown to close it.
9831
9815
  useEffect(() => {
9832
9816
  var handleClickOutside = event => {
@@ -9938,7 +9922,7 @@ var ComboBoxView = _ref => {
9938
9922
  }))))))))))));
9939
9923
  };
9940
9924
 
9941
- var _excluded$v = ["id", "name", "items", "placeholder", "searchPlaceholder"];
9925
+ var _excluded$x = ["id", "name", "items", "placeholder", "searchPlaceholder"];
9942
9926
  // Defines the ComboBoxComponent functional component with ComboBoxProps
9943
9927
  var ComboBoxComponent = _ref => {
9944
9928
  var {
@@ -9954,7 +9938,7 @@ var ComboBoxComponent = _ref => {
9954
9938
  searchPlaceholder
9955
9939
  // Destructures the rest of the props not explicitly defined
9956
9940
  } = _ref,
9957
- props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
9941
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
9958
9942
  // Initializes ComboBox state using custom hook with items and placeholders
9959
9943
  var state = useComboBoxState(items, placeholder, searchPlaceholder);
9960
9944
  return (
@@ -10259,7 +10243,7 @@ var useOTPInputState = _ref => {
10259
10243
  };
10260
10244
  };
10261
10245
 
10262
- 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"];
10246
+ 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"];
10263
10247
  // Create a context for OTP input slots
10264
10248
  var OTPInputContext = /*#__PURE__*/createContext({
10265
10249
  slots: [],
@@ -10313,7 +10297,7 @@ var OTPInputView = _ref => {
10313
10297
  onFocus = () => {}
10314
10298
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
10315
10299
  } = _ref,
10316
- props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
10300
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
10317
10301
  useTheme(); // Initialize theme context
10318
10302
  var showLabel = !!label;
10319
10303
  // Create context value for slots
@@ -10543,7 +10527,7 @@ var OTPInputComponent = props => {
10543
10527
  };
10544
10528
  var OTPInput = OTPInputComponent;
10545
10529
 
10546
- var _excluded$x = ["children", "autoFocus", "initFocus", "onChange"];
10530
+ var _excluded$z = ["children", "autoFocus", "initFocus", "onChange"];
10547
10531
  var FocusContext = /*#__PURE__*/createContext({
10548
10532
  active: false,
10549
10533
  focusNextInput: () => {},
@@ -10559,7 +10543,7 @@ var FormikForm = _ref => {
10559
10543
  initFocus,
10560
10544
  onChange = () => {}
10561
10545
  } = _ref,
10562
- props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
10546
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
10563
10547
  var formik = useFormikContext();
10564
10548
  useEffect(() => {
10565
10549
  onChange(formik.values);
@@ -10607,7 +10591,7 @@ var FormikForm = _ref => {
10607
10591
  }, /*#__PURE__*/React.createElement(Form, Object.assign({}, props), children));
10608
10592
  };
10609
10593
 
10610
- var _excluded$y = ["name", "type"];
10594
+ var _excluded$A = ["name", "type"];
10611
10595
  var getInputTypeProps = type => {
10612
10596
  switch (type) {
10613
10597
  case 'email':
@@ -10646,7 +10630,7 @@ var useFormikInput = _ref => {
10646
10630
  name,
10647
10631
  type
10648
10632
  } = _ref,
10649
- props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
10633
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
10650
10634
  var focus = useFormFocus();
10651
10635
  var {
10652
10636
  touched,
@@ -10690,13 +10674,13 @@ var useFormikInput = _ref => {
10690
10674
  } : {});
10691
10675
  };
10692
10676
 
10693
- var _excluded$z = ["value"];
10677
+ var _excluded$B = ["value"];
10694
10678
  var CheckboxComponent$1 = props => {
10695
10679
  var _useFormikInput = useFormikInput(props),
10696
10680
  {
10697
10681
  value
10698
10682
  } = _useFormikInput,
10699
- formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$z);
10683
+ formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$B);
10700
10684
  formProps.isChecked = value;
10701
10685
  var checkboxStates = useCheckboxState(props);
10702
10686
  return /*#__PURE__*/React.createElement(CheckboxView, Object.assign({}, checkboxStates, formProps));
@@ -10754,11 +10738,11 @@ var TextAreaComponent$1 = props => {
10754
10738
  */
10755
10739
  var FormikTextArea = TextAreaComponent$1;
10756
10740
 
10757
- var _excluded$A = ["value"];
10741
+ var _excluded$C = ["value"];
10758
10742
  var TextFieldComponent$1 = props => {
10759
10743
  var formProps = useFormikInput(props);
10760
10744
  var _useTextFieldState = useTextFieldState(props),
10761
- textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$A);
10745
+ textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$C);
10762
10746
  return /*#__PURE__*/React.createElement(TextFieldView, Object.assign({}, textFieldStates, formProps));
10763
10747
  };
10764
10748
  /**
@@ -10766,7 +10750,7 @@ var TextFieldComponent$1 = props => {
10766
10750
  */
10767
10751
  var FormikTextField = TextFieldComponent$1;
10768
10752
 
10769
- var _excluded$B = ["visibleIcon", "hiddenIcon"],
10753
+ var _excluded$D = ["visibleIcon", "hiddenIcon"],
10770
10754
  _excluded2$a = ["isVisible", "setIsVisible"];
10771
10755
  var PasswordComponent$1 = _ref => {
10772
10756
  var {
@@ -10777,7 +10761,7 @@ var PasswordComponent$1 = _ref => {
10777
10761
  widthHeight: 14
10778
10762
  })
10779
10763
  } = _ref,
10780
- props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
10764
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
10781
10765
  var formProps = useFormikInput(props);
10782
10766
  var _usePasswordState = usePasswordState(formProps),
10783
10767
  {
@@ -10802,14 +10786,14 @@ var PasswordComponent$1 = _ref => {
10802
10786
  */
10803
10787
  var FormikPassword = PasswordComponent$1;
10804
10788
 
10805
- var _excluded$C = ["items", "placeholder", "searchPlaceholder"];
10789
+ var _excluded$E = ["items", "placeholder", "searchPlaceholder"];
10806
10790
  var ComboBoxComponent$1 = _ref => {
10807
10791
  var {
10808
10792
  items,
10809
10793
  placeholder,
10810
10794
  searchPlaceholder
10811
10795
  } = _ref,
10812
- props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
10796
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
10813
10797
  var formProps = useFormikInput(props);
10814
10798
  var ComboBoxStates = useComboBoxState(items, placeholder, searchPlaceholder);
10815
10799
  // Ensure the onChange function from formProps is being called when an item is selected
@@ -11033,17 +11017,22 @@ var SliderShapes = {
11033
11017
  rounded: 4,
11034
11018
  pillShaped: 24
11035
11019
  };
11036
- var SliderVariants = {
11037
- default: {
11038
- backgroundColor: 'color.blueGray.200'
11039
- },
11040
- outline: {
11041
- backgroundColor: 'transparent',
11042
- borderWidth: 1,
11043
- borderStyle: 'solid',
11044
- borderColor: 'color.blueGray.300'
11045
- }
11020
+ var getSlider = themeMode => {
11021
+ return {
11022
+ default: {
11023
+ backgroundColor: 'color.blueGray.200'
11024
+ },
11025
+ outline: {
11026
+ backgroundColor: 'transparent',
11027
+ borderWidth: 1,
11028
+ borderStyle: 'solid',
11029
+ borderColor: 'color.blueGray.300'
11030
+ }
11031
+ };
11032
+ // Add dark mode conditional styling here
11046
11033
  };
11034
+ // For backward compatibility
11035
+ var SliderVariants = /*#__PURE__*/getSlider();
11047
11036
  // Maps Size enum to track height/width and thumb size for the new implementation
11048
11037
  var EnhancedSliderSizes = {
11049
11038
  xs: {
@@ -11085,7 +11074,7 @@ var OrientationStyles = {
11085
11074
  }
11086
11075
  };
11087
11076
 
11088
- 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"];
11077
+ 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"];
11089
11078
  var SliderView = _ref => {
11090
11079
  var _views$tooltip, _views$tooltip2;
11091
11080
  var {
@@ -11128,7 +11117,7 @@ var SliderView = _ref => {
11128
11117
  tooltip: {}
11129
11118
  }
11130
11119
  } = _ref,
11131
- props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
11120
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
11132
11121
  var {
11133
11122
  getColor,
11134
11123
  themeMode
@@ -11501,7 +11490,7 @@ var hideMessage = () => {
11501
11490
  useMessageStore.getState().hide();
11502
11491
  };
11503
11492
 
11504
- var Themes$1 = {
11493
+ var Themes = {
11505
11494
  info: {
11506
11495
  container: {
11507
11496
  backgroundColor: 'color.blue.200',
@@ -11599,7 +11588,7 @@ var MessageView = _ref => {
11599
11588
  }
11600
11589
  return;
11601
11590
  }, []);
11602
- var Theme = theme != null ? theme : Themes$1;
11591
+ var Theme = theme != null ? theme : Themes;
11603
11592
  var showAction = !!(action && actionText);
11604
11593
  var containerStyle = {
11605
11594
  borderWidth: 1,
@@ -11848,7 +11837,8 @@ var UploadView = _ref => {
11848
11837
  renderError = _ref2 => {
11849
11838
  var {
11850
11839
  errorMessage,
11851
- errorMessageProps
11840
+ errorMessageProps,
11841
+ themeMode: elementMode
11852
11842
  } = _ref2;
11853
11843
  return /*#__PURE__*/React.createElement(Text$1, Object.assign({
11854
11844
  color: "red",
@@ -11999,7 +11989,7 @@ var UploadView = _ref => {
11999
11989
  }, views == null ? void 0 : views.view)));
12000
11990
  };
12001
11991
 
12002
- var _excluded$E = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress", "fileType"];
11992
+ var _excluded$G = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress", "fileType"];
12003
11993
  var Uploader = _ref => {
12004
11994
  var {
12005
11995
  accept = '*/*',
@@ -12012,7 +12002,7 @@ var Uploader = _ref => {
12012
12002
  progress = 0,
12013
12003
  fileType
12014
12004
  } = _ref,
12015
- props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
12005
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$G);
12016
12006
  var {
12017
12007
  previewUrl,
12018
12008
  thumbnailUrl,
@@ -12203,7 +12193,7 @@ var ModalTypography = {
12203
12193
  }
12204
12194
  };
12205
12195
 
12206
- var _excluded$F = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
12196
+ var _excluded$H = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
12207
12197
  _excluded2$b = ["children", "shadow", "isFullScreen", "shape", "views"],
12208
12198
  _excluded3$8 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
12209
12199
  _excluded4$7 = ["children", "views"],
@@ -12218,7 +12208,7 @@ var ModalOverlay = _ref => {
12218
12208
  position = 'center',
12219
12209
  views
12220
12210
  } = _ref,
12221
- props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
12211
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
12222
12212
  var handleClick = () => {
12223
12213
  if (!isClosePrevented) onClose();
12224
12214
  };
@@ -12289,17 +12279,12 @@ var ModalHeader = _ref3 => {
12289
12279
  } = _ref3,
12290
12280
  props = _objectWithoutPropertiesLoose(_ref3, _excluded3$8);
12291
12281
  var onClose = props.onClose ? props.onClose : hideModal;
12292
- var buttonIcon = /*#__PURE__*/React.createElement(Button, {
12293
- onClick: onClose,
12294
- icon: /*#__PURE__*/React.createElement(CloseIcon, {
12295
- widthHeight: HeaderIconSizes[iconSize],
12296
- color: buttonColor
12297
- }),
12298
- padding: 0,
12299
- margin: 0,
12300
- filter: "none",
12301
- width: 0
12302
- });
12282
+ var buttonIcon = /*#__PURE__*/React.createElement(View, {
12283
+ onClick: onClose
12284
+ }, /*#__PURE__*/React.createElement(CloseIcon, {
12285
+ widthHeight: HeaderIconSizes[iconSize],
12286
+ color: buttonColor
12287
+ }));
12303
12288
  return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
12304
12289
  justifyContent: buttonPosition === 'none' ? 'center' : 'space-between',
12305
12290
  alignItems: "center",
@@ -12519,7 +12504,7 @@ var NavigationMenuItemStates = {
12519
12504
  }
12520
12505
  };
12521
12506
 
12522
- var _excluded$G = ["href", "children", "views"];
12507
+ var _excluded$I = ["href", "children", "views"];
12523
12508
  // Create context for the NavigationMenu
12524
12509
  var NavigationMenuContext = /*#__PURE__*/createContext({
12525
12510
  activeItemId: null,
@@ -12754,7 +12739,7 @@ var NavigationMenuLink = _ref6 => {
12754
12739
  children,
12755
12740
  views
12756
12741
  } = _ref6,
12757
- props = _objectWithoutPropertiesLoose(_ref6, _excluded$G);
12742
+ props = _objectWithoutPropertiesLoose(_ref6, _excluded$I);
12758
12743
  var {
12759
12744
  itemValue,
12760
12745
  isDisabled
@@ -12803,7 +12788,8 @@ var NavigationMenuView = _ref7 => {
12803
12788
  items,
12804
12789
  orientation,
12805
12790
  //size, variant,
12806
- views
12791
+ views,
12792
+ themeMode: elementMode
12807
12793
  } = _ref7;
12808
12794
  var Container = orientation === 'horizontal' ? Horizontal : Vertical;
12809
12795
  if (!items || items.length === 0) {
@@ -12820,7 +12806,7 @@ var NavigationMenuView = _ref7 => {
12820
12806
  })))));
12821
12807
  };
12822
12808
 
12823
- var _excluded$H = ["items", "children", "orientation", "size", "variant", "defaultActiveItemId", "defaultExpandedItemIds", "onItemActivate", "views"];
12809
+ var _excluded$J = ["items", "children", "orientation", "size", "variant", "defaultActiveItemId", "defaultExpandedItemIds", "onItemActivate", "views"];
12824
12810
  /**
12825
12811
  * NavigationMenu component for creating navigation menus with optional nested items.
12826
12812
  * Supports both data-driven approach (with items prop) and compound component pattern.
@@ -12837,7 +12823,7 @@ var NavigationMenuComponent = _ref => {
12837
12823
  onItemActivate,
12838
12824
  views
12839
12825
  } = _ref,
12840
- props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
12826
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$J);
12841
12827
  var {
12842
12828
  activeItemId,
12843
12829
  setActiveItemId,
@@ -13037,7 +13023,8 @@ var TableView = _ref => {
13037
13023
  data,
13038
13024
  columns,
13039
13025
  footer,
13040
- caption
13026
+ caption,
13027
+ themeMode: elementMode
13041
13028
  } = _ref;
13042
13029
  return /*#__PURE__*/React.createElement(TableContainer, {
13043
13030
  role: "Table"
@@ -13304,7 +13291,7 @@ var useToggleState = defaultToggled => {
13304
13291
  };
13305
13292
  };
13306
13293
 
13307
- var _excluded$I = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views"];
13294
+ var _excluded$K = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views"];
13308
13295
  var ToggleView = _ref => {
13309
13296
  var {
13310
13297
  children,
@@ -13318,7 +13305,7 @@ var ToggleView = _ref => {
13318
13305
  onToggle,
13319
13306
  views
13320
13307
  } = _ref,
13321
- props = _objectWithoutPropertiesLoose(_ref, _excluded$I);
13308
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$K);
13322
13309
  var toggleColor = !isDisabled ? 'color.trueGray.400' : 'theme.disabled';
13323
13310
  var isActive = !!(isToggle || isHovered);
13324
13311
  var toggleVariants = {
@@ -13361,7 +13348,7 @@ var ToggleView = _ref => {
13361
13348
  }, toggleVariants[variant], props, views == null ? void 0 : views.container), children);
13362
13349
  };
13363
13350
 
13364
- var _excluded$J = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
13351
+ var _excluded$L = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
13365
13352
  // Destructuring properties from ToggleProps to be used within the ToggleComponent.
13366
13353
  var ToggleComponent = _ref => {
13367
13354
  var {
@@ -13373,7 +13360,7 @@ var ToggleComponent = _ref => {
13373
13360
  isToggled = false,
13374
13361
  onToggle
13375
13362
  } = _ref,
13376
- props = _objectWithoutPropertiesLoose(_ref, _excluded$J);
13363
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$L);
13377
13364
  // Initializing toggle state and set state functions using the custom hook useToggleState.
13378
13365
  var {
13379
13366
  isHovered,
@@ -13580,7 +13567,8 @@ var DragAndDropView = _ref => {
13580
13567
  draggedIndex,
13581
13568
  itemRefs,
13582
13569
  handleDragStart,
13583
- views
13570
+ views,
13571
+ themeMode: elementMode
13584
13572
  } = _ref;
13585
13573
  return /*#__PURE__*/React.createElement(View, Object.assign({
13586
13574
  overflow: "hidden",
@@ -13763,11 +13751,11 @@ var getDropdownPosition = function getDropdownPosition(side, align) {
13763
13751
  return positions[side];
13764
13752
  };
13765
13753
 
13766
- var _excluded$K = ["children", "views"],
13754
+ var _excluded$M = ["children", "views"],
13767
13755
  _excluded2$c = ["items", "side", "align", "views"],
13768
13756
  _excluded3$9 = ["item", "views"],
13769
13757
  _excluded4$8 = ["views"],
13770
- _excluded5$4 = ["trigger", "items", "side", "align", "views"];
13758
+ _excluded5$4 = ["trigger", "items", "side", "align", "views", "themeMode"];
13771
13759
  // Create context for the DropdownMenu
13772
13760
  var DropdownMenuContext = /*#__PURE__*/createContext({
13773
13761
  isOpen: false,
@@ -13801,7 +13789,7 @@ var DropdownMenuTrigger = _ref2 => {
13801
13789
  children,
13802
13790
  views
13803
13791
  } = _ref2,
13804
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$K);
13792
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$M);
13805
13793
  var {
13806
13794
  isOpen,
13807
13795
  setIsOpen
@@ -13961,7 +13949,7 @@ var DropdownMenuView = _ref6 => {
13961
13949
  }));
13962
13950
  };
13963
13951
 
13964
- var _excluded$L = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
13952
+ var _excluded$N = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
13965
13953
  /**
13966
13954
  * DropdownMenu component for displaying a menu when clicking on a trigger element.
13967
13955
  */
@@ -13976,7 +13964,7 @@ var DropdownMenuComponent = _ref => {
13976
13964
  defaultOpen = false,
13977
13965
  views
13978
13966
  } = _ref,
13979
- props = _objectWithoutPropertiesLoose(_ref, _excluded$L);
13967
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$N);
13980
13968
  var {
13981
13969
  isOpen,
13982
13970
  setIsOpen,
@@ -14174,7 +14162,7 @@ var useRect = ref => {
14174
14162
  return rect;
14175
14163
  };
14176
14164
 
14177
- var _excluded$M = ["children", "views", "asChild"],
14165
+ var _excluded$O = ["children", "views", "asChild"],
14178
14166
  _excluded2$d = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
14179
14167
  // Create context for the HoverCard
14180
14168
  var HoverCardContext = /*#__PURE__*/createContext({
@@ -14213,7 +14201,7 @@ var HoverCardTrigger = _ref2 => {
14213
14201
  views,
14214
14202
  asChild = false
14215
14203
  } = _ref2,
14216
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$M);
14204
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$O);
14217
14205
  var {
14218
14206
  openCard,
14219
14207
  closeCard,
@@ -14300,7 +14288,7 @@ var HoverCardContent = _ref3 => {
14300
14288
  }, views == null ? void 0 : views.container, props), children);
14301
14289
  };
14302
14290
 
14303
- var _excluded$N = ["children", "views", "openDelay", "closeDelay"];
14291
+ var _excluded$P = ["children", "views", "openDelay", "closeDelay"];
14304
14292
  /**
14305
14293
  * HoverCard component displays floating content when hovering over a trigger element.
14306
14294
  * Supports configurable open and close delays for a smoother user experience.
@@ -14312,7 +14300,7 @@ var HoverCardComponent = _ref => {
14312
14300
  openDelay,
14313
14301
  closeDelay
14314
14302
  } = _ref,
14315
- props = _objectWithoutPropertiesLoose(_ref, _excluded$N);
14303
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$P);
14316
14304
  var hoverCardState = useHoverCardState({
14317
14305
  openDelay,
14318
14306
  closeDelay
@@ -14442,7 +14430,7 @@ var getMenubarContentPosition = orientation => {
14442
14430
  };
14443
14431
  };
14444
14432
 
14445
- var _excluded$O = ["children", "orientation", "size", "variant", "views"];
14433
+ var _excluded$Q = ["children", "orientation", "size", "variant", "views"];
14446
14434
  // Create context for the Menubar
14447
14435
  var MenubarContext = /*#__PURE__*/createContext({
14448
14436
  activeMenuId: null,
@@ -14476,7 +14464,7 @@ var MenubarRoot = _ref2 => {
14476
14464
  variant = 'default',
14477
14465
  views
14478
14466
  } = _ref2,
14479
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$O);
14467
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$Q);
14480
14468
  var Container = orientation === 'horizontal' ? Horizontal : Vertical;
14481
14469
  return /*#__PURE__*/React.createElement(Container, Object.assign({
14482
14470
  role: "menubar",
@@ -14623,7 +14611,8 @@ var MenubarView = _ref8 => {
14623
14611
  orientation,
14624
14612
  size,
14625
14613
  variant,
14626
- views
14614
+ views,
14615
+ themeMode: elementMode
14627
14616
  } = _ref8;
14628
14617
  return /*#__PURE__*/React.createElement(MenubarRoot, {
14629
14618
  orientation: orientation,
@@ -14661,7 +14650,7 @@ var MenubarView = _ref8 => {
14661
14650
  })))))));
14662
14651
  };
14663
14652
 
14664
- var _excluded$P = ["items", "orientation", "size", "variant", "defaultActiveMenuId", "defaultOpenMenuId", "views"];
14653
+ var _excluded$R = ["items", "orientation", "size", "variant", "defaultActiveMenuId", "defaultOpenMenuId", "views"];
14665
14654
  /**
14666
14655
  * Menubar component for creating horizontal or vertical menu bars with dropdown menus.
14667
14656
  */
@@ -14675,7 +14664,7 @@ var MenubarComponent = _ref => {
14675
14664
  defaultOpenMenuId = null,
14676
14665
  views
14677
14666
  } = _ref,
14678
- props = _objectWithoutPropertiesLoose(_ref, _excluded$P);
14667
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$R);
14679
14668
  var {
14680
14669
  activeMenuId,
14681
14670
  setActiveMenuId,
@@ -14831,7 +14820,7 @@ var DisabledButtonStyles = {
14831
14820
  }
14832
14821
  };
14833
14822
 
14834
- var _excluded$Q = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "visiblePageNumbers", "views"];
14823
+ var _excluded$S = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "visiblePageNumbers", "views"];
14835
14824
  var PaginationView = _ref => {
14836
14825
  var {
14837
14826
  currentPage,
@@ -14862,7 +14851,7 @@ var PaginationView = _ref => {
14862
14851
  visiblePageNumbers,
14863
14852
  views
14864
14853
  } = _ref,
14865
- props = _objectWithoutPropertiesLoose(_ref, _excluded$Q);
14854
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$S);
14866
14855
  var handlePageChange = page => {
14867
14856
  if (page < 1 || page > totalPages || page === currentPage) {
14868
14857
  return;
@@ -14981,7 +14970,7 @@ var PaginationView = _ref => {
14981
14970
  }, option.label))))));
14982
14971
  };
14983
14972
 
14984
- var _excluded$R = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "views"];
14973
+ var _excluded$T = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "views"];
14985
14974
  /**
14986
14975
  * Pagination component for navigating through pages of content.
14987
14976
  */
@@ -15002,7 +14991,7 @@ var PaginationComponent = _ref => {
15002
14991
  shape = 'rounded',
15003
14992
  views
15004
14993
  } = _ref,
15005
- props = _objectWithoutPropertiesLoose(_ref, _excluded$R);
14994
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$T);
15006
14995
  var {
15007
14996
  visiblePageNumbers
15008
14997
  } = usePaginationState(currentPage, totalPages, maxPageButtons);
@@ -15038,11 +15027,16 @@ var Pagination = PaginationComponent;
15038
15027
  /**
15039
15028
  * Variant configurations for the Separator component
15040
15029
  */
15041
- var SeparatorVariants = {
15042
- solid: 'solid',
15043
- dashed: 'dashed',
15044
- dotted: 'dotted'
15030
+ var getSeparator = themeMode => {
15031
+ return {
15032
+ solid: 'solid',
15033
+ dashed: 'dashed',
15034
+ dotted: 'dotted'
15035
+ };
15036
+ // Add dark mode conditional styling here
15045
15037
  };
15038
+ // For backward compatibility
15039
+ var SeparatorVariants = /*#__PURE__*/getSeparator();
15046
15040
  /**
15047
15041
  * Thickness configurations for the Separator component
15048
15042
  * Following the 4px grid system
@@ -15067,7 +15061,7 @@ var DefaultSeparatorStyles = {
15067
15061
  }
15068
15062
  };
15069
15063
 
15070
- var _excluded$S = ["orientation", "variant", "thickness", "color", "spacing", "label", "decorative", "views"];
15064
+ var _excluded$U = ["orientation", "variant", "thickness", "color", "spacing", "label", "decorative", "views", "themeMode"];
15071
15065
  var SeparatorView = _ref => {
15072
15066
  var {
15073
15067
  orientation = 'horizontal',
@@ -15079,9 +15073,11 @@ var SeparatorView = _ref => {
15079
15073
  decorative = false,
15080
15074
  views
15081
15075
  } = _ref,
15082
- props = _objectWithoutPropertiesLoose(_ref, _excluded$S);
15076
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$U);
15083
15077
  // Access theme if needed for future enhancements
15084
- var {} = useTheme();
15078
+ var {
15079
+ themeMode
15080
+ } = useTheme();
15085
15081
  // Use provided color or default from theme
15086
15082
  var separatorColor = color || 'color.gray.200';
15087
15083
  var borderStyle = SeparatorVariants[variant];
@@ -15237,37 +15233,42 @@ var SidebarSizes = {
15237
15233
  /**
15238
15234
  * Variant styles for the Sidebar component
15239
15235
  */
15240
- var SidebarVariants = {
15241
- default: {
15242
- backgroundColor: 'white',
15243
- color: 'color.gray.800',
15244
- transition: 'all 0.2s ease'
15245
- },
15246
- filled: {
15247
- backgroundColor: 'color.gray.100',
15248
- color: 'color.gray.800',
15249
- transition: 'all 0.2s ease'
15250
- },
15251
- outline: {
15252
- backgroundColor: 'white',
15253
- borderWidth: '1px',
15254
- borderStyle: 'solid',
15255
- borderColor: 'color.gray.200',
15256
- color: 'color.gray.800',
15257
- transition: 'all 0.2s ease'
15258
- },
15259
- subtle: {
15260
- backgroundColor: 'color.gray.50',
15261
- color: 'color.gray.800',
15262
- transition: 'all 0.2s ease'
15263
- },
15264
- elevated: {
15265
- backgroundColor: 'white',
15266
- boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.1)',
15267
- color: 'color.gray.800',
15268
- transition: 'all 0.2s ease'
15269
- }
15236
+ var getSidebar = themeMode => {
15237
+ return {
15238
+ default: {
15239
+ backgroundColor: 'white',
15240
+ color: 'color.gray.800',
15241
+ transition: 'all 0.2s ease'
15242
+ },
15243
+ filled: {
15244
+ backgroundColor: 'color.gray.100',
15245
+ color: 'color.gray.800',
15246
+ transition: 'all 0.2s ease'
15247
+ },
15248
+ outline: {
15249
+ backgroundColor: 'white',
15250
+ borderWidth: '1px',
15251
+ borderStyle: 'solid',
15252
+ borderColor: 'color.gray.200',
15253
+ color: 'color.gray.800',
15254
+ transition: 'all 0.2s ease'
15255
+ },
15256
+ subtle: {
15257
+ backgroundColor: 'color.gray.50',
15258
+ color: 'color.gray.800',
15259
+ transition: 'all 0.2s ease'
15260
+ },
15261
+ elevated: {
15262
+ backgroundColor: 'white',
15263
+ boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.1)',
15264
+ color: 'color.gray.800',
15265
+ transition: 'all 0.2s ease'
15266
+ }
15267
+ };
15268
+ // Add dark mode conditional styling here
15270
15269
  };
15270
+ // For backward compatibility
15271
+ var SidebarVariants = /*#__PURE__*/getSidebar();
15271
15272
  /**
15272
15273
  * Position styles for the Sidebar component
15273
15274
  */
@@ -15310,10 +15311,10 @@ var SidebarTransitions = {
15310
15311
  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)'
15311
15312
  };
15312
15313
 
15313
- var _excluded$T = ["children", "showToggleButton", "views"],
15314
+ var _excluded$V = ["children", "showToggleButton", "views"],
15314
15315
  _excluded2$e = ["children", "views"],
15315
15316
  _excluded3$a = ["children", "views"],
15316
- _excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views"];
15317
+ _excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
15317
15318
  // Create context for the Sidebar
15318
15319
  var SidebarContext = /*#__PURE__*/createContext({
15319
15320
  isExpanded: true,
@@ -15343,7 +15344,7 @@ var SidebarHeader = _ref2 => {
15343
15344
  showToggleButton = true,
15344
15345
  views
15345
15346
  } = _ref2,
15346
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$T);
15347
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$V);
15347
15348
  var {
15348
15349
  isExpanded,
15349
15350
  toggleExpanded,
@@ -15498,7 +15499,7 @@ var SidebarView = _ref5 => {
15498
15499
  }))));
15499
15500
  };
15500
15501
 
15501
- var _excluded$U = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
15502
+ var _excluded$W = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
15502
15503
  /**
15503
15504
  * Sidebar component for creating collapsible, themeable and customizable sidebars.
15504
15505
  */
@@ -15520,7 +15521,7 @@ var SidebarComponent = _ref => {
15520
15521
  breakpointBehavior = 'overlay',
15521
15522
  views
15522
15523
  } = _ref,
15523
- props = _objectWithoutPropertiesLoose(_ref, _excluded$U);
15524
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$W);
15524
15525
  var {
15525
15526
  isExpanded,
15526
15527
  toggleExpanded,
@@ -15936,35 +15937,40 @@ var getHandleSizeStyles = (size, orientation) => {
15936
15937
  };
15937
15938
  return sizes[size];
15938
15939
  };
15939
- var HandleVariants = {
15940
- default: {
15941
- backgroundColor: 'transparent',
15942
- _hover: {
15943
- backgroundColor: 'color.gray.200'
15944
- },
15945
- _active: {
15946
- backgroundColor: 'color.gray.300'
15947
- }
15948
- },
15949
- subtle: {
15950
- backgroundColor: 'transparent',
15951
- _hover: {
15952
- backgroundColor: 'color.gray.100'
15940
+ var getHandle = themeMode => {
15941
+ return {
15942
+ default: {
15943
+ backgroundColor: 'transparent',
15944
+ _hover: {
15945
+ backgroundColor: 'color.gray.200'
15946
+ },
15947
+ _active: {
15948
+ backgroundColor: 'color.gray.300'
15949
+ }
15953
15950
  },
15954
- _active: {
15955
- backgroundColor: 'color.gray.200'
15956
- }
15957
- },
15958
- prominent: {
15959
- backgroundColor: 'color.gray.100',
15960
- _hover: {
15961
- backgroundColor: 'color.gray.200'
15951
+ subtle: {
15952
+ backgroundColor: 'transparent',
15953
+ _hover: {
15954
+ backgroundColor: 'color.gray.100'
15955
+ },
15956
+ _active: {
15957
+ backgroundColor: 'color.gray.200'
15958
+ }
15962
15959
  },
15963
- _active: {
15964
- backgroundColor: 'color.gray.300'
15960
+ prominent: {
15961
+ backgroundColor: 'color.gray.100',
15962
+ _hover: {
15963
+ backgroundColor: 'color.gray.200'
15964
+ },
15965
+ _active: {
15966
+ backgroundColor: 'color.gray.300'
15967
+ }
15965
15968
  }
15966
- }
15969
+ };
15970
+ // Add dark mode conditional styling here
15967
15971
  };
15972
+ // For backward compatibility
15973
+ var HandleVariants = /*#__PURE__*/getHandle();
15968
15974
  var HandleIconStyles = {
15969
15975
  horizontal: {
15970
15976
  width: '2px',
@@ -15980,7 +15986,7 @@ var HandleIconStyles = {
15980
15986
  }
15981
15987
  };
15982
15988
 
15983
- var _excluded$V = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
15989
+ var _excluded$X = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
15984
15990
  _excluded2$f = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
15985
15991
  _excluded3$b = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "views"];
15986
15992
  // Create context for the Resizable component
@@ -16025,7 +16031,7 @@ var ResizablePanel = _ref2 => {
16025
16031
  onCollapseChange,
16026
16032
  views
16027
16033
  } = _ref2,
16028
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$V);
16034
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$X);
16029
16035
  var {
16030
16036
  orientation,
16031
16037
  registerPanel,
@@ -16240,7 +16246,7 @@ var ResizableView = _ref4 => {
16240
16246
  }, ResizableOrientations[orientation], views == null ? void 0 : views.container, props), children);
16241
16247
  };
16242
16248
 
16243
- var _excluded$W = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
16249
+ var _excluded$Y = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
16244
16250
  /**
16245
16251
  * Resizable component for creating resizable panel groups and layouts.
16246
16252
  */
@@ -16260,7 +16266,7 @@ var ResizableComponent = _ref => {
16260
16266
  keyboardResizeBy = 10,
16261
16267
  views
16262
16268
  } = _ref,
16263
- props = _objectWithoutPropertiesLoose(_ref, _excluded$W);
16269
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$Y);
16264
16270
  var {
16265
16271
  isResizing,
16266
16272
  setIsResizing,
@@ -16325,7 +16331,7 @@ Resizable.Handle = ResizableHandle;
16325
16331
  * Theme configurations for the Toast component
16326
16332
  * Following the design system color palette
16327
16333
  */
16328
- var Themes$2 = {
16334
+ var Themes$1 = {
16329
16335
  info: {
16330
16336
  container: {
16331
16337
  backgroundColor: 'color.blue.50',
@@ -16518,10 +16524,11 @@ var ToastView = _ref => {
16518
16524
  render,
16519
16525
  icon: customIcon,
16520
16526
  id,
16521
- isVisible = true
16527
+ isVisible = true,
16528
+ themeMode: elementMode
16522
16529
  } = _ref;
16523
16530
  // We don't need the auto-close timer here anymore as it's handled in the store
16524
- var Theme = theme != null ? theme : Themes$2;
16531
+ var Theme = theme != null ? theme : Themes$1;
16525
16532
  // Get the appropriate icon based on the variant
16526
16533
  var getIcon = () => {
16527
16534
  // If a custom icon is provided, use it
@@ -16901,29 +16908,34 @@ var CommandSizes = {
16901
16908
  maxHeight: '500px'
16902
16909
  }
16903
16910
  };
16904
- var CommandVariants = {
16905
- default: {
16906
- backgroundColor: 'white',
16907
- borderWidth: '1px',
16908
- borderStyle: 'solid',
16909
- borderColor: 'color.gray.200',
16910
- boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16911
- },
16912
- filled: {
16913
- backgroundColor: 'color.gray.50',
16914
- borderWidth: '1px',
16915
- borderStyle: 'solid',
16916
- borderColor: 'color.gray.200',
16917
- boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16918
- },
16919
- outline: {
16920
- backgroundColor: 'white',
16921
- borderWidth: '2px',
16922
- borderStyle: 'solid',
16923
- borderColor: 'color.gray.300',
16924
- boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16925
- }
16911
+ var getCommand = themeMode => {
16912
+ return {
16913
+ default: {
16914
+ backgroundColor: 'white',
16915
+ borderWidth: '1px',
16916
+ borderStyle: 'solid',
16917
+ borderColor: 'color.gray.200',
16918
+ boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16919
+ },
16920
+ filled: {
16921
+ backgroundColor: 'color.gray.50',
16922
+ borderWidth: '1px',
16923
+ borderStyle: 'solid',
16924
+ borderColor: 'color.gray.200',
16925
+ boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16926
+ },
16927
+ outline: {
16928
+ backgroundColor: 'white',
16929
+ borderWidth: '2px',
16930
+ borderStyle: 'solid',
16931
+ borderColor: 'color.gray.300',
16932
+ boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
16933
+ }
16934
+ };
16935
+ // Add dark mode conditional styling here
16926
16936
  };
16937
+ // For backward compatibility
16938
+ var CommandVariants = /*#__PURE__*/getCommand();
16927
16939
  var CommandInputStyles = {
16928
16940
  display: 'flex',
16929
16941
  alignItems: 'center',
@@ -17019,7 +17031,7 @@ var CommandFooterStyles = {
17019
17031
  color: 'color.gray.500'
17020
17032
  };
17021
17033
 
17022
- var _excluded$X = ["value", "onValueChange", "placeholder", "views"],
17034
+ var _excluded$Z = ["value", "onValueChange", "placeholder", "views"],
17023
17035
  _excluded2$g = ["children", "views"],
17024
17036
  _excluded3$c = ["heading", "children", "views"],
17025
17037
  _excluded4$a = ["item", "selected", "onSelect", "views"],
@@ -17051,7 +17063,7 @@ var CommandInput = _ref2 => {
17051
17063
  placeholder = 'Type a command or search...',
17052
17064
  views
17053
17065
  } = _ref2,
17054
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$X);
17066
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$Z);
17055
17067
  var inputRef = useRef(null);
17056
17068
  // Focus input when component mounts
17057
17069
  React.useEffect(() => {
@@ -17239,7 +17251,7 @@ var CommandView = _ref7 => {
17239
17251
  })))), footer && (/*#__PURE__*/React.createElement(View, Object.assign({}, CommandFooterStyles, views == null ? void 0 : views.footer), footer)))));
17240
17252
  };
17241
17253
 
17242
- var _excluded$Y = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
17254
+ var _excluded$_ = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
17243
17255
  /**
17244
17256
  * Command component for displaying a command palette with search functionality.
17245
17257
  */
@@ -17257,7 +17269,7 @@ var CommandComponent = _ref => {
17257
17269
  footer,
17258
17270
  views
17259
17271
  } = _ref,
17260
- props = _objectWithoutPropertiesLoose(_ref, _excluded$Y);
17272
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$_);
17261
17273
  var {
17262
17274
  search,
17263
17275
  setSearch,
@@ -17414,23 +17426,28 @@ var TooltipSizes = {
17414
17426
  maxWidth: '300px'
17415
17427
  }
17416
17428
  };
17417
- var TooltipVariants = {
17418
- default: {
17419
- backgroundColor: 'color.gray.800',
17420
- color: 'color.white'
17421
- },
17422
- light: {
17423
- backgroundColor: 'color.white',
17424
- color: 'color.gray.800',
17425
- borderWidth: '1px',
17426
- borderStyle: 'solid',
17427
- borderColor: 'color.gray.200'
17428
- },
17429
- dark: {
17430
- backgroundColor: 'color.black',
17431
- color: 'color.white'
17432
- }
17429
+ var getTooltip = themeMode => {
17430
+ return {
17431
+ default: {
17432
+ backgroundColor: 'color.gray.800',
17433
+ color: 'color.white'
17434
+ },
17435
+ light: {
17436
+ backgroundColor: 'color.white',
17437
+ color: 'color.gray.800',
17438
+ borderWidth: '1px',
17439
+ borderStyle: 'solid',
17440
+ borderColor: 'color.gray.200'
17441
+ },
17442
+ dark: {
17443
+ backgroundColor: 'color.black',
17444
+ color: 'color.white'
17445
+ }
17446
+ };
17447
+ // Add dark mode conditional styling here
17433
17448
  };
17449
+ // For backward compatibility
17450
+ var TooltipVariants = /*#__PURE__*/getTooltip();
17434
17451
  var getTooltipPositionStyles = (position, align) => {
17435
17452
  var baseStyles = {
17436
17453
  position: 'absolute',
@@ -17539,9 +17556,9 @@ var getArrowStyles = position => {
17539
17556
  }
17540
17557
  };
17541
17558
 
17542
- var _excluded$Z = ["children", "views", "asChild"],
17559
+ var _excluded$$ = ["children", "views", "asChild"],
17543
17560
  _excluded2$h = ["children", "views"],
17544
- _excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views"];
17561
+ _excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
17545
17562
  // Create context for the Tooltip
17546
17563
  var TooltipContext = /*#__PURE__*/createContext({
17547
17564
  isOpen: false,
@@ -17575,7 +17592,7 @@ var TooltipTrigger = _ref2 => {
17575
17592
  views,
17576
17593
  asChild = false
17577
17594
  } = _ref2,
17578
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$Z);
17595
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$$);
17579
17596
  var {
17580
17597
  openTooltip,
17581
17598
  closeTooltip,
@@ -17668,7 +17685,7 @@ var TooltipView = _ref4 => {
17668
17685
  }, TooltipSizes[size], TooltipVariants[variant], positionStyles, views == null ? void 0 : views.content), typeof content === 'string' ? (/*#__PURE__*/React.createElement(Text$1, Object.assign({}, views == null ? void 0 : views.text), content)) : content, showArrow && /*#__PURE__*/React.createElement(View, Object.assign({}, arrowStyles, views == null ? void 0 : views.arrow)))));
17669
17686
  };
17670
17687
 
17671
- var _excluded$_ = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
17688
+ var _excluded$10 = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
17672
17689
  /**
17673
17690
  * Tooltip component for displaying additional information when hovering over an element.
17674
17691
  * Supports configurable positions, delays, and styling.
@@ -17688,7 +17705,7 @@ var TooltipComponent = _ref => {
17688
17705
  isDisabled = false,
17689
17706
  views
17690
17707
  } = _ref,
17691
- props = _objectWithoutPropertiesLoose(_ref, _excluded$_);
17708
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$10);
17692
17709
  var tooltipState = useTooltipState({
17693
17710
  defaultOpen,
17694
17711
  openDelay,