@app-studio/web 0.9.46 → 0.9.48
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 +552 -487
- 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 +552 -487
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +552 -487
- 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
|
@@ -4829,65 +4829,42 @@ var Loader = LoaderComponent;
|
|
|
4829
4829
|
* - Rounded corners: Consistent border radius
|
|
4830
4830
|
* - Transitions: Subtle animations
|
|
4831
4831
|
*/
|
|
4832
|
+
var ButtonFontSize = {
|
|
4833
|
+
xs: 10,
|
|
4834
|
+
sm: 14,
|
|
4835
|
+
md: 16,
|
|
4836
|
+
lg: 18,
|
|
4837
|
+
xl: 20
|
|
4838
|
+
};
|
|
4839
|
+
var ButtonLineHeight = {
|
|
4840
|
+
xs: 14,
|
|
4841
|
+
sm: 20,
|
|
4842
|
+
md: 24,
|
|
4843
|
+
lg: 28,
|
|
4844
|
+
xl: 32
|
|
4845
|
+
};
|
|
4846
|
+
var getButtonSize = size => {
|
|
4847
|
+
return {
|
|
4848
|
+
minHeight: ButtonLineHeight[size] * 2,
|
|
4849
|
+
paddingHorizontal: ButtonLineHeight[size] / 2,
|
|
4850
|
+
fontSize: ButtonFontSize[size],
|
|
4851
|
+
fontWeight: 500,
|
|
4852
|
+
lineHeight: ButtonLineHeight[size],
|
|
4853
|
+
letterSpacing: '-0.01em',
|
|
4854
|
+
paddingInline: ButtonLineHeight[size],
|
|
4855
|
+
paddingBlock: ButtonLineHeight[size] / 2,
|
|
4856
|
+
outlineWidth: 'medium'
|
|
4857
|
+
};
|
|
4858
|
+
};
|
|
4832
4859
|
/**
|
|
4833
4860
|
* Button sizes following the 4px grid system
|
|
4834
4861
|
*/
|
|
4835
4862
|
var ButtonSizes = {
|
|
4836
|
-
xs:
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
paddingRight: 2,
|
|
4842
|
-
fontSize: 10,
|
|
4843
|
-
fontWeight: '500',
|
|
4844
|
-
lineHeight: 14,
|
|
4845
|
-
letterSpacing: '-0.01em'
|
|
4846
|
-
},
|
|
4847
|
-
sm: {
|
|
4848
|
-
minHeight: 4 * 4,
|
|
4849
|
-
paddingTop: 4,
|
|
4850
|
-
paddingBottom: 4,
|
|
4851
|
-
paddingLeft: 8,
|
|
4852
|
-
paddingRight: 8,
|
|
4853
|
-
fontSize: 12,
|
|
4854
|
-
fontWeight: '500',
|
|
4855
|
-
lineHeight: 16,
|
|
4856
|
-
letterSpacing: '-0.01em'
|
|
4857
|
-
},
|
|
4858
|
-
md: {
|
|
4859
|
-
minHeight: 6 * 4,
|
|
4860
|
-
paddingTop: 6,
|
|
4861
|
-
paddingBottom: 6,
|
|
4862
|
-
paddingLeft: 12,
|
|
4863
|
-
paddingRight: 12,
|
|
4864
|
-
fontSize: 14,
|
|
4865
|
-
fontWeight: '500',
|
|
4866
|
-
lineHeight: 18,
|
|
4867
|
-
letterSpacing: '-0.01em'
|
|
4868
|
-
},
|
|
4869
|
-
lg: {
|
|
4870
|
-
minHeight: 8 * 4,
|
|
4871
|
-
paddingTop: 8,
|
|
4872
|
-
paddingBottom: 8,
|
|
4873
|
-
paddingLeft: 16,
|
|
4874
|
-
paddingRight: 16,
|
|
4875
|
-
fontSize: 16,
|
|
4876
|
-
fontWeight: '500',
|
|
4877
|
-
lineHeight: 18,
|
|
4878
|
-
letterSpacing: '-0.01em'
|
|
4879
|
-
},
|
|
4880
|
-
xl: {
|
|
4881
|
-
minHeight: 10 * 4,
|
|
4882
|
-
paddingTop: 10,
|
|
4883
|
-
paddingBottom: 10,
|
|
4884
|
-
paddingLeft: 20,
|
|
4885
|
-
paddingRight: 20,
|
|
4886
|
-
fontSize: 20,
|
|
4887
|
-
fontWeight: '500',
|
|
4888
|
-
lineHeight: 22,
|
|
4889
|
-
letterSpacing: '-0.01em'
|
|
4890
|
-
}
|
|
4863
|
+
xs: /*#__PURE__*/getButtonSize('xs'),
|
|
4864
|
+
sm: /*#__PURE__*/getButtonSize('sm'),
|
|
4865
|
+
md: /*#__PURE__*/getButtonSize('md'),
|
|
4866
|
+
lg: /*#__PURE__*/getButtonSize('lg'),
|
|
4867
|
+
xl: /*#__PURE__*/getButtonSize('xl')
|
|
4891
4868
|
};
|
|
4892
4869
|
/**
|
|
4893
4870
|
* Button shapes with consistent border radius
|
|
@@ -4927,142 +4904,387 @@ var IconSizes$1 = {
|
|
|
4927
4904
|
padding: 14
|
|
4928
4905
|
}
|
|
4929
4906
|
};
|
|
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: {
|
|
4907
|
+
var getButtonVariants = function getButtonVariants(color, isLight, isThemeLight) {
|
|
4908
|
+
var textColor = isLight ? '#000000' : '#FFFFFF';
|
|
4909
|
+
return {
|
|
4910
|
+
filled: {
|
|
4961
4911
|
backgroundColor: color,
|
|
4962
|
-
color:
|
|
4963
|
-
|
|
4912
|
+
color: textColor,
|
|
4913
|
+
borderWidth: 1,
|
|
4914
|
+
borderStyle: 'solid',
|
|
4915
|
+
borderColor: 'transparent',
|
|
4916
|
+
_hover: {
|
|
4917
|
+
opacity: 0.9,
|
|
4918
|
+
color: textColor
|
|
4919
|
+
},
|
|
4920
|
+
_active: {
|
|
4921
|
+
opacity: 0.95,
|
|
4922
|
+
color: textColor
|
|
4923
|
+
},
|
|
4924
|
+
_focusVisible: {
|
|
4925
|
+
outline: 'none',
|
|
4926
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color,
|
|
4927
|
+
color: textColor
|
|
4928
|
+
},
|
|
4929
|
+
transition: 'background-color 0.2s ease, opacity 0.2s ease'
|
|
4964
4930
|
},
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4931
|
+
outline: {
|
|
4932
|
+
backgroundColor: 'transparent',
|
|
4933
|
+
color: color,
|
|
4934
|
+
borderWidth: 1,
|
|
4935
|
+
borderStyle: 'solid',
|
|
4936
|
+
borderColor: color,
|
|
4937
|
+
_hover: {
|
|
4938
|
+
backgroundColor: color,
|
|
4939
|
+
color: textColor,
|
|
4940
|
+
opacity: 0.9
|
|
4941
|
+
},
|
|
4942
|
+
_active: {
|
|
4943
|
+
backgroundColor: color,
|
|
4944
|
+
color: textColor,
|
|
4945
|
+
opacity: 0.95
|
|
4946
|
+
},
|
|
4947
|
+
_focusVisible: {
|
|
4948
|
+
outline: 'none',
|
|
4949
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
4950
|
+
},
|
|
4951
|
+
transition: 'background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease'
|
|
4968
4952
|
},
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4953
|
+
ghost: {
|
|
4954
|
+
backgroundColor: 'transparent',
|
|
4955
|
+
color: color,
|
|
4956
|
+
borderWidth: 1,
|
|
4957
|
+
borderStyle: 'solid',
|
|
4958
|
+
borderColor: 'transparent',
|
|
4959
|
+
_hover: {
|
|
4960
|
+
borderWidth: 1,
|
|
4961
|
+
borderStyle: 'solid',
|
|
4962
|
+
borderColor: color,
|
|
4963
|
+
color: color,
|
|
4964
|
+
opacity: 0.9
|
|
4965
|
+
},
|
|
4966
|
+
_active: {
|
|
4967
|
+
color: color,
|
|
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, opacity 0.2s ease'
|
|
4980
4975
|
},
|
|
4981
|
-
|
|
4982
|
-
backgroundColor:
|
|
4983
|
-
|
|
4976
|
+
link: {
|
|
4977
|
+
backgroundColor: 'transparent',
|
|
4978
|
+
color: color,
|
|
4979
|
+
borderWidth: 0,
|
|
4980
|
+
borderStyle: 'none',
|
|
4981
|
+
borderColor: 'transparent',
|
|
4982
|
+
textDecoration: 'underline',
|
|
4983
|
+
textUnderlineOffset: '2px',
|
|
4984
|
+
textDecorationThickness: '1px',
|
|
4985
|
+
textDecorationColor: color,
|
|
4986
|
+
_hover: {
|
|
4987
|
+
color: color,
|
|
4988
|
+
opacity: 0.8
|
|
4989
|
+
},
|
|
4990
|
+
_active: {
|
|
4991
|
+
color: color,
|
|
4992
|
+
opacity: 0.9
|
|
4993
|
+
},
|
|
4994
|
+
_focusVisible: {
|
|
4995
|
+
outline: 'none',
|
|
4996
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
4997
|
+
},
|
|
4998
|
+
transition: 'opacity 0.2s ease'
|
|
4984
4999
|
},
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
5000
|
+
borderMoving: {
|
|
5001
|
+
position: 'relative',
|
|
5002
|
+
backgroundColor: 'black',
|
|
5003
|
+
color: textColor,
|
|
5004
|
+
overflow: 'hidden',
|
|
5005
|
+
borderWidth: 0,
|
|
5006
|
+
borderStyle: 'none',
|
|
5007
|
+
borderColor: 'transparent',
|
|
5008
|
+
_hover: {
|
|
5009
|
+
color: textColor
|
|
5010
|
+
},
|
|
5011
|
+
_active: {
|
|
5012
|
+
color: textColor
|
|
5013
|
+
},
|
|
5014
|
+
_focusVisible: {
|
|
5015
|
+
outline: 'none',
|
|
5016
|
+
boxShadow: '0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(0, 0, 0, 0.8)'
|
|
5017
|
+
},
|
|
5018
|
+
transition: 'opacity 0.2s ease'
|
|
4988
5019
|
},
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5020
|
+
animatedStroke: {
|
|
5021
|
+
display: 'inline-block',
|
|
5022
|
+
margin: '0 auto',
|
|
5023
|
+
textAlign: 'center',
|
|
5024
|
+
textDecoration: 'none',
|
|
5025
|
+
position: 'relative',
|
|
5026
|
+
cursor: 'pointer',
|
|
5027
|
+
backgroundColor: 'transparent',
|
|
5028
|
+
color: color,
|
|
5029
|
+
borderWidth: 0,
|
|
5030
|
+
borderStyle: 'none',
|
|
5031
|
+
borderColor: 'transparent',
|
|
5032
|
+
_hover: {
|
|
5033
|
+
color: color
|
|
5034
|
+
},
|
|
5035
|
+
_active: {
|
|
5036
|
+
color: color
|
|
5037
|
+
},
|
|
5038
|
+
_focusVisible: {
|
|
5039
|
+
outline: 'none',
|
|
5040
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
5041
|
+
},
|
|
5042
|
+
transition: 'opacity 0.2s ease'
|
|
5043
|
+
}
|
|
5044
|
+
};
|
|
5045
|
+
};
|
|
5046
|
+
|
|
5047
|
+
var _excluded$d = ["shape", "size", "isDisabled", "onClick", "views", "mainTone", "tone", "borderMovingGradientColors", "borderMovingDuration", "content", "shadow"],
|
|
5048
|
+
_excluded2$3 = ["to", "onClick", "views", "children", "size", "accentColor", "textColor", "getColor", "shadow"],
|
|
5049
|
+
_excluded3$3 = ["variant", "to", "isDisabled", "isLoading", "isAuto", "isFilled", "isExternal", "shape", "shadow", "onClick", "views", "baseStyles", "sizeStyles", "iconPad", "resolvedTextColor", "content", "size"],
|
|
5050
|
+
_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"];
|
|
5051
|
+
// --- Helper: Button Content ---
|
|
5052
|
+
// Renders the inner content: Loader, Icon, and Children.
|
|
5053
|
+
var ButtonContent = _ref => {
|
|
5054
|
+
var {
|
|
5055
|
+
children,
|
|
5056
|
+
icon,
|
|
5057
|
+
isLoading,
|
|
5058
|
+
iconPosition = 'left',
|
|
5059
|
+
loaderPosition = 'left',
|
|
5060
|
+
size = 'md',
|
|
5061
|
+
resolvedTextColor,
|
|
5062
|
+
isIconRounded,
|
|
5063
|
+
views
|
|
5064
|
+
} = _ref;
|
|
5065
|
+
var Wrapper = ['left', 'right'].includes(iconPosition) ? Horizontal : Vertical;
|
|
5066
|
+
var sizeStyles = ButtonSizes[size];
|
|
5067
|
+
var iconPad = isIconRounded ? IconSizes$1[size] : {};
|
|
5068
|
+
return /*#__PURE__*/React.createElement(Wrapper, Object.assign({
|
|
5069
|
+
gap: 8,
|
|
5070
|
+
alignItems: "center",
|
|
5071
|
+
justifyContent: "center"
|
|
5072
|
+
}, sizeStyles, iconPad, views == null ? void 0 : views.content), isLoading && loaderPosition === 'left' && (/*#__PURE__*/React.createElement(Loader, Object.assign({
|
|
5073
|
+
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
5074
|
+
color: 'currentColor'
|
|
5075
|
+
}, views == null ? void 0 : views.loader))), icon && ['left', 'top'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React.createElement(View, Object.assign({
|
|
5076
|
+
color: 'currentColor'
|
|
5077
|
+
}, views == null ? void 0 : views.icon), icon)), children, icon && ['right', 'bottom'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React.createElement(View, Object.assign({
|
|
5078
|
+
color: 'currentColor'
|
|
5079
|
+
}, views == null ? void 0 : views.icon), icon)), isLoading && loaderPosition === 'right' && (/*#__PURE__*/React.createElement(Loader, Object.assign({
|
|
5080
|
+
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
5081
|
+
color: 'currentColor'
|
|
5082
|
+
}, views == null ? void 0 : views.loader))));
|
|
5083
|
+
};
|
|
5084
|
+
// --- Variant: Border Moving ---
|
|
5085
|
+
var BorderMovingButton = _ref2 => {
|
|
5086
|
+
var {
|
|
5087
|
+
shape = 'rounded',
|
|
5088
|
+
size = 'md',
|
|
5089
|
+
isDisabled,
|
|
5090
|
+
onClick,
|
|
5091
|
+
views,
|
|
5092
|
+
mainTone,
|
|
5093
|
+
tone,
|
|
5094
|
+
borderMovingGradientColors,
|
|
5095
|
+
borderMovingDuration,
|
|
5096
|
+
content,
|
|
5097
|
+
shadow
|
|
5098
|
+
} = _ref2,
|
|
5099
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$d);
|
|
5100
|
+
var sizeStyles = ButtonSizes[size];
|
|
5101
|
+
var borderWidth = 3;
|
|
5102
|
+
var numericWidth = typeof sizeStyles.width === 'number' ? sizeStyles.width : 300;
|
|
5103
|
+
var numericHeight = typeof sizeStyles.height === 'number' ? sizeStyles.height : 64;
|
|
5104
|
+
var numericBorderRadius = (() => {
|
|
5105
|
+
var shapeValue = ButtonShapes[shape];
|
|
5106
|
+
if (typeof shapeValue === 'number') {
|
|
5107
|
+
return shapeValue;
|
|
5108
|
+
}
|
|
5109
|
+
if (typeof shapeValue === 'string') {
|
|
5110
|
+
return parseInt(shapeValue, 10) || 50;
|
|
5111
|
+
}
|
|
5112
|
+
return 50;
|
|
5113
|
+
})();
|
|
5114
|
+
var containerBg = mainTone;
|
|
5115
|
+
// Use high contrast text color for this variant
|
|
5116
|
+
var borderMovingTextColor = tone === 'light' ? '#000000' : '#FFFFFF';
|
|
5117
|
+
// Create gradient string for border animation
|
|
5118
|
+
var gradientColors = borderMovingGradientColors.join(', ');
|
|
5119
|
+
// Animation sequence for the moving border effect
|
|
5120
|
+
var borderAnimation = {
|
|
5121
|
+
from: {
|
|
5122
|
+
backgroundPosition: '0% 50%'
|
|
5002
5123
|
},
|
|
5003
|
-
|
|
5004
|
-
|
|
5124
|
+
to: {
|
|
5125
|
+
backgroundPosition: '200% 50%'
|
|
5005
5126
|
},
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5127
|
+
duration: borderMovingDuration + "s",
|
|
5128
|
+
timingFunction: 'linear',
|
|
5129
|
+
iterationCount: 'infinite'
|
|
5130
|
+
};
|
|
5131
|
+
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
5132
|
+
position: "relative",
|
|
5133
|
+
display: "inline-flex",
|
|
5134
|
+
alignItems: "center",
|
|
5135
|
+
justifyContent: "center",
|
|
5136
|
+
borderRadius: ButtonShapes[shape],
|
|
5137
|
+
cursor: isDisabled ? 'default' : 'pointer',
|
|
5138
|
+
onClick: onClick,
|
|
5139
|
+
boxShadow: shadow,
|
|
5140
|
+
padding: borderWidth,
|
|
5141
|
+
background: "linear-gradient(90deg, " + borderMovingGradientColors[0] + ", " + borderMovingGradientColors[1] + ", " + borderMovingGradientColors[2] + ", " + borderMovingGradientColors[0] + ")",
|
|
5142
|
+
backgroundSize: "200% 100%",
|
|
5143
|
+
animate: borderAnimation
|
|
5144
|
+
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React.createElement(View, {
|
|
5145
|
+
display: "flex",
|
|
5146
|
+
alignItems: "center",
|
|
5147
|
+
justifyContent: "center",
|
|
5148
|
+
backgroundColor: containerBg,
|
|
5149
|
+
borderRadius: Math.max(0, numericBorderRadius - borderWidth),
|
|
5150
|
+
width: "100%",
|
|
5151
|
+
height: "100%",
|
|
5152
|
+
minWidth: numericWidth - borderWidth * 2,
|
|
5153
|
+
minHeight: numericHeight - borderWidth * 2,
|
|
5154
|
+
color: borderMovingTextColor,
|
|
5155
|
+
fontSize: 14,
|
|
5156
|
+
cursor: "pointer"
|
|
5157
|
+
}, content));
|
|
5158
|
+
};
|
|
5159
|
+
// --- Variant: Animated Stroke ---
|
|
5160
|
+
var AnimatedStrokeButton = _ref3 => {
|
|
5161
|
+
var {
|
|
5162
|
+
to,
|
|
5163
|
+
onClick,
|
|
5164
|
+
views,
|
|
5165
|
+
children,
|
|
5166
|
+
size = 'md',
|
|
5167
|
+
accentColor,
|
|
5168
|
+
textColor,
|
|
5169
|
+
getColor,
|
|
5170
|
+
shadow
|
|
5171
|
+
} = _ref3,
|
|
5172
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$3);
|
|
5173
|
+
var resolvedAccentColor = getColor(accentColor);
|
|
5174
|
+
var resolvedTextColor = getColor(textColor);
|
|
5175
|
+
var sizeStyles = ButtonSizes[size];
|
|
5176
|
+
var numericWidth = typeof sizeStyles.width === 'number' ? sizeStyles.width : 300;
|
|
5177
|
+
var numericHeight = typeof sizeStyles.height === 'number' ? sizeStyles.height : 60;
|
|
5178
|
+
var strokeAnimation = {
|
|
5179
|
+
from: {
|
|
5180
|
+
strokeWidth: '8px',
|
|
5181
|
+
strokeDasharray: '0 500',
|
|
5182
|
+
strokeDashoffset: -454
|
|
5009
5183
|
},
|
|
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)'
|
|
5184
|
+
to: {
|
|
5185
|
+
strokeWidth: '3px',
|
|
5186
|
+
strokeDasharray: '760',
|
|
5187
|
+
strokeDashoffset: 0
|
|
5023
5188
|
},
|
|
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
|
-
|
|
5189
|
+
duration: '0.9s',
|
|
5190
|
+
timingFunction: 'ease-in',
|
|
5191
|
+
fillMode: 'forwards'
|
|
5192
|
+
};
|
|
5193
|
+
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
5194
|
+
as: to ? 'a' : 'div',
|
|
5195
|
+
href: to ? to : undefined,
|
|
5196
|
+
onClick: onClick,
|
|
5197
|
+
display: "inline-block",
|
|
5198
|
+
maxWidth: "20rem",
|
|
5199
|
+
margin: "0 auto",
|
|
5200
|
+
textAlign: "center",
|
|
5201
|
+
textDecoration: "none",
|
|
5202
|
+
position: "relative",
|
|
5203
|
+
cursor: "pointer",
|
|
5204
|
+
boxShadow: shadow
|
|
5205
|
+
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React.createElement(View, {
|
|
5206
|
+
as: "svg",
|
|
5207
|
+
display: "block",
|
|
5208
|
+
height: numericHeight,
|
|
5209
|
+
width: numericWidth,
|
|
5210
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
5211
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
5212
|
+
as: "rect",
|
|
5213
|
+
height: numericHeight,
|
|
5214
|
+
width: numericWidth,
|
|
5215
|
+
fill: "transparent",
|
|
5216
|
+
stroke: resolvedAccentColor,
|
|
5217
|
+
strokeWidth: "8px",
|
|
5218
|
+
strokeDasharray: "0 500",
|
|
5219
|
+
strokeDashoffset: -454,
|
|
5220
|
+
on: {
|
|
5221
|
+
hover: {
|
|
5222
|
+
animate: strokeAnimation
|
|
5223
|
+
}
|
|
5224
|
+
}
|
|
5225
|
+
})), /*#__PURE__*/React.createElement(View, Object.assign({
|
|
5226
|
+
position: "absolute",
|
|
5227
|
+
top: 0,
|
|
5228
|
+
right: 0,
|
|
5229
|
+
bottom: 0,
|
|
5230
|
+
left: 0,
|
|
5231
|
+
display: "flex",
|
|
5232
|
+
alignItems: "center",
|
|
5233
|
+
justifyContent: "center",
|
|
5234
|
+
textAlign: "center",
|
|
5235
|
+
pointerEvents: "none",
|
|
5236
|
+
userSelect: "none",
|
|
5237
|
+
color: resolvedTextColor
|
|
5238
|
+
}, sizeStyles), children));
|
|
5239
|
+
};
|
|
5240
|
+
// --- Variant: Standard Button ---
|
|
5241
|
+
var StandardButton = _ref4 => {
|
|
5242
|
+
var {
|
|
5243
|
+
variant,
|
|
5244
|
+
to,
|
|
5245
|
+
isDisabled,
|
|
5246
|
+
isLoading,
|
|
5247
|
+
isAuto,
|
|
5248
|
+
isFilled,
|
|
5249
|
+
isExternal,
|
|
5250
|
+
shape = 'rounded',
|
|
5251
|
+
shadow,
|
|
5252
|
+
onClick,
|
|
5253
|
+
views,
|
|
5254
|
+
baseStyles,
|
|
5255
|
+
sizeStyles,
|
|
5256
|
+
iconPad,
|
|
5257
|
+
content // Destructure size to avoid passing it to Element
|
|
5258
|
+
} = _ref4,
|
|
5259
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$3);
|
|
5260
|
+
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
5261
|
+
as: variant === 'link' && to ? 'div' : 'button',
|
|
5262
|
+
type: variant === 'link' && to ? undefined : 'button',
|
|
5263
|
+
disabled: Boolean(isDisabled || isLoading)
|
|
5264
|
+
}, sizeStyles, iconPad, {
|
|
5265
|
+
display: "inline-flex",
|
|
5266
|
+
alignItems: "center",
|
|
5267
|
+
justifyContent: "center",
|
|
5268
|
+
width: isAuto ? 'fit-content' : isFilled ? '100%' : undefined,
|
|
5269
|
+
/* visuals */
|
|
5270
|
+
borderRadius: ButtonShapes[shape],
|
|
5271
|
+
boxShadow: shadow,
|
|
5272
|
+
transition: "all 0.2s ease",
|
|
5273
|
+
cursor: isDisabled ? 'default' : 'pointer',
|
|
5274
|
+
onClick: onClick
|
|
5275
|
+
}, baseStyles, views == null ? void 0 : views.container, props), to ? (/*#__PURE__*/React.createElement(Link, Object.assign({
|
|
5276
|
+
to: to,
|
|
5277
|
+
isExternal: isExternal,
|
|
5278
|
+
color: "currentColor",
|
|
5279
|
+
textDecoration: "inherit",
|
|
5280
|
+
_hover: {
|
|
5281
|
+
color: 'currentColor'
|
|
5282
|
+
}
|
|
5283
|
+
}, views == null ? void 0 : views.link), content)) : content);
|
|
5284
|
+
};
|
|
5285
|
+
// --- Main Component ---
|
|
5286
|
+
var ButtonView = _ref5 => {
|
|
5287
|
+
var _ref6, _base$color;
|
|
5066
5288
|
var {
|
|
5067
5289
|
/* behaviour */
|
|
5068
5290
|
variant = 'filled',
|
|
@@ -5072,8 +5294,10 @@ var ButtonView = _ref => {
|
|
|
5072
5294
|
loaderPosition = 'left',
|
|
5073
5295
|
backgroundColor,
|
|
5074
5296
|
// primary candidate for main color
|
|
5075
|
-
color
|
|
5076
|
-
|
|
5297
|
+
color,
|
|
5298
|
+
// 2nd candidate for main color (NOT text‑color)
|
|
5299
|
+
isAuto = true,
|
|
5300
|
+
isFilled,
|
|
5077
5301
|
isDisabled,
|
|
5078
5302
|
isLoading,
|
|
5079
5303
|
isIconRounded,
|
|
@@ -5093,8 +5317,8 @@ var ButtonView = _ref => {
|
|
|
5093
5317
|
borderMovingGradientColors = ['#705CFF', '#FF5C97', '#FFC75C'],
|
|
5094
5318
|
animatedStrokeAccentColor = '#705CFF',
|
|
5095
5319
|
animatedStrokeTextColor = '#333333'
|
|
5096
|
-
} =
|
|
5097
|
-
props = _objectWithoutPropertiesLoose(
|
|
5320
|
+
} = _ref5,
|
|
5321
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$3);
|
|
5098
5322
|
/* theme helpers */
|
|
5099
5323
|
var {
|
|
5100
5324
|
getColor,
|
|
@@ -5102,237 +5326,78 @@ var ButtonView = _ref => {
|
|
|
5102
5326
|
} = useTheme();
|
|
5103
5327
|
var mode = elementMode != null ? elementMode : themeMode;
|
|
5104
5328
|
/* MAIN COLOR – determines the entire palette */
|
|
5105
|
-
var mainColorKey = (
|
|
5329
|
+
var mainColorKey = (_ref6 = backgroundColor != null ? backgroundColor : color) != null ? _ref6 : 'theme.primary';
|
|
5106
5330
|
var mainTone = getColor(isDisabled ? 'theme.disabled' : mainColorKey, {
|
|
5107
5331
|
themeMode: mode
|
|
5108
5332
|
});
|
|
5109
5333
|
var tone = contrast(mainTone);
|
|
5334
|
+
/* text color with mixBlendMode for maximum visibility */
|
|
5335
|
+
var textColor = tone === 'light' ? '#000000' : '#FFFFFF';
|
|
5110
5336
|
/* variant palette */
|
|
5111
|
-
var palette = useMemo(() => getButtonVariants(mainTone, tone
|
|
5337
|
+
var palette = useMemo(() => getButtonVariants(mainTone, tone === 'light'), [mainTone, tone, mode]);
|
|
5112
5338
|
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
|
|
5339
|
+
var resolvedTextColor = (_base$color = base == null ? void 0 : base.color) != null ? _base$color : textColor;
|
|
5340
|
+
// Render content logic safely
|
|
5341
|
+
var content = /*#__PURE__*/React.createElement(ButtonContent, {
|
|
5342
|
+
icon: icon,
|
|
5343
|
+
isLoading: isLoading,
|
|
5344
|
+
iconPosition: iconPosition,
|
|
5345
|
+
loaderPosition: loaderPosition,
|
|
5346
|
+
size: size,
|
|
5347
|
+
resolvedTextColor: resolvedTextColor,
|
|
5348
|
+
isIconRounded: isIconRounded,
|
|
5349
|
+
views: views
|
|
5350
|
+
}, children);
|
|
5351
|
+
// Dispatch to the correct variant component
|
|
5149
5352
|
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));
|
|
5353
|
+
return /*#__PURE__*/React.createElement(BorderMovingButton, Object.assign({
|
|
5354
|
+
variant: variant,
|
|
5355
|
+
shape: shape,
|
|
5356
|
+
size: size,
|
|
5357
|
+
isDisabled: isDisabled,
|
|
5358
|
+
onClick: onClick,
|
|
5359
|
+
views: views,
|
|
5360
|
+
mainTone: mainTone,
|
|
5361
|
+
tone: tone,
|
|
5362
|
+
borderMovingGradientColors: borderMovingGradientColors,
|
|
5363
|
+
borderMovingDuration: borderMovingDuration,
|
|
5364
|
+
content: content
|
|
5365
|
+
}, props));
|
|
5239
5366
|
}
|
|
5240
5367
|
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,
|
|
5368
|
+
return /*#__PURE__*/React.createElement(AnimatedStrokeButton, Object.assign({
|
|
5369
|
+
variant: variant,
|
|
5370
|
+
to: to,
|
|
5263
5371
|
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));
|
|
5372
|
+
views: views,
|
|
5373
|
+
size: size,
|
|
5374
|
+
accentColor: animatedStrokeAccentColor,
|
|
5375
|
+
textColor: animatedStrokeTextColor,
|
|
5376
|
+
getColor: getColor
|
|
5377
|
+
}, props), children);
|
|
5313
5378
|
}
|
|
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({
|
|
5379
|
+
// Standard variants (filled, outline, ghost, link)
|
|
5380
|
+
var sizeStyles = ButtonSizes[size];
|
|
5381
|
+
var iconPad = isIconRounded ? IconSizes$1[size] : {};
|
|
5382
|
+
return /*#__PURE__*/React.createElement(StandardButton, Object.assign({
|
|
5383
|
+
variant: variant,
|
|
5330
5384
|
to: to,
|
|
5385
|
+
isDisabled: isDisabled,
|
|
5386
|
+
isLoading: isLoading,
|
|
5387
|
+
isAuto: isAuto,
|
|
5388
|
+
isFilled: isFilled,
|
|
5331
5389
|
isExternal: isExternal,
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5390
|
+
shape: shape,
|
|
5391
|
+
shadow: shadow,
|
|
5392
|
+
onClick: onClick,
|
|
5393
|
+
views: views,
|
|
5394
|
+
baseStyles: base,
|
|
5395
|
+
sizeStyles: sizeStyles,
|
|
5396
|
+
iconPad: iconPad,
|
|
5397
|
+
resolvedTextColor: resolvedTextColor,
|
|
5398
|
+
content: content,
|
|
5399
|
+
size: size
|
|
5400
|
+
}, props));
|
|
5336
5401
|
};
|
|
5337
5402
|
|
|
5338
5403
|
// Importing a custom hook to manage the state specific to the button component.
|
|
@@ -5468,9 +5533,9 @@ var useCardContext = () => {
|
|
|
5468
5533
|
};
|
|
5469
5534
|
|
|
5470
5535
|
var _excluded$e = ["children", "views", "style", "themeMode"],
|
|
5471
|
-
_excluded2$
|
|
5472
|
-
_excluded3$
|
|
5473
|
-
_excluded4$
|
|
5536
|
+
_excluded2$4 = ["children", "views", "style", "themeMode"],
|
|
5537
|
+
_excluded3$4 = ["children", "views", "style", "themeMode"],
|
|
5538
|
+
_excluded4$4 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style", "themeMode"];
|
|
5474
5539
|
var CardHeader = _ref => {
|
|
5475
5540
|
var _contextStyles$header;
|
|
5476
5541
|
var {
|
|
@@ -5495,7 +5560,7 @@ var CardContent = _ref2 => {
|
|
|
5495
5560
|
children,
|
|
5496
5561
|
style
|
|
5497
5562
|
} = _ref2,
|
|
5498
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
5563
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
|
|
5499
5564
|
var theme = useTheme();
|
|
5500
5565
|
var {
|
|
5501
5566
|
styles: contextStyles
|
|
@@ -5513,7 +5578,7 @@ var CardFooter = _ref3 => {
|
|
|
5513
5578
|
children,
|
|
5514
5579
|
style
|
|
5515
5580
|
} = _ref3,
|
|
5516
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
5581
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
|
|
5517
5582
|
var theme = useTheme();
|
|
5518
5583
|
var {
|
|
5519
5584
|
styles: contextStyles
|
|
@@ -5539,7 +5604,7 @@ var CardView = _ref4 => {
|
|
|
5539
5604
|
style,
|
|
5540
5605
|
themeMode: elementMode
|
|
5541
5606
|
} = _ref4,
|
|
5542
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
5607
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$4);
|
|
5543
5608
|
var theme = useTheme();
|
|
5544
5609
|
var defaultStyles = getDefaultCardStyles();
|
|
5545
5610
|
// Prepare context value, merging default styles with user's `views` overrides
|
|
@@ -5872,9 +5937,9 @@ var useCarouselContext = () => {
|
|
|
5872
5937
|
};
|
|
5873
5938
|
|
|
5874
5939
|
var _excluded$f = ["children", "isActive", "views"],
|
|
5875
|
-
_excluded2$
|
|
5876
|
-
_excluded3$
|
|
5877
|
-
_excluded4$
|
|
5940
|
+
_excluded2$5 = ["views", "children"],
|
|
5941
|
+
_excluded3$5 = ["views", "children"],
|
|
5942
|
+
_excluded4$5 = ["children", "views"],
|
|
5878
5943
|
_excluded5$1 = ["children", "views", "style"],
|
|
5879
5944
|
_excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views", "stepIndices", "themeMode"];
|
|
5880
5945
|
var CarouselSlide = _ref => {
|
|
@@ -5899,7 +5964,7 @@ var CarouselPreviousComponent = _ref2 => {
|
|
|
5899
5964
|
children // Allow custom content/icon
|
|
5900
5965
|
// Spread remaining ButtonProps
|
|
5901
5966
|
} = _ref2,
|
|
5902
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
5967
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$5);
|
|
5903
5968
|
var {
|
|
5904
5969
|
goToPrevious,
|
|
5905
5970
|
canGoPrevious,
|
|
@@ -5922,7 +5987,7 @@ var CarouselNextComponent = _ref3 => {
|
|
|
5922
5987
|
views,
|
|
5923
5988
|
children
|
|
5924
5989
|
} = _ref3,
|
|
5925
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
5990
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$5);
|
|
5926
5991
|
var {
|
|
5927
5992
|
goToNext,
|
|
5928
5993
|
canGoNext,
|
|
@@ -5945,7 +6010,7 @@ var CarouselItemComponent = _ref4 => {
|
|
|
5945
6010
|
children,
|
|
5946
6011
|
views
|
|
5947
6012
|
} = _ref4,
|
|
5948
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
6013
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$5);
|
|
5949
6014
|
var {
|
|
5950
6015
|
registerSlide,
|
|
5951
6016
|
unregisterSlide,
|
|
@@ -7690,9 +7755,9 @@ var ContextMenuItemStates = {
|
|
|
7690
7755
|
// using viewport-aware algorithms in the ContextMenu component
|
|
7691
7756
|
|
|
7692
7757
|
var _excluded$i = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
|
|
7693
|
-
_excluded2$
|
|
7694
|
-
_excluded3$
|
|
7695
|
-
_excluded4$
|
|
7758
|
+
_excluded2$6 = ["items", "children", "position", "side", "align", "views", "style"],
|
|
7759
|
+
_excluded3$6 = ["item", "children", "onSelect", "isDisabled", "views"],
|
|
7760
|
+
_excluded4$6 = ["views"],
|
|
7696
7761
|
_excluded5$2 = ["views"],
|
|
7697
7762
|
_excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views", "themeMode"];
|
|
7698
7763
|
// Create context for the ContextMenu
|
|
@@ -7799,7 +7864,7 @@ var ContextMenuContent = _ref3 => {
|
|
|
7799
7864
|
views,
|
|
7800
7865
|
style // Capture user-provided style
|
|
7801
7866
|
} = _ref3,
|
|
7802
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
7867
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$6);
|
|
7803
7868
|
var {
|
|
7804
7869
|
isOpen,
|
|
7805
7870
|
position: contextPosition,
|
|
@@ -7914,7 +7979,7 @@ var ContextMenuItem = _ref4 => {
|
|
|
7914
7979
|
isDisabled = false,
|
|
7915
7980
|
views
|
|
7916
7981
|
} = _ref4,
|
|
7917
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
7982
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$6);
|
|
7918
7983
|
var {
|
|
7919
7984
|
activeSubmenuId,
|
|
7920
7985
|
setActiveSubmenuId,
|
|
@@ -8043,7 +8108,7 @@ var ContextMenuDivider = _ref5 => {
|
|
|
8043
8108
|
var {
|
|
8044
8109
|
views
|
|
8045
8110
|
} = _ref5,
|
|
8046
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$
|
|
8111
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$6);
|
|
8047
8112
|
return /*#__PURE__*/React.createElement(View, Object.assign({
|
|
8048
8113
|
height: "1px",
|
|
8049
8114
|
backgroundColor: "color.gray.200",
|
|
@@ -8159,7 +8224,7 @@ ContextMenu.Divider = ContextMenuDivider;
|
|
|
8159
8224
|
ContextMenu.Separator = ContextMenuSeparator; // Add the Separator component
|
|
8160
8225
|
|
|
8161
8226
|
var _excluded$k = ["src", "color", "views", "themeMode"],
|
|
8162
|
-
_excluded2$
|
|
8227
|
+
_excluded2$7 = ["path"];
|
|
8163
8228
|
var FileSVG = _ref => {
|
|
8164
8229
|
var {
|
|
8165
8230
|
src,
|
|
@@ -8189,7 +8254,7 @@ var FileImage = _ref2 => {
|
|
|
8189
8254
|
var {
|
|
8190
8255
|
path
|
|
8191
8256
|
} = _ref2,
|
|
8192
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
8257
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$7);
|
|
8193
8258
|
return /*#__PURE__*/React.createElement(Image, Object.assign({
|
|
8194
8259
|
src: path
|
|
8195
8260
|
}, props));
|
|
@@ -8665,9 +8730,9 @@ var IconSizes$2 = {
|
|
|
8665
8730
|
};
|
|
8666
8731
|
|
|
8667
8732
|
var _excluded$s = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
8668
|
-
_excluded2$
|
|
8669
|
-
_excluded3$
|
|
8670
|
-
_excluded4$
|
|
8733
|
+
_excluded2$8 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
8734
|
+
_excluded3$7 = ["option", "size", "removeOption"],
|
|
8735
|
+
_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
8736
|
/**
|
|
8672
8737
|
* Item Component
|
|
8673
8738
|
*
|
|
@@ -8790,7 +8855,7 @@ var HiddenSelect = _ref4 => {
|
|
|
8790
8855
|
isReadOnly = false,
|
|
8791
8856
|
options = []
|
|
8792
8857
|
} = _ref4,
|
|
8793
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$
|
|
8858
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$8);
|
|
8794
8859
|
var handleChange = event => {
|
|
8795
8860
|
if (onChange) onChange(event);
|
|
8796
8861
|
};
|
|
@@ -8875,7 +8940,7 @@ var MultiSelect = _ref6 => {
|
|
|
8875
8940
|
size = 'md',
|
|
8876
8941
|
removeOption = () => {}
|
|
8877
8942
|
} = _ref6,
|
|
8878
|
-
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$
|
|
8943
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$7);
|
|
8879
8944
|
var handleClick = () => removeOption(option);
|
|
8880
8945
|
return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
8881
8946
|
gap: 8,
|
|
@@ -8936,7 +9001,7 @@ var SelectView = _ref7 => {
|
|
|
8936
9001
|
setHighlightedIndex,
|
|
8937
9002
|
highlightedIndex
|
|
8938
9003
|
} = _ref7,
|
|
8939
|
-
props = _objectWithoutPropertiesLoose(_ref7, _excluded4$
|
|
9004
|
+
props = _objectWithoutPropertiesLoose(_ref7, _excluded4$7);
|
|
8940
9005
|
var {
|
|
8941
9006
|
ref: triggerRef,
|
|
8942
9007
|
relation,
|
|
@@ -12125,8 +12190,8 @@ var IconSizes$4 = {
|
|
|
12125
12190
|
};
|
|
12126
12191
|
|
|
12127
12192
|
var _excluded$y = ["size"],
|
|
12128
|
-
_excluded2$
|
|
12129
|
-
_excluded3$
|
|
12193
|
+
_excluded2$9 = ["size"],
|
|
12194
|
+
_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
12195
|
var CountryList = _ref => {
|
|
12131
12196
|
var props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
12132
12197
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
@@ -12137,7 +12202,7 @@ var CountrySelector = props => (/*#__PURE__*/React.createElement(Input, Object.a
|
|
|
12137
12202
|
type: "country"
|
|
12138
12203
|
}, props)));
|
|
12139
12204
|
var CountryItem = _ref2 => {
|
|
12140
|
-
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
12205
|
+
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$9);
|
|
12141
12206
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
12142
12207
|
as: "li"
|
|
12143
12208
|
}, props));
|
|
@@ -12239,7 +12304,7 @@ var CountryPickerView = _ref5 => {
|
|
|
12239
12304
|
},
|
|
12240
12305
|
themeMode: elementMode
|
|
12241
12306
|
} = _ref5,
|
|
12242
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$
|
|
12307
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$8);
|
|
12243
12308
|
var {
|
|
12244
12309
|
getColor,
|
|
12245
12310
|
themeMode
|
|
@@ -12490,7 +12555,7 @@ var usePasswordState = props => {
|
|
|
12490
12555
|
};
|
|
12491
12556
|
|
|
12492
12557
|
var _excluded$A = ["visibleIcon", "hiddenIcon"],
|
|
12493
|
-
_excluded2$
|
|
12558
|
+
_excluded2$a = ["isVisible", "setIsVisible"];
|
|
12494
12559
|
var PasswordComponent = _ref => {
|
|
12495
12560
|
var {
|
|
12496
12561
|
visibleIcon = /*#__PURE__*/React.createElement(OpenEyeIcon, {
|
|
@@ -12506,7 +12571,7 @@ var PasswordComponent = _ref => {
|
|
|
12506
12571
|
isVisible,
|
|
12507
12572
|
setIsVisible
|
|
12508
12573
|
} = _usePasswordState,
|
|
12509
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
12574
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$a);
|
|
12510
12575
|
return /*#__PURE__*/React.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
12511
12576
|
type: isVisible ? 'text' : 'password',
|
|
12512
12577
|
isClearable: false,
|
|
@@ -14635,7 +14700,7 @@ var useHoverCardState = function useHoverCardState(_temp) {
|
|
|
14635
14700
|
};
|
|
14636
14701
|
|
|
14637
14702
|
var _excluded$J = ["children", "views", "asChild"],
|
|
14638
|
-
_excluded2$
|
|
14703
|
+
_excluded2$b = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
|
|
14639
14704
|
// Create context for the HoverCard
|
|
14640
14705
|
var HoverCardContext = /*#__PURE__*/createContext({
|
|
14641
14706
|
isOpen: false,
|
|
@@ -14721,7 +14786,7 @@ var HoverCardContent = _ref3 => {
|
|
|
14721
14786
|
minWidth = '50px',
|
|
14722
14787
|
maxWidth = '300px'
|
|
14723
14788
|
} = _ref3,
|
|
14724
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
14789
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$b);
|
|
14725
14790
|
var {
|
|
14726
14791
|
isOpen,
|
|
14727
14792
|
cancelCloseTimer,
|
|
@@ -15843,7 +15908,7 @@ var SwitchComponent$1 = props => {
|
|
|
15843
15908
|
var FormikSwitch = SwitchComponent$1;
|
|
15844
15909
|
|
|
15845
15910
|
var _excluded$N = ["name"],
|
|
15846
|
-
_excluded2$
|
|
15911
|
+
_excluded2$c = ["tags"];
|
|
15847
15912
|
/**
|
|
15848
15913
|
* Formik-integrated TagInput component
|
|
15849
15914
|
*/
|
|
@@ -15886,7 +15951,7 @@ var TagInputComponent$1 = props => {
|
|
|
15886
15951
|
var {
|
|
15887
15952
|
tags
|
|
15888
15953
|
} = tagInputState,
|
|
15889
|
-
stateWithoutTags = _objectWithoutPropertiesLoose(tagInputState, _excluded2$
|
|
15954
|
+
stateWithoutTags = _objectWithoutPropertiesLoose(tagInputState, _excluded2$c);
|
|
15890
15955
|
// Render the view component with combined props and state
|
|
15891
15956
|
return /*#__PURE__*/React.createElement(TagInputView, Object.assign({}, stateWithoutTags, restProps, {
|
|
15892
15957
|
tags: tags,
|
|
@@ -15922,7 +15987,7 @@ var TextFieldComponent$1 = props => {
|
|
|
15922
15987
|
var FormikTextField = TextFieldComponent$1;
|
|
15923
15988
|
|
|
15924
15989
|
var _excluded$P = ["visibleIcon", "hiddenIcon"],
|
|
15925
|
-
_excluded2$
|
|
15990
|
+
_excluded2$d = ["isVisible", "setIsVisible"];
|
|
15926
15991
|
var PasswordComponent$1 = _ref => {
|
|
15927
15992
|
var {
|
|
15928
15993
|
visibleIcon = /*#__PURE__*/React.createElement(OpenEyeIcon, {
|
|
@@ -15939,7 +16004,7 @@ var PasswordComponent$1 = _ref => {
|
|
|
15939
16004
|
isVisible,
|
|
15940
16005
|
setIsVisible
|
|
15941
16006
|
} = _usePasswordState,
|
|
15942
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
16007
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$d);
|
|
15943
16008
|
return /*#__PURE__*/React.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
15944
16009
|
type: isVisible ? 'text' : 'password',
|
|
15945
16010
|
isClearable: false,
|
|
@@ -17056,9 +17121,9 @@ var ModalTypography = {
|
|
|
17056
17121
|
};
|
|
17057
17122
|
|
|
17058
17123
|
var _excluded$T = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
|
|
17059
|
-
_excluded2$
|
|
17060
|
-
_excluded3$
|
|
17061
|
-
_excluded4$
|
|
17124
|
+
_excluded2$e = ["children", "shadow", "isFullScreen", "shape", "views", "isOpen"],
|
|
17125
|
+
_excluded3$9 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
|
|
17126
|
+
_excluded4$8 = ["children", "views"],
|
|
17062
17127
|
_excluded5$3 = ["children", "views"];
|
|
17063
17128
|
var ModalOverlay = _ref => {
|
|
17064
17129
|
var {
|
|
@@ -17106,7 +17171,7 @@ var ModalContainer = _ref2 => {
|
|
|
17106
17171
|
shape = 'rounded',
|
|
17107
17172
|
views
|
|
17108
17173
|
} = _ref2,
|
|
17109
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
17174
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$e);
|
|
17110
17175
|
var defaultShadow = typeof document !== undefined ? {
|
|
17111
17176
|
boxShadow: '0px 4px 16px rgba(0, 0, 0, 0.15)'
|
|
17112
17177
|
} : {
|
|
@@ -17147,7 +17212,7 @@ var ModalHeader = _ref3 => {
|
|
|
17147
17212
|
buttonPosition = 'right',
|
|
17148
17213
|
views
|
|
17149
17214
|
} = _ref3,
|
|
17150
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
17215
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$9);
|
|
17151
17216
|
var onClose = props.onClose ? props.onClose : hideModal;
|
|
17152
17217
|
var buttonIcon = /*#__PURE__*/React.createElement(View, {
|
|
17153
17218
|
onClick: onClose
|
|
@@ -17176,7 +17241,7 @@ var ModalBody = _ref4 => {
|
|
|
17176
17241
|
children,
|
|
17177
17242
|
views
|
|
17178
17243
|
} = _ref4,
|
|
17179
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
17244
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$8);
|
|
17180
17245
|
return /*#__PURE__*/React.createElement(View, Object.assign({
|
|
17181
17246
|
paddingVertical: 16,
|
|
17182
17247
|
paddingHorizontal: 24,
|
|
@@ -17319,9 +17384,9 @@ var DrawerPlacements = {
|
|
|
17319
17384
|
};
|
|
17320
17385
|
|
|
17321
17386
|
var _excluded$U = ["isOpen", "onClose", "isClosePrevented", "blur", "children"],
|
|
17322
|
-
_excluded2$
|
|
17323
|
-
_excluded3$
|
|
17324
|
-
_excluded4$
|
|
17387
|
+
_excluded2$f = ["placement", "size", "children"],
|
|
17388
|
+
_excluded3$a = ["children", "onClose", "buttonPosition"],
|
|
17389
|
+
_excluded4$9 = ["children"],
|
|
17325
17390
|
_excluded5$4 = ["children"];
|
|
17326
17391
|
var DrawerOverlay = _ref => {
|
|
17327
17392
|
var {
|
|
@@ -17372,7 +17437,7 @@ var DrawerContainer = _ref2 => {
|
|
|
17372
17437
|
size = 'md',
|
|
17373
17438
|
children
|
|
17374
17439
|
} = _ref2,
|
|
17375
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
17440
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$f);
|
|
17376
17441
|
var handleClick = e => {
|
|
17377
17442
|
e.stopPropagation();
|
|
17378
17443
|
};
|
|
@@ -17398,7 +17463,7 @@ var DrawerHeader = _ref3 => {
|
|
|
17398
17463
|
onClose,
|
|
17399
17464
|
buttonPosition = 'right'
|
|
17400
17465
|
} = _ref3,
|
|
17401
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
17466
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$a);
|
|
17402
17467
|
var closeButton = onClose && (/*#__PURE__*/React.createElement(View, {
|
|
17403
17468
|
onClick: onClose,
|
|
17404
17469
|
cursor: "pointer",
|
|
@@ -17420,7 +17485,7 @@ var DrawerBody = _ref4 => {
|
|
|
17420
17485
|
var {
|
|
17421
17486
|
children
|
|
17422
17487
|
} = _ref4,
|
|
17423
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
17488
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$9);
|
|
17424
17489
|
return /*#__PURE__*/React.createElement(Vertical, Object.assign({
|
|
17425
17490
|
padding: 24,
|
|
17426
17491
|
flex: 1,
|
|
@@ -18982,7 +19047,7 @@ var TypewriterEffect = _ref => {
|
|
|
18982
19047
|
};
|
|
18983
19048
|
|
|
18984
19049
|
var _excluded$Z = ["text", "duration", "direction", "stagger", "sequential", "textStyle", "as", "wordProps"],
|
|
18985
|
-
_excluded2$
|
|
19050
|
+
_excluded2$g = ["style"];
|
|
18986
19051
|
// CSS keyframes injection - done once
|
|
18987
19052
|
var KEYFRAMES_ID = 'slide-effect-keyframes';
|
|
18988
19053
|
var injectKeyframes = () => {
|
|
@@ -19077,7 +19142,7 @@ var SlideEffect = _ref => {
|
|
|
19077
19142
|
{
|
|
19078
19143
|
style: customWordStyle
|
|
19079
19144
|
} = _ref2,
|
|
19080
|
-
restWordProps = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
19145
|
+
restWordProps = _objectWithoutPropertiesLoose(_ref2, _excluded2$g);
|
|
19081
19146
|
// Get animation names based on direction
|
|
19082
19147
|
var isUp = direction === 'up';
|
|
19083
19148
|
var enterAnim = isUp ? 'slideInUp' : 'slideInDown';
|
|
@@ -19870,9 +19935,9 @@ var DropdownMenuItemStates = {
|
|
|
19870
19935
|
};
|
|
19871
19936
|
|
|
19872
19937
|
var _excluded$11 = ["children", "views"],
|
|
19873
|
-
_excluded2$
|
|
19874
|
-
_excluded3$
|
|
19875
|
-
_excluded4$
|
|
19938
|
+
_excluded2$h = ["items", "side", "align", "views"],
|
|
19939
|
+
_excluded3$b = ["item", "views"],
|
|
19940
|
+
_excluded4$a = ["views"],
|
|
19876
19941
|
_excluded5$5 = ["trigger", "items", "side", "align", "views", "themeMode"];
|
|
19877
19942
|
// Create context for the DropdownMenu
|
|
19878
19943
|
var DropdownMenuContext = /*#__PURE__*/createContext({
|
|
@@ -19937,7 +20002,7 @@ var DropdownMenuContent = _ref3 => {
|
|
|
19937
20002
|
align = 'start',
|
|
19938
20003
|
views
|
|
19939
20004
|
} = _ref3,
|
|
19940
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
20005
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$h);
|
|
19941
20006
|
var {
|
|
19942
20007
|
isOpen,
|
|
19943
20008
|
variant,
|
|
@@ -20068,7 +20133,7 @@ var DropdownMenuItem = _ref4 => {
|
|
|
20068
20133
|
item,
|
|
20069
20134
|
views
|
|
20070
20135
|
} = _ref4,
|
|
20071
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
20136
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$b);
|
|
20072
20137
|
var {
|
|
20073
20138
|
activeSubmenuId,
|
|
20074
20139
|
setActiveSubmenuId,
|
|
@@ -20133,7 +20198,7 @@ var DropdownMenuDivider = _ref5 => {
|
|
|
20133
20198
|
var {
|
|
20134
20199
|
views
|
|
20135
20200
|
} = _ref5,
|
|
20136
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$
|
|
20201
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$a);
|
|
20137
20202
|
return /*#__PURE__*/React.createElement(View, Object.assign({
|
|
20138
20203
|
height: "1px",
|
|
20139
20204
|
backgroundColor: "color.gray.200",
|
|
@@ -24491,9 +24556,9 @@ var SidebarTransitions = {
|
|
|
24491
24556
|
};
|
|
24492
24557
|
|
|
24493
24558
|
var _excluded$1e = ["children", "showToggleButton", "views"],
|
|
24494
|
-
_excluded2$
|
|
24495
|
-
_excluded3$
|
|
24496
|
-
_excluded4$
|
|
24559
|
+
_excluded2$i = ["children", "views"],
|
|
24560
|
+
_excluded3$c = ["children", "views"],
|
|
24561
|
+
_excluded4$b = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
|
|
24497
24562
|
// Create context for the Sidebar
|
|
24498
24563
|
var SidebarContext = /*#__PURE__*/createContext({
|
|
24499
24564
|
isExpanded: true,
|
|
@@ -24590,7 +24655,7 @@ var SidebarContent = _ref3 => {
|
|
|
24590
24655
|
children,
|
|
24591
24656
|
views
|
|
24592
24657
|
} = _ref3,
|
|
24593
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
24658
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$i);
|
|
24594
24659
|
var {
|
|
24595
24660
|
isExpanded
|
|
24596
24661
|
} = useSidebarContext();
|
|
@@ -24608,7 +24673,7 @@ var SidebarFooter = _ref4 => {
|
|
|
24608
24673
|
children,
|
|
24609
24674
|
views
|
|
24610
24675
|
} = _ref4,
|
|
24611
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
24676
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$c);
|
|
24612
24677
|
var {
|
|
24613
24678
|
isExpanded
|
|
24614
24679
|
} = useSidebarContext();
|
|
@@ -24644,7 +24709,7 @@ var SidebarView = _ref5 => {
|
|
|
24644
24709
|
collapse,
|
|
24645
24710
|
views
|
|
24646
24711
|
} = _ref5,
|
|
24647
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$
|
|
24712
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$b);
|
|
24648
24713
|
// Determine width based on expanded state and size
|
|
24649
24714
|
var sizeConfig = SidebarSizes[size];
|
|
24650
24715
|
var width = isExpanded ? expandedWidth || sizeConfig.expandedWidth : collapsedWidth || sizeConfig.collapsedWidth;
|
|
@@ -25166,8 +25231,8 @@ var HandleIconStyles = {
|
|
|
25166
25231
|
};
|
|
25167
25232
|
|
|
25168
25233
|
var _excluded$1g = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
|
|
25169
|
-
_excluded2$
|
|
25170
|
-
_excluded3$
|
|
25234
|
+
_excluded2$j = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
|
|
25235
|
+
_excluded3$d = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
|
|
25171
25236
|
// Create context for the Resizable component
|
|
25172
25237
|
var ResizableContext = /*#__PURE__*/createContext({
|
|
25173
25238
|
orientation: 'horizontal',
|
|
@@ -25274,7 +25339,7 @@ var ResizableHandle = _ref3 => {
|
|
|
25274
25339
|
collapseTarget,
|
|
25275
25340
|
views
|
|
25276
25341
|
} = _ref3,
|
|
25277
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
25342
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$j);
|
|
25278
25343
|
var {
|
|
25279
25344
|
orientation,
|
|
25280
25345
|
size,
|
|
@@ -25414,7 +25479,7 @@ var ResizableView = _ref4 => {
|
|
|
25414
25479
|
containerRef,
|
|
25415
25480
|
views
|
|
25416
25481
|
} = _ref4,
|
|
25417
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
25482
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$d);
|
|
25418
25483
|
var Container = orientation === 'horizontal' ? Horizontal : Vertical;
|
|
25419
25484
|
return /*#__PURE__*/React.createElement(Container, Object.assign({
|
|
25420
25485
|
ref: containerRef,
|
|
@@ -26217,9 +26282,9 @@ var CommandFooterStyles = {
|
|
|
26217
26282
|
};
|
|
26218
26283
|
|
|
26219
26284
|
var _excluded$1i = ["value", "onValueChange", "placeholder", "views"],
|
|
26220
|
-
_excluded2$
|
|
26221
|
-
_excluded3$
|
|
26222
|
-
_excluded4$
|
|
26285
|
+
_excluded2$k = ["children", "views"],
|
|
26286
|
+
_excluded3$e = ["heading", "children", "views"],
|
|
26287
|
+
_excluded4$c = ["item", "selected", "onSelect", "views"],
|
|
26223
26288
|
_excluded5$6 = ["children", "views"],
|
|
26224
26289
|
_excluded6$3 = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "emptyState", "footer", "search", "setSearch", "selectedIndex", "setSelectedIndex", "filteredCommands", "filteredGroups", "listRef", "views", "filter"];
|
|
26225
26290
|
var CommandContext = /*#__PURE__*/createContext({
|
|
@@ -26280,7 +26345,7 @@ var CommandList = _ref3 => {
|
|
|
26280
26345
|
children,
|
|
26281
26346
|
views
|
|
26282
26347
|
} = _ref3,
|
|
26283
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
26348
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$k);
|
|
26284
26349
|
return /*#__PURE__*/React.createElement(View, Object.assign({}, CommandListStyles, views == null ? void 0 : views.container, props), children);
|
|
26285
26350
|
};
|
|
26286
26351
|
// Command Group component
|
|
@@ -26290,7 +26355,7 @@ var CommandGroup = _ref4 => {
|
|
|
26290
26355
|
children,
|
|
26291
26356
|
views
|
|
26292
26357
|
} = _ref4,
|
|
26293
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
26358
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$e);
|
|
26294
26359
|
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
26360
|
};
|
|
26296
26361
|
// Command Item component
|
|
@@ -26301,7 +26366,7 @@ var CommandItem = _ref5 => {
|
|
|
26301
26366
|
onSelect,
|
|
26302
26367
|
views
|
|
26303
26368
|
} = _ref5,
|
|
26304
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$
|
|
26369
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$c);
|
|
26305
26370
|
var handleClick = () => {
|
|
26306
26371
|
if (!item.disabled && onSelect) {
|
|
26307
26372
|
onSelect();
|
|
@@ -26687,8 +26752,8 @@ var getArrowStyles = position => {
|
|
|
26687
26752
|
};
|
|
26688
26753
|
|
|
26689
26754
|
var _excluded$1k = ["children", "views", "asChild"],
|
|
26690
|
-
_excluded2$
|
|
26691
|
-
_excluded3$
|
|
26755
|
+
_excluded2$l = ["children", "views"],
|
|
26756
|
+
_excluded3$f = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
|
|
26692
26757
|
// Create context for the Tooltip
|
|
26693
26758
|
var TooltipContext = /*#__PURE__*/createContext({
|
|
26694
26759
|
isOpen: false,
|
|
@@ -26758,7 +26823,7 @@ var TooltipContent = _ref3 => {
|
|
|
26758
26823
|
children,
|
|
26759
26824
|
views
|
|
26760
26825
|
} = _ref3,
|
|
26761
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
26826
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$l);
|
|
26762
26827
|
var {
|
|
26763
26828
|
isOpen,
|
|
26764
26829
|
contentRef,
|
|
@@ -26788,7 +26853,7 @@ var TooltipView = _ref4 => {
|
|
|
26788
26853
|
showArrow = true,
|
|
26789
26854
|
views
|
|
26790
26855
|
} = _ref4,
|
|
26791
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
26856
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$f);
|
|
26792
26857
|
var {
|
|
26793
26858
|
isOpen,
|
|
26794
26859
|
triggerRef,
|
|
@@ -27328,9 +27393,9 @@ var Gradient = props => {
|
|
|
27328
27393
|
};
|
|
27329
27394
|
|
|
27330
27395
|
var _excluded$1n = ["children", "showRadialGradient", "views", "themeMode"],
|
|
27331
|
-
_excluded2$
|
|
27332
|
-
_excluded3$
|
|
27333
|
-
_excluded4$
|
|
27396
|
+
_excluded2$m = ["number", "children"],
|
|
27397
|
+
_excluded3$g = ["rows", "cols", "squareSize"],
|
|
27398
|
+
_excluded4$d = ["count", "colors", "speed", "shapes"],
|
|
27334
27399
|
_excluded5$7 = ["gridSize", "lineColor", "pulseColor", "animationSpeed"],
|
|
27335
27400
|
_excluded6$4 = ["rippleCount", "colors", "maxSize", "frequency"],
|
|
27336
27401
|
_excluded7$1 = ["children", "src", "backgroundSize", "backgroundPosition", "backgroundRepeat", "backgroundAttachment", "imageOpacity", "overlay", "blendMode", "views", "themeMode"],
|
|
@@ -27372,7 +27437,7 @@ var Meteors = _ref2 => {
|
|
|
27372
27437
|
number = 20,
|
|
27373
27438
|
children
|
|
27374
27439
|
} = _ref2,
|
|
27375
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
27440
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$m);
|
|
27376
27441
|
var meteors = Array.from({
|
|
27377
27442
|
length: number
|
|
27378
27443
|
}, (_, i) => i);
|
|
@@ -27440,7 +27505,7 @@ var Wall = _ref3 => {
|
|
|
27440
27505
|
cols = 10,
|
|
27441
27506
|
squareSize = 40
|
|
27442
27507
|
} = _ref3,
|
|
27443
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
27508
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$g);
|
|
27444
27509
|
var rowsArray = Array(rows).fill(1);
|
|
27445
27510
|
var colsArray = Array(cols).fill(1);
|
|
27446
27511
|
return /*#__PURE__*/React.createElement(View, Object.assign({
|
|
@@ -27483,7 +27548,7 @@ var Particles = _ref4 => {
|
|
|
27483
27548
|
speed = 'medium',
|
|
27484
27549
|
shapes = ['circle']
|
|
27485
27550
|
} = _ref4,
|
|
27486
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
27551
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$d);
|
|
27487
27552
|
var particles = Array.from({
|
|
27488
27553
|
length: count
|
|
27489
27554
|
}, (_, i) => i);
|