@app-studio/web 0.9.45 → 0.9.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Button/Button/Button.style.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts +2 -1
- package/dist/web.cjs.development.js +538 -445
- 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 +538 -446
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +538 -445
- 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/docs/components/Icon.mdx +90 -57
- package/docs/components.md +0 -164
- package/package.json +1 -1
- package/docs/components/Calendar.mdx +0 -189
- package/docs/components/Flow.mdx +0 -258
- package/docs/components/KanbanBoard.mdx +0 -286
- package/docs/components/OKR.mdx +0 -452
- package/docs/components/Tree.mdx +0 -341
|
@@ -2810,6 +2810,9 @@
|
|
|
2810
2810
|
d: "M6.8 6.8a8 8 0 1 0 10 0"
|
|
2811
2811
|
})));
|
|
2812
2812
|
};
|
|
2813
|
+
var BackIcon = props => (/*#__PURE__*/React__default.createElement(ChevronIcon, Object.assign({
|
|
2814
|
+
orientation: "left"
|
|
2815
|
+
}, props)));
|
|
2813
2816
|
|
|
2814
2817
|
var Icon = {
|
|
2815
2818
|
__proto__: null,
|
|
@@ -2901,7 +2904,8 @@
|
|
|
2901
2904
|
ShieldIcon: ShieldIcon,
|
|
2902
2905
|
CheckIcon: CheckIcon,
|
|
2903
2906
|
LogoutIcon: LogoutIcon,
|
|
2904
|
-
PowerOffIcon: PowerOffIcon
|
|
2907
|
+
PowerOffIcon: PowerOffIcon,
|
|
2908
|
+
BackIcon: BackIcon
|
|
2905
2909
|
};
|
|
2906
2910
|
|
|
2907
2911
|
/**
|
|
@@ -4798,7 +4802,7 @@
|
|
|
4798
4802
|
*/
|
|
4799
4803
|
var ButtonSizes = {
|
|
4800
4804
|
xs: {
|
|
4801
|
-
minHeight:
|
|
4805
|
+
minHeight: 8 * 4,
|
|
4802
4806
|
paddingTop: 1,
|
|
4803
4807
|
paddingBottom: 1,
|
|
4804
4808
|
paddingLeft: 2,
|
|
@@ -4809,7 +4813,7 @@
|
|
|
4809
4813
|
letterSpacing: '-0.01em'
|
|
4810
4814
|
},
|
|
4811
4815
|
sm: {
|
|
4812
|
-
minHeight:
|
|
4816
|
+
minHeight: 10 * 4,
|
|
4813
4817
|
paddingTop: 4,
|
|
4814
4818
|
paddingBottom: 4,
|
|
4815
4819
|
paddingLeft: 8,
|
|
@@ -4820,18 +4824,18 @@
|
|
|
4820
4824
|
letterSpacing: '-0.01em'
|
|
4821
4825
|
},
|
|
4822
4826
|
md: {
|
|
4823
|
-
minHeight:
|
|
4824
|
-
paddingTop:
|
|
4825
|
-
paddingBottom:
|
|
4826
|
-
paddingLeft:
|
|
4827
|
-
paddingRight:
|
|
4828
|
-
fontSize:
|
|
4829
|
-
fontWeight:
|
|
4830
|
-
lineHeight:
|
|
4827
|
+
minHeight: 12 * 4,
|
|
4828
|
+
paddingTop: 8,
|
|
4829
|
+
paddingBottom: 8,
|
|
4830
|
+
paddingLeft: 20,
|
|
4831
|
+
paddingRight: 20,
|
|
4832
|
+
fontSize: 16,
|
|
4833
|
+
fontWeight: 550,
|
|
4834
|
+
lineHeight: 24,
|
|
4831
4835
|
letterSpacing: '-0.01em'
|
|
4832
4836
|
},
|
|
4833
4837
|
lg: {
|
|
4834
|
-
minHeight:
|
|
4838
|
+
minHeight: 14 * 4,
|
|
4835
4839
|
paddingTop: 8,
|
|
4836
4840
|
paddingBottom: 8,
|
|
4837
4841
|
paddingLeft: 16,
|
|
@@ -4842,7 +4846,7 @@
|
|
|
4842
4846
|
letterSpacing: '-0.01em'
|
|
4843
4847
|
},
|
|
4844
4848
|
xl: {
|
|
4845
|
-
minHeight:
|
|
4849
|
+
minHeight: 16 * 4,
|
|
4846
4850
|
paddingTop: 10,
|
|
4847
4851
|
paddingBottom: 10,
|
|
4848
4852
|
paddingLeft: 20,
|
|
@@ -4891,142 +4895,387 @@
|
|
|
4891
4895
|
padding: 14
|
|
4892
4896
|
}
|
|
4893
4897
|
};
|
|
4894
|
-
var getButtonVariants = (color, isLight)
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
borderWidth: 1,
|
|
4899
|
-
borderStyle: 'solid',
|
|
4900
|
-
borderColor: 'transparent',
|
|
4901
|
-
_hover: {
|
|
4902
|
-
opacity: 0.9
|
|
4903
|
-
},
|
|
4904
|
-
_active: {
|
|
4905
|
-
opacity: 0.95
|
|
4906
|
-
},
|
|
4907
|
-
_focusVisible: {
|
|
4908
|
-
outline: 'none',
|
|
4909
|
-
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
4910
|
-
},
|
|
4911
|
-
transition: 'background-color 0.2s ease, opacity 0.2s ease'
|
|
4912
|
-
},
|
|
4913
|
-
outline: {
|
|
4914
|
-
backgroundColor: 'transparent',
|
|
4915
|
-
color: color,
|
|
4916
|
-
borderWidth: 1,
|
|
4917
|
-
borderStyle: 'solid',
|
|
4918
|
-
borderColor: color,
|
|
4919
|
-
_hover: {
|
|
4920
|
-
backgroundColor: color,
|
|
4921
|
-
color: isLight ? 'color.black' : 'color.white',
|
|
4922
|
-
opacity: 0.9
|
|
4923
|
-
},
|
|
4924
|
-
_active: {
|
|
4898
|
+
var getButtonVariants = function getButtonVariants(color, isLight, isThemeLight) {
|
|
4899
|
+
var textColor = isLight ? '#000000' : '#FFFFFF';
|
|
4900
|
+
return {
|
|
4901
|
+
filled: {
|
|
4925
4902
|
backgroundColor: color,
|
|
4926
|
-
color:
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4903
|
+
color: textColor,
|
|
4904
|
+
borderWidth: 1,
|
|
4905
|
+
borderStyle: 'solid',
|
|
4906
|
+
borderColor: 'transparent',
|
|
4907
|
+
_hover: {
|
|
4908
|
+
opacity: 0.9,
|
|
4909
|
+
color: textColor
|
|
4910
|
+
},
|
|
4911
|
+
_active: {
|
|
4912
|
+
opacity: 0.95,
|
|
4913
|
+
color: textColor
|
|
4914
|
+
},
|
|
4915
|
+
_focusVisible: {
|
|
4916
|
+
outline: 'none',
|
|
4917
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color,
|
|
4918
|
+
color: textColor
|
|
4919
|
+
},
|
|
4920
|
+
transition: 'background-color 0.2s ease, opacity 0.2s ease'
|
|
4932
4921
|
},
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4922
|
+
outline: {
|
|
4923
|
+
backgroundColor: 'transparent',
|
|
4924
|
+
color: color,
|
|
4925
|
+
borderWidth: 1,
|
|
4926
|
+
borderStyle: 'solid',
|
|
4927
|
+
borderColor: color,
|
|
4928
|
+
_hover: {
|
|
4929
|
+
backgroundColor: color,
|
|
4930
|
+
color: textColor,
|
|
4931
|
+
opacity: 0.9
|
|
4932
|
+
},
|
|
4933
|
+
_active: {
|
|
4934
|
+
backgroundColor: color,
|
|
4935
|
+
color: textColor,
|
|
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, color 0.2s ease, opacity 0.2s ease'
|
|
4944
4943
|
},
|
|
4945
|
-
|
|
4946
|
-
backgroundColor:
|
|
4947
|
-
|
|
4944
|
+
ghost: {
|
|
4945
|
+
backgroundColor: 'transparent',
|
|
4946
|
+
color: color,
|
|
4947
|
+
borderWidth: 1,
|
|
4948
|
+
borderStyle: 'solid',
|
|
4949
|
+
borderColor: 'transparent',
|
|
4950
|
+
_hover: {
|
|
4951
|
+
borderWidth: 1,
|
|
4952
|
+
borderStyle: 'solid',
|
|
4953
|
+
borderColor: color,
|
|
4954
|
+
color: color,
|
|
4955
|
+
opacity: 0.9
|
|
4956
|
+
},
|
|
4957
|
+
_active: {
|
|
4958
|
+
color: color,
|
|
4959
|
+
opacity: 0.95
|
|
4960
|
+
},
|
|
4961
|
+
_focusVisible: {
|
|
4962
|
+
outline: 'none',
|
|
4963
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
4964
|
+
},
|
|
4965
|
+
transition: 'background-color 0.2s ease, opacity 0.2s ease'
|
|
4948
4966
|
},
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4967
|
+
link: {
|
|
4968
|
+
backgroundColor: 'transparent',
|
|
4969
|
+
color: color,
|
|
4970
|
+
borderWidth: 0,
|
|
4971
|
+
borderStyle: 'none',
|
|
4972
|
+
borderColor: 'transparent',
|
|
4973
|
+
textDecoration: 'underline',
|
|
4974
|
+
textUnderlineOffset: '2px',
|
|
4975
|
+
textDecorationThickness: '1px',
|
|
4976
|
+
textDecorationColor: color,
|
|
4977
|
+
_hover: {
|
|
4978
|
+
color: color,
|
|
4979
|
+
opacity: 0.8
|
|
4980
|
+
},
|
|
4981
|
+
_active: {
|
|
4982
|
+
color: color,
|
|
4983
|
+
opacity: 0.9
|
|
4984
|
+
},
|
|
4985
|
+
_focusVisible: {
|
|
4986
|
+
outline: 'none',
|
|
4987
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
4988
|
+
},
|
|
4989
|
+
transition: 'opacity 0.2s ease'
|
|
4952
4990
|
},
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4991
|
+
borderMoving: {
|
|
4992
|
+
position: 'relative',
|
|
4993
|
+
backgroundColor: 'black',
|
|
4994
|
+
color: textColor,
|
|
4995
|
+
overflow: 'hidden',
|
|
4996
|
+
borderWidth: 0,
|
|
4997
|
+
borderStyle: 'none',
|
|
4998
|
+
borderColor: 'transparent',
|
|
4999
|
+
_hover: {
|
|
5000
|
+
color: textColor
|
|
5001
|
+
},
|
|
5002
|
+
_active: {
|
|
5003
|
+
color: textColor
|
|
5004
|
+
},
|
|
5005
|
+
_focusVisible: {
|
|
5006
|
+
outline: 'none',
|
|
5007
|
+
boxShadow: '0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(0, 0, 0, 0.8)'
|
|
5008
|
+
},
|
|
5009
|
+
transition: 'opacity 0.2s ease'
|
|
4966
5010
|
},
|
|
4967
|
-
|
|
4968
|
-
|
|
5011
|
+
animatedStroke: {
|
|
5012
|
+
display: 'inline-block',
|
|
5013
|
+
margin: '0 auto',
|
|
5014
|
+
textAlign: 'center',
|
|
5015
|
+
textDecoration: 'none',
|
|
5016
|
+
position: 'relative',
|
|
5017
|
+
cursor: 'pointer',
|
|
5018
|
+
backgroundColor: 'transparent',
|
|
5019
|
+
color: color,
|
|
5020
|
+
borderWidth: 0,
|
|
5021
|
+
borderStyle: 'none',
|
|
5022
|
+
borderColor: 'transparent',
|
|
5023
|
+
_hover: {
|
|
5024
|
+
color: color
|
|
5025
|
+
},
|
|
5026
|
+
_active: {
|
|
5027
|
+
color: color
|
|
5028
|
+
},
|
|
5029
|
+
_focusVisible: {
|
|
5030
|
+
outline: 'none',
|
|
5031
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
5032
|
+
},
|
|
5033
|
+
transition: 'opacity 0.2s ease'
|
|
5034
|
+
}
|
|
5035
|
+
};
|
|
5036
|
+
};
|
|
5037
|
+
|
|
5038
|
+
var _excluded$d = ["shape", "size", "isDisabled", "onClick", "views", "mainTone", "tone", "borderMovingGradientColors", "borderMovingDuration", "content", "shadow"],
|
|
5039
|
+
_excluded2$3 = ["to", "onClick", "views", "children", "size", "accentColor", "textColor", "getColor", "shadow"],
|
|
5040
|
+
_excluded3$3 = ["variant", "to", "isDisabled", "isLoading", "isAuto", "isFilled", "isExternal", "shape", "shadow", "onClick", "views", "baseStyles", "sizeStyles", "iconPad", "resolvedTextColor", "content", "size"],
|
|
5041
|
+
_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"];
|
|
5042
|
+
// --- Helper: Button Content ---
|
|
5043
|
+
// Renders the inner content: Loader, Icon, and Children.
|
|
5044
|
+
var ButtonContent = _ref => {
|
|
5045
|
+
var {
|
|
5046
|
+
children,
|
|
5047
|
+
icon,
|
|
5048
|
+
isLoading,
|
|
5049
|
+
iconPosition = 'left',
|
|
5050
|
+
loaderPosition = 'left',
|
|
5051
|
+
size = 'md',
|
|
5052
|
+
resolvedTextColor,
|
|
5053
|
+
isIconRounded,
|
|
5054
|
+
views
|
|
5055
|
+
} = _ref;
|
|
5056
|
+
var Wrapper = ['left', 'right'].includes(iconPosition) ? appStudio.Horizontal : appStudio.Vertical;
|
|
5057
|
+
var sizeStyles = ButtonSizes[size];
|
|
5058
|
+
var iconPad = isIconRounded ? IconSizes$1[size] : {};
|
|
5059
|
+
return /*#__PURE__*/React__default.createElement(Wrapper, Object.assign({
|
|
5060
|
+
gap: 8,
|
|
5061
|
+
alignItems: "center",
|
|
5062
|
+
justifyContent: "center"
|
|
5063
|
+
}, sizeStyles, iconPad, views == null ? void 0 : views.content), isLoading && loaderPosition === 'left' && (/*#__PURE__*/React__default.createElement(Loader, Object.assign({
|
|
5064
|
+
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
5065
|
+
color: 'currentColor'
|
|
5066
|
+
}, views == null ? void 0 : views.loader))), icon && ['left', 'top'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
5067
|
+
color: 'currentColor'
|
|
5068
|
+
}, views == null ? void 0 : views.icon), icon)), children, icon && ['right', 'bottom'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
5069
|
+
color: 'currentColor'
|
|
5070
|
+
}, views == null ? void 0 : views.icon), icon)), isLoading && loaderPosition === 'right' && (/*#__PURE__*/React__default.createElement(Loader, Object.assign({
|
|
5071
|
+
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
5072
|
+
color: 'currentColor'
|
|
5073
|
+
}, views == null ? void 0 : views.loader))));
|
|
5074
|
+
};
|
|
5075
|
+
// --- Variant: Border Moving ---
|
|
5076
|
+
var BorderMovingButton = _ref2 => {
|
|
5077
|
+
var {
|
|
5078
|
+
shape = 'rounded',
|
|
5079
|
+
size = 'md',
|
|
5080
|
+
isDisabled,
|
|
5081
|
+
onClick,
|
|
5082
|
+
views,
|
|
5083
|
+
mainTone,
|
|
5084
|
+
tone,
|
|
5085
|
+
borderMovingGradientColors,
|
|
5086
|
+
borderMovingDuration,
|
|
5087
|
+
content,
|
|
5088
|
+
shadow
|
|
5089
|
+
} = _ref2,
|
|
5090
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$d);
|
|
5091
|
+
var sizeStyles = ButtonSizes[size];
|
|
5092
|
+
var borderWidth = 3;
|
|
5093
|
+
var numericWidth = typeof sizeStyles.width === 'number' ? sizeStyles.width : 300;
|
|
5094
|
+
var numericHeight = typeof sizeStyles.height === 'number' ? sizeStyles.height : 64;
|
|
5095
|
+
var numericBorderRadius = (() => {
|
|
5096
|
+
var shapeValue = ButtonShapes[shape];
|
|
5097
|
+
if (typeof shapeValue === 'number') {
|
|
5098
|
+
return shapeValue;
|
|
5099
|
+
}
|
|
5100
|
+
if (typeof shapeValue === 'string') {
|
|
5101
|
+
return parseInt(shapeValue, 10) || 50;
|
|
5102
|
+
}
|
|
5103
|
+
return 50;
|
|
5104
|
+
})();
|
|
5105
|
+
var containerBg = mainTone;
|
|
5106
|
+
// Use high contrast text color for this variant
|
|
5107
|
+
var borderMovingTextColor = tone === 'light' ? '#000000' : '#FFFFFF';
|
|
5108
|
+
// Create gradient string for border animation
|
|
5109
|
+
var gradientColors = borderMovingGradientColors.join(', ');
|
|
5110
|
+
// Animation sequence for the moving border effect
|
|
5111
|
+
var borderAnimation = {
|
|
5112
|
+
from: {
|
|
5113
|
+
backgroundPosition: '0% 50%'
|
|
4969
5114
|
},
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
5115
|
+
to: {
|
|
5116
|
+
backgroundPosition: '200% 50%'
|
|
4973
5117
|
},
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
5118
|
+
duration: borderMovingDuration + "s",
|
|
5119
|
+
timingFunction: 'linear',
|
|
5120
|
+
iterationCount: 'infinite'
|
|
5121
|
+
};
|
|
5122
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
5123
|
+
position: "relative",
|
|
5124
|
+
display: "inline-flex",
|
|
5125
|
+
alignItems: "center",
|
|
5126
|
+
justifyContent: "center",
|
|
5127
|
+
borderRadius: ButtonShapes[shape],
|
|
5128
|
+
cursor: isDisabled ? 'default' : 'pointer',
|
|
5129
|
+
onClick: onClick,
|
|
5130
|
+
boxShadow: shadow,
|
|
5131
|
+
padding: borderWidth,
|
|
5132
|
+
background: "linear-gradient(90deg, " + borderMovingGradientColors[0] + ", " + borderMovingGradientColors[1] + ", " + borderMovingGradientColors[2] + ", " + borderMovingGradientColors[0] + ")",
|
|
5133
|
+
backgroundSize: "200% 100%",
|
|
5134
|
+
animate: borderAnimation
|
|
5135
|
+
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5136
|
+
display: "flex",
|
|
5137
|
+
alignItems: "center",
|
|
5138
|
+
justifyContent: "center",
|
|
5139
|
+
backgroundColor: containerBg,
|
|
5140
|
+
borderRadius: Math.max(0, numericBorderRadius - borderWidth),
|
|
5141
|
+
width: "100%",
|
|
5142
|
+
height: "100%",
|
|
5143
|
+
minWidth: numericWidth - borderWidth * 2,
|
|
5144
|
+
minHeight: numericHeight - borderWidth * 2,
|
|
5145
|
+
color: borderMovingTextColor,
|
|
5146
|
+
fontSize: 14,
|
|
5147
|
+
cursor: "pointer"
|
|
5148
|
+
}, content));
|
|
5149
|
+
};
|
|
5150
|
+
// --- Variant: Animated Stroke ---
|
|
5151
|
+
var AnimatedStrokeButton = _ref3 => {
|
|
5152
|
+
var {
|
|
5153
|
+
to,
|
|
5154
|
+
onClick,
|
|
5155
|
+
views,
|
|
5156
|
+
children,
|
|
5157
|
+
size = 'md',
|
|
5158
|
+
accentColor,
|
|
5159
|
+
textColor,
|
|
5160
|
+
getColor,
|
|
5161
|
+
shadow
|
|
5162
|
+
} = _ref3,
|
|
5163
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$3);
|
|
5164
|
+
var resolvedAccentColor = getColor(accentColor);
|
|
5165
|
+
var resolvedTextColor = getColor(textColor);
|
|
5166
|
+
var sizeStyles = ButtonSizes[size];
|
|
5167
|
+
var numericWidth = typeof sizeStyles.width === 'number' ? sizeStyles.width : 300;
|
|
5168
|
+
var numericHeight = typeof sizeStyles.height === 'number' ? sizeStyles.height : 60;
|
|
5169
|
+
var strokeAnimation = {
|
|
5170
|
+
from: {
|
|
5171
|
+
strokeWidth: '8px',
|
|
5172
|
+
strokeDasharray: '0 500',
|
|
5173
|
+
strokeDashoffset: -454
|
|
4987
5174
|
},
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
maxWidth: '20rem',
|
|
4993
|
-
margin: '0 auto',
|
|
4994
|
-
textAlign: 'center',
|
|
4995
|
-
textDecoration: 'none',
|
|
4996
|
-
position: 'relative',
|
|
4997
|
-
cursor: 'pointer',
|
|
4998
|
-
backgroundColor: 'transparent',
|
|
4999
|
-
borderWidth: 0,
|
|
5000
|
-
borderStyle: 'none',
|
|
5001
|
-
borderColor: 'transparent',
|
|
5002
|
-
_focusVisible: {
|
|
5003
|
-
outline: 'none',
|
|
5004
|
-
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
5175
|
+
to: {
|
|
5176
|
+
strokeWidth: '3px',
|
|
5177
|
+
strokeDasharray: '760',
|
|
5178
|
+
strokeDashoffset: 0
|
|
5005
5179
|
},
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5180
|
+
duration: '0.9s',
|
|
5181
|
+
timingFunction: 'ease-in',
|
|
5182
|
+
fillMode: 'forwards'
|
|
5183
|
+
};
|
|
5184
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
5185
|
+
as: to ? 'a' : 'div',
|
|
5186
|
+
href: to ? to : undefined,
|
|
5187
|
+
onClick: onClick,
|
|
5188
|
+
display: "inline-block",
|
|
5189
|
+
maxWidth: "20rem",
|
|
5190
|
+
margin: "0 auto",
|
|
5191
|
+
textAlign: "center",
|
|
5192
|
+
textDecoration: "none",
|
|
5193
|
+
position: "relative",
|
|
5194
|
+
cursor: "pointer",
|
|
5195
|
+
boxShadow: shadow
|
|
5196
|
+
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5197
|
+
as: "svg",
|
|
5198
|
+
display: "block",
|
|
5199
|
+
height: numericHeight,
|
|
5200
|
+
width: numericWidth,
|
|
5201
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
5202
|
+
}, /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5203
|
+
as: "rect",
|
|
5204
|
+
height: numericHeight,
|
|
5205
|
+
width: numericWidth,
|
|
5206
|
+
fill: "transparent",
|
|
5207
|
+
stroke: resolvedAccentColor,
|
|
5208
|
+
strokeWidth: "8px",
|
|
5209
|
+
strokeDasharray: "0 500",
|
|
5210
|
+
strokeDashoffset: -454,
|
|
5211
|
+
on: {
|
|
5212
|
+
hover: {
|
|
5213
|
+
animate: strokeAnimation
|
|
5214
|
+
}
|
|
5215
|
+
}
|
|
5216
|
+
})), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
5217
|
+
position: "absolute",
|
|
5218
|
+
top: 0,
|
|
5219
|
+
right: 0,
|
|
5220
|
+
bottom: 0,
|
|
5221
|
+
left: 0,
|
|
5222
|
+
display: "flex",
|
|
5223
|
+
alignItems: "center",
|
|
5224
|
+
justifyContent: "center",
|
|
5225
|
+
textAlign: "center",
|
|
5226
|
+
pointerEvents: "none",
|
|
5227
|
+
userSelect: "none",
|
|
5228
|
+
color: resolvedTextColor
|
|
5229
|
+
}, sizeStyles), children));
|
|
5230
|
+
};
|
|
5231
|
+
// --- Variant: Standard Button ---
|
|
5232
|
+
var StandardButton = _ref4 => {
|
|
5233
|
+
var {
|
|
5234
|
+
variant,
|
|
5235
|
+
to,
|
|
5236
|
+
isDisabled,
|
|
5237
|
+
isLoading,
|
|
5238
|
+
isAuto,
|
|
5239
|
+
isFilled,
|
|
5240
|
+
isExternal,
|
|
5241
|
+
shape = 'rounded',
|
|
5242
|
+
shadow,
|
|
5243
|
+
onClick,
|
|
5244
|
+
views,
|
|
5245
|
+
baseStyles,
|
|
5246
|
+
sizeStyles,
|
|
5247
|
+
iconPad,
|
|
5248
|
+
content // Destructure size to avoid passing it to Element
|
|
5249
|
+
} = _ref4,
|
|
5250
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$3);
|
|
5251
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
5252
|
+
as: variant === 'link' && to ? 'div' : 'button',
|
|
5253
|
+
type: variant === 'link' && to ? undefined : 'button',
|
|
5254
|
+
disabled: Boolean(isDisabled || isLoading)
|
|
5255
|
+
}, sizeStyles, iconPad, {
|
|
5256
|
+
display: "inline-flex",
|
|
5257
|
+
alignItems: "center",
|
|
5258
|
+
justifyContent: "center",
|
|
5259
|
+
width: isAuto ? 'fit-content' : isFilled ? '100%' : undefined,
|
|
5260
|
+
/* visuals */
|
|
5261
|
+
borderRadius: ButtonShapes[shape],
|
|
5262
|
+
boxShadow: shadow,
|
|
5263
|
+
transition: "all 0.2s ease",
|
|
5264
|
+
cursor: isDisabled ? 'default' : 'pointer',
|
|
5265
|
+
onClick: onClick
|
|
5266
|
+
}, baseStyles, views == null ? void 0 : views.container, props), to ? (/*#__PURE__*/React__default.createElement(Link, Object.assign({
|
|
5267
|
+
to: to,
|
|
5268
|
+
isExternal: isExternal,
|
|
5269
|
+
color: "currentColor",
|
|
5270
|
+
textDecoration: "inherit",
|
|
5271
|
+
_hover: {
|
|
5272
|
+
color: 'currentColor'
|
|
5273
|
+
}
|
|
5274
|
+
}, views == null ? void 0 : views.link), content)) : content);
|
|
5275
|
+
};
|
|
5276
|
+
// --- Main Component ---
|
|
5277
|
+
var ButtonView = _ref5 => {
|
|
5278
|
+
var _ref6, _base$color;
|
|
5030
5279
|
var {
|
|
5031
5280
|
/* behaviour */
|
|
5032
5281
|
variant = 'filled',
|
|
@@ -5036,8 +5285,10 @@
|
|
|
5036
5285
|
loaderPosition = 'left',
|
|
5037
5286
|
backgroundColor,
|
|
5038
5287
|
// primary candidate for main color
|
|
5039
|
-
color
|
|
5040
|
-
|
|
5288
|
+
color,
|
|
5289
|
+
// 2nd candidate for main color (NOT text‑color)
|
|
5290
|
+
isAuto,
|
|
5291
|
+
isFilled,
|
|
5041
5292
|
isDisabled,
|
|
5042
5293
|
isLoading,
|
|
5043
5294
|
isIconRounded,
|
|
@@ -5057,8 +5308,8 @@
|
|
|
5057
5308
|
borderMovingGradientColors = ['#705CFF', '#FF5C97', '#FFC75C'],
|
|
5058
5309
|
animatedStrokeAccentColor = '#705CFF',
|
|
5059
5310
|
animatedStrokeTextColor = '#333333'
|
|
5060
|
-
} =
|
|
5061
|
-
props = _objectWithoutPropertiesLoose(
|
|
5311
|
+
} = _ref5,
|
|
5312
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$3);
|
|
5062
5313
|
/* theme helpers */
|
|
5063
5314
|
var {
|
|
5064
5315
|
getColor,
|
|
@@ -5066,237 +5317,78 @@
|
|
|
5066
5317
|
} = appStudio.useTheme();
|
|
5067
5318
|
var mode = elementMode != null ? elementMode : themeMode;
|
|
5068
5319
|
/* MAIN COLOR – determines the entire palette */
|
|
5069
|
-
var mainColorKey = (
|
|
5320
|
+
var mainColorKey = (_ref6 = backgroundColor != null ? backgroundColor : color) != null ? _ref6 : 'theme.primary';
|
|
5070
5321
|
var mainTone = getColor(isDisabled ? 'theme.disabled' : mainColorKey, {
|
|
5071
5322
|
themeMode: mode
|
|
5072
5323
|
});
|
|
5073
5324
|
var tone = contrast(mainTone);
|
|
5325
|
+
/* text color with mixBlendMode for maximum visibility */
|
|
5326
|
+
var textColor = tone === 'light' ? '#000000' : '#FFFFFF';
|
|
5074
5327
|
/* variant palette */
|
|
5075
|
-
var palette = React.useMemo(() => getButtonVariants(mainTone, tone
|
|
5328
|
+
var palette = React.useMemo(() => getButtonVariants(mainTone, tone === 'light'), [mainTone, tone, mode]);
|
|
5076
5329
|
var base = palette[variant];
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
var
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
5091
|
-
color: 'inherit',
|
|
5092
|
-
_hover: {
|
|
5093
|
-
color: 'inherit'
|
|
5094
|
-
}
|
|
5095
|
-
}, views == null ? void 0 : views.loader))), icon && ['left', 'top'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
5096
|
-
color: 'inherit',
|
|
5097
|
-
_hover: {
|
|
5098
|
-
color: 'inherit'
|
|
5099
|
-
}
|
|
5100
|
-
}, views == null ? void 0 : views.icon), icon)), children, icon && ['right', 'bottom'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
5101
|
-
color: 'inherit',
|
|
5102
|
-
_hover: {
|
|
5103
|
-
color: 'inherit'
|
|
5104
|
-
}
|
|
5105
|
-
}, views == null ? void 0 : views.icon), icon)), isLoading && loaderPosition === 'right' && (/*#__PURE__*/React__default.createElement(Loader, Object.assign({
|
|
5106
|
-
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
5107
|
-
color: 'inherit',
|
|
5108
|
-
_hover: {
|
|
5109
|
-
color: 'inherit'
|
|
5110
|
-
}
|
|
5111
|
-
}, views == null ? void 0 : views.loader))));
|
|
5112
|
-
// Handle special effect variants
|
|
5330
|
+
var resolvedTextColor = (_base$color = base == null ? void 0 : base.color) != null ? _base$color : textColor;
|
|
5331
|
+
// Render content logic safely
|
|
5332
|
+
var content = /*#__PURE__*/React__default.createElement(ButtonContent, {
|
|
5333
|
+
icon: icon,
|
|
5334
|
+
isLoading: isLoading,
|
|
5335
|
+
iconPosition: iconPosition,
|
|
5336
|
+
loaderPosition: loaderPosition,
|
|
5337
|
+
size: size,
|
|
5338
|
+
resolvedTextColor: resolvedTextColor,
|
|
5339
|
+
isIconRounded: isIconRounded,
|
|
5340
|
+
views: views
|
|
5341
|
+
}, children);
|
|
5342
|
+
// Dispatch to the correct variant component
|
|
5113
5343
|
if (variant === 'borderMoving') {
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
})
|
|
5127
|
-
var path = generateOffsetPath(numericWidth, numericHeight, numericBorderRadius);
|
|
5128
|
-
// Determine background color from props or use mainTone
|
|
5129
|
-
var containerBg = mainTone;
|
|
5130
|
-
// Calculate text color with proper contrast
|
|
5131
|
-
var borderMovingTextColor = tone === 'light' ? '#000000' : '#FFFFFF';
|
|
5132
|
-
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
5133
|
-
width: numericWidth,
|
|
5134
|
-
height: numericHeight,
|
|
5135
|
-
position: "relative",
|
|
5136
|
-
backgroundColor: containerBg,
|
|
5137
|
-
overflow: "hidden",
|
|
5138
|
-
borderRadius: ButtonShapes[shape],
|
|
5139
|
-
cursor: isDisabled ? 'default' : 'pointer',
|
|
5140
|
-
onClick: onClick
|
|
5141
|
-
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement("svg", {
|
|
5142
|
-
width: numericWidth,
|
|
5143
|
-
height: numericHeight,
|
|
5144
|
-
style: {
|
|
5145
|
-
position: 'absolute',
|
|
5146
|
-
top: 0,
|
|
5147
|
-
left: 0,
|
|
5148
|
-
zIndex: 1
|
|
5149
|
-
}
|
|
5150
|
-
}, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("linearGradient", {
|
|
5151
|
-
id: "circleGradient",
|
|
5152
|
-
x1: "0%",
|
|
5153
|
-
y1: "100%",
|
|
5154
|
-
x2: "100%",
|
|
5155
|
-
y2: "100%"
|
|
5156
|
-
}, /*#__PURE__*/React__default.createElement("stop", {
|
|
5157
|
-
offset: "0%",
|
|
5158
|
-
stopColor: "transparent"
|
|
5159
|
-
}), /*#__PURE__*/React__default.createElement("stop", {
|
|
5160
|
-
offset: "30%",
|
|
5161
|
-
stopColor: borderMovingGradientColors[0]
|
|
5162
|
-
}), /*#__PURE__*/React__default.createElement("stop", {
|
|
5163
|
-
offset: "60%",
|
|
5164
|
-
stopColor: borderMovingGradientColors[1]
|
|
5165
|
-
}), /*#__PURE__*/React__default.createElement("stop", {
|
|
5166
|
-
offset: "100%",
|
|
5167
|
-
stopColor: borderMovingGradientColors[2]
|
|
5168
|
-
})), /*#__PURE__*/React__default.createElement("path", {
|
|
5169
|
-
id: "uniqueId",
|
|
5170
|
-
d: path,
|
|
5171
|
-
fill: "none",
|
|
5172
|
-
stroke: "transparent"
|
|
5173
|
-
})), /*#__PURE__*/React__default.createElement("circle", {
|
|
5174
|
-
r: "30",
|
|
5175
|
-
fill: "url(#circleGradient)"
|
|
5176
|
-
}, /*#__PURE__*/React__default.createElement("animateMotion", {
|
|
5177
|
-
dur: borderMovingDuration + 's',
|
|
5178
|
-
repeatCount: "indefinite",
|
|
5179
|
-
path: path
|
|
5180
|
-
}))), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5181
|
-
position: "absolute",
|
|
5182
|
-
backgroundColor: containerBg,
|
|
5183
|
-
borderRadius: Math.max(0, numericBorderRadius - 1),
|
|
5184
|
-
top: borderWidth,
|
|
5185
|
-
bottom: borderWidth,
|
|
5186
|
-
left: borderWidth,
|
|
5187
|
-
right: borderWidth,
|
|
5188
|
-
zIndex: 2
|
|
5189
|
-
}), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5190
|
-
position: "relative",
|
|
5191
|
-
width: "100%",
|
|
5192
|
-
height: "100%",
|
|
5193
|
-
display: "flex",
|
|
5194
|
-
alignItems: "center",
|
|
5195
|
-
justifyContent: "center",
|
|
5196
|
-
color: borderMovingTextColor,
|
|
5197
|
-
fontSize: 14,
|
|
5198
|
-
zIndex: 3,
|
|
5199
|
-
style: {
|
|
5200
|
-
cursor: 'pointer'
|
|
5201
|
-
}
|
|
5202
|
-
}, content));
|
|
5344
|
+
return /*#__PURE__*/React__default.createElement(BorderMovingButton, Object.assign({
|
|
5345
|
+
variant: variant,
|
|
5346
|
+
shape: shape,
|
|
5347
|
+
size: size,
|
|
5348
|
+
isDisabled: isDisabled,
|
|
5349
|
+
onClick: onClick,
|
|
5350
|
+
views: views,
|
|
5351
|
+
mainTone: mainTone,
|
|
5352
|
+
tone: tone,
|
|
5353
|
+
borderMovingGradientColors: borderMovingGradientColors,
|
|
5354
|
+
borderMovingDuration: borderMovingDuration,
|
|
5355
|
+
content: content
|
|
5356
|
+
}, props));
|
|
5203
5357
|
}
|
|
5204
5358
|
if (variant === 'animatedStroke') {
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
var _numericHeight = typeof sizeStyles.height === 'number' ? sizeStyles.height : 60;
|
|
5209
|
-
var strokeAnimation = {
|
|
5210
|
-
from: {
|
|
5211
|
-
strokeWidth: '8px',
|
|
5212
|
-
strokeDasharray: '0 500',
|
|
5213
|
-
strokeDashoffset: -454
|
|
5214
|
-
},
|
|
5215
|
-
to: {
|
|
5216
|
-
strokeWidth: '3px',
|
|
5217
|
-
strokeDasharray: '760',
|
|
5218
|
-
strokeDashoffset: 0
|
|
5219
|
-
},
|
|
5220
|
-
duration: '0.9s',
|
|
5221
|
-
timingFunction: 'ease-in',
|
|
5222
|
-
fillMode: 'forwards'
|
|
5223
|
-
};
|
|
5224
|
-
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
5225
|
-
as: to ? 'a' : 'div',
|
|
5226
|
-
href: to ? to : undefined,
|
|
5359
|
+
return /*#__PURE__*/React__default.createElement(AnimatedStrokeButton, Object.assign({
|
|
5360
|
+
variant: variant,
|
|
5361
|
+
to: to,
|
|
5227
5362
|
onClick: onClick,
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
cursor: "pointer"
|
|
5235
|
-
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5236
|
-
as: "svg",
|
|
5237
|
-
display: "block",
|
|
5238
|
-
height: _numericHeight,
|
|
5239
|
-
width: _numericWidth,
|
|
5240
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
5241
|
-
}, /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5242
|
-
as: "rect",
|
|
5243
|
-
height: _numericHeight,
|
|
5244
|
-
width: _numericWidth,
|
|
5245
|
-
fill: "transparent",
|
|
5246
|
-
stroke: resolvedAccentColor,
|
|
5247
|
-
strokeWidth: "8px",
|
|
5248
|
-
strokeDasharray: "120 500",
|
|
5249
|
-
strokeDashoffset: -454,
|
|
5250
|
-
on: {
|
|
5251
|
-
hover: {
|
|
5252
|
-
animate: strokeAnimation
|
|
5253
|
-
}
|
|
5254
|
-
}
|
|
5255
|
-
})), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
5256
|
-
position: "absolute",
|
|
5257
|
-
top: 0,
|
|
5258
|
-
right: 0,
|
|
5259
|
-
bottom: 0,
|
|
5260
|
-
left: 0,
|
|
5261
|
-
display: "flex",
|
|
5262
|
-
alignItems: "center",
|
|
5263
|
-
justifyContent: "center",
|
|
5264
|
-
paddingX: 16,
|
|
5265
|
-
paddingY: 8,
|
|
5266
|
-
fontSize: "22px",
|
|
5267
|
-
lineHeight: "1.3",
|
|
5268
|
-
letterSpacing: "0.3rem",
|
|
5269
|
-
textAlign: "center",
|
|
5270
|
-
textTransform: "uppercase",
|
|
5271
|
-
whiteSpace: "normal",
|
|
5272
|
-
wordBreak: "break-word",
|
|
5273
|
-
pointerEvents: "none",
|
|
5274
|
-
userSelect: "none",
|
|
5275
|
-
color: resolvedTextColor
|
|
5276
|
-
}, children));
|
|
5363
|
+
views: views,
|
|
5364
|
+
size: size,
|
|
5365
|
+
accentColor: animatedStrokeAccentColor,
|
|
5366
|
+
textColor: animatedStrokeTextColor,
|
|
5367
|
+
getColor: getColor
|
|
5368
|
+
}, props), children);
|
|
5277
5369
|
}
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
display: "flex",
|
|
5284
|
-
alignItems: "center",
|
|
5285
|
-
justifyContent: "center",
|
|
5286
|
-
// width={isAuto ? 'fit-content' : isFilled ? '100%' : undefined}
|
|
5287
|
-
/* visuals */
|
|
5288
|
-
borderRadius: ButtonShapes[shape],
|
|
5289
|
-
boxShadow: shadow,
|
|
5290
|
-
transition: "all 0.2s ease",
|
|
5291
|
-
cursor: isDisabled ? 'default' : 'pointer',
|
|
5292
|
-
onClick: onClick
|
|
5293
|
-
}, base, views == null ? void 0 : views.container, props), to ? (/*#__PURE__*/React__default.createElement(Link, Object.assign({
|
|
5370
|
+
// Standard variants (filled, outline, ghost, link)
|
|
5371
|
+
var sizeStyles = ButtonSizes[size];
|
|
5372
|
+
var iconPad = isIconRounded ? IconSizes$1[size] : {};
|
|
5373
|
+
return /*#__PURE__*/React__default.createElement(StandardButton, Object.assign({
|
|
5374
|
+
variant: variant,
|
|
5294
5375
|
to: to,
|
|
5376
|
+
isDisabled: isDisabled,
|
|
5377
|
+
isLoading: isLoading,
|
|
5378
|
+
isAuto: isAuto,
|
|
5379
|
+
isFilled: isFilled,
|
|
5295
5380
|
isExternal: isExternal,
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5381
|
+
shape: shape,
|
|
5382
|
+
shadow: shadow,
|
|
5383
|
+
onClick: onClick,
|
|
5384
|
+
views: views,
|
|
5385
|
+
baseStyles: base,
|
|
5386
|
+
sizeStyles: sizeStyles,
|
|
5387
|
+
iconPad: iconPad,
|
|
5388
|
+
resolvedTextColor: resolvedTextColor,
|
|
5389
|
+
content: content,
|
|
5390
|
+
size: size
|
|
5391
|
+
}, props));
|
|
5300
5392
|
};
|
|
5301
5393
|
|
|
5302
5394
|
// Importing a custom hook to manage the state specific to the button component.
|
|
@@ -5432,9 +5524,9 @@
|
|
|
5432
5524
|
};
|
|
5433
5525
|
|
|
5434
5526
|
var _excluded$e = ["children", "views", "style", "themeMode"],
|
|
5435
|
-
_excluded2$
|
|
5436
|
-
_excluded3$
|
|
5437
|
-
_excluded4$
|
|
5527
|
+
_excluded2$4 = ["children", "views", "style", "themeMode"],
|
|
5528
|
+
_excluded3$4 = ["children", "views", "style", "themeMode"],
|
|
5529
|
+
_excluded4$4 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style", "themeMode"];
|
|
5438
5530
|
var CardHeader = _ref => {
|
|
5439
5531
|
var _contextStyles$header;
|
|
5440
5532
|
var {
|
|
@@ -5459,7 +5551,7 @@
|
|
|
5459
5551
|
children,
|
|
5460
5552
|
style
|
|
5461
5553
|
} = _ref2,
|
|
5462
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
5554
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
|
|
5463
5555
|
var theme = appStudio.useTheme();
|
|
5464
5556
|
var {
|
|
5465
5557
|
styles: contextStyles
|
|
@@ -5477,7 +5569,7 @@
|
|
|
5477
5569
|
children,
|
|
5478
5570
|
style
|
|
5479
5571
|
} = _ref3,
|
|
5480
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
5572
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
|
|
5481
5573
|
var theme = appStudio.useTheme();
|
|
5482
5574
|
var {
|
|
5483
5575
|
styles: contextStyles
|
|
@@ -5503,7 +5595,7 @@
|
|
|
5503
5595
|
style,
|
|
5504
5596
|
themeMode: elementMode
|
|
5505
5597
|
} = _ref4,
|
|
5506
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
5598
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$4);
|
|
5507
5599
|
var theme = appStudio.useTheme();
|
|
5508
5600
|
var defaultStyles = getDefaultCardStyles();
|
|
5509
5601
|
// Prepare context value, merging default styles with user's `views` overrides
|
|
@@ -5836,9 +5928,9 @@
|
|
|
5836
5928
|
};
|
|
5837
5929
|
|
|
5838
5930
|
var _excluded$f = ["children", "isActive", "views"],
|
|
5839
|
-
_excluded2$
|
|
5840
|
-
_excluded3$
|
|
5841
|
-
_excluded4$
|
|
5931
|
+
_excluded2$5 = ["views", "children"],
|
|
5932
|
+
_excluded3$5 = ["views", "children"],
|
|
5933
|
+
_excluded4$5 = ["children", "views"],
|
|
5842
5934
|
_excluded5$1 = ["children", "views", "style"],
|
|
5843
5935
|
_excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views", "stepIndices", "themeMode"];
|
|
5844
5936
|
var CarouselSlide = _ref => {
|
|
@@ -5863,7 +5955,7 @@
|
|
|
5863
5955
|
children // Allow custom content/icon
|
|
5864
5956
|
// Spread remaining ButtonProps
|
|
5865
5957
|
} = _ref2,
|
|
5866
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
5958
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$5);
|
|
5867
5959
|
var {
|
|
5868
5960
|
goToPrevious,
|
|
5869
5961
|
canGoPrevious,
|
|
@@ -5886,7 +5978,7 @@
|
|
|
5886
5978
|
views,
|
|
5887
5979
|
children
|
|
5888
5980
|
} = _ref3,
|
|
5889
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
5981
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$5);
|
|
5890
5982
|
var {
|
|
5891
5983
|
goToNext,
|
|
5892
5984
|
canGoNext,
|
|
@@ -5909,7 +6001,7 @@
|
|
|
5909
6001
|
children,
|
|
5910
6002
|
views
|
|
5911
6003
|
} = _ref4,
|
|
5912
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
6004
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$5);
|
|
5913
6005
|
var {
|
|
5914
6006
|
registerSlide,
|
|
5915
6007
|
unregisterSlide,
|
|
@@ -7654,9 +7746,9 @@
|
|
|
7654
7746
|
// using viewport-aware algorithms in the ContextMenu component
|
|
7655
7747
|
|
|
7656
7748
|
var _excluded$i = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
|
|
7657
|
-
_excluded2$
|
|
7658
|
-
_excluded3$
|
|
7659
|
-
_excluded4$
|
|
7749
|
+
_excluded2$6 = ["items", "children", "position", "side", "align", "views", "style"],
|
|
7750
|
+
_excluded3$6 = ["item", "children", "onSelect", "isDisabled", "views"],
|
|
7751
|
+
_excluded4$6 = ["views"],
|
|
7660
7752
|
_excluded5$2 = ["views"],
|
|
7661
7753
|
_excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views", "themeMode"];
|
|
7662
7754
|
// Create context for the ContextMenu
|
|
@@ -7763,7 +7855,7 @@
|
|
|
7763
7855
|
views,
|
|
7764
7856
|
style // Capture user-provided style
|
|
7765
7857
|
} = _ref3,
|
|
7766
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
7858
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$6);
|
|
7767
7859
|
var {
|
|
7768
7860
|
isOpen,
|
|
7769
7861
|
position: contextPosition,
|
|
@@ -7878,7 +7970,7 @@
|
|
|
7878
7970
|
isDisabled = false,
|
|
7879
7971
|
views
|
|
7880
7972
|
} = _ref4,
|
|
7881
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
7973
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$6);
|
|
7882
7974
|
var {
|
|
7883
7975
|
activeSubmenuId,
|
|
7884
7976
|
setActiveSubmenuId,
|
|
@@ -8007,7 +8099,7 @@
|
|
|
8007
8099
|
var {
|
|
8008
8100
|
views
|
|
8009
8101
|
} = _ref5,
|
|
8010
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$
|
|
8102
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$6);
|
|
8011
8103
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
8012
8104
|
height: "1px",
|
|
8013
8105
|
backgroundColor: "color.gray.200",
|
|
@@ -8123,7 +8215,7 @@
|
|
|
8123
8215
|
ContextMenu.Separator = ContextMenuSeparator; // Add the Separator component
|
|
8124
8216
|
|
|
8125
8217
|
var _excluded$k = ["src", "color", "views", "themeMode"],
|
|
8126
|
-
_excluded2$
|
|
8218
|
+
_excluded2$7 = ["path"];
|
|
8127
8219
|
var FileSVG = _ref => {
|
|
8128
8220
|
var {
|
|
8129
8221
|
src,
|
|
@@ -8153,7 +8245,7 @@
|
|
|
8153
8245
|
var {
|
|
8154
8246
|
path
|
|
8155
8247
|
} = _ref2,
|
|
8156
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
8248
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$7);
|
|
8157
8249
|
return /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({
|
|
8158
8250
|
src: path
|
|
8159
8251
|
}, props));
|
|
@@ -8629,9 +8721,9 @@
|
|
|
8629
8721
|
};
|
|
8630
8722
|
|
|
8631
8723
|
var _excluded$s = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
8632
|
-
_excluded2$
|
|
8633
|
-
_excluded3$
|
|
8634
|
-
_excluded4$
|
|
8724
|
+
_excluded2$8 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
8725
|
+
_excluded3$7 = ["option", "size", "removeOption"],
|
|
8726
|
+
_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"];
|
|
8635
8727
|
/**
|
|
8636
8728
|
* Item Component
|
|
8637
8729
|
*
|
|
@@ -8754,7 +8846,7 @@
|
|
|
8754
8846
|
isReadOnly = false,
|
|
8755
8847
|
options = []
|
|
8756
8848
|
} = _ref4,
|
|
8757
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$
|
|
8849
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$8);
|
|
8758
8850
|
var handleChange = event => {
|
|
8759
8851
|
if (onChange) onChange(event);
|
|
8760
8852
|
};
|
|
@@ -8839,7 +8931,7 @@
|
|
|
8839
8931
|
size = 'md',
|
|
8840
8932
|
removeOption = () => {}
|
|
8841
8933
|
} = _ref6,
|
|
8842
|
-
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$
|
|
8934
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$7);
|
|
8843
8935
|
var handleClick = () => removeOption(option);
|
|
8844
8936
|
return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
|
|
8845
8937
|
gap: 8,
|
|
@@ -8900,7 +8992,7 @@
|
|
|
8900
8992
|
setHighlightedIndex,
|
|
8901
8993
|
highlightedIndex
|
|
8902
8994
|
} = _ref7,
|
|
8903
|
-
props = _objectWithoutPropertiesLoose(_ref7, _excluded4$
|
|
8995
|
+
props = _objectWithoutPropertiesLoose(_ref7, _excluded4$7);
|
|
8904
8996
|
var {
|
|
8905
8997
|
ref: triggerRef,
|
|
8906
8998
|
relation,
|
|
@@ -12089,8 +12181,8 @@
|
|
|
12089
12181
|
};
|
|
12090
12182
|
|
|
12091
12183
|
var _excluded$y = ["size"],
|
|
12092
|
-
_excluded2$
|
|
12093
|
-
_excluded3$
|
|
12184
|
+
_excluded2$9 = ["size"],
|
|
12185
|
+
_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"];
|
|
12094
12186
|
var CountryList = _ref => {
|
|
12095
12187
|
var props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
12096
12188
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
@@ -12101,7 +12193,7 @@
|
|
|
12101
12193
|
type: "country"
|
|
12102
12194
|
}, props)));
|
|
12103
12195
|
var CountryItem = _ref2 => {
|
|
12104
|
-
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
12196
|
+
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$9);
|
|
12105
12197
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
12106
12198
|
as: "li"
|
|
12107
12199
|
}, props));
|
|
@@ -12203,7 +12295,7 @@
|
|
|
12203
12295
|
},
|
|
12204
12296
|
themeMode: elementMode
|
|
12205
12297
|
} = _ref5,
|
|
12206
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$
|
|
12298
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$8);
|
|
12207
12299
|
var {
|
|
12208
12300
|
getColor,
|
|
12209
12301
|
themeMode
|
|
@@ -12454,7 +12546,7 @@
|
|
|
12454
12546
|
};
|
|
12455
12547
|
|
|
12456
12548
|
var _excluded$A = ["visibleIcon", "hiddenIcon"],
|
|
12457
|
-
_excluded2$
|
|
12549
|
+
_excluded2$a = ["isVisible", "setIsVisible"];
|
|
12458
12550
|
var PasswordComponent = _ref => {
|
|
12459
12551
|
var {
|
|
12460
12552
|
visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
|
|
@@ -12470,7 +12562,7 @@
|
|
|
12470
12562
|
isVisible,
|
|
12471
12563
|
setIsVisible
|
|
12472
12564
|
} = _usePasswordState,
|
|
12473
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
12565
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$a);
|
|
12474
12566
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
12475
12567
|
type: isVisible ? 'text' : 'password',
|
|
12476
12568
|
isClearable: false,
|
|
@@ -14599,7 +14691,7 @@
|
|
|
14599
14691
|
};
|
|
14600
14692
|
|
|
14601
14693
|
var _excluded$J = ["children", "views", "asChild"],
|
|
14602
|
-
_excluded2$
|
|
14694
|
+
_excluded2$b = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
|
|
14603
14695
|
// Create context for the HoverCard
|
|
14604
14696
|
var HoverCardContext = /*#__PURE__*/React.createContext({
|
|
14605
14697
|
isOpen: false,
|
|
@@ -14685,7 +14777,7 @@
|
|
|
14685
14777
|
minWidth = '50px',
|
|
14686
14778
|
maxWidth = '300px'
|
|
14687
14779
|
} = _ref3,
|
|
14688
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
14780
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$b);
|
|
14689
14781
|
var {
|
|
14690
14782
|
isOpen,
|
|
14691
14783
|
cancelCloseTimer,
|
|
@@ -15807,7 +15899,7 @@
|
|
|
15807
15899
|
var FormikSwitch = SwitchComponent$1;
|
|
15808
15900
|
|
|
15809
15901
|
var _excluded$N = ["name"],
|
|
15810
|
-
_excluded2$
|
|
15902
|
+
_excluded2$c = ["tags"];
|
|
15811
15903
|
/**
|
|
15812
15904
|
* Formik-integrated TagInput component
|
|
15813
15905
|
*/
|
|
@@ -15850,7 +15942,7 @@
|
|
|
15850
15942
|
var {
|
|
15851
15943
|
tags
|
|
15852
15944
|
} = tagInputState,
|
|
15853
|
-
stateWithoutTags = _objectWithoutPropertiesLoose(tagInputState, _excluded2$
|
|
15945
|
+
stateWithoutTags = _objectWithoutPropertiesLoose(tagInputState, _excluded2$c);
|
|
15854
15946
|
// Render the view component with combined props and state
|
|
15855
15947
|
return /*#__PURE__*/React__default.createElement(TagInputView, Object.assign({}, stateWithoutTags, restProps, {
|
|
15856
15948
|
tags: tags,
|
|
@@ -15886,7 +15978,7 @@
|
|
|
15886
15978
|
var FormikTextField = TextFieldComponent$1;
|
|
15887
15979
|
|
|
15888
15980
|
var _excluded$P = ["visibleIcon", "hiddenIcon"],
|
|
15889
|
-
_excluded2$
|
|
15981
|
+
_excluded2$d = ["isVisible", "setIsVisible"];
|
|
15890
15982
|
var PasswordComponent$1 = _ref => {
|
|
15891
15983
|
var {
|
|
15892
15984
|
visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
|
|
@@ -15903,7 +15995,7 @@
|
|
|
15903
15995
|
isVisible,
|
|
15904
15996
|
setIsVisible
|
|
15905
15997
|
} = _usePasswordState,
|
|
15906
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
15998
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$d);
|
|
15907
15999
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
15908
16000
|
type: isVisible ? 'text' : 'password',
|
|
15909
16001
|
isClearable: false,
|
|
@@ -17020,9 +17112,9 @@
|
|
|
17020
17112
|
};
|
|
17021
17113
|
|
|
17022
17114
|
var _excluded$T = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
|
|
17023
|
-
_excluded2$
|
|
17024
|
-
_excluded3$
|
|
17025
|
-
_excluded4$
|
|
17115
|
+
_excluded2$e = ["children", "shadow", "isFullScreen", "shape", "views", "isOpen"],
|
|
17116
|
+
_excluded3$9 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
|
|
17117
|
+
_excluded4$8 = ["children", "views"],
|
|
17026
17118
|
_excluded5$3 = ["children", "views"];
|
|
17027
17119
|
var ModalOverlay = _ref => {
|
|
17028
17120
|
var {
|
|
@@ -17070,7 +17162,7 @@
|
|
|
17070
17162
|
shape = 'rounded',
|
|
17071
17163
|
views
|
|
17072
17164
|
} = _ref2,
|
|
17073
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
17165
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$e);
|
|
17074
17166
|
var defaultShadow = typeof document !== undefined ? {
|
|
17075
17167
|
boxShadow: '0px 4px 16px rgba(0, 0, 0, 0.15)'
|
|
17076
17168
|
} : {
|
|
@@ -17111,7 +17203,7 @@
|
|
|
17111
17203
|
buttonPosition = 'right',
|
|
17112
17204
|
views
|
|
17113
17205
|
} = _ref3,
|
|
17114
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
17206
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$9);
|
|
17115
17207
|
var onClose = props.onClose ? props.onClose : hideModal;
|
|
17116
17208
|
var buttonIcon = /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
17117
17209
|
onClick: onClose
|
|
@@ -17140,7 +17232,7 @@
|
|
|
17140
17232
|
children,
|
|
17141
17233
|
views
|
|
17142
17234
|
} = _ref4,
|
|
17143
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
17235
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$8);
|
|
17144
17236
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
17145
17237
|
paddingVertical: 16,
|
|
17146
17238
|
paddingHorizontal: 24,
|
|
@@ -17283,9 +17375,9 @@
|
|
|
17283
17375
|
};
|
|
17284
17376
|
|
|
17285
17377
|
var _excluded$U = ["isOpen", "onClose", "isClosePrevented", "blur", "children"],
|
|
17286
|
-
_excluded2$
|
|
17287
|
-
_excluded3$
|
|
17288
|
-
_excluded4$
|
|
17378
|
+
_excluded2$f = ["placement", "size", "children"],
|
|
17379
|
+
_excluded3$a = ["children", "onClose", "buttonPosition"],
|
|
17380
|
+
_excluded4$9 = ["children"],
|
|
17289
17381
|
_excluded5$4 = ["children"];
|
|
17290
17382
|
var DrawerOverlay = _ref => {
|
|
17291
17383
|
var {
|
|
@@ -17336,7 +17428,7 @@
|
|
|
17336
17428
|
size = 'md',
|
|
17337
17429
|
children
|
|
17338
17430
|
} = _ref2,
|
|
17339
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
17431
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$f);
|
|
17340
17432
|
var handleClick = e => {
|
|
17341
17433
|
e.stopPropagation();
|
|
17342
17434
|
};
|
|
@@ -17362,7 +17454,7 @@
|
|
|
17362
17454
|
onClose,
|
|
17363
17455
|
buttonPosition = 'right'
|
|
17364
17456
|
} = _ref3,
|
|
17365
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
17457
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$a);
|
|
17366
17458
|
var closeButton = onClose && (/*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
17367
17459
|
onClick: onClose,
|
|
17368
17460
|
cursor: "pointer",
|
|
@@ -17384,7 +17476,7 @@
|
|
|
17384
17476
|
var {
|
|
17385
17477
|
children
|
|
17386
17478
|
} = _ref4,
|
|
17387
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
17479
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$9);
|
|
17388
17480
|
return /*#__PURE__*/React__default.createElement(appStudio.Vertical, Object.assign({
|
|
17389
17481
|
padding: 24,
|
|
17390
17482
|
flex: 1,
|
|
@@ -18946,7 +19038,7 @@
|
|
|
18946
19038
|
};
|
|
18947
19039
|
|
|
18948
19040
|
var _excluded$Z = ["text", "duration", "direction", "stagger", "sequential", "textStyle", "as", "wordProps"],
|
|
18949
|
-
_excluded2$
|
|
19041
|
+
_excluded2$g = ["style"];
|
|
18950
19042
|
// CSS keyframes injection - done once
|
|
18951
19043
|
var KEYFRAMES_ID = 'slide-effect-keyframes';
|
|
18952
19044
|
var injectKeyframes = () => {
|
|
@@ -19041,7 +19133,7 @@
|
|
|
19041
19133
|
{
|
|
19042
19134
|
style: customWordStyle
|
|
19043
19135
|
} = _ref2,
|
|
19044
|
-
restWordProps = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
19136
|
+
restWordProps = _objectWithoutPropertiesLoose(_ref2, _excluded2$g);
|
|
19045
19137
|
// Get animation names based on direction
|
|
19046
19138
|
var isUp = direction === 'up';
|
|
19047
19139
|
var enterAnim = isUp ? 'slideInUp' : 'slideInDown';
|
|
@@ -19834,9 +19926,9 @@
|
|
|
19834
19926
|
};
|
|
19835
19927
|
|
|
19836
19928
|
var _excluded$11 = ["children", "views"],
|
|
19837
|
-
_excluded2$
|
|
19838
|
-
_excluded3$
|
|
19839
|
-
_excluded4$
|
|
19929
|
+
_excluded2$h = ["items", "side", "align", "views"],
|
|
19930
|
+
_excluded3$b = ["item", "views"],
|
|
19931
|
+
_excluded4$a = ["views"],
|
|
19840
19932
|
_excluded5$5 = ["trigger", "items", "side", "align", "views", "themeMode"];
|
|
19841
19933
|
// Create context for the DropdownMenu
|
|
19842
19934
|
var DropdownMenuContext = /*#__PURE__*/React.createContext({
|
|
@@ -19901,7 +19993,7 @@
|
|
|
19901
19993
|
align = 'start',
|
|
19902
19994
|
views
|
|
19903
19995
|
} = _ref3,
|
|
19904
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
19996
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$h);
|
|
19905
19997
|
var {
|
|
19906
19998
|
isOpen,
|
|
19907
19999
|
variant,
|
|
@@ -20032,7 +20124,7 @@
|
|
|
20032
20124
|
item,
|
|
20033
20125
|
views
|
|
20034
20126
|
} = _ref4,
|
|
20035
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
20127
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$b);
|
|
20036
20128
|
var {
|
|
20037
20129
|
activeSubmenuId,
|
|
20038
20130
|
setActiveSubmenuId,
|
|
@@ -20097,7 +20189,7 @@
|
|
|
20097
20189
|
var {
|
|
20098
20190
|
views
|
|
20099
20191
|
} = _ref5,
|
|
20100
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$
|
|
20192
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$a);
|
|
20101
20193
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
20102
20194
|
height: "1px",
|
|
20103
20195
|
backgroundColor: "color.gray.200",
|
|
@@ -24455,9 +24547,9 @@
|
|
|
24455
24547
|
};
|
|
24456
24548
|
|
|
24457
24549
|
var _excluded$1e = ["children", "showToggleButton", "views"],
|
|
24458
|
-
_excluded2$
|
|
24459
|
-
_excluded3$
|
|
24460
|
-
_excluded4$
|
|
24550
|
+
_excluded2$i = ["children", "views"],
|
|
24551
|
+
_excluded3$c = ["children", "views"],
|
|
24552
|
+
_excluded4$b = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
|
|
24461
24553
|
// Create context for the Sidebar
|
|
24462
24554
|
var SidebarContext = /*#__PURE__*/React.createContext({
|
|
24463
24555
|
isExpanded: true,
|
|
@@ -24554,7 +24646,7 @@
|
|
|
24554
24646
|
children,
|
|
24555
24647
|
views
|
|
24556
24648
|
} = _ref3,
|
|
24557
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
24649
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$i);
|
|
24558
24650
|
var {
|
|
24559
24651
|
isExpanded
|
|
24560
24652
|
} = useSidebarContext();
|
|
@@ -24572,7 +24664,7 @@
|
|
|
24572
24664
|
children,
|
|
24573
24665
|
views
|
|
24574
24666
|
} = _ref4,
|
|
24575
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
24667
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$c);
|
|
24576
24668
|
var {
|
|
24577
24669
|
isExpanded
|
|
24578
24670
|
} = useSidebarContext();
|
|
@@ -24608,7 +24700,7 @@
|
|
|
24608
24700
|
collapse,
|
|
24609
24701
|
views
|
|
24610
24702
|
} = _ref5,
|
|
24611
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$
|
|
24703
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$b);
|
|
24612
24704
|
// Determine width based on expanded state and size
|
|
24613
24705
|
var sizeConfig = SidebarSizes[size];
|
|
24614
24706
|
var width = isExpanded ? expandedWidth || sizeConfig.expandedWidth : collapsedWidth || sizeConfig.collapsedWidth;
|
|
@@ -25130,8 +25222,8 @@
|
|
|
25130
25222
|
};
|
|
25131
25223
|
|
|
25132
25224
|
var _excluded$1g = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
|
|
25133
|
-
_excluded2$
|
|
25134
|
-
_excluded3$
|
|
25225
|
+
_excluded2$j = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
|
|
25226
|
+
_excluded3$d = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
|
|
25135
25227
|
// Create context for the Resizable component
|
|
25136
25228
|
var ResizableContext = /*#__PURE__*/React.createContext({
|
|
25137
25229
|
orientation: 'horizontal',
|
|
@@ -25238,7 +25330,7 @@
|
|
|
25238
25330
|
collapseTarget,
|
|
25239
25331
|
views
|
|
25240
25332
|
} = _ref3,
|
|
25241
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
25333
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$j);
|
|
25242
25334
|
var {
|
|
25243
25335
|
orientation,
|
|
25244
25336
|
size,
|
|
@@ -25378,7 +25470,7 @@
|
|
|
25378
25470
|
containerRef,
|
|
25379
25471
|
views
|
|
25380
25472
|
} = _ref4,
|
|
25381
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
25473
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$d);
|
|
25382
25474
|
var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
|
|
25383
25475
|
return /*#__PURE__*/React__default.createElement(Container, Object.assign({
|
|
25384
25476
|
ref: containerRef,
|
|
@@ -26181,9 +26273,9 @@
|
|
|
26181
26273
|
};
|
|
26182
26274
|
|
|
26183
26275
|
var _excluded$1i = ["value", "onValueChange", "placeholder", "views"],
|
|
26184
|
-
_excluded2$
|
|
26185
|
-
_excluded3$
|
|
26186
|
-
_excluded4$
|
|
26276
|
+
_excluded2$k = ["children", "views"],
|
|
26277
|
+
_excluded3$e = ["heading", "children", "views"],
|
|
26278
|
+
_excluded4$c = ["item", "selected", "onSelect", "views"],
|
|
26187
26279
|
_excluded5$6 = ["children", "views"],
|
|
26188
26280
|
_excluded6$3 = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "emptyState", "footer", "search", "setSearch", "selectedIndex", "setSelectedIndex", "filteredCommands", "filteredGroups", "listRef", "views", "filter"];
|
|
26189
26281
|
var CommandContext = /*#__PURE__*/React.createContext({
|
|
@@ -26244,7 +26336,7 @@
|
|
|
26244
26336
|
children,
|
|
26245
26337
|
views
|
|
26246
26338
|
} = _ref3,
|
|
26247
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
26339
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$k);
|
|
26248
26340
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandListStyles, views == null ? void 0 : views.container, props), children);
|
|
26249
26341
|
};
|
|
26250
26342
|
// Command Group component
|
|
@@ -26254,7 +26346,7 @@
|
|
|
26254
26346
|
children,
|
|
26255
26347
|
views
|
|
26256
26348
|
} = _ref4,
|
|
26257
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
26349
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$e);
|
|
26258
26350
|
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);
|
|
26259
26351
|
};
|
|
26260
26352
|
// Command Item component
|
|
@@ -26265,7 +26357,7 @@
|
|
|
26265
26357
|
onSelect,
|
|
26266
26358
|
views
|
|
26267
26359
|
} = _ref5,
|
|
26268
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$
|
|
26360
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$c);
|
|
26269
26361
|
var handleClick = () => {
|
|
26270
26362
|
if (!item.disabled && onSelect) {
|
|
26271
26363
|
onSelect();
|
|
@@ -26651,8 +26743,8 @@
|
|
|
26651
26743
|
};
|
|
26652
26744
|
|
|
26653
26745
|
var _excluded$1k = ["children", "views", "asChild"],
|
|
26654
|
-
_excluded2$
|
|
26655
|
-
_excluded3$
|
|
26746
|
+
_excluded2$l = ["children", "views"],
|
|
26747
|
+
_excluded3$f = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
|
|
26656
26748
|
// Create context for the Tooltip
|
|
26657
26749
|
var TooltipContext = /*#__PURE__*/React.createContext({
|
|
26658
26750
|
isOpen: false,
|
|
@@ -26722,7 +26814,7 @@
|
|
|
26722
26814
|
children,
|
|
26723
26815
|
views
|
|
26724
26816
|
} = _ref3,
|
|
26725
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
26817
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$l);
|
|
26726
26818
|
var {
|
|
26727
26819
|
isOpen,
|
|
26728
26820
|
contentRef,
|
|
@@ -26752,7 +26844,7 @@
|
|
|
26752
26844
|
showArrow = true,
|
|
26753
26845
|
views
|
|
26754
26846
|
} = _ref4,
|
|
26755
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
26847
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$f);
|
|
26756
26848
|
var {
|
|
26757
26849
|
isOpen,
|
|
26758
26850
|
triggerRef,
|
|
@@ -27292,9 +27384,9 @@
|
|
|
27292
27384
|
};
|
|
27293
27385
|
|
|
27294
27386
|
var _excluded$1n = ["children", "showRadialGradient", "views", "themeMode"],
|
|
27295
|
-
_excluded2$
|
|
27296
|
-
_excluded3$
|
|
27297
|
-
_excluded4$
|
|
27387
|
+
_excluded2$m = ["number", "children"],
|
|
27388
|
+
_excluded3$g = ["rows", "cols", "squareSize"],
|
|
27389
|
+
_excluded4$d = ["count", "colors", "speed", "shapes"],
|
|
27298
27390
|
_excluded5$7 = ["gridSize", "lineColor", "pulseColor", "animationSpeed"],
|
|
27299
27391
|
_excluded6$4 = ["rippleCount", "colors", "maxSize", "frequency"],
|
|
27300
27392
|
_excluded7$1 = ["children", "src", "backgroundSize", "backgroundPosition", "backgroundRepeat", "backgroundAttachment", "imageOpacity", "overlay", "blendMode", "views", "themeMode"],
|
|
@@ -27336,7 +27428,7 @@
|
|
|
27336
27428
|
number = 20,
|
|
27337
27429
|
children
|
|
27338
27430
|
} = _ref2,
|
|
27339
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
27431
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$m);
|
|
27340
27432
|
var meteors = Array.from({
|
|
27341
27433
|
length: number
|
|
27342
27434
|
}, (_, i) => i);
|
|
@@ -27404,7 +27496,7 @@
|
|
|
27404
27496
|
cols = 10,
|
|
27405
27497
|
squareSize = 40
|
|
27406
27498
|
} = _ref3,
|
|
27407
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
27499
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$g);
|
|
27408
27500
|
var rowsArray = Array(rows).fill(1);
|
|
27409
27501
|
var colsArray = Array(cols).fill(1);
|
|
27410
27502
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
@@ -27447,7 +27539,7 @@
|
|
|
27447
27539
|
speed = 'medium',
|
|
27448
27540
|
shapes = ['circle']
|
|
27449
27541
|
} = _ref4,
|
|
27450
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
27542
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$d);
|
|
27451
27543
|
var particles = Array.from({
|
|
27452
27544
|
length: count
|
|
27453
27545
|
}, (_, i) => i);
|
|
@@ -27869,6 +27961,7 @@
|
|
|
27869
27961
|
exports.AudioInput = AudioInput;
|
|
27870
27962
|
exports.AudioWaveform = AudioWaveform;
|
|
27871
27963
|
exports.Avatar = Avatar;
|
|
27964
|
+
exports.BackIcon = BackIcon;
|
|
27872
27965
|
exports.Background = Background;
|
|
27873
27966
|
exports.Badge = Badge;
|
|
27874
27967
|
exports.BatteryIcon = BatteryIcon;
|