@app-studio/web 0.8.78 → 0.8.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/Button/Button/Button.props.d.ts +1 -2
- 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/Menubar/Menubar/Menubar.view.d.ts +2 -1
- package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.view.d.ts +2 -1
- 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 +662 -631
- 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 +662 -631
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +662 -631
- 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
|
@@ -164,7 +164,7 @@ var AccordionVariants = {
|
|
|
164
164
|
var _excluded = ["value", "children", "isDisabled", "views"],
|
|
165
165
|
_excluded2 = ["children", "value", "isExpanded", "isDisabled", "triggerId", "contentId", "views", "asChild"],
|
|
166
166
|
_excluded3 = ["children", "isExpanded", "isDisabled", "triggerId", "contentId", "views"],
|
|
167
|
-
_excluded4 = ["children", "shape", "variant", "views", "baseId", "type", "collapsible"];
|
|
167
|
+
_excluded4 = ["children", "shape", "variant", "views", "baseId", "type", "collapsible", "themeMode"];
|
|
168
168
|
// Create context for the Accordion
|
|
169
169
|
var AccordionContext = /*#__PURE__*/createContext({
|
|
170
170
|
expandedItems: [],
|
|
@@ -2810,93 +2810,104 @@ var Icon = {
|
|
|
2810
2810
|
* - Transitions: Subtle animations
|
|
2811
2811
|
*/
|
|
2812
2812
|
/**
|
|
2813
|
-
*
|
|
2813
|
+
* Get theme styles for different alert variants based on theme mode
|
|
2814
2814
|
*/
|
|
2815
|
-
var
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
container: {
|
|
2831
|
-
backgroundColor: 'color.blue.50',
|
|
2832
|
-
borderColor: 'color.blue.200',
|
|
2833
|
-
boxShadow: '0 1px 2px rgba(59, 130, 246, 0.05)'
|
|
2834
|
-
},
|
|
2835
|
-
content: {
|
|
2836
|
-
color: 'color.blue.700'
|
|
2837
|
-
},
|
|
2838
|
-
icon: {
|
|
2839
|
-
color: 'color.blue.500'
|
|
2840
|
-
}
|
|
2841
|
-
},
|
|
2842
|
-
success: {
|
|
2843
|
-
container: {
|
|
2844
|
-
backgroundColor: 'color.green.50',
|
|
2845
|
-
borderColor: 'color.green.200',
|
|
2846
|
-
boxShadow: '0 1px 2px rgba(34, 197, 94, 0.05)'
|
|
2847
|
-
},
|
|
2848
|
-
content: {
|
|
2849
|
-
color: 'color.green.700'
|
|
2850
|
-
},
|
|
2851
|
-
icon: {
|
|
2852
|
-
color: 'color.green.500'
|
|
2853
|
-
}
|
|
2854
|
-
},
|
|
2855
|
-
error: {
|
|
2856
|
-
container: {
|
|
2857
|
-
backgroundColor: 'color.red.50',
|
|
2858
|
-
borderColor: 'color.red.200',
|
|
2859
|
-
boxShadow: '0 1px 2px rgba(239, 68, 68, 0.05)'
|
|
2815
|
+
var getThemes = themeMode => {
|
|
2816
|
+
var isDarkMode = themeMode === 'dark';
|
|
2817
|
+
return {
|
|
2818
|
+
default: {
|
|
2819
|
+
container: {
|
|
2820
|
+
backgroundColor: isDarkMode ? 'color.gray.800' : 'color.gray.50',
|
|
2821
|
+
borderColor: isDarkMode ? 'color.gray.700' : 'color.gray.200',
|
|
2822
|
+
boxShadow: isDarkMode ? '0 1px 2px rgba(0, 0, 0, 0.2)' : '0 1px 2px rgba(0, 0, 0, 0.05)'
|
|
2823
|
+
},
|
|
2824
|
+
content: {
|
|
2825
|
+
color: isDarkMode ? 'color.gray.300' : 'color.gray.700'
|
|
2826
|
+
},
|
|
2827
|
+
icon: {
|
|
2828
|
+
color: isDarkMode ? 'color.gray.400' : 'color.gray.500'
|
|
2829
|
+
}
|
|
2860
2830
|
},
|
|
2861
|
-
|
|
2862
|
-
|
|
2831
|
+
info: {
|
|
2832
|
+
container: {
|
|
2833
|
+
backgroundColor: isDarkMode ? 'color.blue.900' : 'color.blue.50',
|
|
2834
|
+
borderColor: isDarkMode ? 'color.blue.800' : 'color.blue.200',
|
|
2835
|
+
boxShadow: isDarkMode ? '0 1px 2px rgba(59, 130, 246, 0.2)' : '0 1px 2px rgba(59, 130, 246, 0.05)'
|
|
2836
|
+
},
|
|
2837
|
+
content: {
|
|
2838
|
+
color: isDarkMode ? 'color.blue.300' : 'color.blue.700'
|
|
2839
|
+
},
|
|
2840
|
+
icon: {
|
|
2841
|
+
color: isDarkMode ? 'color.blue.400' : 'color.blue.500'
|
|
2842
|
+
}
|
|
2863
2843
|
},
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2844
|
+
success: {
|
|
2845
|
+
container: {
|
|
2846
|
+
backgroundColor: isDarkMode ? 'color.green.900' : 'color.green.50',
|
|
2847
|
+
borderColor: isDarkMode ? 'color.green.800' : 'color.green.200',
|
|
2848
|
+
boxShadow: isDarkMode ? '0 1px 2px rgba(34, 197, 94, 0.2)' : '0 1px 2px rgba(34, 197, 94, 0.05)'
|
|
2849
|
+
},
|
|
2850
|
+
content: {
|
|
2851
|
+
color: isDarkMode ? 'color.green.300' : 'color.green.700'
|
|
2852
|
+
},
|
|
2853
|
+
icon: {
|
|
2854
|
+
color: isDarkMode ? 'color.green.400' : 'color.green.500'
|
|
2855
|
+
}
|
|
2873
2856
|
},
|
|
2874
|
-
|
|
2875
|
-
|
|
2857
|
+
error: {
|
|
2858
|
+
container: {
|
|
2859
|
+
backgroundColor: isDarkMode ? 'color.red.900' : 'color.red.50',
|
|
2860
|
+
borderColor: isDarkMode ? 'color.red.800' : 'color.red.200',
|
|
2861
|
+
boxShadow: isDarkMode ? '0 1px 2px rgba(239, 68, 68, 0.2)' : '0 1px 2px rgba(239, 68, 68, 0.05)'
|
|
2862
|
+
},
|
|
2863
|
+
content: {
|
|
2864
|
+
color: isDarkMode ? 'color.red.300' : 'color.red.700'
|
|
2865
|
+
},
|
|
2866
|
+
icon: {
|
|
2867
|
+
color: isDarkMode ? 'color.red.400' : 'color.red.500'
|
|
2868
|
+
}
|
|
2876
2869
|
},
|
|
2877
|
-
|
|
2878
|
-
|
|
2870
|
+
warning: {
|
|
2871
|
+
container: {
|
|
2872
|
+
backgroundColor: isDarkMode ? 'color.orange.900' : 'color.orange.50',
|
|
2873
|
+
borderColor: isDarkMode ? 'color.orange.800' : 'color.orange.200',
|
|
2874
|
+
boxShadow: isDarkMode ? '0 1px 2px rgba(249, 115, 22, 0.2)' : '0 1px 2px rgba(249, 115, 22, 0.05)'
|
|
2875
|
+
},
|
|
2876
|
+
content: {
|
|
2877
|
+
color: isDarkMode ? 'color.orange.300' : 'color.orange.700'
|
|
2878
|
+
},
|
|
2879
|
+
icon: {
|
|
2880
|
+
color: isDarkMode ? 'color.orange.400' : 'color.orange.500'
|
|
2881
|
+
}
|
|
2879
2882
|
}
|
|
2880
|
-
}
|
|
2883
|
+
};
|
|
2881
2884
|
};
|
|
2882
2885
|
|
|
2886
|
+
var _excluded$4 = ["icon", "title", "views", "description", "variant", "themeMode"];
|
|
2883
2887
|
/**
|
|
2884
2888
|
* Alert component that displays important messages to users
|
|
2885
2889
|
*/
|
|
2886
2890
|
var AlertView = _ref => {
|
|
2887
2891
|
var {
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2892
|
+
icon,
|
|
2893
|
+
title,
|
|
2894
|
+
views,
|
|
2895
|
+
description,
|
|
2896
|
+
variant = 'default',
|
|
2897
|
+
themeMode: elementMode
|
|
2898
|
+
} = _ref,
|
|
2899
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
2900
|
+
var {
|
|
2901
|
+
themeMode
|
|
2902
|
+
} = useTheme();
|
|
2903
|
+
var currentThemeMode = elementMode || themeMode;
|
|
2904
|
+
var themes = getThemes(currentThemeMode);
|
|
2894
2905
|
// Select the appropriate icon based on the variant
|
|
2895
2906
|
var getIcon = () => {
|
|
2896
2907
|
var _views$icon$color, _views$icon;
|
|
2897
2908
|
if (icon) return icon;
|
|
2898
|
-
// Use the theme color directly from
|
|
2899
|
-
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;
|
|
2900
2911
|
var iconProps = {
|
|
2901
2912
|
size: 20,
|
|
2902
2913
|
color: iconColor
|
|
@@ -2927,12 +2938,12 @@ var AlertView = _ref => {
|
|
|
2927
2938
|
,
|
|
2928
2939
|
borderWidth: "1px",
|
|
2929
2940
|
borderStyle: "solid",
|
|
2930
|
-
borderColor:
|
|
2931
|
-
backgroundColor:
|
|
2932
|
-
boxShadow:
|
|
2941
|
+
borderColor: themes[variant].container.borderColor,
|
|
2942
|
+
backgroundColor: themes[variant].container.backgroundColor,
|
|
2943
|
+
boxShadow: themes[variant].container.boxShadow,
|
|
2933
2944
|
// Animation
|
|
2934
2945
|
transition: "all 0.2s ease"
|
|
2935
|
-
}, views == null ? void 0 : views.container), /*#__PURE__*/React.createElement(View, Object.assign({
|
|
2946
|
+
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React.createElement(View, Object.assign({
|
|
2936
2947
|
alignSelf: "flex-start",
|
|
2937
2948
|
marginTop: "2px"
|
|
2938
2949
|
}, views == null ? void 0 : views.icon), getIcon()), /*#__PURE__*/React.createElement(Vertical, {
|
|
@@ -2942,37 +2953,22 @@ var AlertView = _ref => {
|
|
|
2942
2953
|
fontWeight: "600" // Semi-bold
|
|
2943
2954
|
,
|
|
2944
2955
|
lineHeight: "24px",
|
|
2945
|
-
color:
|
|
2956
|
+
color: themes[variant].content.color
|
|
2946
2957
|
}, views == null ? void 0 : views.title), title), /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
2947
2958
|
fontSize: "14px",
|
|
2948
2959
|
fontWeight: "400" // Regular
|
|
2949
2960
|
,
|
|
2950
2961
|
lineHeight: "20px",
|
|
2951
|
-
color:
|
|
2962
|
+
color: themes[variant].content.color
|
|
2952
2963
|
}, views == null ? void 0 : views.description), description)));
|
|
2953
2964
|
};
|
|
2954
2965
|
|
|
2955
|
-
// Definition of the AlertComponent functional component with
|
|
2956
|
-
var AlertComponent =
|
|
2957
|
-
var {
|
|
2958
|
-
icon,
|
|
2959
|
-
title,
|
|
2960
|
-
views,
|
|
2961
|
-
description,
|
|
2962
|
-
variant
|
|
2963
|
-
} = _ref;
|
|
2964
|
-
return /*#__PURE__*/React.createElement(AlertView, {
|
|
2965
|
-
icon: icon,
|
|
2966
|
-
title: title,
|
|
2967
|
-
views: views,
|
|
2968
|
-
description: description,
|
|
2969
|
-
variant: variant
|
|
2970
|
-
});
|
|
2971
|
-
};
|
|
2966
|
+
// Definition of the AlertComponent functional component with props.
|
|
2967
|
+
var AlertComponent = props => /*#__PURE__*/React.createElement(AlertView, Object.assign({}, props));
|
|
2972
2968
|
// Exporting the AlertComponent as 'Alert' for use in other parts of the application.
|
|
2973
2969
|
var Alert = AlertComponent;
|
|
2974
2970
|
|
|
2975
|
-
var _excluded$
|
|
2971
|
+
var _excluded$5 = ["ratio", "children", "views"];
|
|
2976
2972
|
// Declaration of a functional component named AspectRatioView.
|
|
2977
2973
|
var AspectRatioView = _ref => {
|
|
2978
2974
|
var {
|
|
@@ -2983,7 +2979,7 @@ var AspectRatioView = _ref => {
|
|
|
2983
2979
|
views
|
|
2984
2980
|
// Spread the rest of the props to inherit additional properties.
|
|
2985
2981
|
} = _ref,
|
|
2986
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2982
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
2987
2983
|
return /*#__PURE__*/React.createElement(Center, Object.assign({
|
|
2988
2984
|
width: '100%',
|
|
2989
2985
|
position: "relative",
|
|
@@ -2999,14 +2995,14 @@ var AspectRatioView = _ref => {
|
|
|
2999
2995
|
}, views == null ? void 0 : views.view), children));
|
|
3000
2996
|
};
|
|
3001
2997
|
|
|
3002
|
-
var _excluded$
|
|
2998
|
+
var _excluded$6 = ["ratio", "children"];
|
|
3003
2999
|
// Declaration of the AspectRatioComponent functional component with destructured props.
|
|
3004
3000
|
var AspectRatioComponent = _ref => {
|
|
3005
3001
|
var {
|
|
3006
3002
|
ratio,
|
|
3007
3003
|
children
|
|
3008
3004
|
} = _ref,
|
|
3009
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3005
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
3010
3006
|
// Beginning of the return statement in the functional component.
|
|
3011
3007
|
return /*#__PURE__*/React.createElement(AspectRatioView, Object.assign({
|
|
3012
3008
|
ratio: ratio
|
|
@@ -3056,17 +3052,11 @@ var DefaultAvatarStyles = {
|
|
|
3056
3052
|
borderColor: 'transparent',
|
|
3057
3053
|
backgroundColor: 'color.gray.100',
|
|
3058
3054
|
boxShadow: '0px 2px 4px rgba(0, 0, 0, 0.1)',
|
|
3059
|
-
transition: 'all 0.2s ease'
|
|
3060
|
-
'@media (prefers-color-scheme: dark)': {
|
|
3061
|
-
backgroundColor: 'color.gray.700'
|
|
3062
|
-
}
|
|
3055
|
+
transition: 'all 0.2s ease'
|
|
3063
3056
|
},
|
|
3064
3057
|
fallback: {
|
|
3065
3058
|
fontWeight: '500',
|
|
3066
|
-
color: 'color.gray.600'
|
|
3067
|
-
'@media (prefers-color-scheme: dark)': {
|
|
3068
|
-
color: 'color.gray.300'
|
|
3069
|
-
}
|
|
3059
|
+
color: 'color.gray.600'
|
|
3070
3060
|
},
|
|
3071
3061
|
image: {
|
|
3072
3062
|
objectFit: 'cover',
|
|
@@ -3237,58 +3227,69 @@ var PositionStyles = {
|
|
|
3237
3227
|
}
|
|
3238
3228
|
};
|
|
3239
3229
|
/**
|
|
3240
|
-
*
|
|
3230
|
+
* Get badge variants with consistent styling based on theme mode
|
|
3241
3231
|
*/
|
|
3242
|
-
var
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
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
|
-
|
|
3232
|
+
var getBadgeVariants = themeMode => {
|
|
3233
|
+
var isDarkMode = themeMode === 'dark';
|
|
3234
|
+
return {
|
|
3235
|
+
filled: {
|
|
3236
|
+
backgroundColor: 'theme.primary',
|
|
3237
|
+
color: isDarkMode ? 'color.gray.900' : 'color.white',
|
|
3238
|
+
borderWidth: '1px',
|
|
3239
|
+
borderStyle: 'solid',
|
|
3240
|
+
borderColor: 'transparent',
|
|
3241
|
+
transition: 'all 0.2s ease'
|
|
3242
|
+
},
|
|
3243
|
+
outline: {
|
|
3244
|
+
backgroundColor: 'transparent',
|
|
3245
|
+
borderWidth: '1px',
|
|
3246
|
+
borderStyle: 'solid',
|
|
3247
|
+
borderColor: 'theme.primary',
|
|
3248
|
+
color: 'theme.primary',
|
|
3249
|
+
transition: 'all 0.2s ease'
|
|
3250
|
+
},
|
|
3251
|
+
link: {
|
|
3252
|
+
backgroundColor: 'transparent',
|
|
3253
|
+
borderWidth: '1px',
|
|
3254
|
+
borderStyle: 'solid',
|
|
3255
|
+
borderColor: 'transparent',
|
|
3256
|
+
color: 'theme.primary',
|
|
3257
|
+
textDecoration: 'underline',
|
|
3258
|
+
textUnderlineOffset: '2px',
|
|
3259
|
+
transition: 'all 0.2s ease'
|
|
3260
|
+
},
|
|
3261
|
+
ghost: {
|
|
3262
|
+
backgroundColor: 'transparent',
|
|
3263
|
+
color: isDarkMode ? 'color.gray.400' : 'color.gray.500',
|
|
3264
|
+
borderWidth: '1px',
|
|
3265
|
+
borderStyle: 'solid',
|
|
3266
|
+
borderColor: 'transparent',
|
|
3267
|
+
transition: 'all 0.2s ease'
|
|
3268
|
+
}
|
|
3269
|
+
};
|
|
3277
3270
|
};
|
|
3278
3271
|
|
|
3272
|
+
var _excluded$7 = ["content", "position", "shape", "variant", "size", "views", "themeMode"];
|
|
3279
3273
|
// No need to import ViewProps as it's not used directly
|
|
3280
3274
|
/**
|
|
3281
3275
|
* Badge View Component
|
|
3282
3276
|
*/
|
|
3283
3277
|
var BadgeView = _ref => {
|
|
3284
3278
|
var {
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3279
|
+
content,
|
|
3280
|
+
position,
|
|
3281
|
+
shape = 'pillShaped',
|
|
3282
|
+
variant = 'filled',
|
|
3283
|
+
size = 'md',
|
|
3284
|
+
views,
|
|
3285
|
+
themeMode: elementMode
|
|
3286
|
+
} = _ref,
|
|
3287
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
3288
|
+
var {
|
|
3289
|
+
themeMode
|
|
3290
|
+
} = useTheme();
|
|
3291
|
+
var currentThemeMode = elementMode || themeMode;
|
|
3292
|
+
var variantStyles = getBadgeVariants(currentThemeMode)[variant];
|
|
3292
3293
|
// Combine styles for the badge
|
|
3293
3294
|
var combinedStyles = Object.assign({
|
|
3294
3295
|
// Base styles
|
|
@@ -3296,13 +3297,13 @@ var BadgeView = _ref => {
|
|
|
3296
3297
|
display: 'flex',
|
|
3297
3298
|
alignItems: 'center',
|
|
3298
3299
|
justifyContent: 'center',
|
|
3299
|
-
|
|
3300
|
+
backgroundColor: 'color.black',
|
|
3300
3301
|
// Apply shape, size, and variant styles
|
|
3301
3302
|
borderRadius: BadgeShapes[shape]
|
|
3302
|
-
}, BadgeSizes[size],
|
|
3303
|
+
}, BadgeSizes[size], variantStyles, position ? PositionStyles[position] : {}, views == null ? void 0 : views.container);
|
|
3303
3304
|
return /*#__PURE__*/React.createElement(Center, Object.assign({
|
|
3304
3305
|
role: "badge"
|
|
3305
|
-
}, combinedStyles), /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
3306
|
+
}, combinedStyles, props), /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
3306
3307
|
role: "badgeText",
|
|
3307
3308
|
fontWeight: "500" // Medium weight for better readability
|
|
3308
3309
|
,
|
|
@@ -3312,29 +3313,8 @@ var BadgeView = _ref => {
|
|
|
3312
3313
|
}), content || ''));
|
|
3313
3314
|
};
|
|
3314
3315
|
|
|
3315
|
-
//
|
|
3316
|
-
var Badge =
|
|
3317
|
-
var {
|
|
3318
|
-
// Importing the BadgeView component which is the presentation component for Badge.
|
|
3319
|
-
content,
|
|
3320
|
-
// Exporting the Badge as a functional component from this module.
|
|
3321
|
-
shape,
|
|
3322
|
-
// Destructuring the props in the component function parameter list, to directly access individual properties.
|
|
3323
|
-
position,
|
|
3324
|
-
// Passing all the destructured props to the BadgeView component to maintain the same API surface.
|
|
3325
|
-
variant,
|
|
3326
|
-
size,
|
|
3327
|
-
views
|
|
3328
|
-
} = _ref;
|
|
3329
|
-
return /*#__PURE__*/React.createElement(BadgeView, {
|
|
3330
|
-
content: content,
|
|
3331
|
-
shape: shape,
|
|
3332
|
-
position: position,
|
|
3333
|
-
variant: variant,
|
|
3334
|
-
size: size,
|
|
3335
|
-
views: views
|
|
3336
|
-
});
|
|
3337
|
-
};
|
|
3316
|
+
// Badge component that displays a small indicator, typically used for counts or status
|
|
3317
|
+
var Badge = props => /*#__PURE__*/React.createElement(BadgeView, Object.assign({}, props));
|
|
3338
3318
|
|
|
3339
3319
|
var useButtonState = () => {
|
|
3340
3320
|
var [isHovered, setIsHovered] = React.useState(false);
|
|
@@ -3366,7 +3346,7 @@ var IconSizes = {
|
|
|
3366
3346
|
xl: 20
|
|
3367
3347
|
};
|
|
3368
3348
|
|
|
3369
|
-
var _excluded$
|
|
3349
|
+
var _excluded$8 = ["children", "to", "iconSize", "underline", "isHovered", "isExternal", "views", "setIsHovered"];
|
|
3370
3350
|
// Component definition for 'LinkView', a functional component with props defined by 'LinkViewProps'.
|
|
3371
3351
|
var LinkView = _ref => {
|
|
3372
3352
|
var {
|
|
@@ -3389,7 +3369,7 @@ var LinkView = _ref => {
|
|
|
3389
3369
|
// Setter function for the hover state, noop function provided by default.
|
|
3390
3370
|
setIsHovered = () => {}
|
|
3391
3371
|
} = _ref,
|
|
3392
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3372
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
3393
3373
|
// Function to handle mouse enter/leave events to toggle hover state.
|
|
3394
3374
|
var handleHover = () => {
|
|
3395
3375
|
if (underline === 'hover') setIsHovered(true);
|
|
@@ -3538,75 +3518,6 @@ var IconSizes$1 = {
|
|
|
3538
3518
|
padding: 14
|
|
3539
3519
|
}
|
|
3540
3520
|
};
|
|
3541
|
-
/**
|
|
3542
|
-
* Button variants with consistent styling
|
|
3543
|
-
*/
|
|
3544
|
-
var getButtonVariants = (color, isLight) => ({
|
|
3545
|
-
filled: {
|
|
3546
|
-
backgroundColor: color,
|
|
3547
|
-
color: isLight ? 'color.gray.900' : 'color.white',
|
|
3548
|
-
borderWidth: 1,
|
|
3549
|
-
borderStyle: 'solid',
|
|
3550
|
-
borderColor: 'transparent',
|
|
3551
|
-
on: {
|
|
3552
|
-
hover: {
|
|
3553
|
-
filter: 'brightness(0.9)',
|
|
3554
|
-
transform: 'translateY(-1px)'
|
|
3555
|
-
},
|
|
3556
|
-
active: {
|
|
3557
|
-
filter: 'brightness(0.85)',
|
|
3558
|
-
transform: 'translateY(0)'
|
|
3559
|
-
}
|
|
3560
|
-
},
|
|
3561
|
-
transition: 'all 0.2s ease'
|
|
3562
|
-
},
|
|
3563
|
-
outline: {
|
|
3564
|
-
backgroundColor: 'transparent',
|
|
3565
|
-
borderWidth: 1,
|
|
3566
|
-
borderStyle: 'solid',
|
|
3567
|
-
borderColor: color,
|
|
3568
|
-
color: color,
|
|
3569
|
-
on: {
|
|
3570
|
-
hover: {
|
|
3571
|
-
backgroundColor: color + "10",
|
|
3572
|
-
transform: 'translateY(-1px)'
|
|
3573
|
-
},
|
|
3574
|
-
active: {
|
|
3575
|
-
backgroundColor: color + "20",
|
|
3576
|
-
transform: 'translateY(0)'
|
|
3577
|
-
}
|
|
3578
|
-
},
|
|
3579
|
-
transition: 'all 0.2s ease'
|
|
3580
|
-
},
|
|
3581
|
-
ghost: {
|
|
3582
|
-
backgroundColor: 'transparent',
|
|
3583
|
-
color: color,
|
|
3584
|
-
on: {
|
|
3585
|
-
hover: {
|
|
3586
|
-
backgroundColor: color + "10",
|
|
3587
|
-
transform: 'translateY(-1px)'
|
|
3588
|
-
},
|
|
3589
|
-
active: {
|
|
3590
|
-
backgroundColor: color + "20",
|
|
3591
|
-
transform: 'translateY(0)'
|
|
3592
|
-
}
|
|
3593
|
-
},
|
|
3594
|
-
transition: 'all 0.2s ease'
|
|
3595
|
-
},
|
|
3596
|
-
link: {
|
|
3597
|
-
backgroundColor: 'transparent',
|
|
3598
|
-
color: color,
|
|
3599
|
-
textDecoration: 'underline',
|
|
3600
|
-
textUnderlineOffset: 2,
|
|
3601
|
-
on: {
|
|
3602
|
-
hover: {
|
|
3603
|
-
textDecoration: 'underline',
|
|
3604
|
-
textDecorationThickness: 2
|
|
3605
|
-
}
|
|
3606
|
-
},
|
|
3607
|
-
transition: 'all 0.2s ease'
|
|
3608
|
-
}
|
|
3609
|
-
});
|
|
3610
3521
|
|
|
3611
3522
|
// Defines a mapping of spinning speed labels to their respective duration in seconds for the Loader component animations.
|
|
3612
3523
|
// Sets up a scale of sizes, mapping size labels to numerical values to be used for Loader component dimensions.
|
|
@@ -3624,7 +3535,7 @@ var DefaultSpeeds = {
|
|
|
3624
3535
|
slow: 300
|
|
3625
3536
|
};
|
|
3626
3537
|
|
|
3627
|
-
var _excluded$
|
|
3538
|
+
var _excluded$9 = ["size", "speed", "color", "themeMode"],
|
|
3628
3539
|
_excluded2$2 = ["size", "speed", "color", "themeMode"],
|
|
3629
3540
|
_excluded3$2 = ["size", "speed", "color", "themeMode"],
|
|
3630
3541
|
_excluded4$2 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition", "views"];
|
|
@@ -3635,7 +3546,7 @@ var DefaultSpinner = _ref => {
|
|
|
3635
3546
|
color = 'theme.loading',
|
|
3636
3547
|
themeMode: elementMode
|
|
3637
3548
|
} = _ref,
|
|
3638
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3549
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
3639
3550
|
var {
|
|
3640
3551
|
getColor,
|
|
3641
3552
|
themeMode
|
|
@@ -3800,7 +3711,9 @@ React.createElement(LoaderView, Object.assign({}, props)));
|
|
|
3800
3711
|
// Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
|
|
3801
3712
|
var Loader = LoaderComponent;
|
|
3802
3713
|
|
|
3803
|
-
var _excluded$
|
|
3714
|
+
var _excluded$a = ["icon", "shadow", "children", "ariaLabel", "to", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered", "setIsHovered", "isExternal", "themeMode", "views", "colorScheme"],
|
|
3715
|
+
_excluded2$3 = ["_hover", "_active"],
|
|
3716
|
+
_excluded3$3 = ["height"];
|
|
3804
3717
|
var contrast = /*#__PURE__*/require('contrast');
|
|
3805
3718
|
var ButtonView = _ref => {
|
|
3806
3719
|
var _props$onClick;
|
|
@@ -3823,13 +3736,14 @@ var ButtonView = _ref => {
|
|
|
3823
3736
|
loaderProps = {},
|
|
3824
3737
|
loaderPosition = 'left',
|
|
3825
3738
|
effect = 'default',
|
|
3739
|
+
isHovered,
|
|
3826
3740
|
setIsHovered = () => {},
|
|
3827
3741
|
isExternal = false,
|
|
3828
3742
|
themeMode: elementMode,
|
|
3829
|
-
|
|
3830
|
-
|
|
3743
|
+
views,
|
|
3744
|
+
colorScheme = 'theme.primary'
|
|
3831
3745
|
} = _ref,
|
|
3832
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3746
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
3833
3747
|
var {
|
|
3834
3748
|
getColor,
|
|
3835
3749
|
themeMode
|
|
@@ -3839,13 +3753,79 @@ var ButtonView = _ref => {
|
|
|
3839
3753
|
var defaultNativeProps = {
|
|
3840
3754
|
disabled: !isActive
|
|
3841
3755
|
};
|
|
3842
|
-
var buttonColor = isActive ?
|
|
3843
|
-
|
|
3756
|
+
var buttonColor = isActive ? colorScheme : 'theme.disabled';
|
|
3757
|
+
var hovering = isHovered && effect === 'hover';
|
|
3758
|
+
var reverse = isHovered && effect === 'reverse';
|
|
3844
3759
|
// Determine if the button color is light or dark for proper contrast
|
|
3845
3760
|
var isLight = contrast(getColor(buttonColor, elementMode ? elementMode : themeMode)) == 'light';
|
|
3846
|
-
//
|
|
3847
|
-
var ButtonVariants =
|
|
3848
|
-
|
|
3761
|
+
// Define button variants with effect support
|
|
3762
|
+
var ButtonVariants = {
|
|
3763
|
+
filled: {
|
|
3764
|
+
backgroundColor: reverse ? 'transparent' : buttonColor,
|
|
3765
|
+
color: reverse ? isLight ? 'white' : buttonColor : isLight ? buttonColor : 'white',
|
|
3766
|
+
borderWidth: 1,
|
|
3767
|
+
borderStyle: 'solid',
|
|
3768
|
+
borderColor: reverse ? buttonColor : 'transparent',
|
|
3769
|
+
_hover: {
|
|
3770
|
+
backgroundColor: reverse ? buttonColor + "10" : "" + buttonColor,
|
|
3771
|
+
transform: 'translateY(-2px)',
|
|
3772
|
+
boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1)'
|
|
3773
|
+
},
|
|
3774
|
+
_active: {
|
|
3775
|
+
backgroundColor: reverse ? buttonColor + "20" : "" + buttonColor,
|
|
3776
|
+
transform: 'translateY(0)',
|
|
3777
|
+
boxShadow: '0 2px 4px rgba(0, 0, 0, 0.1)'
|
|
3778
|
+
}
|
|
3779
|
+
},
|
|
3780
|
+
outline: {
|
|
3781
|
+
backgroundColor: reverse ? buttonColor : 'transparent',
|
|
3782
|
+
borderWidth: 1,
|
|
3783
|
+
borderStyle: 'solid',
|
|
3784
|
+
borderColor: reverse ? buttonColor : colorScheme,
|
|
3785
|
+
color: reverse ? 'white' : buttonColor,
|
|
3786
|
+
_hover: {
|
|
3787
|
+
backgroundColor: reverse ? "" + buttonColor : buttonColor + "10",
|
|
3788
|
+
transform: 'translateY(-2px)',
|
|
3789
|
+
boxShadow: '0 4px 8px rgba(0, 0, 0, 0.05)'
|
|
3790
|
+
},
|
|
3791
|
+
_active: {
|
|
3792
|
+
backgroundColor: reverse ? buttonColor + "b0" : buttonColor + "20",
|
|
3793
|
+
transform: 'translateY(0)',
|
|
3794
|
+
boxShadow: '0 2px 4px rgba(0, 0, 0, 0.05)'
|
|
3795
|
+
}
|
|
3796
|
+
},
|
|
3797
|
+
link: {
|
|
3798
|
+
backgroundColor: 'transparent',
|
|
3799
|
+
borderWidth: 0,
|
|
3800
|
+
borderStyle: 'none',
|
|
3801
|
+
borderColor: 'transparent',
|
|
3802
|
+
color: buttonColor,
|
|
3803
|
+
textDecoration: reverse ? 'none' : 'underline',
|
|
3804
|
+
_hover: {
|
|
3805
|
+
opacity: 0.8,
|
|
3806
|
+
textDecorationThickness: '2px'
|
|
3807
|
+
},
|
|
3808
|
+
_active: {
|
|
3809
|
+
opacity: 0.8,
|
|
3810
|
+
textDecorationThickness: '2px'
|
|
3811
|
+
}
|
|
3812
|
+
},
|
|
3813
|
+
ghost: {
|
|
3814
|
+
backgroundColor: reverse ? buttonColor : 'transparent',
|
|
3815
|
+
color: reverse ? 'white' : buttonColor,
|
|
3816
|
+
borderWidth: 0,
|
|
3817
|
+
borderStyle: 'none',
|
|
3818
|
+
borderColor: 'transparent',
|
|
3819
|
+
_hover: {
|
|
3820
|
+
backgroundColor: reverse ? "" + buttonColor : buttonColor + "10",
|
|
3821
|
+
transform: 'translateY(-2px)'
|
|
3822
|
+
},
|
|
3823
|
+
_active: {
|
|
3824
|
+
backgroundColor: reverse ? buttonColor + "b0" : buttonColor + "20",
|
|
3825
|
+
transform: 'translateY(0)'
|
|
3826
|
+
}
|
|
3827
|
+
}
|
|
3828
|
+
};
|
|
3849
3829
|
var buttonSizeStyles = ButtonSizes[size];
|
|
3850
3830
|
var buttonVariant = ButtonVariants[variant];
|
|
3851
3831
|
var scaleWidth = {
|
|
@@ -3872,6 +3852,13 @@ var ButtonView = _ref => {
|
|
|
3872
3852
|
}, views == null ? void 0 : views.icon), icon)), isLoading && loaderPosition === 'right' && (/*#__PURE__*/React.createElement(Loader, Object.assign({
|
|
3873
3853
|
size: size === 'xs' || size === 'sm' ? 'sm' : 'md'
|
|
3874
3854
|
}, loaderProps))));
|
|
3855
|
+
// Extract hover and active styles from buttonVariant
|
|
3856
|
+
var _ref2 = buttonVariant || {},
|
|
3857
|
+
{
|
|
3858
|
+
_hover,
|
|
3859
|
+
_active
|
|
3860
|
+
} = _ref2,
|
|
3861
|
+
baseButtonVariant = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
|
|
3875
3862
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
3876
3863
|
gap: 8,
|
|
3877
3864
|
as: "button",
|
|
@@ -3880,17 +3867,28 @@ var ButtonView = _ref => {
|
|
|
3880
3867
|
alignItems: "center",
|
|
3881
3868
|
justifyContent: "center",
|
|
3882
3869
|
"aria-label": ariaLabel,
|
|
3870
|
+
backgroundColor: "transparent",
|
|
3883
3871
|
borderRadius: ButtonShapes[shape],
|
|
3884
3872
|
onClick: (_props$onClick = props.onClick) != null ? _props$onClick : onClick,
|
|
3885
3873
|
onMouseEnter: () => handleHover(true),
|
|
3886
3874
|
onMouseLeave: () => handleHover(false),
|
|
3887
3875
|
cursor: isActive ? 'pointer' : 'default',
|
|
3876
|
+
filter: hovering && effect === 'hover' ? 'brightness(0.85)' : 'brightness(1)',
|
|
3877
|
+
transition: "all 0.2s ease",
|
|
3878
|
+
transform: hovering && effect === 'hover' && !isDisabled ? 'translateY(-5px)' : '',
|
|
3888
3879
|
// Apply consistent styling according to design guidelines
|
|
3889
3880
|
// Apply shadow if provided
|
|
3890
3881
|
boxShadow: shadow ? shadow : undefined
|
|
3891
|
-
}, defaultNativeProps,
|
|
3882
|
+
}, defaultNativeProps, (_ref3 => {
|
|
3883
|
+
var rest = _objectWithoutPropertiesLoose(_ref3, _excluded3$3);
|
|
3884
|
+
return rest;
|
|
3885
|
+
})(props), buttonSizeStyles, baseButtonVariant, scaleWidth, props.padding || props.paddingHorizontal || props.paddingVertical || props.paddingLeft || props.paddingRight || props.paddingTop || props.paddingBottom ? {} : changePadding, {
|
|
3886
|
+
// Apply hover and active styles
|
|
3887
|
+
_hover: _hover,
|
|
3888
|
+
_active: _active
|
|
3889
|
+
}, views == null ? void 0 : views.container), variant === 'link' && to ? (/*#__PURE__*/React.createElement(Link, Object.assign({
|
|
3892
3890
|
to: to,
|
|
3893
|
-
textDecorationColor:
|
|
3891
|
+
textDecorationColor: colorScheme,
|
|
3894
3892
|
textDecorationThickness: "1px",
|
|
3895
3893
|
textUnderlineOffset: "2px",
|
|
3896
3894
|
transition: "all 0.2s ease",
|
|
@@ -3898,7 +3896,7 @@ var ButtonView = _ref => {
|
|
|
3898
3896
|
_hover: {
|
|
3899
3897
|
textDecorationThickness: '2px'
|
|
3900
3898
|
}
|
|
3901
|
-
},
|
|
3899
|
+
}, views == null ? void 0 : views.link), content)) : content);
|
|
3902
3900
|
};
|
|
3903
3901
|
|
|
3904
3902
|
// Importing a custom hook to manage the state specific to the button component.
|
|
@@ -3947,97 +3945,95 @@ var CardShapes = {
|
|
|
3947
3945
|
pillShaped: '16px'
|
|
3948
3946
|
};
|
|
3949
3947
|
/**
|
|
3950
|
-
*
|
|
3948
|
+
* Get card variants with consistent styling based on theme mode
|
|
3951
3949
|
*/
|
|
3952
|
-
var
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3950
|
+
var getCardVariants = themeMode => {
|
|
3951
|
+
var isDarkMode = themeMode === 'dark';
|
|
3952
|
+
return {
|
|
3953
|
+
default: {
|
|
3954
|
+
backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
|
|
3955
|
+
border: 'none',
|
|
3956
|
+
transition: 'all 0.2s ease'
|
|
3957
|
+
},
|
|
3958
|
+
outlined: {
|
|
3959
|
+
backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
|
|
3960
|
+
borderWidth: '1px',
|
|
3961
|
+
borderStyle: 'solid',
|
|
3962
|
+
borderColor: isDarkMode ? 'color.gray.700' : 'color.gray.200',
|
|
3963
|
+
transition: 'all 0.2s ease',
|
|
3964
|
+
_hover: {
|
|
3965
|
+
borderColor: isDarkMode ? 'color.gray.600' : 'color.gray.300'
|
|
3966
|
+
}
|
|
3967
|
+
},
|
|
3968
|
+
elevated: {
|
|
3969
|
+
backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
|
|
3970
|
+
boxShadow: isDarkMode ? '0px 2px 8px rgba(0, 0, 0, 0.2)' : '0px 2px 8px rgba(0, 0, 0, 0.08)',
|
|
3971
|
+
border: 'none',
|
|
3972
|
+
transition: 'all 0.2s ease',
|
|
3973
|
+
_hover: {
|
|
3974
|
+
boxShadow: isDarkMode ? '0px 4px 12px rgba(0, 0, 0, 0.25)' : '0px 4px 12px rgba(0, 0, 0, 0.12)',
|
|
3975
|
+
transform: 'translateY(-2px)'
|
|
3976
|
+
}
|
|
3976
3977
|
}
|
|
3977
|
-
}
|
|
3978
|
+
};
|
|
3978
3979
|
};
|
|
3979
3980
|
/**
|
|
3980
3981
|
* Function to get default styles for Card components
|
|
3981
|
-
* @param theme - Theme object
|
|
3982
|
+
* @param theme - Theme object from useTheme hook
|
|
3982
3983
|
*/
|
|
3983
|
-
var getDefaultCardStyles =
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
backgroundColor: 'color.gray.800',
|
|
3991
|
-
color: 'color.gray.100'
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
borderBottomColor: 'color.gray.700'
|
|
4001
|
-
}
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
borderTopWidth: '1px',
|
|
4012
|
-
borderTopStyle: 'solid',
|
|
4013
|
-
borderTopColor: 'color.gray.200',
|
|
4014
|
-
'@media (prefers-color-scheme: dark)': {
|
|
4015
|
-
borderTopColor: 'color.gray.700'
|
|
3984
|
+
var getDefaultCardStyles = theme => {
|
|
3985
|
+
var {
|
|
3986
|
+
themeMode
|
|
3987
|
+
} = theme;
|
|
3988
|
+
var isDarkMode = themeMode === 'dark';
|
|
3989
|
+
return {
|
|
3990
|
+
container: {
|
|
3991
|
+
backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
|
|
3992
|
+
color: isDarkMode ? 'color.gray.100' : 'color.gray.900',
|
|
3993
|
+
borderRadius: '8px',
|
|
3994
|
+
overflow: 'hidden',
|
|
3995
|
+
transition: 'all 0.2s ease'
|
|
3996
|
+
},
|
|
3997
|
+
header: {
|
|
3998
|
+
padding: '16px',
|
|
3999
|
+
borderBottomWidth: '1px',
|
|
4000
|
+
borderBottomStyle: 'solid',
|
|
4001
|
+
borderBottomColor: isDarkMode ? 'color.gray.700' : 'color.gray.200'
|
|
4002
|
+
},
|
|
4003
|
+
content: {
|
|
4004
|
+
padding: '16px',
|
|
4005
|
+
color: isDarkMode ? 'color.gray.100' : 'color.gray.900'
|
|
4006
|
+
},
|
|
4007
|
+
footer: {
|
|
4008
|
+
padding: '16px',
|
|
4009
|
+
borderTopWidth: '1px',
|
|
4010
|
+
borderTopStyle: 'solid',
|
|
4011
|
+
borderTopColor: isDarkMode ? 'color.gray.700' : 'color.gray.200'
|
|
4016
4012
|
}
|
|
4017
|
-
}
|
|
4018
|
-
}
|
|
4013
|
+
};
|
|
4014
|
+
};
|
|
4019
4015
|
|
|
4020
4016
|
var CardContext = /*#__PURE__*/createContext({});
|
|
4021
4017
|
var useCardContext = () => {
|
|
4022
4018
|
return useContext(CardContext);
|
|
4023
4019
|
};
|
|
4024
4020
|
|
|
4025
|
-
var _excluded$
|
|
4026
|
-
_excluded2$
|
|
4027
|
-
_excluded3$
|
|
4028
|
-
_excluded4$3 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style"];
|
|
4021
|
+
var _excluded$b = ["children", "views", "style", "themeMode"],
|
|
4022
|
+
_excluded2$4 = ["children", "views", "style", "themeMode"],
|
|
4023
|
+
_excluded3$4 = ["children", "views", "style", "themeMode"],
|
|
4024
|
+
_excluded4$3 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style", "themeMode"];
|
|
4029
4025
|
var CardHeader = _ref => {
|
|
4030
4026
|
var _contextStyles$header;
|
|
4031
4027
|
var {
|
|
4032
4028
|
children,
|
|
4033
4029
|
style
|
|
4034
4030
|
} = _ref,
|
|
4035
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4031
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
4036
4032
|
var theme = useTheme();
|
|
4037
4033
|
var {
|
|
4038
4034
|
styles: contextStyles
|
|
4039
4035
|
} = useCardContext();
|
|
4040
|
-
var defaultStyles = getDefaultCardStyles().header;
|
|
4036
|
+
var defaultStyles = getDefaultCardStyles(theme).header;
|
|
4041
4037
|
// Merge styles: Default < Context Override < Direct Props/Style
|
|
4042
4038
|
var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.header, props, {
|
|
4043
4039
|
style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$header = contextStyles.header) == null ? void 0 : _contextStyles$header.style, style)
|
|
@@ -4050,12 +4046,12 @@ var CardContent = _ref2 => {
|
|
|
4050
4046
|
children,
|
|
4051
4047
|
style
|
|
4052
4048
|
} = _ref2,
|
|
4053
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
4049
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
|
|
4054
4050
|
var theme = useTheme();
|
|
4055
4051
|
var {
|
|
4056
4052
|
styles: contextStyles
|
|
4057
4053
|
} = useCardContext();
|
|
4058
|
-
var defaultStyles = getDefaultCardStyles().content;
|
|
4054
|
+
var defaultStyles = getDefaultCardStyles(theme).content;
|
|
4059
4055
|
// Merge styles: Default < Context Override < Direct Props/Style
|
|
4060
4056
|
var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.content, props, {
|
|
4061
4057
|
style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$conten = contextStyles.content) == null ? void 0 : _contextStyles$conten.style, style)
|
|
@@ -4068,12 +4064,12 @@ var CardFooter = _ref3 => {
|
|
|
4068
4064
|
children,
|
|
4069
4065
|
style
|
|
4070
4066
|
} = _ref3,
|
|
4071
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
4067
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
|
|
4072
4068
|
var theme = useTheme();
|
|
4073
4069
|
var {
|
|
4074
4070
|
styles: contextStyles
|
|
4075
4071
|
} = useCardContext();
|
|
4076
|
-
var defaultStyles = getDefaultCardStyles().footer;
|
|
4072
|
+
var defaultStyles = getDefaultCardStyles(theme).footer;
|
|
4077
4073
|
// Merge styles: Default < Context Override < Direct Props/Style
|
|
4078
4074
|
var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.footer, props, {
|
|
4079
4075
|
style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$footer = contextStyles.footer) == null ? void 0 : _contextStyles$footer.style, style)
|
|
@@ -4091,11 +4087,12 @@ var CardView = _ref4 => {
|
|
|
4091
4087
|
footer,
|
|
4092
4088
|
isFullWidth = false,
|
|
4093
4089
|
views,
|
|
4094
|
-
style
|
|
4090
|
+
style,
|
|
4091
|
+
themeMode: elementMode
|
|
4095
4092
|
} = _ref4,
|
|
4096
4093
|
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$3);
|
|
4097
4094
|
var theme = useTheme();
|
|
4098
|
-
var defaultStyles = getDefaultCardStyles();
|
|
4095
|
+
var defaultStyles = getDefaultCardStyles(theme);
|
|
4099
4096
|
// Prepare context value, merging default styles with user's `views` overrides
|
|
4100
4097
|
var contextValue = useMemo(() => ({
|
|
4101
4098
|
styles: {
|
|
@@ -4108,12 +4105,18 @@ var CardView = _ref4 => {
|
|
|
4108
4105
|
// Determine if we have explicit Card.Header, Card.Content, Card.Footer components
|
|
4109
4106
|
// or if we need to wrap children in a default layout
|
|
4110
4107
|
var hasExplicitStructure = React.Children.toArray(children).some(child => /*#__PURE__*/React.isValidElement(child) && (child.type === CardHeader || child.type === CardContent || child.type === CardFooter));
|
|
4108
|
+
// Get the appropriate variant styles based on theme mode
|
|
4109
|
+
var {
|
|
4110
|
+
themeMode
|
|
4111
|
+
} = theme;
|
|
4112
|
+
var currentThemeMode = elementMode || themeMode;
|
|
4113
|
+
var variantStyles = getCardVariants(currentThemeMode)[variant];
|
|
4111
4114
|
// Merge styles for the root element
|
|
4112
4115
|
var mergedRootProps = Object.assign({
|
|
4113
4116
|
width: isFullWidth ? '100%' : 'auto',
|
|
4114
4117
|
borderRadius: CardShapes[shape],
|
|
4115
4118
|
overflow: 'hidden'
|
|
4116
|
-
},
|
|
4119
|
+
}, variantStyles, contextValue.styles.container, props, {
|
|
4117
4120
|
style: Object.assign({}, (_contextValue$styles$ = contextValue.styles.container) == null ? void 0 : _contextValue$styles$.style, style)
|
|
4118
4121
|
});
|
|
4119
4122
|
return /*#__PURE__*/React.createElement(CardContext.Provider, {
|
|
@@ -4424,19 +4427,19 @@ var useCarouselContext = () => {
|
|
|
4424
4427
|
return context;
|
|
4425
4428
|
};
|
|
4426
4429
|
|
|
4427
|
-
var _excluded$
|
|
4428
|
-
_excluded2$
|
|
4429
|
-
_excluded3$
|
|
4430
|
+
var _excluded$c = ["children", "isActive", "views"],
|
|
4431
|
+
_excluded2$5 = ["views", "children"],
|
|
4432
|
+
_excluded3$5 = ["views", "children"],
|
|
4430
4433
|
_excluded4$4 = ["children", "views"],
|
|
4431
4434
|
_excluded5$1 = ["children", "views", "style"],
|
|
4432
|
-
_excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views"];
|
|
4435
|
+
_excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views", "themeMode"];
|
|
4433
4436
|
var CarouselSlide = _ref => {
|
|
4434
4437
|
var {
|
|
4435
4438
|
children,
|
|
4436
4439
|
isActive,
|
|
4437
4440
|
views
|
|
4438
4441
|
} = _ref,
|
|
4439
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4442
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
4440
4443
|
return /*#__PURE__*/React.createElement(View, Object.assign({
|
|
4441
4444
|
flexShrink: 0,
|
|
4442
4445
|
width: "100%",
|
|
@@ -4452,7 +4455,7 @@ var CarouselPreviousComponent = _ref2 => {
|
|
|
4452
4455
|
children // Allow custom content/icon
|
|
4453
4456
|
// Spread remaining ButtonProps
|
|
4454
4457
|
} = _ref2,
|
|
4455
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
4458
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$5);
|
|
4456
4459
|
var {
|
|
4457
4460
|
goToPrevious,
|
|
4458
4461
|
canGoPrevious,
|
|
@@ -4475,7 +4478,7 @@ var CarouselNextComponent = _ref3 => {
|
|
|
4475
4478
|
views,
|
|
4476
4479
|
children
|
|
4477
4480
|
} = _ref3,
|
|
4478
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
4481
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$5);
|
|
4479
4482
|
var {
|
|
4480
4483
|
goToNext,
|
|
4481
4484
|
canGoNext,
|
|
@@ -5360,7 +5363,7 @@ var PieChart = _ref => {
|
|
|
5360
5363
|
})));
|
|
5361
5364
|
};
|
|
5362
5365
|
|
|
5363
|
-
var _excluded$
|
|
5366
|
+
var _excluded$d = ["type", "data", "dataPoints", "title", "showLegend", "legendPosition", "showGrid", "showTooltips", "animated", "animationDuration", "responsive", "aspectRatio", "width", "height", "views", "onDataPointClick", "onSeriesClick", "isLoading", "error", "noData", "loadingIndicator", "errorIndicator", "noDataIndicator", "aria-label", "themeMode"];
|
|
5364
5367
|
var ChartView = _ref => {
|
|
5365
5368
|
var {
|
|
5366
5369
|
type,
|
|
@@ -5388,7 +5391,7 @@ var ChartView = _ref => {
|
|
|
5388
5391
|
noDataIndicator,
|
|
5389
5392
|
'aria-label': ariaLabel
|
|
5390
5393
|
} = _ref,
|
|
5391
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5394
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
5392
5395
|
// Use chart state hook
|
|
5393
5396
|
var {
|
|
5394
5397
|
animationProgress,
|
|
@@ -5718,12 +5721,12 @@ var calculateMenuPosition = function calculateMenuPosition(x, y, menuWidth, menu
|
|
|
5718
5721
|
};
|
|
5719
5722
|
};
|
|
5720
5723
|
|
|
5721
|
-
var _excluded$
|
|
5722
|
-
_excluded2$
|
|
5723
|
-
_excluded3$
|
|
5724
|
+
var _excluded$e = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
|
|
5725
|
+
_excluded2$6 = ["items", "children", "position", "side", "align", "views", "style"],
|
|
5726
|
+
_excluded3$6 = ["item", "children", "onSelect", "isDisabled", "views"],
|
|
5724
5727
|
_excluded4$5 = ["views"],
|
|
5725
5728
|
_excluded5$2 = ["views"],
|
|
5726
|
-
_excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views"];
|
|
5729
|
+
_excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views", "themeMode"];
|
|
5727
5730
|
// Create context for the ContextMenu
|
|
5728
5731
|
var ContextMenuContext = /*#__PURE__*/createContext({
|
|
5729
5732
|
isOpen: false,
|
|
@@ -5774,7 +5777,7 @@ var ContextMenuTrigger = _ref2 => {
|
|
|
5774
5777
|
isDisabled = false,
|
|
5775
5778
|
views
|
|
5776
5779
|
} = _ref2,
|
|
5777
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
5780
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$e);
|
|
5778
5781
|
var {
|
|
5779
5782
|
triggerRef,
|
|
5780
5783
|
contentId,
|
|
@@ -5828,7 +5831,7 @@ var ContextMenuContent = _ref3 => {
|
|
|
5828
5831
|
views,
|
|
5829
5832
|
style // Capture user-provided style
|
|
5830
5833
|
} = _ref3,
|
|
5831
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
5834
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$6);
|
|
5832
5835
|
var {
|
|
5833
5836
|
isOpen,
|
|
5834
5837
|
position: contextPosition,
|
|
@@ -5899,7 +5902,7 @@ var ContextMenuItem = _ref4 => {
|
|
|
5899
5902
|
isDisabled = false,
|
|
5900
5903
|
views
|
|
5901
5904
|
} = _ref4,
|
|
5902
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
5905
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$6);
|
|
5903
5906
|
var {
|
|
5904
5907
|
activeSubmenuId,
|
|
5905
5908
|
setActiveSubmenuId,
|
|
@@ -6057,7 +6060,7 @@ var ContextMenuView = _ref7 => {
|
|
|
6057
6060
|
}));
|
|
6058
6061
|
};
|
|
6059
6062
|
|
|
6060
|
-
var _excluded$
|
|
6063
|
+
var _excluded$f = ["children", "items", "size", "variant", "disableNativeContextMenu", "onOpenChange", "views"];
|
|
6061
6064
|
/**
|
|
6062
6065
|
* ContextMenu component for displaying a custom context menu on right-click.
|
|
6063
6066
|
* Supports both data-driven approach (with items prop) and compound component pattern.
|
|
@@ -6072,7 +6075,7 @@ var ContextMenuComponent = _ref => {
|
|
|
6072
6075
|
onOpenChange,
|
|
6073
6076
|
views
|
|
6074
6077
|
} = _ref,
|
|
6075
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6078
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
6076
6079
|
var state = useContextMenuState({
|
|
6077
6080
|
size,
|
|
6078
6081
|
variant,
|
|
@@ -6124,15 +6127,15 @@ ContextMenu.Item = ContextMenuItem;
|
|
|
6124
6127
|
ContextMenu.Divider = ContextMenuDivider;
|
|
6125
6128
|
ContextMenu.Separator = ContextMenuSeparator; // Add the Separator component
|
|
6126
6129
|
|
|
6127
|
-
var _excluded$
|
|
6128
|
-
_excluded2$
|
|
6130
|
+
var _excluded$g = ["src", "color", "views", "themeMode"],
|
|
6131
|
+
_excluded2$7 = ["path"];
|
|
6129
6132
|
var FileSVG = _ref => {
|
|
6130
6133
|
var {
|
|
6131
6134
|
src,
|
|
6132
6135
|
color,
|
|
6133
6136
|
views
|
|
6134
6137
|
} = _ref,
|
|
6135
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6138
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
6136
6139
|
var {
|
|
6137
6140
|
getColor,
|
|
6138
6141
|
themeMode
|
|
@@ -6155,7 +6158,7 @@ var FileImage = _ref2 => {
|
|
|
6155
6158
|
var {
|
|
6156
6159
|
path
|
|
6157
6160
|
} = _ref2,
|
|
6158
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
6161
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$7);
|
|
6159
6162
|
return /*#__PURE__*/React.createElement(Image, Object.assign({
|
|
6160
6163
|
src: path
|
|
6161
6164
|
}, props));
|
|
@@ -6206,7 +6209,7 @@ var useItemState = () => {
|
|
|
6206
6209
|
};
|
|
6207
6210
|
};
|
|
6208
6211
|
|
|
6209
|
-
var _excluded$
|
|
6212
|
+
var _excluded$h = ["children", "views"];
|
|
6210
6213
|
var HelperText = _ref => {
|
|
6211
6214
|
var {
|
|
6212
6215
|
children,
|
|
@@ -6214,7 +6217,7 @@ var HelperText = _ref => {
|
|
|
6214
6217
|
helperText: {}
|
|
6215
6218
|
}
|
|
6216
6219
|
} = _ref,
|
|
6217
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6220
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
6218
6221
|
return /*#__PURE__*/React.createElement(Text
|
|
6219
6222
|
// Typography properties
|
|
6220
6223
|
, Object.assign({
|
|
@@ -6240,7 +6243,7 @@ var HelperText = _ref => {
|
|
|
6240
6243
|
}, views['helperText'], props), children);
|
|
6241
6244
|
};
|
|
6242
6245
|
|
|
6243
|
-
var _excluded$
|
|
6246
|
+
var _excluded$i = ["children", "helperText", "error", "views"];
|
|
6244
6247
|
var FieldContainer = _ref => {
|
|
6245
6248
|
var {
|
|
6246
6249
|
children,
|
|
@@ -6248,7 +6251,7 @@ var FieldContainer = _ref => {
|
|
|
6248
6251
|
error = false,
|
|
6249
6252
|
views
|
|
6250
6253
|
} = _ref,
|
|
6251
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6254
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
6252
6255
|
return /*#__PURE__*/React.createElement(Vertical
|
|
6253
6256
|
// Layout properties
|
|
6254
6257
|
, Object.assign({
|
|
@@ -6385,7 +6388,7 @@ var PaddingWithoutLabel = {
|
|
|
6385
6388
|
paddingRight: '16px'
|
|
6386
6389
|
};
|
|
6387
6390
|
|
|
6388
|
-
var _excluded$
|
|
6391
|
+
var _excluded$j = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "showLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "views"];
|
|
6389
6392
|
var FieldContent = _ref => {
|
|
6390
6393
|
var {
|
|
6391
6394
|
shadow,
|
|
@@ -6403,7 +6406,7 @@ var FieldContent = _ref => {
|
|
|
6403
6406
|
pickerBox: {}
|
|
6404
6407
|
}
|
|
6405
6408
|
} = _ref,
|
|
6406
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6409
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
6407
6410
|
// Determine if the field is in an interactive state
|
|
6408
6411
|
var isInteractive = (isHovered || isFocused) && !isDisabled;
|
|
6409
6412
|
// Set the appropriate color based on state
|
|
@@ -6432,12 +6435,12 @@ var FieldContent = _ref => {
|
|
|
6432
6435
|
}, showLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], views['box'], props), children);
|
|
6433
6436
|
};
|
|
6434
6437
|
|
|
6435
|
-
var _excluded$
|
|
6438
|
+
var _excluded$k = ["children"];
|
|
6436
6439
|
var FieldIcons = _ref => {
|
|
6437
6440
|
var {
|
|
6438
6441
|
children
|
|
6439
6442
|
} = _ref,
|
|
6440
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6443
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
6441
6444
|
return /*#__PURE__*/React.createElement(Center, Object.assign({
|
|
6442
6445
|
gap: 10,
|
|
6443
6446
|
right: 16,
|
|
@@ -6489,7 +6492,7 @@ var HeadingSizes$1 = {
|
|
|
6489
6492
|
}
|
|
6490
6493
|
};
|
|
6491
6494
|
|
|
6492
|
-
var _excluded$
|
|
6495
|
+
var _excluded$l = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
|
|
6493
6496
|
var LabelView = _ref => {
|
|
6494
6497
|
var {
|
|
6495
6498
|
children,
|
|
@@ -6505,7 +6508,7 @@ var LabelView = _ref => {
|
|
|
6505
6508
|
size = 'sm'
|
|
6506
6509
|
// The fontSize prop for the Element is determined by the 'size' prop passed to LabelView.
|
|
6507
6510
|
} = _ref,
|
|
6508
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6511
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
6509
6512
|
// The fontStyle prop toggles between 'italic' and 'normal' based on the 'isItalic' boolean prop.
|
|
6510
6513
|
var headingStyles = heading ? HeadingSizes$1[heading] : {};
|
|
6511
6514
|
// fontWeight is derived from the Typography module, ensuring consistent font weighting across the app.
|
|
@@ -6537,7 +6540,7 @@ React.createElement(LabelView, Object.assign({}, props))
|
|
|
6537
6540
|
var Label = LabelComponent;
|
|
6538
6541
|
// Export the 'LabelComponent' as 'Label' to be reused throughout the project.
|
|
6539
6542
|
|
|
6540
|
-
var _excluded$
|
|
6543
|
+
var _excluded$m = ["children", "size", "error", "color", "views", "helperText"];
|
|
6541
6544
|
var FieldLabel = _ref => {
|
|
6542
6545
|
var {
|
|
6543
6546
|
children,
|
|
@@ -6548,7 +6551,7 @@ var FieldLabel = _ref => {
|
|
|
6548
6551
|
label: {}
|
|
6549
6552
|
}
|
|
6550
6553
|
} = _ref,
|
|
6551
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6554
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
6552
6555
|
return /*#__PURE__*/React.createElement(Label
|
|
6553
6556
|
// Position properties
|
|
6554
6557
|
, Object.assign({
|
|
@@ -6569,12 +6572,12 @@ var FieldLabel = _ref => {
|
|
|
6569
6572
|
}, views['label'], props), children);
|
|
6570
6573
|
};
|
|
6571
6574
|
|
|
6572
|
-
var _excluded$
|
|
6575
|
+
var _excluded$n = ["children"];
|
|
6573
6576
|
var FieldWrapper = _ref => {
|
|
6574
6577
|
var {
|
|
6575
6578
|
children
|
|
6576
6579
|
} = _ref,
|
|
6577
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6580
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
6578
6581
|
return /*#__PURE__*/React.createElement(Vertical
|
|
6579
6582
|
// Layout properties
|
|
6580
6583
|
, Object.assign({
|
|
@@ -6607,9 +6610,9 @@ var IconSizes$2 = {
|
|
|
6607
6610
|
xl: 28
|
|
6608
6611
|
};
|
|
6609
6612
|
|
|
6610
|
-
var _excluded$
|
|
6611
|
-
_excluded2$
|
|
6612
|
-
_excluded3$
|
|
6613
|
+
var _excluded$o = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
6614
|
+
_excluded2$8 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
6615
|
+
_excluded3$7 = ["option", "size", "removeOption"],
|
|
6613
6616
|
_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"];
|
|
6614
6617
|
/**
|
|
6615
6618
|
* Item Component
|
|
@@ -6625,7 +6628,7 @@ var Item = _ref => {
|
|
|
6625
6628
|
callback = () => {},
|
|
6626
6629
|
style
|
|
6627
6630
|
} = _ref,
|
|
6628
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6631
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
6629
6632
|
// Handles the click event on an option by invoking the callback with the selected option's value
|
|
6630
6633
|
var handleOptionClick = option => callback(option);
|
|
6631
6634
|
// Toggles the hover state on the item
|
|
@@ -6730,7 +6733,7 @@ var HiddenSelect = _ref4 => {
|
|
|
6730
6733
|
isReadOnly = false,
|
|
6731
6734
|
options = []
|
|
6732
6735
|
} = _ref4,
|
|
6733
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$
|
|
6736
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$8);
|
|
6734
6737
|
var handleChange = event => {
|
|
6735
6738
|
if (onChange) onChange(event);
|
|
6736
6739
|
};
|
|
@@ -6835,7 +6838,7 @@ var MultiSelect = _ref6 => {
|
|
|
6835
6838
|
size = 'md',
|
|
6836
6839
|
removeOption = () => {}
|
|
6837
6840
|
} = _ref6,
|
|
6838
|
-
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$
|
|
6841
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$7);
|
|
6839
6842
|
var handleClick = () => removeOption(option);
|
|
6840
6843
|
return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
6841
6844
|
gap: 8,
|
|
@@ -7124,7 +7127,7 @@ var ColorSchemes = {
|
|
|
7124
7127
|
}
|
|
7125
7128
|
};
|
|
7126
7129
|
|
|
7127
|
-
var _excluded$
|
|
7130
|
+
var _excluded$p = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "views"];
|
|
7128
7131
|
var SwitchContent = props => /*#__PURE__*/React.createElement(Input, Object.assign({
|
|
7129
7132
|
type: "checkbox"
|
|
7130
7133
|
}, props));
|
|
@@ -7153,7 +7156,7 @@ var SwitchView = _ref => {
|
|
|
7153
7156
|
label: {}
|
|
7154
7157
|
}
|
|
7155
7158
|
} = _ref,
|
|
7156
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7159
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
7157
7160
|
var handleToggle = event => {
|
|
7158
7161
|
if (!isReadOnly) {
|
|
7159
7162
|
setValue(!value);
|
|
@@ -7277,7 +7280,7 @@ var useTextAreaState = _ref => {
|
|
|
7277
7280
|
// Export of the useTextAreaState hook for external usage.
|
|
7278
7281
|
};
|
|
7279
7282
|
|
|
7280
|
-
var _excluded$
|
|
7283
|
+
var _excluded$q = ["id", "name", "hint", "error", "value", "label", "shadow", "helperText", "placeholder", "size", "shape", "variant", "isHovered", "isFocused", "isEditable", "isReadOnly", "isDisabled", "isAutoFocus", "isMultiline", "maxRows", "maxCols", "onBlur", "onChange", "onFocus", "setHint", "setValue", "setIsFocused", "setIsHovered", "views"];
|
|
7281
7284
|
var TextAreaView = _ref => {
|
|
7282
7285
|
var {
|
|
7283
7286
|
id,
|
|
@@ -7303,7 +7306,6 @@ var TextAreaView = _ref => {
|
|
|
7303
7306
|
onBlur = () => {},
|
|
7304
7307
|
onChange,
|
|
7305
7308
|
onFocus,
|
|
7306
|
-
onChangeText,
|
|
7307
7309
|
setHint = () => {},
|
|
7308
7310
|
setValue = () => {},
|
|
7309
7311
|
setIsFocused = () => {},
|
|
@@ -7313,7 +7315,7 @@ var TextAreaView = _ref => {
|
|
|
7313
7315
|
helperText: {}
|
|
7314
7316
|
}
|
|
7315
7317
|
} = _ref,
|
|
7316
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7318
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
7317
7319
|
var showLabel = !!(isFocused && label);
|
|
7318
7320
|
/**
|
|
7319
7321
|
* Styles for the textarea field
|
|
@@ -7358,11 +7360,9 @@ var TextAreaView = _ref => {
|
|
|
7358
7360
|
var handleChange = event => {
|
|
7359
7361
|
if (typeof event === 'string') {
|
|
7360
7362
|
setValue(event);
|
|
7361
|
-
if (onChangeText) onChangeText(event);
|
|
7362
7363
|
if (onChange) onChange(event);
|
|
7363
7364
|
} else {
|
|
7364
7365
|
setValue(event.target.value);
|
|
7365
|
-
if (onChangeText) onChangeText(event.target.value);
|
|
7366
7366
|
if (onChange) onChange(event.target.value);
|
|
7367
7367
|
}
|
|
7368
7368
|
};
|
|
@@ -7401,15 +7401,13 @@ var TextAreaView = _ref => {
|
|
|
7401
7401
|
readOnly: isReadOnly,
|
|
7402
7402
|
disabled: isDisabled,
|
|
7403
7403
|
autoFocus: isAutoFocus,
|
|
7404
|
-
editable: isEditable,
|
|
7404
|
+
editable: !!isEditable.toString(),
|
|
7405
7405
|
placeholder: hint,
|
|
7406
7406
|
onBlur: handleBlur,
|
|
7407
7407
|
onFocus: handleFocus,
|
|
7408
|
-
multiline: isMultiline
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
onChangeText: handleChange
|
|
7412
|
-
}, views == null ? void 0 : views.textarea)))));
|
|
7408
|
+
multiline: !!isMultiline.toString(),
|
|
7409
|
+
onChange: handleChange
|
|
7410
|
+
}, fieldStyles, views == null ? void 0 : views.textarea)))));
|
|
7413
7411
|
};
|
|
7414
7412
|
|
|
7415
7413
|
// Defines the TextAreaComponent as a functional component that accepts TextAreaProps for type safety and structure.
|
|
@@ -7456,7 +7454,7 @@ var useTextFieldState = _ref => {
|
|
|
7456
7454
|
};
|
|
7457
7455
|
};
|
|
7458
7456
|
|
|
7459
|
-
var _excluded$
|
|
7457
|
+
var _excluded$r = ["id", "name", "label", "hint", "value", "onChange", "left", "right", "helperText", "placeholder", "onChangeText", "shadow", "views", "size", "shape", "variant", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setValue", "onClick", "onFocus", "onBlur", "themeMode"];
|
|
7460
7458
|
/**
|
|
7461
7459
|
* Input component for text fields
|
|
7462
7460
|
*/
|
|
@@ -7502,7 +7500,7 @@ var TextFieldView = _ref => {
|
|
|
7502
7500
|
onBlur = () => {},
|
|
7503
7501
|
themeMode: elementMode
|
|
7504
7502
|
} = _ref,
|
|
7505
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7503
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
7506
7504
|
var {
|
|
7507
7505
|
getColor,
|
|
7508
7506
|
themeMode
|
|
@@ -7760,7 +7758,7 @@ var StateStyles = {
|
|
|
7760
7758
|
}
|
|
7761
7759
|
};
|
|
7762
7760
|
|
|
7763
|
-
var _excluded$
|
|
7761
|
+
var _excluded$s = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "labelPosition", "size", "error", "isSelected", "isHovered", "isDisabled", "isReadOnly", "isIndeterminate", "defaultIsSelected", "setIsSelected", "setIsHovered", "views", "infoText", "helperText"];
|
|
7764
7762
|
var CheckboxView = _ref => {
|
|
7765
7763
|
var {
|
|
7766
7764
|
id,
|
|
@@ -7787,7 +7785,7 @@ var CheckboxView = _ref => {
|
|
|
7787
7785
|
},
|
|
7788
7786
|
infoText
|
|
7789
7787
|
} = _ref,
|
|
7790
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7788
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
7791
7789
|
var handleHover = () => setIsHovered(!isHovered);
|
|
7792
7790
|
var handleChange = () => {
|
|
7793
7791
|
if (!isReadOnly && !isDisabled) {
|
|
@@ -9373,11 +9371,11 @@ var IconSizes$4 = {
|
|
|
9373
9371
|
xl: 16
|
|
9374
9372
|
};
|
|
9375
9373
|
|
|
9376
|
-
var _excluded$
|
|
9377
|
-
_excluded2$
|
|
9378
|
-
_excluded3$
|
|
9374
|
+
var _excluded$t = ["size"],
|
|
9375
|
+
_excluded2$9 = ["size"],
|
|
9376
|
+
_excluded3$8 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "onChange", "onBlur", "setHide", "setNewOptions", "setIsHovered", "setIsFocused", "setValue", "views", "themeMode"];
|
|
9379
9377
|
var CountryList = _ref => {
|
|
9380
|
-
var props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9378
|
+
var props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
9381
9379
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
9382
9380
|
as: "ul"
|
|
9383
9381
|
}, props));
|
|
@@ -9386,7 +9384,7 @@ var CountrySelector = props => (/*#__PURE__*/React.createElement(Input, Object.a
|
|
|
9386
9384
|
type: "country"
|
|
9387
9385
|
}, props)));
|
|
9388
9386
|
var CountryItem = _ref2 => {
|
|
9389
|
-
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
9387
|
+
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$9);
|
|
9390
9388
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
9391
9389
|
as: "li"
|
|
9392
9390
|
}, props));
|
|
@@ -9488,7 +9486,7 @@ var CountryPickerView = _ref5 => {
|
|
|
9488
9486
|
},
|
|
9489
9487
|
themeMode: elementMode
|
|
9490
9488
|
} = _ref5,
|
|
9491
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$
|
|
9489
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$8);
|
|
9492
9490
|
var {
|
|
9493
9491
|
getColor,
|
|
9494
9492
|
themeMode
|
|
@@ -9616,7 +9614,7 @@ var useDatePickerState = () => {
|
|
|
9616
9614
|
};
|
|
9617
9615
|
};
|
|
9618
9616
|
|
|
9619
|
-
var _excluded$
|
|
9617
|
+
var _excluded$u = ["id", "icon", "name", "label", "date", "children", "helperText", "shadow", "size", "variant", "shape", "views", "error", "isHovered", "isFocused", "isDisabled", "isReadOnly", "setDate", "setIsFocused", "setIsHovered", "onChange", "onChangeText"];
|
|
9620
9618
|
var DatePickerContent = props => /*#__PURE__*/React.createElement(Input, Object.assign({
|
|
9621
9619
|
type: "date"
|
|
9622
9620
|
}, props));
|
|
@@ -9649,7 +9647,7 @@ var DatePickerView = _ref => {
|
|
|
9649
9647
|
onChange,
|
|
9650
9648
|
onChangeText
|
|
9651
9649
|
} = _ref,
|
|
9652
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9650
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
9653
9651
|
var showLabel = !!(isFocused && label);
|
|
9654
9652
|
var handleHover = () => setIsHovered(!isHovered);
|
|
9655
9653
|
var handleFocus = () => setIsFocused(true);
|
|
@@ -9736,8 +9734,8 @@ var usePasswordState = props => {
|
|
|
9736
9734
|
}, props, textFieldStates);
|
|
9737
9735
|
};
|
|
9738
9736
|
|
|
9739
|
-
var _excluded$
|
|
9740
|
-
_excluded2$
|
|
9737
|
+
var _excluded$v = ["visibleIcon", "hiddenIcon"],
|
|
9738
|
+
_excluded2$a = ["isVisible", "setIsVisible"];
|
|
9741
9739
|
var PasswordComponent = _ref => {
|
|
9742
9740
|
var {
|
|
9743
9741
|
visibleIcon = /*#__PURE__*/React.createElement(OpenEyeIcon, {
|
|
@@ -9747,13 +9745,13 @@ var PasswordComponent = _ref => {
|
|
|
9747
9745
|
widthHeight: 14
|
|
9748
9746
|
})
|
|
9749
9747
|
} = _ref,
|
|
9750
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9748
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
9751
9749
|
var _usePasswordState = usePasswordState(props),
|
|
9752
9750
|
{
|
|
9753
9751
|
isVisible,
|
|
9754
9752
|
setIsVisible
|
|
9755
9753
|
} = _usePasswordState,
|
|
9756
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
9754
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$a);
|
|
9757
9755
|
return /*#__PURE__*/React.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
9758
9756
|
type: isVisible ? 'text' : 'password',
|
|
9759
9757
|
isClearable: false,
|
|
@@ -9801,7 +9799,7 @@ var useComboBoxState = (items, placeholder, searchPlaceholder) => {
|
|
|
9801
9799
|
};
|
|
9802
9800
|
};
|
|
9803
9801
|
|
|
9804
|
-
var _excluded$
|
|
9802
|
+
var _excluded$w = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "views", "isDropdownVisible", "setIsDropdownVisible"];
|
|
9805
9803
|
// Defines the functional component 'ComboBoxView' with destructured props.
|
|
9806
9804
|
var ComboBoxView = _ref => {
|
|
9807
9805
|
var {
|
|
@@ -9826,7 +9824,7 @@ var ComboBoxView = _ref => {
|
|
|
9826
9824
|
setIsDropdownVisible
|
|
9827
9825
|
// Collects all further props not destructured explicitly.
|
|
9828
9826
|
} = _ref,
|
|
9829
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9827
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
|
|
9830
9828
|
// Sets up an effect to handle clicking outside the dropdown to close it.
|
|
9831
9829
|
useEffect(() => {
|
|
9832
9830
|
var handleClickOutside = event => {
|
|
@@ -9938,7 +9936,7 @@ var ComboBoxView = _ref => {
|
|
|
9938
9936
|
}))))))))))));
|
|
9939
9937
|
};
|
|
9940
9938
|
|
|
9941
|
-
var _excluded$
|
|
9939
|
+
var _excluded$x = ["id", "name", "items", "placeholder", "searchPlaceholder"];
|
|
9942
9940
|
// Defines the ComboBoxComponent functional component with ComboBoxProps
|
|
9943
9941
|
var ComboBoxComponent = _ref => {
|
|
9944
9942
|
var {
|
|
@@ -9954,7 +9952,7 @@ var ComboBoxComponent = _ref => {
|
|
|
9954
9952
|
searchPlaceholder
|
|
9955
9953
|
// Destructures the rest of the props not explicitly defined
|
|
9956
9954
|
} = _ref,
|
|
9957
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9955
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
|
|
9958
9956
|
// Initializes ComboBox state using custom hook with items and placeholders
|
|
9959
9957
|
var state = useComboBoxState(items, placeholder, searchPlaceholder);
|
|
9960
9958
|
return (
|
|
@@ -10259,7 +10257,7 @@ var useOTPInputState = _ref => {
|
|
|
10259
10257
|
};
|
|
10260
10258
|
};
|
|
10261
10259
|
|
|
10262
|
-
var _excluded$
|
|
10260
|
+
var _excluded$y = ["id", "name", "label", "value", "length", "onChange", "onChangeText", "onComplete", "helperText", "placeholder", "shadow", "views", "size", "shape", "variant", "gap", "type", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isAutoFocus", "setValue", "setIsFocused", "setIsHovered", "inputRef", "containerRef", "mirrorSelectionStart", "mirrorSelectionEnd", "setMirrorSelectionStart", "setMirrorSelectionEnd", "handlePaste", "handleChange", "handleFocus", "handleBlur", "handleKeyDown", "stepValues", "setInputRef", "onBlur", "onClick", "onFocus"];
|
|
10263
10261
|
// Create a context for OTP input slots
|
|
10264
10262
|
var OTPInputContext = /*#__PURE__*/createContext({
|
|
10265
10263
|
slots: [],
|
|
@@ -10313,7 +10311,7 @@ var OTPInputView = _ref => {
|
|
|
10313
10311
|
onFocus = () => {}
|
|
10314
10312
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10315
10313
|
} = _ref,
|
|
10316
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
10314
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
10317
10315
|
useTheme(); // Initialize theme context
|
|
10318
10316
|
var showLabel = !!label;
|
|
10319
10317
|
// Create context value for slots
|
|
@@ -10543,7 +10541,7 @@ var OTPInputComponent = props => {
|
|
|
10543
10541
|
};
|
|
10544
10542
|
var OTPInput = OTPInputComponent;
|
|
10545
10543
|
|
|
10546
|
-
var _excluded$
|
|
10544
|
+
var _excluded$z = ["children", "autoFocus", "initFocus", "onChange"];
|
|
10547
10545
|
var FocusContext = /*#__PURE__*/createContext({
|
|
10548
10546
|
active: false,
|
|
10549
10547
|
focusNextInput: () => {},
|
|
@@ -10559,7 +10557,7 @@ var FormikForm = _ref => {
|
|
|
10559
10557
|
initFocus,
|
|
10560
10558
|
onChange = () => {}
|
|
10561
10559
|
} = _ref,
|
|
10562
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
10560
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
10563
10561
|
var formik = useFormikContext();
|
|
10564
10562
|
useEffect(() => {
|
|
10565
10563
|
onChange(formik.values);
|
|
@@ -10607,7 +10605,7 @@ var FormikForm = _ref => {
|
|
|
10607
10605
|
}, /*#__PURE__*/React.createElement(Form, Object.assign({}, props), children));
|
|
10608
10606
|
};
|
|
10609
10607
|
|
|
10610
|
-
var _excluded$
|
|
10608
|
+
var _excluded$A = ["name", "type"];
|
|
10611
10609
|
var getInputTypeProps = type => {
|
|
10612
10610
|
switch (type) {
|
|
10613
10611
|
case 'email':
|
|
@@ -10646,7 +10644,7 @@ var useFormikInput = _ref => {
|
|
|
10646
10644
|
name,
|
|
10647
10645
|
type
|
|
10648
10646
|
} = _ref,
|
|
10649
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
10647
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
|
|
10650
10648
|
var focus = useFormFocus();
|
|
10651
10649
|
var {
|
|
10652
10650
|
touched,
|
|
@@ -10690,13 +10688,13 @@ var useFormikInput = _ref => {
|
|
|
10690
10688
|
} : {});
|
|
10691
10689
|
};
|
|
10692
10690
|
|
|
10693
|
-
var _excluded$
|
|
10691
|
+
var _excluded$B = ["value"];
|
|
10694
10692
|
var CheckboxComponent$1 = props => {
|
|
10695
10693
|
var _useFormikInput = useFormikInput(props),
|
|
10696
10694
|
{
|
|
10697
10695
|
value
|
|
10698
10696
|
} = _useFormikInput,
|
|
10699
|
-
formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$
|
|
10697
|
+
formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$B);
|
|
10700
10698
|
formProps.isChecked = value;
|
|
10701
10699
|
var checkboxStates = useCheckboxState(props);
|
|
10702
10700
|
return /*#__PURE__*/React.createElement(CheckboxView, Object.assign({}, checkboxStates, formProps));
|
|
@@ -10754,11 +10752,11 @@ var TextAreaComponent$1 = props => {
|
|
|
10754
10752
|
*/
|
|
10755
10753
|
var FormikTextArea = TextAreaComponent$1;
|
|
10756
10754
|
|
|
10757
|
-
var _excluded$
|
|
10755
|
+
var _excluded$C = ["value"];
|
|
10758
10756
|
var TextFieldComponent$1 = props => {
|
|
10759
10757
|
var formProps = useFormikInput(props);
|
|
10760
10758
|
var _useTextFieldState = useTextFieldState(props),
|
|
10761
|
-
textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$
|
|
10759
|
+
textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$C);
|
|
10762
10760
|
return /*#__PURE__*/React.createElement(TextFieldView, Object.assign({}, textFieldStates, formProps));
|
|
10763
10761
|
};
|
|
10764
10762
|
/**
|
|
@@ -10766,8 +10764,8 @@ var TextFieldComponent$1 = props => {
|
|
|
10766
10764
|
*/
|
|
10767
10765
|
var FormikTextField = TextFieldComponent$1;
|
|
10768
10766
|
|
|
10769
|
-
var _excluded$
|
|
10770
|
-
_excluded2$
|
|
10767
|
+
var _excluded$D = ["visibleIcon", "hiddenIcon"],
|
|
10768
|
+
_excluded2$b = ["isVisible", "setIsVisible"];
|
|
10771
10769
|
var PasswordComponent$1 = _ref => {
|
|
10772
10770
|
var {
|
|
10773
10771
|
visibleIcon = /*#__PURE__*/React.createElement(OpenEyeIcon, {
|
|
@@ -10777,14 +10775,14 @@ var PasswordComponent$1 = _ref => {
|
|
|
10777
10775
|
widthHeight: 14
|
|
10778
10776
|
})
|
|
10779
10777
|
} = _ref,
|
|
10780
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
10778
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
|
|
10781
10779
|
var formProps = useFormikInput(props);
|
|
10782
10780
|
var _usePasswordState = usePasswordState(formProps),
|
|
10783
10781
|
{
|
|
10784
10782
|
isVisible,
|
|
10785
10783
|
setIsVisible
|
|
10786
10784
|
} = _usePasswordState,
|
|
10787
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
10785
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$b);
|
|
10788
10786
|
return /*#__PURE__*/React.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
10789
10787
|
type: isVisible ? 'text' : 'password',
|
|
10790
10788
|
isClearable: false,
|
|
@@ -10802,14 +10800,14 @@ var PasswordComponent$1 = _ref => {
|
|
|
10802
10800
|
*/
|
|
10803
10801
|
var FormikPassword = PasswordComponent$1;
|
|
10804
10802
|
|
|
10805
|
-
var _excluded$
|
|
10803
|
+
var _excluded$E = ["items", "placeholder", "searchPlaceholder"];
|
|
10806
10804
|
var ComboBoxComponent$1 = _ref => {
|
|
10807
10805
|
var {
|
|
10808
10806
|
items,
|
|
10809
10807
|
placeholder,
|
|
10810
10808
|
searchPlaceholder
|
|
10811
10809
|
} = _ref,
|
|
10812
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
10810
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
|
|
10813
10811
|
var formProps = useFormikInput(props);
|
|
10814
10812
|
var ComboBoxStates = useComboBoxState(items, placeholder, searchPlaceholder);
|
|
10815
10813
|
// Ensure the onChange function from formProps is being called when an item is selected
|
|
@@ -11033,17 +11031,22 @@ var SliderShapes = {
|
|
|
11033
11031
|
rounded: 4,
|
|
11034
11032
|
pillShaped: 24
|
|
11035
11033
|
};
|
|
11036
|
-
var
|
|
11037
|
-
|
|
11038
|
-
|
|
11039
|
-
|
|
11040
|
-
|
|
11041
|
-
|
|
11042
|
-
|
|
11043
|
-
|
|
11044
|
-
|
|
11045
|
-
|
|
11034
|
+
var getSlider = themeMode => {
|
|
11035
|
+
return {
|
|
11036
|
+
default: {
|
|
11037
|
+
backgroundColor: 'color.blueGray.200'
|
|
11038
|
+
},
|
|
11039
|
+
outline: {
|
|
11040
|
+
backgroundColor: 'transparent',
|
|
11041
|
+
borderWidth: 1,
|
|
11042
|
+
borderStyle: 'solid',
|
|
11043
|
+
borderColor: 'color.blueGray.300'
|
|
11044
|
+
}
|
|
11045
|
+
};
|
|
11046
|
+
// Add dark mode conditional styling here
|
|
11046
11047
|
};
|
|
11048
|
+
// For backward compatibility
|
|
11049
|
+
var SliderVariants = /*#__PURE__*/getSlider();
|
|
11047
11050
|
// Maps Size enum to track height/width and thumb size for the new implementation
|
|
11048
11051
|
var EnhancedSliderSizes = {
|
|
11049
11052
|
xs: {
|
|
@@ -11085,7 +11088,7 @@ var OrientationStyles = {
|
|
|
11085
11088
|
}
|
|
11086
11089
|
};
|
|
11087
11090
|
|
|
11088
|
-
var _excluded$
|
|
11091
|
+
var _excluded$F = ["min", "max", "step", "currentValue", "stepValues", "shape", "size", "variant", "orientation", "isDisabled", "showValue", "showTooltip", "colorScheme", "label", "helperText", "themeMode", "shadow", "isDragging", "isHovered", "setIsHovered", "trackRef", "thumbRef", "handleThumbMouseDown", "handleTrackMouseDown", "handleKeyDown", "thumbPositionPercent", "ariaLabel", "views"];
|
|
11089
11092
|
var SliderView = _ref => {
|
|
11090
11093
|
var _views$tooltip, _views$tooltip2;
|
|
11091
11094
|
var {
|
|
@@ -11128,7 +11131,7 @@ var SliderView = _ref => {
|
|
|
11128
11131
|
tooltip: {}
|
|
11129
11132
|
}
|
|
11130
11133
|
} = _ref,
|
|
11131
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
11134
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
|
|
11132
11135
|
var {
|
|
11133
11136
|
getColor,
|
|
11134
11137
|
themeMode
|
|
@@ -11501,7 +11504,7 @@ var hideMessage = () => {
|
|
|
11501
11504
|
useMessageStore.getState().hide();
|
|
11502
11505
|
};
|
|
11503
11506
|
|
|
11504
|
-
var Themes
|
|
11507
|
+
var Themes = {
|
|
11505
11508
|
info: {
|
|
11506
11509
|
container: {
|
|
11507
11510
|
backgroundColor: 'color.blue.200',
|
|
@@ -11599,7 +11602,7 @@ var MessageView = _ref => {
|
|
|
11599
11602
|
}
|
|
11600
11603
|
return;
|
|
11601
11604
|
}, []);
|
|
11602
|
-
var Theme = theme != null ? theme : Themes
|
|
11605
|
+
var Theme = theme != null ? theme : Themes;
|
|
11603
11606
|
var showAction = !!(action && actionText);
|
|
11604
11607
|
var containerStyle = {
|
|
11605
11608
|
borderWidth: 1,
|
|
@@ -11848,7 +11851,8 @@ var UploadView = _ref => {
|
|
|
11848
11851
|
renderError = _ref2 => {
|
|
11849
11852
|
var {
|
|
11850
11853
|
errorMessage,
|
|
11851
|
-
errorMessageProps
|
|
11854
|
+
errorMessageProps,
|
|
11855
|
+
themeMode: elementMode
|
|
11852
11856
|
} = _ref2;
|
|
11853
11857
|
return /*#__PURE__*/React.createElement(Text$1, Object.assign({
|
|
11854
11858
|
color: "red",
|
|
@@ -11999,7 +12003,7 @@ var UploadView = _ref => {
|
|
|
11999
12003
|
}, views == null ? void 0 : views.view)));
|
|
12000
12004
|
};
|
|
12001
12005
|
|
|
12002
|
-
var _excluded$
|
|
12006
|
+
var _excluded$G = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress", "fileType"];
|
|
12003
12007
|
var Uploader = _ref => {
|
|
12004
12008
|
var {
|
|
12005
12009
|
accept = '*/*',
|
|
@@ -12012,7 +12016,7 @@ var Uploader = _ref => {
|
|
|
12012
12016
|
progress = 0,
|
|
12013
12017
|
fileType
|
|
12014
12018
|
} = _ref,
|
|
12015
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12019
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$G);
|
|
12016
12020
|
var {
|
|
12017
12021
|
previewUrl,
|
|
12018
12022
|
thumbnailUrl,
|
|
@@ -12203,9 +12207,9 @@ var ModalTypography = {
|
|
|
12203
12207
|
}
|
|
12204
12208
|
};
|
|
12205
12209
|
|
|
12206
|
-
var _excluded$
|
|
12207
|
-
_excluded2$
|
|
12208
|
-
_excluded3$
|
|
12210
|
+
var _excluded$H = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
|
|
12211
|
+
_excluded2$c = ["children", "shadow", "isFullScreen", "shape", "views"],
|
|
12212
|
+
_excluded3$9 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
|
|
12209
12213
|
_excluded4$7 = ["children", "views"],
|
|
12210
12214
|
_excluded5$3 = ["children", "views"];
|
|
12211
12215
|
var ModalOverlay = _ref => {
|
|
@@ -12218,7 +12222,7 @@ var ModalOverlay = _ref => {
|
|
|
12218
12222
|
position = 'center',
|
|
12219
12223
|
views
|
|
12220
12224
|
} = _ref,
|
|
12221
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12225
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
|
|
12222
12226
|
var handleClick = () => {
|
|
12223
12227
|
if (!isClosePrevented) onClose();
|
|
12224
12228
|
};
|
|
@@ -12254,7 +12258,7 @@ var ModalContainer = _ref2 => {
|
|
|
12254
12258
|
shape = 'rounded',
|
|
12255
12259
|
views
|
|
12256
12260
|
} = _ref2,
|
|
12257
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
12261
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$c);
|
|
12258
12262
|
var defaultShadow = typeof document !== undefined ? {
|
|
12259
12263
|
boxShadow: '0px 4px 16px rgba(0, 0, 0, 0.15)'
|
|
12260
12264
|
} : {
|
|
@@ -12287,19 +12291,14 @@ var ModalHeader = _ref3 => {
|
|
|
12287
12291
|
buttonPosition = 'right',
|
|
12288
12292
|
views
|
|
12289
12293
|
} = _ref3,
|
|
12290
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
12294
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$9);
|
|
12291
12295
|
var onClose = props.onClose ? props.onClose : hideModal;
|
|
12292
|
-
var buttonIcon = /*#__PURE__*/React.createElement(
|
|
12293
|
-
onClick: onClose
|
|
12294
|
-
|
|
12295
|
-
|
|
12296
|
-
|
|
12297
|
-
|
|
12298
|
-
padding: 0,
|
|
12299
|
-
margin: 0,
|
|
12300
|
-
filter: "none",
|
|
12301
|
-
width: 0
|
|
12302
|
-
});
|
|
12296
|
+
var buttonIcon = /*#__PURE__*/React.createElement(View, {
|
|
12297
|
+
onClick: onClose
|
|
12298
|
+
}, /*#__PURE__*/React.createElement(CloseIcon, {
|
|
12299
|
+
widthHeight: HeaderIconSizes[iconSize],
|
|
12300
|
+
color: buttonColor
|
|
12301
|
+
}));
|
|
12303
12302
|
return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
12304
12303
|
justifyContent: buttonPosition === 'none' ? 'center' : 'space-between',
|
|
12305
12304
|
alignItems: "center",
|
|
@@ -12519,7 +12518,7 @@ var NavigationMenuItemStates = {
|
|
|
12519
12518
|
}
|
|
12520
12519
|
};
|
|
12521
12520
|
|
|
12522
|
-
var _excluded$
|
|
12521
|
+
var _excluded$I = ["href", "children", "views"];
|
|
12523
12522
|
// Create context for the NavigationMenu
|
|
12524
12523
|
var NavigationMenuContext = /*#__PURE__*/createContext({
|
|
12525
12524
|
activeItemId: null,
|
|
@@ -12754,7 +12753,7 @@ var NavigationMenuLink = _ref6 => {
|
|
|
12754
12753
|
children,
|
|
12755
12754
|
views
|
|
12756
12755
|
} = _ref6,
|
|
12757
|
-
props = _objectWithoutPropertiesLoose(_ref6, _excluded$
|
|
12756
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded$I);
|
|
12758
12757
|
var {
|
|
12759
12758
|
itemValue,
|
|
12760
12759
|
isDisabled
|
|
@@ -12803,7 +12802,8 @@ var NavigationMenuView = _ref7 => {
|
|
|
12803
12802
|
items,
|
|
12804
12803
|
orientation,
|
|
12805
12804
|
//size, variant,
|
|
12806
|
-
views
|
|
12805
|
+
views,
|
|
12806
|
+
themeMode: elementMode
|
|
12807
12807
|
} = _ref7;
|
|
12808
12808
|
var Container = orientation === 'horizontal' ? Horizontal : Vertical;
|
|
12809
12809
|
if (!items || items.length === 0) {
|
|
@@ -12820,7 +12820,7 @@ var NavigationMenuView = _ref7 => {
|
|
|
12820
12820
|
})))));
|
|
12821
12821
|
};
|
|
12822
12822
|
|
|
12823
|
-
var _excluded$
|
|
12823
|
+
var _excluded$J = ["items", "children", "orientation", "size", "variant", "defaultActiveItemId", "defaultExpandedItemIds", "onItemActivate", "views"];
|
|
12824
12824
|
/**
|
|
12825
12825
|
* NavigationMenu component for creating navigation menus with optional nested items.
|
|
12826
12826
|
* Supports both data-driven approach (with items prop) and compound component pattern.
|
|
@@ -12837,7 +12837,7 @@ var NavigationMenuComponent = _ref => {
|
|
|
12837
12837
|
onItemActivate,
|
|
12838
12838
|
views
|
|
12839
12839
|
} = _ref,
|
|
12840
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12840
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$J);
|
|
12841
12841
|
var {
|
|
12842
12842
|
activeItemId,
|
|
12843
12843
|
setActiveItemId,
|
|
@@ -13037,7 +13037,8 @@ var TableView = _ref => {
|
|
|
13037
13037
|
data,
|
|
13038
13038
|
columns,
|
|
13039
13039
|
footer,
|
|
13040
|
-
caption
|
|
13040
|
+
caption,
|
|
13041
|
+
themeMode: elementMode
|
|
13041
13042
|
} = _ref;
|
|
13042
13043
|
return /*#__PURE__*/React.createElement(TableContainer, {
|
|
13043
13044
|
role: "Table"
|
|
@@ -13304,7 +13305,7 @@ var useToggleState = defaultToggled => {
|
|
|
13304
13305
|
};
|
|
13305
13306
|
};
|
|
13306
13307
|
|
|
13307
|
-
var _excluded$
|
|
13308
|
+
var _excluded$K = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views"];
|
|
13308
13309
|
var ToggleView = _ref => {
|
|
13309
13310
|
var {
|
|
13310
13311
|
children,
|
|
@@ -13318,7 +13319,7 @@ var ToggleView = _ref => {
|
|
|
13318
13319
|
onToggle,
|
|
13319
13320
|
views
|
|
13320
13321
|
} = _ref,
|
|
13321
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
13322
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$K);
|
|
13322
13323
|
var toggleColor = !isDisabled ? 'color.trueGray.400' : 'theme.disabled';
|
|
13323
13324
|
var isActive = !!(isToggle || isHovered);
|
|
13324
13325
|
var toggleVariants = {
|
|
@@ -13361,7 +13362,7 @@ var ToggleView = _ref => {
|
|
|
13361
13362
|
}, toggleVariants[variant], props, views == null ? void 0 : views.container), children);
|
|
13362
13363
|
};
|
|
13363
13364
|
|
|
13364
|
-
var _excluded$
|
|
13365
|
+
var _excluded$L = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
|
|
13365
13366
|
// Destructuring properties from ToggleProps to be used within the ToggleComponent.
|
|
13366
13367
|
var ToggleComponent = _ref => {
|
|
13367
13368
|
var {
|
|
@@ -13373,7 +13374,7 @@ var ToggleComponent = _ref => {
|
|
|
13373
13374
|
isToggled = false,
|
|
13374
13375
|
onToggle
|
|
13375
13376
|
} = _ref,
|
|
13376
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
13377
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$L);
|
|
13377
13378
|
// Initializing toggle state and set state functions using the custom hook useToggleState.
|
|
13378
13379
|
var {
|
|
13379
13380
|
isHovered,
|
|
@@ -13580,7 +13581,8 @@ var DragAndDropView = _ref => {
|
|
|
13580
13581
|
draggedIndex,
|
|
13581
13582
|
itemRefs,
|
|
13582
13583
|
handleDragStart,
|
|
13583
|
-
views
|
|
13584
|
+
views,
|
|
13585
|
+
themeMode: elementMode
|
|
13584
13586
|
} = _ref;
|
|
13585
13587
|
return /*#__PURE__*/React.createElement(View, Object.assign({
|
|
13586
13588
|
overflow: "hidden",
|
|
@@ -13763,11 +13765,11 @@ var getDropdownPosition = function getDropdownPosition(side, align) {
|
|
|
13763
13765
|
return positions[side];
|
|
13764
13766
|
};
|
|
13765
13767
|
|
|
13766
|
-
var _excluded$
|
|
13767
|
-
_excluded2$
|
|
13768
|
-
_excluded3$
|
|
13768
|
+
var _excluded$M = ["children", "views"],
|
|
13769
|
+
_excluded2$d = ["items", "side", "align", "views"],
|
|
13770
|
+
_excluded3$a = ["item", "views"],
|
|
13769
13771
|
_excluded4$8 = ["views"],
|
|
13770
|
-
_excluded5$4 = ["trigger", "items", "side", "align", "views"];
|
|
13772
|
+
_excluded5$4 = ["trigger", "items", "side", "align", "views", "themeMode"];
|
|
13771
13773
|
// Create context for the DropdownMenu
|
|
13772
13774
|
var DropdownMenuContext = /*#__PURE__*/createContext({
|
|
13773
13775
|
isOpen: false,
|
|
@@ -13801,7 +13803,7 @@ var DropdownMenuTrigger = _ref2 => {
|
|
|
13801
13803
|
children,
|
|
13802
13804
|
views
|
|
13803
13805
|
} = _ref2,
|
|
13804
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
13806
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$M);
|
|
13805
13807
|
var {
|
|
13806
13808
|
isOpen,
|
|
13807
13809
|
setIsOpen
|
|
@@ -13826,7 +13828,7 @@ var DropdownMenuContent = _ref3 => {
|
|
|
13826
13828
|
align = 'start',
|
|
13827
13829
|
views
|
|
13828
13830
|
} = _ref3,
|
|
13829
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
13831
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$d);
|
|
13830
13832
|
var {
|
|
13831
13833
|
isOpen,
|
|
13832
13834
|
//activeSubmenuId, setActiveSubmenuId, size,
|
|
@@ -13862,7 +13864,7 @@ var DropdownMenuItem = _ref4 => {
|
|
|
13862
13864
|
item,
|
|
13863
13865
|
views
|
|
13864
13866
|
} = _ref4,
|
|
13865
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
13867
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$a);
|
|
13866
13868
|
var {
|
|
13867
13869
|
activeSubmenuId,
|
|
13868
13870
|
setActiveSubmenuId,
|
|
@@ -13961,7 +13963,7 @@ var DropdownMenuView = _ref6 => {
|
|
|
13961
13963
|
}));
|
|
13962
13964
|
};
|
|
13963
13965
|
|
|
13964
|
-
var _excluded$
|
|
13966
|
+
var _excluded$N = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
|
|
13965
13967
|
/**
|
|
13966
13968
|
* DropdownMenu component for displaying a menu when clicking on a trigger element.
|
|
13967
13969
|
*/
|
|
@@ -13976,7 +13978,7 @@ var DropdownMenuComponent = _ref => {
|
|
|
13976
13978
|
defaultOpen = false,
|
|
13977
13979
|
views
|
|
13978
13980
|
} = _ref,
|
|
13979
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
13981
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$N);
|
|
13980
13982
|
var {
|
|
13981
13983
|
isOpen,
|
|
13982
13984
|
setIsOpen,
|
|
@@ -14174,8 +14176,8 @@ var useRect = ref => {
|
|
|
14174
14176
|
return rect;
|
|
14175
14177
|
};
|
|
14176
14178
|
|
|
14177
|
-
var _excluded$
|
|
14178
|
-
_excluded2$
|
|
14179
|
+
var _excluded$O = ["children", "views", "asChild"],
|
|
14180
|
+
_excluded2$e = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
|
|
14179
14181
|
// Create context for the HoverCard
|
|
14180
14182
|
var HoverCardContext = /*#__PURE__*/createContext({
|
|
14181
14183
|
isOpen: false,
|
|
@@ -14213,7 +14215,7 @@ var HoverCardTrigger = _ref2 => {
|
|
|
14213
14215
|
views,
|
|
14214
14216
|
asChild = false
|
|
14215
14217
|
} = _ref2,
|
|
14216
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
14218
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$O);
|
|
14217
14219
|
var {
|
|
14218
14220
|
openCard,
|
|
14219
14221
|
closeCard,
|
|
@@ -14261,7 +14263,7 @@ var HoverCardContent = _ref3 => {
|
|
|
14261
14263
|
minWidth = '200px',
|
|
14262
14264
|
maxWidth = '300px'
|
|
14263
14265
|
} = _ref3,
|
|
14264
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
14266
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$e);
|
|
14265
14267
|
var {
|
|
14266
14268
|
isOpen,
|
|
14267
14269
|
cancelCloseTimer,
|
|
@@ -14300,7 +14302,7 @@ var HoverCardContent = _ref3 => {
|
|
|
14300
14302
|
}, views == null ? void 0 : views.container, props), children);
|
|
14301
14303
|
};
|
|
14302
14304
|
|
|
14303
|
-
var _excluded$
|
|
14305
|
+
var _excluded$P = ["children", "views", "openDelay", "closeDelay"];
|
|
14304
14306
|
/**
|
|
14305
14307
|
* HoverCard component displays floating content when hovering over a trigger element.
|
|
14306
14308
|
* Supports configurable open and close delays for a smoother user experience.
|
|
@@ -14312,7 +14314,7 @@ var HoverCardComponent = _ref => {
|
|
|
14312
14314
|
openDelay,
|
|
14313
14315
|
closeDelay
|
|
14314
14316
|
} = _ref,
|
|
14315
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
14317
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$P);
|
|
14316
14318
|
var hoverCardState = useHoverCardState({
|
|
14317
14319
|
openDelay,
|
|
14318
14320
|
closeDelay
|
|
@@ -14442,7 +14444,7 @@ var getMenubarContentPosition = orientation => {
|
|
|
14442
14444
|
};
|
|
14443
14445
|
};
|
|
14444
14446
|
|
|
14445
|
-
var _excluded$
|
|
14447
|
+
var _excluded$Q = ["children", "orientation", "size", "variant", "views"];
|
|
14446
14448
|
// Create context for the Menubar
|
|
14447
14449
|
var MenubarContext = /*#__PURE__*/createContext({
|
|
14448
14450
|
activeMenuId: null,
|
|
@@ -14476,7 +14478,7 @@ var MenubarRoot = _ref2 => {
|
|
|
14476
14478
|
variant = 'default',
|
|
14477
14479
|
views
|
|
14478
14480
|
} = _ref2,
|
|
14479
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
14481
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$Q);
|
|
14480
14482
|
var Container = orientation === 'horizontal' ? Horizontal : Vertical;
|
|
14481
14483
|
return /*#__PURE__*/React.createElement(Container, Object.assign({
|
|
14482
14484
|
role: "menubar",
|
|
@@ -14623,7 +14625,8 @@ var MenubarView = _ref8 => {
|
|
|
14623
14625
|
orientation,
|
|
14624
14626
|
size,
|
|
14625
14627
|
variant,
|
|
14626
|
-
views
|
|
14628
|
+
views,
|
|
14629
|
+
themeMode: elementMode
|
|
14627
14630
|
} = _ref8;
|
|
14628
14631
|
return /*#__PURE__*/React.createElement(MenubarRoot, {
|
|
14629
14632
|
orientation: orientation,
|
|
@@ -14661,7 +14664,7 @@ var MenubarView = _ref8 => {
|
|
|
14661
14664
|
})))))));
|
|
14662
14665
|
};
|
|
14663
14666
|
|
|
14664
|
-
var _excluded$
|
|
14667
|
+
var _excluded$R = ["items", "orientation", "size", "variant", "defaultActiveMenuId", "defaultOpenMenuId", "views"];
|
|
14665
14668
|
/**
|
|
14666
14669
|
* Menubar component for creating horizontal or vertical menu bars with dropdown menus.
|
|
14667
14670
|
*/
|
|
@@ -14675,7 +14678,7 @@ var MenubarComponent = _ref => {
|
|
|
14675
14678
|
defaultOpenMenuId = null,
|
|
14676
14679
|
views
|
|
14677
14680
|
} = _ref,
|
|
14678
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
14681
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$R);
|
|
14679
14682
|
var {
|
|
14680
14683
|
activeMenuId,
|
|
14681
14684
|
setActiveMenuId,
|
|
@@ -14831,7 +14834,7 @@ var DisabledButtonStyles = {
|
|
|
14831
14834
|
}
|
|
14832
14835
|
};
|
|
14833
14836
|
|
|
14834
|
-
var _excluded$
|
|
14837
|
+
var _excluded$S = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "visiblePageNumbers", "views"];
|
|
14835
14838
|
var PaginationView = _ref => {
|
|
14836
14839
|
var {
|
|
14837
14840
|
currentPage,
|
|
@@ -14862,7 +14865,7 @@ var PaginationView = _ref => {
|
|
|
14862
14865
|
visiblePageNumbers,
|
|
14863
14866
|
views
|
|
14864
14867
|
} = _ref,
|
|
14865
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
14868
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$S);
|
|
14866
14869
|
var handlePageChange = page => {
|
|
14867
14870
|
if (page < 1 || page > totalPages || page === currentPage) {
|
|
14868
14871
|
return;
|
|
@@ -14981,7 +14984,7 @@ var PaginationView = _ref => {
|
|
|
14981
14984
|
}, option.label))))));
|
|
14982
14985
|
};
|
|
14983
14986
|
|
|
14984
|
-
var _excluded$
|
|
14987
|
+
var _excluded$T = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "views"];
|
|
14985
14988
|
/**
|
|
14986
14989
|
* Pagination component for navigating through pages of content.
|
|
14987
14990
|
*/
|
|
@@ -15002,7 +15005,7 @@ var PaginationComponent = _ref => {
|
|
|
15002
15005
|
shape = 'rounded',
|
|
15003
15006
|
views
|
|
15004
15007
|
} = _ref,
|
|
15005
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
15008
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$T);
|
|
15006
15009
|
var {
|
|
15007
15010
|
visiblePageNumbers
|
|
15008
15011
|
} = usePaginationState(currentPage, totalPages, maxPageButtons);
|
|
@@ -15038,11 +15041,16 @@ var Pagination = PaginationComponent;
|
|
|
15038
15041
|
/**
|
|
15039
15042
|
* Variant configurations for the Separator component
|
|
15040
15043
|
*/
|
|
15041
|
-
var
|
|
15042
|
-
|
|
15043
|
-
|
|
15044
|
-
|
|
15044
|
+
var getSeparator = themeMode => {
|
|
15045
|
+
return {
|
|
15046
|
+
solid: 'solid',
|
|
15047
|
+
dashed: 'dashed',
|
|
15048
|
+
dotted: 'dotted'
|
|
15049
|
+
};
|
|
15050
|
+
// Add dark mode conditional styling here
|
|
15045
15051
|
};
|
|
15052
|
+
// For backward compatibility
|
|
15053
|
+
var SeparatorVariants = /*#__PURE__*/getSeparator();
|
|
15046
15054
|
/**
|
|
15047
15055
|
* Thickness configurations for the Separator component
|
|
15048
15056
|
* Following the 4px grid system
|
|
@@ -15067,7 +15075,7 @@ var DefaultSeparatorStyles = {
|
|
|
15067
15075
|
}
|
|
15068
15076
|
};
|
|
15069
15077
|
|
|
15070
|
-
var _excluded$
|
|
15078
|
+
var _excluded$U = ["orientation", "variant", "thickness", "color", "spacing", "label", "decorative", "views", "themeMode"];
|
|
15071
15079
|
var SeparatorView = _ref => {
|
|
15072
15080
|
var {
|
|
15073
15081
|
orientation = 'horizontal',
|
|
@@ -15079,9 +15087,11 @@ var SeparatorView = _ref => {
|
|
|
15079
15087
|
decorative = false,
|
|
15080
15088
|
views
|
|
15081
15089
|
} = _ref,
|
|
15082
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
15090
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$U);
|
|
15083
15091
|
// Access theme if needed for future enhancements
|
|
15084
|
-
var {
|
|
15092
|
+
var {
|
|
15093
|
+
themeMode
|
|
15094
|
+
} = useTheme();
|
|
15085
15095
|
// Use provided color or default from theme
|
|
15086
15096
|
var separatorColor = color || 'color.gray.200';
|
|
15087
15097
|
var borderStyle = SeparatorVariants[variant];
|
|
@@ -15237,37 +15247,42 @@ var SidebarSizes = {
|
|
|
15237
15247
|
/**
|
|
15238
15248
|
* Variant styles for the Sidebar component
|
|
15239
15249
|
*/
|
|
15240
|
-
var
|
|
15241
|
-
|
|
15242
|
-
|
|
15243
|
-
|
|
15244
|
-
|
|
15245
|
-
|
|
15246
|
-
|
|
15247
|
-
|
|
15248
|
-
|
|
15249
|
-
|
|
15250
|
-
|
|
15251
|
-
|
|
15252
|
-
|
|
15253
|
-
|
|
15254
|
-
|
|
15255
|
-
|
|
15256
|
-
|
|
15257
|
-
|
|
15258
|
-
|
|
15259
|
-
|
|
15260
|
-
|
|
15261
|
-
|
|
15262
|
-
|
|
15263
|
-
|
|
15264
|
-
|
|
15265
|
-
|
|
15266
|
-
|
|
15267
|
-
|
|
15268
|
-
|
|
15269
|
-
|
|
15250
|
+
var getSidebar = themeMode => {
|
|
15251
|
+
return {
|
|
15252
|
+
default: {
|
|
15253
|
+
backgroundColor: 'white',
|
|
15254
|
+
color: 'color.gray.800',
|
|
15255
|
+
transition: 'all 0.2s ease'
|
|
15256
|
+
},
|
|
15257
|
+
filled: {
|
|
15258
|
+
backgroundColor: 'color.gray.100',
|
|
15259
|
+
color: 'color.gray.800',
|
|
15260
|
+
transition: 'all 0.2s ease'
|
|
15261
|
+
},
|
|
15262
|
+
outline: {
|
|
15263
|
+
backgroundColor: 'white',
|
|
15264
|
+
borderWidth: '1px',
|
|
15265
|
+
borderStyle: 'solid',
|
|
15266
|
+
borderColor: 'color.gray.200',
|
|
15267
|
+
color: 'color.gray.800',
|
|
15268
|
+
transition: 'all 0.2s ease'
|
|
15269
|
+
},
|
|
15270
|
+
subtle: {
|
|
15271
|
+
backgroundColor: 'color.gray.50',
|
|
15272
|
+
color: 'color.gray.800',
|
|
15273
|
+
transition: 'all 0.2s ease'
|
|
15274
|
+
},
|
|
15275
|
+
elevated: {
|
|
15276
|
+
backgroundColor: 'white',
|
|
15277
|
+
boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.1)',
|
|
15278
|
+
color: 'color.gray.800',
|
|
15279
|
+
transition: 'all 0.2s ease'
|
|
15280
|
+
}
|
|
15281
|
+
};
|
|
15282
|
+
// Add dark mode conditional styling here
|
|
15270
15283
|
};
|
|
15284
|
+
// For backward compatibility
|
|
15285
|
+
var SidebarVariants = /*#__PURE__*/getSidebar();
|
|
15271
15286
|
/**
|
|
15272
15287
|
* Position styles for the Sidebar component
|
|
15273
15288
|
*/
|
|
@@ -15310,10 +15325,10 @@ var SidebarTransitions = {
|
|
|
15310
15325
|
bounce: 'width 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55)'
|
|
15311
15326
|
};
|
|
15312
15327
|
|
|
15313
|
-
var _excluded$
|
|
15314
|
-
_excluded2$
|
|
15315
|
-
_excluded3$
|
|
15316
|
-
_excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views"];
|
|
15328
|
+
var _excluded$V = ["children", "showToggleButton", "views"],
|
|
15329
|
+
_excluded2$f = ["children", "views"],
|
|
15330
|
+
_excluded3$b = ["children", "views"],
|
|
15331
|
+
_excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
|
|
15317
15332
|
// Create context for the Sidebar
|
|
15318
15333
|
var SidebarContext = /*#__PURE__*/createContext({
|
|
15319
15334
|
isExpanded: true,
|
|
@@ -15343,7 +15358,7 @@ var SidebarHeader = _ref2 => {
|
|
|
15343
15358
|
showToggleButton = true,
|
|
15344
15359
|
views
|
|
15345
15360
|
} = _ref2,
|
|
15346
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
15361
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$V);
|
|
15347
15362
|
var {
|
|
15348
15363
|
isExpanded,
|
|
15349
15364
|
toggleExpanded,
|
|
@@ -15410,7 +15425,7 @@ var SidebarContent = _ref3 => {
|
|
|
15410
15425
|
children,
|
|
15411
15426
|
views
|
|
15412
15427
|
} = _ref3,
|
|
15413
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
15428
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$f);
|
|
15414
15429
|
var {
|
|
15415
15430
|
isExpanded
|
|
15416
15431
|
} = useSidebarContext();
|
|
@@ -15428,7 +15443,7 @@ var SidebarFooter = _ref4 => {
|
|
|
15428
15443
|
children,
|
|
15429
15444
|
views
|
|
15430
15445
|
} = _ref4,
|
|
15431
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
15446
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$b);
|
|
15432
15447
|
var {
|
|
15433
15448
|
isExpanded
|
|
15434
15449
|
} = useSidebarContext();
|
|
@@ -15498,7 +15513,7 @@ var SidebarView = _ref5 => {
|
|
|
15498
15513
|
}))));
|
|
15499
15514
|
};
|
|
15500
15515
|
|
|
15501
|
-
var _excluded$
|
|
15516
|
+
var _excluded$W = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
|
|
15502
15517
|
/**
|
|
15503
15518
|
* Sidebar component for creating collapsible, themeable and customizable sidebars.
|
|
15504
15519
|
*/
|
|
@@ -15520,7 +15535,7 @@ var SidebarComponent = _ref => {
|
|
|
15520
15535
|
breakpointBehavior = 'overlay',
|
|
15521
15536
|
views
|
|
15522
15537
|
} = _ref,
|
|
15523
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
15538
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$W);
|
|
15524
15539
|
var {
|
|
15525
15540
|
isExpanded,
|
|
15526
15541
|
toggleExpanded,
|
|
@@ -15936,35 +15951,40 @@ var getHandleSizeStyles = (size, orientation) => {
|
|
|
15936
15951
|
};
|
|
15937
15952
|
return sizes[size];
|
|
15938
15953
|
};
|
|
15939
|
-
var
|
|
15940
|
-
|
|
15941
|
-
|
|
15942
|
-
|
|
15943
|
-
|
|
15944
|
-
|
|
15945
|
-
|
|
15946
|
-
|
|
15947
|
-
|
|
15948
|
-
|
|
15949
|
-
subtle: {
|
|
15950
|
-
backgroundColor: 'transparent',
|
|
15951
|
-
_hover: {
|
|
15952
|
-
backgroundColor: 'color.gray.100'
|
|
15954
|
+
var getHandle = themeMode => {
|
|
15955
|
+
return {
|
|
15956
|
+
default: {
|
|
15957
|
+
backgroundColor: 'transparent',
|
|
15958
|
+
_hover: {
|
|
15959
|
+
backgroundColor: 'color.gray.200'
|
|
15960
|
+
},
|
|
15961
|
+
_active: {
|
|
15962
|
+
backgroundColor: 'color.gray.300'
|
|
15963
|
+
}
|
|
15953
15964
|
},
|
|
15954
|
-
|
|
15955
|
-
backgroundColor: '
|
|
15956
|
-
|
|
15957
|
-
|
|
15958
|
-
|
|
15959
|
-
|
|
15960
|
-
|
|
15961
|
-
|
|
15965
|
+
subtle: {
|
|
15966
|
+
backgroundColor: 'transparent',
|
|
15967
|
+
_hover: {
|
|
15968
|
+
backgroundColor: 'color.gray.100'
|
|
15969
|
+
},
|
|
15970
|
+
_active: {
|
|
15971
|
+
backgroundColor: 'color.gray.200'
|
|
15972
|
+
}
|
|
15962
15973
|
},
|
|
15963
|
-
|
|
15964
|
-
backgroundColor: 'color.gray.
|
|
15974
|
+
prominent: {
|
|
15975
|
+
backgroundColor: 'color.gray.100',
|
|
15976
|
+
_hover: {
|
|
15977
|
+
backgroundColor: 'color.gray.200'
|
|
15978
|
+
},
|
|
15979
|
+
_active: {
|
|
15980
|
+
backgroundColor: 'color.gray.300'
|
|
15981
|
+
}
|
|
15965
15982
|
}
|
|
15966
|
-
}
|
|
15983
|
+
};
|
|
15984
|
+
// Add dark mode conditional styling here
|
|
15967
15985
|
};
|
|
15986
|
+
// For backward compatibility
|
|
15987
|
+
var HandleVariants = /*#__PURE__*/getHandle();
|
|
15968
15988
|
var HandleIconStyles = {
|
|
15969
15989
|
horizontal: {
|
|
15970
15990
|
width: '2px',
|
|
@@ -15980,9 +16000,9 @@ var HandleIconStyles = {
|
|
|
15980
16000
|
}
|
|
15981
16001
|
};
|
|
15982
16002
|
|
|
15983
|
-
var _excluded$
|
|
15984
|
-
_excluded2$
|
|
15985
|
-
_excluded3$
|
|
16003
|
+
var _excluded$X = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
|
|
16004
|
+
_excluded2$g = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
|
|
16005
|
+
_excluded3$c = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "views"];
|
|
15986
16006
|
// Create context for the Resizable component
|
|
15987
16007
|
var ResizableContext = /*#__PURE__*/createContext({
|
|
15988
16008
|
orientation: 'horizontal',
|
|
@@ -16025,7 +16045,7 @@ var ResizablePanel = _ref2 => {
|
|
|
16025
16045
|
onCollapseChange,
|
|
16026
16046
|
views
|
|
16027
16047
|
} = _ref2,
|
|
16028
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
16048
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$X);
|
|
16029
16049
|
var {
|
|
16030
16050
|
orientation,
|
|
16031
16051
|
registerPanel,
|
|
@@ -16089,7 +16109,7 @@ var ResizableHandle = _ref3 => {
|
|
|
16089
16109
|
collapseTarget,
|
|
16090
16110
|
views
|
|
16091
16111
|
} = _ref3,
|
|
16092
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
16112
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$g);
|
|
16093
16113
|
var {
|
|
16094
16114
|
orientation,
|
|
16095
16115
|
size,
|
|
@@ -16229,7 +16249,7 @@ var ResizableView = _ref4 => {
|
|
|
16229
16249
|
containerRef,
|
|
16230
16250
|
views
|
|
16231
16251
|
} = _ref4,
|
|
16232
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
16252
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$c);
|
|
16233
16253
|
var Container = orientation === 'horizontal' ? Horizontal : Vertical;
|
|
16234
16254
|
return /*#__PURE__*/React.createElement(Container, Object.assign({
|
|
16235
16255
|
ref: containerRef,
|
|
@@ -16240,7 +16260,7 @@ var ResizableView = _ref4 => {
|
|
|
16240
16260
|
}, ResizableOrientations[orientation], views == null ? void 0 : views.container, props), children);
|
|
16241
16261
|
};
|
|
16242
16262
|
|
|
16243
|
-
var _excluded$
|
|
16263
|
+
var _excluded$Y = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
|
|
16244
16264
|
/**
|
|
16245
16265
|
* Resizable component for creating resizable panel groups and layouts.
|
|
16246
16266
|
*/
|
|
@@ -16260,7 +16280,7 @@ var ResizableComponent = _ref => {
|
|
|
16260
16280
|
keyboardResizeBy = 10,
|
|
16261
16281
|
views
|
|
16262
16282
|
} = _ref,
|
|
16263
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
16283
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$Y);
|
|
16264
16284
|
var {
|
|
16265
16285
|
isResizing,
|
|
16266
16286
|
setIsResizing,
|
|
@@ -16325,7 +16345,7 @@ Resizable.Handle = ResizableHandle;
|
|
|
16325
16345
|
* Theme configurations for the Toast component
|
|
16326
16346
|
* Following the design system color palette
|
|
16327
16347
|
*/
|
|
16328
|
-
var Themes$
|
|
16348
|
+
var Themes$1 = {
|
|
16329
16349
|
info: {
|
|
16330
16350
|
container: {
|
|
16331
16351
|
backgroundColor: 'color.blue.50',
|
|
@@ -16518,10 +16538,11 @@ var ToastView = _ref => {
|
|
|
16518
16538
|
render,
|
|
16519
16539
|
icon: customIcon,
|
|
16520
16540
|
id,
|
|
16521
|
-
isVisible = true
|
|
16541
|
+
isVisible = true,
|
|
16542
|
+
themeMode: elementMode
|
|
16522
16543
|
} = _ref;
|
|
16523
16544
|
// We don't need the auto-close timer here anymore as it's handled in the store
|
|
16524
|
-
var Theme = theme != null ? theme : Themes$
|
|
16545
|
+
var Theme = theme != null ? theme : Themes$1;
|
|
16525
16546
|
// Get the appropriate icon based on the variant
|
|
16526
16547
|
var getIcon = () => {
|
|
16527
16548
|
// If a custom icon is provided, use it
|
|
@@ -16901,29 +16922,34 @@ var CommandSizes = {
|
|
|
16901
16922
|
maxHeight: '500px'
|
|
16902
16923
|
}
|
|
16903
16924
|
};
|
|
16904
|
-
var
|
|
16905
|
-
|
|
16906
|
-
|
|
16907
|
-
|
|
16908
|
-
|
|
16909
|
-
|
|
16910
|
-
|
|
16911
|
-
|
|
16912
|
-
|
|
16913
|
-
|
|
16914
|
-
|
|
16915
|
-
|
|
16916
|
-
|
|
16917
|
-
|
|
16918
|
-
|
|
16919
|
-
|
|
16920
|
-
|
|
16921
|
-
|
|
16922
|
-
|
|
16923
|
-
|
|
16924
|
-
|
|
16925
|
-
|
|
16925
|
+
var getCommand = themeMode => {
|
|
16926
|
+
return {
|
|
16927
|
+
default: {
|
|
16928
|
+
backgroundColor: 'white',
|
|
16929
|
+
borderWidth: '1px',
|
|
16930
|
+
borderStyle: 'solid',
|
|
16931
|
+
borderColor: 'color.gray.200',
|
|
16932
|
+
boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
|
|
16933
|
+
},
|
|
16934
|
+
filled: {
|
|
16935
|
+
backgroundColor: 'color.gray.50',
|
|
16936
|
+
borderWidth: '1px',
|
|
16937
|
+
borderStyle: 'solid',
|
|
16938
|
+
borderColor: 'color.gray.200',
|
|
16939
|
+
boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
|
|
16940
|
+
},
|
|
16941
|
+
outline: {
|
|
16942
|
+
backgroundColor: 'white',
|
|
16943
|
+
borderWidth: '2px',
|
|
16944
|
+
borderStyle: 'solid',
|
|
16945
|
+
borderColor: 'color.gray.300',
|
|
16946
|
+
boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
|
|
16947
|
+
}
|
|
16948
|
+
};
|
|
16949
|
+
// Add dark mode conditional styling here
|
|
16926
16950
|
};
|
|
16951
|
+
// For backward compatibility
|
|
16952
|
+
var CommandVariants = /*#__PURE__*/getCommand();
|
|
16927
16953
|
var CommandInputStyles = {
|
|
16928
16954
|
display: 'flex',
|
|
16929
16955
|
alignItems: 'center',
|
|
@@ -17019,9 +17045,9 @@ var CommandFooterStyles = {
|
|
|
17019
17045
|
color: 'color.gray.500'
|
|
17020
17046
|
};
|
|
17021
17047
|
|
|
17022
|
-
var _excluded$
|
|
17023
|
-
_excluded2$
|
|
17024
|
-
_excluded3$
|
|
17048
|
+
var _excluded$Z = ["value", "onValueChange", "placeholder", "views"],
|
|
17049
|
+
_excluded2$h = ["children", "views"],
|
|
17050
|
+
_excluded3$d = ["heading", "children", "views"],
|
|
17025
17051
|
_excluded4$a = ["item", "selected", "onSelect", "views"],
|
|
17026
17052
|
_excluded5$5 = ["children", "views"],
|
|
17027
17053
|
_excluded6$3 = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "emptyState", "footer", "search", "setSearch", "selectedIndex", "setSelectedIndex", "filteredCommands", "filteredGroups", "listRef", "views", "filter"];
|
|
@@ -17051,7 +17077,7 @@ var CommandInput = _ref2 => {
|
|
|
17051
17077
|
placeholder = 'Type a command or search...',
|
|
17052
17078
|
views
|
|
17053
17079
|
} = _ref2,
|
|
17054
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
17080
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$Z);
|
|
17055
17081
|
var inputRef = useRef(null);
|
|
17056
17082
|
// Focus input when component mounts
|
|
17057
17083
|
React.useEffect(() => {
|
|
@@ -17083,7 +17109,7 @@ var CommandList = _ref3 => {
|
|
|
17083
17109
|
children,
|
|
17084
17110
|
views
|
|
17085
17111
|
} = _ref3,
|
|
17086
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
17112
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$h);
|
|
17087
17113
|
return /*#__PURE__*/React.createElement(View, Object.assign({}, CommandListStyles, views == null ? void 0 : views.container, props), children);
|
|
17088
17114
|
};
|
|
17089
17115
|
// Command Group component
|
|
@@ -17093,7 +17119,7 @@ var CommandGroup = _ref4 => {
|
|
|
17093
17119
|
children,
|
|
17094
17120
|
views
|
|
17095
17121
|
} = _ref4,
|
|
17096
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
17122
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$d);
|
|
17097
17123
|
return /*#__PURE__*/React.createElement(View, Object.assign({}, CommandGroupStyles, views == null ? void 0 : views.container, props), /*#__PURE__*/React.createElement(Text, Object.assign({}, CommandGroupHeadingStyles, views == null ? void 0 : views.heading), heading), children);
|
|
17098
17124
|
};
|
|
17099
17125
|
// Command Item component
|
|
@@ -17239,7 +17265,7 @@ var CommandView = _ref7 => {
|
|
|
17239
17265
|
})))), footer && (/*#__PURE__*/React.createElement(View, Object.assign({}, CommandFooterStyles, views == null ? void 0 : views.footer), footer)))));
|
|
17240
17266
|
};
|
|
17241
17267
|
|
|
17242
|
-
var _excluded$
|
|
17268
|
+
var _excluded$_ = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
|
|
17243
17269
|
/**
|
|
17244
17270
|
* Command component for displaying a command palette with search functionality.
|
|
17245
17271
|
*/
|
|
@@ -17257,7 +17283,7 @@ var CommandComponent = _ref => {
|
|
|
17257
17283
|
footer,
|
|
17258
17284
|
views
|
|
17259
17285
|
} = _ref,
|
|
17260
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
17286
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$_);
|
|
17261
17287
|
var {
|
|
17262
17288
|
search,
|
|
17263
17289
|
setSearch,
|
|
@@ -17414,23 +17440,28 @@ var TooltipSizes = {
|
|
|
17414
17440
|
maxWidth: '300px'
|
|
17415
17441
|
}
|
|
17416
17442
|
};
|
|
17417
|
-
var
|
|
17418
|
-
|
|
17419
|
-
|
|
17420
|
-
|
|
17421
|
-
|
|
17422
|
-
|
|
17423
|
-
|
|
17424
|
-
|
|
17425
|
-
|
|
17426
|
-
|
|
17427
|
-
|
|
17428
|
-
|
|
17429
|
-
|
|
17430
|
-
|
|
17431
|
-
|
|
17432
|
-
|
|
17443
|
+
var getTooltip = themeMode => {
|
|
17444
|
+
return {
|
|
17445
|
+
default: {
|
|
17446
|
+
backgroundColor: 'color.gray.800',
|
|
17447
|
+
color: 'color.white'
|
|
17448
|
+
},
|
|
17449
|
+
light: {
|
|
17450
|
+
backgroundColor: 'color.white',
|
|
17451
|
+
color: 'color.gray.800',
|
|
17452
|
+
borderWidth: '1px',
|
|
17453
|
+
borderStyle: 'solid',
|
|
17454
|
+
borderColor: 'color.gray.200'
|
|
17455
|
+
},
|
|
17456
|
+
dark: {
|
|
17457
|
+
backgroundColor: 'color.black',
|
|
17458
|
+
color: 'color.white'
|
|
17459
|
+
}
|
|
17460
|
+
};
|
|
17461
|
+
// Add dark mode conditional styling here
|
|
17433
17462
|
};
|
|
17463
|
+
// For backward compatibility
|
|
17464
|
+
var TooltipVariants = /*#__PURE__*/getTooltip();
|
|
17434
17465
|
var getTooltipPositionStyles = (position, align) => {
|
|
17435
17466
|
var baseStyles = {
|
|
17436
17467
|
position: 'absolute',
|
|
@@ -17539,9 +17570,9 @@ var getArrowStyles = position => {
|
|
|
17539
17570
|
}
|
|
17540
17571
|
};
|
|
17541
17572
|
|
|
17542
|
-
var _excluded
|
|
17543
|
-
_excluded2$
|
|
17544
|
-
_excluded3$
|
|
17573
|
+
var _excluded$$ = ["children", "views", "asChild"],
|
|
17574
|
+
_excluded2$i = ["children", "views"],
|
|
17575
|
+
_excluded3$e = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
|
|
17545
17576
|
// Create context for the Tooltip
|
|
17546
17577
|
var TooltipContext = /*#__PURE__*/createContext({
|
|
17547
17578
|
isOpen: false,
|
|
@@ -17575,7 +17606,7 @@ var TooltipTrigger = _ref2 => {
|
|
|
17575
17606
|
views,
|
|
17576
17607
|
asChild = false
|
|
17577
17608
|
} = _ref2,
|
|
17578
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded
|
|
17609
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$$);
|
|
17579
17610
|
var {
|
|
17580
17611
|
openTooltip,
|
|
17581
17612
|
closeTooltip,
|
|
@@ -17611,7 +17642,7 @@ var TooltipContent = _ref3 => {
|
|
|
17611
17642
|
children,
|
|
17612
17643
|
views
|
|
17613
17644
|
} = _ref3,
|
|
17614
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
17645
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$i);
|
|
17615
17646
|
var {
|
|
17616
17647
|
isOpen,
|
|
17617
17648
|
contentRef,
|
|
@@ -17641,7 +17672,7 @@ var TooltipView = _ref4 => {
|
|
|
17641
17672
|
showArrow = true,
|
|
17642
17673
|
views
|
|
17643
17674
|
} = _ref4,
|
|
17644
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
17675
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$e);
|
|
17645
17676
|
var {
|
|
17646
17677
|
isOpen,
|
|
17647
17678
|
// openTooltip,
|
|
@@ -17668,7 +17699,7 @@ var TooltipView = _ref4 => {
|
|
|
17668
17699
|
}, TooltipSizes[size], TooltipVariants[variant], positionStyles, views == null ? void 0 : views.content), typeof content === 'string' ? (/*#__PURE__*/React.createElement(Text$1, Object.assign({}, views == null ? void 0 : views.text), content)) : content, showArrow && /*#__PURE__*/React.createElement(View, Object.assign({}, arrowStyles, views == null ? void 0 : views.arrow)))));
|
|
17669
17700
|
};
|
|
17670
17701
|
|
|
17671
|
-
var _excluded$
|
|
17702
|
+
var _excluded$10 = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
|
|
17672
17703
|
/**
|
|
17673
17704
|
* Tooltip component for displaying additional information when hovering over an element.
|
|
17674
17705
|
* Supports configurable positions, delays, and styling.
|
|
@@ -17688,7 +17719,7 @@ var TooltipComponent = _ref => {
|
|
|
17688
17719
|
isDisabled = false,
|
|
17689
17720
|
views
|
|
17690
17721
|
} = _ref,
|
|
17691
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
17722
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$10);
|
|
17692
17723
|
var tooltipState = useTooltipState({
|
|
17693
17724
|
defaultOpen,
|
|
17694
17725
|
openDelay,
|