@app-studio/web 0.8.77 → 0.8.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion/Accordion.view.d.ts +2 -1
- package/dist/components/Alert/Alert/Alert.props.d.ts +7 -1
- package/dist/components/Alert/Alert/Alert.style.d.ts +9 -1
- package/dist/components/Alert/Alert/Alert.view.d.ts +1 -1
- package/dist/components/Alert/Alert.d.ts +1 -1
- package/dist/components/Alert/examples/darkMode.d.ts +2 -0
- package/dist/components/Badge/Badge/Badge.style.d.ts +5 -1
- package/dist/components/Badge/Badge.d.ts +1 -1
- package/dist/components/Badge/examples/darkMode.d.ts +2 -0
- package/dist/components/Badge/examples/index.d.ts +1 -0
- package/dist/components/Card/Card/Card.style.d.ts +7 -3
- package/dist/components/Card/examples/darkModeExample.d.ts +2 -0
- package/dist/components/Command/Command/Command.style.d.ts +1 -0
- package/dist/components/ContextMenu/ContextMenu/ContextMenu.view.d.ts +2 -1
- package/dist/components/DragAndDrop/DragAndDrop/DragAndDrop.props.d.ts +1 -1
- package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.view.d.ts +2 -1
- package/dist/components/Form/Label/Label/Label.type.d.ts +1 -1
- package/dist/components/Form/TextArea/TextArea/TextArea.type.d.ts +4 -2
- package/dist/components/Input/Input.type.d.ts +2 -1
- package/dist/components/Menubar/Menubar/Menubar.view.d.ts +2 -1
- package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.view.d.ts +2 -1
- package/dist/components/OTPInput/OTPInput/OTPInput.type.d.ts +1 -2
- package/dist/components/Resizable/Resizable/Resizable.style.d.ts +1 -0
- package/dist/components/Separator/Separator/Separator.style.d.ts +1 -0
- package/dist/components/Sidebar/Sidebar/Sidebar.style.d.ts +1 -0
- package/dist/components/Slider/Slider/Slider.style.d.ts +1 -0
- package/dist/components/Table/Table/Table.props.d.ts +2 -2
- package/dist/components/Toast/Toast/Toast.props.d.ts +2 -1
- package/dist/components/Tooltip/Tooltip/Tooltip.style.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip/Tooltip.view.d.ts +2 -1
- package/dist/web.cjs.development.js +559 -663
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +560 -664
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +559 -663
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
var _excluded = ["value", "children", "isDisabled", "views"],
|
|
144
144
|
_excluded2 = ["children", "value", "isExpanded", "isDisabled", "triggerId", "contentId", "views", "asChild"],
|
|
145
145
|
_excluded3 = ["children", "isExpanded", "isDisabled", "triggerId", "contentId", "views"],
|
|
146
|
-
_excluded4 = ["children", "shape", "variant", "views", "baseId", "type", "collapsible"];
|
|
146
|
+
_excluded4 = ["children", "shape", "variant", "views", "baseId", "type", "collapsible", "themeMode"];
|
|
147
147
|
// Create context for the Accordion
|
|
148
148
|
var AccordionContext = /*#__PURE__*/React.createContext({
|
|
149
149
|
expandedItems: [],
|
|
@@ -442,12 +442,7 @@
|
|
|
442
442
|
sm: '14px',
|
|
443
443
|
md: '16px',
|
|
444
444
|
lg: '18px',
|
|
445
|
-
xl: '20px'
|
|
446
|
-
'2xl': '24px',
|
|
447
|
-
'3xl': '30px',
|
|
448
|
-
'4xl': '36px',
|
|
449
|
-
'5xl': '48px',
|
|
450
|
-
'6xl': '60px'
|
|
445
|
+
xl: '20px'
|
|
451
446
|
};
|
|
452
447
|
/**
|
|
453
448
|
* Line heights following typography guidelines
|
|
@@ -457,12 +452,7 @@
|
|
|
457
452
|
sm: '20px',
|
|
458
453
|
md: '24px',
|
|
459
454
|
lg: '28px',
|
|
460
|
-
xl: '28px'
|
|
461
|
-
'2xl': '32px',
|
|
462
|
-
'3xl': '36px',
|
|
463
|
-
'4xl': '40px',
|
|
464
|
-
'5xl': '60px',
|
|
465
|
-
'6xl': '72px'
|
|
455
|
+
xl: '28px'
|
|
466
456
|
};
|
|
467
457
|
/**
|
|
468
458
|
* Font weights following typography guidelines
|
|
@@ -703,9 +693,12 @@
|
|
|
703
693
|
};
|
|
704
694
|
// Utility function to handle fill and stroke based on 'filled' prop
|
|
705
695
|
var getSvgProps = (filled, color, strokeWidth) => {
|
|
696
|
+
var {
|
|
697
|
+
getColor
|
|
698
|
+
} = appStudio.useTheme();
|
|
706
699
|
return {
|
|
707
|
-
fill: filled ? color : 'none',
|
|
708
|
-
stroke: filled ? 'none' : color,
|
|
700
|
+
fill: filled ? getColor(color) : 'none',
|
|
701
|
+
stroke: filled ? 'none' : getColor(color),
|
|
709
702
|
strokeWidth,
|
|
710
703
|
strokeLinecap: 'round',
|
|
711
704
|
strokeLinejoin: 'round'
|
|
@@ -1171,7 +1164,7 @@
|
|
|
1171
1164
|
var {
|
|
1172
1165
|
widthHeight = 24,
|
|
1173
1166
|
color = 'currentColor',
|
|
1174
|
-
filled =
|
|
1167
|
+
filled = true,
|
|
1175
1168
|
strokeWidth = 1
|
|
1176
1169
|
} = _ref19,
|
|
1177
1170
|
props = _objectWithoutPropertiesLoose(_ref19, _excluded19);
|
|
@@ -2796,93 +2789,104 @@
|
|
|
2796
2789
|
* - Transitions: Subtle animations
|
|
2797
2790
|
*/
|
|
2798
2791
|
/**
|
|
2799
|
-
*
|
|
2792
|
+
* Get theme styles for different alert variants based on theme mode
|
|
2800
2793
|
*/
|
|
2801
|
-
var
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
container: {
|
|
2817
|
-
backgroundColor: 'color.blue.50',
|
|
2818
|
-
borderColor: 'color.blue.200',
|
|
2819
|
-
boxShadow: '0 1px 2px rgba(59, 130, 246, 0.05)'
|
|
2820
|
-
},
|
|
2821
|
-
content: {
|
|
2822
|
-
color: 'color.blue.700'
|
|
2823
|
-
},
|
|
2824
|
-
icon: {
|
|
2825
|
-
color: 'color.blue.500'
|
|
2826
|
-
}
|
|
2827
|
-
},
|
|
2828
|
-
success: {
|
|
2829
|
-
container: {
|
|
2830
|
-
backgroundColor: 'color.green.50',
|
|
2831
|
-
borderColor: 'color.green.200',
|
|
2832
|
-
boxShadow: '0 1px 2px rgba(34, 197, 94, 0.05)'
|
|
2833
|
-
},
|
|
2834
|
-
content: {
|
|
2835
|
-
color: 'color.green.700'
|
|
2836
|
-
},
|
|
2837
|
-
icon: {
|
|
2838
|
-
color: 'color.green.500'
|
|
2839
|
-
}
|
|
2840
|
-
},
|
|
2841
|
-
error: {
|
|
2842
|
-
container: {
|
|
2843
|
-
backgroundColor: 'color.red.50',
|
|
2844
|
-
borderColor: 'color.red.200',
|
|
2845
|
-
boxShadow: '0 1px 2px rgba(239, 68, 68, 0.05)'
|
|
2794
|
+
var getThemes = themeMode => {
|
|
2795
|
+
var isDarkMode = themeMode === 'dark';
|
|
2796
|
+
return {
|
|
2797
|
+
default: {
|
|
2798
|
+
container: {
|
|
2799
|
+
backgroundColor: isDarkMode ? 'color.gray.800' : 'color.gray.50',
|
|
2800
|
+
borderColor: isDarkMode ? 'color.gray.700' : 'color.gray.200',
|
|
2801
|
+
boxShadow: isDarkMode ? '0 1px 2px rgba(0, 0, 0, 0.2)' : '0 1px 2px rgba(0, 0, 0, 0.05)'
|
|
2802
|
+
},
|
|
2803
|
+
content: {
|
|
2804
|
+
color: isDarkMode ? 'color.gray.300' : 'color.gray.700'
|
|
2805
|
+
},
|
|
2806
|
+
icon: {
|
|
2807
|
+
color: isDarkMode ? 'color.gray.400' : 'color.gray.500'
|
|
2808
|
+
}
|
|
2846
2809
|
},
|
|
2847
|
-
|
|
2848
|
-
|
|
2810
|
+
info: {
|
|
2811
|
+
container: {
|
|
2812
|
+
backgroundColor: isDarkMode ? 'color.blue.900' : 'color.blue.50',
|
|
2813
|
+
borderColor: isDarkMode ? 'color.blue.800' : 'color.blue.200',
|
|
2814
|
+
boxShadow: isDarkMode ? '0 1px 2px rgba(59, 130, 246, 0.2)' : '0 1px 2px rgba(59, 130, 246, 0.05)'
|
|
2815
|
+
},
|
|
2816
|
+
content: {
|
|
2817
|
+
color: isDarkMode ? 'color.blue.300' : 'color.blue.700'
|
|
2818
|
+
},
|
|
2819
|
+
icon: {
|
|
2820
|
+
color: isDarkMode ? 'color.blue.400' : 'color.blue.500'
|
|
2821
|
+
}
|
|
2849
2822
|
},
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2823
|
+
success: {
|
|
2824
|
+
container: {
|
|
2825
|
+
backgroundColor: isDarkMode ? 'color.green.900' : 'color.green.50',
|
|
2826
|
+
borderColor: isDarkMode ? 'color.green.800' : 'color.green.200',
|
|
2827
|
+
boxShadow: isDarkMode ? '0 1px 2px rgba(34, 197, 94, 0.2)' : '0 1px 2px rgba(34, 197, 94, 0.05)'
|
|
2828
|
+
},
|
|
2829
|
+
content: {
|
|
2830
|
+
color: isDarkMode ? 'color.green.300' : 'color.green.700'
|
|
2831
|
+
},
|
|
2832
|
+
icon: {
|
|
2833
|
+
color: isDarkMode ? 'color.green.400' : 'color.green.500'
|
|
2834
|
+
}
|
|
2859
2835
|
},
|
|
2860
|
-
|
|
2861
|
-
|
|
2836
|
+
error: {
|
|
2837
|
+
container: {
|
|
2838
|
+
backgroundColor: isDarkMode ? 'color.red.900' : 'color.red.50',
|
|
2839
|
+
borderColor: isDarkMode ? 'color.red.800' : 'color.red.200',
|
|
2840
|
+
boxShadow: isDarkMode ? '0 1px 2px rgba(239, 68, 68, 0.2)' : '0 1px 2px rgba(239, 68, 68, 0.05)'
|
|
2841
|
+
},
|
|
2842
|
+
content: {
|
|
2843
|
+
color: isDarkMode ? 'color.red.300' : 'color.red.700'
|
|
2844
|
+
},
|
|
2845
|
+
icon: {
|
|
2846
|
+
color: isDarkMode ? 'color.red.400' : 'color.red.500'
|
|
2847
|
+
}
|
|
2862
2848
|
},
|
|
2863
|
-
|
|
2864
|
-
|
|
2849
|
+
warning: {
|
|
2850
|
+
container: {
|
|
2851
|
+
backgroundColor: isDarkMode ? 'color.orange.900' : 'color.orange.50',
|
|
2852
|
+
borderColor: isDarkMode ? 'color.orange.800' : 'color.orange.200',
|
|
2853
|
+
boxShadow: isDarkMode ? '0 1px 2px rgba(249, 115, 22, 0.2)' : '0 1px 2px rgba(249, 115, 22, 0.05)'
|
|
2854
|
+
},
|
|
2855
|
+
content: {
|
|
2856
|
+
color: isDarkMode ? 'color.orange.300' : 'color.orange.700'
|
|
2857
|
+
},
|
|
2858
|
+
icon: {
|
|
2859
|
+
color: isDarkMode ? 'color.orange.400' : 'color.orange.500'
|
|
2860
|
+
}
|
|
2865
2861
|
}
|
|
2866
|
-
}
|
|
2862
|
+
};
|
|
2867
2863
|
};
|
|
2868
2864
|
|
|
2865
|
+
var _excluded$4 = ["icon", "title", "views", "description", "variant", "themeMode"];
|
|
2869
2866
|
/**
|
|
2870
2867
|
* Alert component that displays important messages to users
|
|
2871
2868
|
*/
|
|
2872
2869
|
var AlertView = _ref => {
|
|
2873
2870
|
var {
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2871
|
+
icon,
|
|
2872
|
+
title,
|
|
2873
|
+
views,
|
|
2874
|
+
description,
|
|
2875
|
+
variant = 'default',
|
|
2876
|
+
themeMode: elementMode
|
|
2877
|
+
} = _ref,
|
|
2878
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
2879
|
+
var {
|
|
2880
|
+
themeMode
|
|
2881
|
+
} = appStudio.useTheme();
|
|
2882
|
+
var currentThemeMode = elementMode || themeMode;
|
|
2883
|
+
var themes = getThemes(currentThemeMode);
|
|
2880
2884
|
// Select the appropriate icon based on the variant
|
|
2881
2885
|
var getIcon = () => {
|
|
2882
2886
|
var _views$icon$color, _views$icon;
|
|
2883
2887
|
if (icon) return icon;
|
|
2884
|
-
// Use the theme color directly from
|
|
2885
|
-
var iconColor = (_views$icon$color = views == null || (_views$icon = views.icon) == null ? void 0 : _views$icon.color) != null ? _views$icon$color :
|
|
2888
|
+
// Use the theme color directly from themes
|
|
2889
|
+
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;
|
|
2886
2890
|
var iconProps = {
|
|
2887
2891
|
size: 20,
|
|
2888
2892
|
color: iconColor
|
|
@@ -2913,12 +2917,12 @@
|
|
|
2913
2917
|
,
|
|
2914
2918
|
borderWidth: "1px",
|
|
2915
2919
|
borderStyle: "solid",
|
|
2916
|
-
borderColor:
|
|
2917
|
-
backgroundColor:
|
|
2918
|
-
boxShadow:
|
|
2920
|
+
borderColor: themes[variant].container.borderColor,
|
|
2921
|
+
backgroundColor: themes[variant].container.backgroundColor,
|
|
2922
|
+
boxShadow: themes[variant].container.boxShadow,
|
|
2919
2923
|
// Animation
|
|
2920
2924
|
transition: "all 0.2s ease"
|
|
2921
|
-
}, views == null ? void 0 : views.container), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
2925
|
+
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
2922
2926
|
alignSelf: "flex-start",
|
|
2923
2927
|
marginTop: "2px"
|
|
2924
2928
|
}, views == null ? void 0 : views.icon), getIcon()), /*#__PURE__*/React__default.createElement(appStudio.Vertical, {
|
|
@@ -2928,37 +2932,22 @@
|
|
|
2928
2932
|
fontWeight: "600" // Semi-bold
|
|
2929
2933
|
,
|
|
2930
2934
|
lineHeight: "24px",
|
|
2931
|
-
color:
|
|
2935
|
+
color: themes[variant].content.color
|
|
2932
2936
|
}, views == null ? void 0 : views.title), title), /*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
2933
2937
|
fontSize: "14px",
|
|
2934
2938
|
fontWeight: "400" // Regular
|
|
2935
2939
|
,
|
|
2936
2940
|
lineHeight: "20px",
|
|
2937
|
-
color:
|
|
2941
|
+
color: themes[variant].content.color
|
|
2938
2942
|
}, views == null ? void 0 : views.description), description)));
|
|
2939
2943
|
};
|
|
2940
2944
|
|
|
2941
|
-
// Definition of the AlertComponent functional component with
|
|
2942
|
-
var AlertComponent =
|
|
2943
|
-
var {
|
|
2944
|
-
icon,
|
|
2945
|
-
title,
|
|
2946
|
-
views,
|
|
2947
|
-
description,
|
|
2948
|
-
variant
|
|
2949
|
-
} = _ref;
|
|
2950
|
-
return /*#__PURE__*/React__default.createElement(AlertView, {
|
|
2951
|
-
icon: icon,
|
|
2952
|
-
title: title,
|
|
2953
|
-
views: views,
|
|
2954
|
-
description: description,
|
|
2955
|
-
variant: variant
|
|
2956
|
-
});
|
|
2957
|
-
};
|
|
2945
|
+
// Definition of the AlertComponent functional component with props.
|
|
2946
|
+
var AlertComponent = props => /*#__PURE__*/React__default.createElement(AlertView, Object.assign({}, props));
|
|
2958
2947
|
// Exporting the AlertComponent as 'Alert' for use in other parts of the application.
|
|
2959
2948
|
var Alert = AlertComponent;
|
|
2960
2949
|
|
|
2961
|
-
var _excluded$
|
|
2950
|
+
var _excluded$5 = ["ratio", "children", "views"];
|
|
2962
2951
|
// Declaration of a functional component named AspectRatioView.
|
|
2963
2952
|
var AspectRatioView = _ref => {
|
|
2964
2953
|
var {
|
|
@@ -2969,7 +2958,7 @@
|
|
|
2969
2958
|
views
|
|
2970
2959
|
// Spread the rest of the props to inherit additional properties.
|
|
2971
2960
|
} = _ref,
|
|
2972
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2961
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
2973
2962
|
return /*#__PURE__*/React__default.createElement(appStudio.Center, Object.assign({
|
|
2974
2963
|
width: '100%',
|
|
2975
2964
|
position: "relative",
|
|
@@ -2985,14 +2974,14 @@
|
|
|
2985
2974
|
}, views == null ? void 0 : views.view), children));
|
|
2986
2975
|
};
|
|
2987
2976
|
|
|
2988
|
-
var _excluded$
|
|
2977
|
+
var _excluded$6 = ["ratio", "children"];
|
|
2989
2978
|
// Declaration of the AspectRatioComponent functional component with destructured props.
|
|
2990
2979
|
var AspectRatioComponent = _ref => {
|
|
2991
2980
|
var {
|
|
2992
2981
|
ratio,
|
|
2993
2982
|
children
|
|
2994
2983
|
} = _ref,
|
|
2995
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2984
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
2996
2985
|
// Beginning of the return statement in the functional component.
|
|
2997
2986
|
return /*#__PURE__*/React__default.createElement(AspectRatioView, Object.assign({
|
|
2998
2987
|
ratio: ratio
|
|
@@ -3042,17 +3031,11 @@
|
|
|
3042
3031
|
borderColor: 'transparent',
|
|
3043
3032
|
backgroundColor: 'color.gray.100',
|
|
3044
3033
|
boxShadow: '0px 2px 4px rgba(0, 0, 0, 0.1)',
|
|
3045
|
-
transition: 'all 0.2s ease'
|
|
3046
|
-
'@media (prefers-color-scheme: dark)': {
|
|
3047
|
-
backgroundColor: 'color.gray.700'
|
|
3048
|
-
}
|
|
3034
|
+
transition: 'all 0.2s ease'
|
|
3049
3035
|
},
|
|
3050
3036
|
fallback: {
|
|
3051
3037
|
fontWeight: '500',
|
|
3052
|
-
color: 'color.gray.600'
|
|
3053
|
-
'@media (prefers-color-scheme: dark)': {
|
|
3054
|
-
color: 'color.gray.300'
|
|
3055
|
-
}
|
|
3038
|
+
color: 'color.gray.600'
|
|
3056
3039
|
},
|
|
3057
3040
|
image: {
|
|
3058
3041
|
objectFit: 'cover',
|
|
@@ -3223,58 +3206,69 @@
|
|
|
3223
3206
|
}
|
|
3224
3207
|
};
|
|
3225
3208
|
/**
|
|
3226
|
-
*
|
|
3209
|
+
* Get badge variants with consistent styling based on theme mode
|
|
3227
3210
|
*/
|
|
3228
|
-
var
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3211
|
+
var getBadgeVariants = themeMode => {
|
|
3212
|
+
var isDarkMode = themeMode === 'dark';
|
|
3213
|
+
return {
|
|
3214
|
+
filled: {
|
|
3215
|
+
backgroundColor: 'theme.primary',
|
|
3216
|
+
color: isDarkMode ? 'color.gray.900' : 'color.white',
|
|
3217
|
+
borderWidth: '1px',
|
|
3218
|
+
borderStyle: 'solid',
|
|
3219
|
+
borderColor: 'transparent',
|
|
3220
|
+
transition: 'all 0.2s ease'
|
|
3221
|
+
},
|
|
3222
|
+
outline: {
|
|
3223
|
+
backgroundColor: 'transparent',
|
|
3224
|
+
borderWidth: '1px',
|
|
3225
|
+
borderStyle: 'solid',
|
|
3226
|
+
borderColor: 'theme.primary',
|
|
3227
|
+
color: 'theme.primary',
|
|
3228
|
+
transition: 'all 0.2s ease'
|
|
3229
|
+
},
|
|
3230
|
+
link: {
|
|
3231
|
+
backgroundColor: 'transparent',
|
|
3232
|
+
borderWidth: '1px',
|
|
3233
|
+
borderStyle: 'solid',
|
|
3234
|
+
borderColor: 'transparent',
|
|
3235
|
+
color: 'theme.primary',
|
|
3236
|
+
textDecoration: 'underline',
|
|
3237
|
+
textUnderlineOffset: '2px',
|
|
3238
|
+
transition: 'all 0.2s ease'
|
|
3239
|
+
},
|
|
3240
|
+
ghost: {
|
|
3241
|
+
backgroundColor: 'transparent',
|
|
3242
|
+
color: isDarkMode ? 'color.gray.400' : 'color.gray.500',
|
|
3243
|
+
borderWidth: '1px',
|
|
3244
|
+
borderStyle: 'solid',
|
|
3245
|
+
borderColor: 'transparent',
|
|
3246
|
+
transition: 'all 0.2s ease'
|
|
3247
|
+
}
|
|
3248
|
+
};
|
|
3263
3249
|
};
|
|
3264
3250
|
|
|
3251
|
+
var _excluded$7 = ["content", "position", "shape", "variant", "size", "views", "themeMode"];
|
|
3265
3252
|
// No need to import ViewProps as it's not used directly
|
|
3266
3253
|
/**
|
|
3267
3254
|
* Badge View Component
|
|
3268
3255
|
*/
|
|
3269
3256
|
var BadgeView = _ref => {
|
|
3270
3257
|
var {
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3258
|
+
content,
|
|
3259
|
+
position,
|
|
3260
|
+
shape = 'pillShaped',
|
|
3261
|
+
variant = 'filled',
|
|
3262
|
+
size = 'md',
|
|
3263
|
+
views,
|
|
3264
|
+
themeMode: elementMode
|
|
3265
|
+
} = _ref,
|
|
3266
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
3267
|
+
var {
|
|
3268
|
+
themeMode
|
|
3269
|
+
} = appStudio.useTheme();
|
|
3270
|
+
var currentThemeMode = elementMode || themeMode;
|
|
3271
|
+
var variantStyles = getBadgeVariants(currentThemeMode)[variant];
|
|
3278
3272
|
// Combine styles for the badge
|
|
3279
3273
|
var combinedStyles = Object.assign({
|
|
3280
3274
|
// Base styles
|
|
@@ -3282,13 +3276,13 @@
|
|
|
3282
3276
|
display: 'flex',
|
|
3283
3277
|
alignItems: 'center',
|
|
3284
3278
|
justifyContent: 'center',
|
|
3285
|
-
|
|
3279
|
+
backgroundColor: 'color.black',
|
|
3286
3280
|
// Apply shape, size, and variant styles
|
|
3287
3281
|
borderRadius: BadgeShapes[shape]
|
|
3288
|
-
}, BadgeSizes[size],
|
|
3282
|
+
}, BadgeSizes[size], variantStyles, position ? PositionStyles[position] : {}, views == null ? void 0 : views.container);
|
|
3289
3283
|
return /*#__PURE__*/React__default.createElement(appStudio.Center, Object.assign({
|
|
3290
3284
|
role: "badge"
|
|
3291
|
-
}, combinedStyles), /*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
3285
|
+
}, combinedStyles, props), /*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
3292
3286
|
role: "badgeText",
|
|
3293
3287
|
fontWeight: "500" // Medium weight for better readability
|
|
3294
3288
|
,
|
|
@@ -3298,29 +3292,8 @@
|
|
|
3298
3292
|
}), content || ''));
|
|
3299
3293
|
};
|
|
3300
3294
|
|
|
3301
|
-
//
|
|
3302
|
-
var Badge =
|
|
3303
|
-
var {
|
|
3304
|
-
// Importing the BadgeView component which is the presentation component for Badge.
|
|
3305
|
-
content,
|
|
3306
|
-
// Exporting the Badge as a functional component from this module.
|
|
3307
|
-
shape,
|
|
3308
|
-
// Destructuring the props in the component function parameter list, to directly access individual properties.
|
|
3309
|
-
position,
|
|
3310
|
-
// Passing all the destructured props to the BadgeView component to maintain the same API surface.
|
|
3311
|
-
variant,
|
|
3312
|
-
size,
|
|
3313
|
-
views
|
|
3314
|
-
} = _ref;
|
|
3315
|
-
return /*#__PURE__*/React__default.createElement(BadgeView, {
|
|
3316
|
-
content: content,
|
|
3317
|
-
shape: shape,
|
|
3318
|
-
position: position,
|
|
3319
|
-
variant: variant,
|
|
3320
|
-
size: size,
|
|
3321
|
-
views: views
|
|
3322
|
-
});
|
|
3323
|
-
};
|
|
3295
|
+
// Badge component that displays a small indicator, typically used for counts or status
|
|
3296
|
+
var Badge = props => /*#__PURE__*/React__default.createElement(BadgeView, Object.assign({}, props));
|
|
3324
3297
|
|
|
3325
3298
|
var useButtonState = () => {
|
|
3326
3299
|
var [isHovered, setIsHovered] = React__default.useState(false);
|
|
@@ -3349,15 +3322,10 @@
|
|
|
3349
3322
|
sm: 14,
|
|
3350
3323
|
md: 16,
|
|
3351
3324
|
lg: 18,
|
|
3352
|
-
xl: 20
|
|
3353
|
-
'2xl': 24,
|
|
3354
|
-
'3xl': 30,
|
|
3355
|
-
'4xl': 36,
|
|
3356
|
-
'5xl': 48,
|
|
3357
|
-
'6xl': 64
|
|
3325
|
+
xl: 20
|
|
3358
3326
|
};
|
|
3359
3327
|
|
|
3360
|
-
var _excluded$
|
|
3328
|
+
var _excluded$8 = ["children", "to", "iconSize", "underline", "isHovered", "isExternal", "views", "setIsHovered"];
|
|
3361
3329
|
// Component definition for 'LinkView', a functional component with props defined by 'LinkViewProps'.
|
|
3362
3330
|
var LinkView = _ref => {
|
|
3363
3331
|
var {
|
|
@@ -3380,7 +3348,7 @@
|
|
|
3380
3348
|
// Setter function for the hover state, noop function provided by default.
|
|
3381
3349
|
setIsHovered = () => {}
|
|
3382
3350
|
} = _ref,
|
|
3383
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3351
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
3384
3352
|
// Function to handle mouse enter/leave events to toggle hover state.
|
|
3385
3353
|
var handleHover = () => {
|
|
3386
3354
|
if (underline === 'hover') setIsHovered(true);
|
|
@@ -3572,6 +3540,9 @@
|
|
|
3572
3540
|
ghost: {
|
|
3573
3541
|
backgroundColor: 'transparent',
|
|
3574
3542
|
color: color,
|
|
3543
|
+
borderWidth: 0,
|
|
3544
|
+
borderStyle: 'none',
|
|
3545
|
+
borderColor: 'transparent',
|
|
3575
3546
|
on: {
|
|
3576
3547
|
hover: {
|
|
3577
3548
|
backgroundColor: color + "10",
|
|
@@ -3606,12 +3577,7 @@
|
|
|
3606
3577
|
sm: 18,
|
|
3607
3578
|
md: 22,
|
|
3608
3579
|
lg: 26,
|
|
3609
|
-
xl: 30
|
|
3610
|
-
'2xl': 40,
|
|
3611
|
-
'3xl': 50,
|
|
3612
|
-
'4xl': 60,
|
|
3613
|
-
'5xl': 70,
|
|
3614
|
-
'6xl': 80
|
|
3580
|
+
xl: 30
|
|
3615
3581
|
};
|
|
3616
3582
|
// Specifies a mapping of spinning speed labels to numerical millisecond values, determining the speed of the Loader component's animation cycles.
|
|
3617
3583
|
var DefaultSpeeds = {
|
|
@@ -3620,7 +3586,7 @@
|
|
|
3620
3586
|
slow: 300
|
|
3621
3587
|
};
|
|
3622
3588
|
|
|
3623
|
-
var _excluded$
|
|
3589
|
+
var _excluded$9 = ["size", "speed", "color", "themeMode"],
|
|
3624
3590
|
_excluded2$2 = ["size", "speed", "color", "themeMode"],
|
|
3625
3591
|
_excluded3$2 = ["size", "speed", "color", "themeMode"],
|
|
3626
3592
|
_excluded4$2 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition", "views"];
|
|
@@ -3631,7 +3597,7 @@
|
|
|
3631
3597
|
color = 'theme.loading',
|
|
3632
3598
|
themeMode: elementMode
|
|
3633
3599
|
} = _ref,
|
|
3634
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3600
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
3635
3601
|
var {
|
|
3636
3602
|
getColor,
|
|
3637
3603
|
themeMode
|
|
@@ -3796,7 +3762,7 @@
|
|
|
3796
3762
|
// Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
|
|
3797
3763
|
var Loader = LoaderComponent;
|
|
3798
3764
|
|
|
3799
|
-
var _excluded$
|
|
3765
|
+
var _excluded$a = ["icon", "shadow", "children", "ariaLabel", "to", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered", "setIsHovered", "isExternal", "themeMode", "containerProps", "linkProps", "views"];
|
|
3800
3766
|
var contrast = /*#__PURE__*/require('contrast');
|
|
3801
3767
|
var ButtonView = _ref => {
|
|
3802
3768
|
var _props$onClick;
|
|
@@ -3825,7 +3791,7 @@
|
|
|
3825
3791
|
linkProps,
|
|
3826
3792
|
views
|
|
3827
3793
|
} = _ref,
|
|
3828
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3794
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
3829
3795
|
var {
|
|
3830
3796
|
getColor,
|
|
3831
3797
|
themeMode
|
|
@@ -3876,6 +3842,7 @@
|
|
|
3876
3842
|
alignItems: "center",
|
|
3877
3843
|
justifyContent: "center",
|
|
3878
3844
|
"aria-label": ariaLabel,
|
|
3845
|
+
backgroundColor: "transparent",
|
|
3879
3846
|
borderRadius: ButtonShapes[shape],
|
|
3880
3847
|
onClick: (_props$onClick = props.onClick) != null ? _props$onClick : onClick,
|
|
3881
3848
|
onMouseEnter: () => handleHover(true),
|
|
@@ -3943,97 +3910,95 @@
|
|
|
3943
3910
|
pillShaped: '16px'
|
|
3944
3911
|
};
|
|
3945
3912
|
/**
|
|
3946
|
-
*
|
|
3913
|
+
* Get card variants with consistent styling based on theme mode
|
|
3947
3914
|
*/
|
|
3948
|
-
var
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3915
|
+
var getCardVariants = themeMode => {
|
|
3916
|
+
var isDarkMode = themeMode === 'dark';
|
|
3917
|
+
return {
|
|
3918
|
+
default: {
|
|
3919
|
+
backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
|
|
3920
|
+
border: 'none',
|
|
3921
|
+
transition: 'all 0.2s ease'
|
|
3922
|
+
},
|
|
3923
|
+
outlined: {
|
|
3924
|
+
backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
|
|
3925
|
+
borderWidth: '1px',
|
|
3926
|
+
borderStyle: 'solid',
|
|
3927
|
+
borderColor: isDarkMode ? 'color.gray.700' : 'color.gray.200',
|
|
3928
|
+
transition: 'all 0.2s ease',
|
|
3929
|
+
_hover: {
|
|
3930
|
+
borderColor: isDarkMode ? 'color.gray.600' : 'color.gray.300'
|
|
3931
|
+
}
|
|
3932
|
+
},
|
|
3933
|
+
elevated: {
|
|
3934
|
+
backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
|
|
3935
|
+
boxShadow: isDarkMode ? '0px 2px 8px rgba(0, 0, 0, 0.2)' : '0px 2px 8px rgba(0, 0, 0, 0.08)',
|
|
3936
|
+
border: 'none',
|
|
3937
|
+
transition: 'all 0.2s ease',
|
|
3938
|
+
_hover: {
|
|
3939
|
+
boxShadow: isDarkMode ? '0px 4px 12px rgba(0, 0, 0, 0.25)' : '0px 4px 12px rgba(0, 0, 0, 0.12)',
|
|
3940
|
+
transform: 'translateY(-2px)'
|
|
3941
|
+
}
|
|
3972
3942
|
}
|
|
3973
|
-
}
|
|
3943
|
+
};
|
|
3974
3944
|
};
|
|
3975
3945
|
/**
|
|
3976
3946
|
* Function to get default styles for Card components
|
|
3977
|
-
* @param theme - Theme object
|
|
3947
|
+
* @param theme - Theme object from useTheme hook
|
|
3978
3948
|
*/
|
|
3979
|
-
var getDefaultCardStyles =
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
backgroundColor: 'color.gray.800',
|
|
3987
|
-
color: 'color.gray.100'
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
borderBottomColor: 'color.gray.700'
|
|
3997
|
-
}
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
borderTopWidth: '1px',
|
|
4008
|
-
borderTopStyle: 'solid',
|
|
4009
|
-
borderTopColor: 'color.gray.200',
|
|
4010
|
-
'@media (prefers-color-scheme: dark)': {
|
|
4011
|
-
borderTopColor: 'color.gray.700'
|
|
3949
|
+
var getDefaultCardStyles = theme => {
|
|
3950
|
+
var {
|
|
3951
|
+
themeMode
|
|
3952
|
+
} = theme;
|
|
3953
|
+
var isDarkMode = themeMode === 'dark';
|
|
3954
|
+
return {
|
|
3955
|
+
container: {
|
|
3956
|
+
backgroundColor: isDarkMode ? 'color.gray.800' : 'white',
|
|
3957
|
+
color: isDarkMode ? 'color.gray.100' : 'color.gray.900',
|
|
3958
|
+
borderRadius: '8px',
|
|
3959
|
+
overflow: 'hidden',
|
|
3960
|
+
transition: 'all 0.2s ease'
|
|
3961
|
+
},
|
|
3962
|
+
header: {
|
|
3963
|
+
padding: '16px',
|
|
3964
|
+
borderBottomWidth: '1px',
|
|
3965
|
+
borderBottomStyle: 'solid',
|
|
3966
|
+
borderBottomColor: isDarkMode ? 'color.gray.700' : 'color.gray.200'
|
|
3967
|
+
},
|
|
3968
|
+
content: {
|
|
3969
|
+
padding: '16px',
|
|
3970
|
+
color: isDarkMode ? 'color.gray.100' : 'color.gray.900'
|
|
3971
|
+
},
|
|
3972
|
+
footer: {
|
|
3973
|
+
padding: '16px',
|
|
3974
|
+
borderTopWidth: '1px',
|
|
3975
|
+
borderTopStyle: 'solid',
|
|
3976
|
+
borderTopColor: isDarkMode ? 'color.gray.700' : 'color.gray.200'
|
|
4012
3977
|
}
|
|
4013
|
-
}
|
|
4014
|
-
}
|
|
3978
|
+
};
|
|
3979
|
+
};
|
|
4015
3980
|
|
|
4016
3981
|
var CardContext = /*#__PURE__*/React.createContext({});
|
|
4017
3982
|
var useCardContext = () => {
|
|
4018
3983
|
return React.useContext(CardContext);
|
|
4019
3984
|
};
|
|
4020
3985
|
|
|
4021
|
-
var _excluded$
|
|
4022
|
-
_excluded2$3 = ["children", "views", "style"],
|
|
4023
|
-
_excluded3$3 = ["children", "views", "style"],
|
|
4024
|
-
_excluded4$3 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style"];
|
|
3986
|
+
var _excluded$b = ["children", "views", "style", "themeMode"],
|
|
3987
|
+
_excluded2$3 = ["children", "views", "style", "themeMode"],
|
|
3988
|
+
_excluded3$3 = ["children", "views", "style", "themeMode"],
|
|
3989
|
+
_excluded4$3 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style", "themeMode"];
|
|
4025
3990
|
var CardHeader = _ref => {
|
|
4026
3991
|
var _contextStyles$header;
|
|
4027
3992
|
var {
|
|
4028
3993
|
children,
|
|
4029
3994
|
style
|
|
4030
3995
|
} = _ref,
|
|
4031
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3996
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
4032
3997
|
var theme = appStudio.useTheme();
|
|
4033
3998
|
var {
|
|
4034
3999
|
styles: contextStyles
|
|
4035
4000
|
} = useCardContext();
|
|
4036
|
-
var defaultStyles = getDefaultCardStyles().header;
|
|
4001
|
+
var defaultStyles = getDefaultCardStyles(theme).header;
|
|
4037
4002
|
// Merge styles: Default < Context Override < Direct Props/Style
|
|
4038
4003
|
var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.header, props, {
|
|
4039
4004
|
style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$header = contextStyles.header) == null ? void 0 : _contextStyles$header.style, style)
|
|
@@ -4051,7 +4016,7 @@
|
|
|
4051
4016
|
var {
|
|
4052
4017
|
styles: contextStyles
|
|
4053
4018
|
} = useCardContext();
|
|
4054
|
-
var defaultStyles = getDefaultCardStyles().content;
|
|
4019
|
+
var defaultStyles = getDefaultCardStyles(theme).content;
|
|
4055
4020
|
// Merge styles: Default < Context Override < Direct Props/Style
|
|
4056
4021
|
var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.content, props, {
|
|
4057
4022
|
style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$conten = contextStyles.content) == null ? void 0 : _contextStyles$conten.style, style)
|
|
@@ -4069,7 +4034,7 @@
|
|
|
4069
4034
|
var {
|
|
4070
4035
|
styles: contextStyles
|
|
4071
4036
|
} = useCardContext();
|
|
4072
|
-
var defaultStyles = getDefaultCardStyles().footer;
|
|
4037
|
+
var defaultStyles = getDefaultCardStyles(theme).footer;
|
|
4073
4038
|
// Merge styles: Default < Context Override < Direct Props/Style
|
|
4074
4039
|
var mergedProps = Object.assign({}, defaultStyles, contextStyles == null ? void 0 : contextStyles.footer, props, {
|
|
4075
4040
|
style: Object.assign({}, defaultStyles == null ? void 0 : defaultStyles.style, contextStyles == null || (_contextStyles$footer = contextStyles.footer) == null ? void 0 : _contextStyles$footer.style, style)
|
|
@@ -4087,11 +4052,12 @@
|
|
|
4087
4052
|
footer,
|
|
4088
4053
|
isFullWidth = false,
|
|
4089
4054
|
views,
|
|
4090
|
-
style
|
|
4055
|
+
style,
|
|
4056
|
+
themeMode: elementMode
|
|
4091
4057
|
} = _ref4,
|
|
4092
4058
|
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$3);
|
|
4093
4059
|
var theme = appStudio.useTheme();
|
|
4094
|
-
var defaultStyles = getDefaultCardStyles();
|
|
4060
|
+
var defaultStyles = getDefaultCardStyles(theme);
|
|
4095
4061
|
// Prepare context value, merging default styles with user's `views` overrides
|
|
4096
4062
|
var contextValue = React.useMemo(() => ({
|
|
4097
4063
|
styles: {
|
|
@@ -4104,12 +4070,18 @@
|
|
|
4104
4070
|
// Determine if we have explicit Card.Header, Card.Content, Card.Footer components
|
|
4105
4071
|
// or if we need to wrap children in a default layout
|
|
4106
4072
|
var hasExplicitStructure = React__default.Children.toArray(children).some(child => /*#__PURE__*/React__default.isValidElement(child) && (child.type === CardHeader || child.type === CardContent || child.type === CardFooter));
|
|
4073
|
+
// Get the appropriate variant styles based on theme mode
|
|
4074
|
+
var {
|
|
4075
|
+
themeMode
|
|
4076
|
+
} = theme;
|
|
4077
|
+
var currentThemeMode = elementMode || themeMode;
|
|
4078
|
+
var variantStyles = getCardVariants(currentThemeMode)[variant];
|
|
4107
4079
|
// Merge styles for the root element
|
|
4108
4080
|
var mergedRootProps = Object.assign({
|
|
4109
4081
|
width: isFullWidth ? '100%' : 'auto',
|
|
4110
4082
|
borderRadius: CardShapes[shape],
|
|
4111
4083
|
overflow: 'hidden'
|
|
4112
|
-
},
|
|
4084
|
+
}, variantStyles, contextValue.styles.container, props, {
|
|
4113
4085
|
style: Object.assign({}, (_contextValue$styles$ = contextValue.styles.container) == null ? void 0 : _contextValue$styles$.style, style)
|
|
4114
4086
|
});
|
|
4115
4087
|
return /*#__PURE__*/React__default.createElement(CardContext.Provider, {
|
|
@@ -4420,19 +4392,19 @@
|
|
|
4420
4392
|
return context;
|
|
4421
4393
|
};
|
|
4422
4394
|
|
|
4423
|
-
var _excluded$
|
|
4395
|
+
var _excluded$c = ["children", "isActive", "views"],
|
|
4424
4396
|
_excluded2$4 = ["views", "children"],
|
|
4425
4397
|
_excluded3$4 = ["views", "children"],
|
|
4426
4398
|
_excluded4$4 = ["children", "views"],
|
|
4427
4399
|
_excluded5$1 = ["children", "views", "style"],
|
|
4428
|
-
_excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views"];
|
|
4400
|
+
_excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views", "themeMode"];
|
|
4429
4401
|
var CarouselSlide = _ref => {
|
|
4430
4402
|
var {
|
|
4431
4403
|
children,
|
|
4432
4404
|
isActive,
|
|
4433
4405
|
views
|
|
4434
4406
|
} = _ref,
|
|
4435
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4407
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
4436
4408
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
4437
4409
|
flexShrink: 0,
|
|
4438
4410
|
width: "100%",
|
|
@@ -5356,7 +5328,7 @@
|
|
|
5356
5328
|
})));
|
|
5357
5329
|
};
|
|
5358
5330
|
|
|
5359
|
-
var _excluded$
|
|
5331
|
+
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"];
|
|
5360
5332
|
var ChartView = _ref => {
|
|
5361
5333
|
var {
|
|
5362
5334
|
type,
|
|
@@ -5384,7 +5356,7 @@
|
|
|
5384
5356
|
noDataIndicator,
|
|
5385
5357
|
'aria-label': ariaLabel
|
|
5386
5358
|
} = _ref,
|
|
5387
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5359
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
5388
5360
|
// Use chart state hook
|
|
5389
5361
|
var {
|
|
5390
5362
|
animationProgress,
|
|
@@ -5714,12 +5686,12 @@
|
|
|
5714
5686
|
};
|
|
5715
5687
|
};
|
|
5716
5688
|
|
|
5717
|
-
var _excluded$
|
|
5689
|
+
var _excluded$e = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
|
|
5718
5690
|
_excluded2$5 = ["items", "children", "position", "side", "align", "views", "style"],
|
|
5719
5691
|
_excluded3$5 = ["item", "children", "onSelect", "isDisabled", "views"],
|
|
5720
5692
|
_excluded4$5 = ["views"],
|
|
5721
5693
|
_excluded5$2 = ["views"],
|
|
5722
|
-
_excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views"];
|
|
5694
|
+
_excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views", "themeMode"];
|
|
5723
5695
|
// Create context for the ContextMenu
|
|
5724
5696
|
var ContextMenuContext = /*#__PURE__*/React.createContext({
|
|
5725
5697
|
isOpen: false,
|
|
@@ -5770,7 +5742,7 @@
|
|
|
5770
5742
|
isDisabled = false,
|
|
5771
5743
|
views
|
|
5772
5744
|
} = _ref2,
|
|
5773
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
5745
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$e);
|
|
5774
5746
|
var {
|
|
5775
5747
|
triggerRef,
|
|
5776
5748
|
contentId,
|
|
@@ -6053,7 +6025,7 @@
|
|
|
6053
6025
|
}));
|
|
6054
6026
|
};
|
|
6055
6027
|
|
|
6056
|
-
var _excluded$
|
|
6028
|
+
var _excluded$f = ["children", "items", "size", "variant", "disableNativeContextMenu", "onOpenChange", "views"];
|
|
6057
6029
|
/**
|
|
6058
6030
|
* ContextMenu component for displaying a custom context menu on right-click.
|
|
6059
6031
|
* Supports both data-driven approach (with items prop) and compound component pattern.
|
|
@@ -6068,7 +6040,7 @@
|
|
|
6068
6040
|
onOpenChange,
|
|
6069
6041
|
views
|
|
6070
6042
|
} = _ref,
|
|
6071
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6043
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
6072
6044
|
var state = useContextMenuState({
|
|
6073
6045
|
size,
|
|
6074
6046
|
variant,
|
|
@@ -6120,7 +6092,7 @@
|
|
|
6120
6092
|
ContextMenu.Divider = ContextMenuDivider;
|
|
6121
6093
|
ContextMenu.Separator = ContextMenuSeparator; // Add the Separator component
|
|
6122
6094
|
|
|
6123
|
-
var _excluded$
|
|
6095
|
+
var _excluded$g = ["src", "color", "views", "themeMode"],
|
|
6124
6096
|
_excluded2$6 = ["path"];
|
|
6125
6097
|
var FileSVG = _ref => {
|
|
6126
6098
|
var {
|
|
@@ -6128,7 +6100,7 @@
|
|
|
6128
6100
|
color,
|
|
6129
6101
|
views
|
|
6130
6102
|
} = _ref,
|
|
6131
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6103
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
6132
6104
|
var {
|
|
6133
6105
|
getColor,
|
|
6134
6106
|
themeMode
|
|
@@ -6202,7 +6174,7 @@
|
|
|
6202
6174
|
};
|
|
6203
6175
|
};
|
|
6204
6176
|
|
|
6205
|
-
var _excluded$
|
|
6177
|
+
var _excluded$h = ["children", "views"];
|
|
6206
6178
|
var HelperText = _ref => {
|
|
6207
6179
|
var {
|
|
6208
6180
|
children,
|
|
@@ -6210,7 +6182,7 @@
|
|
|
6210
6182
|
helperText: {}
|
|
6211
6183
|
}
|
|
6212
6184
|
} = _ref,
|
|
6213
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6185
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
6214
6186
|
return /*#__PURE__*/React__default.createElement(Text
|
|
6215
6187
|
// Typography properties
|
|
6216
6188
|
, Object.assign({
|
|
@@ -6236,7 +6208,7 @@
|
|
|
6236
6208
|
}, views['helperText'], props), children);
|
|
6237
6209
|
};
|
|
6238
6210
|
|
|
6239
|
-
var _excluded$
|
|
6211
|
+
var _excluded$i = ["children", "helperText", "error", "views"];
|
|
6240
6212
|
var FieldContainer = _ref => {
|
|
6241
6213
|
var {
|
|
6242
6214
|
children,
|
|
@@ -6244,7 +6216,7 @@
|
|
|
6244
6216
|
error = false,
|
|
6245
6217
|
views
|
|
6246
6218
|
} = _ref,
|
|
6247
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6219
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
6248
6220
|
return /*#__PURE__*/React__default.createElement(appStudio.Vertical
|
|
6249
6221
|
// Layout properties
|
|
6250
6222
|
, Object.assign({
|
|
@@ -6252,9 +6224,9 @@
|
|
|
6252
6224
|
gap: 8,
|
|
6253
6225
|
position: "relative",
|
|
6254
6226
|
width: "100%"
|
|
6255
|
-
}, props), children, !error && helperText && (/*#__PURE__*/React__default.createElement(HelperText, Object.assign({
|
|
6227
|
+
}, props, views == null ? void 0 : views.container), children, !error && helperText && (/*#__PURE__*/React__default.createElement(HelperText, Object.assign({
|
|
6256
6228
|
marginTop: 4
|
|
6257
|
-
}, views), helperText)), error && (/*#__PURE__*/React__default.createElement(Text, {
|
|
6229
|
+
}, views == null ? void 0 : views.helperText), helperText)), error && (/*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
6258
6230
|
size: "xs",
|
|
6259
6231
|
marginTop: 4,
|
|
6260
6232
|
marginHorizontal: 0,
|
|
@@ -6262,7 +6234,7 @@
|
|
|
6262
6234
|
,
|
|
6263
6235
|
color: "color.red.500",
|
|
6264
6236
|
transition: "all 0.2s ease"
|
|
6265
|
-
}, error)));
|
|
6237
|
+
}, views == null ? void 0 : views.error), error)));
|
|
6266
6238
|
};
|
|
6267
6239
|
|
|
6268
6240
|
/**
|
|
@@ -6381,7 +6353,7 @@
|
|
|
6381
6353
|
paddingRight: '16px'
|
|
6382
6354
|
};
|
|
6383
6355
|
|
|
6384
|
-
var _excluded$
|
|
6356
|
+
var _excluded$j = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "showLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "views"];
|
|
6385
6357
|
var FieldContent = _ref => {
|
|
6386
6358
|
var {
|
|
6387
6359
|
shadow,
|
|
@@ -6399,7 +6371,7 @@
|
|
|
6399
6371
|
pickerBox: {}
|
|
6400
6372
|
}
|
|
6401
6373
|
} = _ref,
|
|
6402
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6374
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
6403
6375
|
// Determine if the field is in an interactive state
|
|
6404
6376
|
var isInteractive = (isHovered || isFocused) && !isDisabled;
|
|
6405
6377
|
// Set the appropriate color based on state
|
|
@@ -6428,12 +6400,12 @@
|
|
|
6428
6400
|
}, showLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], views['box'], props), children);
|
|
6429
6401
|
};
|
|
6430
6402
|
|
|
6431
|
-
var _excluded$
|
|
6403
|
+
var _excluded$k = ["children"];
|
|
6432
6404
|
var FieldIcons = _ref => {
|
|
6433
6405
|
var {
|
|
6434
6406
|
children
|
|
6435
6407
|
} = _ref,
|
|
6436
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6408
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
6437
6409
|
return /*#__PURE__*/React__default.createElement(appStudio.Center, Object.assign({
|
|
6438
6410
|
gap: 10,
|
|
6439
6411
|
right: 16,
|
|
@@ -6485,7 +6457,7 @@
|
|
|
6485
6457
|
}
|
|
6486
6458
|
};
|
|
6487
6459
|
|
|
6488
|
-
var _excluded$
|
|
6460
|
+
var _excluded$l = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
|
|
6489
6461
|
var LabelView = _ref => {
|
|
6490
6462
|
var {
|
|
6491
6463
|
children,
|
|
@@ -6501,7 +6473,7 @@
|
|
|
6501
6473
|
size = 'sm'
|
|
6502
6474
|
// The fontSize prop for the Element is determined by the 'size' prop passed to LabelView.
|
|
6503
6475
|
} = _ref,
|
|
6504
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6476
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
6505
6477
|
// The fontStyle prop toggles between 'italic' and 'normal' based on the 'isItalic' boolean prop.
|
|
6506
6478
|
var headingStyles = heading ? HeadingSizes$1[heading] : {};
|
|
6507
6479
|
// fontWeight is derived from the Typography module, ensuring consistent font weighting across the app.
|
|
@@ -6533,7 +6505,7 @@
|
|
|
6533
6505
|
var Label = LabelComponent;
|
|
6534
6506
|
// Export the 'LabelComponent' as 'Label' to be reused throughout the project.
|
|
6535
6507
|
|
|
6536
|
-
var _excluded$
|
|
6508
|
+
var _excluded$m = ["children", "size", "error", "color", "views", "helperText"];
|
|
6537
6509
|
var FieldLabel = _ref => {
|
|
6538
6510
|
var {
|
|
6539
6511
|
children,
|
|
@@ -6544,7 +6516,7 @@
|
|
|
6544
6516
|
label: {}
|
|
6545
6517
|
}
|
|
6546
6518
|
} = _ref,
|
|
6547
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6519
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
6548
6520
|
return /*#__PURE__*/React__default.createElement(Label
|
|
6549
6521
|
// Position properties
|
|
6550
6522
|
, Object.assign({
|
|
@@ -6565,12 +6537,12 @@
|
|
|
6565
6537
|
}, views['label'], props), children);
|
|
6566
6538
|
};
|
|
6567
6539
|
|
|
6568
|
-
var _excluded$
|
|
6540
|
+
var _excluded$n = ["children"];
|
|
6569
6541
|
var FieldWrapper = _ref => {
|
|
6570
6542
|
var {
|
|
6571
6543
|
children
|
|
6572
6544
|
} = _ref,
|
|
6573
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6545
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
6574
6546
|
return /*#__PURE__*/React__default.createElement(appStudio.Vertical
|
|
6575
6547
|
// Layout properties
|
|
6576
6548
|
, Object.assign({
|
|
@@ -6603,7 +6575,7 @@
|
|
|
6603
6575
|
xl: 28
|
|
6604
6576
|
};
|
|
6605
6577
|
|
|
6606
|
-
var _excluded$
|
|
6578
|
+
var _excluded$o = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
6607
6579
|
_excluded2$7 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
6608
6580
|
_excluded3$6 = ["option", "size", "removeOption"],
|
|
6609
6581
|
_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"];
|
|
@@ -6621,7 +6593,7 @@
|
|
|
6621
6593
|
callback = () => {},
|
|
6622
6594
|
style
|
|
6623
6595
|
} = _ref,
|
|
6624
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6596
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
6625
6597
|
// Handles the click event on an option by invoking the callback with the selected option's value
|
|
6626
6598
|
var handleOptionClick = option => callback(option);
|
|
6627
6599
|
// Toggles the hover state on the item
|
|
@@ -7041,26 +7013,6 @@
|
|
|
7041
7013
|
xl: {
|
|
7042
7014
|
height: '28px',
|
|
7043
7015
|
width: '28px'
|
|
7044
|
-
},
|
|
7045
|
-
'2xl': {
|
|
7046
|
-
height: '32px',
|
|
7047
|
-
width: '32px'
|
|
7048
|
-
},
|
|
7049
|
-
'3xl': {
|
|
7050
|
-
height: '36px',
|
|
7051
|
-
width: '36px'
|
|
7052
|
-
},
|
|
7053
|
-
'4xl': {
|
|
7054
|
-
height: '40px',
|
|
7055
|
-
width: '40px'
|
|
7056
|
-
},
|
|
7057
|
-
'5xl': {
|
|
7058
|
-
height: '44px',
|
|
7059
|
-
width: '44px'
|
|
7060
|
-
},
|
|
7061
|
-
'6xl': {
|
|
7062
|
-
height: '48px',
|
|
7063
|
-
width: '48px'
|
|
7064
7016
|
}
|
|
7065
7017
|
};
|
|
7066
7018
|
/**
|
|
@@ -7087,26 +7039,6 @@
|
|
|
7087
7039
|
xl: {
|
|
7088
7040
|
height: '40px',
|
|
7089
7041
|
width: '72px'
|
|
7090
|
-
},
|
|
7091
|
-
'2xl': {
|
|
7092
|
-
height: '44px',
|
|
7093
|
-
width: '80px'
|
|
7094
|
-
},
|
|
7095
|
-
'3xl': {
|
|
7096
|
-
height: '48px',
|
|
7097
|
-
width: '88px'
|
|
7098
|
-
},
|
|
7099
|
-
'4xl': {
|
|
7100
|
-
height: '52px',
|
|
7101
|
-
width: '96px'
|
|
7102
|
-
},
|
|
7103
|
-
'5xl': {
|
|
7104
|
-
height: '56px',
|
|
7105
|
-
width: '104px'
|
|
7106
|
-
},
|
|
7107
|
-
'6xl': {
|
|
7108
|
-
height: '60px',
|
|
7109
|
-
width: '112px'
|
|
7110
7042
|
}
|
|
7111
7043
|
};
|
|
7112
7044
|
/**
|
|
@@ -7133,26 +7065,6 @@
|
|
|
7133
7065
|
xl: {
|
|
7134
7066
|
paddingVertical: 4,
|
|
7135
7067
|
paddingHorizontal: 4
|
|
7136
|
-
},
|
|
7137
|
-
'2xl': {
|
|
7138
|
-
paddingVertical: 4,
|
|
7139
|
-
paddingHorizontal: 4
|
|
7140
|
-
},
|
|
7141
|
-
'3xl': {
|
|
7142
|
-
paddingVertical: 4,
|
|
7143
|
-
paddingHorizontal: 4
|
|
7144
|
-
},
|
|
7145
|
-
'4xl': {
|
|
7146
|
-
paddingVertical: 4,
|
|
7147
|
-
paddingHorizontal: 4
|
|
7148
|
-
},
|
|
7149
|
-
'5xl': {
|
|
7150
|
-
paddingVertical: 4,
|
|
7151
|
-
paddingHorizontal: 4
|
|
7152
|
-
},
|
|
7153
|
-
'6xl': {
|
|
7154
|
-
paddingVertical: 4,
|
|
7155
|
-
paddingHorizontal: 4
|
|
7156
7068
|
}
|
|
7157
7069
|
};
|
|
7158
7070
|
/**
|
|
@@ -7180,7 +7092,7 @@
|
|
|
7180
7092
|
}
|
|
7181
7093
|
};
|
|
7182
7094
|
|
|
7183
|
-
var _excluded$
|
|
7095
|
+
var _excluded$p = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "views"];
|
|
7184
7096
|
var SwitchContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
|
|
7185
7097
|
type: "checkbox"
|
|
7186
7098
|
}, props));
|
|
@@ -7209,7 +7121,7 @@
|
|
|
7209
7121
|
label: {}
|
|
7210
7122
|
}
|
|
7211
7123
|
} = _ref,
|
|
7212
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7124
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
7213
7125
|
var handleToggle = event => {
|
|
7214
7126
|
if (!isReadOnly) {
|
|
7215
7127
|
setValue(!value);
|
|
@@ -7333,7 +7245,7 @@
|
|
|
7333
7245
|
// Export of the useTextAreaState hook for external usage.
|
|
7334
7246
|
};
|
|
7335
7247
|
|
|
7336
|
-
var _excluded$
|
|
7248
|
+
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"];
|
|
7337
7249
|
var TextAreaView = _ref => {
|
|
7338
7250
|
var {
|
|
7339
7251
|
id,
|
|
@@ -7359,20 +7271,16 @@
|
|
|
7359
7271
|
onBlur = () => {},
|
|
7360
7272
|
onChange,
|
|
7361
7273
|
onFocus,
|
|
7362
|
-
onChangeText,
|
|
7363
7274
|
setHint = () => {},
|
|
7364
7275
|
setValue = () => {},
|
|
7365
7276
|
setIsFocused = () => {},
|
|
7366
7277
|
setIsHovered = () => {},
|
|
7367
7278
|
views = {
|
|
7368
|
-
box: {},
|
|
7369
|
-
text: {},
|
|
7370
7279
|
label: {},
|
|
7371
|
-
helperText: {}
|
|
7372
|
-
field: {}
|
|
7280
|
+
helperText: {}
|
|
7373
7281
|
}
|
|
7374
7282
|
} = _ref,
|
|
7375
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7283
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
7376
7284
|
var showLabel = !!(isFocused && label);
|
|
7377
7285
|
/**
|
|
7378
7286
|
* Styles for the textarea field
|
|
@@ -7380,11 +7288,11 @@
|
|
|
7380
7288
|
var fieldStyles = Object.assign({
|
|
7381
7289
|
// Layout properties
|
|
7382
7290
|
margin: 0,
|
|
7383
|
-
paddingVertical:
|
|
7384
|
-
paddingHorizontal:
|
|
7291
|
+
paddingVertical: 2,
|
|
7292
|
+
paddingHorizontal: 2,
|
|
7385
7293
|
width: '100%',
|
|
7386
|
-
|
|
7387
|
-
|
|
7294
|
+
maxHeight: 'calc(100vh - 100px)',
|
|
7295
|
+
height: 'calc(5em)',
|
|
7388
7296
|
border: 'none',
|
|
7389
7297
|
resize: 'vertical',
|
|
7390
7298
|
// Focus state
|
|
@@ -7395,7 +7303,7 @@
|
|
|
7395
7303
|
},
|
|
7396
7304
|
// Typography properties
|
|
7397
7305
|
fontSize: appStudio.Typography.fontSizes[size],
|
|
7398
|
-
lineHeight:
|
|
7306
|
+
lineHeight: appStudio.Typography.fontSizes[size] * 1.5,
|
|
7399
7307
|
letterSpacing: '-0.01em',
|
|
7400
7308
|
// Visual properties
|
|
7401
7309
|
backgroundColor: 'transparent',
|
|
@@ -7403,11 +7311,7 @@
|
|
|
7403
7311
|
// State properties
|
|
7404
7312
|
cursor: isDisabled ? 'not-allowed' : 'text',
|
|
7405
7313
|
// Animation
|
|
7406
|
-
transition: 'all 0.2s ease'
|
|
7407
|
-
// Dark mode support
|
|
7408
|
-
'@media (prefers-color-scheme: dark)': {
|
|
7409
|
-
color: isDisabled ? 'color.gray.600' : 'color.gray.100'
|
|
7410
|
-
}
|
|
7314
|
+
transition: 'all 0.2s ease'
|
|
7411
7315
|
}, views['field']);
|
|
7412
7316
|
var handleHover = () => setIsHovered(!isHovered);
|
|
7413
7317
|
var handleFocus = () => {
|
|
@@ -7421,19 +7325,17 @@
|
|
|
7421
7325
|
var handleChange = event => {
|
|
7422
7326
|
if (typeof event === 'string') {
|
|
7423
7327
|
setValue(event);
|
|
7424
|
-
if (onChangeText) onChangeText(event);
|
|
7425
7328
|
if (onChange) onChange(event);
|
|
7426
7329
|
} else {
|
|
7427
7330
|
setValue(event.target.value);
|
|
7428
|
-
if (onChangeText) onChangeText(event.target.value);
|
|
7429
7331
|
if (onChange) onChange(event.target.value);
|
|
7430
7332
|
}
|
|
7431
7333
|
};
|
|
7432
|
-
return /*#__PURE__*/React__default.createElement(FieldContainer, {
|
|
7334
|
+
return /*#__PURE__*/React__default.createElement(FieldContainer, Object.assign({
|
|
7433
7335
|
helperText: helperText,
|
|
7434
7336
|
error: error,
|
|
7435
7337
|
views: views
|
|
7436
|
-
}, /*#__PURE__*/React__default.createElement(FieldContent, {
|
|
7338
|
+
}, props), /*#__PURE__*/React__default.createElement(FieldContent, Object.assign({
|
|
7437
7339
|
label: label,
|
|
7438
7340
|
size: size,
|
|
7439
7341
|
error: error,
|
|
@@ -7450,11 +7352,11 @@
|
|
|
7450
7352
|
showLabel: showLabel,
|
|
7451
7353
|
onMouseEnter: handleHover,
|
|
7452
7354
|
onMouseLeave: handleHover
|
|
7453
|
-
}, /*#__PURE__*/React__default.createElement(FieldWrapper, null, showLabel && (/*#__PURE__*/React__default.createElement(FieldLabel, Object.assign({
|
|
7355
|
+
}, views == null ? void 0 : views.content), /*#__PURE__*/React__default.createElement(FieldWrapper, Object.assign({}, views == null ? void 0 : views.warper), showLabel && (/*#__PURE__*/React__default.createElement(FieldLabel, Object.assign({
|
|
7454
7356
|
htmlFor: id,
|
|
7455
7357
|
color: 'theme.primary',
|
|
7456
7358
|
error: error
|
|
7457
|
-
}, views), label)), /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
7359
|
+
}, views == null ? void 0 : views.label), label)), /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
7458
7360
|
as: "textarea",
|
|
7459
7361
|
id: id,
|
|
7460
7362
|
name: name,
|
|
@@ -7464,15 +7366,13 @@
|
|
|
7464
7366
|
readOnly: isReadOnly,
|
|
7465
7367
|
disabled: isDisabled,
|
|
7466
7368
|
autoFocus: isAutoFocus,
|
|
7467
|
-
editable: isEditable,
|
|
7369
|
+
editable: !!isEditable.toString(),
|
|
7468
7370
|
placeholder: hint,
|
|
7469
7371
|
onBlur: handleBlur,
|
|
7470
7372
|
onFocus: handleFocus,
|
|
7471
|
-
multiline: isMultiline
|
|
7472
|
-
|
|
7473
|
-
|
|
7474
|
-
onChangeText: handleChange
|
|
7475
|
-
})))));
|
|
7373
|
+
multiline: !!isMultiline.toString(),
|
|
7374
|
+
onChange: handleChange
|
|
7375
|
+
}, fieldStyles, views == null ? void 0 : views.textarea)))));
|
|
7476
7376
|
};
|
|
7477
7377
|
|
|
7478
7378
|
// Defines the TextAreaComponent as a functional component that accepts TextAreaProps for type safety and structure.
|
|
@@ -7519,7 +7419,7 @@
|
|
|
7519
7419
|
};
|
|
7520
7420
|
};
|
|
7521
7421
|
|
|
7522
|
-
var _excluded$
|
|
7422
|
+
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"];
|
|
7523
7423
|
/**
|
|
7524
7424
|
* Input component for text fields
|
|
7525
7425
|
*/
|
|
@@ -7540,7 +7440,7 @@
|
|
|
7540
7440
|
onChangeText,
|
|
7541
7441
|
shadow = {},
|
|
7542
7442
|
views = {
|
|
7543
|
-
|
|
7443
|
+
container: {},
|
|
7544
7444
|
field: {},
|
|
7545
7445
|
label: {},
|
|
7546
7446
|
helperText: {},
|
|
@@ -7565,7 +7465,7 @@
|
|
|
7565
7465
|
onBlur = () => {},
|
|
7566
7466
|
themeMode: elementMode
|
|
7567
7467
|
} = _ref,
|
|
7568
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7468
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
7569
7469
|
var {
|
|
7570
7470
|
getColor,
|
|
7571
7471
|
themeMode
|
|
@@ -7740,26 +7640,6 @@
|
|
|
7740
7640
|
xl: {
|
|
7741
7641
|
height: '32px',
|
|
7742
7642
|
width: '32px'
|
|
7743
|
-
},
|
|
7744
|
-
'2xl': {
|
|
7745
|
-
height: '36px',
|
|
7746
|
-
width: '36px'
|
|
7747
|
-
},
|
|
7748
|
-
'3xl': {
|
|
7749
|
-
height: '40px',
|
|
7750
|
-
width: '40px'
|
|
7751
|
-
},
|
|
7752
|
-
'4xl': {
|
|
7753
|
-
height: '44px',
|
|
7754
|
-
width: '44px'
|
|
7755
|
-
},
|
|
7756
|
-
'5xl': {
|
|
7757
|
-
height: '48px',
|
|
7758
|
-
width: '48px'
|
|
7759
|
-
},
|
|
7760
|
-
'6xl': {
|
|
7761
|
-
height: '52px',
|
|
7762
|
-
width: '52px'
|
|
7763
7643
|
}
|
|
7764
7644
|
};
|
|
7765
7645
|
/**
|
|
@@ -7771,12 +7651,7 @@
|
|
|
7771
7651
|
sm: 14,
|
|
7772
7652
|
md: 16,
|
|
7773
7653
|
lg: 20,
|
|
7774
|
-
xl: 24
|
|
7775
|
-
'2xl': 28,
|
|
7776
|
-
'3xl': 32,
|
|
7777
|
-
'4xl': 36,
|
|
7778
|
-
'5xl': 40,
|
|
7779
|
-
'6xl': 44
|
|
7654
|
+
xl: 24
|
|
7780
7655
|
};
|
|
7781
7656
|
/**
|
|
7782
7657
|
* Variant styles for the Checkbox component
|
|
@@ -7848,7 +7723,7 @@
|
|
|
7848
7723
|
}
|
|
7849
7724
|
};
|
|
7850
7725
|
|
|
7851
|
-
var _excluded$
|
|
7726
|
+
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"];
|
|
7852
7727
|
var CheckboxView = _ref => {
|
|
7853
7728
|
var {
|
|
7854
7729
|
id,
|
|
@@ -7875,7 +7750,7 @@
|
|
|
7875
7750
|
},
|
|
7876
7751
|
infoText
|
|
7877
7752
|
} = _ref,
|
|
7878
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7753
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
7879
7754
|
var handleHover = () => setIsHovered(!isHovered);
|
|
7880
7755
|
var handleChange = () => {
|
|
7881
7756
|
if (!isReadOnly && !isDisabled) {
|
|
@@ -9461,11 +9336,11 @@
|
|
|
9461
9336
|
xl: 16
|
|
9462
9337
|
};
|
|
9463
9338
|
|
|
9464
|
-
var _excluded$
|
|
9339
|
+
var _excluded$t = ["size"],
|
|
9465
9340
|
_excluded2$8 = ["size"],
|
|
9466
9341
|
_excluded3$7 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "onChange", "onBlur", "setHide", "setNewOptions", "setIsHovered", "setIsFocused", "setValue", "views", "themeMode"];
|
|
9467
9342
|
var CountryList = _ref => {
|
|
9468
|
-
var props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9343
|
+
var props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
9469
9344
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
9470
9345
|
as: "ul"
|
|
9471
9346
|
}, props));
|
|
@@ -9572,8 +9447,7 @@
|
|
|
9572
9447
|
icon: {},
|
|
9573
9448
|
label: {},
|
|
9574
9449
|
dropDown: {},
|
|
9575
|
-
helperText: {}
|
|
9576
|
-
box: {}
|
|
9450
|
+
helperText: {}
|
|
9577
9451
|
},
|
|
9578
9452
|
themeMode: elementMode
|
|
9579
9453
|
} = _ref5,
|
|
@@ -9705,7 +9579,7 @@
|
|
|
9705
9579
|
};
|
|
9706
9580
|
};
|
|
9707
9581
|
|
|
9708
|
-
var _excluded$
|
|
9582
|
+
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"];
|
|
9709
9583
|
var DatePickerContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
|
|
9710
9584
|
type: "date"
|
|
9711
9585
|
}, props));
|
|
@@ -9721,7 +9595,7 @@
|
|
|
9721
9595
|
variant = 'default',
|
|
9722
9596
|
shape = 'default',
|
|
9723
9597
|
views = {
|
|
9724
|
-
|
|
9598
|
+
container: {},
|
|
9725
9599
|
label: {},
|
|
9726
9600
|
helperText: {},
|
|
9727
9601
|
text: {},
|
|
@@ -9738,7 +9612,7 @@
|
|
|
9738
9612
|
onChange,
|
|
9739
9613
|
onChangeText
|
|
9740
9614
|
} = _ref,
|
|
9741
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9615
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
9742
9616
|
var showLabel = !!(isFocused && label);
|
|
9743
9617
|
var handleHover = () => setIsHovered(!isHovered);
|
|
9744
9618
|
var handleFocus = () => setIsFocused(true);
|
|
@@ -9825,7 +9699,7 @@
|
|
|
9825
9699
|
}, props, textFieldStates);
|
|
9826
9700
|
};
|
|
9827
9701
|
|
|
9828
|
-
var _excluded$
|
|
9702
|
+
var _excluded$v = ["visibleIcon", "hiddenIcon"],
|
|
9829
9703
|
_excluded2$9 = ["isVisible", "setIsVisible"];
|
|
9830
9704
|
var PasswordComponent = _ref => {
|
|
9831
9705
|
var {
|
|
@@ -9836,7 +9710,7 @@
|
|
|
9836
9710
|
widthHeight: 14
|
|
9837
9711
|
})
|
|
9838
9712
|
} = _ref,
|
|
9839
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9713
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
9840
9714
|
var _usePasswordState = usePasswordState(props),
|
|
9841
9715
|
{
|
|
9842
9716
|
isVisible,
|
|
@@ -9890,7 +9764,7 @@
|
|
|
9890
9764
|
};
|
|
9891
9765
|
};
|
|
9892
9766
|
|
|
9893
|
-
var _excluded$
|
|
9767
|
+
var _excluded$w = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "views", "isDropdownVisible", "setIsDropdownVisible"];
|
|
9894
9768
|
// Defines the functional component 'ComboBoxView' with destructured props.
|
|
9895
9769
|
var ComboBoxView = _ref => {
|
|
9896
9770
|
var {
|
|
@@ -9915,7 +9789,7 @@
|
|
|
9915
9789
|
setIsDropdownVisible
|
|
9916
9790
|
// Collects all further props not destructured explicitly.
|
|
9917
9791
|
} = _ref,
|
|
9918
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9792
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
|
|
9919
9793
|
// Sets up an effect to handle clicking outside the dropdown to close it.
|
|
9920
9794
|
React.useEffect(() => {
|
|
9921
9795
|
var handleClickOutside = event => {
|
|
@@ -10004,7 +9878,7 @@
|
|
|
10004
9878
|
widthHeight: 12
|
|
10005
9879
|
}),
|
|
10006
9880
|
views: {
|
|
10007
|
-
|
|
9881
|
+
container: Object.assign({
|
|
10008
9882
|
width: '100%',
|
|
10009
9883
|
padding: '6px 12px',
|
|
10010
9884
|
borderBottom: filteredItems.length > 0 ? '1px solid #ccc' : '1px solid transparent'
|
|
@@ -10027,7 +9901,7 @@
|
|
|
10027
9901
|
}))))))))))));
|
|
10028
9902
|
};
|
|
10029
9903
|
|
|
10030
|
-
var _excluded$
|
|
9904
|
+
var _excluded$x = ["id", "name", "items", "placeholder", "searchPlaceholder"];
|
|
10031
9905
|
// Defines the ComboBoxComponent functional component with ComboBoxProps
|
|
10032
9906
|
var ComboBoxComponent = _ref => {
|
|
10033
9907
|
var {
|
|
@@ -10043,7 +9917,7 @@
|
|
|
10043
9917
|
searchPlaceholder
|
|
10044
9918
|
// Destructures the rest of the props not explicitly defined
|
|
10045
9919
|
} = _ref,
|
|
10046
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9920
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
|
|
10047
9921
|
// Initializes ComboBox state using custom hook with items and placeholders
|
|
10048
9922
|
var state = useComboBoxState(items, placeholder, searchPlaceholder);
|
|
10049
9923
|
return (
|
|
@@ -10348,7 +10222,7 @@
|
|
|
10348
10222
|
};
|
|
10349
10223
|
};
|
|
10350
10224
|
|
|
10351
|
-
var _excluded$
|
|
10225
|
+
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"];
|
|
10352
10226
|
// Create a context for OTP input slots
|
|
10353
10227
|
var OTPInputContext = /*#__PURE__*/React.createContext({
|
|
10354
10228
|
slots: [],
|
|
@@ -10374,14 +10248,7 @@
|
|
|
10374
10248
|
length = 6,
|
|
10375
10249
|
helperText,
|
|
10376
10250
|
placeholder = '',
|
|
10377
|
-
views = {
|
|
10378
|
-
container: {},
|
|
10379
|
-
input: {},
|
|
10380
|
-
box: {},
|
|
10381
|
-
text: {},
|
|
10382
|
-
label: {},
|
|
10383
|
-
helperText: {}
|
|
10384
|
-
},
|
|
10251
|
+
views = {},
|
|
10385
10252
|
size = 'md',
|
|
10386
10253
|
shape = 'rounded',
|
|
10387
10254
|
variant = 'outline',
|
|
@@ -10409,7 +10276,7 @@
|
|
|
10409
10276
|
onFocus = () => {}
|
|
10410
10277
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10411
10278
|
} = _ref,
|
|
10412
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
10279
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
10413
10280
|
appStudio.useTheme(); // Initialize theme context
|
|
10414
10281
|
var showLabel = !!label;
|
|
10415
10282
|
// Create context value for slots
|
|
@@ -10487,7 +10354,7 @@
|
|
|
10487
10354
|
width: "100%",
|
|
10488
10355
|
position: "relative",
|
|
10489
10356
|
height: size === 'xs' ? '32px' : size === 'sm' ? '36px' : size === 'md' ? '40px' : size === 'lg' ? '48px' : '56px'
|
|
10490
|
-
}, views.
|
|
10357
|
+
}, views.container), slot.char ? (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
10491
10358
|
textAlign: "center",
|
|
10492
10359
|
fontSize: size === 'xs' ? '14px' : size === 'sm' ? '16px' : size === 'md' ? '18px' : size === 'lg' ? '20px' : '24px',
|
|
10493
10360
|
fontWeight: "medium"
|
|
@@ -10639,7 +10506,7 @@
|
|
|
10639
10506
|
};
|
|
10640
10507
|
var OTPInput = OTPInputComponent;
|
|
10641
10508
|
|
|
10642
|
-
var _excluded$
|
|
10509
|
+
var _excluded$z = ["children", "autoFocus", "initFocus", "onChange"];
|
|
10643
10510
|
var FocusContext = /*#__PURE__*/React.createContext({
|
|
10644
10511
|
active: false,
|
|
10645
10512
|
focusNextInput: () => {},
|
|
@@ -10655,7 +10522,7 @@
|
|
|
10655
10522
|
initFocus,
|
|
10656
10523
|
onChange = () => {}
|
|
10657
10524
|
} = _ref,
|
|
10658
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
10525
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
10659
10526
|
var formik$1 = formik.useFormikContext();
|
|
10660
10527
|
React.useEffect(() => {
|
|
10661
10528
|
onChange(formik$1.values);
|
|
@@ -10703,7 +10570,7 @@
|
|
|
10703
10570
|
}, /*#__PURE__*/React__default.createElement(appStudio.Form, Object.assign({}, props), children));
|
|
10704
10571
|
};
|
|
10705
10572
|
|
|
10706
|
-
var _excluded$
|
|
10573
|
+
var _excluded$A = ["name", "type"];
|
|
10707
10574
|
var getInputTypeProps = type => {
|
|
10708
10575
|
switch (type) {
|
|
10709
10576
|
case 'email':
|
|
@@ -10742,7 +10609,7 @@
|
|
|
10742
10609
|
name,
|
|
10743
10610
|
type
|
|
10744
10611
|
} = _ref,
|
|
10745
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
10612
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
|
|
10746
10613
|
var focus = useFormFocus();
|
|
10747
10614
|
var {
|
|
10748
10615
|
touched,
|
|
@@ -10786,13 +10653,13 @@
|
|
|
10786
10653
|
} : {});
|
|
10787
10654
|
};
|
|
10788
10655
|
|
|
10789
|
-
var _excluded$
|
|
10656
|
+
var _excluded$B = ["value"];
|
|
10790
10657
|
var CheckboxComponent$1 = props => {
|
|
10791
10658
|
var _useFormikInput = useFormikInput(props),
|
|
10792
10659
|
{
|
|
10793
10660
|
value
|
|
10794
10661
|
} = _useFormikInput,
|
|
10795
|
-
formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$
|
|
10662
|
+
formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$B);
|
|
10796
10663
|
formProps.isChecked = value;
|
|
10797
10664
|
var checkboxStates = useCheckboxState(props);
|
|
10798
10665
|
return /*#__PURE__*/React__default.createElement(CheckboxView, Object.assign({}, checkboxStates, formProps));
|
|
@@ -10850,11 +10717,11 @@
|
|
|
10850
10717
|
*/
|
|
10851
10718
|
var FormikTextArea = TextAreaComponent$1;
|
|
10852
10719
|
|
|
10853
|
-
var _excluded$
|
|
10720
|
+
var _excluded$C = ["value"];
|
|
10854
10721
|
var TextFieldComponent$1 = props => {
|
|
10855
10722
|
var formProps = useFormikInput(props);
|
|
10856
10723
|
var _useTextFieldState = useTextFieldState(props),
|
|
10857
|
-
textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$
|
|
10724
|
+
textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$C);
|
|
10858
10725
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, textFieldStates, formProps));
|
|
10859
10726
|
};
|
|
10860
10727
|
/**
|
|
@@ -10862,7 +10729,7 @@
|
|
|
10862
10729
|
*/
|
|
10863
10730
|
var FormikTextField = TextFieldComponent$1;
|
|
10864
10731
|
|
|
10865
|
-
var _excluded$
|
|
10732
|
+
var _excluded$D = ["visibleIcon", "hiddenIcon"],
|
|
10866
10733
|
_excluded2$a = ["isVisible", "setIsVisible"];
|
|
10867
10734
|
var PasswordComponent$1 = _ref => {
|
|
10868
10735
|
var {
|
|
@@ -10873,7 +10740,7 @@
|
|
|
10873
10740
|
widthHeight: 14
|
|
10874
10741
|
})
|
|
10875
10742
|
} = _ref,
|
|
10876
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
10743
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
|
|
10877
10744
|
var formProps = useFormikInput(props);
|
|
10878
10745
|
var _usePasswordState = usePasswordState(formProps),
|
|
10879
10746
|
{
|
|
@@ -10898,14 +10765,14 @@
|
|
|
10898
10765
|
*/
|
|
10899
10766
|
var FormikPassword = PasswordComponent$1;
|
|
10900
10767
|
|
|
10901
|
-
var _excluded$
|
|
10768
|
+
var _excluded$E = ["items", "placeholder", "searchPlaceholder"];
|
|
10902
10769
|
var ComboBoxComponent$1 = _ref => {
|
|
10903
10770
|
var {
|
|
10904
10771
|
items,
|
|
10905
10772
|
placeholder,
|
|
10906
10773
|
searchPlaceholder
|
|
10907
10774
|
} = _ref,
|
|
10908
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
10775
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
|
|
10909
10776
|
var formProps = useFormikInput(props);
|
|
10910
10777
|
var ComboBoxStates = useComboBoxState(items, placeholder, searchPlaceholder);
|
|
10911
10778
|
// Ensure the onChange function from formProps is being called when an item is selected
|
|
@@ -11129,17 +10996,22 @@
|
|
|
11129
10996
|
rounded: 4,
|
|
11130
10997
|
pillShaped: 24
|
|
11131
10998
|
};
|
|
11132
|
-
var
|
|
11133
|
-
|
|
11134
|
-
|
|
11135
|
-
|
|
11136
|
-
|
|
11137
|
-
|
|
11138
|
-
|
|
11139
|
-
|
|
11140
|
-
|
|
11141
|
-
|
|
10999
|
+
var getSlider = themeMode => {
|
|
11000
|
+
return {
|
|
11001
|
+
default: {
|
|
11002
|
+
backgroundColor: 'color.blueGray.200'
|
|
11003
|
+
},
|
|
11004
|
+
outline: {
|
|
11005
|
+
backgroundColor: 'transparent',
|
|
11006
|
+
borderWidth: 1,
|
|
11007
|
+
borderStyle: 'solid',
|
|
11008
|
+
borderColor: 'color.blueGray.300'
|
|
11009
|
+
}
|
|
11010
|
+
};
|
|
11011
|
+
// Add dark mode conditional styling here
|
|
11142
11012
|
};
|
|
11013
|
+
// For backward compatibility
|
|
11014
|
+
var SliderVariants = /*#__PURE__*/getSlider();
|
|
11143
11015
|
// Maps Size enum to track height/width and thumb size for the new implementation
|
|
11144
11016
|
var EnhancedSliderSizes = {
|
|
11145
11017
|
xs: {
|
|
@@ -11181,7 +11053,7 @@
|
|
|
11181
11053
|
}
|
|
11182
11054
|
};
|
|
11183
11055
|
|
|
11184
|
-
var _excluded$
|
|
11056
|
+
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"];
|
|
11185
11057
|
var SliderView = _ref => {
|
|
11186
11058
|
var _views$tooltip, _views$tooltip2;
|
|
11187
11059
|
var {
|
|
@@ -11224,7 +11096,7 @@
|
|
|
11224
11096
|
tooltip: {}
|
|
11225
11097
|
}
|
|
11226
11098
|
} = _ref,
|
|
11227
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
11099
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
|
|
11228
11100
|
var {
|
|
11229
11101
|
getColor,
|
|
11230
11102
|
themeMode
|
|
@@ -11597,7 +11469,7 @@
|
|
|
11597
11469
|
useMessageStore.getState().hide();
|
|
11598
11470
|
};
|
|
11599
11471
|
|
|
11600
|
-
var Themes
|
|
11472
|
+
var Themes = {
|
|
11601
11473
|
info: {
|
|
11602
11474
|
container: {
|
|
11603
11475
|
backgroundColor: 'color.blue.200',
|
|
@@ -11695,7 +11567,7 @@
|
|
|
11695
11567
|
}
|
|
11696
11568
|
return;
|
|
11697
11569
|
}, []);
|
|
11698
|
-
var Theme = theme != null ? theme : Themes
|
|
11570
|
+
var Theme = theme != null ? theme : Themes;
|
|
11699
11571
|
var showAction = !!(action && actionText);
|
|
11700
11572
|
var containerStyle = {
|
|
11701
11573
|
borderWidth: 1,
|
|
@@ -11944,7 +11816,8 @@
|
|
|
11944
11816
|
renderError = _ref2 => {
|
|
11945
11817
|
var {
|
|
11946
11818
|
errorMessage,
|
|
11947
|
-
errorMessageProps
|
|
11819
|
+
errorMessageProps,
|
|
11820
|
+
themeMode: elementMode
|
|
11948
11821
|
} = _ref2;
|
|
11949
11822
|
return /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
11950
11823
|
color: "red",
|
|
@@ -12095,7 +11968,7 @@
|
|
|
12095
11968
|
}, views == null ? void 0 : views.view)));
|
|
12096
11969
|
};
|
|
12097
11970
|
|
|
12098
|
-
var _excluded$
|
|
11971
|
+
var _excluded$G = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress", "fileType"];
|
|
12099
11972
|
var Uploader = _ref => {
|
|
12100
11973
|
var {
|
|
12101
11974
|
accept = '*/*',
|
|
@@ -12108,7 +11981,7 @@
|
|
|
12108
11981
|
progress = 0,
|
|
12109
11982
|
fileType
|
|
12110
11983
|
} = _ref,
|
|
12111
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
11984
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$G);
|
|
12112
11985
|
var {
|
|
12113
11986
|
previewUrl,
|
|
12114
11987
|
thumbnailUrl,
|
|
@@ -12255,23 +12128,19 @@
|
|
|
12255
12128
|
},
|
|
12256
12129
|
top: {
|
|
12257
12130
|
justifyContent: 'center',
|
|
12258
|
-
alignItems: 'flex-start'
|
|
12259
|
-
paddingTop: '64px'
|
|
12131
|
+
alignItems: 'flex-start'
|
|
12260
12132
|
},
|
|
12261
12133
|
right: {
|
|
12262
12134
|
justifyContent: 'flex-end',
|
|
12263
|
-
alignItems: 'center'
|
|
12264
|
-
paddingRight: '32px'
|
|
12135
|
+
alignItems: 'center'
|
|
12265
12136
|
},
|
|
12266
12137
|
bottom: {
|
|
12267
12138
|
justifyContent: 'center',
|
|
12268
|
-
alignItems: 'flex-end'
|
|
12269
|
-
paddingBottom: '64px'
|
|
12139
|
+
alignItems: 'flex-end'
|
|
12270
12140
|
},
|
|
12271
12141
|
left: {
|
|
12272
12142
|
justifyContent: 'flex-start',
|
|
12273
|
-
alignItems: 'center'
|
|
12274
|
-
paddingLeft: '32px'
|
|
12143
|
+
alignItems: 'center'
|
|
12275
12144
|
}
|
|
12276
12145
|
};
|
|
12277
12146
|
/**
|
|
@@ -12303,7 +12172,7 @@
|
|
|
12303
12172
|
}
|
|
12304
12173
|
};
|
|
12305
12174
|
|
|
12306
|
-
var _excluded$
|
|
12175
|
+
var _excluded$H = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
|
|
12307
12176
|
_excluded2$b = ["children", "shadow", "isFullScreen", "shape", "views"],
|
|
12308
12177
|
_excluded3$8 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
|
|
12309
12178
|
_excluded4$7 = ["children", "views"],
|
|
@@ -12318,7 +12187,7 @@
|
|
|
12318
12187
|
position = 'center',
|
|
12319
12188
|
views
|
|
12320
12189
|
} = _ref,
|
|
12321
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12190
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
|
|
12322
12191
|
var handleClick = () => {
|
|
12323
12192
|
if (!isClosePrevented) onClose();
|
|
12324
12193
|
};
|
|
@@ -12389,17 +12258,12 @@
|
|
|
12389
12258
|
} = _ref3,
|
|
12390
12259
|
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$8);
|
|
12391
12260
|
var onClose = props.onClose ? props.onClose : hideModal;
|
|
12392
|
-
var buttonIcon = /*#__PURE__*/React__default.createElement(
|
|
12393
|
-
onClick: onClose
|
|
12394
|
-
|
|
12395
|
-
|
|
12396
|
-
|
|
12397
|
-
|
|
12398
|
-
padding: 0,
|
|
12399
|
-
margin: 0,
|
|
12400
|
-
filter: "none",
|
|
12401
|
-
width: 0
|
|
12402
|
-
});
|
|
12261
|
+
var buttonIcon = /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
12262
|
+
onClick: onClose
|
|
12263
|
+
}, /*#__PURE__*/React__default.createElement(CloseIcon, {
|
|
12264
|
+
widthHeight: HeaderIconSizes[iconSize],
|
|
12265
|
+
color: buttonColor
|
|
12266
|
+
}));
|
|
12403
12267
|
return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
|
|
12404
12268
|
justifyContent: buttonPosition === 'none' ? 'center' : 'space-between',
|
|
12405
12269
|
alignItems: "center",
|
|
@@ -12619,7 +12483,7 @@
|
|
|
12619
12483
|
}
|
|
12620
12484
|
};
|
|
12621
12485
|
|
|
12622
|
-
var _excluded$
|
|
12486
|
+
var _excluded$I = ["href", "children", "views"];
|
|
12623
12487
|
// Create context for the NavigationMenu
|
|
12624
12488
|
var NavigationMenuContext = /*#__PURE__*/React.createContext({
|
|
12625
12489
|
activeItemId: null,
|
|
@@ -12854,7 +12718,7 @@
|
|
|
12854
12718
|
children,
|
|
12855
12719
|
views
|
|
12856
12720
|
} = _ref6,
|
|
12857
|
-
props = _objectWithoutPropertiesLoose(_ref6, _excluded$
|
|
12721
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded$I);
|
|
12858
12722
|
var {
|
|
12859
12723
|
itemValue,
|
|
12860
12724
|
isDisabled
|
|
@@ -12903,7 +12767,8 @@
|
|
|
12903
12767
|
items,
|
|
12904
12768
|
orientation,
|
|
12905
12769
|
//size, variant,
|
|
12906
|
-
views
|
|
12770
|
+
views,
|
|
12771
|
+
themeMode: elementMode
|
|
12907
12772
|
} = _ref7;
|
|
12908
12773
|
var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
|
|
12909
12774
|
if (!items || items.length === 0) {
|
|
@@ -12920,7 +12785,7 @@
|
|
|
12920
12785
|
})))));
|
|
12921
12786
|
};
|
|
12922
12787
|
|
|
12923
|
-
var _excluded$
|
|
12788
|
+
var _excluded$J = ["items", "children", "orientation", "size", "variant", "defaultActiveItemId", "defaultExpandedItemIds", "onItemActivate", "views"];
|
|
12924
12789
|
/**
|
|
12925
12790
|
* NavigationMenu component for creating navigation menus with optional nested items.
|
|
12926
12791
|
* Supports both data-driven approach (with items prop) and compound component pattern.
|
|
@@ -12937,7 +12802,7 @@
|
|
|
12937
12802
|
onItemActivate,
|
|
12938
12803
|
views
|
|
12939
12804
|
} = _ref,
|
|
12940
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12805
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$J);
|
|
12941
12806
|
var {
|
|
12942
12807
|
activeItemId,
|
|
12943
12808
|
setActiveItemId,
|
|
@@ -13137,7 +13002,8 @@
|
|
|
13137
13002
|
data,
|
|
13138
13003
|
columns,
|
|
13139
13004
|
footer,
|
|
13140
|
-
caption
|
|
13005
|
+
caption,
|
|
13006
|
+
themeMode: elementMode
|
|
13141
13007
|
} = _ref;
|
|
13142
13008
|
return /*#__PURE__*/React__default.createElement(TableContainer, {
|
|
13143
13009
|
role: "Table"
|
|
@@ -13404,7 +13270,7 @@
|
|
|
13404
13270
|
};
|
|
13405
13271
|
};
|
|
13406
13272
|
|
|
13407
|
-
var _excluded$
|
|
13273
|
+
var _excluded$K = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views"];
|
|
13408
13274
|
var ToggleView = _ref => {
|
|
13409
13275
|
var {
|
|
13410
13276
|
children,
|
|
@@ -13418,7 +13284,7 @@
|
|
|
13418
13284
|
onToggle,
|
|
13419
13285
|
views
|
|
13420
13286
|
} = _ref,
|
|
13421
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
13287
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$K);
|
|
13422
13288
|
var toggleColor = !isDisabled ? 'color.trueGray.400' : 'theme.disabled';
|
|
13423
13289
|
var isActive = !!(isToggle || isHovered);
|
|
13424
13290
|
var toggleVariants = {
|
|
@@ -13461,7 +13327,7 @@
|
|
|
13461
13327
|
}, toggleVariants[variant], props, views == null ? void 0 : views.container), children);
|
|
13462
13328
|
};
|
|
13463
13329
|
|
|
13464
|
-
var _excluded$
|
|
13330
|
+
var _excluded$L = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
|
|
13465
13331
|
// Destructuring properties from ToggleProps to be used within the ToggleComponent.
|
|
13466
13332
|
var ToggleComponent = _ref => {
|
|
13467
13333
|
var {
|
|
@@ -13473,7 +13339,7 @@
|
|
|
13473
13339
|
isToggled = false,
|
|
13474
13340
|
onToggle
|
|
13475
13341
|
} = _ref,
|
|
13476
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
13342
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$L);
|
|
13477
13343
|
// Initializing toggle state and set state functions using the custom hook useToggleState.
|
|
13478
13344
|
var {
|
|
13479
13345
|
isHovered,
|
|
@@ -13680,7 +13546,8 @@
|
|
|
13680
13546
|
draggedIndex,
|
|
13681
13547
|
itemRefs,
|
|
13682
13548
|
handleDragStart,
|
|
13683
|
-
views
|
|
13549
|
+
views,
|
|
13550
|
+
themeMode: elementMode
|
|
13684
13551
|
} = _ref;
|
|
13685
13552
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
13686
13553
|
overflow: "hidden",
|
|
@@ -13863,11 +13730,11 @@
|
|
|
13863
13730
|
return positions[side];
|
|
13864
13731
|
};
|
|
13865
13732
|
|
|
13866
|
-
var _excluded$
|
|
13733
|
+
var _excluded$M = ["children", "views"],
|
|
13867
13734
|
_excluded2$c = ["items", "side", "align", "views"],
|
|
13868
13735
|
_excluded3$9 = ["item", "views"],
|
|
13869
13736
|
_excluded4$8 = ["views"],
|
|
13870
|
-
_excluded5$4 = ["trigger", "items", "side", "align", "views"];
|
|
13737
|
+
_excluded5$4 = ["trigger", "items", "side", "align", "views", "themeMode"];
|
|
13871
13738
|
// Create context for the DropdownMenu
|
|
13872
13739
|
var DropdownMenuContext = /*#__PURE__*/React.createContext({
|
|
13873
13740
|
isOpen: false,
|
|
@@ -13901,7 +13768,7 @@
|
|
|
13901
13768
|
children,
|
|
13902
13769
|
views
|
|
13903
13770
|
} = _ref2,
|
|
13904
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
13771
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$M);
|
|
13905
13772
|
var {
|
|
13906
13773
|
isOpen,
|
|
13907
13774
|
setIsOpen
|
|
@@ -14061,7 +13928,7 @@
|
|
|
14061
13928
|
}));
|
|
14062
13929
|
};
|
|
14063
13930
|
|
|
14064
|
-
var _excluded$
|
|
13931
|
+
var _excluded$N = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
|
|
14065
13932
|
/**
|
|
14066
13933
|
* DropdownMenu component for displaying a menu when clicking on a trigger element.
|
|
14067
13934
|
*/
|
|
@@ -14076,7 +13943,7 @@
|
|
|
14076
13943
|
defaultOpen = false,
|
|
14077
13944
|
views
|
|
14078
13945
|
} = _ref,
|
|
14079
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
13946
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$N);
|
|
14080
13947
|
var {
|
|
14081
13948
|
isOpen,
|
|
14082
13949
|
setIsOpen,
|
|
@@ -14274,7 +14141,7 @@
|
|
|
14274
14141
|
return rect;
|
|
14275
14142
|
};
|
|
14276
14143
|
|
|
14277
|
-
var _excluded$
|
|
14144
|
+
var _excluded$O = ["children", "views", "asChild"],
|
|
14278
14145
|
_excluded2$d = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
|
|
14279
14146
|
// Create context for the HoverCard
|
|
14280
14147
|
var HoverCardContext = /*#__PURE__*/React.createContext({
|
|
@@ -14313,7 +14180,7 @@
|
|
|
14313
14180
|
views,
|
|
14314
14181
|
asChild = false
|
|
14315
14182
|
} = _ref2,
|
|
14316
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
14183
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$O);
|
|
14317
14184
|
var {
|
|
14318
14185
|
openCard,
|
|
14319
14186
|
closeCard,
|
|
@@ -14400,7 +14267,7 @@
|
|
|
14400
14267
|
}, views == null ? void 0 : views.container, props), children);
|
|
14401
14268
|
};
|
|
14402
14269
|
|
|
14403
|
-
var _excluded$
|
|
14270
|
+
var _excluded$P = ["children", "views", "openDelay", "closeDelay"];
|
|
14404
14271
|
/**
|
|
14405
14272
|
* HoverCard component displays floating content when hovering over a trigger element.
|
|
14406
14273
|
* Supports configurable open and close delays for a smoother user experience.
|
|
@@ -14412,7 +14279,7 @@
|
|
|
14412
14279
|
openDelay,
|
|
14413
14280
|
closeDelay
|
|
14414
14281
|
} = _ref,
|
|
14415
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
14282
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$P);
|
|
14416
14283
|
var hoverCardState = useHoverCardState({
|
|
14417
14284
|
openDelay,
|
|
14418
14285
|
closeDelay
|
|
@@ -14542,7 +14409,7 @@
|
|
|
14542
14409
|
};
|
|
14543
14410
|
};
|
|
14544
14411
|
|
|
14545
|
-
var _excluded$
|
|
14412
|
+
var _excluded$Q = ["children", "orientation", "size", "variant", "views"];
|
|
14546
14413
|
// Create context for the Menubar
|
|
14547
14414
|
var MenubarContext = /*#__PURE__*/React.createContext({
|
|
14548
14415
|
activeMenuId: null,
|
|
@@ -14576,7 +14443,7 @@
|
|
|
14576
14443
|
variant = 'default',
|
|
14577
14444
|
views
|
|
14578
14445
|
} = _ref2,
|
|
14579
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
14446
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$Q);
|
|
14580
14447
|
var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
|
|
14581
14448
|
return /*#__PURE__*/React__default.createElement(Container, Object.assign({
|
|
14582
14449
|
role: "menubar",
|
|
@@ -14723,7 +14590,8 @@
|
|
|
14723
14590
|
orientation,
|
|
14724
14591
|
size,
|
|
14725
14592
|
variant,
|
|
14726
|
-
views
|
|
14593
|
+
views,
|
|
14594
|
+
themeMode: elementMode
|
|
14727
14595
|
} = _ref8;
|
|
14728
14596
|
return /*#__PURE__*/React__default.createElement(MenubarRoot, {
|
|
14729
14597
|
orientation: orientation,
|
|
@@ -14761,7 +14629,7 @@
|
|
|
14761
14629
|
})))))));
|
|
14762
14630
|
};
|
|
14763
14631
|
|
|
14764
|
-
var _excluded$
|
|
14632
|
+
var _excluded$R = ["items", "orientation", "size", "variant", "defaultActiveMenuId", "defaultOpenMenuId", "views"];
|
|
14765
14633
|
/**
|
|
14766
14634
|
* Menubar component for creating horizontal or vertical menu bars with dropdown menus.
|
|
14767
14635
|
*/
|
|
@@ -14775,7 +14643,7 @@
|
|
|
14775
14643
|
defaultOpenMenuId = null,
|
|
14776
14644
|
views
|
|
14777
14645
|
} = _ref,
|
|
14778
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
14646
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$R);
|
|
14779
14647
|
var {
|
|
14780
14648
|
activeMenuId,
|
|
14781
14649
|
setActiveMenuId,
|
|
@@ -14931,7 +14799,7 @@
|
|
|
14931
14799
|
}
|
|
14932
14800
|
};
|
|
14933
14801
|
|
|
14934
|
-
var _excluded$
|
|
14802
|
+
var _excluded$S = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "visiblePageNumbers", "views"];
|
|
14935
14803
|
var PaginationView = _ref => {
|
|
14936
14804
|
var {
|
|
14937
14805
|
currentPage,
|
|
@@ -14962,7 +14830,7 @@
|
|
|
14962
14830
|
visiblePageNumbers,
|
|
14963
14831
|
views
|
|
14964
14832
|
} = _ref,
|
|
14965
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
14833
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$S);
|
|
14966
14834
|
var handlePageChange = page => {
|
|
14967
14835
|
if (page < 1 || page > totalPages || page === currentPage) {
|
|
14968
14836
|
return;
|
|
@@ -15081,7 +14949,7 @@
|
|
|
15081
14949
|
}, option.label))))));
|
|
15082
14950
|
};
|
|
15083
14951
|
|
|
15084
|
-
var _excluded$
|
|
14952
|
+
var _excluded$T = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "views"];
|
|
15085
14953
|
/**
|
|
15086
14954
|
* Pagination component for navigating through pages of content.
|
|
15087
14955
|
*/
|
|
@@ -15102,7 +14970,7 @@
|
|
|
15102
14970
|
shape = 'rounded',
|
|
15103
14971
|
views
|
|
15104
14972
|
} = _ref,
|
|
15105
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
14973
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$T);
|
|
15106
14974
|
var {
|
|
15107
14975
|
visiblePageNumbers
|
|
15108
14976
|
} = usePaginationState(currentPage, totalPages, maxPageButtons);
|
|
@@ -15138,11 +15006,16 @@
|
|
|
15138
15006
|
/**
|
|
15139
15007
|
* Variant configurations for the Separator component
|
|
15140
15008
|
*/
|
|
15141
|
-
var
|
|
15142
|
-
|
|
15143
|
-
|
|
15144
|
-
|
|
15009
|
+
var getSeparator = themeMode => {
|
|
15010
|
+
return {
|
|
15011
|
+
solid: 'solid',
|
|
15012
|
+
dashed: 'dashed',
|
|
15013
|
+
dotted: 'dotted'
|
|
15014
|
+
};
|
|
15015
|
+
// Add dark mode conditional styling here
|
|
15145
15016
|
};
|
|
15017
|
+
// For backward compatibility
|
|
15018
|
+
var SeparatorVariants = /*#__PURE__*/getSeparator();
|
|
15146
15019
|
/**
|
|
15147
15020
|
* Thickness configurations for the Separator component
|
|
15148
15021
|
* Following the 4px grid system
|
|
@@ -15167,21 +15040,23 @@
|
|
|
15167
15040
|
}
|
|
15168
15041
|
};
|
|
15169
15042
|
|
|
15170
|
-
var _excluded$
|
|
15043
|
+
var _excluded$U = ["orientation", "variant", "thickness", "color", "spacing", "label", "decorative", "views", "themeMode"];
|
|
15171
15044
|
var SeparatorView = _ref => {
|
|
15172
15045
|
var {
|
|
15173
15046
|
orientation = 'horizontal',
|
|
15174
15047
|
variant = 'solid',
|
|
15175
15048
|
thickness = 'thin',
|
|
15176
15049
|
color,
|
|
15177
|
-
spacing = '
|
|
15050
|
+
spacing = '0px',
|
|
15178
15051
|
label,
|
|
15179
15052
|
decorative = false,
|
|
15180
15053
|
views
|
|
15181
15054
|
} = _ref,
|
|
15182
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
15055
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$U);
|
|
15183
15056
|
// Access theme if needed for future enhancements
|
|
15184
|
-
var {
|
|
15057
|
+
var {
|
|
15058
|
+
themeMode
|
|
15059
|
+
} = appStudio.useTheme();
|
|
15185
15060
|
// Use provided color or default from theme
|
|
15186
15061
|
var separatorColor = color || 'color.gray.200';
|
|
15187
15062
|
var borderStyle = SeparatorVariants[variant];
|
|
@@ -15199,7 +15074,7 @@
|
|
|
15199
15074
|
alignItems: "center",
|
|
15200
15075
|
justifyContent: "center",
|
|
15201
15076
|
width: "100%",
|
|
15202
|
-
|
|
15077
|
+
padding: spacing
|
|
15203
15078
|
}, ariaProps, props), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
15204
15079
|
height: "0px",
|
|
15205
15080
|
flexGrow: 1,
|
|
@@ -15222,7 +15097,7 @@
|
|
|
15222
15097
|
borderTopWidth: borderWidth,
|
|
15223
15098
|
borderTopStyle: borderStyle,
|
|
15224
15099
|
borderTopColor: separatorColor,
|
|
15225
|
-
|
|
15100
|
+
padding: spacing
|
|
15226
15101
|
}, DefaultSeparatorStyles.container, ariaProps, views == null ? void 0 : views.container, props));
|
|
15227
15102
|
}
|
|
15228
15103
|
// For vertical separator
|
|
@@ -15232,7 +15107,7 @@
|
|
|
15232
15107
|
borderLeftWidth: borderWidth,
|
|
15233
15108
|
borderLeftStyle: borderStyle,
|
|
15234
15109
|
borderLeftColor: separatorColor,
|
|
15235
|
-
|
|
15110
|
+
padding: spacing
|
|
15236
15111
|
}, DefaultSeparatorStyles.container, ariaProps, views == null ? void 0 : views.container, props));
|
|
15237
15112
|
};
|
|
15238
15113
|
|
|
@@ -15337,37 +15212,42 @@
|
|
|
15337
15212
|
/**
|
|
15338
15213
|
* Variant styles for the Sidebar component
|
|
15339
15214
|
*/
|
|
15340
|
-
var
|
|
15341
|
-
|
|
15342
|
-
|
|
15343
|
-
|
|
15344
|
-
|
|
15345
|
-
|
|
15346
|
-
|
|
15347
|
-
|
|
15348
|
-
|
|
15349
|
-
|
|
15350
|
-
|
|
15351
|
-
|
|
15352
|
-
|
|
15353
|
-
|
|
15354
|
-
|
|
15355
|
-
|
|
15356
|
-
|
|
15357
|
-
|
|
15358
|
-
|
|
15359
|
-
|
|
15360
|
-
|
|
15361
|
-
|
|
15362
|
-
|
|
15363
|
-
|
|
15364
|
-
|
|
15365
|
-
|
|
15366
|
-
|
|
15367
|
-
|
|
15368
|
-
|
|
15369
|
-
|
|
15215
|
+
var getSidebar = themeMode => {
|
|
15216
|
+
return {
|
|
15217
|
+
default: {
|
|
15218
|
+
backgroundColor: 'white',
|
|
15219
|
+
color: 'color.gray.800',
|
|
15220
|
+
transition: 'all 0.2s ease'
|
|
15221
|
+
},
|
|
15222
|
+
filled: {
|
|
15223
|
+
backgroundColor: 'color.gray.100',
|
|
15224
|
+
color: 'color.gray.800',
|
|
15225
|
+
transition: 'all 0.2s ease'
|
|
15226
|
+
},
|
|
15227
|
+
outline: {
|
|
15228
|
+
backgroundColor: 'white',
|
|
15229
|
+
borderWidth: '1px',
|
|
15230
|
+
borderStyle: 'solid',
|
|
15231
|
+
borderColor: 'color.gray.200',
|
|
15232
|
+
color: 'color.gray.800',
|
|
15233
|
+
transition: 'all 0.2s ease'
|
|
15234
|
+
},
|
|
15235
|
+
subtle: {
|
|
15236
|
+
backgroundColor: 'color.gray.50',
|
|
15237
|
+
color: 'color.gray.800',
|
|
15238
|
+
transition: 'all 0.2s ease'
|
|
15239
|
+
},
|
|
15240
|
+
elevated: {
|
|
15241
|
+
backgroundColor: 'white',
|
|
15242
|
+
boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.1)',
|
|
15243
|
+
color: 'color.gray.800',
|
|
15244
|
+
transition: 'all 0.2s ease'
|
|
15245
|
+
}
|
|
15246
|
+
};
|
|
15247
|
+
// Add dark mode conditional styling here
|
|
15370
15248
|
};
|
|
15249
|
+
// For backward compatibility
|
|
15250
|
+
var SidebarVariants = /*#__PURE__*/getSidebar();
|
|
15371
15251
|
/**
|
|
15372
15252
|
* Position styles for the Sidebar component
|
|
15373
15253
|
*/
|
|
@@ -15410,10 +15290,10 @@
|
|
|
15410
15290
|
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)'
|
|
15411
15291
|
};
|
|
15412
15292
|
|
|
15413
|
-
var _excluded$
|
|
15293
|
+
var _excluded$V = ["children", "showToggleButton", "views"],
|
|
15414
15294
|
_excluded2$e = ["children", "views"],
|
|
15415
15295
|
_excluded3$a = ["children", "views"],
|
|
15416
|
-
_excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views"];
|
|
15296
|
+
_excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
|
|
15417
15297
|
// Create context for the Sidebar
|
|
15418
15298
|
var SidebarContext = /*#__PURE__*/React.createContext({
|
|
15419
15299
|
isExpanded: true,
|
|
@@ -15443,7 +15323,7 @@
|
|
|
15443
15323
|
showToggleButton = true,
|
|
15444
15324
|
views
|
|
15445
15325
|
} = _ref2,
|
|
15446
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
15326
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$V);
|
|
15447
15327
|
var {
|
|
15448
15328
|
isExpanded,
|
|
15449
15329
|
toggleExpanded,
|
|
@@ -15598,7 +15478,7 @@
|
|
|
15598
15478
|
}))));
|
|
15599
15479
|
};
|
|
15600
15480
|
|
|
15601
|
-
var _excluded$
|
|
15481
|
+
var _excluded$W = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
|
|
15602
15482
|
/**
|
|
15603
15483
|
* Sidebar component for creating collapsible, themeable and customizable sidebars.
|
|
15604
15484
|
*/
|
|
@@ -15620,7 +15500,7 @@
|
|
|
15620
15500
|
breakpointBehavior = 'overlay',
|
|
15621
15501
|
views
|
|
15622
15502
|
} = _ref,
|
|
15623
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
15503
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$W);
|
|
15624
15504
|
var {
|
|
15625
15505
|
isExpanded,
|
|
15626
15506
|
toggleExpanded,
|
|
@@ -16036,35 +15916,40 @@
|
|
|
16036
15916
|
};
|
|
16037
15917
|
return sizes[size];
|
|
16038
15918
|
};
|
|
16039
|
-
var
|
|
16040
|
-
|
|
16041
|
-
|
|
16042
|
-
|
|
16043
|
-
|
|
16044
|
-
|
|
16045
|
-
|
|
16046
|
-
|
|
16047
|
-
|
|
16048
|
-
|
|
16049
|
-
subtle: {
|
|
16050
|
-
backgroundColor: 'transparent',
|
|
16051
|
-
_hover: {
|
|
16052
|
-
backgroundColor: 'color.gray.100'
|
|
15919
|
+
var getHandle = themeMode => {
|
|
15920
|
+
return {
|
|
15921
|
+
default: {
|
|
15922
|
+
backgroundColor: 'transparent',
|
|
15923
|
+
_hover: {
|
|
15924
|
+
backgroundColor: 'color.gray.200'
|
|
15925
|
+
},
|
|
15926
|
+
_active: {
|
|
15927
|
+
backgroundColor: 'color.gray.300'
|
|
15928
|
+
}
|
|
16053
15929
|
},
|
|
16054
|
-
|
|
16055
|
-
backgroundColor: '
|
|
16056
|
-
|
|
16057
|
-
|
|
16058
|
-
|
|
16059
|
-
|
|
16060
|
-
|
|
16061
|
-
|
|
15930
|
+
subtle: {
|
|
15931
|
+
backgroundColor: 'transparent',
|
|
15932
|
+
_hover: {
|
|
15933
|
+
backgroundColor: 'color.gray.100'
|
|
15934
|
+
},
|
|
15935
|
+
_active: {
|
|
15936
|
+
backgroundColor: 'color.gray.200'
|
|
15937
|
+
}
|
|
16062
15938
|
},
|
|
16063
|
-
|
|
16064
|
-
backgroundColor: 'color.gray.
|
|
15939
|
+
prominent: {
|
|
15940
|
+
backgroundColor: 'color.gray.100',
|
|
15941
|
+
_hover: {
|
|
15942
|
+
backgroundColor: 'color.gray.200'
|
|
15943
|
+
},
|
|
15944
|
+
_active: {
|
|
15945
|
+
backgroundColor: 'color.gray.300'
|
|
15946
|
+
}
|
|
16065
15947
|
}
|
|
16066
|
-
}
|
|
15948
|
+
};
|
|
15949
|
+
// Add dark mode conditional styling here
|
|
16067
15950
|
};
|
|
15951
|
+
// For backward compatibility
|
|
15952
|
+
var HandleVariants = /*#__PURE__*/getHandle();
|
|
16068
15953
|
var HandleIconStyles = {
|
|
16069
15954
|
horizontal: {
|
|
16070
15955
|
width: '2px',
|
|
@@ -16080,7 +15965,7 @@
|
|
|
16080
15965
|
}
|
|
16081
15966
|
};
|
|
16082
15967
|
|
|
16083
|
-
var _excluded$
|
|
15968
|
+
var _excluded$X = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
|
|
16084
15969
|
_excluded2$f = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
|
|
16085
15970
|
_excluded3$b = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "views"];
|
|
16086
15971
|
// Create context for the Resizable component
|
|
@@ -16125,7 +16010,7 @@
|
|
|
16125
16010
|
onCollapseChange,
|
|
16126
16011
|
views
|
|
16127
16012
|
} = _ref2,
|
|
16128
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
16013
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$X);
|
|
16129
16014
|
var {
|
|
16130
16015
|
orientation,
|
|
16131
16016
|
registerPanel,
|
|
@@ -16340,7 +16225,7 @@
|
|
|
16340
16225
|
}, ResizableOrientations[orientation], views == null ? void 0 : views.container, props), children);
|
|
16341
16226
|
};
|
|
16342
16227
|
|
|
16343
|
-
var _excluded$
|
|
16228
|
+
var _excluded$Y = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
|
|
16344
16229
|
/**
|
|
16345
16230
|
* Resizable component for creating resizable panel groups and layouts.
|
|
16346
16231
|
*/
|
|
@@ -16360,7 +16245,7 @@
|
|
|
16360
16245
|
keyboardResizeBy = 10,
|
|
16361
16246
|
views
|
|
16362
16247
|
} = _ref,
|
|
16363
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
16248
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$Y);
|
|
16364
16249
|
var {
|
|
16365
16250
|
isResizing,
|
|
16366
16251
|
setIsResizing,
|
|
@@ -16425,7 +16310,7 @@
|
|
|
16425
16310
|
* Theme configurations for the Toast component
|
|
16426
16311
|
* Following the design system color palette
|
|
16427
16312
|
*/
|
|
16428
|
-
var Themes$
|
|
16313
|
+
var Themes$1 = {
|
|
16429
16314
|
info: {
|
|
16430
16315
|
container: {
|
|
16431
16316
|
backgroundColor: 'color.blue.50',
|
|
@@ -16618,10 +16503,11 @@
|
|
|
16618
16503
|
render,
|
|
16619
16504
|
icon: customIcon,
|
|
16620
16505
|
id,
|
|
16621
|
-
isVisible = true
|
|
16506
|
+
isVisible = true,
|
|
16507
|
+
themeMode: elementMode
|
|
16622
16508
|
} = _ref;
|
|
16623
16509
|
// We don't need the auto-close timer here anymore as it's handled in the store
|
|
16624
|
-
var Theme = theme != null ? theme : Themes$
|
|
16510
|
+
var Theme = theme != null ? theme : Themes$1;
|
|
16625
16511
|
// Get the appropriate icon based on the variant
|
|
16626
16512
|
var getIcon = () => {
|
|
16627
16513
|
// If a custom icon is provided, use it
|
|
@@ -17001,29 +16887,34 @@
|
|
|
17001
16887
|
maxHeight: '500px'
|
|
17002
16888
|
}
|
|
17003
16889
|
};
|
|
17004
|
-
var
|
|
17005
|
-
|
|
17006
|
-
|
|
17007
|
-
|
|
17008
|
-
|
|
17009
|
-
|
|
17010
|
-
|
|
17011
|
-
|
|
17012
|
-
|
|
17013
|
-
|
|
17014
|
-
|
|
17015
|
-
|
|
17016
|
-
|
|
17017
|
-
|
|
17018
|
-
|
|
17019
|
-
|
|
17020
|
-
|
|
17021
|
-
|
|
17022
|
-
|
|
17023
|
-
|
|
17024
|
-
|
|
17025
|
-
|
|
16890
|
+
var getCommand = themeMode => {
|
|
16891
|
+
return {
|
|
16892
|
+
default: {
|
|
16893
|
+
backgroundColor: 'white',
|
|
16894
|
+
borderWidth: '1px',
|
|
16895
|
+
borderStyle: 'solid',
|
|
16896
|
+
borderColor: 'color.gray.200',
|
|
16897
|
+
boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
|
|
16898
|
+
},
|
|
16899
|
+
filled: {
|
|
16900
|
+
backgroundColor: 'color.gray.50',
|
|
16901
|
+
borderWidth: '1px',
|
|
16902
|
+
borderStyle: 'solid',
|
|
16903
|
+
borderColor: 'color.gray.200',
|
|
16904
|
+
boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
|
|
16905
|
+
},
|
|
16906
|
+
outline: {
|
|
16907
|
+
backgroundColor: 'white',
|
|
16908
|
+
borderWidth: '2px',
|
|
16909
|
+
borderStyle: 'solid',
|
|
16910
|
+
borderColor: 'color.gray.300',
|
|
16911
|
+
boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.1)'
|
|
16912
|
+
}
|
|
16913
|
+
};
|
|
16914
|
+
// Add dark mode conditional styling here
|
|
17026
16915
|
};
|
|
16916
|
+
// For backward compatibility
|
|
16917
|
+
var CommandVariants = /*#__PURE__*/getCommand();
|
|
17027
16918
|
var CommandInputStyles = {
|
|
17028
16919
|
display: 'flex',
|
|
17029
16920
|
alignItems: 'center',
|
|
@@ -17119,7 +17010,7 @@
|
|
|
17119
17010
|
color: 'color.gray.500'
|
|
17120
17011
|
};
|
|
17121
17012
|
|
|
17122
|
-
var _excluded$
|
|
17013
|
+
var _excluded$Z = ["value", "onValueChange", "placeholder", "views"],
|
|
17123
17014
|
_excluded2$g = ["children", "views"],
|
|
17124
17015
|
_excluded3$c = ["heading", "children", "views"],
|
|
17125
17016
|
_excluded4$a = ["item", "selected", "onSelect", "views"],
|
|
@@ -17151,7 +17042,7 @@
|
|
|
17151
17042
|
placeholder = 'Type a command or search...',
|
|
17152
17043
|
views
|
|
17153
17044
|
} = _ref2,
|
|
17154
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
17045
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$Z);
|
|
17155
17046
|
var inputRef = React.useRef(null);
|
|
17156
17047
|
// Focus input when component mounts
|
|
17157
17048
|
React__default.useEffect(() => {
|
|
@@ -17339,7 +17230,7 @@
|
|
|
17339
17230
|
})))), footer && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandFooterStyles, views == null ? void 0 : views.footer), footer)))));
|
|
17340
17231
|
};
|
|
17341
17232
|
|
|
17342
|
-
var _excluded$
|
|
17233
|
+
var _excluded$_ = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
|
|
17343
17234
|
/**
|
|
17344
17235
|
* Command component for displaying a command palette with search functionality.
|
|
17345
17236
|
*/
|
|
@@ -17357,7 +17248,7 @@
|
|
|
17357
17248
|
footer,
|
|
17358
17249
|
views
|
|
17359
17250
|
} = _ref,
|
|
17360
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
17251
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$_);
|
|
17361
17252
|
var {
|
|
17362
17253
|
search,
|
|
17363
17254
|
setSearch,
|
|
@@ -17514,23 +17405,28 @@
|
|
|
17514
17405
|
maxWidth: '300px'
|
|
17515
17406
|
}
|
|
17516
17407
|
};
|
|
17517
|
-
var
|
|
17518
|
-
|
|
17519
|
-
|
|
17520
|
-
|
|
17521
|
-
|
|
17522
|
-
|
|
17523
|
-
|
|
17524
|
-
|
|
17525
|
-
|
|
17526
|
-
|
|
17527
|
-
|
|
17528
|
-
|
|
17529
|
-
|
|
17530
|
-
|
|
17531
|
-
|
|
17532
|
-
|
|
17408
|
+
var getTooltip = themeMode => {
|
|
17409
|
+
return {
|
|
17410
|
+
default: {
|
|
17411
|
+
backgroundColor: 'color.gray.800',
|
|
17412
|
+
color: 'color.white'
|
|
17413
|
+
},
|
|
17414
|
+
light: {
|
|
17415
|
+
backgroundColor: 'color.white',
|
|
17416
|
+
color: 'color.gray.800',
|
|
17417
|
+
borderWidth: '1px',
|
|
17418
|
+
borderStyle: 'solid',
|
|
17419
|
+
borderColor: 'color.gray.200'
|
|
17420
|
+
},
|
|
17421
|
+
dark: {
|
|
17422
|
+
backgroundColor: 'color.black',
|
|
17423
|
+
color: 'color.white'
|
|
17424
|
+
}
|
|
17425
|
+
};
|
|
17426
|
+
// Add dark mode conditional styling here
|
|
17533
17427
|
};
|
|
17428
|
+
// For backward compatibility
|
|
17429
|
+
var TooltipVariants = /*#__PURE__*/getTooltip();
|
|
17534
17430
|
var getTooltipPositionStyles = (position, align) => {
|
|
17535
17431
|
var baseStyles = {
|
|
17536
17432
|
position: 'absolute',
|
|
@@ -17639,9 +17535,9 @@
|
|
|
17639
17535
|
}
|
|
17640
17536
|
};
|
|
17641
17537
|
|
|
17642
|
-
var _excluded
|
|
17538
|
+
var _excluded$$ = ["children", "views", "asChild"],
|
|
17643
17539
|
_excluded2$h = ["children", "views"],
|
|
17644
|
-
_excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views"];
|
|
17540
|
+
_excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
|
|
17645
17541
|
// Create context for the Tooltip
|
|
17646
17542
|
var TooltipContext = /*#__PURE__*/React.createContext({
|
|
17647
17543
|
isOpen: false,
|
|
@@ -17675,7 +17571,7 @@
|
|
|
17675
17571
|
views,
|
|
17676
17572
|
asChild = false
|
|
17677
17573
|
} = _ref2,
|
|
17678
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded
|
|
17574
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$$);
|
|
17679
17575
|
var {
|
|
17680
17576
|
openTooltip,
|
|
17681
17577
|
closeTooltip,
|
|
@@ -17768,7 +17664,7 @@
|
|
|
17768
17664
|
}, TooltipSizes[size], TooltipVariants[variant], positionStyles, views == null ? void 0 : views.content), typeof content === 'string' ? (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({}, views == null ? void 0 : views.text), content)) : content, showArrow && /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, arrowStyles, views == null ? void 0 : views.arrow)))));
|
|
17769
17665
|
};
|
|
17770
17666
|
|
|
17771
|
-
var _excluded$
|
|
17667
|
+
var _excluded$10 = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
|
|
17772
17668
|
/**
|
|
17773
17669
|
* Tooltip component for displaying additional information when hovering over an element.
|
|
17774
17670
|
* Supports configurable positions, delays, and styling.
|
|
@@ -17788,7 +17684,7 @@
|
|
|
17788
17684
|
isDisabled = false,
|
|
17789
17685
|
views
|
|
17790
17686
|
} = _ref,
|
|
17791
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
17687
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$10);
|
|
17792
17688
|
var tooltipState = useTooltipState({
|
|
17793
17689
|
defaultOpen,
|
|
17794
17690
|
openDelay,
|