@app-studio/web 0.8.77 → 0.8.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion/Accordion.view.d.ts +2 -1
- package/dist/components/Alert/Alert/Alert.props.d.ts +7 -1
- package/dist/components/Alert/Alert/Alert.style.d.ts +9 -1
- package/dist/components/Alert/Alert/Alert.view.d.ts +1 -1
- package/dist/components/Alert/Alert.d.ts +1 -1
- package/dist/components/Alert/examples/darkMode.d.ts +2 -0
- package/dist/components/Badge/Badge/Badge.style.d.ts +5 -1
- package/dist/components/Badge/Badge.d.ts +1 -1
- package/dist/components/Badge/examples/darkMode.d.ts +2 -0
- package/dist/components/Badge/examples/index.d.ts +1 -0
- package/dist/components/Card/Card/Card.style.d.ts +7 -3
- package/dist/components/Card/examples/darkModeExample.d.ts +2 -0
- package/dist/components/Command/Command/Command.style.d.ts +1 -0
- package/dist/components/ContextMenu/ContextMenu/ContextMenu.view.d.ts +2 -1
- package/dist/components/DragAndDrop/DragAndDrop/DragAndDrop.props.d.ts +1 -1
- package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.view.d.ts +2 -1
- package/dist/components/Form/Label/Label/Label.type.d.ts +1 -1
- package/dist/components/Form/TextArea/TextArea/TextArea.type.d.ts +4 -2
- package/dist/components/Input/Input.type.d.ts +2 -1
- package/dist/components/Menubar/Menubar/Menubar.view.d.ts +2 -1
- package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.view.d.ts +2 -1
- package/dist/components/OTPInput/OTPInput/OTPInput.type.d.ts +1 -2
- package/dist/components/Resizable/Resizable/Resizable.style.d.ts +1 -0
- package/dist/components/Separator/Separator/Separator.style.d.ts +1 -0
- package/dist/components/Sidebar/Sidebar/Sidebar.style.d.ts +1 -0
- package/dist/components/Slider/Slider/Slider.style.d.ts +1 -0
- package/dist/components/Table/Table/Table.props.d.ts +2 -2
- package/dist/components/Toast/Toast/Toast.props.d.ts +2 -1
- package/dist/components/Tooltip/Tooltip/Tooltip.style.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip/Tooltip.view.d.ts +2 -1
- package/dist/web.cjs.development.js +559 -663
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +560 -664
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +559 -663
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +1 -1
package/dist/web.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ import 'core-js/modules/es.array.iterator.js';
|
|
|
5
5
|
import 'core-js/modules/es.string.includes.js';
|
|
6
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
7
7
|
import 'core-js/modules/es.regexp.to-string.js';
|
|
8
|
-
import { View, Horizontal, Vertical, Element, Center,
|
|
8
|
+
import { View, Horizontal, Vertical, Element, Center, useTheme, Image, Typography, Input, Form, Text as Text$1 } from 'app-studio';
|
|
9
9
|
import 'core-js/modules/es.symbol.description.js';
|
|
10
10
|
import 'core-js/modules/es.parse-float.js';
|
|
11
11
|
import { Link as Link$1 } from 'react-router-dom';
|
|
@@ -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: [],
|
|
@@ -463,12 +463,7 @@ var FontSizes = {
|
|
|
463
463
|
sm: '14px',
|
|
464
464
|
md: '16px',
|
|
465
465
|
lg: '18px',
|
|
466
|
-
xl: '20px'
|
|
467
|
-
'2xl': '24px',
|
|
468
|
-
'3xl': '30px',
|
|
469
|
-
'4xl': '36px',
|
|
470
|
-
'5xl': '48px',
|
|
471
|
-
'6xl': '60px'
|
|
466
|
+
xl: '20px'
|
|
472
467
|
};
|
|
473
468
|
/**
|
|
474
469
|
* Line heights following typography guidelines
|
|
@@ -478,12 +473,7 @@ var LineHeights = {
|
|
|
478
473
|
sm: '20px',
|
|
479
474
|
md: '24px',
|
|
480
475
|
lg: '28px',
|
|
481
|
-
xl: '28px'
|
|
482
|
-
'2xl': '32px',
|
|
483
|
-
'3xl': '36px',
|
|
484
|
-
'4xl': '40px',
|
|
485
|
-
'5xl': '60px',
|
|
486
|
-
'6xl': '72px'
|
|
476
|
+
xl: '28px'
|
|
487
477
|
};
|
|
488
478
|
/**
|
|
489
479
|
* Font weights following typography guidelines
|
|
@@ -724,9 +714,12 @@ var IconWrapper = _ref => {
|
|
|
724
714
|
};
|
|
725
715
|
// Utility function to handle fill and stroke based on 'filled' prop
|
|
726
716
|
var getSvgProps = (filled, color, strokeWidth) => {
|
|
717
|
+
var {
|
|
718
|
+
getColor
|
|
719
|
+
} = useTheme();
|
|
727
720
|
return {
|
|
728
|
-
fill: filled ? color : 'none',
|
|
729
|
-
stroke: filled ? 'none' : color,
|
|
721
|
+
fill: filled ? getColor(color) : 'none',
|
|
722
|
+
stroke: filled ? 'none' : getColor(color),
|
|
730
723
|
strokeWidth,
|
|
731
724
|
strokeLinecap: 'round',
|
|
732
725
|
strokeLinejoin: 'round'
|
|
@@ -1192,7 +1185,7 @@ var InfoIcon = _ref19 => {
|
|
|
1192
1185
|
var {
|
|
1193
1186
|
widthHeight = 24,
|
|
1194
1187
|
color = 'currentColor',
|
|
1195
|
-
filled =
|
|
1188
|
+
filled = true,
|
|
1196
1189
|
strokeWidth = 1
|
|
1197
1190
|
} = _ref19,
|
|
1198
1191
|
props = _objectWithoutPropertiesLoose(_ref19, _excluded19);
|
|
@@ -2817,93 +2810,104 @@ var Icon = {
|
|
|
2817
2810
|
* - Transitions: Subtle animations
|
|
2818
2811
|
*/
|
|
2819
2812
|
/**
|
|
2820
|
-
*
|
|
2813
|
+
* Get theme styles for different alert variants based on theme mode
|
|
2821
2814
|
*/
|
|
2822
|
-
var
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
container: {
|
|
2838
|
-
backgroundColor: 'color.blue.50',
|
|
2839
|
-
borderColor: 'color.blue.200',
|
|
2840
|
-
boxShadow: '0 1px 2px rgba(59, 130, 246, 0.05)'
|
|
2841
|
-
},
|
|
2842
|
-
content: {
|
|
2843
|
-
color: 'color.blue.700'
|
|
2844
|
-
},
|
|
2845
|
-
icon: {
|
|
2846
|
-
color: 'color.blue.500'
|
|
2847
|
-
}
|
|
2848
|
-
},
|
|
2849
|
-
success: {
|
|
2850
|
-
container: {
|
|
2851
|
-
backgroundColor: 'color.green.50',
|
|
2852
|
-
borderColor: 'color.green.200',
|
|
2853
|
-
boxShadow: '0 1px 2px rgba(34, 197, 94, 0.05)'
|
|
2854
|
-
},
|
|
2855
|
-
content: {
|
|
2856
|
-
color: 'color.green.700'
|
|
2857
|
-
},
|
|
2858
|
-
icon: {
|
|
2859
|
-
color: 'color.green.500'
|
|
2860
|
-
}
|
|
2861
|
-
},
|
|
2862
|
-
error: {
|
|
2863
|
-
container: {
|
|
2864
|
-
backgroundColor: 'color.red.50',
|
|
2865
|
-
borderColor: 'color.red.200',
|
|
2866
|
-
boxShadow: '0 1px 2px rgba(239, 68, 68, 0.05)'
|
|
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
|
+
}
|
|
2867
2830
|
},
|
|
2868
|
-
|
|
2869
|
-
|
|
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
|
+
}
|
|
2870
2843
|
},
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
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
|
+
}
|
|
2880
2856
|
},
|
|
2881
|
-
|
|
2882
|
-
|
|
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
|
+
}
|
|
2883
2869
|
},
|
|
2884
|
-
|
|
2885
|
-
|
|
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
|
+
}
|
|
2886
2882
|
}
|
|
2887
|
-
}
|
|
2883
|
+
};
|
|
2888
2884
|
};
|
|
2889
2885
|
|
|
2886
|
+
var _excluded$4 = ["icon", "title", "views", "description", "variant", "themeMode"];
|
|
2890
2887
|
/**
|
|
2891
2888
|
* Alert component that displays important messages to users
|
|
2892
2889
|
*/
|
|
2893
2890
|
var AlertView = _ref => {
|
|
2894
2891
|
var {
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
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);
|
|
2901
2905
|
// Select the appropriate icon based on the variant
|
|
2902
2906
|
var getIcon = () => {
|
|
2903
2907
|
var _views$icon$color, _views$icon;
|
|
2904
2908
|
if (icon) return icon;
|
|
2905
|
-
// Use the theme color directly from
|
|
2906
|
-
var iconColor = (_views$icon$color = views == null || (_views$icon = views.icon) == null ? void 0 : _views$icon.color) != null ? _views$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;
|
|
2907
2911
|
var iconProps = {
|
|
2908
2912
|
size: 20,
|
|
2909
2913
|
color: iconColor
|
|
@@ -2934,12 +2938,12 @@ var AlertView = _ref => {
|
|
|
2934
2938
|
,
|
|
2935
2939
|
borderWidth: "1px",
|
|
2936
2940
|
borderStyle: "solid",
|
|
2937
|
-
borderColor:
|
|
2938
|
-
backgroundColor:
|
|
2939
|
-
boxShadow:
|
|
2941
|
+
borderColor: themes[variant].container.borderColor,
|
|
2942
|
+
backgroundColor: themes[variant].container.backgroundColor,
|
|
2943
|
+
boxShadow: themes[variant].container.boxShadow,
|
|
2940
2944
|
// Animation
|
|
2941
2945
|
transition: "all 0.2s ease"
|
|
2942
|
-
}, 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({
|
|
2943
2947
|
alignSelf: "flex-start",
|
|
2944
2948
|
marginTop: "2px"
|
|
2945
2949
|
}, views == null ? void 0 : views.icon), getIcon()), /*#__PURE__*/React.createElement(Vertical, {
|
|
@@ -2949,37 +2953,22 @@ var AlertView = _ref => {
|
|
|
2949
2953
|
fontWeight: "600" // Semi-bold
|
|
2950
2954
|
,
|
|
2951
2955
|
lineHeight: "24px",
|
|
2952
|
-
color:
|
|
2956
|
+
color: themes[variant].content.color
|
|
2953
2957
|
}, views == null ? void 0 : views.title), title), /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
2954
2958
|
fontSize: "14px",
|
|
2955
2959
|
fontWeight: "400" // Regular
|
|
2956
2960
|
,
|
|
2957
2961
|
lineHeight: "20px",
|
|
2958
|
-
color:
|
|
2962
|
+
color: themes[variant].content.color
|
|
2959
2963
|
}, views == null ? void 0 : views.description), description)));
|
|
2960
2964
|
};
|
|
2961
2965
|
|
|
2962
|
-
// Definition of the AlertComponent functional component with
|
|
2963
|
-
var AlertComponent =
|
|
2964
|
-
var {
|
|
2965
|
-
icon,
|
|
2966
|
-
title,
|
|
2967
|
-
views,
|
|
2968
|
-
description,
|
|
2969
|
-
variant
|
|
2970
|
-
} = _ref;
|
|
2971
|
-
return /*#__PURE__*/React.createElement(AlertView, {
|
|
2972
|
-
icon: icon,
|
|
2973
|
-
title: title,
|
|
2974
|
-
views: views,
|
|
2975
|
-
description: description,
|
|
2976
|
-
variant: variant
|
|
2977
|
-
});
|
|
2978
|
-
};
|
|
2966
|
+
// Definition of the AlertComponent functional component with props.
|
|
2967
|
+
var AlertComponent = props => /*#__PURE__*/React.createElement(AlertView, Object.assign({}, props));
|
|
2979
2968
|
// Exporting the AlertComponent as 'Alert' for use in other parts of the application.
|
|
2980
2969
|
var Alert = AlertComponent;
|
|
2981
2970
|
|
|
2982
|
-
var _excluded$
|
|
2971
|
+
var _excluded$5 = ["ratio", "children", "views"];
|
|
2983
2972
|
// Declaration of a functional component named AspectRatioView.
|
|
2984
2973
|
var AspectRatioView = _ref => {
|
|
2985
2974
|
var {
|
|
@@ -2990,7 +2979,7 @@ var AspectRatioView = _ref => {
|
|
|
2990
2979
|
views
|
|
2991
2980
|
// Spread the rest of the props to inherit additional properties.
|
|
2992
2981
|
} = _ref,
|
|
2993
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2982
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
2994
2983
|
return /*#__PURE__*/React.createElement(Center, Object.assign({
|
|
2995
2984
|
width: '100%',
|
|
2996
2985
|
position: "relative",
|
|
@@ -3006,14 +2995,14 @@ var AspectRatioView = _ref => {
|
|
|
3006
2995
|
}, views == null ? void 0 : views.view), children));
|
|
3007
2996
|
};
|
|
3008
2997
|
|
|
3009
|
-
var _excluded$
|
|
2998
|
+
var _excluded$6 = ["ratio", "children"];
|
|
3010
2999
|
// Declaration of the AspectRatioComponent functional component with destructured props.
|
|
3011
3000
|
var AspectRatioComponent = _ref => {
|
|
3012
3001
|
var {
|
|
3013
3002
|
ratio,
|
|
3014
3003
|
children
|
|
3015
3004
|
} = _ref,
|
|
3016
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3005
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
3017
3006
|
// Beginning of the return statement in the functional component.
|
|
3018
3007
|
return /*#__PURE__*/React.createElement(AspectRatioView, Object.assign({
|
|
3019
3008
|
ratio: ratio
|
|
@@ -3063,17 +3052,11 @@ var DefaultAvatarStyles = {
|
|
|
3063
3052
|
borderColor: 'transparent',
|
|
3064
3053
|
backgroundColor: 'color.gray.100',
|
|
3065
3054
|
boxShadow: '0px 2px 4px rgba(0, 0, 0, 0.1)',
|
|
3066
|
-
transition: 'all 0.2s ease'
|
|
3067
|
-
'@media (prefers-color-scheme: dark)': {
|
|
3068
|
-
backgroundColor: 'color.gray.700'
|
|
3069
|
-
}
|
|
3055
|
+
transition: 'all 0.2s ease'
|
|
3070
3056
|
},
|
|
3071
3057
|
fallback: {
|
|
3072
3058
|
fontWeight: '500',
|
|
3073
|
-
color: 'color.gray.600'
|
|
3074
|
-
'@media (prefers-color-scheme: dark)': {
|
|
3075
|
-
color: 'color.gray.300'
|
|
3076
|
-
}
|
|
3059
|
+
color: 'color.gray.600'
|
|
3077
3060
|
},
|
|
3078
3061
|
image: {
|
|
3079
3062
|
objectFit: 'cover',
|
|
@@ -3244,58 +3227,69 @@ var PositionStyles = {
|
|
|
3244
3227
|
}
|
|
3245
3228
|
};
|
|
3246
3229
|
/**
|
|
3247
|
-
*
|
|
3230
|
+
* Get badge variants with consistent styling based on theme mode
|
|
3248
3231
|
*/
|
|
3249
|
-
var
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
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
|
+
};
|
|
3284
3270
|
};
|
|
3285
3271
|
|
|
3272
|
+
var _excluded$7 = ["content", "position", "shape", "variant", "size", "views", "themeMode"];
|
|
3286
3273
|
// No need to import ViewProps as it's not used directly
|
|
3287
3274
|
/**
|
|
3288
3275
|
* Badge View Component
|
|
3289
3276
|
*/
|
|
3290
3277
|
var BadgeView = _ref => {
|
|
3291
3278
|
var {
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
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];
|
|
3299
3293
|
// Combine styles for the badge
|
|
3300
3294
|
var combinedStyles = Object.assign({
|
|
3301
3295
|
// Base styles
|
|
@@ -3303,13 +3297,13 @@ var BadgeView = _ref => {
|
|
|
3303
3297
|
display: 'flex',
|
|
3304
3298
|
alignItems: 'center',
|
|
3305
3299
|
justifyContent: 'center',
|
|
3306
|
-
|
|
3300
|
+
backgroundColor: 'color.black',
|
|
3307
3301
|
// Apply shape, size, and variant styles
|
|
3308
3302
|
borderRadius: BadgeShapes[shape]
|
|
3309
|
-
}, BadgeSizes[size],
|
|
3303
|
+
}, BadgeSizes[size], variantStyles, position ? PositionStyles[position] : {}, views == null ? void 0 : views.container);
|
|
3310
3304
|
return /*#__PURE__*/React.createElement(Center, Object.assign({
|
|
3311
3305
|
role: "badge"
|
|
3312
|
-
}, combinedStyles), /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
3306
|
+
}, combinedStyles, props), /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
3313
3307
|
role: "badgeText",
|
|
3314
3308
|
fontWeight: "500" // Medium weight for better readability
|
|
3315
3309
|
,
|
|
@@ -3319,29 +3313,8 @@ var BadgeView = _ref => {
|
|
|
3319
3313
|
}), content || ''));
|
|
3320
3314
|
};
|
|
3321
3315
|
|
|
3322
|
-
//
|
|
3323
|
-
var Badge =
|
|
3324
|
-
var {
|
|
3325
|
-
// Importing the BadgeView component which is the presentation component for Badge.
|
|
3326
|
-
content,
|
|
3327
|
-
// Exporting the Badge as a functional component from this module.
|
|
3328
|
-
shape,
|
|
3329
|
-
// Destructuring the props in the component function parameter list, to directly access individual properties.
|
|
3330
|
-
position,
|
|
3331
|
-
// Passing all the destructured props to the BadgeView component to maintain the same API surface.
|
|
3332
|
-
variant,
|
|
3333
|
-
size,
|
|
3334
|
-
views
|
|
3335
|
-
} = _ref;
|
|
3336
|
-
return /*#__PURE__*/React.createElement(BadgeView, {
|
|
3337
|
-
content: content,
|
|
3338
|
-
shape: shape,
|
|
3339
|
-
position: position,
|
|
3340
|
-
variant: variant,
|
|
3341
|
-
size: size,
|
|
3342
|
-
views: views
|
|
3343
|
-
});
|
|
3344
|
-
};
|
|
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));
|
|
3345
3318
|
|
|
3346
3319
|
var useButtonState = () => {
|
|
3347
3320
|
var [isHovered, setIsHovered] = React.useState(false);
|
|
@@ -3370,15 +3343,10 @@ var IconSizes = {
|
|
|
3370
3343
|
sm: 14,
|
|
3371
3344
|
md: 16,
|
|
3372
3345
|
lg: 18,
|
|
3373
|
-
xl: 20
|
|
3374
|
-
'2xl': 24,
|
|
3375
|
-
'3xl': 30,
|
|
3376
|
-
'4xl': 36,
|
|
3377
|
-
'5xl': 48,
|
|
3378
|
-
'6xl': 64
|
|
3346
|
+
xl: 20
|
|
3379
3347
|
};
|
|
3380
3348
|
|
|
3381
|
-
var _excluded$
|
|
3349
|
+
var _excluded$8 = ["children", "to", "iconSize", "underline", "isHovered", "isExternal", "views", "setIsHovered"];
|
|
3382
3350
|
// Component definition for 'LinkView', a functional component with props defined by 'LinkViewProps'.
|
|
3383
3351
|
var LinkView = _ref => {
|
|
3384
3352
|
var {
|
|
@@ -3401,7 +3369,7 @@ var LinkView = _ref => {
|
|
|
3401
3369
|
// Setter function for the hover state, noop function provided by default.
|
|
3402
3370
|
setIsHovered = () => {}
|
|
3403
3371
|
} = _ref,
|
|
3404
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3372
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
3405
3373
|
// Function to handle mouse enter/leave events to toggle hover state.
|
|
3406
3374
|
var handleHover = () => {
|
|
3407
3375
|
if (underline === 'hover') setIsHovered(true);
|
|
@@ -3593,6 +3561,9 @@ var getButtonVariants = (color, isLight) => ({
|
|
|
3593
3561
|
ghost: {
|
|
3594
3562
|
backgroundColor: 'transparent',
|
|
3595
3563
|
color: color,
|
|
3564
|
+
borderWidth: 0,
|
|
3565
|
+
borderStyle: 'none',
|
|
3566
|
+
borderColor: 'transparent',
|
|
3596
3567
|
on: {
|
|
3597
3568
|
hover: {
|
|
3598
3569
|
backgroundColor: color + "10",
|
|
@@ -3627,12 +3598,7 @@ var DefaultSizes = {
|
|
|
3627
3598
|
sm: 18,
|
|
3628
3599
|
md: 22,
|
|
3629
3600
|
lg: 26,
|
|
3630
|
-
xl: 30
|
|
3631
|
-
'2xl': 40,
|
|
3632
|
-
'3xl': 50,
|
|
3633
|
-
'4xl': 60,
|
|
3634
|
-
'5xl': 70,
|
|
3635
|
-
'6xl': 80
|
|
3601
|
+
xl: 30
|
|
3636
3602
|
};
|
|
3637
3603
|
// Specifies a mapping of spinning speed labels to numerical millisecond values, determining the speed of the Loader component's animation cycles.
|
|
3638
3604
|
var DefaultSpeeds = {
|
|
@@ -3641,7 +3607,7 @@ var DefaultSpeeds = {
|
|
|
3641
3607
|
slow: 300
|
|
3642
3608
|
};
|
|
3643
3609
|
|
|
3644
|
-
var _excluded$
|
|
3610
|
+
var _excluded$9 = ["size", "speed", "color", "themeMode"],
|
|
3645
3611
|
_excluded2$2 = ["size", "speed", "color", "themeMode"],
|
|
3646
3612
|
_excluded3$2 = ["size", "speed", "color", "themeMode"],
|
|
3647
3613
|
_excluded4$2 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition", "views"];
|
|
@@ -3652,7 +3618,7 @@ var DefaultSpinner = _ref => {
|
|
|
3652
3618
|
color = 'theme.loading',
|
|
3653
3619
|
themeMode: elementMode
|
|
3654
3620
|
} = _ref,
|
|
3655
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3621
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
3656
3622
|
var {
|
|
3657
3623
|
getColor,
|
|
3658
3624
|
themeMode
|
|
@@ -3817,7 +3783,7 @@ React.createElement(LoaderView, Object.assign({}, props)));
|
|
|
3817
3783
|
// Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
|
|
3818
3784
|
var Loader = LoaderComponent;
|
|
3819
3785
|
|
|
3820
|
-
var _excluded$
|
|
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"];
|
|
3821
3787
|
var contrast = /*#__PURE__*/require('contrast');
|
|
3822
3788
|
var ButtonView = _ref => {
|
|
3823
3789
|
var _props$onClick;
|
|
@@ -3846,7 +3812,7 @@ var ButtonView = _ref => {
|
|
|
3846
3812
|
linkProps,
|
|
3847
3813
|
views
|
|
3848
3814
|
} = _ref,
|
|
3849
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3815
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
3850
3816
|
var {
|
|
3851
3817
|
getColor,
|
|
3852
3818
|
themeMode
|
|
@@ -3897,6 +3863,7 @@ var ButtonView = _ref => {
|
|
|
3897
3863
|
alignItems: "center",
|
|
3898
3864
|
justifyContent: "center",
|
|
3899
3865
|
"aria-label": ariaLabel,
|
|
3866
|
+
backgroundColor: "transparent",
|
|
3900
3867
|
borderRadius: ButtonShapes[shape],
|
|
3901
3868
|
onClick: (_props$onClick = props.onClick) != null ? _props$onClick : onClick,
|
|
3902
3869
|
onMouseEnter: () => handleHover(true),
|
|
@@ -3964,97 +3931,95 @@ var CardShapes = {
|
|
|
3964
3931
|
pillShaped: '16px'
|
|
3965
3932
|
};
|
|
3966
3933
|
/**
|
|
3967
|
-
*
|
|
3934
|
+
* Get card variants with consistent styling based on theme mode
|
|
3968
3935
|
*/
|
|
3969
|
-
var
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
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
|
+
}
|
|
3993
3963
|
}
|
|
3994
|
-
}
|
|
3964
|
+
};
|
|
3995
3965
|
};
|
|
3996
3966
|
/**
|
|
3997
3967
|
* Function to get default styles for Card components
|
|
3998
|
-
* @param theme - Theme object
|
|
3968
|
+
* @param theme - Theme object from useTheme hook
|
|
3999
3969
|
*/
|
|
4000
|
-
var getDefaultCardStyles =
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
backgroundColor: 'color.gray.800',
|
|
4008
|
-
color: 'color.gray.100'
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
borderBottomColor: 'color.gray.700'
|
|
4018
|
-
}
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
borderTopWidth: '1px',
|
|
4029
|
-
borderTopStyle: 'solid',
|
|
4030
|
-
borderTopColor: 'color.gray.200',
|
|
4031
|
-
'@media (prefers-color-scheme: dark)': {
|
|
4032
|
-
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'
|
|
4033
3998
|
}
|
|
4034
|
-
}
|
|
4035
|
-
}
|
|
3999
|
+
};
|
|
4000
|
+
};
|
|
4036
4001
|
|
|
4037
4002
|
var CardContext = /*#__PURE__*/createContext({});
|
|
4038
4003
|
var useCardContext = () => {
|
|
4039
4004
|
return useContext(CardContext);
|
|
4040
4005
|
};
|
|
4041
4006
|
|
|
4042
|
-
var _excluded$
|
|
4043
|
-
_excluded2$3 = ["children", "views", "style"],
|
|
4044
|
-
_excluded3$3 = ["children", "views", "style"],
|
|
4045
|
-
_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"];
|
|
4046
4011
|
var CardHeader = _ref => {
|
|
4047
4012
|
var _contextStyles$header;
|
|
4048
4013
|
var {
|
|
4049
4014
|
children,
|
|
4050
4015
|
style
|
|
4051
4016
|
} = _ref,
|
|
4052
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4017
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
4053
4018
|
var theme = useTheme();
|
|
4054
4019
|
var {
|
|
4055
4020
|
styles: contextStyles
|
|
4056
4021
|
} = useCardContext();
|
|
4057
|
-
var defaultStyles = getDefaultCardStyles().header;
|
|
4022
|
+
var defaultStyles = getDefaultCardStyles(theme).header;
|
|
4058
4023
|
// Merge styles: Default < Context Override < Direct Props/Style
|
|
4059
4024
|
var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.header, props, {
|
|
4060
4025
|
style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$header = contextStyles.header) == null ? void 0 : _contextStyles$header.style, style)
|
|
@@ -4072,7 +4037,7 @@ var CardContent = _ref2 => {
|
|
|
4072
4037
|
var {
|
|
4073
4038
|
styles: contextStyles
|
|
4074
4039
|
} = useCardContext();
|
|
4075
|
-
var defaultStyles = getDefaultCardStyles().content;
|
|
4040
|
+
var defaultStyles = getDefaultCardStyles(theme).content;
|
|
4076
4041
|
// Merge styles: Default < Context Override < Direct Props/Style
|
|
4077
4042
|
var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.content, props, {
|
|
4078
4043
|
style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$conten = contextStyles.content) == null ? void 0 : _contextStyles$conten.style, style)
|
|
@@ -4090,7 +4055,7 @@ var CardFooter = _ref3 => {
|
|
|
4090
4055
|
var {
|
|
4091
4056
|
styles: contextStyles
|
|
4092
4057
|
} = useCardContext();
|
|
4093
|
-
var defaultStyles = getDefaultCardStyles().footer;
|
|
4058
|
+
var defaultStyles = getDefaultCardStyles(theme).footer;
|
|
4094
4059
|
// Merge styles: Default < Context Override < Direct Props/Style
|
|
4095
4060
|
var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.footer, props, {
|
|
4096
4061
|
style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$footer = contextStyles.footer) == null ? void 0 : _contextStyles$footer.style, style)
|
|
@@ -4108,11 +4073,12 @@ var CardView = _ref4 => {
|
|
|
4108
4073
|
footer,
|
|
4109
4074
|
isFullWidth = false,
|
|
4110
4075
|
views,
|
|
4111
|
-
style
|
|
4076
|
+
style,
|
|
4077
|
+
themeMode: elementMode
|
|
4112
4078
|
} = _ref4,
|
|
4113
4079
|
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$3);
|
|
4114
4080
|
var theme = useTheme();
|
|
4115
|
-
var defaultStyles = getDefaultCardStyles();
|
|
4081
|
+
var defaultStyles = getDefaultCardStyles(theme);
|
|
4116
4082
|
// Prepare context value, merging default styles with user's `views` overrides
|
|
4117
4083
|
var contextValue = useMemo(() => ({
|
|
4118
4084
|
styles: {
|
|
@@ -4125,12 +4091,18 @@ var CardView = _ref4 => {
|
|
|
4125
4091
|
// Determine if we have explicit Card.Header, Card.Content, Card.Footer components
|
|
4126
4092
|
// or if we need to wrap children in a default layout
|
|
4127
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];
|
|
4128
4100
|
// Merge styles for the root element
|
|
4129
4101
|
var mergedRootProps = Object.assign({
|
|
4130
4102
|
width: isFullWidth ? '100%' : 'auto',
|
|
4131
4103
|
borderRadius: CardShapes[shape],
|
|
4132
4104
|
overflow: 'hidden'
|
|
4133
|
-
},
|
|
4105
|
+
}, variantStyles, contextValue.styles.container, props, {
|
|
4134
4106
|
style: Object.assign({}, (_contextValue$styles$ = contextValue.styles.container) == null ? void 0 : _contextValue$styles$.style, style)
|
|
4135
4107
|
});
|
|
4136
4108
|
return /*#__PURE__*/React.createElement(CardContext.Provider, {
|
|
@@ -4441,19 +4413,19 @@ var useCarouselContext = () => {
|
|
|
4441
4413
|
return context;
|
|
4442
4414
|
};
|
|
4443
4415
|
|
|
4444
|
-
var _excluded$
|
|
4416
|
+
var _excluded$c = ["children", "isActive", "views"],
|
|
4445
4417
|
_excluded2$4 = ["views", "children"],
|
|
4446
4418
|
_excluded3$4 = ["views", "children"],
|
|
4447
4419
|
_excluded4$4 = ["children", "views"],
|
|
4448
4420
|
_excluded5$1 = ["children", "views", "style"],
|
|
4449
|
-
_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"];
|
|
4450
4422
|
var CarouselSlide = _ref => {
|
|
4451
4423
|
var {
|
|
4452
4424
|
children,
|
|
4453
4425
|
isActive,
|
|
4454
4426
|
views
|
|
4455
4427
|
} = _ref,
|
|
4456
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4428
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
4457
4429
|
return /*#__PURE__*/React.createElement(View, Object.assign({
|
|
4458
4430
|
flexShrink: 0,
|
|
4459
4431
|
width: "100%",
|
|
@@ -5377,7 +5349,7 @@ var PieChart = _ref => {
|
|
|
5377
5349
|
})));
|
|
5378
5350
|
};
|
|
5379
5351
|
|
|
5380
|
-
var _excluded$
|
|
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"];
|
|
5381
5353
|
var ChartView = _ref => {
|
|
5382
5354
|
var {
|
|
5383
5355
|
type,
|
|
@@ -5405,7 +5377,7 @@ var ChartView = _ref => {
|
|
|
5405
5377
|
noDataIndicator,
|
|
5406
5378
|
'aria-label': ariaLabel
|
|
5407
5379
|
} = _ref,
|
|
5408
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5380
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
5409
5381
|
// Use chart state hook
|
|
5410
5382
|
var {
|
|
5411
5383
|
animationProgress,
|
|
@@ -5735,12 +5707,12 @@ var calculateMenuPosition = function calculateMenuPosition(x, y, menuWidth, menu
|
|
|
5735
5707
|
};
|
|
5736
5708
|
};
|
|
5737
5709
|
|
|
5738
|
-
var _excluded$
|
|
5710
|
+
var _excluded$e = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
|
|
5739
5711
|
_excluded2$5 = ["items", "children", "position", "side", "align", "views", "style"],
|
|
5740
5712
|
_excluded3$5 = ["item", "children", "onSelect", "isDisabled", "views"],
|
|
5741
5713
|
_excluded4$5 = ["views"],
|
|
5742
5714
|
_excluded5$2 = ["views"],
|
|
5743
|
-
_excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views"];
|
|
5715
|
+
_excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views", "themeMode"];
|
|
5744
5716
|
// Create context for the ContextMenu
|
|
5745
5717
|
var ContextMenuContext = /*#__PURE__*/createContext({
|
|
5746
5718
|
isOpen: false,
|
|
@@ -5791,7 +5763,7 @@ var ContextMenuTrigger = _ref2 => {
|
|
|
5791
5763
|
isDisabled = false,
|
|
5792
5764
|
views
|
|
5793
5765
|
} = _ref2,
|
|
5794
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
5766
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$e);
|
|
5795
5767
|
var {
|
|
5796
5768
|
triggerRef,
|
|
5797
5769
|
contentId,
|
|
@@ -6074,7 +6046,7 @@ var ContextMenuView = _ref7 => {
|
|
|
6074
6046
|
}));
|
|
6075
6047
|
};
|
|
6076
6048
|
|
|
6077
|
-
var _excluded$
|
|
6049
|
+
var _excluded$f = ["children", "items", "size", "variant", "disableNativeContextMenu", "onOpenChange", "views"];
|
|
6078
6050
|
/**
|
|
6079
6051
|
* ContextMenu component for displaying a custom context menu on right-click.
|
|
6080
6052
|
* Supports both data-driven approach (with items prop) and compound component pattern.
|
|
@@ -6089,7 +6061,7 @@ var ContextMenuComponent = _ref => {
|
|
|
6089
6061
|
onOpenChange,
|
|
6090
6062
|
views
|
|
6091
6063
|
} = _ref,
|
|
6092
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6064
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
6093
6065
|
var state = useContextMenuState({
|
|
6094
6066
|
size,
|
|
6095
6067
|
variant,
|
|
@@ -6141,7 +6113,7 @@ ContextMenu.Item = ContextMenuItem;
|
|
|
6141
6113
|
ContextMenu.Divider = ContextMenuDivider;
|
|
6142
6114
|
ContextMenu.Separator = ContextMenuSeparator; // Add the Separator component
|
|
6143
6115
|
|
|
6144
|
-
var _excluded$
|
|
6116
|
+
var _excluded$g = ["src", "color", "views", "themeMode"],
|
|
6145
6117
|
_excluded2$6 = ["path"];
|
|
6146
6118
|
var FileSVG = _ref => {
|
|
6147
6119
|
var {
|
|
@@ -6149,7 +6121,7 @@ var FileSVG = _ref => {
|
|
|
6149
6121
|
color,
|
|
6150
6122
|
views
|
|
6151
6123
|
} = _ref,
|
|
6152
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6124
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
6153
6125
|
var {
|
|
6154
6126
|
getColor,
|
|
6155
6127
|
themeMode
|
|
@@ -6223,7 +6195,7 @@ var useItemState = () => {
|
|
|
6223
6195
|
};
|
|
6224
6196
|
};
|
|
6225
6197
|
|
|
6226
|
-
var _excluded$
|
|
6198
|
+
var _excluded$h = ["children", "views"];
|
|
6227
6199
|
var HelperText = _ref => {
|
|
6228
6200
|
var {
|
|
6229
6201
|
children,
|
|
@@ -6231,7 +6203,7 @@ var HelperText = _ref => {
|
|
|
6231
6203
|
helperText: {}
|
|
6232
6204
|
}
|
|
6233
6205
|
} = _ref,
|
|
6234
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6206
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
6235
6207
|
return /*#__PURE__*/React.createElement(Text
|
|
6236
6208
|
// Typography properties
|
|
6237
6209
|
, Object.assign({
|
|
@@ -6257,7 +6229,7 @@ var HelperText = _ref => {
|
|
|
6257
6229
|
}, views['helperText'], props), children);
|
|
6258
6230
|
};
|
|
6259
6231
|
|
|
6260
|
-
var _excluded$
|
|
6232
|
+
var _excluded$i = ["children", "helperText", "error", "views"];
|
|
6261
6233
|
var FieldContainer = _ref => {
|
|
6262
6234
|
var {
|
|
6263
6235
|
children,
|
|
@@ -6265,7 +6237,7 @@ var FieldContainer = _ref => {
|
|
|
6265
6237
|
error = false,
|
|
6266
6238
|
views
|
|
6267
6239
|
} = _ref,
|
|
6268
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6240
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
6269
6241
|
return /*#__PURE__*/React.createElement(Vertical
|
|
6270
6242
|
// Layout properties
|
|
6271
6243
|
, Object.assign({
|
|
@@ -6273,9 +6245,9 @@ var FieldContainer = _ref => {
|
|
|
6273
6245
|
gap: 8,
|
|
6274
6246
|
position: "relative",
|
|
6275
6247
|
width: "100%"
|
|
6276
|
-
}, props), children, !error && helperText && (/*#__PURE__*/React.createElement(HelperText, Object.assign({
|
|
6248
|
+
}, props, views == null ? void 0 : views.container), children, !error && helperText && (/*#__PURE__*/React.createElement(HelperText, Object.assign({
|
|
6277
6249
|
marginTop: 4
|
|
6278
|
-
}, views), helperText)), error && (/*#__PURE__*/React.createElement(Text, {
|
|
6250
|
+
}, views == null ? void 0 : views.helperText), helperText)), error && (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
6279
6251
|
size: "xs",
|
|
6280
6252
|
marginTop: 4,
|
|
6281
6253
|
marginHorizontal: 0,
|
|
@@ -6283,7 +6255,7 @@ var FieldContainer = _ref => {
|
|
|
6283
6255
|
,
|
|
6284
6256
|
color: "color.red.500",
|
|
6285
6257
|
transition: "all 0.2s ease"
|
|
6286
|
-
}, error)));
|
|
6258
|
+
}, views == null ? void 0 : views.error), error)));
|
|
6287
6259
|
};
|
|
6288
6260
|
|
|
6289
6261
|
/**
|
|
@@ -6402,7 +6374,7 @@ var PaddingWithoutLabel = {
|
|
|
6402
6374
|
paddingRight: '16px'
|
|
6403
6375
|
};
|
|
6404
6376
|
|
|
6405
|
-
var _excluded$
|
|
6377
|
+
var _excluded$j = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "showLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "views"];
|
|
6406
6378
|
var FieldContent = _ref => {
|
|
6407
6379
|
var {
|
|
6408
6380
|
shadow,
|
|
@@ -6420,7 +6392,7 @@ var FieldContent = _ref => {
|
|
|
6420
6392
|
pickerBox: {}
|
|
6421
6393
|
}
|
|
6422
6394
|
} = _ref,
|
|
6423
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6395
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
6424
6396
|
// Determine if the field is in an interactive state
|
|
6425
6397
|
var isInteractive = (isHovered || isFocused) && !isDisabled;
|
|
6426
6398
|
// Set the appropriate color based on state
|
|
@@ -6449,12 +6421,12 @@ var FieldContent = _ref => {
|
|
|
6449
6421
|
}, showLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], views['box'], props), children);
|
|
6450
6422
|
};
|
|
6451
6423
|
|
|
6452
|
-
var _excluded$
|
|
6424
|
+
var _excluded$k = ["children"];
|
|
6453
6425
|
var FieldIcons = _ref => {
|
|
6454
6426
|
var {
|
|
6455
6427
|
children
|
|
6456
6428
|
} = _ref,
|
|
6457
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6429
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
6458
6430
|
return /*#__PURE__*/React.createElement(Center, Object.assign({
|
|
6459
6431
|
gap: 10,
|
|
6460
6432
|
right: 16,
|
|
@@ -6506,7 +6478,7 @@ var HeadingSizes$1 = {
|
|
|
6506
6478
|
}
|
|
6507
6479
|
};
|
|
6508
6480
|
|
|
6509
|
-
var _excluded$
|
|
6481
|
+
var _excluded$l = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
|
|
6510
6482
|
var LabelView = _ref => {
|
|
6511
6483
|
var {
|
|
6512
6484
|
children,
|
|
@@ -6522,7 +6494,7 @@ var LabelView = _ref => {
|
|
|
6522
6494
|
size = 'sm'
|
|
6523
6495
|
// The fontSize prop for the Element is determined by the 'size' prop passed to LabelView.
|
|
6524
6496
|
} = _ref,
|
|
6525
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6497
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
6526
6498
|
// The fontStyle prop toggles between 'italic' and 'normal' based on the 'isItalic' boolean prop.
|
|
6527
6499
|
var headingStyles = heading ? HeadingSizes$1[heading] : {};
|
|
6528
6500
|
// fontWeight is derived from the Typography module, ensuring consistent font weighting across the app.
|
|
@@ -6554,7 +6526,7 @@ React.createElement(LabelView, Object.assign({}, props))
|
|
|
6554
6526
|
var Label = LabelComponent;
|
|
6555
6527
|
// Export the 'LabelComponent' as 'Label' to be reused throughout the project.
|
|
6556
6528
|
|
|
6557
|
-
var _excluded$
|
|
6529
|
+
var _excluded$m = ["children", "size", "error", "color", "views", "helperText"];
|
|
6558
6530
|
var FieldLabel = _ref => {
|
|
6559
6531
|
var {
|
|
6560
6532
|
children,
|
|
@@ -6565,7 +6537,7 @@ var FieldLabel = _ref => {
|
|
|
6565
6537
|
label: {}
|
|
6566
6538
|
}
|
|
6567
6539
|
} = _ref,
|
|
6568
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6540
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
6569
6541
|
return /*#__PURE__*/React.createElement(Label
|
|
6570
6542
|
// Position properties
|
|
6571
6543
|
, Object.assign({
|
|
@@ -6586,12 +6558,12 @@ var FieldLabel = _ref => {
|
|
|
6586
6558
|
}, views['label'], props), children);
|
|
6587
6559
|
};
|
|
6588
6560
|
|
|
6589
|
-
var _excluded$
|
|
6561
|
+
var _excluded$n = ["children"];
|
|
6590
6562
|
var FieldWrapper = _ref => {
|
|
6591
6563
|
var {
|
|
6592
6564
|
children
|
|
6593
6565
|
} = _ref,
|
|
6594
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6566
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
6595
6567
|
return /*#__PURE__*/React.createElement(Vertical
|
|
6596
6568
|
// Layout properties
|
|
6597
6569
|
, Object.assign({
|
|
@@ -6624,7 +6596,7 @@ var IconSizes$2 = {
|
|
|
6624
6596
|
xl: 28
|
|
6625
6597
|
};
|
|
6626
6598
|
|
|
6627
|
-
var _excluded$
|
|
6599
|
+
var _excluded$o = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
6628
6600
|
_excluded2$7 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
6629
6601
|
_excluded3$6 = ["option", "size", "removeOption"],
|
|
6630
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"];
|
|
@@ -6642,7 +6614,7 @@ var Item = _ref => {
|
|
|
6642
6614
|
callback = () => {},
|
|
6643
6615
|
style
|
|
6644
6616
|
} = _ref,
|
|
6645
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6617
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
6646
6618
|
// Handles the click event on an option by invoking the callback with the selected option's value
|
|
6647
6619
|
var handleOptionClick = option => callback(option);
|
|
6648
6620
|
// Toggles the hover state on the item
|
|
@@ -7062,26 +7034,6 @@ var KnobSizes = {
|
|
|
7062
7034
|
xl: {
|
|
7063
7035
|
height: '28px',
|
|
7064
7036
|
width: '28px'
|
|
7065
|
-
},
|
|
7066
|
-
'2xl': {
|
|
7067
|
-
height: '32px',
|
|
7068
|
-
width: '32px'
|
|
7069
|
-
},
|
|
7070
|
-
'3xl': {
|
|
7071
|
-
height: '36px',
|
|
7072
|
-
width: '36px'
|
|
7073
|
-
},
|
|
7074
|
-
'4xl': {
|
|
7075
|
-
height: '40px',
|
|
7076
|
-
width: '40px'
|
|
7077
|
-
},
|
|
7078
|
-
'5xl': {
|
|
7079
|
-
height: '44px',
|
|
7080
|
-
width: '44px'
|
|
7081
|
-
},
|
|
7082
|
-
'6xl': {
|
|
7083
|
-
height: '48px',
|
|
7084
|
-
width: '48px'
|
|
7085
7037
|
}
|
|
7086
7038
|
};
|
|
7087
7039
|
/**
|
|
@@ -7108,26 +7060,6 @@ var SliderSizes = {
|
|
|
7108
7060
|
xl: {
|
|
7109
7061
|
height: '40px',
|
|
7110
7062
|
width: '72px'
|
|
7111
|
-
},
|
|
7112
|
-
'2xl': {
|
|
7113
|
-
height: '44px',
|
|
7114
|
-
width: '80px'
|
|
7115
|
-
},
|
|
7116
|
-
'3xl': {
|
|
7117
|
-
height: '48px',
|
|
7118
|
-
width: '88px'
|
|
7119
|
-
},
|
|
7120
|
-
'4xl': {
|
|
7121
|
-
height: '52px',
|
|
7122
|
-
width: '96px'
|
|
7123
|
-
},
|
|
7124
|
-
'5xl': {
|
|
7125
|
-
height: '56px',
|
|
7126
|
-
width: '104px'
|
|
7127
|
-
},
|
|
7128
|
-
'6xl': {
|
|
7129
|
-
height: '60px',
|
|
7130
|
-
width: '112px'
|
|
7131
7063
|
}
|
|
7132
7064
|
};
|
|
7133
7065
|
/**
|
|
@@ -7154,26 +7086,6 @@ var SliderPadding = {
|
|
|
7154
7086
|
xl: {
|
|
7155
7087
|
paddingVertical: 4,
|
|
7156
7088
|
paddingHorizontal: 4
|
|
7157
|
-
},
|
|
7158
|
-
'2xl': {
|
|
7159
|
-
paddingVertical: 4,
|
|
7160
|
-
paddingHorizontal: 4
|
|
7161
|
-
},
|
|
7162
|
-
'3xl': {
|
|
7163
|
-
paddingVertical: 4,
|
|
7164
|
-
paddingHorizontal: 4
|
|
7165
|
-
},
|
|
7166
|
-
'4xl': {
|
|
7167
|
-
paddingVertical: 4,
|
|
7168
|
-
paddingHorizontal: 4
|
|
7169
|
-
},
|
|
7170
|
-
'5xl': {
|
|
7171
|
-
paddingVertical: 4,
|
|
7172
|
-
paddingHorizontal: 4
|
|
7173
|
-
},
|
|
7174
|
-
'6xl': {
|
|
7175
|
-
paddingVertical: 4,
|
|
7176
|
-
paddingHorizontal: 4
|
|
7177
7089
|
}
|
|
7178
7090
|
};
|
|
7179
7091
|
/**
|
|
@@ -7201,7 +7113,7 @@ var ColorSchemes = {
|
|
|
7201
7113
|
}
|
|
7202
7114
|
};
|
|
7203
7115
|
|
|
7204
|
-
var _excluded$
|
|
7116
|
+
var _excluded$p = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "views"];
|
|
7205
7117
|
var SwitchContent = props => /*#__PURE__*/React.createElement(Input, Object.assign({
|
|
7206
7118
|
type: "checkbox"
|
|
7207
7119
|
}, props));
|
|
@@ -7230,7 +7142,7 @@ var SwitchView = _ref => {
|
|
|
7230
7142
|
label: {}
|
|
7231
7143
|
}
|
|
7232
7144
|
} = _ref,
|
|
7233
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7145
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
7234
7146
|
var handleToggle = event => {
|
|
7235
7147
|
if (!isReadOnly) {
|
|
7236
7148
|
setValue(!value);
|
|
@@ -7354,7 +7266,7 @@ var useTextAreaState = _ref => {
|
|
|
7354
7266
|
// Export of the useTextAreaState hook for external usage.
|
|
7355
7267
|
};
|
|
7356
7268
|
|
|
7357
|
-
var _excluded$
|
|
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"];
|
|
7358
7270
|
var TextAreaView = _ref => {
|
|
7359
7271
|
var {
|
|
7360
7272
|
id,
|
|
@@ -7380,20 +7292,16 @@ var TextAreaView = _ref => {
|
|
|
7380
7292
|
onBlur = () => {},
|
|
7381
7293
|
onChange,
|
|
7382
7294
|
onFocus,
|
|
7383
|
-
onChangeText,
|
|
7384
7295
|
setHint = () => {},
|
|
7385
7296
|
setValue = () => {},
|
|
7386
7297
|
setIsFocused = () => {},
|
|
7387
7298
|
setIsHovered = () => {},
|
|
7388
7299
|
views = {
|
|
7389
|
-
box: {},
|
|
7390
|
-
text: {},
|
|
7391
7300
|
label: {},
|
|
7392
|
-
helperText: {}
|
|
7393
|
-
field: {}
|
|
7301
|
+
helperText: {}
|
|
7394
7302
|
}
|
|
7395
7303
|
} = _ref,
|
|
7396
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7304
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
7397
7305
|
var showLabel = !!(isFocused && label);
|
|
7398
7306
|
/**
|
|
7399
7307
|
* Styles for the textarea field
|
|
@@ -7401,11 +7309,11 @@ var TextAreaView = _ref => {
|
|
|
7401
7309
|
var fieldStyles = Object.assign({
|
|
7402
7310
|
// Layout properties
|
|
7403
7311
|
margin: 0,
|
|
7404
|
-
paddingVertical:
|
|
7405
|
-
paddingHorizontal:
|
|
7312
|
+
paddingVertical: 2,
|
|
7313
|
+
paddingHorizontal: 2,
|
|
7406
7314
|
width: '100%',
|
|
7407
|
-
|
|
7408
|
-
|
|
7315
|
+
maxHeight: 'calc(100vh - 100px)',
|
|
7316
|
+
height: 'calc(5em)',
|
|
7409
7317
|
border: 'none',
|
|
7410
7318
|
resize: 'vertical',
|
|
7411
7319
|
// Focus state
|
|
@@ -7416,7 +7324,7 @@ var TextAreaView = _ref => {
|
|
|
7416
7324
|
},
|
|
7417
7325
|
// Typography properties
|
|
7418
7326
|
fontSize: Typography.fontSizes[size],
|
|
7419
|
-
lineHeight:
|
|
7327
|
+
lineHeight: Typography.fontSizes[size] * 1.5,
|
|
7420
7328
|
letterSpacing: '-0.01em',
|
|
7421
7329
|
// Visual properties
|
|
7422
7330
|
backgroundColor: 'transparent',
|
|
@@ -7424,11 +7332,7 @@ var TextAreaView = _ref => {
|
|
|
7424
7332
|
// State properties
|
|
7425
7333
|
cursor: isDisabled ? 'not-allowed' : 'text',
|
|
7426
7334
|
// Animation
|
|
7427
|
-
transition: 'all 0.2s ease'
|
|
7428
|
-
// Dark mode support
|
|
7429
|
-
'@media (prefers-color-scheme: dark)': {
|
|
7430
|
-
color: isDisabled ? 'color.gray.600' : 'color.gray.100'
|
|
7431
|
-
}
|
|
7335
|
+
transition: 'all 0.2s ease'
|
|
7432
7336
|
}, views['field']);
|
|
7433
7337
|
var handleHover = () => setIsHovered(!isHovered);
|
|
7434
7338
|
var handleFocus = () => {
|
|
@@ -7442,19 +7346,17 @@ var TextAreaView = _ref => {
|
|
|
7442
7346
|
var handleChange = event => {
|
|
7443
7347
|
if (typeof event === 'string') {
|
|
7444
7348
|
setValue(event);
|
|
7445
|
-
if (onChangeText) onChangeText(event);
|
|
7446
7349
|
if (onChange) onChange(event);
|
|
7447
7350
|
} else {
|
|
7448
7351
|
setValue(event.target.value);
|
|
7449
|
-
if (onChangeText) onChangeText(event.target.value);
|
|
7450
7352
|
if (onChange) onChange(event.target.value);
|
|
7451
7353
|
}
|
|
7452
7354
|
};
|
|
7453
|
-
return /*#__PURE__*/React.createElement(FieldContainer, {
|
|
7355
|
+
return /*#__PURE__*/React.createElement(FieldContainer, Object.assign({
|
|
7454
7356
|
helperText: helperText,
|
|
7455
7357
|
error: error,
|
|
7456
7358
|
views: views
|
|
7457
|
-
}, /*#__PURE__*/React.createElement(FieldContent, {
|
|
7359
|
+
}, props), /*#__PURE__*/React.createElement(FieldContent, Object.assign({
|
|
7458
7360
|
label: label,
|
|
7459
7361
|
size: size,
|
|
7460
7362
|
error: error,
|
|
@@ -7471,11 +7373,11 @@ var TextAreaView = _ref => {
|
|
|
7471
7373
|
showLabel: showLabel,
|
|
7472
7374
|
onMouseEnter: handleHover,
|
|
7473
7375
|
onMouseLeave: handleHover
|
|
7474
|
-
}, /*#__PURE__*/React.createElement(FieldWrapper, null, showLabel && (/*#__PURE__*/React.createElement(FieldLabel, Object.assign({
|
|
7376
|
+
}, views == null ? void 0 : views.content), /*#__PURE__*/React.createElement(FieldWrapper, Object.assign({}, views == null ? void 0 : views.warper), showLabel && (/*#__PURE__*/React.createElement(FieldLabel, Object.assign({
|
|
7475
7377
|
htmlFor: id,
|
|
7476
7378
|
color: 'theme.primary',
|
|
7477
7379
|
error: error
|
|
7478
|
-
}, views), label)), /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
7380
|
+
}, views == null ? void 0 : views.label), label)), /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
7479
7381
|
as: "textarea",
|
|
7480
7382
|
id: id,
|
|
7481
7383
|
name: name,
|
|
@@ -7485,15 +7387,13 @@ var TextAreaView = _ref => {
|
|
|
7485
7387
|
readOnly: isReadOnly,
|
|
7486
7388
|
disabled: isDisabled,
|
|
7487
7389
|
autoFocus: isAutoFocus,
|
|
7488
|
-
editable: isEditable,
|
|
7390
|
+
editable: !!isEditable.toString(),
|
|
7489
7391
|
placeholder: hint,
|
|
7490
7392
|
onBlur: handleBlur,
|
|
7491
7393
|
onFocus: handleFocus,
|
|
7492
|
-
multiline: isMultiline
|
|
7493
|
-
|
|
7494
|
-
|
|
7495
|
-
onChangeText: handleChange
|
|
7496
|
-
})))));
|
|
7394
|
+
multiline: !!isMultiline.toString(),
|
|
7395
|
+
onChange: handleChange
|
|
7396
|
+
}, fieldStyles, views == null ? void 0 : views.textarea)))));
|
|
7497
7397
|
};
|
|
7498
7398
|
|
|
7499
7399
|
// Defines the TextAreaComponent as a functional component that accepts TextAreaProps for type safety and structure.
|
|
@@ -7540,7 +7440,7 @@ var useTextFieldState = _ref => {
|
|
|
7540
7440
|
};
|
|
7541
7441
|
};
|
|
7542
7442
|
|
|
7543
|
-
var _excluded$
|
|
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"];
|
|
7544
7444
|
/**
|
|
7545
7445
|
* Input component for text fields
|
|
7546
7446
|
*/
|
|
@@ -7561,7 +7461,7 @@ var TextFieldView = _ref => {
|
|
|
7561
7461
|
onChangeText,
|
|
7562
7462
|
shadow = {},
|
|
7563
7463
|
views = {
|
|
7564
|
-
|
|
7464
|
+
container: {},
|
|
7565
7465
|
field: {},
|
|
7566
7466
|
label: {},
|
|
7567
7467
|
helperText: {},
|
|
@@ -7586,7 +7486,7 @@ var TextFieldView = _ref => {
|
|
|
7586
7486
|
onBlur = () => {},
|
|
7587
7487
|
themeMode: elementMode
|
|
7588
7488
|
} = _ref,
|
|
7589
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7489
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
7590
7490
|
var {
|
|
7591
7491
|
getColor,
|
|
7592
7492
|
themeMode
|
|
@@ -7761,26 +7661,6 @@ var Sizes = {
|
|
|
7761
7661
|
xl: {
|
|
7762
7662
|
height: '32px',
|
|
7763
7663
|
width: '32px'
|
|
7764
|
-
},
|
|
7765
|
-
'2xl': {
|
|
7766
|
-
height: '36px',
|
|
7767
|
-
width: '36px'
|
|
7768
|
-
},
|
|
7769
|
-
'3xl': {
|
|
7770
|
-
height: '40px',
|
|
7771
|
-
width: '40px'
|
|
7772
|
-
},
|
|
7773
|
-
'4xl': {
|
|
7774
|
-
height: '44px',
|
|
7775
|
-
width: '44px'
|
|
7776
|
-
},
|
|
7777
|
-
'5xl': {
|
|
7778
|
-
height: '48px',
|
|
7779
|
-
width: '48px'
|
|
7780
|
-
},
|
|
7781
|
-
'6xl': {
|
|
7782
|
-
height: '52px',
|
|
7783
|
-
width: '52px'
|
|
7784
7664
|
}
|
|
7785
7665
|
};
|
|
7786
7666
|
/**
|
|
@@ -7792,12 +7672,7 @@ var IconSizes$3 = {
|
|
|
7792
7672
|
sm: 14,
|
|
7793
7673
|
md: 16,
|
|
7794
7674
|
lg: 20,
|
|
7795
|
-
xl: 24
|
|
7796
|
-
'2xl': 28,
|
|
7797
|
-
'3xl': 32,
|
|
7798
|
-
'4xl': 36,
|
|
7799
|
-
'5xl': 40,
|
|
7800
|
-
'6xl': 44
|
|
7675
|
+
xl: 24
|
|
7801
7676
|
};
|
|
7802
7677
|
/**
|
|
7803
7678
|
* Variant styles for the Checkbox component
|
|
@@ -7869,7 +7744,7 @@ var StateStyles = {
|
|
|
7869
7744
|
}
|
|
7870
7745
|
};
|
|
7871
7746
|
|
|
7872
|
-
var _excluded$
|
|
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"];
|
|
7873
7748
|
var CheckboxView = _ref => {
|
|
7874
7749
|
var {
|
|
7875
7750
|
id,
|
|
@@ -7896,7 +7771,7 @@ var CheckboxView = _ref => {
|
|
|
7896
7771
|
},
|
|
7897
7772
|
infoText
|
|
7898
7773
|
} = _ref,
|
|
7899
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7774
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
7900
7775
|
var handleHover = () => setIsHovered(!isHovered);
|
|
7901
7776
|
var handleChange = () => {
|
|
7902
7777
|
if (!isReadOnly && !isDisabled) {
|
|
@@ -9482,11 +9357,11 @@ var IconSizes$4 = {
|
|
|
9482
9357
|
xl: 16
|
|
9483
9358
|
};
|
|
9484
9359
|
|
|
9485
|
-
var _excluded$
|
|
9360
|
+
var _excluded$t = ["size"],
|
|
9486
9361
|
_excluded2$8 = ["size"],
|
|
9487
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"];
|
|
9488
9363
|
var CountryList = _ref => {
|
|
9489
|
-
var props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9364
|
+
var props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
9490
9365
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
9491
9366
|
as: "ul"
|
|
9492
9367
|
}, props));
|
|
@@ -9593,8 +9468,7 @@ var CountryPickerView = _ref5 => {
|
|
|
9593
9468
|
icon: {},
|
|
9594
9469
|
label: {},
|
|
9595
9470
|
dropDown: {},
|
|
9596
|
-
helperText: {}
|
|
9597
|
-
box: {}
|
|
9471
|
+
helperText: {}
|
|
9598
9472
|
},
|
|
9599
9473
|
themeMode: elementMode
|
|
9600
9474
|
} = _ref5,
|
|
@@ -9726,7 +9600,7 @@ var useDatePickerState = () => {
|
|
|
9726
9600
|
};
|
|
9727
9601
|
};
|
|
9728
9602
|
|
|
9729
|
-
var _excluded$
|
|
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"];
|
|
9730
9604
|
var DatePickerContent = props => /*#__PURE__*/React.createElement(Input, Object.assign({
|
|
9731
9605
|
type: "date"
|
|
9732
9606
|
}, props));
|
|
@@ -9742,7 +9616,7 @@ var DatePickerView = _ref => {
|
|
|
9742
9616
|
variant = 'default',
|
|
9743
9617
|
shape = 'default',
|
|
9744
9618
|
views = {
|
|
9745
|
-
|
|
9619
|
+
container: {},
|
|
9746
9620
|
label: {},
|
|
9747
9621
|
helperText: {},
|
|
9748
9622
|
text: {},
|
|
@@ -9759,7 +9633,7 @@ var DatePickerView = _ref => {
|
|
|
9759
9633
|
onChange,
|
|
9760
9634
|
onChangeText
|
|
9761
9635
|
} = _ref,
|
|
9762
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9636
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
9763
9637
|
var showLabel = !!(isFocused && label);
|
|
9764
9638
|
var handleHover = () => setIsHovered(!isHovered);
|
|
9765
9639
|
var handleFocus = () => setIsFocused(true);
|
|
@@ -9846,7 +9720,7 @@ var usePasswordState = props => {
|
|
|
9846
9720
|
}, props, textFieldStates);
|
|
9847
9721
|
};
|
|
9848
9722
|
|
|
9849
|
-
var _excluded$
|
|
9723
|
+
var _excluded$v = ["visibleIcon", "hiddenIcon"],
|
|
9850
9724
|
_excluded2$9 = ["isVisible", "setIsVisible"];
|
|
9851
9725
|
var PasswordComponent = _ref => {
|
|
9852
9726
|
var {
|
|
@@ -9857,7 +9731,7 @@ var PasswordComponent = _ref => {
|
|
|
9857
9731
|
widthHeight: 14
|
|
9858
9732
|
})
|
|
9859
9733
|
} = _ref,
|
|
9860
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9734
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
9861
9735
|
var _usePasswordState = usePasswordState(props),
|
|
9862
9736
|
{
|
|
9863
9737
|
isVisible,
|
|
@@ -9911,7 +9785,7 @@ var useComboBoxState = (items, placeholder, searchPlaceholder) => {
|
|
|
9911
9785
|
};
|
|
9912
9786
|
};
|
|
9913
9787
|
|
|
9914
|
-
var _excluded$
|
|
9788
|
+
var _excluded$w = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "views", "isDropdownVisible", "setIsDropdownVisible"];
|
|
9915
9789
|
// Defines the functional component 'ComboBoxView' with destructured props.
|
|
9916
9790
|
var ComboBoxView = _ref => {
|
|
9917
9791
|
var {
|
|
@@ -9936,7 +9810,7 @@ var ComboBoxView = _ref => {
|
|
|
9936
9810
|
setIsDropdownVisible
|
|
9937
9811
|
// Collects all further props not destructured explicitly.
|
|
9938
9812
|
} = _ref,
|
|
9939
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9813
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
|
|
9940
9814
|
// Sets up an effect to handle clicking outside the dropdown to close it.
|
|
9941
9815
|
useEffect(() => {
|
|
9942
9816
|
var handleClickOutside = event => {
|
|
@@ -10025,7 +9899,7 @@ var ComboBoxView = _ref => {
|
|
|
10025
9899
|
widthHeight: 12
|
|
10026
9900
|
}),
|
|
10027
9901
|
views: {
|
|
10028
|
-
|
|
9902
|
+
container: Object.assign({
|
|
10029
9903
|
width: '100%',
|
|
10030
9904
|
padding: '6px 12px',
|
|
10031
9905
|
borderBottom: filteredItems.length > 0 ? '1px solid #ccc' : '1px solid transparent'
|
|
@@ -10048,7 +9922,7 @@ var ComboBoxView = _ref => {
|
|
|
10048
9922
|
}))))))))))));
|
|
10049
9923
|
};
|
|
10050
9924
|
|
|
10051
|
-
var _excluded$
|
|
9925
|
+
var _excluded$x = ["id", "name", "items", "placeholder", "searchPlaceholder"];
|
|
10052
9926
|
// Defines the ComboBoxComponent functional component with ComboBoxProps
|
|
10053
9927
|
var ComboBoxComponent = _ref => {
|
|
10054
9928
|
var {
|
|
@@ -10064,7 +9938,7 @@ var ComboBoxComponent = _ref => {
|
|
|
10064
9938
|
searchPlaceholder
|
|
10065
9939
|
// Destructures the rest of the props not explicitly defined
|
|
10066
9940
|
} = _ref,
|
|
10067
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9941
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
|
|
10068
9942
|
// Initializes ComboBox state using custom hook with items and placeholders
|
|
10069
9943
|
var state = useComboBoxState(items, placeholder, searchPlaceholder);
|
|
10070
9944
|
return (
|
|
@@ -10369,7 +10243,7 @@ var useOTPInputState = _ref => {
|
|
|
10369
10243
|
};
|
|
10370
10244
|
};
|
|
10371
10245
|
|
|
10372
|
-
var _excluded$
|
|
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"];
|
|
10373
10247
|
// Create a context for OTP input slots
|
|
10374
10248
|
var OTPInputContext = /*#__PURE__*/createContext({
|
|
10375
10249
|
slots: [],
|
|
@@ -10395,14 +10269,7 @@ var OTPInputView = _ref => {
|
|
|
10395
10269
|
length = 6,
|
|
10396
10270
|
helperText,
|
|
10397
10271
|
placeholder = '',
|
|
10398
|
-
views = {
|
|
10399
|
-
container: {},
|
|
10400
|
-
input: {},
|
|
10401
|
-
box: {},
|
|
10402
|
-
text: {},
|
|
10403
|
-
label: {},
|
|
10404
|
-
helperText: {}
|
|
10405
|
-
},
|
|
10272
|
+
views = {},
|
|
10406
10273
|
size = 'md',
|
|
10407
10274
|
shape = 'rounded',
|
|
10408
10275
|
variant = 'outline',
|
|
@@ -10430,7 +10297,7 @@ var OTPInputView = _ref => {
|
|
|
10430
10297
|
onFocus = () => {}
|
|
10431
10298
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10432
10299
|
} = _ref,
|
|
10433
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
10300
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
10434
10301
|
useTheme(); // Initialize theme context
|
|
10435
10302
|
var showLabel = !!label;
|
|
10436
10303
|
// Create context value for slots
|
|
@@ -10508,7 +10375,7 @@ var OTPInputView = _ref => {
|
|
|
10508
10375
|
width: "100%",
|
|
10509
10376
|
position: "relative",
|
|
10510
10377
|
height: size === 'xs' ? '32px' : size === 'sm' ? '36px' : size === 'md' ? '40px' : size === 'lg' ? '48px' : '56px'
|
|
10511
|
-
}, views.
|
|
10378
|
+
}, views.container), slot.char ? (/*#__PURE__*/React.createElement(View, Object.assign({
|
|
10512
10379
|
textAlign: "center",
|
|
10513
10380
|
fontSize: size === 'xs' ? '14px' : size === 'sm' ? '16px' : size === 'md' ? '18px' : size === 'lg' ? '20px' : '24px',
|
|
10514
10381
|
fontWeight: "medium"
|
|
@@ -10660,7 +10527,7 @@ var OTPInputComponent = props => {
|
|
|
10660
10527
|
};
|
|
10661
10528
|
var OTPInput = OTPInputComponent;
|
|
10662
10529
|
|
|
10663
|
-
var _excluded$
|
|
10530
|
+
var _excluded$z = ["children", "autoFocus", "initFocus", "onChange"];
|
|
10664
10531
|
var FocusContext = /*#__PURE__*/createContext({
|
|
10665
10532
|
active: false,
|
|
10666
10533
|
focusNextInput: () => {},
|
|
@@ -10676,7 +10543,7 @@ var FormikForm = _ref => {
|
|
|
10676
10543
|
initFocus,
|
|
10677
10544
|
onChange = () => {}
|
|
10678
10545
|
} = _ref,
|
|
10679
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
10546
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
10680
10547
|
var formik = useFormikContext();
|
|
10681
10548
|
useEffect(() => {
|
|
10682
10549
|
onChange(formik.values);
|
|
@@ -10724,7 +10591,7 @@ var FormikForm = _ref => {
|
|
|
10724
10591
|
}, /*#__PURE__*/React.createElement(Form, Object.assign({}, props), children));
|
|
10725
10592
|
};
|
|
10726
10593
|
|
|
10727
|
-
var _excluded$
|
|
10594
|
+
var _excluded$A = ["name", "type"];
|
|
10728
10595
|
var getInputTypeProps = type => {
|
|
10729
10596
|
switch (type) {
|
|
10730
10597
|
case 'email':
|
|
@@ -10763,7 +10630,7 @@ var useFormikInput = _ref => {
|
|
|
10763
10630
|
name,
|
|
10764
10631
|
type
|
|
10765
10632
|
} = _ref,
|
|
10766
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
10633
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
|
|
10767
10634
|
var focus = useFormFocus();
|
|
10768
10635
|
var {
|
|
10769
10636
|
touched,
|
|
@@ -10807,13 +10674,13 @@ var useFormikInput = _ref => {
|
|
|
10807
10674
|
} : {});
|
|
10808
10675
|
};
|
|
10809
10676
|
|
|
10810
|
-
var _excluded$
|
|
10677
|
+
var _excluded$B = ["value"];
|
|
10811
10678
|
var CheckboxComponent$1 = props => {
|
|
10812
10679
|
var _useFormikInput = useFormikInput(props),
|
|
10813
10680
|
{
|
|
10814
10681
|
value
|
|
10815
10682
|
} = _useFormikInput,
|
|
10816
|
-
formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$
|
|
10683
|
+
formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$B);
|
|
10817
10684
|
formProps.isChecked = value;
|
|
10818
10685
|
var checkboxStates = useCheckboxState(props);
|
|
10819
10686
|
return /*#__PURE__*/React.createElement(CheckboxView, Object.assign({}, checkboxStates, formProps));
|
|
@@ -10871,11 +10738,11 @@ var TextAreaComponent$1 = props => {
|
|
|
10871
10738
|
*/
|
|
10872
10739
|
var FormikTextArea = TextAreaComponent$1;
|
|
10873
10740
|
|
|
10874
|
-
var _excluded$
|
|
10741
|
+
var _excluded$C = ["value"];
|
|
10875
10742
|
var TextFieldComponent$1 = props => {
|
|
10876
10743
|
var formProps = useFormikInput(props);
|
|
10877
10744
|
var _useTextFieldState = useTextFieldState(props),
|
|
10878
|
-
textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$
|
|
10745
|
+
textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$C);
|
|
10879
10746
|
return /*#__PURE__*/React.createElement(TextFieldView, Object.assign({}, textFieldStates, formProps));
|
|
10880
10747
|
};
|
|
10881
10748
|
/**
|
|
@@ -10883,7 +10750,7 @@ var TextFieldComponent$1 = props => {
|
|
|
10883
10750
|
*/
|
|
10884
10751
|
var FormikTextField = TextFieldComponent$1;
|
|
10885
10752
|
|
|
10886
|
-
var _excluded$
|
|
10753
|
+
var _excluded$D = ["visibleIcon", "hiddenIcon"],
|
|
10887
10754
|
_excluded2$a = ["isVisible", "setIsVisible"];
|
|
10888
10755
|
var PasswordComponent$1 = _ref => {
|
|
10889
10756
|
var {
|
|
@@ -10894,7 +10761,7 @@ var PasswordComponent$1 = _ref => {
|
|
|
10894
10761
|
widthHeight: 14
|
|
10895
10762
|
})
|
|
10896
10763
|
} = _ref,
|
|
10897
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
10764
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
|
|
10898
10765
|
var formProps = useFormikInput(props);
|
|
10899
10766
|
var _usePasswordState = usePasswordState(formProps),
|
|
10900
10767
|
{
|
|
@@ -10919,14 +10786,14 @@ var PasswordComponent$1 = _ref => {
|
|
|
10919
10786
|
*/
|
|
10920
10787
|
var FormikPassword = PasswordComponent$1;
|
|
10921
10788
|
|
|
10922
|
-
var _excluded$
|
|
10789
|
+
var _excluded$E = ["items", "placeholder", "searchPlaceholder"];
|
|
10923
10790
|
var ComboBoxComponent$1 = _ref => {
|
|
10924
10791
|
var {
|
|
10925
10792
|
items,
|
|
10926
10793
|
placeholder,
|
|
10927
10794
|
searchPlaceholder
|
|
10928
10795
|
} = _ref,
|
|
10929
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
10796
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
|
|
10930
10797
|
var formProps = useFormikInput(props);
|
|
10931
10798
|
var ComboBoxStates = useComboBoxState(items, placeholder, searchPlaceholder);
|
|
10932
10799
|
// Ensure the onChange function from formProps is being called when an item is selected
|
|
@@ -11150,17 +11017,22 @@ var SliderShapes = {
|
|
|
11150
11017
|
rounded: 4,
|
|
11151
11018
|
pillShaped: 24
|
|
11152
11019
|
};
|
|
11153
|
-
var
|
|
11154
|
-
|
|
11155
|
-
|
|
11156
|
-
|
|
11157
|
-
|
|
11158
|
-
|
|
11159
|
-
|
|
11160
|
-
|
|
11161
|
-
|
|
11162
|
-
|
|
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
|
|
11163
11033
|
};
|
|
11034
|
+
// For backward compatibility
|
|
11035
|
+
var SliderVariants = /*#__PURE__*/getSlider();
|
|
11164
11036
|
// Maps Size enum to track height/width and thumb size for the new implementation
|
|
11165
11037
|
var EnhancedSliderSizes = {
|
|
11166
11038
|
xs: {
|
|
@@ -11202,7 +11074,7 @@ var OrientationStyles = {
|
|
|
11202
11074
|
}
|
|
11203
11075
|
};
|
|
11204
11076
|
|
|
11205
|
-
var _excluded$
|
|
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"];
|
|
11206
11078
|
var SliderView = _ref => {
|
|
11207
11079
|
var _views$tooltip, _views$tooltip2;
|
|
11208
11080
|
var {
|
|
@@ -11245,7 +11117,7 @@ var SliderView = _ref => {
|
|
|
11245
11117
|
tooltip: {}
|
|
11246
11118
|
}
|
|
11247
11119
|
} = _ref,
|
|
11248
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
11120
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
|
|
11249
11121
|
var {
|
|
11250
11122
|
getColor,
|
|
11251
11123
|
themeMode
|
|
@@ -11618,7 +11490,7 @@ var hideMessage = () => {
|
|
|
11618
11490
|
useMessageStore.getState().hide();
|
|
11619
11491
|
};
|
|
11620
11492
|
|
|
11621
|
-
var Themes
|
|
11493
|
+
var Themes = {
|
|
11622
11494
|
info: {
|
|
11623
11495
|
container: {
|
|
11624
11496
|
backgroundColor: 'color.blue.200',
|
|
@@ -11716,7 +11588,7 @@ var MessageView = _ref => {
|
|
|
11716
11588
|
}
|
|
11717
11589
|
return;
|
|
11718
11590
|
}, []);
|
|
11719
|
-
var Theme = theme != null ? theme : Themes
|
|
11591
|
+
var Theme = theme != null ? theme : Themes;
|
|
11720
11592
|
var showAction = !!(action && actionText);
|
|
11721
11593
|
var containerStyle = {
|
|
11722
11594
|
borderWidth: 1,
|
|
@@ -11965,7 +11837,8 @@ var UploadView = _ref => {
|
|
|
11965
11837
|
renderError = _ref2 => {
|
|
11966
11838
|
var {
|
|
11967
11839
|
errorMessage,
|
|
11968
|
-
errorMessageProps
|
|
11840
|
+
errorMessageProps,
|
|
11841
|
+
themeMode: elementMode
|
|
11969
11842
|
} = _ref2;
|
|
11970
11843
|
return /*#__PURE__*/React.createElement(Text$1, Object.assign({
|
|
11971
11844
|
color: "red",
|
|
@@ -12116,7 +11989,7 @@ var UploadView = _ref => {
|
|
|
12116
11989
|
}, views == null ? void 0 : views.view)));
|
|
12117
11990
|
};
|
|
12118
11991
|
|
|
12119
|
-
var _excluded$
|
|
11992
|
+
var _excluded$G = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress", "fileType"];
|
|
12120
11993
|
var Uploader = _ref => {
|
|
12121
11994
|
var {
|
|
12122
11995
|
accept = '*/*',
|
|
@@ -12129,7 +12002,7 @@ var Uploader = _ref => {
|
|
|
12129
12002
|
progress = 0,
|
|
12130
12003
|
fileType
|
|
12131
12004
|
} = _ref,
|
|
12132
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12005
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$G);
|
|
12133
12006
|
var {
|
|
12134
12007
|
previewUrl,
|
|
12135
12008
|
thumbnailUrl,
|
|
@@ -12276,23 +12149,19 @@ var OverlayAlignments = {
|
|
|
12276
12149
|
},
|
|
12277
12150
|
top: {
|
|
12278
12151
|
justifyContent: 'center',
|
|
12279
|
-
alignItems: 'flex-start'
|
|
12280
|
-
paddingTop: '64px'
|
|
12152
|
+
alignItems: 'flex-start'
|
|
12281
12153
|
},
|
|
12282
12154
|
right: {
|
|
12283
12155
|
justifyContent: 'flex-end',
|
|
12284
|
-
alignItems: 'center'
|
|
12285
|
-
paddingRight: '32px'
|
|
12156
|
+
alignItems: 'center'
|
|
12286
12157
|
},
|
|
12287
12158
|
bottom: {
|
|
12288
12159
|
justifyContent: 'center',
|
|
12289
|
-
alignItems: 'flex-end'
|
|
12290
|
-
paddingBottom: '64px'
|
|
12160
|
+
alignItems: 'flex-end'
|
|
12291
12161
|
},
|
|
12292
12162
|
left: {
|
|
12293
12163
|
justifyContent: 'flex-start',
|
|
12294
|
-
alignItems: 'center'
|
|
12295
|
-
paddingLeft: '32px'
|
|
12164
|
+
alignItems: 'center'
|
|
12296
12165
|
}
|
|
12297
12166
|
};
|
|
12298
12167
|
/**
|
|
@@ -12324,7 +12193,7 @@ var ModalTypography = {
|
|
|
12324
12193
|
}
|
|
12325
12194
|
};
|
|
12326
12195
|
|
|
12327
|
-
var _excluded$
|
|
12196
|
+
var _excluded$H = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
|
|
12328
12197
|
_excluded2$b = ["children", "shadow", "isFullScreen", "shape", "views"],
|
|
12329
12198
|
_excluded3$8 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
|
|
12330
12199
|
_excluded4$7 = ["children", "views"],
|
|
@@ -12339,7 +12208,7 @@ var ModalOverlay = _ref => {
|
|
|
12339
12208
|
position = 'center',
|
|
12340
12209
|
views
|
|
12341
12210
|
} = _ref,
|
|
12342
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12211
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
|
|
12343
12212
|
var handleClick = () => {
|
|
12344
12213
|
if (!isClosePrevented) onClose();
|
|
12345
12214
|
};
|
|
@@ -12410,17 +12279,12 @@ var ModalHeader = _ref3 => {
|
|
|
12410
12279
|
} = _ref3,
|
|
12411
12280
|
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$8);
|
|
12412
12281
|
var onClose = props.onClose ? props.onClose : hideModal;
|
|
12413
|
-
var buttonIcon = /*#__PURE__*/React.createElement(
|
|
12414
|
-
onClick: onClose
|
|
12415
|
-
|
|
12416
|
-
|
|
12417
|
-
|
|
12418
|
-
|
|
12419
|
-
padding: 0,
|
|
12420
|
-
margin: 0,
|
|
12421
|
-
filter: "none",
|
|
12422
|
-
width: 0
|
|
12423
|
-
});
|
|
12282
|
+
var buttonIcon = /*#__PURE__*/React.createElement(View, {
|
|
12283
|
+
onClick: onClose
|
|
12284
|
+
}, /*#__PURE__*/React.createElement(CloseIcon, {
|
|
12285
|
+
widthHeight: HeaderIconSizes[iconSize],
|
|
12286
|
+
color: buttonColor
|
|
12287
|
+
}));
|
|
12424
12288
|
return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
12425
12289
|
justifyContent: buttonPosition === 'none' ? 'center' : 'space-between',
|
|
12426
12290
|
alignItems: "center",
|
|
@@ -12640,7 +12504,7 @@ var NavigationMenuItemStates = {
|
|
|
12640
12504
|
}
|
|
12641
12505
|
};
|
|
12642
12506
|
|
|
12643
|
-
var _excluded$
|
|
12507
|
+
var _excluded$I = ["href", "children", "views"];
|
|
12644
12508
|
// Create context for the NavigationMenu
|
|
12645
12509
|
var NavigationMenuContext = /*#__PURE__*/createContext({
|
|
12646
12510
|
activeItemId: null,
|
|
@@ -12875,7 +12739,7 @@ var NavigationMenuLink = _ref6 => {
|
|
|
12875
12739
|
children,
|
|
12876
12740
|
views
|
|
12877
12741
|
} = _ref6,
|
|
12878
|
-
props = _objectWithoutPropertiesLoose(_ref6, _excluded$
|
|
12742
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded$I);
|
|
12879
12743
|
var {
|
|
12880
12744
|
itemValue,
|
|
12881
12745
|
isDisabled
|
|
@@ -12924,7 +12788,8 @@ var NavigationMenuView = _ref7 => {
|
|
|
12924
12788
|
items,
|
|
12925
12789
|
orientation,
|
|
12926
12790
|
//size, variant,
|
|
12927
|
-
views
|
|
12791
|
+
views,
|
|
12792
|
+
themeMode: elementMode
|
|
12928
12793
|
} = _ref7;
|
|
12929
12794
|
var Container = orientation === 'horizontal' ? Horizontal : Vertical;
|
|
12930
12795
|
if (!items || items.length === 0) {
|
|
@@ -12941,7 +12806,7 @@ var NavigationMenuView = _ref7 => {
|
|
|
12941
12806
|
})))));
|
|
12942
12807
|
};
|
|
12943
12808
|
|
|
12944
|
-
var _excluded$
|
|
12809
|
+
var _excluded$J = ["items", "children", "orientation", "size", "variant", "defaultActiveItemId", "defaultExpandedItemIds", "onItemActivate", "views"];
|
|
12945
12810
|
/**
|
|
12946
12811
|
* NavigationMenu component for creating navigation menus with optional nested items.
|
|
12947
12812
|
* Supports both data-driven approach (with items prop) and compound component pattern.
|
|
@@ -12958,7 +12823,7 @@ var NavigationMenuComponent = _ref => {
|
|
|
12958
12823
|
onItemActivate,
|
|
12959
12824
|
views
|
|
12960
12825
|
} = _ref,
|
|
12961
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12826
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$J);
|
|
12962
12827
|
var {
|
|
12963
12828
|
activeItemId,
|
|
12964
12829
|
setActiveItemId,
|
|
@@ -13158,7 +13023,8 @@ var TableView = _ref => {
|
|
|
13158
13023
|
data,
|
|
13159
13024
|
columns,
|
|
13160
13025
|
footer,
|
|
13161
|
-
caption
|
|
13026
|
+
caption,
|
|
13027
|
+
themeMode: elementMode
|
|
13162
13028
|
} = _ref;
|
|
13163
13029
|
return /*#__PURE__*/React.createElement(TableContainer, {
|
|
13164
13030
|
role: "Table"
|
|
@@ -13425,7 +13291,7 @@ var useToggleState = defaultToggled => {
|
|
|
13425
13291
|
};
|
|
13426
13292
|
};
|
|
13427
13293
|
|
|
13428
|
-
var _excluded$
|
|
13294
|
+
var _excluded$K = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views"];
|
|
13429
13295
|
var ToggleView = _ref => {
|
|
13430
13296
|
var {
|
|
13431
13297
|
children,
|
|
@@ -13439,7 +13305,7 @@ var ToggleView = _ref => {
|
|
|
13439
13305
|
onToggle,
|
|
13440
13306
|
views
|
|
13441
13307
|
} = _ref,
|
|
13442
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
13308
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$K);
|
|
13443
13309
|
var toggleColor = !isDisabled ? 'color.trueGray.400' : 'theme.disabled';
|
|
13444
13310
|
var isActive = !!(isToggle || isHovered);
|
|
13445
13311
|
var toggleVariants = {
|
|
@@ -13482,7 +13348,7 @@ var ToggleView = _ref => {
|
|
|
13482
13348
|
}, toggleVariants[variant], props, views == null ? void 0 : views.container), children);
|
|
13483
13349
|
};
|
|
13484
13350
|
|
|
13485
|
-
var _excluded$
|
|
13351
|
+
var _excluded$L = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
|
|
13486
13352
|
// Destructuring properties from ToggleProps to be used within the ToggleComponent.
|
|
13487
13353
|
var ToggleComponent = _ref => {
|
|
13488
13354
|
var {
|
|
@@ -13494,7 +13360,7 @@ var ToggleComponent = _ref => {
|
|
|
13494
13360
|
isToggled = false,
|
|
13495
13361
|
onToggle
|
|
13496
13362
|
} = _ref,
|
|
13497
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
13363
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$L);
|
|
13498
13364
|
// Initializing toggle state and set state functions using the custom hook useToggleState.
|
|
13499
13365
|
var {
|
|
13500
13366
|
isHovered,
|
|
@@ -13701,7 +13567,8 @@ var DragAndDropView = _ref => {
|
|
|
13701
13567
|
draggedIndex,
|
|
13702
13568
|
itemRefs,
|
|
13703
13569
|
handleDragStart,
|
|
13704
|
-
views
|
|
13570
|
+
views,
|
|
13571
|
+
themeMode: elementMode
|
|
13705
13572
|
} = _ref;
|
|
13706
13573
|
return /*#__PURE__*/React.createElement(View, Object.assign({
|
|
13707
13574
|
overflow: "hidden",
|
|
@@ -13884,11 +13751,11 @@ var getDropdownPosition = function getDropdownPosition(side, align) {
|
|
|
13884
13751
|
return positions[side];
|
|
13885
13752
|
};
|
|
13886
13753
|
|
|
13887
|
-
var _excluded$
|
|
13754
|
+
var _excluded$M = ["children", "views"],
|
|
13888
13755
|
_excluded2$c = ["items", "side", "align", "views"],
|
|
13889
13756
|
_excluded3$9 = ["item", "views"],
|
|
13890
13757
|
_excluded4$8 = ["views"],
|
|
13891
|
-
_excluded5$4 = ["trigger", "items", "side", "align", "views"];
|
|
13758
|
+
_excluded5$4 = ["trigger", "items", "side", "align", "views", "themeMode"];
|
|
13892
13759
|
// Create context for the DropdownMenu
|
|
13893
13760
|
var DropdownMenuContext = /*#__PURE__*/createContext({
|
|
13894
13761
|
isOpen: false,
|
|
@@ -13922,7 +13789,7 @@ var DropdownMenuTrigger = _ref2 => {
|
|
|
13922
13789
|
children,
|
|
13923
13790
|
views
|
|
13924
13791
|
} = _ref2,
|
|
13925
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
13792
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$M);
|
|
13926
13793
|
var {
|
|
13927
13794
|
isOpen,
|
|
13928
13795
|
setIsOpen
|
|
@@ -14082,7 +13949,7 @@ var DropdownMenuView = _ref6 => {
|
|
|
14082
13949
|
}));
|
|
14083
13950
|
};
|
|
14084
13951
|
|
|
14085
|
-
var _excluded$
|
|
13952
|
+
var _excluded$N = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
|
|
14086
13953
|
/**
|
|
14087
13954
|
* DropdownMenu component for displaying a menu when clicking on a trigger element.
|
|
14088
13955
|
*/
|
|
@@ -14097,7 +13964,7 @@ var DropdownMenuComponent = _ref => {
|
|
|
14097
13964
|
defaultOpen = false,
|
|
14098
13965
|
views
|
|
14099
13966
|
} = _ref,
|
|
14100
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
13967
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$N);
|
|
14101
13968
|
var {
|
|
14102
13969
|
isOpen,
|
|
14103
13970
|
setIsOpen,
|
|
@@ -14295,7 +14162,7 @@ var useRect = ref => {
|
|
|
14295
14162
|
return rect;
|
|
14296
14163
|
};
|
|
14297
14164
|
|
|
14298
|
-
var _excluded$
|
|
14165
|
+
var _excluded$O = ["children", "views", "asChild"],
|
|
14299
14166
|
_excluded2$d = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
|
|
14300
14167
|
// Create context for the HoverCard
|
|
14301
14168
|
var HoverCardContext = /*#__PURE__*/createContext({
|
|
@@ -14334,7 +14201,7 @@ var HoverCardTrigger = _ref2 => {
|
|
|
14334
14201
|
views,
|
|
14335
14202
|
asChild = false
|
|
14336
14203
|
} = _ref2,
|
|
14337
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
14204
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$O);
|
|
14338
14205
|
var {
|
|
14339
14206
|
openCard,
|
|
14340
14207
|
closeCard,
|
|
@@ -14421,7 +14288,7 @@ var HoverCardContent = _ref3 => {
|
|
|
14421
14288
|
}, views == null ? void 0 : views.container, props), children);
|
|
14422
14289
|
};
|
|
14423
14290
|
|
|
14424
|
-
var _excluded$
|
|
14291
|
+
var _excluded$P = ["children", "views", "openDelay", "closeDelay"];
|
|
14425
14292
|
/**
|
|
14426
14293
|
* HoverCard component displays floating content when hovering over a trigger element.
|
|
14427
14294
|
* Supports configurable open and close delays for a smoother user experience.
|
|
@@ -14433,7 +14300,7 @@ var HoverCardComponent = _ref => {
|
|
|
14433
14300
|
openDelay,
|
|
14434
14301
|
closeDelay
|
|
14435
14302
|
} = _ref,
|
|
14436
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
14303
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$P);
|
|
14437
14304
|
var hoverCardState = useHoverCardState({
|
|
14438
14305
|
openDelay,
|
|
14439
14306
|
closeDelay
|
|
@@ -14563,7 +14430,7 @@ var getMenubarContentPosition = orientation => {
|
|
|
14563
14430
|
};
|
|
14564
14431
|
};
|
|
14565
14432
|
|
|
14566
|
-
var _excluded$
|
|
14433
|
+
var _excluded$Q = ["children", "orientation", "size", "variant", "views"];
|
|
14567
14434
|
// Create context for the Menubar
|
|
14568
14435
|
var MenubarContext = /*#__PURE__*/createContext({
|
|
14569
14436
|
activeMenuId: null,
|
|
@@ -14597,7 +14464,7 @@ var MenubarRoot = _ref2 => {
|
|
|
14597
14464
|
variant = 'default',
|
|
14598
14465
|
views
|
|
14599
14466
|
} = _ref2,
|
|
14600
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
14467
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$Q);
|
|
14601
14468
|
var Container = orientation === 'horizontal' ? Horizontal : Vertical;
|
|
14602
14469
|
return /*#__PURE__*/React.createElement(Container, Object.assign({
|
|
14603
14470
|
role: "menubar",
|
|
@@ -14744,7 +14611,8 @@ var MenubarView = _ref8 => {
|
|
|
14744
14611
|
orientation,
|
|
14745
14612
|
size,
|
|
14746
14613
|
variant,
|
|
14747
|
-
views
|
|
14614
|
+
views,
|
|
14615
|
+
themeMode: elementMode
|
|
14748
14616
|
} = _ref8;
|
|
14749
14617
|
return /*#__PURE__*/React.createElement(MenubarRoot, {
|
|
14750
14618
|
orientation: orientation,
|
|
@@ -14782,7 +14650,7 @@ var MenubarView = _ref8 => {
|
|
|
14782
14650
|
})))))));
|
|
14783
14651
|
};
|
|
14784
14652
|
|
|
14785
|
-
var _excluded$
|
|
14653
|
+
var _excluded$R = ["items", "orientation", "size", "variant", "defaultActiveMenuId", "defaultOpenMenuId", "views"];
|
|
14786
14654
|
/**
|
|
14787
14655
|
* Menubar component for creating horizontal or vertical menu bars with dropdown menus.
|
|
14788
14656
|
*/
|
|
@@ -14796,7 +14664,7 @@ var MenubarComponent = _ref => {
|
|
|
14796
14664
|
defaultOpenMenuId = null,
|
|
14797
14665
|
views
|
|
14798
14666
|
} = _ref,
|
|
14799
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
14667
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$R);
|
|
14800
14668
|
var {
|
|
14801
14669
|
activeMenuId,
|
|
14802
14670
|
setActiveMenuId,
|
|
@@ -14952,7 +14820,7 @@ var DisabledButtonStyles = {
|
|
|
14952
14820
|
}
|
|
14953
14821
|
};
|
|
14954
14822
|
|
|
14955
|
-
var _excluded$
|
|
14823
|
+
var _excluded$S = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "visiblePageNumbers", "views"];
|
|
14956
14824
|
var PaginationView = _ref => {
|
|
14957
14825
|
var {
|
|
14958
14826
|
currentPage,
|
|
@@ -14983,7 +14851,7 @@ var PaginationView = _ref => {
|
|
|
14983
14851
|
visiblePageNumbers,
|
|
14984
14852
|
views
|
|
14985
14853
|
} = _ref,
|
|
14986
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
14854
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$S);
|
|
14987
14855
|
var handlePageChange = page => {
|
|
14988
14856
|
if (page < 1 || page > totalPages || page === currentPage) {
|
|
14989
14857
|
return;
|
|
@@ -15102,7 +14970,7 @@ var PaginationView = _ref => {
|
|
|
15102
14970
|
}, option.label))))));
|
|
15103
14971
|
};
|
|
15104
14972
|
|
|
15105
|
-
var _excluded$
|
|
14973
|
+
var _excluded$T = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "views"];
|
|
15106
14974
|
/**
|
|
15107
14975
|
* Pagination component for navigating through pages of content.
|
|
15108
14976
|
*/
|
|
@@ -15123,7 +14991,7 @@ var PaginationComponent = _ref => {
|
|
|
15123
14991
|
shape = 'rounded',
|
|
15124
14992
|
views
|
|
15125
14993
|
} = _ref,
|
|
15126
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
14994
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$T);
|
|
15127
14995
|
var {
|
|
15128
14996
|
visiblePageNumbers
|
|
15129
14997
|
} = usePaginationState(currentPage, totalPages, maxPageButtons);
|
|
@@ -15159,11 +15027,16 @@ var Pagination = PaginationComponent;
|
|
|
15159
15027
|
/**
|
|
15160
15028
|
* Variant configurations for the Separator component
|
|
15161
15029
|
*/
|
|
15162
|
-
var
|
|
15163
|
-
|
|
15164
|
-
|
|
15165
|
-
|
|
15030
|
+
var getSeparator = themeMode => {
|
|
15031
|
+
return {
|
|
15032
|
+
solid: 'solid',
|
|
15033
|
+
dashed: 'dashed',
|
|
15034
|
+
dotted: 'dotted'
|
|
15035
|
+
};
|
|
15036
|
+
// Add dark mode conditional styling here
|
|
15166
15037
|
};
|
|
15038
|
+
// For backward compatibility
|
|
15039
|
+
var SeparatorVariants = /*#__PURE__*/getSeparator();
|
|
15167
15040
|
/**
|
|
15168
15041
|
* Thickness configurations for the Separator component
|
|
15169
15042
|
* Following the 4px grid system
|
|
@@ -15188,21 +15061,23 @@ var DefaultSeparatorStyles = {
|
|
|
15188
15061
|
}
|
|
15189
15062
|
};
|
|
15190
15063
|
|
|
15191
|
-
var _excluded$
|
|
15064
|
+
var _excluded$U = ["orientation", "variant", "thickness", "color", "spacing", "label", "decorative", "views", "themeMode"];
|
|
15192
15065
|
var SeparatorView = _ref => {
|
|
15193
15066
|
var {
|
|
15194
15067
|
orientation = 'horizontal',
|
|
15195
15068
|
variant = 'solid',
|
|
15196
15069
|
thickness = 'thin',
|
|
15197
15070
|
color,
|
|
15198
|
-
spacing = '
|
|
15071
|
+
spacing = '0px',
|
|
15199
15072
|
label,
|
|
15200
15073
|
decorative = false,
|
|
15201
15074
|
views
|
|
15202
15075
|
} = _ref,
|
|
15203
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
15076
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$U);
|
|
15204
15077
|
// Access theme if needed for future enhancements
|
|
15205
|
-
var {
|
|
15078
|
+
var {
|
|
15079
|
+
themeMode
|
|
15080
|
+
} = useTheme();
|
|
15206
15081
|
// Use provided color or default from theme
|
|
15207
15082
|
var separatorColor = color || 'color.gray.200';
|
|
15208
15083
|
var borderStyle = SeparatorVariants[variant];
|
|
@@ -15220,7 +15095,7 @@ var SeparatorView = _ref => {
|
|
|
15220
15095
|
alignItems: "center",
|
|
15221
15096
|
justifyContent: "center",
|
|
15222
15097
|
width: "100%",
|
|
15223
|
-
|
|
15098
|
+
padding: spacing
|
|
15224
15099
|
}, ariaProps, props), /*#__PURE__*/React.createElement(View, Object.assign({
|
|
15225
15100
|
height: "0px",
|
|
15226
15101
|
flexGrow: 1,
|
|
@@ -15243,7 +15118,7 @@ var SeparatorView = _ref => {
|
|
|
15243
15118
|
borderTopWidth: borderWidth,
|
|
15244
15119
|
borderTopStyle: borderStyle,
|
|
15245
15120
|
borderTopColor: separatorColor,
|
|
15246
|
-
|
|
15121
|
+
padding: spacing
|
|
15247
15122
|
}, DefaultSeparatorStyles.container, ariaProps, views == null ? void 0 : views.container, props));
|
|
15248
15123
|
}
|
|
15249
15124
|
// For vertical separator
|
|
@@ -15253,7 +15128,7 @@ var SeparatorView = _ref => {
|
|
|
15253
15128
|
borderLeftWidth: borderWidth,
|
|
15254
15129
|
borderLeftStyle: borderStyle,
|
|
15255
15130
|
borderLeftColor: separatorColor,
|
|
15256
|
-
|
|
15131
|
+
padding: spacing
|
|
15257
15132
|
}, DefaultSeparatorStyles.container, ariaProps, views == null ? void 0 : views.container, props));
|
|
15258
15133
|
};
|
|
15259
15134
|
|
|
@@ -15358,37 +15233,42 @@ var SidebarSizes = {
|
|
|
15358
15233
|
/**
|
|
15359
15234
|
* Variant styles for the Sidebar component
|
|
15360
15235
|
*/
|
|
15361
|
-
var
|
|
15362
|
-
|
|
15363
|
-
|
|
15364
|
-
|
|
15365
|
-
|
|
15366
|
-
|
|
15367
|
-
|
|
15368
|
-
|
|
15369
|
-
|
|
15370
|
-
|
|
15371
|
-
|
|
15372
|
-
|
|
15373
|
-
|
|
15374
|
-
|
|
15375
|
-
|
|
15376
|
-
|
|
15377
|
-
|
|
15378
|
-
|
|
15379
|
-
|
|
15380
|
-
|
|
15381
|
-
|
|
15382
|
-
|
|
15383
|
-
|
|
15384
|
-
|
|
15385
|
-
|
|
15386
|
-
|
|
15387
|
-
|
|
15388
|
-
|
|
15389
|
-
|
|
15390
|
-
|
|
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
|
|
15391
15269
|
};
|
|
15270
|
+
// For backward compatibility
|
|
15271
|
+
var SidebarVariants = /*#__PURE__*/getSidebar();
|
|
15392
15272
|
/**
|
|
15393
15273
|
* Position styles for the Sidebar component
|
|
15394
15274
|
*/
|
|
@@ -15431,10 +15311,10 @@ var SidebarTransitions = {
|
|
|
15431
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)'
|
|
15432
15312
|
};
|
|
15433
15313
|
|
|
15434
|
-
var _excluded$
|
|
15314
|
+
var _excluded$V = ["children", "showToggleButton", "views"],
|
|
15435
15315
|
_excluded2$e = ["children", "views"],
|
|
15436
15316
|
_excluded3$a = ["children", "views"],
|
|
15437
|
-
_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"];
|
|
15438
15318
|
// Create context for the Sidebar
|
|
15439
15319
|
var SidebarContext = /*#__PURE__*/createContext({
|
|
15440
15320
|
isExpanded: true,
|
|
@@ -15464,7 +15344,7 @@ var SidebarHeader = _ref2 => {
|
|
|
15464
15344
|
showToggleButton = true,
|
|
15465
15345
|
views
|
|
15466
15346
|
} = _ref2,
|
|
15467
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
15347
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$V);
|
|
15468
15348
|
var {
|
|
15469
15349
|
isExpanded,
|
|
15470
15350
|
toggleExpanded,
|
|
@@ -15619,7 +15499,7 @@ var SidebarView = _ref5 => {
|
|
|
15619
15499
|
}))));
|
|
15620
15500
|
};
|
|
15621
15501
|
|
|
15622
|
-
var _excluded$
|
|
15502
|
+
var _excluded$W = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
|
|
15623
15503
|
/**
|
|
15624
15504
|
* Sidebar component for creating collapsible, themeable and customizable sidebars.
|
|
15625
15505
|
*/
|
|
@@ -15641,7 +15521,7 @@ var SidebarComponent = _ref => {
|
|
|
15641
15521
|
breakpointBehavior = 'overlay',
|
|
15642
15522
|
views
|
|
15643
15523
|
} = _ref,
|
|
15644
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
15524
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$W);
|
|
15645
15525
|
var {
|
|
15646
15526
|
isExpanded,
|
|
15647
15527
|
toggleExpanded,
|
|
@@ -16057,35 +15937,40 @@ var getHandleSizeStyles = (size, orientation) => {
|
|
|
16057
15937
|
};
|
|
16058
15938
|
return sizes[size];
|
|
16059
15939
|
};
|
|
16060
|
-
var
|
|
16061
|
-
|
|
16062
|
-
|
|
16063
|
-
|
|
16064
|
-
|
|
16065
|
-
|
|
16066
|
-
|
|
16067
|
-
|
|
16068
|
-
|
|
16069
|
-
|
|
16070
|
-
subtle: {
|
|
16071
|
-
backgroundColor: 'transparent',
|
|
16072
|
-
_hover: {
|
|
16073
|
-
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
|
+
}
|
|
16074
15950
|
},
|
|
16075
|
-
|
|
16076
|
-
backgroundColor: '
|
|
16077
|
-
|
|
16078
|
-
|
|
16079
|
-
|
|
16080
|
-
|
|
16081
|
-
|
|
16082
|
-
|
|
15951
|
+
subtle: {
|
|
15952
|
+
backgroundColor: 'transparent',
|
|
15953
|
+
_hover: {
|
|
15954
|
+
backgroundColor: 'color.gray.100'
|
|
15955
|
+
},
|
|
15956
|
+
_active: {
|
|
15957
|
+
backgroundColor: 'color.gray.200'
|
|
15958
|
+
}
|
|
16083
15959
|
},
|
|
16084
|
-
|
|
16085
|
-
backgroundColor: 'color.gray.
|
|
15960
|
+
prominent: {
|
|
15961
|
+
backgroundColor: 'color.gray.100',
|
|
15962
|
+
_hover: {
|
|
15963
|
+
backgroundColor: 'color.gray.200'
|
|
15964
|
+
},
|
|
15965
|
+
_active: {
|
|
15966
|
+
backgroundColor: 'color.gray.300'
|
|
15967
|
+
}
|
|
16086
15968
|
}
|
|
16087
|
-
}
|
|
15969
|
+
};
|
|
15970
|
+
// Add dark mode conditional styling here
|
|
16088
15971
|
};
|
|
15972
|
+
// For backward compatibility
|
|
15973
|
+
var HandleVariants = /*#__PURE__*/getHandle();
|
|
16089
15974
|
var HandleIconStyles = {
|
|
16090
15975
|
horizontal: {
|
|
16091
15976
|
width: '2px',
|
|
@@ -16101,7 +15986,7 @@ var HandleIconStyles = {
|
|
|
16101
15986
|
}
|
|
16102
15987
|
};
|
|
16103
15988
|
|
|
16104
|
-
var _excluded$
|
|
15989
|
+
var _excluded$X = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
|
|
16105
15990
|
_excluded2$f = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
|
|
16106
15991
|
_excluded3$b = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "views"];
|
|
16107
15992
|
// Create context for the Resizable component
|
|
@@ -16146,7 +16031,7 @@ var ResizablePanel = _ref2 => {
|
|
|
16146
16031
|
onCollapseChange,
|
|
16147
16032
|
views
|
|
16148
16033
|
} = _ref2,
|
|
16149
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
16034
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$X);
|
|
16150
16035
|
var {
|
|
16151
16036
|
orientation,
|
|
16152
16037
|
registerPanel,
|
|
@@ -16361,7 +16246,7 @@ var ResizableView = _ref4 => {
|
|
|
16361
16246
|
}, ResizableOrientations[orientation], views == null ? void 0 : views.container, props), children);
|
|
16362
16247
|
};
|
|
16363
16248
|
|
|
16364
|
-
var _excluded$
|
|
16249
|
+
var _excluded$Y = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
|
|
16365
16250
|
/**
|
|
16366
16251
|
* Resizable component for creating resizable panel groups and layouts.
|
|
16367
16252
|
*/
|
|
@@ -16381,7 +16266,7 @@ var ResizableComponent = _ref => {
|
|
|
16381
16266
|
keyboardResizeBy = 10,
|
|
16382
16267
|
views
|
|
16383
16268
|
} = _ref,
|
|
16384
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
16269
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$Y);
|
|
16385
16270
|
var {
|
|
16386
16271
|
isResizing,
|
|
16387
16272
|
setIsResizing,
|
|
@@ -16446,7 +16331,7 @@ Resizable.Handle = ResizableHandle;
|
|
|
16446
16331
|
* Theme configurations for the Toast component
|
|
16447
16332
|
* Following the design system color palette
|
|
16448
16333
|
*/
|
|
16449
|
-
var Themes$
|
|
16334
|
+
var Themes$1 = {
|
|
16450
16335
|
info: {
|
|
16451
16336
|
container: {
|
|
16452
16337
|
backgroundColor: 'color.blue.50',
|
|
@@ -16639,10 +16524,11 @@ var ToastView = _ref => {
|
|
|
16639
16524
|
render,
|
|
16640
16525
|
icon: customIcon,
|
|
16641
16526
|
id,
|
|
16642
|
-
isVisible = true
|
|
16527
|
+
isVisible = true,
|
|
16528
|
+
themeMode: elementMode
|
|
16643
16529
|
} = _ref;
|
|
16644
16530
|
// We don't need the auto-close timer here anymore as it's handled in the store
|
|
16645
|
-
var Theme = theme != null ? theme : Themes$
|
|
16531
|
+
var Theme = theme != null ? theme : Themes$1;
|
|
16646
16532
|
// Get the appropriate icon based on the variant
|
|
16647
16533
|
var getIcon = () => {
|
|
16648
16534
|
// If a custom icon is provided, use it
|
|
@@ -17022,29 +16908,34 @@ var CommandSizes = {
|
|
|
17022
16908
|
maxHeight: '500px'
|
|
17023
16909
|
}
|
|
17024
16910
|
};
|
|
17025
|
-
var
|
|
17026
|
-
|
|
17027
|
-
|
|
17028
|
-
|
|
17029
|
-
|
|
17030
|
-
|
|
17031
|
-
|
|
17032
|
-
|
|
17033
|
-
|
|
17034
|
-
|
|
17035
|
-
|
|
17036
|
-
|
|
17037
|
-
|
|
17038
|
-
|
|
17039
|
-
|
|
17040
|
-
|
|
17041
|
-
|
|
17042
|
-
|
|
17043
|
-
|
|
17044
|
-
|
|
17045
|
-
|
|
17046
|
-
|
|
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
|
|
17047
16936
|
};
|
|
16937
|
+
// For backward compatibility
|
|
16938
|
+
var CommandVariants = /*#__PURE__*/getCommand();
|
|
17048
16939
|
var CommandInputStyles = {
|
|
17049
16940
|
display: 'flex',
|
|
17050
16941
|
alignItems: 'center',
|
|
@@ -17140,7 +17031,7 @@ var CommandFooterStyles = {
|
|
|
17140
17031
|
color: 'color.gray.500'
|
|
17141
17032
|
};
|
|
17142
17033
|
|
|
17143
|
-
var _excluded$
|
|
17034
|
+
var _excluded$Z = ["value", "onValueChange", "placeholder", "views"],
|
|
17144
17035
|
_excluded2$g = ["children", "views"],
|
|
17145
17036
|
_excluded3$c = ["heading", "children", "views"],
|
|
17146
17037
|
_excluded4$a = ["item", "selected", "onSelect", "views"],
|
|
@@ -17172,7 +17063,7 @@ var CommandInput = _ref2 => {
|
|
|
17172
17063
|
placeholder = 'Type a command or search...',
|
|
17173
17064
|
views
|
|
17174
17065
|
} = _ref2,
|
|
17175
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
17066
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$Z);
|
|
17176
17067
|
var inputRef = useRef(null);
|
|
17177
17068
|
// Focus input when component mounts
|
|
17178
17069
|
React.useEffect(() => {
|
|
@@ -17360,7 +17251,7 @@ var CommandView = _ref7 => {
|
|
|
17360
17251
|
})))), footer && (/*#__PURE__*/React.createElement(View, Object.assign({}, CommandFooterStyles, views == null ? void 0 : views.footer), footer)))));
|
|
17361
17252
|
};
|
|
17362
17253
|
|
|
17363
|
-
var _excluded$
|
|
17254
|
+
var _excluded$_ = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
|
|
17364
17255
|
/**
|
|
17365
17256
|
* Command component for displaying a command palette with search functionality.
|
|
17366
17257
|
*/
|
|
@@ -17378,7 +17269,7 @@ var CommandComponent = _ref => {
|
|
|
17378
17269
|
footer,
|
|
17379
17270
|
views
|
|
17380
17271
|
} = _ref,
|
|
17381
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
17272
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$_);
|
|
17382
17273
|
var {
|
|
17383
17274
|
search,
|
|
17384
17275
|
setSearch,
|
|
@@ -17535,23 +17426,28 @@ var TooltipSizes = {
|
|
|
17535
17426
|
maxWidth: '300px'
|
|
17536
17427
|
}
|
|
17537
17428
|
};
|
|
17538
|
-
var
|
|
17539
|
-
|
|
17540
|
-
|
|
17541
|
-
|
|
17542
|
-
|
|
17543
|
-
|
|
17544
|
-
|
|
17545
|
-
|
|
17546
|
-
|
|
17547
|
-
|
|
17548
|
-
|
|
17549
|
-
|
|
17550
|
-
|
|
17551
|
-
|
|
17552
|
-
|
|
17553
|
-
|
|
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
|
|
17554
17448
|
};
|
|
17449
|
+
// For backward compatibility
|
|
17450
|
+
var TooltipVariants = /*#__PURE__*/getTooltip();
|
|
17555
17451
|
var getTooltipPositionStyles = (position, align) => {
|
|
17556
17452
|
var baseStyles = {
|
|
17557
17453
|
position: 'absolute',
|
|
@@ -17660,9 +17556,9 @@ var getArrowStyles = position => {
|
|
|
17660
17556
|
}
|
|
17661
17557
|
};
|
|
17662
17558
|
|
|
17663
|
-
var _excluded
|
|
17559
|
+
var _excluded$$ = ["children", "views", "asChild"],
|
|
17664
17560
|
_excluded2$h = ["children", "views"],
|
|
17665
|
-
_excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views"];
|
|
17561
|
+
_excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
|
|
17666
17562
|
// Create context for the Tooltip
|
|
17667
17563
|
var TooltipContext = /*#__PURE__*/createContext({
|
|
17668
17564
|
isOpen: false,
|
|
@@ -17696,7 +17592,7 @@ var TooltipTrigger = _ref2 => {
|
|
|
17696
17592
|
views,
|
|
17697
17593
|
asChild = false
|
|
17698
17594
|
} = _ref2,
|
|
17699
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded
|
|
17595
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$$);
|
|
17700
17596
|
var {
|
|
17701
17597
|
openTooltip,
|
|
17702
17598
|
closeTooltip,
|
|
@@ -17789,7 +17685,7 @@ var TooltipView = _ref4 => {
|
|
|
17789
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)))));
|
|
17790
17686
|
};
|
|
17791
17687
|
|
|
17792
|
-
var _excluded$
|
|
17688
|
+
var _excluded$10 = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
|
|
17793
17689
|
/**
|
|
17794
17690
|
* Tooltip component for displaying additional information when hovering over an element.
|
|
17795
17691
|
* Supports configurable positions, delays, and styling.
|
|
@@ -17809,7 +17705,7 @@ var TooltipComponent = _ref => {
|
|
|
17809
17705
|
isDisabled = false,
|
|
17810
17706
|
views
|
|
17811
17707
|
} = _ref,
|
|
17812
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
17708
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$10);
|
|
17813
17709
|
var tooltipState = useTooltipState({
|
|
17814
17710
|
defaultOpen,
|
|
17815
17711
|
openDelay,
|