@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
|
@@ -4797,65 +4797,42 @@
|
|
|
4797
4797
|
* - Rounded corners: Consistent border radius
|
|
4798
4798
|
* - Transitions: Subtle animations
|
|
4799
4799
|
*/
|
|
4800
|
+
var ButtonFontSize = {
|
|
4801
|
+
xs: 10,
|
|
4802
|
+
sm: 14,
|
|
4803
|
+
md: 16,
|
|
4804
|
+
lg: 18,
|
|
4805
|
+
xl: 20
|
|
4806
|
+
};
|
|
4807
|
+
var ButtonLineHeight = {
|
|
4808
|
+
xs: 14,
|
|
4809
|
+
sm: 20,
|
|
4810
|
+
md: 24,
|
|
4811
|
+
lg: 28,
|
|
4812
|
+
xl: 32
|
|
4813
|
+
};
|
|
4814
|
+
var getButtonSize = size => {
|
|
4815
|
+
return {
|
|
4816
|
+
minHeight: ButtonLineHeight[size] * 2,
|
|
4817
|
+
paddingHorizontal: ButtonLineHeight[size] / 2,
|
|
4818
|
+
fontSize: ButtonFontSize[size],
|
|
4819
|
+
fontWeight: 500,
|
|
4820
|
+
lineHeight: ButtonLineHeight[size],
|
|
4821
|
+
letterSpacing: '-0.01em',
|
|
4822
|
+
paddingInline: ButtonLineHeight[size],
|
|
4823
|
+
paddingBlock: ButtonLineHeight[size] / 2,
|
|
4824
|
+
outlineWidth: 'medium'
|
|
4825
|
+
};
|
|
4826
|
+
};
|
|
4800
4827
|
/**
|
|
4801
4828
|
* Button sizes following the 4px grid system
|
|
4802
4829
|
*/
|
|
4803
4830
|
var ButtonSizes = {
|
|
4804
|
-
xs:
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
paddingRight: 2,
|
|
4810
|
-
fontSize: 10,
|
|
4811
|
-
fontWeight: '500',
|
|
4812
|
-
lineHeight: 14,
|
|
4813
|
-
letterSpacing: '-0.01em'
|
|
4814
|
-
},
|
|
4815
|
-
sm: {
|
|
4816
|
-
minHeight: 4 * 4,
|
|
4817
|
-
paddingTop: 4,
|
|
4818
|
-
paddingBottom: 4,
|
|
4819
|
-
paddingLeft: 8,
|
|
4820
|
-
paddingRight: 8,
|
|
4821
|
-
fontSize: 12,
|
|
4822
|
-
fontWeight: '500',
|
|
4823
|
-
lineHeight: 16,
|
|
4824
|
-
letterSpacing: '-0.01em'
|
|
4825
|
-
},
|
|
4826
|
-
md: {
|
|
4827
|
-
minHeight: 6 * 4,
|
|
4828
|
-
paddingTop: 6,
|
|
4829
|
-
paddingBottom: 6,
|
|
4830
|
-
paddingLeft: 12,
|
|
4831
|
-
paddingRight: 12,
|
|
4832
|
-
fontSize: 14,
|
|
4833
|
-
fontWeight: '500',
|
|
4834
|
-
lineHeight: 18,
|
|
4835
|
-
letterSpacing: '-0.01em'
|
|
4836
|
-
},
|
|
4837
|
-
lg: {
|
|
4838
|
-
minHeight: 8 * 4,
|
|
4839
|
-
paddingTop: 8,
|
|
4840
|
-
paddingBottom: 8,
|
|
4841
|
-
paddingLeft: 16,
|
|
4842
|
-
paddingRight: 16,
|
|
4843
|
-
fontSize: 16,
|
|
4844
|
-
fontWeight: '500',
|
|
4845
|
-
lineHeight: 18,
|
|
4846
|
-
letterSpacing: '-0.01em'
|
|
4847
|
-
},
|
|
4848
|
-
xl: {
|
|
4849
|
-
minHeight: 10 * 4,
|
|
4850
|
-
paddingTop: 10,
|
|
4851
|
-
paddingBottom: 10,
|
|
4852
|
-
paddingLeft: 20,
|
|
4853
|
-
paddingRight: 20,
|
|
4854
|
-
fontSize: 20,
|
|
4855
|
-
fontWeight: '500',
|
|
4856
|
-
lineHeight: 22,
|
|
4857
|
-
letterSpacing: '-0.01em'
|
|
4858
|
-
}
|
|
4831
|
+
xs: /*#__PURE__*/getButtonSize('xs'),
|
|
4832
|
+
sm: /*#__PURE__*/getButtonSize('sm'),
|
|
4833
|
+
md: /*#__PURE__*/getButtonSize('md'),
|
|
4834
|
+
lg: /*#__PURE__*/getButtonSize('lg'),
|
|
4835
|
+
xl: /*#__PURE__*/getButtonSize('xl')
|
|
4859
4836
|
};
|
|
4860
4837
|
/**
|
|
4861
4838
|
* Button shapes with consistent border radius
|
|
@@ -4895,142 +4872,387 @@
|
|
|
4895
4872
|
padding: 14
|
|
4896
4873
|
}
|
|
4897
4874
|
};
|
|
4898
|
-
var getButtonVariants = (color, isLight)
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
borderWidth: 1,
|
|
4903
|
-
borderStyle: 'solid',
|
|
4904
|
-
borderColor: 'transparent',
|
|
4905
|
-
_hover: {
|
|
4906
|
-
opacity: 0.9
|
|
4907
|
-
},
|
|
4908
|
-
_active: {
|
|
4909
|
-
opacity: 0.95
|
|
4910
|
-
},
|
|
4911
|
-
_focusVisible: {
|
|
4912
|
-
outline: 'none',
|
|
4913
|
-
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
4914
|
-
},
|
|
4915
|
-
transition: 'background-color 0.2s ease, opacity 0.2s ease'
|
|
4916
|
-
},
|
|
4917
|
-
outline: {
|
|
4918
|
-
backgroundColor: 'transparent',
|
|
4919
|
-
color: color,
|
|
4920
|
-
borderWidth: 1,
|
|
4921
|
-
borderStyle: 'solid',
|
|
4922
|
-
borderColor: color,
|
|
4923
|
-
_hover: {
|
|
4924
|
-
backgroundColor: color,
|
|
4925
|
-
color: isLight ? 'color.black' : 'color.white',
|
|
4926
|
-
opacity: 0.9
|
|
4927
|
-
},
|
|
4928
|
-
_active: {
|
|
4875
|
+
var getButtonVariants = function getButtonVariants(color, isLight, isThemeLight) {
|
|
4876
|
+
var textColor = isLight ? '#000000' : '#FFFFFF';
|
|
4877
|
+
return {
|
|
4878
|
+
filled: {
|
|
4929
4879
|
backgroundColor: color,
|
|
4930
|
-
color:
|
|
4931
|
-
|
|
4880
|
+
color: textColor,
|
|
4881
|
+
borderWidth: 1,
|
|
4882
|
+
borderStyle: 'solid',
|
|
4883
|
+
borderColor: 'transparent',
|
|
4884
|
+
_hover: {
|
|
4885
|
+
opacity: 0.9,
|
|
4886
|
+
color: textColor
|
|
4887
|
+
},
|
|
4888
|
+
_active: {
|
|
4889
|
+
opacity: 0.95,
|
|
4890
|
+
color: textColor
|
|
4891
|
+
},
|
|
4892
|
+
_focusVisible: {
|
|
4893
|
+
outline: 'none',
|
|
4894
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color,
|
|
4895
|
+
color: textColor
|
|
4896
|
+
},
|
|
4897
|
+
transition: 'background-color 0.2s ease, opacity 0.2s ease'
|
|
4932
4898
|
},
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4899
|
+
outline: {
|
|
4900
|
+
backgroundColor: 'transparent',
|
|
4901
|
+
color: color,
|
|
4902
|
+
borderWidth: 1,
|
|
4903
|
+
borderStyle: 'solid',
|
|
4904
|
+
borderColor: color,
|
|
4905
|
+
_hover: {
|
|
4906
|
+
backgroundColor: color,
|
|
4907
|
+
color: textColor,
|
|
4908
|
+
opacity: 0.9
|
|
4909
|
+
},
|
|
4910
|
+
_active: {
|
|
4911
|
+
backgroundColor: color,
|
|
4912
|
+
color: textColor,
|
|
4913
|
+
opacity: 0.95
|
|
4914
|
+
},
|
|
4915
|
+
_focusVisible: {
|
|
4916
|
+
outline: 'none',
|
|
4917
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
4918
|
+
},
|
|
4919
|
+
transition: 'background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease'
|
|
4936
4920
|
},
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4921
|
+
ghost: {
|
|
4922
|
+
backgroundColor: 'transparent',
|
|
4923
|
+
color: color,
|
|
4924
|
+
borderWidth: 1,
|
|
4925
|
+
borderStyle: 'solid',
|
|
4926
|
+
borderColor: 'transparent',
|
|
4927
|
+
_hover: {
|
|
4928
|
+
borderWidth: 1,
|
|
4929
|
+
borderStyle: 'solid',
|
|
4930
|
+
borderColor: color,
|
|
4931
|
+
color: color,
|
|
4932
|
+
opacity: 0.9
|
|
4933
|
+
},
|
|
4934
|
+
_active: {
|
|
4935
|
+
color: color,
|
|
4936
|
+
opacity: 0.95
|
|
4937
|
+
},
|
|
4938
|
+
_focusVisible: {
|
|
4939
|
+
outline: 'none',
|
|
4940
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
4941
|
+
},
|
|
4942
|
+
transition: 'background-color 0.2s ease, opacity 0.2s ease'
|
|
4948
4943
|
},
|
|
4949
|
-
|
|
4950
|
-
backgroundColor:
|
|
4951
|
-
|
|
4944
|
+
link: {
|
|
4945
|
+
backgroundColor: 'transparent',
|
|
4946
|
+
color: color,
|
|
4947
|
+
borderWidth: 0,
|
|
4948
|
+
borderStyle: 'none',
|
|
4949
|
+
borderColor: 'transparent',
|
|
4950
|
+
textDecoration: 'underline',
|
|
4951
|
+
textUnderlineOffset: '2px',
|
|
4952
|
+
textDecorationThickness: '1px',
|
|
4953
|
+
textDecorationColor: color,
|
|
4954
|
+
_hover: {
|
|
4955
|
+
color: color,
|
|
4956
|
+
opacity: 0.8
|
|
4957
|
+
},
|
|
4958
|
+
_active: {
|
|
4959
|
+
color: color,
|
|
4960
|
+
opacity: 0.9
|
|
4961
|
+
},
|
|
4962
|
+
_focusVisible: {
|
|
4963
|
+
outline: 'none',
|
|
4964
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
4965
|
+
},
|
|
4966
|
+
transition: 'opacity 0.2s ease'
|
|
4952
4967
|
},
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4968
|
+
borderMoving: {
|
|
4969
|
+
position: 'relative',
|
|
4970
|
+
backgroundColor: 'black',
|
|
4971
|
+
color: textColor,
|
|
4972
|
+
overflow: 'hidden',
|
|
4973
|
+
borderWidth: 0,
|
|
4974
|
+
borderStyle: 'none',
|
|
4975
|
+
borderColor: 'transparent',
|
|
4976
|
+
_hover: {
|
|
4977
|
+
color: textColor
|
|
4978
|
+
},
|
|
4979
|
+
_active: {
|
|
4980
|
+
color: textColor
|
|
4981
|
+
},
|
|
4982
|
+
_focusVisible: {
|
|
4983
|
+
outline: 'none',
|
|
4984
|
+
boxShadow: '0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(0, 0, 0, 0.8)'
|
|
4985
|
+
},
|
|
4986
|
+
transition: 'opacity 0.2s ease'
|
|
4956
4987
|
},
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4988
|
+
animatedStroke: {
|
|
4989
|
+
display: 'inline-block',
|
|
4990
|
+
margin: '0 auto',
|
|
4991
|
+
textAlign: 'center',
|
|
4992
|
+
textDecoration: 'none',
|
|
4993
|
+
position: 'relative',
|
|
4994
|
+
cursor: 'pointer',
|
|
4995
|
+
backgroundColor: 'transparent',
|
|
4996
|
+
color: color,
|
|
4997
|
+
borderWidth: 0,
|
|
4998
|
+
borderStyle: 'none',
|
|
4999
|
+
borderColor: 'transparent',
|
|
5000
|
+
_hover: {
|
|
5001
|
+
color: color
|
|
5002
|
+
},
|
|
5003
|
+
_active: {
|
|
5004
|
+
color: color
|
|
5005
|
+
},
|
|
5006
|
+
_focusVisible: {
|
|
5007
|
+
outline: 'none',
|
|
5008
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
5009
|
+
},
|
|
5010
|
+
transition: 'opacity 0.2s ease'
|
|
5011
|
+
}
|
|
5012
|
+
};
|
|
5013
|
+
};
|
|
5014
|
+
|
|
5015
|
+
var _excluded$d = ["shape", "size", "isDisabled", "onClick", "views", "mainTone", "tone", "borderMovingGradientColors", "borderMovingDuration", "content", "shadow"],
|
|
5016
|
+
_excluded2$3 = ["to", "onClick", "views", "children", "size", "accentColor", "textColor", "getColor", "shadow"],
|
|
5017
|
+
_excluded3$3 = ["variant", "to", "isDisabled", "isLoading", "isAuto", "isFilled", "isExternal", "shape", "shadow", "onClick", "views", "baseStyles", "sizeStyles", "iconPad", "resolvedTextColor", "content", "size"],
|
|
5018
|
+
_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"];
|
|
5019
|
+
// --- Helper: Button Content ---
|
|
5020
|
+
// Renders the inner content: Loader, Icon, and Children.
|
|
5021
|
+
var ButtonContent = _ref => {
|
|
5022
|
+
var {
|
|
5023
|
+
children,
|
|
5024
|
+
icon,
|
|
5025
|
+
isLoading,
|
|
5026
|
+
iconPosition = 'left',
|
|
5027
|
+
loaderPosition = 'left',
|
|
5028
|
+
size = 'md',
|
|
5029
|
+
resolvedTextColor,
|
|
5030
|
+
isIconRounded,
|
|
5031
|
+
views
|
|
5032
|
+
} = _ref;
|
|
5033
|
+
var Wrapper = ['left', 'right'].includes(iconPosition) ? appStudio.Horizontal : appStudio.Vertical;
|
|
5034
|
+
var sizeStyles = ButtonSizes[size];
|
|
5035
|
+
var iconPad = isIconRounded ? IconSizes$1[size] : {};
|
|
5036
|
+
return /*#__PURE__*/React__default.createElement(Wrapper, Object.assign({
|
|
5037
|
+
gap: 8,
|
|
5038
|
+
alignItems: "center",
|
|
5039
|
+
justifyContent: "center"
|
|
5040
|
+
}, sizeStyles, iconPad, views == null ? void 0 : views.content), isLoading && loaderPosition === 'left' && (/*#__PURE__*/React__default.createElement(Loader, Object.assign({
|
|
5041
|
+
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
5042
|
+
color: 'currentColor'
|
|
5043
|
+
}, views == null ? void 0 : views.loader))), icon && ['left', 'top'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
5044
|
+
color: 'currentColor'
|
|
5045
|
+
}, views == null ? void 0 : views.icon), icon)), children, icon && ['right', 'bottom'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
5046
|
+
color: 'currentColor'
|
|
5047
|
+
}, views == null ? void 0 : views.icon), icon)), isLoading && loaderPosition === 'right' && (/*#__PURE__*/React__default.createElement(Loader, Object.assign({
|
|
5048
|
+
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
5049
|
+
color: 'currentColor'
|
|
5050
|
+
}, views == null ? void 0 : views.loader))));
|
|
5051
|
+
};
|
|
5052
|
+
// --- Variant: Border Moving ---
|
|
5053
|
+
var BorderMovingButton = _ref2 => {
|
|
5054
|
+
var {
|
|
5055
|
+
shape = 'rounded',
|
|
5056
|
+
size = 'md',
|
|
5057
|
+
isDisabled,
|
|
5058
|
+
onClick,
|
|
5059
|
+
views,
|
|
5060
|
+
mainTone,
|
|
5061
|
+
tone,
|
|
5062
|
+
borderMovingGradientColors,
|
|
5063
|
+
borderMovingDuration,
|
|
5064
|
+
content,
|
|
5065
|
+
shadow
|
|
5066
|
+
} = _ref2,
|
|
5067
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$d);
|
|
5068
|
+
var sizeStyles = ButtonSizes[size];
|
|
5069
|
+
var borderWidth = 3;
|
|
5070
|
+
var numericWidth = typeof sizeStyles.width === 'number' ? sizeStyles.width : 300;
|
|
5071
|
+
var numericHeight = typeof sizeStyles.height === 'number' ? sizeStyles.height : 64;
|
|
5072
|
+
var numericBorderRadius = (() => {
|
|
5073
|
+
var shapeValue = ButtonShapes[shape];
|
|
5074
|
+
if (typeof shapeValue === 'number') {
|
|
5075
|
+
return shapeValue;
|
|
5076
|
+
}
|
|
5077
|
+
if (typeof shapeValue === 'string') {
|
|
5078
|
+
return parseInt(shapeValue, 10) || 50;
|
|
5079
|
+
}
|
|
5080
|
+
return 50;
|
|
5081
|
+
})();
|
|
5082
|
+
var containerBg = mainTone;
|
|
5083
|
+
// Use high contrast text color for this variant
|
|
5084
|
+
var borderMovingTextColor = tone === 'light' ? '#000000' : '#FFFFFF';
|
|
5085
|
+
// Create gradient string for border animation
|
|
5086
|
+
var gradientColors = borderMovingGradientColors.join(', ');
|
|
5087
|
+
// Animation sequence for the moving border effect
|
|
5088
|
+
var borderAnimation = {
|
|
5089
|
+
from: {
|
|
5090
|
+
backgroundPosition: '0% 50%'
|
|
4970
5091
|
},
|
|
4971
|
-
|
|
4972
|
-
|
|
5092
|
+
to: {
|
|
5093
|
+
backgroundPosition: '200% 50%'
|
|
4973
5094
|
},
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
5095
|
+
duration: borderMovingDuration + "s",
|
|
5096
|
+
timingFunction: 'linear',
|
|
5097
|
+
iterationCount: 'infinite'
|
|
5098
|
+
};
|
|
5099
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
5100
|
+
position: "relative",
|
|
5101
|
+
display: "inline-flex",
|
|
5102
|
+
alignItems: "center",
|
|
5103
|
+
justifyContent: "center",
|
|
5104
|
+
borderRadius: ButtonShapes[shape],
|
|
5105
|
+
cursor: isDisabled ? 'default' : 'pointer',
|
|
5106
|
+
onClick: onClick,
|
|
5107
|
+
boxShadow: shadow,
|
|
5108
|
+
padding: borderWidth,
|
|
5109
|
+
background: "linear-gradient(90deg, " + borderMovingGradientColors[0] + ", " + borderMovingGradientColors[1] + ", " + borderMovingGradientColors[2] + ", " + borderMovingGradientColors[0] + ")",
|
|
5110
|
+
backgroundSize: "200% 100%",
|
|
5111
|
+
animate: borderAnimation
|
|
5112
|
+
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5113
|
+
display: "flex",
|
|
5114
|
+
alignItems: "center",
|
|
5115
|
+
justifyContent: "center",
|
|
5116
|
+
backgroundColor: containerBg,
|
|
5117
|
+
borderRadius: Math.max(0, numericBorderRadius - borderWidth),
|
|
5118
|
+
width: "100%",
|
|
5119
|
+
height: "100%",
|
|
5120
|
+
minWidth: numericWidth - borderWidth * 2,
|
|
5121
|
+
minHeight: numericHeight - borderWidth * 2,
|
|
5122
|
+
color: borderMovingTextColor,
|
|
5123
|
+
fontSize: 14,
|
|
5124
|
+
cursor: "pointer"
|
|
5125
|
+
}, content));
|
|
5126
|
+
};
|
|
5127
|
+
// --- Variant: Animated Stroke ---
|
|
5128
|
+
var AnimatedStrokeButton = _ref3 => {
|
|
5129
|
+
var {
|
|
5130
|
+
to,
|
|
5131
|
+
onClick,
|
|
5132
|
+
views,
|
|
5133
|
+
children,
|
|
5134
|
+
size = 'md',
|
|
5135
|
+
accentColor,
|
|
5136
|
+
textColor,
|
|
5137
|
+
getColor,
|
|
5138
|
+
shadow
|
|
5139
|
+
} = _ref3,
|
|
5140
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$3);
|
|
5141
|
+
var resolvedAccentColor = getColor(accentColor);
|
|
5142
|
+
var resolvedTextColor = getColor(textColor);
|
|
5143
|
+
var sizeStyles = ButtonSizes[size];
|
|
5144
|
+
var numericWidth = typeof sizeStyles.width === 'number' ? sizeStyles.width : 300;
|
|
5145
|
+
var numericHeight = typeof sizeStyles.height === 'number' ? sizeStyles.height : 60;
|
|
5146
|
+
var strokeAnimation = {
|
|
5147
|
+
from: {
|
|
5148
|
+
strokeWidth: '8px',
|
|
5149
|
+
strokeDasharray: '0 500',
|
|
5150
|
+
strokeDashoffset: -454
|
|
4977
5151
|
},
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
backgroundColor: 'black',
|
|
4983
|
-
overflow: 'hidden',
|
|
4984
|
-
color: 'white',
|
|
4985
|
-
borderWidth: 0,
|
|
4986
|
-
borderStyle: 'none',
|
|
4987
|
-
borderColor: 'transparent',
|
|
4988
|
-
_focusVisible: {
|
|
4989
|
-
outline: 'none',
|
|
4990
|
-
boxShadow: '0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(0, 0, 0, 0.8)'
|
|
5152
|
+
to: {
|
|
5153
|
+
strokeWidth: '3px',
|
|
5154
|
+
strokeDasharray: '760',
|
|
5155
|
+
strokeDashoffset: 0
|
|
4991
5156
|
},
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5157
|
+
duration: '0.9s',
|
|
5158
|
+
timingFunction: 'ease-in',
|
|
5159
|
+
fillMode: 'forwards'
|
|
5160
|
+
};
|
|
5161
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
5162
|
+
as: to ? 'a' : 'div',
|
|
5163
|
+
href: to ? to : undefined,
|
|
5164
|
+
onClick: onClick,
|
|
5165
|
+
display: "inline-block",
|
|
5166
|
+
maxWidth: "20rem",
|
|
5167
|
+
margin: "0 auto",
|
|
5168
|
+
textAlign: "center",
|
|
5169
|
+
textDecoration: "none",
|
|
5170
|
+
position: "relative",
|
|
5171
|
+
cursor: "pointer",
|
|
5172
|
+
boxShadow: shadow
|
|
5173
|
+
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5174
|
+
as: "svg",
|
|
5175
|
+
display: "block",
|
|
5176
|
+
height: numericHeight,
|
|
5177
|
+
width: numericWidth,
|
|
5178
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
5179
|
+
}, /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5180
|
+
as: "rect",
|
|
5181
|
+
height: numericHeight,
|
|
5182
|
+
width: numericWidth,
|
|
5183
|
+
fill: "transparent",
|
|
5184
|
+
stroke: resolvedAccentColor,
|
|
5185
|
+
strokeWidth: "8px",
|
|
5186
|
+
strokeDasharray: "0 500",
|
|
5187
|
+
strokeDashoffset: -454,
|
|
5188
|
+
on: {
|
|
5189
|
+
hover: {
|
|
5190
|
+
animate: strokeAnimation
|
|
5191
|
+
}
|
|
5192
|
+
}
|
|
5193
|
+
})), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
5194
|
+
position: "absolute",
|
|
5195
|
+
top: 0,
|
|
5196
|
+
right: 0,
|
|
5197
|
+
bottom: 0,
|
|
5198
|
+
left: 0,
|
|
5199
|
+
display: "flex",
|
|
5200
|
+
alignItems: "center",
|
|
5201
|
+
justifyContent: "center",
|
|
5202
|
+
textAlign: "center",
|
|
5203
|
+
pointerEvents: "none",
|
|
5204
|
+
userSelect: "none",
|
|
5205
|
+
color: resolvedTextColor
|
|
5206
|
+
}, sizeStyles), children));
|
|
5207
|
+
};
|
|
5208
|
+
// --- Variant: Standard Button ---
|
|
5209
|
+
var StandardButton = _ref4 => {
|
|
5210
|
+
var {
|
|
5211
|
+
variant,
|
|
5212
|
+
to,
|
|
5213
|
+
isDisabled,
|
|
5214
|
+
isLoading,
|
|
5215
|
+
isAuto,
|
|
5216
|
+
isFilled,
|
|
5217
|
+
isExternal,
|
|
5218
|
+
shape = 'rounded',
|
|
5219
|
+
shadow,
|
|
5220
|
+
onClick,
|
|
5221
|
+
views,
|
|
5222
|
+
baseStyles,
|
|
5223
|
+
sizeStyles,
|
|
5224
|
+
iconPad,
|
|
5225
|
+
content // Destructure size to avoid passing it to Element
|
|
5226
|
+
} = _ref4,
|
|
5227
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$3);
|
|
5228
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
5229
|
+
as: variant === 'link' && to ? 'div' : 'button',
|
|
5230
|
+
type: variant === 'link' && to ? undefined : 'button',
|
|
5231
|
+
disabled: Boolean(isDisabled || isLoading)
|
|
5232
|
+
}, sizeStyles, iconPad, {
|
|
5233
|
+
display: "inline-flex",
|
|
5234
|
+
alignItems: "center",
|
|
5235
|
+
justifyContent: "center",
|
|
5236
|
+
width: isAuto ? 'fit-content' : isFilled ? '100%' : undefined,
|
|
5237
|
+
/* visuals */
|
|
5238
|
+
borderRadius: ButtonShapes[shape],
|
|
5239
|
+
boxShadow: shadow,
|
|
5240
|
+
transition: "all 0.2s ease",
|
|
5241
|
+
cursor: isDisabled ? 'default' : 'pointer',
|
|
5242
|
+
onClick: onClick
|
|
5243
|
+
}, baseStyles, views == null ? void 0 : views.container, props), to ? (/*#__PURE__*/React__default.createElement(Link, Object.assign({
|
|
5244
|
+
to: to,
|
|
5245
|
+
isExternal: isExternal,
|
|
5246
|
+
color: "currentColor",
|
|
5247
|
+
textDecoration: "inherit",
|
|
5248
|
+
_hover: {
|
|
5249
|
+
color: 'currentColor'
|
|
5250
|
+
}
|
|
5251
|
+
}, views == null ? void 0 : views.link), content)) : content);
|
|
5252
|
+
};
|
|
5253
|
+
// --- Main Component ---
|
|
5254
|
+
var ButtonView = _ref5 => {
|
|
5255
|
+
var _ref6, _base$color;
|
|
5034
5256
|
var {
|
|
5035
5257
|
/* behaviour */
|
|
5036
5258
|
variant = 'filled',
|
|
@@ -5040,8 +5262,10 @@
|
|
|
5040
5262
|
loaderPosition = 'left',
|
|
5041
5263
|
backgroundColor,
|
|
5042
5264
|
// primary candidate for main color
|
|
5043
|
-
color
|
|
5044
|
-
|
|
5265
|
+
color,
|
|
5266
|
+
// 2nd candidate for main color (NOT text‑color)
|
|
5267
|
+
isAuto = true,
|
|
5268
|
+
isFilled,
|
|
5045
5269
|
isDisabled,
|
|
5046
5270
|
isLoading,
|
|
5047
5271
|
isIconRounded,
|
|
@@ -5061,8 +5285,8 @@
|
|
|
5061
5285
|
borderMovingGradientColors = ['#705CFF', '#FF5C97', '#FFC75C'],
|
|
5062
5286
|
animatedStrokeAccentColor = '#705CFF',
|
|
5063
5287
|
animatedStrokeTextColor = '#333333'
|
|
5064
|
-
} =
|
|
5065
|
-
props = _objectWithoutPropertiesLoose(
|
|
5288
|
+
} = _ref5,
|
|
5289
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$3);
|
|
5066
5290
|
/* theme helpers */
|
|
5067
5291
|
var {
|
|
5068
5292
|
getColor,
|
|
@@ -5070,237 +5294,78 @@
|
|
|
5070
5294
|
} = appStudio.useTheme();
|
|
5071
5295
|
var mode = elementMode != null ? elementMode : themeMode;
|
|
5072
5296
|
/* MAIN COLOR – determines the entire palette */
|
|
5073
|
-
var mainColorKey = (
|
|
5297
|
+
var mainColorKey = (_ref6 = backgroundColor != null ? backgroundColor : color) != null ? _ref6 : 'theme.primary';
|
|
5074
5298
|
var mainTone = getColor(isDisabled ? 'theme.disabled' : mainColorKey, {
|
|
5075
5299
|
themeMode: mode
|
|
5076
5300
|
});
|
|
5077
5301
|
var tone = contrast(mainTone);
|
|
5302
|
+
/* text color with mixBlendMode for maximum visibility */
|
|
5303
|
+
var textColor = tone === 'light' ? '#000000' : '#FFFFFF';
|
|
5078
5304
|
/* variant palette */
|
|
5079
|
-
var palette = React.useMemo(() => getButtonVariants(mainTone, tone
|
|
5305
|
+
var palette = React.useMemo(() => getButtonVariants(mainTone, tone === 'light'), [mainTone, tone, mode]);
|
|
5080
5306
|
var base = palette[variant];
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
var
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
5095
|
-
color: 'inherit',
|
|
5096
|
-
_hover: {
|
|
5097
|
-
color: 'inherit'
|
|
5098
|
-
}
|
|
5099
|
-
}, views == null ? void 0 : views.loader))), icon && ['left', 'top'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
5100
|
-
color: 'inherit',
|
|
5101
|
-
_hover: {
|
|
5102
|
-
color: 'inherit'
|
|
5103
|
-
}
|
|
5104
|
-
}, views == null ? void 0 : views.icon), icon)), children, icon && ['right', 'bottom'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
5105
|
-
color: 'inherit',
|
|
5106
|
-
_hover: {
|
|
5107
|
-
color: 'inherit'
|
|
5108
|
-
}
|
|
5109
|
-
}, views == null ? void 0 : views.icon), icon)), isLoading && loaderPosition === 'right' && (/*#__PURE__*/React__default.createElement(Loader, Object.assign({
|
|
5110
|
-
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
5111
|
-
color: 'inherit',
|
|
5112
|
-
_hover: {
|
|
5113
|
-
color: 'inherit'
|
|
5114
|
-
}
|
|
5115
|
-
}, views == null ? void 0 : views.loader))));
|
|
5116
|
-
// Handle special effect variants
|
|
5307
|
+
var resolvedTextColor = (_base$color = base == null ? void 0 : base.color) != null ? _base$color : textColor;
|
|
5308
|
+
// Render content logic safely
|
|
5309
|
+
var content = /*#__PURE__*/React__default.createElement(ButtonContent, {
|
|
5310
|
+
icon: icon,
|
|
5311
|
+
isLoading: isLoading,
|
|
5312
|
+
iconPosition: iconPosition,
|
|
5313
|
+
loaderPosition: loaderPosition,
|
|
5314
|
+
size: size,
|
|
5315
|
+
resolvedTextColor: resolvedTextColor,
|
|
5316
|
+
isIconRounded: isIconRounded,
|
|
5317
|
+
views: views
|
|
5318
|
+
}, children);
|
|
5319
|
+
// Dispatch to the correct variant component
|
|
5117
5320
|
if (variant === 'borderMoving') {
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
})
|
|
5131
|
-
var path = generateOffsetPath(numericWidth, numericHeight, numericBorderRadius);
|
|
5132
|
-
// Determine background color from props or use mainTone
|
|
5133
|
-
var containerBg = mainTone;
|
|
5134
|
-
// Calculate text color with proper contrast
|
|
5135
|
-
var borderMovingTextColor = tone === 'light' ? '#000000' : '#FFFFFF';
|
|
5136
|
-
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
5137
|
-
width: numericWidth,
|
|
5138
|
-
height: numericHeight,
|
|
5139
|
-
position: "relative",
|
|
5140
|
-
backgroundColor: containerBg,
|
|
5141
|
-
overflow: "hidden",
|
|
5142
|
-
borderRadius: ButtonShapes[shape],
|
|
5143
|
-
cursor: isDisabled ? 'default' : 'pointer',
|
|
5144
|
-
onClick: onClick
|
|
5145
|
-
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement("svg", {
|
|
5146
|
-
width: numericWidth,
|
|
5147
|
-
height: numericHeight,
|
|
5148
|
-
style: {
|
|
5149
|
-
position: 'absolute',
|
|
5150
|
-
top: 0,
|
|
5151
|
-
left: 0,
|
|
5152
|
-
zIndex: 1
|
|
5153
|
-
}
|
|
5154
|
-
}, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("linearGradient", {
|
|
5155
|
-
id: "circleGradient",
|
|
5156
|
-
x1: "0%",
|
|
5157
|
-
y1: "100%",
|
|
5158
|
-
x2: "100%",
|
|
5159
|
-
y2: "100%"
|
|
5160
|
-
}, /*#__PURE__*/React__default.createElement("stop", {
|
|
5161
|
-
offset: "0%",
|
|
5162
|
-
stopColor: "transparent"
|
|
5163
|
-
}), /*#__PURE__*/React__default.createElement("stop", {
|
|
5164
|
-
offset: "30%",
|
|
5165
|
-
stopColor: borderMovingGradientColors[0]
|
|
5166
|
-
}), /*#__PURE__*/React__default.createElement("stop", {
|
|
5167
|
-
offset: "60%",
|
|
5168
|
-
stopColor: borderMovingGradientColors[1]
|
|
5169
|
-
}), /*#__PURE__*/React__default.createElement("stop", {
|
|
5170
|
-
offset: "100%",
|
|
5171
|
-
stopColor: borderMovingGradientColors[2]
|
|
5172
|
-
})), /*#__PURE__*/React__default.createElement("path", {
|
|
5173
|
-
id: "uniqueId",
|
|
5174
|
-
d: path,
|
|
5175
|
-
fill: "none",
|
|
5176
|
-
stroke: "transparent"
|
|
5177
|
-
})), /*#__PURE__*/React__default.createElement("circle", {
|
|
5178
|
-
r: "30",
|
|
5179
|
-
fill: "url(#circleGradient)"
|
|
5180
|
-
}, /*#__PURE__*/React__default.createElement("animateMotion", {
|
|
5181
|
-
dur: borderMovingDuration + 's',
|
|
5182
|
-
repeatCount: "indefinite",
|
|
5183
|
-
path: path
|
|
5184
|
-
}))), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5185
|
-
position: "absolute",
|
|
5186
|
-
backgroundColor: containerBg,
|
|
5187
|
-
borderRadius: Math.max(0, numericBorderRadius - 1),
|
|
5188
|
-
top: borderWidth,
|
|
5189
|
-
bottom: borderWidth,
|
|
5190
|
-
left: borderWidth,
|
|
5191
|
-
right: borderWidth,
|
|
5192
|
-
zIndex: 2
|
|
5193
|
-
}), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5194
|
-
position: "relative",
|
|
5195
|
-
width: "100%",
|
|
5196
|
-
height: "100%",
|
|
5197
|
-
display: "flex",
|
|
5198
|
-
alignItems: "center",
|
|
5199
|
-
justifyContent: "center",
|
|
5200
|
-
color: borderMovingTextColor,
|
|
5201
|
-
fontSize: 14,
|
|
5202
|
-
zIndex: 3,
|
|
5203
|
-
style: {
|
|
5204
|
-
cursor: 'pointer'
|
|
5205
|
-
}
|
|
5206
|
-
}, content));
|
|
5321
|
+
return /*#__PURE__*/React__default.createElement(BorderMovingButton, Object.assign({
|
|
5322
|
+
variant: variant,
|
|
5323
|
+
shape: shape,
|
|
5324
|
+
size: size,
|
|
5325
|
+
isDisabled: isDisabled,
|
|
5326
|
+
onClick: onClick,
|
|
5327
|
+
views: views,
|
|
5328
|
+
mainTone: mainTone,
|
|
5329
|
+
tone: tone,
|
|
5330
|
+
borderMovingGradientColors: borderMovingGradientColors,
|
|
5331
|
+
borderMovingDuration: borderMovingDuration,
|
|
5332
|
+
content: content
|
|
5333
|
+
}, props));
|
|
5207
5334
|
}
|
|
5208
5335
|
if (variant === 'animatedStroke') {
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
var _numericHeight = typeof sizeStyles.height === 'number' ? sizeStyles.height : 60;
|
|
5213
|
-
var strokeAnimation = {
|
|
5214
|
-
from: {
|
|
5215
|
-
strokeWidth: '8px',
|
|
5216
|
-
strokeDasharray: '0 500',
|
|
5217
|
-
strokeDashoffset: -454
|
|
5218
|
-
},
|
|
5219
|
-
to: {
|
|
5220
|
-
strokeWidth: '3px',
|
|
5221
|
-
strokeDasharray: '760',
|
|
5222
|
-
strokeDashoffset: 0
|
|
5223
|
-
},
|
|
5224
|
-
duration: '0.9s',
|
|
5225
|
-
timingFunction: 'ease-in',
|
|
5226
|
-
fillMode: 'forwards'
|
|
5227
|
-
};
|
|
5228
|
-
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
5229
|
-
as: to ? 'a' : 'div',
|
|
5230
|
-
href: to ? to : undefined,
|
|
5336
|
+
return /*#__PURE__*/React__default.createElement(AnimatedStrokeButton, Object.assign({
|
|
5337
|
+
variant: variant,
|
|
5338
|
+
to: to,
|
|
5231
5339
|
onClick: onClick,
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
cursor: "pointer"
|
|
5239
|
-
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5240
|
-
as: "svg",
|
|
5241
|
-
display: "block",
|
|
5242
|
-
height: _numericHeight,
|
|
5243
|
-
width: _numericWidth,
|
|
5244
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
5245
|
-
}, /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5246
|
-
as: "rect",
|
|
5247
|
-
height: _numericHeight,
|
|
5248
|
-
width: _numericWidth,
|
|
5249
|
-
fill: "transparent",
|
|
5250
|
-
stroke: resolvedAccentColor,
|
|
5251
|
-
strokeWidth: "8px",
|
|
5252
|
-
strokeDasharray: "120 500",
|
|
5253
|
-
strokeDashoffset: -454,
|
|
5254
|
-
on: {
|
|
5255
|
-
hover: {
|
|
5256
|
-
animate: strokeAnimation
|
|
5257
|
-
}
|
|
5258
|
-
}
|
|
5259
|
-
})), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5260
|
-
position: "absolute",
|
|
5261
|
-
top: 0,
|
|
5262
|
-
right: 0,
|
|
5263
|
-
bottom: 0,
|
|
5264
|
-
left: 0,
|
|
5265
|
-
display: "flex",
|
|
5266
|
-
alignItems: "center",
|
|
5267
|
-
justifyContent: "center",
|
|
5268
|
-
paddingX: 16,
|
|
5269
|
-
paddingY: 8,
|
|
5270
|
-
fontSize: "22px",
|
|
5271
|
-
lineHeight: "1.3",
|
|
5272
|
-
letterSpacing: "0.3rem",
|
|
5273
|
-
textAlign: "center",
|
|
5274
|
-
textTransform: "uppercase",
|
|
5275
|
-
whiteSpace: "normal",
|
|
5276
|
-
wordBreak: "break-word",
|
|
5277
|
-
pointerEvents: "none",
|
|
5278
|
-
userSelect: "none",
|
|
5279
|
-
color: resolvedTextColor
|
|
5280
|
-
}, children));
|
|
5340
|
+
views: views,
|
|
5341
|
+
size: size,
|
|
5342
|
+
accentColor: animatedStrokeAccentColor,
|
|
5343
|
+
textColor: animatedStrokeTextColor,
|
|
5344
|
+
getColor: getColor
|
|
5345
|
+
}, props), children);
|
|
5281
5346
|
}
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
display: "flex",
|
|
5288
|
-
alignItems: "center",
|
|
5289
|
-
justifyContent: "center",
|
|
5290
|
-
// width={isAuto ? 'fit-content' : isFilled ? '100%' : undefined}
|
|
5291
|
-
/* visuals */
|
|
5292
|
-
borderRadius: ButtonShapes[shape],
|
|
5293
|
-
boxShadow: shadow,
|
|
5294
|
-
transition: "all 0.2s ease",
|
|
5295
|
-
cursor: isDisabled ? 'default' : 'pointer',
|
|
5296
|
-
onClick: onClick
|
|
5297
|
-
}, base, views == null ? void 0 : views.container, props), to ? (/*#__PURE__*/React__default.createElement(Link, Object.assign({
|
|
5347
|
+
// Standard variants (filled, outline, ghost, link)
|
|
5348
|
+
var sizeStyles = ButtonSizes[size];
|
|
5349
|
+
var iconPad = isIconRounded ? IconSizes$1[size] : {};
|
|
5350
|
+
return /*#__PURE__*/React__default.createElement(StandardButton, Object.assign({
|
|
5351
|
+
variant: variant,
|
|
5298
5352
|
to: to,
|
|
5353
|
+
isDisabled: isDisabled,
|
|
5354
|
+
isLoading: isLoading,
|
|
5355
|
+
isAuto: isAuto,
|
|
5356
|
+
isFilled: isFilled,
|
|
5299
5357
|
isExternal: isExternal,
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5358
|
+
shape: shape,
|
|
5359
|
+
shadow: shadow,
|
|
5360
|
+
onClick: onClick,
|
|
5361
|
+
views: views,
|
|
5362
|
+
baseStyles: base,
|
|
5363
|
+
sizeStyles: sizeStyles,
|
|
5364
|
+
iconPad: iconPad,
|
|
5365
|
+
resolvedTextColor: resolvedTextColor,
|
|
5366
|
+
content: content,
|
|
5367
|
+
size: size
|
|
5368
|
+
}, props));
|
|
5304
5369
|
};
|
|
5305
5370
|
|
|
5306
5371
|
// Importing a custom hook to manage the state specific to the button component.
|
|
@@ -5436,9 +5501,9 @@
|
|
|
5436
5501
|
};
|
|
5437
5502
|
|
|
5438
5503
|
var _excluded$e = ["children", "views", "style", "themeMode"],
|
|
5439
|
-
_excluded2$
|
|
5440
|
-
_excluded3$
|
|
5441
|
-
_excluded4$
|
|
5504
|
+
_excluded2$4 = ["children", "views", "style", "themeMode"],
|
|
5505
|
+
_excluded3$4 = ["children", "views", "style", "themeMode"],
|
|
5506
|
+
_excluded4$4 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style", "themeMode"];
|
|
5442
5507
|
var CardHeader = _ref => {
|
|
5443
5508
|
var _contextStyles$header;
|
|
5444
5509
|
var {
|
|
@@ -5463,7 +5528,7 @@
|
|
|
5463
5528
|
children,
|
|
5464
5529
|
style
|
|
5465
5530
|
} = _ref2,
|
|
5466
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
5531
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
|
|
5467
5532
|
var theme = appStudio.useTheme();
|
|
5468
5533
|
var {
|
|
5469
5534
|
styles: contextStyles
|
|
@@ -5481,7 +5546,7 @@
|
|
|
5481
5546
|
children,
|
|
5482
5547
|
style
|
|
5483
5548
|
} = _ref3,
|
|
5484
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
5549
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
|
|
5485
5550
|
var theme = appStudio.useTheme();
|
|
5486
5551
|
var {
|
|
5487
5552
|
styles: contextStyles
|
|
@@ -5507,7 +5572,7 @@
|
|
|
5507
5572
|
style,
|
|
5508
5573
|
themeMode: elementMode
|
|
5509
5574
|
} = _ref4,
|
|
5510
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
5575
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$4);
|
|
5511
5576
|
var theme = appStudio.useTheme();
|
|
5512
5577
|
var defaultStyles = getDefaultCardStyles();
|
|
5513
5578
|
// Prepare context value, merging default styles with user's `views` overrides
|
|
@@ -5840,9 +5905,9 @@
|
|
|
5840
5905
|
};
|
|
5841
5906
|
|
|
5842
5907
|
var _excluded$f = ["children", "isActive", "views"],
|
|
5843
|
-
_excluded2$
|
|
5844
|
-
_excluded3$
|
|
5845
|
-
_excluded4$
|
|
5908
|
+
_excluded2$5 = ["views", "children"],
|
|
5909
|
+
_excluded3$5 = ["views", "children"],
|
|
5910
|
+
_excluded4$5 = ["children", "views"],
|
|
5846
5911
|
_excluded5$1 = ["children", "views", "style"],
|
|
5847
5912
|
_excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views", "stepIndices", "themeMode"];
|
|
5848
5913
|
var CarouselSlide = _ref => {
|
|
@@ -5867,7 +5932,7 @@
|
|
|
5867
5932
|
children // Allow custom content/icon
|
|
5868
5933
|
// Spread remaining ButtonProps
|
|
5869
5934
|
} = _ref2,
|
|
5870
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
5935
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$5);
|
|
5871
5936
|
var {
|
|
5872
5937
|
goToPrevious,
|
|
5873
5938
|
canGoPrevious,
|
|
@@ -5890,7 +5955,7 @@
|
|
|
5890
5955
|
views,
|
|
5891
5956
|
children
|
|
5892
5957
|
} = _ref3,
|
|
5893
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
5958
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$5);
|
|
5894
5959
|
var {
|
|
5895
5960
|
goToNext,
|
|
5896
5961
|
canGoNext,
|
|
@@ -5913,7 +5978,7 @@
|
|
|
5913
5978
|
children,
|
|
5914
5979
|
views
|
|
5915
5980
|
} = _ref4,
|
|
5916
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
5981
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$5);
|
|
5917
5982
|
var {
|
|
5918
5983
|
registerSlide,
|
|
5919
5984
|
unregisterSlide,
|
|
@@ -7658,9 +7723,9 @@
|
|
|
7658
7723
|
// using viewport-aware algorithms in the ContextMenu component
|
|
7659
7724
|
|
|
7660
7725
|
var _excluded$i = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
|
|
7661
|
-
_excluded2$
|
|
7662
|
-
_excluded3$
|
|
7663
|
-
_excluded4$
|
|
7726
|
+
_excluded2$6 = ["items", "children", "position", "side", "align", "views", "style"],
|
|
7727
|
+
_excluded3$6 = ["item", "children", "onSelect", "isDisabled", "views"],
|
|
7728
|
+
_excluded4$6 = ["views"],
|
|
7664
7729
|
_excluded5$2 = ["views"],
|
|
7665
7730
|
_excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views", "themeMode"];
|
|
7666
7731
|
// Create context for the ContextMenu
|
|
@@ -7767,7 +7832,7 @@
|
|
|
7767
7832
|
views,
|
|
7768
7833
|
style // Capture user-provided style
|
|
7769
7834
|
} = _ref3,
|
|
7770
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
7835
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$6);
|
|
7771
7836
|
var {
|
|
7772
7837
|
isOpen,
|
|
7773
7838
|
position: contextPosition,
|
|
@@ -7882,7 +7947,7 @@
|
|
|
7882
7947
|
isDisabled = false,
|
|
7883
7948
|
views
|
|
7884
7949
|
} = _ref4,
|
|
7885
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
7950
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$6);
|
|
7886
7951
|
var {
|
|
7887
7952
|
activeSubmenuId,
|
|
7888
7953
|
setActiveSubmenuId,
|
|
@@ -8011,7 +8076,7 @@
|
|
|
8011
8076
|
var {
|
|
8012
8077
|
views
|
|
8013
8078
|
} = _ref5,
|
|
8014
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$
|
|
8079
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$6);
|
|
8015
8080
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
8016
8081
|
height: "1px",
|
|
8017
8082
|
backgroundColor: "color.gray.200",
|
|
@@ -8127,7 +8192,7 @@
|
|
|
8127
8192
|
ContextMenu.Separator = ContextMenuSeparator; // Add the Separator component
|
|
8128
8193
|
|
|
8129
8194
|
var _excluded$k = ["src", "color", "views", "themeMode"],
|
|
8130
|
-
_excluded2$
|
|
8195
|
+
_excluded2$7 = ["path"];
|
|
8131
8196
|
var FileSVG = _ref => {
|
|
8132
8197
|
var {
|
|
8133
8198
|
src,
|
|
@@ -8157,7 +8222,7 @@
|
|
|
8157
8222
|
var {
|
|
8158
8223
|
path
|
|
8159
8224
|
} = _ref2,
|
|
8160
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
8225
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$7);
|
|
8161
8226
|
return /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({
|
|
8162
8227
|
src: path
|
|
8163
8228
|
}, props));
|
|
@@ -8633,9 +8698,9 @@
|
|
|
8633
8698
|
};
|
|
8634
8699
|
|
|
8635
8700
|
var _excluded$s = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
8636
|
-
_excluded2$
|
|
8637
|
-
_excluded3$
|
|
8638
|
-
_excluded4$
|
|
8701
|
+
_excluded2$8 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
8702
|
+
_excluded3$7 = ["option", "size", "removeOption"],
|
|
8703
|
+
_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"];
|
|
8639
8704
|
/**
|
|
8640
8705
|
* Item Component
|
|
8641
8706
|
*
|
|
@@ -8758,7 +8823,7 @@
|
|
|
8758
8823
|
isReadOnly = false,
|
|
8759
8824
|
options = []
|
|
8760
8825
|
} = _ref4,
|
|
8761
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$
|
|
8826
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$8);
|
|
8762
8827
|
var handleChange = event => {
|
|
8763
8828
|
if (onChange) onChange(event);
|
|
8764
8829
|
};
|
|
@@ -8843,7 +8908,7 @@
|
|
|
8843
8908
|
size = 'md',
|
|
8844
8909
|
removeOption = () => {}
|
|
8845
8910
|
} = _ref6,
|
|
8846
|
-
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$
|
|
8911
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$7);
|
|
8847
8912
|
var handleClick = () => removeOption(option);
|
|
8848
8913
|
return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
|
|
8849
8914
|
gap: 8,
|
|
@@ -8904,7 +8969,7 @@
|
|
|
8904
8969
|
setHighlightedIndex,
|
|
8905
8970
|
highlightedIndex
|
|
8906
8971
|
} = _ref7,
|
|
8907
|
-
props = _objectWithoutPropertiesLoose(_ref7, _excluded4$
|
|
8972
|
+
props = _objectWithoutPropertiesLoose(_ref7, _excluded4$7);
|
|
8908
8973
|
var {
|
|
8909
8974
|
ref: triggerRef,
|
|
8910
8975
|
relation,
|
|
@@ -12093,8 +12158,8 @@
|
|
|
12093
12158
|
};
|
|
12094
12159
|
|
|
12095
12160
|
var _excluded$y = ["size"],
|
|
12096
|
-
_excluded2$
|
|
12097
|
-
_excluded3$
|
|
12161
|
+
_excluded2$9 = ["size"],
|
|
12162
|
+
_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"];
|
|
12098
12163
|
var CountryList = _ref => {
|
|
12099
12164
|
var props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
12100
12165
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
@@ -12105,7 +12170,7 @@
|
|
|
12105
12170
|
type: "country"
|
|
12106
12171
|
}, props)));
|
|
12107
12172
|
var CountryItem = _ref2 => {
|
|
12108
|
-
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
12173
|
+
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$9);
|
|
12109
12174
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
12110
12175
|
as: "li"
|
|
12111
12176
|
}, props));
|
|
@@ -12207,7 +12272,7 @@
|
|
|
12207
12272
|
},
|
|
12208
12273
|
themeMode: elementMode
|
|
12209
12274
|
} = _ref5,
|
|
12210
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$
|
|
12275
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$8);
|
|
12211
12276
|
var {
|
|
12212
12277
|
getColor,
|
|
12213
12278
|
themeMode
|
|
@@ -12458,7 +12523,7 @@
|
|
|
12458
12523
|
};
|
|
12459
12524
|
|
|
12460
12525
|
var _excluded$A = ["visibleIcon", "hiddenIcon"],
|
|
12461
|
-
_excluded2$
|
|
12526
|
+
_excluded2$a = ["isVisible", "setIsVisible"];
|
|
12462
12527
|
var PasswordComponent = _ref => {
|
|
12463
12528
|
var {
|
|
12464
12529
|
visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
|
|
@@ -12474,7 +12539,7 @@
|
|
|
12474
12539
|
isVisible,
|
|
12475
12540
|
setIsVisible
|
|
12476
12541
|
} = _usePasswordState,
|
|
12477
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
12542
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$a);
|
|
12478
12543
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
12479
12544
|
type: isVisible ? 'text' : 'password',
|
|
12480
12545
|
isClearable: false,
|
|
@@ -14603,7 +14668,7 @@
|
|
|
14603
14668
|
};
|
|
14604
14669
|
|
|
14605
14670
|
var _excluded$J = ["children", "views", "asChild"],
|
|
14606
|
-
_excluded2$
|
|
14671
|
+
_excluded2$b = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
|
|
14607
14672
|
// Create context for the HoverCard
|
|
14608
14673
|
var HoverCardContext = /*#__PURE__*/React.createContext({
|
|
14609
14674
|
isOpen: false,
|
|
@@ -14689,7 +14754,7 @@
|
|
|
14689
14754
|
minWidth = '50px',
|
|
14690
14755
|
maxWidth = '300px'
|
|
14691
14756
|
} = _ref3,
|
|
14692
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
14757
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$b);
|
|
14693
14758
|
var {
|
|
14694
14759
|
isOpen,
|
|
14695
14760
|
cancelCloseTimer,
|
|
@@ -15811,7 +15876,7 @@
|
|
|
15811
15876
|
var FormikSwitch = SwitchComponent$1;
|
|
15812
15877
|
|
|
15813
15878
|
var _excluded$N = ["name"],
|
|
15814
|
-
_excluded2$
|
|
15879
|
+
_excluded2$c = ["tags"];
|
|
15815
15880
|
/**
|
|
15816
15881
|
* Formik-integrated TagInput component
|
|
15817
15882
|
*/
|
|
@@ -15854,7 +15919,7 @@
|
|
|
15854
15919
|
var {
|
|
15855
15920
|
tags
|
|
15856
15921
|
} = tagInputState,
|
|
15857
|
-
stateWithoutTags = _objectWithoutPropertiesLoose(tagInputState, _excluded2$
|
|
15922
|
+
stateWithoutTags = _objectWithoutPropertiesLoose(tagInputState, _excluded2$c);
|
|
15858
15923
|
// Render the view component with combined props and state
|
|
15859
15924
|
return /*#__PURE__*/React__default.createElement(TagInputView, Object.assign({}, stateWithoutTags, restProps, {
|
|
15860
15925
|
tags: tags,
|
|
@@ -15890,7 +15955,7 @@
|
|
|
15890
15955
|
var FormikTextField = TextFieldComponent$1;
|
|
15891
15956
|
|
|
15892
15957
|
var _excluded$P = ["visibleIcon", "hiddenIcon"],
|
|
15893
|
-
_excluded2$
|
|
15958
|
+
_excluded2$d = ["isVisible", "setIsVisible"];
|
|
15894
15959
|
var PasswordComponent$1 = _ref => {
|
|
15895
15960
|
var {
|
|
15896
15961
|
visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
|
|
@@ -15907,7 +15972,7 @@
|
|
|
15907
15972
|
isVisible,
|
|
15908
15973
|
setIsVisible
|
|
15909
15974
|
} = _usePasswordState,
|
|
15910
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
15975
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$d);
|
|
15911
15976
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
15912
15977
|
type: isVisible ? 'text' : 'password',
|
|
15913
15978
|
isClearable: false,
|
|
@@ -17024,9 +17089,9 @@
|
|
|
17024
17089
|
};
|
|
17025
17090
|
|
|
17026
17091
|
var _excluded$T = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
|
|
17027
|
-
_excluded2$
|
|
17028
|
-
_excluded3$
|
|
17029
|
-
_excluded4$
|
|
17092
|
+
_excluded2$e = ["children", "shadow", "isFullScreen", "shape", "views", "isOpen"],
|
|
17093
|
+
_excluded3$9 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
|
|
17094
|
+
_excluded4$8 = ["children", "views"],
|
|
17030
17095
|
_excluded5$3 = ["children", "views"];
|
|
17031
17096
|
var ModalOverlay = _ref => {
|
|
17032
17097
|
var {
|
|
@@ -17074,7 +17139,7 @@
|
|
|
17074
17139
|
shape = 'rounded',
|
|
17075
17140
|
views
|
|
17076
17141
|
} = _ref2,
|
|
17077
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
17142
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$e);
|
|
17078
17143
|
var defaultShadow = typeof document !== undefined ? {
|
|
17079
17144
|
boxShadow: '0px 4px 16px rgba(0, 0, 0, 0.15)'
|
|
17080
17145
|
} : {
|
|
@@ -17115,7 +17180,7 @@
|
|
|
17115
17180
|
buttonPosition = 'right',
|
|
17116
17181
|
views
|
|
17117
17182
|
} = _ref3,
|
|
17118
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
17183
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$9);
|
|
17119
17184
|
var onClose = props.onClose ? props.onClose : hideModal;
|
|
17120
17185
|
var buttonIcon = /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
17121
17186
|
onClick: onClose
|
|
@@ -17144,7 +17209,7 @@
|
|
|
17144
17209
|
children,
|
|
17145
17210
|
views
|
|
17146
17211
|
} = _ref4,
|
|
17147
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
17212
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$8);
|
|
17148
17213
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
17149
17214
|
paddingVertical: 16,
|
|
17150
17215
|
paddingHorizontal: 24,
|
|
@@ -17287,9 +17352,9 @@
|
|
|
17287
17352
|
};
|
|
17288
17353
|
|
|
17289
17354
|
var _excluded$U = ["isOpen", "onClose", "isClosePrevented", "blur", "children"],
|
|
17290
|
-
_excluded2$
|
|
17291
|
-
_excluded3$
|
|
17292
|
-
_excluded4$
|
|
17355
|
+
_excluded2$f = ["placement", "size", "children"],
|
|
17356
|
+
_excluded3$a = ["children", "onClose", "buttonPosition"],
|
|
17357
|
+
_excluded4$9 = ["children"],
|
|
17293
17358
|
_excluded5$4 = ["children"];
|
|
17294
17359
|
var DrawerOverlay = _ref => {
|
|
17295
17360
|
var {
|
|
@@ -17340,7 +17405,7 @@
|
|
|
17340
17405
|
size = 'md',
|
|
17341
17406
|
children
|
|
17342
17407
|
} = _ref2,
|
|
17343
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
17408
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$f);
|
|
17344
17409
|
var handleClick = e => {
|
|
17345
17410
|
e.stopPropagation();
|
|
17346
17411
|
};
|
|
@@ -17366,7 +17431,7 @@
|
|
|
17366
17431
|
onClose,
|
|
17367
17432
|
buttonPosition = 'right'
|
|
17368
17433
|
} = _ref3,
|
|
17369
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
17434
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$a);
|
|
17370
17435
|
var closeButton = onClose && (/*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
17371
17436
|
onClick: onClose,
|
|
17372
17437
|
cursor: "pointer",
|
|
@@ -17388,7 +17453,7 @@
|
|
|
17388
17453
|
var {
|
|
17389
17454
|
children
|
|
17390
17455
|
} = _ref4,
|
|
17391
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
17456
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$9);
|
|
17392
17457
|
return /*#__PURE__*/React__default.createElement(appStudio.Vertical, Object.assign({
|
|
17393
17458
|
padding: 24,
|
|
17394
17459
|
flex: 1,
|
|
@@ -18950,7 +19015,7 @@
|
|
|
18950
19015
|
};
|
|
18951
19016
|
|
|
18952
19017
|
var _excluded$Z = ["text", "duration", "direction", "stagger", "sequential", "textStyle", "as", "wordProps"],
|
|
18953
|
-
_excluded2$
|
|
19018
|
+
_excluded2$g = ["style"];
|
|
18954
19019
|
// CSS keyframes injection - done once
|
|
18955
19020
|
var KEYFRAMES_ID = 'slide-effect-keyframes';
|
|
18956
19021
|
var injectKeyframes = () => {
|
|
@@ -19045,7 +19110,7 @@
|
|
|
19045
19110
|
{
|
|
19046
19111
|
style: customWordStyle
|
|
19047
19112
|
} = _ref2,
|
|
19048
|
-
restWordProps = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
19113
|
+
restWordProps = _objectWithoutPropertiesLoose(_ref2, _excluded2$g);
|
|
19049
19114
|
// Get animation names based on direction
|
|
19050
19115
|
var isUp = direction === 'up';
|
|
19051
19116
|
var enterAnim = isUp ? 'slideInUp' : 'slideInDown';
|
|
@@ -19838,9 +19903,9 @@
|
|
|
19838
19903
|
};
|
|
19839
19904
|
|
|
19840
19905
|
var _excluded$11 = ["children", "views"],
|
|
19841
|
-
_excluded2$
|
|
19842
|
-
_excluded3$
|
|
19843
|
-
_excluded4$
|
|
19906
|
+
_excluded2$h = ["items", "side", "align", "views"],
|
|
19907
|
+
_excluded3$b = ["item", "views"],
|
|
19908
|
+
_excluded4$a = ["views"],
|
|
19844
19909
|
_excluded5$5 = ["trigger", "items", "side", "align", "views", "themeMode"];
|
|
19845
19910
|
// Create context for the DropdownMenu
|
|
19846
19911
|
var DropdownMenuContext = /*#__PURE__*/React.createContext({
|
|
@@ -19905,7 +19970,7 @@
|
|
|
19905
19970
|
align = 'start',
|
|
19906
19971
|
views
|
|
19907
19972
|
} = _ref3,
|
|
19908
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
19973
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$h);
|
|
19909
19974
|
var {
|
|
19910
19975
|
isOpen,
|
|
19911
19976
|
variant,
|
|
@@ -20036,7 +20101,7 @@
|
|
|
20036
20101
|
item,
|
|
20037
20102
|
views
|
|
20038
20103
|
} = _ref4,
|
|
20039
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
20104
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$b);
|
|
20040
20105
|
var {
|
|
20041
20106
|
activeSubmenuId,
|
|
20042
20107
|
setActiveSubmenuId,
|
|
@@ -20101,7 +20166,7 @@
|
|
|
20101
20166
|
var {
|
|
20102
20167
|
views
|
|
20103
20168
|
} = _ref5,
|
|
20104
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$
|
|
20169
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$a);
|
|
20105
20170
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
20106
20171
|
height: "1px",
|
|
20107
20172
|
backgroundColor: "color.gray.200",
|
|
@@ -24459,9 +24524,9 @@
|
|
|
24459
24524
|
};
|
|
24460
24525
|
|
|
24461
24526
|
var _excluded$1e = ["children", "showToggleButton", "views"],
|
|
24462
|
-
_excluded2$
|
|
24463
|
-
_excluded3$
|
|
24464
|
-
_excluded4$
|
|
24527
|
+
_excluded2$i = ["children", "views"],
|
|
24528
|
+
_excluded3$c = ["children", "views"],
|
|
24529
|
+
_excluded4$b = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
|
|
24465
24530
|
// Create context for the Sidebar
|
|
24466
24531
|
var SidebarContext = /*#__PURE__*/React.createContext({
|
|
24467
24532
|
isExpanded: true,
|
|
@@ -24558,7 +24623,7 @@
|
|
|
24558
24623
|
children,
|
|
24559
24624
|
views
|
|
24560
24625
|
} = _ref3,
|
|
24561
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
24626
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$i);
|
|
24562
24627
|
var {
|
|
24563
24628
|
isExpanded
|
|
24564
24629
|
} = useSidebarContext();
|
|
@@ -24576,7 +24641,7 @@
|
|
|
24576
24641
|
children,
|
|
24577
24642
|
views
|
|
24578
24643
|
} = _ref4,
|
|
24579
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
24644
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$c);
|
|
24580
24645
|
var {
|
|
24581
24646
|
isExpanded
|
|
24582
24647
|
} = useSidebarContext();
|
|
@@ -24612,7 +24677,7 @@
|
|
|
24612
24677
|
collapse,
|
|
24613
24678
|
views
|
|
24614
24679
|
} = _ref5,
|
|
24615
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$
|
|
24680
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$b);
|
|
24616
24681
|
// Determine width based on expanded state and size
|
|
24617
24682
|
var sizeConfig = SidebarSizes[size];
|
|
24618
24683
|
var width = isExpanded ? expandedWidth || sizeConfig.expandedWidth : collapsedWidth || sizeConfig.collapsedWidth;
|
|
@@ -25134,8 +25199,8 @@
|
|
|
25134
25199
|
};
|
|
25135
25200
|
|
|
25136
25201
|
var _excluded$1g = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
|
|
25137
|
-
_excluded2$
|
|
25138
|
-
_excluded3$
|
|
25202
|
+
_excluded2$j = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
|
|
25203
|
+
_excluded3$d = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
|
|
25139
25204
|
// Create context for the Resizable component
|
|
25140
25205
|
var ResizableContext = /*#__PURE__*/React.createContext({
|
|
25141
25206
|
orientation: 'horizontal',
|
|
@@ -25242,7 +25307,7 @@
|
|
|
25242
25307
|
collapseTarget,
|
|
25243
25308
|
views
|
|
25244
25309
|
} = _ref3,
|
|
25245
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
25310
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$j);
|
|
25246
25311
|
var {
|
|
25247
25312
|
orientation,
|
|
25248
25313
|
size,
|
|
@@ -25382,7 +25447,7 @@
|
|
|
25382
25447
|
containerRef,
|
|
25383
25448
|
views
|
|
25384
25449
|
} = _ref4,
|
|
25385
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
25450
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$d);
|
|
25386
25451
|
var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
|
|
25387
25452
|
return /*#__PURE__*/React__default.createElement(Container, Object.assign({
|
|
25388
25453
|
ref: containerRef,
|
|
@@ -26185,9 +26250,9 @@
|
|
|
26185
26250
|
};
|
|
26186
26251
|
|
|
26187
26252
|
var _excluded$1i = ["value", "onValueChange", "placeholder", "views"],
|
|
26188
|
-
_excluded2$
|
|
26189
|
-
_excluded3$
|
|
26190
|
-
_excluded4$
|
|
26253
|
+
_excluded2$k = ["children", "views"],
|
|
26254
|
+
_excluded3$e = ["heading", "children", "views"],
|
|
26255
|
+
_excluded4$c = ["item", "selected", "onSelect", "views"],
|
|
26191
26256
|
_excluded5$6 = ["children", "views"],
|
|
26192
26257
|
_excluded6$3 = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "emptyState", "footer", "search", "setSearch", "selectedIndex", "setSelectedIndex", "filteredCommands", "filteredGroups", "listRef", "views", "filter"];
|
|
26193
26258
|
var CommandContext = /*#__PURE__*/React.createContext({
|
|
@@ -26248,7 +26313,7 @@
|
|
|
26248
26313
|
children,
|
|
26249
26314
|
views
|
|
26250
26315
|
} = _ref3,
|
|
26251
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
26316
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$k);
|
|
26252
26317
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandListStyles, views == null ? void 0 : views.container, props), children);
|
|
26253
26318
|
};
|
|
26254
26319
|
// Command Group component
|
|
@@ -26258,7 +26323,7 @@
|
|
|
26258
26323
|
children,
|
|
26259
26324
|
views
|
|
26260
26325
|
} = _ref4,
|
|
26261
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
26326
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$e);
|
|
26262
26327
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandGroupStyles, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({}, CommandGroupHeadingStyles, views == null ? void 0 : views.heading), heading), children);
|
|
26263
26328
|
};
|
|
26264
26329
|
// Command Item component
|
|
@@ -26269,7 +26334,7 @@
|
|
|
26269
26334
|
onSelect,
|
|
26270
26335
|
views
|
|
26271
26336
|
} = _ref5,
|
|
26272
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$
|
|
26337
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$c);
|
|
26273
26338
|
var handleClick = () => {
|
|
26274
26339
|
if (!item.disabled && onSelect) {
|
|
26275
26340
|
onSelect();
|
|
@@ -26655,8 +26720,8 @@
|
|
|
26655
26720
|
};
|
|
26656
26721
|
|
|
26657
26722
|
var _excluded$1k = ["children", "views", "asChild"],
|
|
26658
|
-
_excluded2$
|
|
26659
|
-
_excluded3$
|
|
26723
|
+
_excluded2$l = ["children", "views"],
|
|
26724
|
+
_excluded3$f = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
|
|
26660
26725
|
// Create context for the Tooltip
|
|
26661
26726
|
var TooltipContext = /*#__PURE__*/React.createContext({
|
|
26662
26727
|
isOpen: false,
|
|
@@ -26726,7 +26791,7 @@
|
|
|
26726
26791
|
children,
|
|
26727
26792
|
views
|
|
26728
26793
|
} = _ref3,
|
|
26729
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
26794
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$l);
|
|
26730
26795
|
var {
|
|
26731
26796
|
isOpen,
|
|
26732
26797
|
contentRef,
|
|
@@ -26756,7 +26821,7 @@
|
|
|
26756
26821
|
showArrow = true,
|
|
26757
26822
|
views
|
|
26758
26823
|
} = _ref4,
|
|
26759
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
26824
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$f);
|
|
26760
26825
|
var {
|
|
26761
26826
|
isOpen,
|
|
26762
26827
|
triggerRef,
|
|
@@ -27296,9 +27361,9 @@
|
|
|
27296
27361
|
};
|
|
27297
27362
|
|
|
27298
27363
|
var _excluded$1n = ["children", "showRadialGradient", "views", "themeMode"],
|
|
27299
|
-
_excluded2$
|
|
27300
|
-
_excluded3$
|
|
27301
|
-
_excluded4$
|
|
27364
|
+
_excluded2$m = ["number", "children"],
|
|
27365
|
+
_excluded3$g = ["rows", "cols", "squareSize"],
|
|
27366
|
+
_excluded4$d = ["count", "colors", "speed", "shapes"],
|
|
27302
27367
|
_excluded5$7 = ["gridSize", "lineColor", "pulseColor", "animationSpeed"],
|
|
27303
27368
|
_excluded6$4 = ["rippleCount", "colors", "maxSize", "frequency"],
|
|
27304
27369
|
_excluded7$1 = ["children", "src", "backgroundSize", "backgroundPosition", "backgroundRepeat", "backgroundAttachment", "imageOpacity", "overlay", "blendMode", "views", "themeMode"],
|
|
@@ -27340,7 +27405,7 @@
|
|
|
27340
27405
|
number = 20,
|
|
27341
27406
|
children
|
|
27342
27407
|
} = _ref2,
|
|
27343
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
27408
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$m);
|
|
27344
27409
|
var meteors = Array.from({
|
|
27345
27410
|
length: number
|
|
27346
27411
|
}, (_, i) => i);
|
|
@@ -27408,7 +27473,7 @@
|
|
|
27408
27473
|
cols = 10,
|
|
27409
27474
|
squareSize = 40
|
|
27410
27475
|
} = _ref3,
|
|
27411
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
27476
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$g);
|
|
27412
27477
|
var rowsArray = Array(rows).fill(1);
|
|
27413
27478
|
var colsArray = Array(cols).fill(1);
|
|
27414
27479
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
@@ -27451,7 +27516,7 @@
|
|
|
27451
27516
|
speed = 'medium',
|
|
27452
27517
|
shapes = ['circle']
|
|
27453
27518
|
} = _ref4,
|
|
27454
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
27519
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$d);
|
|
27455
27520
|
var particles = Array.from({
|
|
27456
27521
|
length: count
|
|
27457
27522
|
}, (_, i) => i);
|