@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
package/dist/web.esm.js
CHANGED
|
@@ -4834,7 +4834,7 @@ var Loader = LoaderComponent;
|
|
|
4834
4834
|
*/
|
|
4835
4835
|
var ButtonSizes = {
|
|
4836
4836
|
xs: {
|
|
4837
|
-
minHeight:
|
|
4837
|
+
minHeight: 8 * 4,
|
|
4838
4838
|
paddingTop: 1,
|
|
4839
4839
|
paddingBottom: 1,
|
|
4840
4840
|
paddingLeft: 2,
|
|
@@ -4845,7 +4845,7 @@ var ButtonSizes = {
|
|
|
4845
4845
|
letterSpacing: '-0.01em'
|
|
4846
4846
|
},
|
|
4847
4847
|
sm: {
|
|
4848
|
-
minHeight:
|
|
4848
|
+
minHeight: 10 * 4,
|
|
4849
4849
|
paddingTop: 4,
|
|
4850
4850
|
paddingBottom: 4,
|
|
4851
4851
|
paddingLeft: 8,
|
|
@@ -4856,18 +4856,18 @@ var ButtonSizes = {
|
|
|
4856
4856
|
letterSpacing: '-0.01em'
|
|
4857
4857
|
},
|
|
4858
4858
|
md: {
|
|
4859
|
-
minHeight:
|
|
4860
|
-
paddingTop:
|
|
4861
|
-
paddingBottom:
|
|
4862
|
-
paddingLeft:
|
|
4863
|
-
paddingRight:
|
|
4864
|
-
fontSize:
|
|
4865
|
-
fontWeight:
|
|
4866
|
-
lineHeight:
|
|
4859
|
+
minHeight: 12 * 4,
|
|
4860
|
+
paddingTop: 8,
|
|
4861
|
+
paddingBottom: 8,
|
|
4862
|
+
paddingLeft: 20,
|
|
4863
|
+
paddingRight: 20,
|
|
4864
|
+
fontSize: 16,
|
|
4865
|
+
fontWeight: 550,
|
|
4866
|
+
lineHeight: 24,
|
|
4867
4867
|
letterSpacing: '-0.01em'
|
|
4868
4868
|
},
|
|
4869
4869
|
lg: {
|
|
4870
|
-
minHeight:
|
|
4870
|
+
minHeight: 14 * 4,
|
|
4871
4871
|
paddingTop: 8,
|
|
4872
4872
|
paddingBottom: 8,
|
|
4873
4873
|
paddingLeft: 16,
|
|
@@ -4878,7 +4878,7 @@ var ButtonSizes = {
|
|
|
4878
4878
|
letterSpacing: '-0.01em'
|
|
4879
4879
|
},
|
|
4880
4880
|
xl: {
|
|
4881
|
-
minHeight:
|
|
4881
|
+
minHeight: 16 * 4,
|
|
4882
4882
|
paddingTop: 10,
|
|
4883
4883
|
paddingBottom: 10,
|
|
4884
4884
|
paddingLeft: 20,
|
|
@@ -4927,142 +4927,387 @@ var IconSizes$1 = {
|
|
|
4927
4927
|
padding: 14
|
|
4928
4928
|
}
|
|
4929
4929
|
};
|
|
4930
|
-
var getButtonVariants = (color, isLight)
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
borderWidth: 1,
|
|
4935
|
-
borderStyle: 'solid',
|
|
4936
|
-
borderColor: 'transparent',
|
|
4937
|
-
_hover: {
|
|
4938
|
-
opacity: 0.9
|
|
4939
|
-
},
|
|
4940
|
-
_active: {
|
|
4941
|
-
opacity: 0.95
|
|
4942
|
-
},
|
|
4943
|
-
_focusVisible: {
|
|
4944
|
-
outline: 'none',
|
|
4945
|
-
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
4946
|
-
},
|
|
4947
|
-
transition: 'background-color 0.2s ease, opacity 0.2s ease'
|
|
4948
|
-
},
|
|
4949
|
-
outline: {
|
|
4950
|
-
backgroundColor: 'transparent',
|
|
4951
|
-
color: color,
|
|
4952
|
-
borderWidth: 1,
|
|
4953
|
-
borderStyle: 'solid',
|
|
4954
|
-
borderColor: color,
|
|
4955
|
-
_hover: {
|
|
4956
|
-
backgroundColor: color,
|
|
4957
|
-
color: isLight ? 'color.black' : 'color.white',
|
|
4958
|
-
opacity: 0.9
|
|
4959
|
-
},
|
|
4960
|
-
_active: {
|
|
4930
|
+
var getButtonVariants = function getButtonVariants(color, isLight, isThemeLight) {
|
|
4931
|
+
var textColor = isLight ? '#000000' : '#FFFFFF';
|
|
4932
|
+
return {
|
|
4933
|
+
filled: {
|
|
4961
4934
|
backgroundColor: color,
|
|
4962
|
-
color:
|
|
4963
|
-
|
|
4935
|
+
color: textColor,
|
|
4936
|
+
borderWidth: 1,
|
|
4937
|
+
borderStyle: 'solid',
|
|
4938
|
+
borderColor: 'transparent',
|
|
4939
|
+
_hover: {
|
|
4940
|
+
opacity: 0.9,
|
|
4941
|
+
color: textColor
|
|
4942
|
+
},
|
|
4943
|
+
_active: {
|
|
4944
|
+
opacity: 0.95,
|
|
4945
|
+
color: textColor
|
|
4946
|
+
},
|
|
4947
|
+
_focusVisible: {
|
|
4948
|
+
outline: 'none',
|
|
4949
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color,
|
|
4950
|
+
color: textColor
|
|
4951
|
+
},
|
|
4952
|
+
transition: 'background-color 0.2s ease, opacity 0.2s ease'
|
|
4964
4953
|
},
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4954
|
+
outline: {
|
|
4955
|
+
backgroundColor: 'transparent',
|
|
4956
|
+
color: color,
|
|
4957
|
+
borderWidth: 1,
|
|
4958
|
+
borderStyle: 'solid',
|
|
4959
|
+
borderColor: color,
|
|
4960
|
+
_hover: {
|
|
4961
|
+
backgroundColor: color,
|
|
4962
|
+
color: textColor,
|
|
4963
|
+
opacity: 0.9
|
|
4964
|
+
},
|
|
4965
|
+
_active: {
|
|
4966
|
+
backgroundColor: color,
|
|
4967
|
+
color: textColor,
|
|
4968
|
+
opacity: 0.95
|
|
4969
|
+
},
|
|
4970
|
+
_focusVisible: {
|
|
4971
|
+
outline: 'none',
|
|
4972
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
4973
|
+
},
|
|
4974
|
+
transition: 'background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease'
|
|
4968
4975
|
},
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4976
|
+
ghost: {
|
|
4977
|
+
backgroundColor: 'transparent',
|
|
4978
|
+
color: color,
|
|
4979
|
+
borderWidth: 1,
|
|
4980
|
+
borderStyle: 'solid',
|
|
4981
|
+
borderColor: 'transparent',
|
|
4982
|
+
_hover: {
|
|
4983
|
+
borderWidth: 1,
|
|
4984
|
+
borderStyle: 'solid',
|
|
4985
|
+
borderColor: color,
|
|
4986
|
+
color: color,
|
|
4987
|
+
opacity: 0.9
|
|
4988
|
+
},
|
|
4989
|
+
_active: {
|
|
4990
|
+
color: color,
|
|
4991
|
+
opacity: 0.95
|
|
4992
|
+
},
|
|
4993
|
+
_focusVisible: {
|
|
4994
|
+
outline: 'none',
|
|
4995
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
4996
|
+
},
|
|
4997
|
+
transition: 'background-color 0.2s ease, opacity 0.2s ease'
|
|
4980
4998
|
},
|
|
4981
|
-
|
|
4982
|
-
backgroundColor:
|
|
4983
|
-
|
|
4999
|
+
link: {
|
|
5000
|
+
backgroundColor: 'transparent',
|
|
5001
|
+
color: color,
|
|
5002
|
+
borderWidth: 0,
|
|
5003
|
+
borderStyle: 'none',
|
|
5004
|
+
borderColor: 'transparent',
|
|
5005
|
+
textDecoration: 'underline',
|
|
5006
|
+
textUnderlineOffset: '2px',
|
|
5007
|
+
textDecorationThickness: '1px',
|
|
5008
|
+
textDecorationColor: color,
|
|
5009
|
+
_hover: {
|
|
5010
|
+
color: color,
|
|
5011
|
+
opacity: 0.8
|
|
5012
|
+
},
|
|
5013
|
+
_active: {
|
|
5014
|
+
color: color,
|
|
5015
|
+
opacity: 0.9
|
|
5016
|
+
},
|
|
5017
|
+
_focusVisible: {
|
|
5018
|
+
outline: 'none',
|
|
5019
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
5020
|
+
},
|
|
5021
|
+
transition: 'opacity 0.2s ease'
|
|
4984
5022
|
},
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
5023
|
+
borderMoving: {
|
|
5024
|
+
position: 'relative',
|
|
5025
|
+
backgroundColor: 'black',
|
|
5026
|
+
color: textColor,
|
|
5027
|
+
overflow: 'hidden',
|
|
5028
|
+
borderWidth: 0,
|
|
5029
|
+
borderStyle: 'none',
|
|
5030
|
+
borderColor: 'transparent',
|
|
5031
|
+
_hover: {
|
|
5032
|
+
color: textColor
|
|
5033
|
+
},
|
|
5034
|
+
_active: {
|
|
5035
|
+
color: textColor
|
|
5036
|
+
},
|
|
5037
|
+
_focusVisible: {
|
|
5038
|
+
outline: 'none',
|
|
5039
|
+
boxShadow: '0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(0, 0, 0, 0.8)'
|
|
5040
|
+
},
|
|
5041
|
+
transition: 'opacity 0.2s ease'
|
|
4988
5042
|
},
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5043
|
+
animatedStroke: {
|
|
5044
|
+
display: 'inline-block',
|
|
5045
|
+
margin: '0 auto',
|
|
5046
|
+
textAlign: 'center',
|
|
5047
|
+
textDecoration: 'none',
|
|
5048
|
+
position: 'relative',
|
|
5049
|
+
cursor: 'pointer',
|
|
5050
|
+
backgroundColor: 'transparent',
|
|
5051
|
+
color: color,
|
|
5052
|
+
borderWidth: 0,
|
|
5053
|
+
borderStyle: 'none',
|
|
5054
|
+
borderColor: 'transparent',
|
|
5055
|
+
_hover: {
|
|
5056
|
+
color: color
|
|
5057
|
+
},
|
|
5058
|
+
_active: {
|
|
5059
|
+
color: color
|
|
5060
|
+
},
|
|
5061
|
+
_focusVisible: {
|
|
5062
|
+
outline: 'none',
|
|
5063
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
5064
|
+
},
|
|
5065
|
+
transition: 'opacity 0.2s ease'
|
|
5066
|
+
}
|
|
5067
|
+
};
|
|
5068
|
+
};
|
|
5069
|
+
|
|
5070
|
+
var _excluded$d = ["shape", "size", "isDisabled", "onClick", "views", "mainTone", "tone", "borderMovingGradientColors", "borderMovingDuration", "content", "shadow"],
|
|
5071
|
+
_excluded2$3 = ["to", "onClick", "views", "children", "size", "accentColor", "textColor", "getColor", "shadow"],
|
|
5072
|
+
_excluded3$3 = ["variant", "to", "isDisabled", "isLoading", "isAuto", "isFilled", "isExternal", "shape", "shadow", "onClick", "views", "baseStyles", "sizeStyles", "iconPad", "resolvedTextColor", "content", "size"],
|
|
5073
|
+
_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"];
|
|
5074
|
+
// --- Helper: Button Content ---
|
|
5075
|
+
// Renders the inner content: Loader, Icon, and Children.
|
|
5076
|
+
var ButtonContent = _ref => {
|
|
5077
|
+
var {
|
|
5078
|
+
children,
|
|
5079
|
+
icon,
|
|
5080
|
+
isLoading,
|
|
5081
|
+
iconPosition = 'left',
|
|
5082
|
+
loaderPosition = 'left',
|
|
5083
|
+
size = 'md',
|
|
5084
|
+
resolvedTextColor,
|
|
5085
|
+
isIconRounded,
|
|
5086
|
+
views
|
|
5087
|
+
} = _ref;
|
|
5088
|
+
var Wrapper = ['left', 'right'].includes(iconPosition) ? Horizontal : Vertical;
|
|
5089
|
+
var sizeStyles = ButtonSizes[size];
|
|
5090
|
+
var iconPad = isIconRounded ? IconSizes$1[size] : {};
|
|
5091
|
+
return /*#__PURE__*/React.createElement(Wrapper, Object.assign({
|
|
5092
|
+
gap: 8,
|
|
5093
|
+
alignItems: "center",
|
|
5094
|
+
justifyContent: "center"
|
|
5095
|
+
}, sizeStyles, iconPad, views == null ? void 0 : views.content), isLoading && loaderPosition === 'left' && (/*#__PURE__*/React.createElement(Loader, Object.assign({
|
|
5096
|
+
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
5097
|
+
color: 'currentColor'
|
|
5098
|
+
}, views == null ? void 0 : views.loader))), icon && ['left', 'top'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React.createElement(View, Object.assign({
|
|
5099
|
+
color: 'currentColor'
|
|
5100
|
+
}, views == null ? void 0 : views.icon), icon)), children, icon && ['right', 'bottom'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React.createElement(View, Object.assign({
|
|
5101
|
+
color: 'currentColor'
|
|
5102
|
+
}, views == null ? void 0 : views.icon), icon)), isLoading && loaderPosition === 'right' && (/*#__PURE__*/React.createElement(Loader, Object.assign({
|
|
5103
|
+
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
5104
|
+
color: 'currentColor'
|
|
5105
|
+
}, views == null ? void 0 : views.loader))));
|
|
5106
|
+
};
|
|
5107
|
+
// --- Variant: Border Moving ---
|
|
5108
|
+
var BorderMovingButton = _ref2 => {
|
|
5109
|
+
var {
|
|
5110
|
+
shape = 'rounded',
|
|
5111
|
+
size = 'md',
|
|
5112
|
+
isDisabled,
|
|
5113
|
+
onClick,
|
|
5114
|
+
views,
|
|
5115
|
+
mainTone,
|
|
5116
|
+
tone,
|
|
5117
|
+
borderMovingGradientColors,
|
|
5118
|
+
borderMovingDuration,
|
|
5119
|
+
content,
|
|
5120
|
+
shadow
|
|
5121
|
+
} = _ref2,
|
|
5122
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$d);
|
|
5123
|
+
var sizeStyles = ButtonSizes[size];
|
|
5124
|
+
var borderWidth = 3;
|
|
5125
|
+
var numericWidth = typeof sizeStyles.width === 'number' ? sizeStyles.width : 300;
|
|
5126
|
+
var numericHeight = typeof sizeStyles.height === 'number' ? sizeStyles.height : 64;
|
|
5127
|
+
var numericBorderRadius = (() => {
|
|
5128
|
+
var shapeValue = ButtonShapes[shape];
|
|
5129
|
+
if (typeof shapeValue === 'number') {
|
|
5130
|
+
return shapeValue;
|
|
5131
|
+
}
|
|
5132
|
+
if (typeof shapeValue === 'string') {
|
|
5133
|
+
return parseInt(shapeValue, 10) || 50;
|
|
5134
|
+
}
|
|
5135
|
+
return 50;
|
|
5136
|
+
})();
|
|
5137
|
+
var containerBg = mainTone;
|
|
5138
|
+
// Use high contrast text color for this variant
|
|
5139
|
+
var borderMovingTextColor = tone === 'light' ? '#000000' : '#FFFFFF';
|
|
5140
|
+
// Create gradient string for border animation
|
|
5141
|
+
var gradientColors = borderMovingGradientColors.join(', ');
|
|
5142
|
+
// Animation sequence for the moving border effect
|
|
5143
|
+
var borderAnimation = {
|
|
5144
|
+
from: {
|
|
5145
|
+
backgroundPosition: '0% 50%'
|
|
5002
5146
|
},
|
|
5003
|
-
|
|
5004
|
-
|
|
5147
|
+
to: {
|
|
5148
|
+
backgroundPosition: '200% 50%'
|
|
5005
5149
|
},
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5150
|
+
duration: borderMovingDuration + "s",
|
|
5151
|
+
timingFunction: 'linear',
|
|
5152
|
+
iterationCount: 'infinite'
|
|
5153
|
+
};
|
|
5154
|
+
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
5155
|
+
position: "relative",
|
|
5156
|
+
display: "inline-flex",
|
|
5157
|
+
alignItems: "center",
|
|
5158
|
+
justifyContent: "center",
|
|
5159
|
+
borderRadius: ButtonShapes[shape],
|
|
5160
|
+
cursor: isDisabled ? 'default' : 'pointer',
|
|
5161
|
+
onClick: onClick,
|
|
5162
|
+
boxShadow: shadow,
|
|
5163
|
+
padding: borderWidth,
|
|
5164
|
+
background: "linear-gradient(90deg, " + borderMovingGradientColors[0] + ", " + borderMovingGradientColors[1] + ", " + borderMovingGradientColors[2] + ", " + borderMovingGradientColors[0] + ")",
|
|
5165
|
+
backgroundSize: "200% 100%",
|
|
5166
|
+
animate: borderAnimation
|
|
5167
|
+
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React.createElement(View, {
|
|
5168
|
+
display: "flex",
|
|
5169
|
+
alignItems: "center",
|
|
5170
|
+
justifyContent: "center",
|
|
5171
|
+
backgroundColor: containerBg,
|
|
5172
|
+
borderRadius: Math.max(0, numericBorderRadius - borderWidth),
|
|
5173
|
+
width: "100%",
|
|
5174
|
+
height: "100%",
|
|
5175
|
+
minWidth: numericWidth - borderWidth * 2,
|
|
5176
|
+
minHeight: numericHeight - borderWidth * 2,
|
|
5177
|
+
color: borderMovingTextColor,
|
|
5178
|
+
fontSize: 14,
|
|
5179
|
+
cursor: "pointer"
|
|
5180
|
+
}, content));
|
|
5181
|
+
};
|
|
5182
|
+
// --- Variant: Animated Stroke ---
|
|
5183
|
+
var AnimatedStrokeButton = _ref3 => {
|
|
5184
|
+
var {
|
|
5185
|
+
to,
|
|
5186
|
+
onClick,
|
|
5187
|
+
views,
|
|
5188
|
+
children,
|
|
5189
|
+
size = 'md',
|
|
5190
|
+
accentColor,
|
|
5191
|
+
textColor,
|
|
5192
|
+
getColor,
|
|
5193
|
+
shadow
|
|
5194
|
+
} = _ref3,
|
|
5195
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$3);
|
|
5196
|
+
var resolvedAccentColor = getColor(accentColor);
|
|
5197
|
+
var resolvedTextColor = getColor(textColor);
|
|
5198
|
+
var sizeStyles = ButtonSizes[size];
|
|
5199
|
+
var numericWidth = typeof sizeStyles.width === 'number' ? sizeStyles.width : 300;
|
|
5200
|
+
var numericHeight = typeof sizeStyles.height === 'number' ? sizeStyles.height : 60;
|
|
5201
|
+
var strokeAnimation = {
|
|
5202
|
+
from: {
|
|
5203
|
+
strokeWidth: '8px',
|
|
5204
|
+
strokeDasharray: '0 500',
|
|
5205
|
+
strokeDashoffset: -454
|
|
5009
5206
|
},
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
backgroundColor: 'black',
|
|
5015
|
-
overflow: 'hidden',
|
|
5016
|
-
color: 'white',
|
|
5017
|
-
borderWidth: 0,
|
|
5018
|
-
borderStyle: 'none',
|
|
5019
|
-
borderColor: 'transparent',
|
|
5020
|
-
_focusVisible: {
|
|
5021
|
-
outline: 'none',
|
|
5022
|
-
boxShadow: '0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(0, 0, 0, 0.8)'
|
|
5207
|
+
to: {
|
|
5208
|
+
strokeWidth: '3px',
|
|
5209
|
+
strokeDasharray: '760',
|
|
5210
|
+
strokeDashoffset: 0
|
|
5023
5211
|
},
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
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
|
-
|
|
5212
|
+
duration: '0.9s',
|
|
5213
|
+
timingFunction: 'ease-in',
|
|
5214
|
+
fillMode: 'forwards'
|
|
5215
|
+
};
|
|
5216
|
+
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
5217
|
+
as: to ? 'a' : 'div',
|
|
5218
|
+
href: to ? to : undefined,
|
|
5219
|
+
onClick: onClick,
|
|
5220
|
+
display: "inline-block",
|
|
5221
|
+
maxWidth: "20rem",
|
|
5222
|
+
margin: "0 auto",
|
|
5223
|
+
textAlign: "center",
|
|
5224
|
+
textDecoration: "none",
|
|
5225
|
+
position: "relative",
|
|
5226
|
+
cursor: "pointer",
|
|
5227
|
+
boxShadow: shadow
|
|
5228
|
+
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React.createElement(View, {
|
|
5229
|
+
as: "svg",
|
|
5230
|
+
display: "block",
|
|
5231
|
+
height: numericHeight,
|
|
5232
|
+
width: numericWidth,
|
|
5233
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
5234
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
5235
|
+
as: "rect",
|
|
5236
|
+
height: numericHeight,
|
|
5237
|
+
width: numericWidth,
|
|
5238
|
+
fill: "transparent",
|
|
5239
|
+
stroke: resolvedAccentColor,
|
|
5240
|
+
strokeWidth: "8px",
|
|
5241
|
+
strokeDasharray: "0 500",
|
|
5242
|
+
strokeDashoffset: -454,
|
|
5243
|
+
on: {
|
|
5244
|
+
hover: {
|
|
5245
|
+
animate: strokeAnimation
|
|
5246
|
+
}
|
|
5247
|
+
}
|
|
5248
|
+
})), /*#__PURE__*/React.createElement(View, Object.assign({
|
|
5249
|
+
position: "absolute",
|
|
5250
|
+
top: 0,
|
|
5251
|
+
right: 0,
|
|
5252
|
+
bottom: 0,
|
|
5253
|
+
left: 0,
|
|
5254
|
+
display: "flex",
|
|
5255
|
+
alignItems: "center",
|
|
5256
|
+
justifyContent: "center",
|
|
5257
|
+
textAlign: "center",
|
|
5258
|
+
pointerEvents: "none",
|
|
5259
|
+
userSelect: "none",
|
|
5260
|
+
color: resolvedTextColor
|
|
5261
|
+
}, sizeStyles), children));
|
|
5262
|
+
};
|
|
5263
|
+
// --- Variant: Standard Button ---
|
|
5264
|
+
var StandardButton = _ref4 => {
|
|
5265
|
+
var {
|
|
5266
|
+
variant,
|
|
5267
|
+
to,
|
|
5268
|
+
isDisabled,
|
|
5269
|
+
isLoading,
|
|
5270
|
+
isAuto,
|
|
5271
|
+
isFilled,
|
|
5272
|
+
isExternal,
|
|
5273
|
+
shape = 'rounded',
|
|
5274
|
+
shadow,
|
|
5275
|
+
onClick,
|
|
5276
|
+
views,
|
|
5277
|
+
baseStyles,
|
|
5278
|
+
sizeStyles,
|
|
5279
|
+
iconPad,
|
|
5280
|
+
content // Destructure size to avoid passing it to Element
|
|
5281
|
+
} = _ref4,
|
|
5282
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$3);
|
|
5283
|
+
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
5284
|
+
as: variant === 'link' && to ? 'div' : 'button',
|
|
5285
|
+
type: variant === 'link' && to ? undefined : 'button',
|
|
5286
|
+
disabled: Boolean(isDisabled || isLoading)
|
|
5287
|
+
}, sizeStyles, iconPad, {
|
|
5288
|
+
display: "inline-flex",
|
|
5289
|
+
alignItems: "center",
|
|
5290
|
+
justifyContent: "center",
|
|
5291
|
+
width: isAuto ? 'fit-content' : isFilled ? '100%' : undefined,
|
|
5292
|
+
/* visuals */
|
|
5293
|
+
borderRadius: ButtonShapes[shape],
|
|
5294
|
+
boxShadow: shadow,
|
|
5295
|
+
transition: "all 0.2s ease",
|
|
5296
|
+
cursor: isDisabled ? 'default' : 'pointer',
|
|
5297
|
+
onClick: onClick
|
|
5298
|
+
}, baseStyles, views == null ? void 0 : views.container, props), to ? (/*#__PURE__*/React.createElement(Link, Object.assign({
|
|
5299
|
+
to: to,
|
|
5300
|
+
isExternal: isExternal,
|
|
5301
|
+
color: "currentColor",
|
|
5302
|
+
textDecoration: "inherit",
|
|
5303
|
+
_hover: {
|
|
5304
|
+
color: 'currentColor'
|
|
5305
|
+
}
|
|
5306
|
+
}, views == null ? void 0 : views.link), content)) : content);
|
|
5307
|
+
};
|
|
5308
|
+
// --- Main Component ---
|
|
5309
|
+
var ButtonView = _ref5 => {
|
|
5310
|
+
var _ref6, _base$color;
|
|
5066
5311
|
var {
|
|
5067
5312
|
/* behaviour */
|
|
5068
5313
|
variant = 'filled',
|
|
@@ -5072,8 +5317,10 @@ var ButtonView = _ref => {
|
|
|
5072
5317
|
loaderPosition = 'left',
|
|
5073
5318
|
backgroundColor,
|
|
5074
5319
|
// primary candidate for main color
|
|
5075
|
-
color
|
|
5076
|
-
|
|
5320
|
+
color,
|
|
5321
|
+
// 2nd candidate for main color (NOT text‑color)
|
|
5322
|
+
isAuto,
|
|
5323
|
+
isFilled,
|
|
5077
5324
|
isDisabled,
|
|
5078
5325
|
isLoading,
|
|
5079
5326
|
isIconRounded,
|
|
@@ -5093,8 +5340,8 @@ var ButtonView = _ref => {
|
|
|
5093
5340
|
borderMovingGradientColors = ['#705CFF', '#FF5C97', '#FFC75C'],
|
|
5094
5341
|
animatedStrokeAccentColor = '#705CFF',
|
|
5095
5342
|
animatedStrokeTextColor = '#333333'
|
|
5096
|
-
} =
|
|
5097
|
-
props = _objectWithoutPropertiesLoose(
|
|
5343
|
+
} = _ref5,
|
|
5344
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$3);
|
|
5098
5345
|
/* theme helpers */
|
|
5099
5346
|
var {
|
|
5100
5347
|
getColor,
|
|
@@ -5102,237 +5349,78 @@ var ButtonView = _ref => {
|
|
|
5102
5349
|
} = useTheme();
|
|
5103
5350
|
var mode = elementMode != null ? elementMode : themeMode;
|
|
5104
5351
|
/* MAIN COLOR – determines the entire palette */
|
|
5105
|
-
var mainColorKey = (
|
|
5352
|
+
var mainColorKey = (_ref6 = backgroundColor != null ? backgroundColor : color) != null ? _ref6 : 'theme.primary';
|
|
5106
5353
|
var mainTone = getColor(isDisabled ? 'theme.disabled' : mainColorKey, {
|
|
5107
5354
|
themeMode: mode
|
|
5108
5355
|
});
|
|
5109
5356
|
var tone = contrast(mainTone);
|
|
5357
|
+
/* text color with mixBlendMode for maximum visibility */
|
|
5358
|
+
var textColor = tone === 'light' ? '#000000' : '#FFFFFF';
|
|
5110
5359
|
/* variant palette */
|
|
5111
|
-
var palette = useMemo(() => getButtonVariants(mainTone, tone
|
|
5360
|
+
var palette = useMemo(() => getButtonVariants(mainTone, tone === 'light'), [mainTone, tone, mode]);
|
|
5112
5361
|
var base = palette[variant];
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
var
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
5127
|
-
color: 'inherit',
|
|
5128
|
-
_hover: {
|
|
5129
|
-
color: 'inherit'
|
|
5130
|
-
}
|
|
5131
|
-
}, views == null ? void 0 : views.loader))), icon && ['left', 'top'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React.createElement(View, Object.assign({
|
|
5132
|
-
color: 'inherit',
|
|
5133
|
-
_hover: {
|
|
5134
|
-
color: 'inherit'
|
|
5135
|
-
}
|
|
5136
|
-
}, views == null ? void 0 : views.icon), icon)), children, icon && ['right', 'bottom'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React.createElement(View, Object.assign({
|
|
5137
|
-
color: 'inherit',
|
|
5138
|
-
_hover: {
|
|
5139
|
-
color: 'inherit'
|
|
5140
|
-
}
|
|
5141
|
-
}, views == null ? void 0 : views.icon), icon)), isLoading && loaderPosition === 'right' && (/*#__PURE__*/React.createElement(Loader, Object.assign({
|
|
5142
|
-
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
5143
|
-
color: 'inherit',
|
|
5144
|
-
_hover: {
|
|
5145
|
-
color: 'inherit'
|
|
5146
|
-
}
|
|
5147
|
-
}, views == null ? void 0 : views.loader))));
|
|
5148
|
-
// Handle special effect variants
|
|
5362
|
+
var resolvedTextColor = (_base$color = base == null ? void 0 : base.color) != null ? _base$color : textColor;
|
|
5363
|
+
// Render content logic safely
|
|
5364
|
+
var content = /*#__PURE__*/React.createElement(ButtonContent, {
|
|
5365
|
+
icon: icon,
|
|
5366
|
+
isLoading: isLoading,
|
|
5367
|
+
iconPosition: iconPosition,
|
|
5368
|
+
loaderPosition: loaderPosition,
|
|
5369
|
+
size: size,
|
|
5370
|
+
resolvedTextColor: resolvedTextColor,
|
|
5371
|
+
isIconRounded: isIconRounded,
|
|
5372
|
+
views: views
|
|
5373
|
+
}, children);
|
|
5374
|
+
// Dispatch to the correct variant component
|
|
5149
5375
|
if (variant === 'borderMoving') {
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
})
|
|
5163
|
-
var path = generateOffsetPath(numericWidth, numericHeight, numericBorderRadius);
|
|
5164
|
-
// Determine background color from props or use mainTone
|
|
5165
|
-
var containerBg = mainTone;
|
|
5166
|
-
// Calculate text color with proper contrast
|
|
5167
|
-
var borderMovingTextColor = tone === 'light' ? '#000000' : '#FFFFFF';
|
|
5168
|
-
return /*#__PURE__*/React.createElement(View, Object.assign({
|
|
5169
|
-
width: numericWidth,
|
|
5170
|
-
height: numericHeight,
|
|
5171
|
-
position: "relative",
|
|
5172
|
-
backgroundColor: containerBg,
|
|
5173
|
-
overflow: "hidden",
|
|
5174
|
-
borderRadius: ButtonShapes[shape],
|
|
5175
|
-
cursor: isDisabled ? 'default' : 'pointer',
|
|
5176
|
-
onClick: onClick
|
|
5177
|
-
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React.createElement("svg", {
|
|
5178
|
-
width: numericWidth,
|
|
5179
|
-
height: numericHeight,
|
|
5180
|
-
style: {
|
|
5181
|
-
position: 'absolute',
|
|
5182
|
-
top: 0,
|
|
5183
|
-
left: 0,
|
|
5184
|
-
zIndex: 1
|
|
5185
|
-
}
|
|
5186
|
-
}, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
|
5187
|
-
id: "circleGradient",
|
|
5188
|
-
x1: "0%",
|
|
5189
|
-
y1: "100%",
|
|
5190
|
-
x2: "100%",
|
|
5191
|
-
y2: "100%"
|
|
5192
|
-
}, /*#__PURE__*/React.createElement("stop", {
|
|
5193
|
-
offset: "0%",
|
|
5194
|
-
stopColor: "transparent"
|
|
5195
|
-
}), /*#__PURE__*/React.createElement("stop", {
|
|
5196
|
-
offset: "30%",
|
|
5197
|
-
stopColor: borderMovingGradientColors[0]
|
|
5198
|
-
}), /*#__PURE__*/React.createElement("stop", {
|
|
5199
|
-
offset: "60%",
|
|
5200
|
-
stopColor: borderMovingGradientColors[1]
|
|
5201
|
-
}), /*#__PURE__*/React.createElement("stop", {
|
|
5202
|
-
offset: "100%",
|
|
5203
|
-
stopColor: borderMovingGradientColors[2]
|
|
5204
|
-
})), /*#__PURE__*/React.createElement("path", {
|
|
5205
|
-
id: "uniqueId",
|
|
5206
|
-
d: path,
|
|
5207
|
-
fill: "none",
|
|
5208
|
-
stroke: "transparent"
|
|
5209
|
-
})), /*#__PURE__*/React.createElement("circle", {
|
|
5210
|
-
r: "30",
|
|
5211
|
-
fill: "url(#circleGradient)"
|
|
5212
|
-
}, /*#__PURE__*/React.createElement("animateMotion", {
|
|
5213
|
-
dur: borderMovingDuration + 's',
|
|
5214
|
-
repeatCount: "indefinite",
|
|
5215
|
-
path: path
|
|
5216
|
-
}))), /*#__PURE__*/React.createElement(View, {
|
|
5217
|
-
position: "absolute",
|
|
5218
|
-
backgroundColor: containerBg,
|
|
5219
|
-
borderRadius: Math.max(0, numericBorderRadius - 1),
|
|
5220
|
-
top: borderWidth,
|
|
5221
|
-
bottom: borderWidth,
|
|
5222
|
-
left: borderWidth,
|
|
5223
|
-
right: borderWidth,
|
|
5224
|
-
zIndex: 2
|
|
5225
|
-
}), /*#__PURE__*/React.createElement(View, {
|
|
5226
|
-
position: "relative",
|
|
5227
|
-
width: "100%",
|
|
5228
|
-
height: "100%",
|
|
5229
|
-
display: "flex",
|
|
5230
|
-
alignItems: "center",
|
|
5231
|
-
justifyContent: "center",
|
|
5232
|
-
color: borderMovingTextColor,
|
|
5233
|
-
fontSize: 14,
|
|
5234
|
-
zIndex: 3,
|
|
5235
|
-
style: {
|
|
5236
|
-
cursor: 'pointer'
|
|
5237
|
-
}
|
|
5238
|
-
}, content));
|
|
5376
|
+
return /*#__PURE__*/React.createElement(BorderMovingButton, Object.assign({
|
|
5377
|
+
variant: variant,
|
|
5378
|
+
shape: shape,
|
|
5379
|
+
size: size,
|
|
5380
|
+
isDisabled: isDisabled,
|
|
5381
|
+
onClick: onClick,
|
|
5382
|
+
views: views,
|
|
5383
|
+
mainTone: mainTone,
|
|
5384
|
+
tone: tone,
|
|
5385
|
+
borderMovingGradientColors: borderMovingGradientColors,
|
|
5386
|
+
borderMovingDuration: borderMovingDuration,
|
|
5387
|
+
content: content
|
|
5388
|
+
}, props));
|
|
5239
5389
|
}
|
|
5240
5390
|
if (variant === 'animatedStroke') {
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
var _numericHeight = typeof sizeStyles.height === 'number' ? sizeStyles.height : 60;
|
|
5245
|
-
var strokeAnimation = {
|
|
5246
|
-
from: {
|
|
5247
|
-
strokeWidth: '8px',
|
|
5248
|
-
strokeDasharray: '0 500',
|
|
5249
|
-
strokeDashoffset: -454
|
|
5250
|
-
},
|
|
5251
|
-
to: {
|
|
5252
|
-
strokeWidth: '3px',
|
|
5253
|
-
strokeDasharray: '760',
|
|
5254
|
-
strokeDashoffset: 0
|
|
5255
|
-
},
|
|
5256
|
-
duration: '0.9s',
|
|
5257
|
-
timingFunction: 'ease-in',
|
|
5258
|
-
fillMode: 'forwards'
|
|
5259
|
-
};
|
|
5260
|
-
return /*#__PURE__*/React.createElement(View, Object.assign({
|
|
5261
|
-
as: to ? 'a' : 'div',
|
|
5262
|
-
href: to ? to : undefined,
|
|
5391
|
+
return /*#__PURE__*/React.createElement(AnimatedStrokeButton, Object.assign({
|
|
5392
|
+
variant: variant,
|
|
5393
|
+
to: to,
|
|
5263
5394
|
onClick: onClick,
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
cursor: "pointer"
|
|
5271
|
-
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React.createElement(View, {
|
|
5272
|
-
as: "svg",
|
|
5273
|
-
display: "block",
|
|
5274
|
-
height: _numericHeight,
|
|
5275
|
-
width: _numericWidth,
|
|
5276
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
5277
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
5278
|
-
as: "rect",
|
|
5279
|
-
height: _numericHeight,
|
|
5280
|
-
width: _numericWidth,
|
|
5281
|
-
fill: "transparent",
|
|
5282
|
-
stroke: resolvedAccentColor,
|
|
5283
|
-
strokeWidth: "8px",
|
|
5284
|
-
strokeDasharray: "120 500",
|
|
5285
|
-
strokeDashoffset: -454,
|
|
5286
|
-
on: {
|
|
5287
|
-
hover: {
|
|
5288
|
-
animate: strokeAnimation
|
|
5289
|
-
}
|
|
5290
|
-
}
|
|
5291
|
-
})), /*#__PURE__*/React.createElement(View, {
|
|
5292
|
-
position: "absolute",
|
|
5293
|
-
top: 0,
|
|
5294
|
-
right: 0,
|
|
5295
|
-
bottom: 0,
|
|
5296
|
-
left: 0,
|
|
5297
|
-
display: "flex",
|
|
5298
|
-
alignItems: "center",
|
|
5299
|
-
justifyContent: "center",
|
|
5300
|
-
paddingX: 16,
|
|
5301
|
-
paddingY: 8,
|
|
5302
|
-
fontSize: "22px",
|
|
5303
|
-
lineHeight: "1.3",
|
|
5304
|
-
letterSpacing: "0.3rem",
|
|
5305
|
-
textAlign: "center",
|
|
5306
|
-
textTransform: "uppercase",
|
|
5307
|
-
whiteSpace: "normal",
|
|
5308
|
-
wordBreak: "break-word",
|
|
5309
|
-
pointerEvents: "none",
|
|
5310
|
-
userSelect: "none",
|
|
5311
|
-
color: resolvedTextColor
|
|
5312
|
-
}, children));
|
|
5395
|
+
views: views,
|
|
5396
|
+
size: size,
|
|
5397
|
+
accentColor: animatedStrokeAccentColor,
|
|
5398
|
+
textColor: animatedStrokeTextColor,
|
|
5399
|
+
getColor: getColor
|
|
5400
|
+
}, props), children);
|
|
5313
5401
|
}
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
display: "flex",
|
|
5320
|
-
alignItems: "center",
|
|
5321
|
-
justifyContent: "center",
|
|
5322
|
-
// width={isAuto ? 'fit-content' : isFilled ? '100%' : undefined}
|
|
5323
|
-
/* visuals */
|
|
5324
|
-
borderRadius: ButtonShapes[shape],
|
|
5325
|
-
boxShadow: shadow,
|
|
5326
|
-
transition: "all 0.2s ease",
|
|
5327
|
-
cursor: isDisabled ? 'default' : 'pointer',
|
|
5328
|
-
onClick: onClick
|
|
5329
|
-
}, base, views == null ? void 0 : views.container, props), to ? (/*#__PURE__*/React.createElement(Link, Object.assign({
|
|
5402
|
+
// Standard variants (filled, outline, ghost, link)
|
|
5403
|
+
var sizeStyles = ButtonSizes[size];
|
|
5404
|
+
var iconPad = isIconRounded ? IconSizes$1[size] : {};
|
|
5405
|
+
return /*#__PURE__*/React.createElement(StandardButton, Object.assign({
|
|
5406
|
+
variant: variant,
|
|
5330
5407
|
to: to,
|
|
5408
|
+
isDisabled: isDisabled,
|
|
5409
|
+
isLoading: isLoading,
|
|
5410
|
+
isAuto: isAuto,
|
|
5411
|
+
isFilled: isFilled,
|
|
5331
5412
|
isExternal: isExternal,
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5413
|
+
shape: shape,
|
|
5414
|
+
shadow: shadow,
|
|
5415
|
+
onClick: onClick,
|
|
5416
|
+
views: views,
|
|
5417
|
+
baseStyles: base,
|
|
5418
|
+
sizeStyles: sizeStyles,
|
|
5419
|
+
iconPad: iconPad,
|
|
5420
|
+
resolvedTextColor: resolvedTextColor,
|
|
5421
|
+
content: content,
|
|
5422
|
+
size: size
|
|
5423
|
+
}, props));
|
|
5336
5424
|
};
|
|
5337
5425
|
|
|
5338
5426
|
// Importing a custom hook to manage the state specific to the button component.
|
|
@@ -5468,9 +5556,9 @@ var useCardContext = () => {
|
|
|
5468
5556
|
};
|
|
5469
5557
|
|
|
5470
5558
|
var _excluded$e = ["children", "views", "style", "themeMode"],
|
|
5471
|
-
_excluded2$
|
|
5472
|
-
_excluded3$
|
|
5473
|
-
_excluded4$
|
|
5559
|
+
_excluded2$4 = ["children", "views", "style", "themeMode"],
|
|
5560
|
+
_excluded3$4 = ["children", "views", "style", "themeMode"],
|
|
5561
|
+
_excluded4$4 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style", "themeMode"];
|
|
5474
5562
|
var CardHeader = _ref => {
|
|
5475
5563
|
var _contextStyles$header;
|
|
5476
5564
|
var {
|
|
@@ -5495,7 +5583,7 @@ var CardContent = _ref2 => {
|
|
|
5495
5583
|
children,
|
|
5496
5584
|
style
|
|
5497
5585
|
} = _ref2,
|
|
5498
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
5586
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
|
|
5499
5587
|
var theme = useTheme();
|
|
5500
5588
|
var {
|
|
5501
5589
|
styles: contextStyles
|
|
@@ -5513,7 +5601,7 @@ var CardFooter = _ref3 => {
|
|
|
5513
5601
|
children,
|
|
5514
5602
|
style
|
|
5515
5603
|
} = _ref3,
|
|
5516
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
5604
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
|
|
5517
5605
|
var theme = useTheme();
|
|
5518
5606
|
var {
|
|
5519
5607
|
styles: contextStyles
|
|
@@ -5539,7 +5627,7 @@ var CardView = _ref4 => {
|
|
|
5539
5627
|
style,
|
|
5540
5628
|
themeMode: elementMode
|
|
5541
5629
|
} = _ref4,
|
|
5542
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
5630
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$4);
|
|
5543
5631
|
var theme = useTheme();
|
|
5544
5632
|
var defaultStyles = getDefaultCardStyles();
|
|
5545
5633
|
// Prepare context value, merging default styles with user's `views` overrides
|
|
@@ -5872,9 +5960,9 @@ var useCarouselContext = () => {
|
|
|
5872
5960
|
};
|
|
5873
5961
|
|
|
5874
5962
|
var _excluded$f = ["children", "isActive", "views"],
|
|
5875
|
-
_excluded2$
|
|
5876
|
-
_excluded3$
|
|
5877
|
-
_excluded4$
|
|
5963
|
+
_excluded2$5 = ["views", "children"],
|
|
5964
|
+
_excluded3$5 = ["views", "children"],
|
|
5965
|
+
_excluded4$5 = ["children", "views"],
|
|
5878
5966
|
_excluded5$1 = ["children", "views", "style"],
|
|
5879
5967
|
_excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views", "stepIndices", "themeMode"];
|
|
5880
5968
|
var CarouselSlide = _ref => {
|
|
@@ -5899,7 +5987,7 @@ var CarouselPreviousComponent = _ref2 => {
|
|
|
5899
5987
|
children // Allow custom content/icon
|
|
5900
5988
|
// Spread remaining ButtonProps
|
|
5901
5989
|
} = _ref2,
|
|
5902
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
5990
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$5);
|
|
5903
5991
|
var {
|
|
5904
5992
|
goToPrevious,
|
|
5905
5993
|
canGoPrevious,
|
|
@@ -5922,7 +6010,7 @@ var CarouselNextComponent = _ref3 => {
|
|
|
5922
6010
|
views,
|
|
5923
6011
|
children
|
|
5924
6012
|
} = _ref3,
|
|
5925
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
6013
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$5);
|
|
5926
6014
|
var {
|
|
5927
6015
|
goToNext,
|
|
5928
6016
|
canGoNext,
|
|
@@ -5945,7 +6033,7 @@ var CarouselItemComponent = _ref4 => {
|
|
|
5945
6033
|
children,
|
|
5946
6034
|
views
|
|
5947
6035
|
} = _ref4,
|
|
5948
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
6036
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$5);
|
|
5949
6037
|
var {
|
|
5950
6038
|
registerSlide,
|
|
5951
6039
|
unregisterSlide,
|
|
@@ -7690,9 +7778,9 @@ var ContextMenuItemStates = {
|
|
|
7690
7778
|
// using viewport-aware algorithms in the ContextMenu component
|
|
7691
7779
|
|
|
7692
7780
|
var _excluded$i = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
|
|
7693
|
-
_excluded2$
|
|
7694
|
-
_excluded3$
|
|
7695
|
-
_excluded4$
|
|
7781
|
+
_excluded2$6 = ["items", "children", "position", "side", "align", "views", "style"],
|
|
7782
|
+
_excluded3$6 = ["item", "children", "onSelect", "isDisabled", "views"],
|
|
7783
|
+
_excluded4$6 = ["views"],
|
|
7696
7784
|
_excluded5$2 = ["views"],
|
|
7697
7785
|
_excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views", "themeMode"];
|
|
7698
7786
|
// Create context for the ContextMenu
|
|
@@ -7799,7 +7887,7 @@ var ContextMenuContent = _ref3 => {
|
|
|
7799
7887
|
views,
|
|
7800
7888
|
style // Capture user-provided style
|
|
7801
7889
|
} = _ref3,
|
|
7802
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
7890
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$6);
|
|
7803
7891
|
var {
|
|
7804
7892
|
isOpen,
|
|
7805
7893
|
position: contextPosition,
|
|
@@ -7914,7 +8002,7 @@ var ContextMenuItem = _ref4 => {
|
|
|
7914
8002
|
isDisabled = false,
|
|
7915
8003
|
views
|
|
7916
8004
|
} = _ref4,
|
|
7917
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
8005
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$6);
|
|
7918
8006
|
var {
|
|
7919
8007
|
activeSubmenuId,
|
|
7920
8008
|
setActiveSubmenuId,
|
|
@@ -8043,7 +8131,7 @@ var ContextMenuDivider = _ref5 => {
|
|
|
8043
8131
|
var {
|
|
8044
8132
|
views
|
|
8045
8133
|
} = _ref5,
|
|
8046
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$
|
|
8134
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$6);
|
|
8047
8135
|
return /*#__PURE__*/React.createElement(View, Object.assign({
|
|
8048
8136
|
height: "1px",
|
|
8049
8137
|
backgroundColor: "color.gray.200",
|
|
@@ -8159,7 +8247,7 @@ ContextMenu.Divider = ContextMenuDivider;
|
|
|
8159
8247
|
ContextMenu.Separator = ContextMenuSeparator; // Add the Separator component
|
|
8160
8248
|
|
|
8161
8249
|
var _excluded$k = ["src", "color", "views", "themeMode"],
|
|
8162
|
-
_excluded2$
|
|
8250
|
+
_excluded2$7 = ["path"];
|
|
8163
8251
|
var FileSVG = _ref => {
|
|
8164
8252
|
var {
|
|
8165
8253
|
src,
|
|
@@ -8189,7 +8277,7 @@ var FileImage = _ref2 => {
|
|
|
8189
8277
|
var {
|
|
8190
8278
|
path
|
|
8191
8279
|
} = _ref2,
|
|
8192
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
8280
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$7);
|
|
8193
8281
|
return /*#__PURE__*/React.createElement(Image, Object.assign({
|
|
8194
8282
|
src: path
|
|
8195
8283
|
}, props));
|
|
@@ -8665,9 +8753,9 @@ var IconSizes$2 = {
|
|
|
8665
8753
|
};
|
|
8666
8754
|
|
|
8667
8755
|
var _excluded$s = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
8668
|
-
_excluded2$
|
|
8669
|
-
_excluded3$
|
|
8670
|
-
_excluded4$
|
|
8756
|
+
_excluded2$8 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
8757
|
+
_excluded3$7 = ["option", "size", "removeOption"],
|
|
8758
|
+
_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"];
|
|
8671
8759
|
/**
|
|
8672
8760
|
* Item Component
|
|
8673
8761
|
*
|
|
@@ -8790,7 +8878,7 @@ var HiddenSelect = _ref4 => {
|
|
|
8790
8878
|
isReadOnly = false,
|
|
8791
8879
|
options = []
|
|
8792
8880
|
} = _ref4,
|
|
8793
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$
|
|
8881
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$8);
|
|
8794
8882
|
var handleChange = event => {
|
|
8795
8883
|
if (onChange) onChange(event);
|
|
8796
8884
|
};
|
|
@@ -8875,7 +8963,7 @@ var MultiSelect = _ref6 => {
|
|
|
8875
8963
|
size = 'md',
|
|
8876
8964
|
removeOption = () => {}
|
|
8877
8965
|
} = _ref6,
|
|
8878
|
-
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$
|
|
8966
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$7);
|
|
8879
8967
|
var handleClick = () => removeOption(option);
|
|
8880
8968
|
return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
8881
8969
|
gap: 8,
|
|
@@ -8936,7 +9024,7 @@ var SelectView = _ref7 => {
|
|
|
8936
9024
|
setHighlightedIndex,
|
|
8937
9025
|
highlightedIndex
|
|
8938
9026
|
} = _ref7,
|
|
8939
|
-
props = _objectWithoutPropertiesLoose(_ref7, _excluded4$
|
|
9027
|
+
props = _objectWithoutPropertiesLoose(_ref7, _excluded4$7);
|
|
8940
9028
|
var {
|
|
8941
9029
|
ref: triggerRef,
|
|
8942
9030
|
relation,
|
|
@@ -12125,8 +12213,8 @@ var IconSizes$4 = {
|
|
|
12125
12213
|
};
|
|
12126
12214
|
|
|
12127
12215
|
var _excluded$y = ["size"],
|
|
12128
|
-
_excluded2$
|
|
12129
|
-
_excluded3$
|
|
12216
|
+
_excluded2$9 = ["size"],
|
|
12217
|
+
_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"];
|
|
12130
12218
|
var CountryList = _ref => {
|
|
12131
12219
|
var props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
12132
12220
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
@@ -12137,7 +12225,7 @@ var CountrySelector = props => (/*#__PURE__*/React.createElement(Input, Object.a
|
|
|
12137
12225
|
type: "country"
|
|
12138
12226
|
}, props)));
|
|
12139
12227
|
var CountryItem = _ref2 => {
|
|
12140
|
-
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
12228
|
+
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$9);
|
|
12141
12229
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
12142
12230
|
as: "li"
|
|
12143
12231
|
}, props));
|
|
@@ -12239,7 +12327,7 @@ var CountryPickerView = _ref5 => {
|
|
|
12239
12327
|
},
|
|
12240
12328
|
themeMode: elementMode
|
|
12241
12329
|
} = _ref5,
|
|
12242
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$
|
|
12330
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$8);
|
|
12243
12331
|
var {
|
|
12244
12332
|
getColor,
|
|
12245
12333
|
themeMode
|
|
@@ -12490,7 +12578,7 @@ var usePasswordState = props => {
|
|
|
12490
12578
|
};
|
|
12491
12579
|
|
|
12492
12580
|
var _excluded$A = ["visibleIcon", "hiddenIcon"],
|
|
12493
|
-
_excluded2$
|
|
12581
|
+
_excluded2$a = ["isVisible", "setIsVisible"];
|
|
12494
12582
|
var PasswordComponent = _ref => {
|
|
12495
12583
|
var {
|
|
12496
12584
|
visibleIcon = /*#__PURE__*/React.createElement(OpenEyeIcon, {
|
|
@@ -12506,7 +12594,7 @@ var PasswordComponent = _ref => {
|
|
|
12506
12594
|
isVisible,
|
|
12507
12595
|
setIsVisible
|
|
12508
12596
|
} = _usePasswordState,
|
|
12509
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
12597
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$a);
|
|
12510
12598
|
return /*#__PURE__*/React.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
12511
12599
|
type: isVisible ? 'text' : 'password',
|
|
12512
12600
|
isClearable: false,
|
|
@@ -14635,7 +14723,7 @@ var useHoverCardState = function useHoverCardState(_temp) {
|
|
|
14635
14723
|
};
|
|
14636
14724
|
|
|
14637
14725
|
var _excluded$J = ["children", "views", "asChild"],
|
|
14638
|
-
_excluded2$
|
|
14726
|
+
_excluded2$b = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
|
|
14639
14727
|
// Create context for the HoverCard
|
|
14640
14728
|
var HoverCardContext = /*#__PURE__*/createContext({
|
|
14641
14729
|
isOpen: false,
|
|
@@ -14721,7 +14809,7 @@ var HoverCardContent = _ref3 => {
|
|
|
14721
14809
|
minWidth = '50px',
|
|
14722
14810
|
maxWidth = '300px'
|
|
14723
14811
|
} = _ref3,
|
|
14724
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
14812
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$b);
|
|
14725
14813
|
var {
|
|
14726
14814
|
isOpen,
|
|
14727
14815
|
cancelCloseTimer,
|
|
@@ -15843,7 +15931,7 @@ var SwitchComponent$1 = props => {
|
|
|
15843
15931
|
var FormikSwitch = SwitchComponent$1;
|
|
15844
15932
|
|
|
15845
15933
|
var _excluded$N = ["name"],
|
|
15846
|
-
_excluded2$
|
|
15934
|
+
_excluded2$c = ["tags"];
|
|
15847
15935
|
/**
|
|
15848
15936
|
* Formik-integrated TagInput component
|
|
15849
15937
|
*/
|
|
@@ -15886,7 +15974,7 @@ var TagInputComponent$1 = props => {
|
|
|
15886
15974
|
var {
|
|
15887
15975
|
tags
|
|
15888
15976
|
} = tagInputState,
|
|
15889
|
-
stateWithoutTags = _objectWithoutPropertiesLoose(tagInputState, _excluded2$
|
|
15977
|
+
stateWithoutTags = _objectWithoutPropertiesLoose(tagInputState, _excluded2$c);
|
|
15890
15978
|
// Render the view component with combined props and state
|
|
15891
15979
|
return /*#__PURE__*/React.createElement(TagInputView, Object.assign({}, stateWithoutTags, restProps, {
|
|
15892
15980
|
tags: tags,
|
|
@@ -15922,7 +16010,7 @@ var TextFieldComponent$1 = props => {
|
|
|
15922
16010
|
var FormikTextField = TextFieldComponent$1;
|
|
15923
16011
|
|
|
15924
16012
|
var _excluded$P = ["visibleIcon", "hiddenIcon"],
|
|
15925
|
-
_excluded2$
|
|
16013
|
+
_excluded2$d = ["isVisible", "setIsVisible"];
|
|
15926
16014
|
var PasswordComponent$1 = _ref => {
|
|
15927
16015
|
var {
|
|
15928
16016
|
visibleIcon = /*#__PURE__*/React.createElement(OpenEyeIcon, {
|
|
@@ -15939,7 +16027,7 @@ var PasswordComponent$1 = _ref => {
|
|
|
15939
16027
|
isVisible,
|
|
15940
16028
|
setIsVisible
|
|
15941
16029
|
} = _usePasswordState,
|
|
15942
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
16030
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$d);
|
|
15943
16031
|
return /*#__PURE__*/React.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
15944
16032
|
type: isVisible ? 'text' : 'password',
|
|
15945
16033
|
isClearable: false,
|
|
@@ -17056,9 +17144,9 @@ var ModalTypography = {
|
|
|
17056
17144
|
};
|
|
17057
17145
|
|
|
17058
17146
|
var _excluded$T = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
|
|
17059
|
-
_excluded2$
|
|
17060
|
-
_excluded3$
|
|
17061
|
-
_excluded4$
|
|
17147
|
+
_excluded2$e = ["children", "shadow", "isFullScreen", "shape", "views", "isOpen"],
|
|
17148
|
+
_excluded3$9 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
|
|
17149
|
+
_excluded4$8 = ["children", "views"],
|
|
17062
17150
|
_excluded5$3 = ["children", "views"];
|
|
17063
17151
|
var ModalOverlay = _ref => {
|
|
17064
17152
|
var {
|
|
@@ -17106,7 +17194,7 @@ var ModalContainer = _ref2 => {
|
|
|
17106
17194
|
shape = 'rounded',
|
|
17107
17195
|
views
|
|
17108
17196
|
} = _ref2,
|
|
17109
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
17197
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$e);
|
|
17110
17198
|
var defaultShadow = typeof document !== undefined ? {
|
|
17111
17199
|
boxShadow: '0px 4px 16px rgba(0, 0, 0, 0.15)'
|
|
17112
17200
|
} : {
|
|
@@ -17147,7 +17235,7 @@ var ModalHeader = _ref3 => {
|
|
|
17147
17235
|
buttonPosition = 'right',
|
|
17148
17236
|
views
|
|
17149
17237
|
} = _ref3,
|
|
17150
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
17238
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$9);
|
|
17151
17239
|
var onClose = props.onClose ? props.onClose : hideModal;
|
|
17152
17240
|
var buttonIcon = /*#__PURE__*/React.createElement(View, {
|
|
17153
17241
|
onClick: onClose
|
|
@@ -17176,7 +17264,7 @@ var ModalBody = _ref4 => {
|
|
|
17176
17264
|
children,
|
|
17177
17265
|
views
|
|
17178
17266
|
} = _ref4,
|
|
17179
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
17267
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$8);
|
|
17180
17268
|
return /*#__PURE__*/React.createElement(View, Object.assign({
|
|
17181
17269
|
paddingVertical: 16,
|
|
17182
17270
|
paddingHorizontal: 24,
|
|
@@ -17319,9 +17407,9 @@ var DrawerPlacements = {
|
|
|
17319
17407
|
};
|
|
17320
17408
|
|
|
17321
17409
|
var _excluded$U = ["isOpen", "onClose", "isClosePrevented", "blur", "children"],
|
|
17322
|
-
_excluded2$
|
|
17323
|
-
_excluded3$
|
|
17324
|
-
_excluded4$
|
|
17410
|
+
_excluded2$f = ["placement", "size", "children"],
|
|
17411
|
+
_excluded3$a = ["children", "onClose", "buttonPosition"],
|
|
17412
|
+
_excluded4$9 = ["children"],
|
|
17325
17413
|
_excluded5$4 = ["children"];
|
|
17326
17414
|
var DrawerOverlay = _ref => {
|
|
17327
17415
|
var {
|
|
@@ -17372,7 +17460,7 @@ var DrawerContainer = _ref2 => {
|
|
|
17372
17460
|
size = 'md',
|
|
17373
17461
|
children
|
|
17374
17462
|
} = _ref2,
|
|
17375
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
17463
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$f);
|
|
17376
17464
|
var handleClick = e => {
|
|
17377
17465
|
e.stopPropagation();
|
|
17378
17466
|
};
|
|
@@ -17398,7 +17486,7 @@ var DrawerHeader = _ref3 => {
|
|
|
17398
17486
|
onClose,
|
|
17399
17487
|
buttonPosition = 'right'
|
|
17400
17488
|
} = _ref3,
|
|
17401
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
17489
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$a);
|
|
17402
17490
|
var closeButton = onClose && (/*#__PURE__*/React.createElement(View, {
|
|
17403
17491
|
onClick: onClose,
|
|
17404
17492
|
cursor: "pointer",
|
|
@@ -17420,7 +17508,7 @@ var DrawerBody = _ref4 => {
|
|
|
17420
17508
|
var {
|
|
17421
17509
|
children
|
|
17422
17510
|
} = _ref4,
|
|
17423
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
17511
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$9);
|
|
17424
17512
|
return /*#__PURE__*/React.createElement(Vertical, Object.assign({
|
|
17425
17513
|
padding: 24,
|
|
17426
17514
|
flex: 1,
|
|
@@ -18982,7 +19070,7 @@ var TypewriterEffect = _ref => {
|
|
|
18982
19070
|
};
|
|
18983
19071
|
|
|
18984
19072
|
var _excluded$Z = ["text", "duration", "direction", "stagger", "sequential", "textStyle", "as", "wordProps"],
|
|
18985
|
-
_excluded2$
|
|
19073
|
+
_excluded2$g = ["style"];
|
|
18986
19074
|
// CSS keyframes injection - done once
|
|
18987
19075
|
var KEYFRAMES_ID = 'slide-effect-keyframes';
|
|
18988
19076
|
var injectKeyframes = () => {
|
|
@@ -19077,7 +19165,7 @@ var SlideEffect = _ref => {
|
|
|
19077
19165
|
{
|
|
19078
19166
|
style: customWordStyle
|
|
19079
19167
|
} = _ref2,
|
|
19080
|
-
restWordProps = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
19168
|
+
restWordProps = _objectWithoutPropertiesLoose(_ref2, _excluded2$g);
|
|
19081
19169
|
// Get animation names based on direction
|
|
19082
19170
|
var isUp = direction === 'up';
|
|
19083
19171
|
var enterAnim = isUp ? 'slideInUp' : 'slideInDown';
|
|
@@ -19870,9 +19958,9 @@ var DropdownMenuItemStates = {
|
|
|
19870
19958
|
};
|
|
19871
19959
|
|
|
19872
19960
|
var _excluded$11 = ["children", "views"],
|
|
19873
|
-
_excluded2$
|
|
19874
|
-
_excluded3$
|
|
19875
|
-
_excluded4$
|
|
19961
|
+
_excluded2$h = ["items", "side", "align", "views"],
|
|
19962
|
+
_excluded3$b = ["item", "views"],
|
|
19963
|
+
_excluded4$a = ["views"],
|
|
19876
19964
|
_excluded5$5 = ["trigger", "items", "side", "align", "views", "themeMode"];
|
|
19877
19965
|
// Create context for the DropdownMenu
|
|
19878
19966
|
var DropdownMenuContext = /*#__PURE__*/createContext({
|
|
@@ -19937,7 +20025,7 @@ var DropdownMenuContent = _ref3 => {
|
|
|
19937
20025
|
align = 'start',
|
|
19938
20026
|
views
|
|
19939
20027
|
} = _ref3,
|
|
19940
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
20028
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$h);
|
|
19941
20029
|
var {
|
|
19942
20030
|
isOpen,
|
|
19943
20031
|
variant,
|
|
@@ -20068,7 +20156,7 @@ var DropdownMenuItem = _ref4 => {
|
|
|
20068
20156
|
item,
|
|
20069
20157
|
views
|
|
20070
20158
|
} = _ref4,
|
|
20071
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
20159
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$b);
|
|
20072
20160
|
var {
|
|
20073
20161
|
activeSubmenuId,
|
|
20074
20162
|
setActiveSubmenuId,
|
|
@@ -20133,7 +20221,7 @@ var DropdownMenuDivider = _ref5 => {
|
|
|
20133
20221
|
var {
|
|
20134
20222
|
views
|
|
20135
20223
|
} = _ref5,
|
|
20136
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$
|
|
20224
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$a);
|
|
20137
20225
|
return /*#__PURE__*/React.createElement(View, Object.assign({
|
|
20138
20226
|
height: "1px",
|
|
20139
20227
|
backgroundColor: "color.gray.200",
|
|
@@ -24491,9 +24579,9 @@ var SidebarTransitions = {
|
|
|
24491
24579
|
};
|
|
24492
24580
|
|
|
24493
24581
|
var _excluded$1e = ["children", "showToggleButton", "views"],
|
|
24494
|
-
_excluded2$
|
|
24495
|
-
_excluded3$
|
|
24496
|
-
_excluded4$
|
|
24582
|
+
_excluded2$i = ["children", "views"],
|
|
24583
|
+
_excluded3$c = ["children", "views"],
|
|
24584
|
+
_excluded4$b = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
|
|
24497
24585
|
// Create context for the Sidebar
|
|
24498
24586
|
var SidebarContext = /*#__PURE__*/createContext({
|
|
24499
24587
|
isExpanded: true,
|
|
@@ -24590,7 +24678,7 @@ var SidebarContent = _ref3 => {
|
|
|
24590
24678
|
children,
|
|
24591
24679
|
views
|
|
24592
24680
|
} = _ref3,
|
|
24593
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
24681
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$i);
|
|
24594
24682
|
var {
|
|
24595
24683
|
isExpanded
|
|
24596
24684
|
} = useSidebarContext();
|
|
@@ -24608,7 +24696,7 @@ var SidebarFooter = _ref4 => {
|
|
|
24608
24696
|
children,
|
|
24609
24697
|
views
|
|
24610
24698
|
} = _ref4,
|
|
24611
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
24699
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$c);
|
|
24612
24700
|
var {
|
|
24613
24701
|
isExpanded
|
|
24614
24702
|
} = useSidebarContext();
|
|
@@ -24644,7 +24732,7 @@ var SidebarView = _ref5 => {
|
|
|
24644
24732
|
collapse,
|
|
24645
24733
|
views
|
|
24646
24734
|
} = _ref5,
|
|
24647
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$
|
|
24735
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$b);
|
|
24648
24736
|
// Determine width based on expanded state and size
|
|
24649
24737
|
var sizeConfig = SidebarSizes[size];
|
|
24650
24738
|
var width = isExpanded ? expandedWidth || sizeConfig.expandedWidth : collapsedWidth || sizeConfig.collapsedWidth;
|
|
@@ -25166,8 +25254,8 @@ var HandleIconStyles = {
|
|
|
25166
25254
|
};
|
|
25167
25255
|
|
|
25168
25256
|
var _excluded$1g = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
|
|
25169
|
-
_excluded2$
|
|
25170
|
-
_excluded3$
|
|
25257
|
+
_excluded2$j = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
|
|
25258
|
+
_excluded3$d = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
|
|
25171
25259
|
// Create context for the Resizable component
|
|
25172
25260
|
var ResizableContext = /*#__PURE__*/createContext({
|
|
25173
25261
|
orientation: 'horizontal',
|
|
@@ -25274,7 +25362,7 @@ var ResizableHandle = _ref3 => {
|
|
|
25274
25362
|
collapseTarget,
|
|
25275
25363
|
views
|
|
25276
25364
|
} = _ref3,
|
|
25277
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
25365
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$j);
|
|
25278
25366
|
var {
|
|
25279
25367
|
orientation,
|
|
25280
25368
|
size,
|
|
@@ -25414,7 +25502,7 @@ var ResizableView = _ref4 => {
|
|
|
25414
25502
|
containerRef,
|
|
25415
25503
|
views
|
|
25416
25504
|
} = _ref4,
|
|
25417
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
25505
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$d);
|
|
25418
25506
|
var Container = orientation === 'horizontal' ? Horizontal : Vertical;
|
|
25419
25507
|
return /*#__PURE__*/React.createElement(Container, Object.assign({
|
|
25420
25508
|
ref: containerRef,
|
|
@@ -26217,9 +26305,9 @@ var CommandFooterStyles = {
|
|
|
26217
26305
|
};
|
|
26218
26306
|
|
|
26219
26307
|
var _excluded$1i = ["value", "onValueChange", "placeholder", "views"],
|
|
26220
|
-
_excluded2$
|
|
26221
|
-
_excluded3$
|
|
26222
|
-
_excluded4$
|
|
26308
|
+
_excluded2$k = ["children", "views"],
|
|
26309
|
+
_excluded3$e = ["heading", "children", "views"],
|
|
26310
|
+
_excluded4$c = ["item", "selected", "onSelect", "views"],
|
|
26223
26311
|
_excluded5$6 = ["children", "views"],
|
|
26224
26312
|
_excluded6$3 = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "emptyState", "footer", "search", "setSearch", "selectedIndex", "setSelectedIndex", "filteredCommands", "filteredGroups", "listRef", "views", "filter"];
|
|
26225
26313
|
var CommandContext = /*#__PURE__*/createContext({
|
|
@@ -26280,7 +26368,7 @@ var CommandList = _ref3 => {
|
|
|
26280
26368
|
children,
|
|
26281
26369
|
views
|
|
26282
26370
|
} = _ref3,
|
|
26283
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
26371
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$k);
|
|
26284
26372
|
return /*#__PURE__*/React.createElement(View, Object.assign({}, CommandListStyles, views == null ? void 0 : views.container, props), children);
|
|
26285
26373
|
};
|
|
26286
26374
|
// Command Group component
|
|
@@ -26290,7 +26378,7 @@ var CommandGroup = _ref4 => {
|
|
|
26290
26378
|
children,
|
|
26291
26379
|
views
|
|
26292
26380
|
} = _ref4,
|
|
26293
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
26381
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$e);
|
|
26294
26382
|
return /*#__PURE__*/React.createElement(View, Object.assign({}, CommandGroupStyles, views == null ? void 0 : views.container, props), /*#__PURE__*/React.createElement(Text, Object.assign({}, CommandGroupHeadingStyles, views == null ? void 0 : views.heading), heading), children);
|
|
26295
26383
|
};
|
|
26296
26384
|
// Command Item component
|
|
@@ -26301,7 +26389,7 @@ var CommandItem = _ref5 => {
|
|
|
26301
26389
|
onSelect,
|
|
26302
26390
|
views
|
|
26303
26391
|
} = _ref5,
|
|
26304
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$
|
|
26392
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$c);
|
|
26305
26393
|
var handleClick = () => {
|
|
26306
26394
|
if (!item.disabled && onSelect) {
|
|
26307
26395
|
onSelect();
|
|
@@ -26687,8 +26775,8 @@ var getArrowStyles = position => {
|
|
|
26687
26775
|
};
|
|
26688
26776
|
|
|
26689
26777
|
var _excluded$1k = ["children", "views", "asChild"],
|
|
26690
|
-
_excluded2$
|
|
26691
|
-
_excluded3$
|
|
26778
|
+
_excluded2$l = ["children", "views"],
|
|
26779
|
+
_excluded3$f = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
|
|
26692
26780
|
// Create context for the Tooltip
|
|
26693
26781
|
var TooltipContext = /*#__PURE__*/createContext({
|
|
26694
26782
|
isOpen: false,
|
|
@@ -26758,7 +26846,7 @@ var TooltipContent = _ref3 => {
|
|
|
26758
26846
|
children,
|
|
26759
26847
|
views
|
|
26760
26848
|
} = _ref3,
|
|
26761
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
26849
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$l);
|
|
26762
26850
|
var {
|
|
26763
26851
|
isOpen,
|
|
26764
26852
|
contentRef,
|
|
@@ -26788,7 +26876,7 @@ var TooltipView = _ref4 => {
|
|
|
26788
26876
|
showArrow = true,
|
|
26789
26877
|
views
|
|
26790
26878
|
} = _ref4,
|
|
26791
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
26879
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$f);
|
|
26792
26880
|
var {
|
|
26793
26881
|
isOpen,
|
|
26794
26882
|
triggerRef,
|
|
@@ -27328,9 +27416,9 @@ var Gradient = props => {
|
|
|
27328
27416
|
};
|
|
27329
27417
|
|
|
27330
27418
|
var _excluded$1n = ["children", "showRadialGradient", "views", "themeMode"],
|
|
27331
|
-
_excluded2$
|
|
27332
|
-
_excluded3$
|
|
27333
|
-
_excluded4$
|
|
27419
|
+
_excluded2$m = ["number", "children"],
|
|
27420
|
+
_excluded3$g = ["rows", "cols", "squareSize"],
|
|
27421
|
+
_excluded4$d = ["count", "colors", "speed", "shapes"],
|
|
27334
27422
|
_excluded5$7 = ["gridSize", "lineColor", "pulseColor", "animationSpeed"],
|
|
27335
27423
|
_excluded6$4 = ["rippleCount", "colors", "maxSize", "frequency"],
|
|
27336
27424
|
_excluded7$1 = ["children", "src", "backgroundSize", "backgroundPosition", "backgroundRepeat", "backgroundAttachment", "imageOpacity", "overlay", "blendMode", "views", "themeMode"],
|
|
@@ -27372,7 +27460,7 @@ var Meteors = _ref2 => {
|
|
|
27372
27460
|
number = 20,
|
|
27373
27461
|
children
|
|
27374
27462
|
} = _ref2,
|
|
27375
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
27463
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$m);
|
|
27376
27464
|
var meteors = Array.from({
|
|
27377
27465
|
length: number
|
|
27378
27466
|
}, (_, i) => i);
|
|
@@ -27440,7 +27528,7 @@ var Wall = _ref3 => {
|
|
|
27440
27528
|
cols = 10,
|
|
27441
27529
|
squareSize = 40
|
|
27442
27530
|
} = _ref3,
|
|
27443
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
27531
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$g);
|
|
27444
27532
|
var rowsArray = Array(rows).fill(1);
|
|
27445
27533
|
var colsArray = Array(cols).fill(1);
|
|
27446
27534
|
return /*#__PURE__*/React.createElement(View, Object.assign({
|
|
@@ -27483,7 +27571,7 @@ var Particles = _ref4 => {
|
|
|
27483
27571
|
speed = 'medium',
|
|
27484
27572
|
shapes = ['circle']
|
|
27485
27573
|
} = _ref4,
|
|
27486
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
27574
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$d);
|
|
27487
27575
|
var particles = Array.from({
|
|
27488
27576
|
length: count
|
|
27489
27577
|
}, (_, i) => i);
|