@app-studio/web 0.9.46 → 0.9.47
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/Button/Button/Button.style.d.ts +1 -1
- package/dist/web.cjs.development.js +532 -444
- 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 +532 -444
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +532 -444
- 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
|
@@ -4841,7 +4841,7 @@ var Loader = LoaderComponent;
|
|
|
4841
4841
|
*/
|
|
4842
4842
|
var ButtonSizes = {
|
|
4843
4843
|
xs: {
|
|
4844
|
-
minHeight:
|
|
4844
|
+
minHeight: 8 * 4,
|
|
4845
4845
|
paddingTop: 1,
|
|
4846
4846
|
paddingBottom: 1,
|
|
4847
4847
|
paddingLeft: 2,
|
|
@@ -4852,7 +4852,7 @@ var ButtonSizes = {
|
|
|
4852
4852
|
letterSpacing: '-0.01em'
|
|
4853
4853
|
},
|
|
4854
4854
|
sm: {
|
|
4855
|
-
minHeight:
|
|
4855
|
+
minHeight: 10 * 4,
|
|
4856
4856
|
paddingTop: 4,
|
|
4857
4857
|
paddingBottom: 4,
|
|
4858
4858
|
paddingLeft: 8,
|
|
@@ -4863,18 +4863,18 @@ var ButtonSizes = {
|
|
|
4863
4863
|
letterSpacing: '-0.01em'
|
|
4864
4864
|
},
|
|
4865
4865
|
md: {
|
|
4866
|
-
minHeight:
|
|
4867
|
-
paddingTop:
|
|
4868
|
-
paddingBottom:
|
|
4869
|
-
paddingLeft:
|
|
4870
|
-
paddingRight:
|
|
4871
|
-
fontSize:
|
|
4872
|
-
fontWeight:
|
|
4873
|
-
lineHeight:
|
|
4866
|
+
minHeight: 12 * 4,
|
|
4867
|
+
paddingTop: 8,
|
|
4868
|
+
paddingBottom: 8,
|
|
4869
|
+
paddingLeft: 20,
|
|
4870
|
+
paddingRight: 20,
|
|
4871
|
+
fontSize: 16,
|
|
4872
|
+
fontWeight: 550,
|
|
4873
|
+
lineHeight: 24,
|
|
4874
4874
|
letterSpacing: '-0.01em'
|
|
4875
4875
|
},
|
|
4876
4876
|
lg: {
|
|
4877
|
-
minHeight:
|
|
4877
|
+
minHeight: 14 * 4,
|
|
4878
4878
|
paddingTop: 8,
|
|
4879
4879
|
paddingBottom: 8,
|
|
4880
4880
|
paddingLeft: 16,
|
|
@@ -4885,7 +4885,7 @@ var ButtonSizes = {
|
|
|
4885
4885
|
letterSpacing: '-0.01em'
|
|
4886
4886
|
},
|
|
4887
4887
|
xl: {
|
|
4888
|
-
minHeight:
|
|
4888
|
+
minHeight: 16 * 4,
|
|
4889
4889
|
paddingTop: 10,
|
|
4890
4890
|
paddingBottom: 10,
|
|
4891
4891
|
paddingLeft: 20,
|
|
@@ -4934,142 +4934,387 @@ var IconSizes$1 = {
|
|
|
4934
4934
|
padding: 14
|
|
4935
4935
|
}
|
|
4936
4936
|
};
|
|
4937
|
-
var getButtonVariants = (color, isLight)
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
borderWidth: 1,
|
|
4942
|
-
borderStyle: 'solid',
|
|
4943
|
-
borderColor: 'transparent',
|
|
4944
|
-
_hover: {
|
|
4945
|
-
opacity: 0.9
|
|
4946
|
-
},
|
|
4947
|
-
_active: {
|
|
4948
|
-
opacity: 0.95
|
|
4949
|
-
},
|
|
4950
|
-
_focusVisible: {
|
|
4951
|
-
outline: 'none',
|
|
4952
|
-
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
4953
|
-
},
|
|
4954
|
-
transition: 'background-color 0.2s ease, opacity 0.2s ease'
|
|
4955
|
-
},
|
|
4956
|
-
outline: {
|
|
4957
|
-
backgroundColor: 'transparent',
|
|
4958
|
-
color: color,
|
|
4959
|
-
borderWidth: 1,
|
|
4960
|
-
borderStyle: 'solid',
|
|
4961
|
-
borderColor: color,
|
|
4962
|
-
_hover: {
|
|
4963
|
-
backgroundColor: color,
|
|
4964
|
-
color: isLight ? 'color.black' : 'color.white',
|
|
4965
|
-
opacity: 0.9
|
|
4966
|
-
},
|
|
4967
|
-
_active: {
|
|
4937
|
+
var getButtonVariants = function getButtonVariants(color, isLight, isThemeLight) {
|
|
4938
|
+
var textColor = isLight ? '#000000' : '#FFFFFF';
|
|
4939
|
+
return {
|
|
4940
|
+
filled: {
|
|
4968
4941
|
backgroundColor: color,
|
|
4969
|
-
color:
|
|
4970
|
-
|
|
4942
|
+
color: textColor,
|
|
4943
|
+
borderWidth: 1,
|
|
4944
|
+
borderStyle: 'solid',
|
|
4945
|
+
borderColor: 'transparent',
|
|
4946
|
+
_hover: {
|
|
4947
|
+
opacity: 0.9,
|
|
4948
|
+
color: textColor
|
|
4949
|
+
},
|
|
4950
|
+
_active: {
|
|
4951
|
+
opacity: 0.95,
|
|
4952
|
+
color: textColor
|
|
4953
|
+
},
|
|
4954
|
+
_focusVisible: {
|
|
4955
|
+
outline: 'none',
|
|
4956
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color,
|
|
4957
|
+
color: textColor
|
|
4958
|
+
},
|
|
4959
|
+
transition: 'background-color 0.2s ease, opacity 0.2s ease'
|
|
4971
4960
|
},
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4961
|
+
outline: {
|
|
4962
|
+
backgroundColor: 'transparent',
|
|
4963
|
+
color: color,
|
|
4964
|
+
borderWidth: 1,
|
|
4965
|
+
borderStyle: 'solid',
|
|
4966
|
+
borderColor: color,
|
|
4967
|
+
_hover: {
|
|
4968
|
+
backgroundColor: color,
|
|
4969
|
+
color: textColor,
|
|
4970
|
+
opacity: 0.9
|
|
4971
|
+
},
|
|
4972
|
+
_active: {
|
|
4973
|
+
backgroundColor: color,
|
|
4974
|
+
color: textColor,
|
|
4975
|
+
opacity: 0.95
|
|
4976
|
+
},
|
|
4977
|
+
_focusVisible: {
|
|
4978
|
+
outline: 'none',
|
|
4979
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
4980
|
+
},
|
|
4981
|
+
transition: 'background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease'
|
|
4975
4982
|
},
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4983
|
+
ghost: {
|
|
4984
|
+
backgroundColor: 'transparent',
|
|
4985
|
+
color: color,
|
|
4986
|
+
borderWidth: 1,
|
|
4987
|
+
borderStyle: 'solid',
|
|
4988
|
+
borderColor: 'transparent',
|
|
4989
|
+
_hover: {
|
|
4990
|
+
borderWidth: 1,
|
|
4991
|
+
borderStyle: 'solid',
|
|
4992
|
+
borderColor: color,
|
|
4993
|
+
color: color,
|
|
4994
|
+
opacity: 0.9
|
|
4995
|
+
},
|
|
4996
|
+
_active: {
|
|
4997
|
+
color: color,
|
|
4998
|
+
opacity: 0.95
|
|
4999
|
+
},
|
|
5000
|
+
_focusVisible: {
|
|
5001
|
+
outline: 'none',
|
|
5002
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
5003
|
+
},
|
|
5004
|
+
transition: 'background-color 0.2s ease, opacity 0.2s ease'
|
|
4987
5005
|
},
|
|
4988
|
-
|
|
4989
|
-
backgroundColor:
|
|
4990
|
-
|
|
5006
|
+
link: {
|
|
5007
|
+
backgroundColor: 'transparent',
|
|
5008
|
+
color: color,
|
|
5009
|
+
borderWidth: 0,
|
|
5010
|
+
borderStyle: 'none',
|
|
5011
|
+
borderColor: 'transparent',
|
|
5012
|
+
textDecoration: 'underline',
|
|
5013
|
+
textUnderlineOffset: '2px',
|
|
5014
|
+
textDecorationThickness: '1px',
|
|
5015
|
+
textDecorationColor: color,
|
|
5016
|
+
_hover: {
|
|
5017
|
+
color: color,
|
|
5018
|
+
opacity: 0.8
|
|
5019
|
+
},
|
|
5020
|
+
_active: {
|
|
5021
|
+
color: color,
|
|
5022
|
+
opacity: 0.9
|
|
5023
|
+
},
|
|
5024
|
+
_focusVisible: {
|
|
5025
|
+
outline: 'none',
|
|
5026
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
5027
|
+
},
|
|
5028
|
+
transition: 'opacity 0.2s ease'
|
|
4991
5029
|
},
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
5030
|
+
borderMoving: {
|
|
5031
|
+
position: 'relative',
|
|
5032
|
+
backgroundColor: 'black',
|
|
5033
|
+
color: textColor,
|
|
5034
|
+
overflow: 'hidden',
|
|
5035
|
+
borderWidth: 0,
|
|
5036
|
+
borderStyle: 'none',
|
|
5037
|
+
borderColor: 'transparent',
|
|
5038
|
+
_hover: {
|
|
5039
|
+
color: textColor
|
|
5040
|
+
},
|
|
5041
|
+
_active: {
|
|
5042
|
+
color: textColor
|
|
5043
|
+
},
|
|
5044
|
+
_focusVisible: {
|
|
5045
|
+
outline: 'none',
|
|
5046
|
+
boxShadow: '0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(0, 0, 0, 0.8)'
|
|
5047
|
+
},
|
|
5048
|
+
transition: 'opacity 0.2s ease'
|
|
4995
5049
|
},
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5050
|
+
animatedStroke: {
|
|
5051
|
+
display: 'inline-block',
|
|
5052
|
+
margin: '0 auto',
|
|
5053
|
+
textAlign: 'center',
|
|
5054
|
+
textDecoration: 'none',
|
|
5055
|
+
position: 'relative',
|
|
5056
|
+
cursor: 'pointer',
|
|
5057
|
+
backgroundColor: 'transparent',
|
|
5058
|
+
color: color,
|
|
5059
|
+
borderWidth: 0,
|
|
5060
|
+
borderStyle: 'none',
|
|
5061
|
+
borderColor: 'transparent',
|
|
5062
|
+
_hover: {
|
|
5063
|
+
color: color
|
|
5064
|
+
},
|
|
5065
|
+
_active: {
|
|
5066
|
+
color: color
|
|
5067
|
+
},
|
|
5068
|
+
_focusVisible: {
|
|
5069
|
+
outline: 'none',
|
|
5070
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
5071
|
+
},
|
|
5072
|
+
transition: 'opacity 0.2s ease'
|
|
5073
|
+
}
|
|
5074
|
+
};
|
|
5075
|
+
};
|
|
5076
|
+
|
|
5077
|
+
var _excluded$d = ["shape", "size", "isDisabled", "onClick", "views", "mainTone", "tone", "borderMovingGradientColors", "borderMovingDuration", "content", "shadow"],
|
|
5078
|
+
_excluded2$3 = ["to", "onClick", "views", "children", "size", "accentColor", "textColor", "getColor", "shadow"],
|
|
5079
|
+
_excluded3$3 = ["variant", "to", "isDisabled", "isLoading", "isAuto", "isFilled", "isExternal", "shape", "shadow", "onClick", "views", "baseStyles", "sizeStyles", "iconPad", "resolvedTextColor", "content", "size"],
|
|
5080
|
+
_excluded4$3 = ["variant", "size", "shape", "iconPosition", "loaderPosition", "backgroundColor", "color", "isAuto", "isFilled", "isDisabled", "isLoading", "isIconRounded", "icon", "children", "to", "isExternal", "shadow", "onClick", "views", "themeMode", "borderMovingDuration", "borderMovingGradientColors", "animatedStrokeAccentColor", "animatedStrokeTextColor"];
|
|
5081
|
+
// --- Helper: Button Content ---
|
|
5082
|
+
// Renders the inner content: Loader, Icon, and Children.
|
|
5083
|
+
var ButtonContent = _ref => {
|
|
5084
|
+
var {
|
|
5085
|
+
children,
|
|
5086
|
+
icon,
|
|
5087
|
+
isLoading,
|
|
5088
|
+
iconPosition = 'left',
|
|
5089
|
+
loaderPosition = 'left',
|
|
5090
|
+
size = 'md',
|
|
5091
|
+
resolvedTextColor,
|
|
5092
|
+
isIconRounded,
|
|
5093
|
+
views
|
|
5094
|
+
} = _ref;
|
|
5095
|
+
var Wrapper = ['left', 'right'].includes(iconPosition) ? appStudio.Horizontal : appStudio.Vertical;
|
|
5096
|
+
var sizeStyles = ButtonSizes[size];
|
|
5097
|
+
var iconPad = isIconRounded ? IconSizes$1[size] : {};
|
|
5098
|
+
return /*#__PURE__*/React__default.createElement(Wrapper, Object.assign({
|
|
5099
|
+
gap: 8,
|
|
5100
|
+
alignItems: "center",
|
|
5101
|
+
justifyContent: "center"
|
|
5102
|
+
}, sizeStyles, iconPad, views == null ? void 0 : views.content), isLoading && loaderPosition === 'left' && (/*#__PURE__*/React__default.createElement(Loader, Object.assign({
|
|
5103
|
+
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
5104
|
+
color: 'currentColor'
|
|
5105
|
+
}, views == null ? void 0 : views.loader))), icon && ['left', 'top'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
5106
|
+
color: 'currentColor'
|
|
5107
|
+
}, views == null ? void 0 : views.icon), icon)), children, icon && ['right', 'bottom'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
5108
|
+
color: 'currentColor'
|
|
5109
|
+
}, views == null ? void 0 : views.icon), icon)), isLoading && loaderPosition === 'right' && (/*#__PURE__*/React__default.createElement(Loader, Object.assign({
|
|
5110
|
+
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
5111
|
+
color: 'currentColor'
|
|
5112
|
+
}, views == null ? void 0 : views.loader))));
|
|
5113
|
+
};
|
|
5114
|
+
// --- Variant: Border Moving ---
|
|
5115
|
+
var BorderMovingButton = _ref2 => {
|
|
5116
|
+
var {
|
|
5117
|
+
shape = 'rounded',
|
|
5118
|
+
size = 'md',
|
|
5119
|
+
isDisabled,
|
|
5120
|
+
onClick,
|
|
5121
|
+
views,
|
|
5122
|
+
mainTone,
|
|
5123
|
+
tone,
|
|
5124
|
+
borderMovingGradientColors,
|
|
5125
|
+
borderMovingDuration,
|
|
5126
|
+
content,
|
|
5127
|
+
shadow
|
|
5128
|
+
} = _ref2,
|
|
5129
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$d);
|
|
5130
|
+
var sizeStyles = ButtonSizes[size];
|
|
5131
|
+
var borderWidth = 3;
|
|
5132
|
+
var numericWidth = typeof sizeStyles.width === 'number' ? sizeStyles.width : 300;
|
|
5133
|
+
var numericHeight = typeof sizeStyles.height === 'number' ? sizeStyles.height : 64;
|
|
5134
|
+
var numericBorderRadius = (() => {
|
|
5135
|
+
var shapeValue = ButtonShapes[shape];
|
|
5136
|
+
if (typeof shapeValue === 'number') {
|
|
5137
|
+
return shapeValue;
|
|
5138
|
+
}
|
|
5139
|
+
if (typeof shapeValue === 'string') {
|
|
5140
|
+
return parseInt(shapeValue, 10) || 50;
|
|
5141
|
+
}
|
|
5142
|
+
return 50;
|
|
5143
|
+
})();
|
|
5144
|
+
var containerBg = mainTone;
|
|
5145
|
+
// Use high contrast text color for this variant
|
|
5146
|
+
var borderMovingTextColor = tone === 'light' ? '#000000' : '#FFFFFF';
|
|
5147
|
+
// Create gradient string for border animation
|
|
5148
|
+
var gradientColors = borderMovingGradientColors.join(', ');
|
|
5149
|
+
// Animation sequence for the moving border effect
|
|
5150
|
+
var borderAnimation = {
|
|
5151
|
+
from: {
|
|
5152
|
+
backgroundPosition: '0% 50%'
|
|
5009
5153
|
},
|
|
5010
|
-
|
|
5011
|
-
|
|
5154
|
+
to: {
|
|
5155
|
+
backgroundPosition: '200% 50%'
|
|
5012
5156
|
},
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5157
|
+
duration: borderMovingDuration + "s",
|
|
5158
|
+
timingFunction: 'linear',
|
|
5159
|
+
iterationCount: 'infinite'
|
|
5160
|
+
};
|
|
5161
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
5162
|
+
position: "relative",
|
|
5163
|
+
display: "inline-flex",
|
|
5164
|
+
alignItems: "center",
|
|
5165
|
+
justifyContent: "center",
|
|
5166
|
+
borderRadius: ButtonShapes[shape],
|
|
5167
|
+
cursor: isDisabled ? 'default' : 'pointer',
|
|
5168
|
+
onClick: onClick,
|
|
5169
|
+
boxShadow: shadow,
|
|
5170
|
+
padding: borderWidth,
|
|
5171
|
+
background: "linear-gradient(90deg, " + borderMovingGradientColors[0] + ", " + borderMovingGradientColors[1] + ", " + borderMovingGradientColors[2] + ", " + borderMovingGradientColors[0] + ")",
|
|
5172
|
+
backgroundSize: "200% 100%",
|
|
5173
|
+
animate: borderAnimation
|
|
5174
|
+
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5175
|
+
display: "flex",
|
|
5176
|
+
alignItems: "center",
|
|
5177
|
+
justifyContent: "center",
|
|
5178
|
+
backgroundColor: containerBg,
|
|
5179
|
+
borderRadius: Math.max(0, numericBorderRadius - borderWidth),
|
|
5180
|
+
width: "100%",
|
|
5181
|
+
height: "100%",
|
|
5182
|
+
minWidth: numericWidth - borderWidth * 2,
|
|
5183
|
+
minHeight: numericHeight - borderWidth * 2,
|
|
5184
|
+
color: borderMovingTextColor,
|
|
5185
|
+
fontSize: 14,
|
|
5186
|
+
cursor: "pointer"
|
|
5187
|
+
}, content));
|
|
5188
|
+
};
|
|
5189
|
+
// --- Variant: Animated Stroke ---
|
|
5190
|
+
var AnimatedStrokeButton = _ref3 => {
|
|
5191
|
+
var {
|
|
5192
|
+
to,
|
|
5193
|
+
onClick,
|
|
5194
|
+
views,
|
|
5195
|
+
children,
|
|
5196
|
+
size = 'md',
|
|
5197
|
+
accentColor,
|
|
5198
|
+
textColor,
|
|
5199
|
+
getColor,
|
|
5200
|
+
shadow
|
|
5201
|
+
} = _ref3,
|
|
5202
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$3);
|
|
5203
|
+
var resolvedAccentColor = getColor(accentColor);
|
|
5204
|
+
var resolvedTextColor = getColor(textColor);
|
|
5205
|
+
var sizeStyles = ButtonSizes[size];
|
|
5206
|
+
var numericWidth = typeof sizeStyles.width === 'number' ? sizeStyles.width : 300;
|
|
5207
|
+
var numericHeight = typeof sizeStyles.height === 'number' ? sizeStyles.height : 60;
|
|
5208
|
+
var strokeAnimation = {
|
|
5209
|
+
from: {
|
|
5210
|
+
strokeWidth: '8px',
|
|
5211
|
+
strokeDasharray: '0 500',
|
|
5212
|
+
strokeDashoffset: -454
|
|
5016
5213
|
},
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
backgroundColor: 'black',
|
|
5022
|
-
overflow: 'hidden',
|
|
5023
|
-
color: 'white',
|
|
5024
|
-
borderWidth: 0,
|
|
5025
|
-
borderStyle: 'none',
|
|
5026
|
-
borderColor: 'transparent',
|
|
5027
|
-
_focusVisible: {
|
|
5028
|
-
outline: 'none',
|
|
5029
|
-
boxShadow: '0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(0, 0, 0, 0.8)'
|
|
5214
|
+
to: {
|
|
5215
|
+
strokeWidth: '3px',
|
|
5216
|
+
strokeDasharray: '760',
|
|
5217
|
+
strokeDashoffset: 0
|
|
5030
5218
|
},
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5219
|
+
duration: '0.9s',
|
|
5220
|
+
timingFunction: 'ease-in',
|
|
5221
|
+
fillMode: 'forwards'
|
|
5222
|
+
};
|
|
5223
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
5224
|
+
as: to ? 'a' : 'div',
|
|
5225
|
+
href: to ? to : undefined,
|
|
5226
|
+
onClick: onClick,
|
|
5227
|
+
display: "inline-block",
|
|
5228
|
+
maxWidth: "20rem",
|
|
5229
|
+
margin: "0 auto",
|
|
5230
|
+
textAlign: "center",
|
|
5231
|
+
textDecoration: "none",
|
|
5232
|
+
position: "relative",
|
|
5233
|
+
cursor: "pointer",
|
|
5234
|
+
boxShadow: shadow
|
|
5235
|
+
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5236
|
+
as: "svg",
|
|
5237
|
+
display: "block",
|
|
5238
|
+
height: numericHeight,
|
|
5239
|
+
width: numericWidth,
|
|
5240
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
5241
|
+
}, /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5242
|
+
as: "rect",
|
|
5243
|
+
height: numericHeight,
|
|
5244
|
+
width: numericWidth,
|
|
5245
|
+
fill: "transparent",
|
|
5246
|
+
stroke: resolvedAccentColor,
|
|
5247
|
+
strokeWidth: "8px",
|
|
5248
|
+
strokeDasharray: "0 500",
|
|
5249
|
+
strokeDashoffset: -454,
|
|
5250
|
+
on: {
|
|
5251
|
+
hover: {
|
|
5252
|
+
animate: strokeAnimation
|
|
5253
|
+
}
|
|
5254
|
+
}
|
|
5255
|
+
})), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
5256
|
+
position: "absolute",
|
|
5257
|
+
top: 0,
|
|
5258
|
+
right: 0,
|
|
5259
|
+
bottom: 0,
|
|
5260
|
+
left: 0,
|
|
5261
|
+
display: "flex",
|
|
5262
|
+
alignItems: "center",
|
|
5263
|
+
justifyContent: "center",
|
|
5264
|
+
textAlign: "center",
|
|
5265
|
+
pointerEvents: "none",
|
|
5266
|
+
userSelect: "none",
|
|
5267
|
+
color: resolvedTextColor
|
|
5268
|
+
}, sizeStyles), children));
|
|
5269
|
+
};
|
|
5270
|
+
// --- Variant: Standard Button ---
|
|
5271
|
+
var StandardButton = _ref4 => {
|
|
5272
|
+
var {
|
|
5273
|
+
variant,
|
|
5274
|
+
to,
|
|
5275
|
+
isDisabled,
|
|
5276
|
+
isLoading,
|
|
5277
|
+
isAuto,
|
|
5278
|
+
isFilled,
|
|
5279
|
+
isExternal,
|
|
5280
|
+
shape = 'rounded',
|
|
5281
|
+
shadow,
|
|
5282
|
+
onClick,
|
|
5283
|
+
views,
|
|
5284
|
+
baseStyles,
|
|
5285
|
+
sizeStyles,
|
|
5286
|
+
iconPad,
|
|
5287
|
+
content // Destructure size to avoid passing it to Element
|
|
5288
|
+
} = _ref4,
|
|
5289
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$3);
|
|
5290
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
5291
|
+
as: variant === 'link' && to ? 'div' : 'button',
|
|
5292
|
+
type: variant === 'link' && to ? undefined : 'button',
|
|
5293
|
+
disabled: Boolean(isDisabled || isLoading)
|
|
5294
|
+
}, sizeStyles, iconPad, {
|
|
5295
|
+
display: "inline-flex",
|
|
5296
|
+
alignItems: "center",
|
|
5297
|
+
justifyContent: "center",
|
|
5298
|
+
width: isAuto ? 'fit-content' : isFilled ? '100%' : undefined,
|
|
5299
|
+
/* visuals */
|
|
5300
|
+
borderRadius: ButtonShapes[shape],
|
|
5301
|
+
boxShadow: shadow,
|
|
5302
|
+
transition: "all 0.2s ease",
|
|
5303
|
+
cursor: isDisabled ? 'default' : 'pointer',
|
|
5304
|
+
onClick: onClick
|
|
5305
|
+
}, baseStyles, views == null ? void 0 : views.container, props), to ? (/*#__PURE__*/React__default.createElement(Link, Object.assign({
|
|
5306
|
+
to: to,
|
|
5307
|
+
isExternal: isExternal,
|
|
5308
|
+
color: "currentColor",
|
|
5309
|
+
textDecoration: "inherit",
|
|
5310
|
+
_hover: {
|
|
5311
|
+
color: 'currentColor'
|
|
5312
|
+
}
|
|
5313
|
+
}, views == null ? void 0 : views.link), content)) : content);
|
|
5314
|
+
};
|
|
5315
|
+
// --- Main Component ---
|
|
5316
|
+
var ButtonView = _ref5 => {
|
|
5317
|
+
var _ref6, _base$color;
|
|
5073
5318
|
var {
|
|
5074
5319
|
/* behaviour */
|
|
5075
5320
|
variant = 'filled',
|
|
@@ -5079,8 +5324,10 @@ var ButtonView = _ref => {
|
|
|
5079
5324
|
loaderPosition = 'left',
|
|
5080
5325
|
backgroundColor,
|
|
5081
5326
|
// primary candidate for main color
|
|
5082
|
-
color
|
|
5083
|
-
|
|
5327
|
+
color,
|
|
5328
|
+
// 2nd candidate for main color (NOT text‑color)
|
|
5329
|
+
isAuto,
|
|
5330
|
+
isFilled,
|
|
5084
5331
|
isDisabled,
|
|
5085
5332
|
isLoading,
|
|
5086
5333
|
isIconRounded,
|
|
@@ -5100,8 +5347,8 @@ var ButtonView = _ref => {
|
|
|
5100
5347
|
borderMovingGradientColors = ['#705CFF', '#FF5C97', '#FFC75C'],
|
|
5101
5348
|
animatedStrokeAccentColor = '#705CFF',
|
|
5102
5349
|
animatedStrokeTextColor = '#333333'
|
|
5103
|
-
} =
|
|
5104
|
-
props = _objectWithoutPropertiesLoose(
|
|
5350
|
+
} = _ref5,
|
|
5351
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$3);
|
|
5105
5352
|
/* theme helpers */
|
|
5106
5353
|
var {
|
|
5107
5354
|
getColor,
|
|
@@ -5109,237 +5356,78 @@ var ButtonView = _ref => {
|
|
|
5109
5356
|
} = appStudio.useTheme();
|
|
5110
5357
|
var mode = elementMode != null ? elementMode : themeMode;
|
|
5111
5358
|
/* MAIN COLOR – determines the entire palette */
|
|
5112
|
-
var mainColorKey = (
|
|
5359
|
+
var mainColorKey = (_ref6 = backgroundColor != null ? backgroundColor : color) != null ? _ref6 : 'theme.primary';
|
|
5113
5360
|
var mainTone = getColor(isDisabled ? 'theme.disabled' : mainColorKey, {
|
|
5114
5361
|
themeMode: mode
|
|
5115
5362
|
});
|
|
5116
5363
|
var tone = contrast(mainTone);
|
|
5364
|
+
/* text color with mixBlendMode for maximum visibility */
|
|
5365
|
+
var textColor = tone === 'light' ? '#000000' : '#FFFFFF';
|
|
5117
5366
|
/* variant palette */
|
|
5118
|
-
var palette = React.useMemo(() => getButtonVariants(mainTone, tone
|
|
5367
|
+
var palette = React.useMemo(() => getButtonVariants(mainTone, tone === 'light'), [mainTone, tone, mode]);
|
|
5119
5368
|
var base = palette[variant];
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
var
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
5134
|
-
color: 'inherit',
|
|
5135
|
-
_hover: {
|
|
5136
|
-
color: 'inherit'
|
|
5137
|
-
}
|
|
5138
|
-
}, views == null ? void 0 : views.loader))), icon && ['left', 'top'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
5139
|
-
color: 'inherit',
|
|
5140
|
-
_hover: {
|
|
5141
|
-
color: 'inherit'
|
|
5142
|
-
}
|
|
5143
|
-
}, views == null ? void 0 : views.icon), icon)), children, icon && ['right', 'bottom'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
5144
|
-
color: 'inherit',
|
|
5145
|
-
_hover: {
|
|
5146
|
-
color: 'inherit'
|
|
5147
|
-
}
|
|
5148
|
-
}, views == null ? void 0 : views.icon), icon)), isLoading && loaderPosition === 'right' && (/*#__PURE__*/React__default.createElement(Loader, Object.assign({
|
|
5149
|
-
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
5150
|
-
color: 'inherit',
|
|
5151
|
-
_hover: {
|
|
5152
|
-
color: 'inherit'
|
|
5153
|
-
}
|
|
5154
|
-
}, views == null ? void 0 : views.loader))));
|
|
5155
|
-
// Handle special effect variants
|
|
5369
|
+
var resolvedTextColor = (_base$color = base == null ? void 0 : base.color) != null ? _base$color : textColor;
|
|
5370
|
+
// Render content logic safely
|
|
5371
|
+
var content = /*#__PURE__*/React__default.createElement(ButtonContent, {
|
|
5372
|
+
icon: icon,
|
|
5373
|
+
isLoading: isLoading,
|
|
5374
|
+
iconPosition: iconPosition,
|
|
5375
|
+
loaderPosition: loaderPosition,
|
|
5376
|
+
size: size,
|
|
5377
|
+
resolvedTextColor: resolvedTextColor,
|
|
5378
|
+
isIconRounded: isIconRounded,
|
|
5379
|
+
views: views
|
|
5380
|
+
}, children);
|
|
5381
|
+
// Dispatch to the correct variant component
|
|
5156
5382
|
if (variant === 'borderMoving') {
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
})
|
|
5170
|
-
var path = generateOffsetPath(numericWidth, numericHeight, numericBorderRadius);
|
|
5171
|
-
// Determine background color from props or use mainTone
|
|
5172
|
-
var containerBg = mainTone;
|
|
5173
|
-
// Calculate text color with proper contrast
|
|
5174
|
-
var borderMovingTextColor = tone === 'light' ? '#000000' : '#FFFFFF';
|
|
5175
|
-
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
5176
|
-
width: numericWidth,
|
|
5177
|
-
height: numericHeight,
|
|
5178
|
-
position: "relative",
|
|
5179
|
-
backgroundColor: containerBg,
|
|
5180
|
-
overflow: "hidden",
|
|
5181
|
-
borderRadius: ButtonShapes[shape],
|
|
5182
|
-
cursor: isDisabled ? 'default' : 'pointer',
|
|
5183
|
-
onClick: onClick
|
|
5184
|
-
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement("svg", {
|
|
5185
|
-
width: numericWidth,
|
|
5186
|
-
height: numericHeight,
|
|
5187
|
-
style: {
|
|
5188
|
-
position: 'absolute',
|
|
5189
|
-
top: 0,
|
|
5190
|
-
left: 0,
|
|
5191
|
-
zIndex: 1
|
|
5192
|
-
}
|
|
5193
|
-
}, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("linearGradient", {
|
|
5194
|
-
id: "circleGradient",
|
|
5195
|
-
x1: "0%",
|
|
5196
|
-
y1: "100%",
|
|
5197
|
-
x2: "100%",
|
|
5198
|
-
y2: "100%"
|
|
5199
|
-
}, /*#__PURE__*/React__default.createElement("stop", {
|
|
5200
|
-
offset: "0%",
|
|
5201
|
-
stopColor: "transparent"
|
|
5202
|
-
}), /*#__PURE__*/React__default.createElement("stop", {
|
|
5203
|
-
offset: "30%",
|
|
5204
|
-
stopColor: borderMovingGradientColors[0]
|
|
5205
|
-
}), /*#__PURE__*/React__default.createElement("stop", {
|
|
5206
|
-
offset: "60%",
|
|
5207
|
-
stopColor: borderMovingGradientColors[1]
|
|
5208
|
-
}), /*#__PURE__*/React__default.createElement("stop", {
|
|
5209
|
-
offset: "100%",
|
|
5210
|
-
stopColor: borderMovingGradientColors[2]
|
|
5211
|
-
})), /*#__PURE__*/React__default.createElement("path", {
|
|
5212
|
-
id: "uniqueId",
|
|
5213
|
-
d: path,
|
|
5214
|
-
fill: "none",
|
|
5215
|
-
stroke: "transparent"
|
|
5216
|
-
})), /*#__PURE__*/React__default.createElement("circle", {
|
|
5217
|
-
r: "30",
|
|
5218
|
-
fill: "url(#circleGradient)"
|
|
5219
|
-
}, /*#__PURE__*/React__default.createElement("animateMotion", {
|
|
5220
|
-
dur: borderMovingDuration + 's',
|
|
5221
|
-
repeatCount: "indefinite",
|
|
5222
|
-
path: path
|
|
5223
|
-
}))), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5224
|
-
position: "absolute",
|
|
5225
|
-
backgroundColor: containerBg,
|
|
5226
|
-
borderRadius: Math.max(0, numericBorderRadius - 1),
|
|
5227
|
-
top: borderWidth,
|
|
5228
|
-
bottom: borderWidth,
|
|
5229
|
-
left: borderWidth,
|
|
5230
|
-
right: borderWidth,
|
|
5231
|
-
zIndex: 2
|
|
5232
|
-
}), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5233
|
-
position: "relative",
|
|
5234
|
-
width: "100%",
|
|
5235
|
-
height: "100%",
|
|
5236
|
-
display: "flex",
|
|
5237
|
-
alignItems: "center",
|
|
5238
|
-
justifyContent: "center",
|
|
5239
|
-
color: borderMovingTextColor,
|
|
5240
|
-
fontSize: 14,
|
|
5241
|
-
zIndex: 3,
|
|
5242
|
-
style: {
|
|
5243
|
-
cursor: 'pointer'
|
|
5244
|
-
}
|
|
5245
|
-
}, content));
|
|
5383
|
+
return /*#__PURE__*/React__default.createElement(BorderMovingButton, Object.assign({
|
|
5384
|
+
variant: variant,
|
|
5385
|
+
shape: shape,
|
|
5386
|
+
size: size,
|
|
5387
|
+
isDisabled: isDisabled,
|
|
5388
|
+
onClick: onClick,
|
|
5389
|
+
views: views,
|
|
5390
|
+
mainTone: mainTone,
|
|
5391
|
+
tone: tone,
|
|
5392
|
+
borderMovingGradientColors: borderMovingGradientColors,
|
|
5393
|
+
borderMovingDuration: borderMovingDuration,
|
|
5394
|
+
content: content
|
|
5395
|
+
}, props));
|
|
5246
5396
|
}
|
|
5247
5397
|
if (variant === 'animatedStroke') {
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
var _numericHeight = typeof sizeStyles.height === 'number' ? sizeStyles.height : 60;
|
|
5252
|
-
var strokeAnimation = {
|
|
5253
|
-
from: {
|
|
5254
|
-
strokeWidth: '8px',
|
|
5255
|
-
strokeDasharray: '0 500',
|
|
5256
|
-
strokeDashoffset: -454
|
|
5257
|
-
},
|
|
5258
|
-
to: {
|
|
5259
|
-
strokeWidth: '3px',
|
|
5260
|
-
strokeDasharray: '760',
|
|
5261
|
-
strokeDashoffset: 0
|
|
5262
|
-
},
|
|
5263
|
-
duration: '0.9s',
|
|
5264
|
-
timingFunction: 'ease-in',
|
|
5265
|
-
fillMode: 'forwards'
|
|
5266
|
-
};
|
|
5267
|
-
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
5268
|
-
as: to ? 'a' : 'div',
|
|
5269
|
-
href: to ? to : undefined,
|
|
5398
|
+
return /*#__PURE__*/React__default.createElement(AnimatedStrokeButton, Object.assign({
|
|
5399
|
+
variant: variant,
|
|
5400
|
+
to: to,
|
|
5270
5401
|
onClick: onClick,
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
cursor: "pointer"
|
|
5278
|
-
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5279
|
-
as: "svg",
|
|
5280
|
-
display: "block",
|
|
5281
|
-
height: _numericHeight,
|
|
5282
|
-
width: _numericWidth,
|
|
5283
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
5284
|
-
}, /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5285
|
-
as: "rect",
|
|
5286
|
-
height: _numericHeight,
|
|
5287
|
-
width: _numericWidth,
|
|
5288
|
-
fill: "transparent",
|
|
5289
|
-
stroke: resolvedAccentColor,
|
|
5290
|
-
strokeWidth: "8px",
|
|
5291
|
-
strokeDasharray: "120 500",
|
|
5292
|
-
strokeDashoffset: -454,
|
|
5293
|
-
on: {
|
|
5294
|
-
hover: {
|
|
5295
|
-
animate: strokeAnimation
|
|
5296
|
-
}
|
|
5297
|
-
}
|
|
5298
|
-
})), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5299
|
-
position: "absolute",
|
|
5300
|
-
top: 0,
|
|
5301
|
-
right: 0,
|
|
5302
|
-
bottom: 0,
|
|
5303
|
-
left: 0,
|
|
5304
|
-
display: "flex",
|
|
5305
|
-
alignItems: "center",
|
|
5306
|
-
justifyContent: "center",
|
|
5307
|
-
paddingX: 16,
|
|
5308
|
-
paddingY: 8,
|
|
5309
|
-
fontSize: "22px",
|
|
5310
|
-
lineHeight: "1.3",
|
|
5311
|
-
letterSpacing: "0.3rem",
|
|
5312
|
-
textAlign: "center",
|
|
5313
|
-
textTransform: "uppercase",
|
|
5314
|
-
whiteSpace: "normal",
|
|
5315
|
-
wordBreak: "break-word",
|
|
5316
|
-
pointerEvents: "none",
|
|
5317
|
-
userSelect: "none",
|
|
5318
|
-
color: resolvedTextColor
|
|
5319
|
-
}, children));
|
|
5402
|
+
views: views,
|
|
5403
|
+
size: size,
|
|
5404
|
+
accentColor: animatedStrokeAccentColor,
|
|
5405
|
+
textColor: animatedStrokeTextColor,
|
|
5406
|
+
getColor: getColor
|
|
5407
|
+
}, props), children);
|
|
5320
5408
|
}
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
display: "flex",
|
|
5327
|
-
alignItems: "center",
|
|
5328
|
-
justifyContent: "center",
|
|
5329
|
-
// width={isAuto ? 'fit-content' : isFilled ? '100%' : undefined}
|
|
5330
|
-
/* visuals */
|
|
5331
|
-
borderRadius: ButtonShapes[shape],
|
|
5332
|
-
boxShadow: shadow,
|
|
5333
|
-
transition: "all 0.2s ease",
|
|
5334
|
-
cursor: isDisabled ? 'default' : 'pointer',
|
|
5335
|
-
onClick: onClick
|
|
5336
|
-
}, base, views == null ? void 0 : views.container, props), to ? (/*#__PURE__*/React__default.createElement(Link, Object.assign({
|
|
5409
|
+
// Standard variants (filled, outline, ghost, link)
|
|
5410
|
+
var sizeStyles = ButtonSizes[size];
|
|
5411
|
+
var iconPad = isIconRounded ? IconSizes$1[size] : {};
|
|
5412
|
+
return /*#__PURE__*/React__default.createElement(StandardButton, Object.assign({
|
|
5413
|
+
variant: variant,
|
|
5337
5414
|
to: to,
|
|
5415
|
+
isDisabled: isDisabled,
|
|
5416
|
+
isLoading: isLoading,
|
|
5417
|
+
isAuto: isAuto,
|
|
5418
|
+
isFilled: isFilled,
|
|
5338
5419
|
isExternal: isExternal,
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5420
|
+
shape: shape,
|
|
5421
|
+
shadow: shadow,
|
|
5422
|
+
onClick: onClick,
|
|
5423
|
+
views: views,
|
|
5424
|
+
baseStyles: base,
|
|
5425
|
+
sizeStyles: sizeStyles,
|
|
5426
|
+
iconPad: iconPad,
|
|
5427
|
+
resolvedTextColor: resolvedTextColor,
|
|
5428
|
+
content: content,
|
|
5429
|
+
size: size
|
|
5430
|
+
}, props));
|
|
5343
5431
|
};
|
|
5344
5432
|
|
|
5345
5433
|
// Importing a custom hook to manage the state specific to the button component.
|
|
@@ -5475,9 +5563,9 @@ var useCardContext = () => {
|
|
|
5475
5563
|
};
|
|
5476
5564
|
|
|
5477
5565
|
var _excluded$e = ["children", "views", "style", "themeMode"],
|
|
5478
|
-
_excluded2$
|
|
5479
|
-
_excluded3$
|
|
5480
|
-
_excluded4$
|
|
5566
|
+
_excluded2$4 = ["children", "views", "style", "themeMode"],
|
|
5567
|
+
_excluded3$4 = ["children", "views", "style", "themeMode"],
|
|
5568
|
+
_excluded4$4 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style", "themeMode"];
|
|
5481
5569
|
var CardHeader = _ref => {
|
|
5482
5570
|
var _contextStyles$header;
|
|
5483
5571
|
var {
|
|
@@ -5502,7 +5590,7 @@ var CardContent = _ref2 => {
|
|
|
5502
5590
|
children,
|
|
5503
5591
|
style
|
|
5504
5592
|
} = _ref2,
|
|
5505
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
5593
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
|
|
5506
5594
|
var theme = appStudio.useTheme();
|
|
5507
5595
|
var {
|
|
5508
5596
|
styles: contextStyles
|
|
@@ -5520,7 +5608,7 @@ var CardFooter = _ref3 => {
|
|
|
5520
5608
|
children,
|
|
5521
5609
|
style
|
|
5522
5610
|
} = _ref3,
|
|
5523
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
5611
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
|
|
5524
5612
|
var theme = appStudio.useTheme();
|
|
5525
5613
|
var {
|
|
5526
5614
|
styles: contextStyles
|
|
@@ -5546,7 +5634,7 @@ var CardView = _ref4 => {
|
|
|
5546
5634
|
style,
|
|
5547
5635
|
themeMode: elementMode
|
|
5548
5636
|
} = _ref4,
|
|
5549
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
5637
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$4);
|
|
5550
5638
|
var theme = appStudio.useTheme();
|
|
5551
5639
|
var defaultStyles = getDefaultCardStyles();
|
|
5552
5640
|
// Prepare context value, merging default styles with user's `views` overrides
|
|
@@ -5879,9 +5967,9 @@ var useCarouselContext = () => {
|
|
|
5879
5967
|
};
|
|
5880
5968
|
|
|
5881
5969
|
var _excluded$f = ["children", "isActive", "views"],
|
|
5882
|
-
_excluded2$
|
|
5883
|
-
_excluded3$
|
|
5884
|
-
_excluded4$
|
|
5970
|
+
_excluded2$5 = ["views", "children"],
|
|
5971
|
+
_excluded3$5 = ["views", "children"],
|
|
5972
|
+
_excluded4$5 = ["children", "views"],
|
|
5885
5973
|
_excluded5$1 = ["children", "views", "style"],
|
|
5886
5974
|
_excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views", "stepIndices", "themeMode"];
|
|
5887
5975
|
var CarouselSlide = _ref => {
|
|
@@ -5906,7 +5994,7 @@ var CarouselPreviousComponent = _ref2 => {
|
|
|
5906
5994
|
children // Allow custom content/icon
|
|
5907
5995
|
// Spread remaining ButtonProps
|
|
5908
5996
|
} = _ref2,
|
|
5909
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
5997
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$5);
|
|
5910
5998
|
var {
|
|
5911
5999
|
goToPrevious,
|
|
5912
6000
|
canGoPrevious,
|
|
@@ -5929,7 +6017,7 @@ var CarouselNextComponent = _ref3 => {
|
|
|
5929
6017
|
views,
|
|
5930
6018
|
children
|
|
5931
6019
|
} = _ref3,
|
|
5932
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
6020
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$5);
|
|
5933
6021
|
var {
|
|
5934
6022
|
goToNext,
|
|
5935
6023
|
canGoNext,
|
|
@@ -5952,7 +6040,7 @@ var CarouselItemComponent = _ref4 => {
|
|
|
5952
6040
|
children,
|
|
5953
6041
|
views
|
|
5954
6042
|
} = _ref4,
|
|
5955
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
6043
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$5);
|
|
5956
6044
|
var {
|
|
5957
6045
|
registerSlide,
|
|
5958
6046
|
unregisterSlide,
|
|
@@ -7697,9 +7785,9 @@ var ContextMenuItemStates = {
|
|
|
7697
7785
|
// using viewport-aware algorithms in the ContextMenu component
|
|
7698
7786
|
|
|
7699
7787
|
var _excluded$i = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
|
|
7700
|
-
_excluded2$
|
|
7701
|
-
_excluded3$
|
|
7702
|
-
_excluded4$
|
|
7788
|
+
_excluded2$6 = ["items", "children", "position", "side", "align", "views", "style"],
|
|
7789
|
+
_excluded3$6 = ["item", "children", "onSelect", "isDisabled", "views"],
|
|
7790
|
+
_excluded4$6 = ["views"],
|
|
7703
7791
|
_excluded5$2 = ["views"],
|
|
7704
7792
|
_excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views", "themeMode"];
|
|
7705
7793
|
// Create context for the ContextMenu
|
|
@@ -7806,7 +7894,7 @@ var ContextMenuContent = _ref3 => {
|
|
|
7806
7894
|
views,
|
|
7807
7895
|
style // Capture user-provided style
|
|
7808
7896
|
} = _ref3,
|
|
7809
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
7897
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$6);
|
|
7810
7898
|
var {
|
|
7811
7899
|
isOpen,
|
|
7812
7900
|
position: contextPosition,
|
|
@@ -7921,7 +8009,7 @@ var ContextMenuItem = _ref4 => {
|
|
|
7921
8009
|
isDisabled = false,
|
|
7922
8010
|
views
|
|
7923
8011
|
} = _ref4,
|
|
7924
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
8012
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$6);
|
|
7925
8013
|
var {
|
|
7926
8014
|
activeSubmenuId,
|
|
7927
8015
|
setActiveSubmenuId,
|
|
@@ -8050,7 +8138,7 @@ var ContextMenuDivider = _ref5 => {
|
|
|
8050
8138
|
var {
|
|
8051
8139
|
views
|
|
8052
8140
|
} = _ref5,
|
|
8053
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$
|
|
8141
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$6);
|
|
8054
8142
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
8055
8143
|
height: "1px",
|
|
8056
8144
|
backgroundColor: "color.gray.200",
|
|
@@ -8166,7 +8254,7 @@ ContextMenu.Divider = ContextMenuDivider;
|
|
|
8166
8254
|
ContextMenu.Separator = ContextMenuSeparator; // Add the Separator component
|
|
8167
8255
|
|
|
8168
8256
|
var _excluded$k = ["src", "color", "views", "themeMode"],
|
|
8169
|
-
_excluded2$
|
|
8257
|
+
_excluded2$7 = ["path"];
|
|
8170
8258
|
var FileSVG = _ref => {
|
|
8171
8259
|
var {
|
|
8172
8260
|
src,
|
|
@@ -8196,7 +8284,7 @@ var FileImage = _ref2 => {
|
|
|
8196
8284
|
var {
|
|
8197
8285
|
path
|
|
8198
8286
|
} = _ref2,
|
|
8199
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
8287
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$7);
|
|
8200
8288
|
return /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({
|
|
8201
8289
|
src: path
|
|
8202
8290
|
}, props));
|
|
@@ -8672,9 +8760,9 @@ var IconSizes$2 = {
|
|
|
8672
8760
|
};
|
|
8673
8761
|
|
|
8674
8762
|
var _excluded$s = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
8675
|
-
_excluded2$
|
|
8676
|
-
_excluded3$
|
|
8677
|
-
_excluded4$
|
|
8763
|
+
_excluded2$8 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
8764
|
+
_excluded3$7 = ["option", "size", "removeOption"],
|
|
8765
|
+
_excluded4$7 = ["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"];
|
|
8678
8766
|
/**
|
|
8679
8767
|
* Item Component
|
|
8680
8768
|
*
|
|
@@ -8797,7 +8885,7 @@ var HiddenSelect = _ref4 => {
|
|
|
8797
8885
|
isReadOnly = false,
|
|
8798
8886
|
options = []
|
|
8799
8887
|
} = _ref4,
|
|
8800
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$
|
|
8888
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$8);
|
|
8801
8889
|
var handleChange = event => {
|
|
8802
8890
|
if (onChange) onChange(event);
|
|
8803
8891
|
};
|
|
@@ -8882,7 +8970,7 @@ var MultiSelect = _ref6 => {
|
|
|
8882
8970
|
size = 'md',
|
|
8883
8971
|
removeOption = () => {}
|
|
8884
8972
|
} = _ref6,
|
|
8885
|
-
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$
|
|
8973
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$7);
|
|
8886
8974
|
var handleClick = () => removeOption(option);
|
|
8887
8975
|
return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
|
|
8888
8976
|
gap: 8,
|
|
@@ -8943,7 +9031,7 @@ var SelectView = _ref7 => {
|
|
|
8943
9031
|
setHighlightedIndex,
|
|
8944
9032
|
highlightedIndex
|
|
8945
9033
|
} = _ref7,
|
|
8946
|
-
props = _objectWithoutPropertiesLoose(_ref7, _excluded4$
|
|
9034
|
+
props = _objectWithoutPropertiesLoose(_ref7, _excluded4$7);
|
|
8947
9035
|
var {
|
|
8948
9036
|
ref: triggerRef,
|
|
8949
9037
|
relation,
|
|
@@ -12132,8 +12220,8 @@ var IconSizes$4 = {
|
|
|
12132
12220
|
};
|
|
12133
12221
|
|
|
12134
12222
|
var _excluded$y = ["size"],
|
|
12135
|
-
_excluded2$
|
|
12136
|
-
_excluded3$
|
|
12223
|
+
_excluded2$9 = ["size"],
|
|
12224
|
+
_excluded3$8 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "onChange", "onBlur", "setHide", "setNewOptions", "setIsHovered", "setIsFocused", "setValue", "views", "themeMode"];
|
|
12137
12225
|
var CountryList = _ref => {
|
|
12138
12226
|
var props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
12139
12227
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
@@ -12144,7 +12232,7 @@ var CountrySelector = props => (/*#__PURE__*/React__default.createElement(appStu
|
|
|
12144
12232
|
type: "country"
|
|
12145
12233
|
}, props)));
|
|
12146
12234
|
var CountryItem = _ref2 => {
|
|
12147
|
-
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
12235
|
+
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$9);
|
|
12148
12236
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
12149
12237
|
as: "li"
|
|
12150
12238
|
}, props));
|
|
@@ -12246,7 +12334,7 @@ var CountryPickerView = _ref5 => {
|
|
|
12246
12334
|
},
|
|
12247
12335
|
themeMode: elementMode
|
|
12248
12336
|
} = _ref5,
|
|
12249
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$
|
|
12337
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$8);
|
|
12250
12338
|
var {
|
|
12251
12339
|
getColor,
|
|
12252
12340
|
themeMode
|
|
@@ -12497,7 +12585,7 @@ var usePasswordState = props => {
|
|
|
12497
12585
|
};
|
|
12498
12586
|
|
|
12499
12587
|
var _excluded$A = ["visibleIcon", "hiddenIcon"],
|
|
12500
|
-
_excluded2$
|
|
12588
|
+
_excluded2$a = ["isVisible", "setIsVisible"];
|
|
12501
12589
|
var PasswordComponent = _ref => {
|
|
12502
12590
|
var {
|
|
12503
12591
|
visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
|
|
@@ -12513,7 +12601,7 @@ var PasswordComponent = _ref => {
|
|
|
12513
12601
|
isVisible,
|
|
12514
12602
|
setIsVisible
|
|
12515
12603
|
} = _usePasswordState,
|
|
12516
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
12604
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$a);
|
|
12517
12605
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
12518
12606
|
type: isVisible ? 'text' : 'password',
|
|
12519
12607
|
isClearable: false,
|
|
@@ -14642,7 +14730,7 @@ var useHoverCardState = function useHoverCardState(_temp) {
|
|
|
14642
14730
|
};
|
|
14643
14731
|
|
|
14644
14732
|
var _excluded$J = ["children", "views", "asChild"],
|
|
14645
|
-
_excluded2$
|
|
14733
|
+
_excluded2$b = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
|
|
14646
14734
|
// Create context for the HoverCard
|
|
14647
14735
|
var HoverCardContext = /*#__PURE__*/React.createContext({
|
|
14648
14736
|
isOpen: false,
|
|
@@ -14728,7 +14816,7 @@ var HoverCardContent = _ref3 => {
|
|
|
14728
14816
|
minWidth = '50px',
|
|
14729
14817
|
maxWidth = '300px'
|
|
14730
14818
|
} = _ref3,
|
|
14731
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
14819
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$b);
|
|
14732
14820
|
var {
|
|
14733
14821
|
isOpen,
|
|
14734
14822
|
cancelCloseTimer,
|
|
@@ -15850,7 +15938,7 @@ var SwitchComponent$1 = props => {
|
|
|
15850
15938
|
var FormikSwitch = SwitchComponent$1;
|
|
15851
15939
|
|
|
15852
15940
|
var _excluded$N = ["name"],
|
|
15853
|
-
_excluded2$
|
|
15941
|
+
_excluded2$c = ["tags"];
|
|
15854
15942
|
/**
|
|
15855
15943
|
* Formik-integrated TagInput component
|
|
15856
15944
|
*/
|
|
@@ -15893,7 +15981,7 @@ var TagInputComponent$1 = props => {
|
|
|
15893
15981
|
var {
|
|
15894
15982
|
tags
|
|
15895
15983
|
} = tagInputState,
|
|
15896
|
-
stateWithoutTags = _objectWithoutPropertiesLoose(tagInputState, _excluded2$
|
|
15984
|
+
stateWithoutTags = _objectWithoutPropertiesLoose(tagInputState, _excluded2$c);
|
|
15897
15985
|
// Render the view component with combined props and state
|
|
15898
15986
|
return /*#__PURE__*/React__default.createElement(TagInputView, Object.assign({}, stateWithoutTags, restProps, {
|
|
15899
15987
|
tags: tags,
|
|
@@ -15929,7 +16017,7 @@ var TextFieldComponent$1 = props => {
|
|
|
15929
16017
|
var FormikTextField = TextFieldComponent$1;
|
|
15930
16018
|
|
|
15931
16019
|
var _excluded$P = ["visibleIcon", "hiddenIcon"],
|
|
15932
|
-
_excluded2$
|
|
16020
|
+
_excluded2$d = ["isVisible", "setIsVisible"];
|
|
15933
16021
|
var PasswordComponent$1 = _ref => {
|
|
15934
16022
|
var {
|
|
15935
16023
|
visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
|
|
@@ -15946,7 +16034,7 @@ var PasswordComponent$1 = _ref => {
|
|
|
15946
16034
|
isVisible,
|
|
15947
16035
|
setIsVisible
|
|
15948
16036
|
} = _usePasswordState,
|
|
15949
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
16037
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$d);
|
|
15950
16038
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
15951
16039
|
type: isVisible ? 'text' : 'password',
|
|
15952
16040
|
isClearable: false,
|
|
@@ -17063,9 +17151,9 @@ var ModalTypography = {
|
|
|
17063
17151
|
};
|
|
17064
17152
|
|
|
17065
17153
|
var _excluded$T = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
|
|
17066
|
-
_excluded2$
|
|
17067
|
-
_excluded3$
|
|
17068
|
-
_excluded4$
|
|
17154
|
+
_excluded2$e = ["children", "shadow", "isFullScreen", "shape", "views", "isOpen"],
|
|
17155
|
+
_excluded3$9 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
|
|
17156
|
+
_excluded4$8 = ["children", "views"],
|
|
17069
17157
|
_excluded5$3 = ["children", "views"];
|
|
17070
17158
|
var ModalOverlay = _ref => {
|
|
17071
17159
|
var {
|
|
@@ -17113,7 +17201,7 @@ var ModalContainer = _ref2 => {
|
|
|
17113
17201
|
shape = 'rounded',
|
|
17114
17202
|
views
|
|
17115
17203
|
} = _ref2,
|
|
17116
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
17204
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$e);
|
|
17117
17205
|
var defaultShadow = typeof document !== undefined ? {
|
|
17118
17206
|
boxShadow: '0px 4px 16px rgba(0, 0, 0, 0.15)'
|
|
17119
17207
|
} : {
|
|
@@ -17154,7 +17242,7 @@ var ModalHeader = _ref3 => {
|
|
|
17154
17242
|
buttonPosition = 'right',
|
|
17155
17243
|
views
|
|
17156
17244
|
} = _ref3,
|
|
17157
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
17245
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$9);
|
|
17158
17246
|
var onClose = props.onClose ? props.onClose : hideModal;
|
|
17159
17247
|
var buttonIcon = /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
17160
17248
|
onClick: onClose
|
|
@@ -17183,7 +17271,7 @@ var ModalBody = _ref4 => {
|
|
|
17183
17271
|
children,
|
|
17184
17272
|
views
|
|
17185
17273
|
} = _ref4,
|
|
17186
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
17274
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$8);
|
|
17187
17275
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
17188
17276
|
paddingVertical: 16,
|
|
17189
17277
|
paddingHorizontal: 24,
|
|
@@ -17326,9 +17414,9 @@ var DrawerPlacements = {
|
|
|
17326
17414
|
};
|
|
17327
17415
|
|
|
17328
17416
|
var _excluded$U = ["isOpen", "onClose", "isClosePrevented", "blur", "children"],
|
|
17329
|
-
_excluded2$
|
|
17330
|
-
_excluded3$
|
|
17331
|
-
_excluded4$
|
|
17417
|
+
_excluded2$f = ["placement", "size", "children"],
|
|
17418
|
+
_excluded3$a = ["children", "onClose", "buttonPosition"],
|
|
17419
|
+
_excluded4$9 = ["children"],
|
|
17332
17420
|
_excluded5$4 = ["children"];
|
|
17333
17421
|
var DrawerOverlay = _ref => {
|
|
17334
17422
|
var {
|
|
@@ -17379,7 +17467,7 @@ var DrawerContainer = _ref2 => {
|
|
|
17379
17467
|
size = 'md',
|
|
17380
17468
|
children
|
|
17381
17469
|
} = _ref2,
|
|
17382
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
17470
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$f);
|
|
17383
17471
|
var handleClick = e => {
|
|
17384
17472
|
e.stopPropagation();
|
|
17385
17473
|
};
|
|
@@ -17405,7 +17493,7 @@ var DrawerHeader = _ref3 => {
|
|
|
17405
17493
|
onClose,
|
|
17406
17494
|
buttonPosition = 'right'
|
|
17407
17495
|
} = _ref3,
|
|
17408
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
17496
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$a);
|
|
17409
17497
|
var closeButton = onClose && (/*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
17410
17498
|
onClick: onClose,
|
|
17411
17499
|
cursor: "pointer",
|
|
@@ -17427,7 +17515,7 @@ var DrawerBody = _ref4 => {
|
|
|
17427
17515
|
var {
|
|
17428
17516
|
children
|
|
17429
17517
|
} = _ref4,
|
|
17430
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
17518
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$9);
|
|
17431
17519
|
return /*#__PURE__*/React__default.createElement(appStudio.Vertical, Object.assign({
|
|
17432
17520
|
padding: 24,
|
|
17433
17521
|
flex: 1,
|
|
@@ -18989,7 +19077,7 @@ var TypewriterEffect = _ref => {
|
|
|
18989
19077
|
};
|
|
18990
19078
|
|
|
18991
19079
|
var _excluded$Z = ["text", "duration", "direction", "stagger", "sequential", "textStyle", "as", "wordProps"],
|
|
18992
|
-
_excluded2$
|
|
19080
|
+
_excluded2$g = ["style"];
|
|
18993
19081
|
// CSS keyframes injection - done once
|
|
18994
19082
|
var KEYFRAMES_ID = 'slide-effect-keyframes';
|
|
18995
19083
|
var injectKeyframes = () => {
|
|
@@ -19084,7 +19172,7 @@ var SlideEffect = _ref => {
|
|
|
19084
19172
|
{
|
|
19085
19173
|
style: customWordStyle
|
|
19086
19174
|
} = _ref2,
|
|
19087
|
-
restWordProps = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
19175
|
+
restWordProps = _objectWithoutPropertiesLoose(_ref2, _excluded2$g);
|
|
19088
19176
|
// Get animation names based on direction
|
|
19089
19177
|
var isUp = direction === 'up';
|
|
19090
19178
|
var enterAnim = isUp ? 'slideInUp' : 'slideInDown';
|
|
@@ -19877,9 +19965,9 @@ var DropdownMenuItemStates = {
|
|
|
19877
19965
|
};
|
|
19878
19966
|
|
|
19879
19967
|
var _excluded$11 = ["children", "views"],
|
|
19880
|
-
_excluded2$
|
|
19881
|
-
_excluded3$
|
|
19882
|
-
_excluded4$
|
|
19968
|
+
_excluded2$h = ["items", "side", "align", "views"],
|
|
19969
|
+
_excluded3$b = ["item", "views"],
|
|
19970
|
+
_excluded4$a = ["views"],
|
|
19883
19971
|
_excluded5$5 = ["trigger", "items", "side", "align", "views", "themeMode"];
|
|
19884
19972
|
// Create context for the DropdownMenu
|
|
19885
19973
|
var DropdownMenuContext = /*#__PURE__*/React.createContext({
|
|
@@ -19944,7 +20032,7 @@ var DropdownMenuContent = _ref3 => {
|
|
|
19944
20032
|
align = 'start',
|
|
19945
20033
|
views
|
|
19946
20034
|
} = _ref3,
|
|
19947
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
20035
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$h);
|
|
19948
20036
|
var {
|
|
19949
20037
|
isOpen,
|
|
19950
20038
|
variant,
|
|
@@ -20075,7 +20163,7 @@ var DropdownMenuItem = _ref4 => {
|
|
|
20075
20163
|
item,
|
|
20076
20164
|
views
|
|
20077
20165
|
} = _ref4,
|
|
20078
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
20166
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$b);
|
|
20079
20167
|
var {
|
|
20080
20168
|
activeSubmenuId,
|
|
20081
20169
|
setActiveSubmenuId,
|
|
@@ -20140,7 +20228,7 @@ var DropdownMenuDivider = _ref5 => {
|
|
|
20140
20228
|
var {
|
|
20141
20229
|
views
|
|
20142
20230
|
} = _ref5,
|
|
20143
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$
|
|
20231
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$a);
|
|
20144
20232
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
20145
20233
|
height: "1px",
|
|
20146
20234
|
backgroundColor: "color.gray.200",
|
|
@@ -24498,9 +24586,9 @@ var SidebarTransitions = {
|
|
|
24498
24586
|
};
|
|
24499
24587
|
|
|
24500
24588
|
var _excluded$1e = ["children", "showToggleButton", "views"],
|
|
24501
|
-
_excluded2$
|
|
24502
|
-
_excluded3$
|
|
24503
|
-
_excluded4$
|
|
24589
|
+
_excluded2$i = ["children", "views"],
|
|
24590
|
+
_excluded3$c = ["children", "views"],
|
|
24591
|
+
_excluded4$b = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
|
|
24504
24592
|
// Create context for the Sidebar
|
|
24505
24593
|
var SidebarContext = /*#__PURE__*/React.createContext({
|
|
24506
24594
|
isExpanded: true,
|
|
@@ -24597,7 +24685,7 @@ var SidebarContent = _ref3 => {
|
|
|
24597
24685
|
children,
|
|
24598
24686
|
views
|
|
24599
24687
|
} = _ref3,
|
|
24600
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
24688
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$i);
|
|
24601
24689
|
var {
|
|
24602
24690
|
isExpanded
|
|
24603
24691
|
} = useSidebarContext();
|
|
@@ -24615,7 +24703,7 @@ var SidebarFooter = _ref4 => {
|
|
|
24615
24703
|
children,
|
|
24616
24704
|
views
|
|
24617
24705
|
} = _ref4,
|
|
24618
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
24706
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$c);
|
|
24619
24707
|
var {
|
|
24620
24708
|
isExpanded
|
|
24621
24709
|
} = useSidebarContext();
|
|
@@ -24651,7 +24739,7 @@ var SidebarView = _ref5 => {
|
|
|
24651
24739
|
collapse,
|
|
24652
24740
|
views
|
|
24653
24741
|
} = _ref5,
|
|
24654
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$
|
|
24742
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$b);
|
|
24655
24743
|
// Determine width based on expanded state and size
|
|
24656
24744
|
var sizeConfig = SidebarSizes[size];
|
|
24657
24745
|
var width = isExpanded ? expandedWidth || sizeConfig.expandedWidth : collapsedWidth || sizeConfig.collapsedWidth;
|
|
@@ -25173,8 +25261,8 @@ var HandleIconStyles = {
|
|
|
25173
25261
|
};
|
|
25174
25262
|
|
|
25175
25263
|
var _excluded$1g = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
|
|
25176
|
-
_excluded2$
|
|
25177
|
-
_excluded3$
|
|
25264
|
+
_excluded2$j = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
|
|
25265
|
+
_excluded3$d = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
|
|
25178
25266
|
// Create context for the Resizable component
|
|
25179
25267
|
var ResizableContext = /*#__PURE__*/React.createContext({
|
|
25180
25268
|
orientation: 'horizontal',
|
|
@@ -25281,7 +25369,7 @@ var ResizableHandle = _ref3 => {
|
|
|
25281
25369
|
collapseTarget,
|
|
25282
25370
|
views
|
|
25283
25371
|
} = _ref3,
|
|
25284
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
25372
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$j);
|
|
25285
25373
|
var {
|
|
25286
25374
|
orientation,
|
|
25287
25375
|
size,
|
|
@@ -25421,7 +25509,7 @@ var ResizableView = _ref4 => {
|
|
|
25421
25509
|
containerRef,
|
|
25422
25510
|
views
|
|
25423
25511
|
} = _ref4,
|
|
25424
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
25512
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$d);
|
|
25425
25513
|
var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
|
|
25426
25514
|
return /*#__PURE__*/React__default.createElement(Container, Object.assign({
|
|
25427
25515
|
ref: containerRef,
|
|
@@ -26224,9 +26312,9 @@ var CommandFooterStyles = {
|
|
|
26224
26312
|
};
|
|
26225
26313
|
|
|
26226
26314
|
var _excluded$1i = ["value", "onValueChange", "placeholder", "views"],
|
|
26227
|
-
_excluded2$
|
|
26228
|
-
_excluded3$
|
|
26229
|
-
_excluded4$
|
|
26315
|
+
_excluded2$k = ["children", "views"],
|
|
26316
|
+
_excluded3$e = ["heading", "children", "views"],
|
|
26317
|
+
_excluded4$c = ["item", "selected", "onSelect", "views"],
|
|
26230
26318
|
_excluded5$6 = ["children", "views"],
|
|
26231
26319
|
_excluded6$3 = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "emptyState", "footer", "search", "setSearch", "selectedIndex", "setSelectedIndex", "filteredCommands", "filteredGroups", "listRef", "views", "filter"];
|
|
26232
26320
|
var CommandContext = /*#__PURE__*/React.createContext({
|
|
@@ -26287,7 +26375,7 @@ var CommandList = _ref3 => {
|
|
|
26287
26375
|
children,
|
|
26288
26376
|
views
|
|
26289
26377
|
} = _ref3,
|
|
26290
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
26378
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$k);
|
|
26291
26379
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandListStyles, views == null ? void 0 : views.container, props), children);
|
|
26292
26380
|
};
|
|
26293
26381
|
// Command Group component
|
|
@@ -26297,7 +26385,7 @@ var CommandGroup = _ref4 => {
|
|
|
26297
26385
|
children,
|
|
26298
26386
|
views
|
|
26299
26387
|
} = _ref4,
|
|
26300
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
26388
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$e);
|
|
26301
26389
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandGroupStyles, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({}, CommandGroupHeadingStyles, views == null ? void 0 : views.heading), heading), children);
|
|
26302
26390
|
};
|
|
26303
26391
|
// Command Item component
|
|
@@ -26308,7 +26396,7 @@ var CommandItem = _ref5 => {
|
|
|
26308
26396
|
onSelect,
|
|
26309
26397
|
views
|
|
26310
26398
|
} = _ref5,
|
|
26311
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$
|
|
26399
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$c);
|
|
26312
26400
|
var handleClick = () => {
|
|
26313
26401
|
if (!item.disabled && onSelect) {
|
|
26314
26402
|
onSelect();
|
|
@@ -26694,8 +26782,8 @@ var getArrowStyles = position => {
|
|
|
26694
26782
|
};
|
|
26695
26783
|
|
|
26696
26784
|
var _excluded$1k = ["children", "views", "asChild"],
|
|
26697
|
-
_excluded2$
|
|
26698
|
-
_excluded3$
|
|
26785
|
+
_excluded2$l = ["children", "views"],
|
|
26786
|
+
_excluded3$f = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
|
|
26699
26787
|
// Create context for the Tooltip
|
|
26700
26788
|
var TooltipContext = /*#__PURE__*/React.createContext({
|
|
26701
26789
|
isOpen: false,
|
|
@@ -26765,7 +26853,7 @@ var TooltipContent = _ref3 => {
|
|
|
26765
26853
|
children,
|
|
26766
26854
|
views
|
|
26767
26855
|
} = _ref3,
|
|
26768
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
26856
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$l);
|
|
26769
26857
|
var {
|
|
26770
26858
|
isOpen,
|
|
26771
26859
|
contentRef,
|
|
@@ -26795,7 +26883,7 @@ var TooltipView = _ref4 => {
|
|
|
26795
26883
|
showArrow = true,
|
|
26796
26884
|
views
|
|
26797
26885
|
} = _ref4,
|
|
26798
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
26886
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$f);
|
|
26799
26887
|
var {
|
|
26800
26888
|
isOpen,
|
|
26801
26889
|
triggerRef,
|
|
@@ -27335,9 +27423,9 @@ var Gradient = props => {
|
|
|
27335
27423
|
};
|
|
27336
27424
|
|
|
27337
27425
|
var _excluded$1n = ["children", "showRadialGradient", "views", "themeMode"],
|
|
27338
|
-
_excluded2$
|
|
27339
|
-
_excluded3$
|
|
27340
|
-
_excluded4$
|
|
27426
|
+
_excluded2$m = ["number", "children"],
|
|
27427
|
+
_excluded3$g = ["rows", "cols", "squareSize"],
|
|
27428
|
+
_excluded4$d = ["count", "colors", "speed", "shapes"],
|
|
27341
27429
|
_excluded5$7 = ["gridSize", "lineColor", "pulseColor", "animationSpeed"],
|
|
27342
27430
|
_excluded6$4 = ["rippleCount", "colors", "maxSize", "frequency"],
|
|
27343
27431
|
_excluded7$1 = ["children", "src", "backgroundSize", "backgroundPosition", "backgroundRepeat", "backgroundAttachment", "imageOpacity", "overlay", "blendMode", "views", "themeMode"],
|
|
@@ -27379,7 +27467,7 @@ var Meteors = _ref2 => {
|
|
|
27379
27467
|
number = 20,
|
|
27380
27468
|
children
|
|
27381
27469
|
} = _ref2,
|
|
27382
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
27470
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$m);
|
|
27383
27471
|
var meteors = Array.from({
|
|
27384
27472
|
length: number
|
|
27385
27473
|
}, (_, i) => i);
|
|
@@ -27447,7 +27535,7 @@ var Wall = _ref3 => {
|
|
|
27447
27535
|
cols = 10,
|
|
27448
27536
|
squareSize = 40
|
|
27449
27537
|
} = _ref3,
|
|
27450
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
27538
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$g);
|
|
27451
27539
|
var rowsArray = Array(rows).fill(1);
|
|
27452
27540
|
var colsArray = Array(cols).fill(1);
|
|
27453
27541
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
@@ -27490,7 +27578,7 @@ var Particles = _ref4 => {
|
|
|
27490
27578
|
speed = 'medium',
|
|
27491
27579
|
shapes = ['circle']
|
|
27492
27580
|
} = _ref4,
|
|
27493
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
27581
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$d);
|
|
27494
27582
|
var particles = Array.from({
|
|
27495
27583
|
length: count
|
|
27496
27584
|
}, (_, i) => i);
|