@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
package/dist/web.esm.js
CHANGED
|
@@ -2842,6 +2842,9 @@ var PowerOffIcon = _ref87 => {
|
|
|
2842
2842
|
d: "M6.8 6.8a8 8 0 1 0 10 0"
|
|
2843
2843
|
})));
|
|
2844
2844
|
};
|
|
2845
|
+
var BackIcon = props => (/*#__PURE__*/React.createElement(ChevronIcon, Object.assign({
|
|
2846
|
+
orientation: "left"
|
|
2847
|
+
}, props)));
|
|
2845
2848
|
|
|
2846
2849
|
var Icon = {
|
|
2847
2850
|
__proto__: null,
|
|
@@ -2933,7 +2936,8 @@ var Icon = {
|
|
|
2933
2936
|
ShieldIcon: ShieldIcon,
|
|
2934
2937
|
CheckIcon: CheckIcon,
|
|
2935
2938
|
LogoutIcon: LogoutIcon,
|
|
2936
|
-
PowerOffIcon: PowerOffIcon
|
|
2939
|
+
PowerOffIcon: PowerOffIcon,
|
|
2940
|
+
BackIcon: BackIcon
|
|
2937
2941
|
};
|
|
2938
2942
|
|
|
2939
2943
|
/**
|
|
@@ -4830,7 +4834,7 @@ var Loader = LoaderComponent;
|
|
|
4830
4834
|
*/
|
|
4831
4835
|
var ButtonSizes = {
|
|
4832
4836
|
xs: {
|
|
4833
|
-
minHeight:
|
|
4837
|
+
minHeight: 8 * 4,
|
|
4834
4838
|
paddingTop: 1,
|
|
4835
4839
|
paddingBottom: 1,
|
|
4836
4840
|
paddingLeft: 2,
|
|
@@ -4841,7 +4845,7 @@ var ButtonSizes = {
|
|
|
4841
4845
|
letterSpacing: '-0.01em'
|
|
4842
4846
|
},
|
|
4843
4847
|
sm: {
|
|
4844
|
-
minHeight:
|
|
4848
|
+
minHeight: 10 * 4,
|
|
4845
4849
|
paddingTop: 4,
|
|
4846
4850
|
paddingBottom: 4,
|
|
4847
4851
|
paddingLeft: 8,
|
|
@@ -4852,18 +4856,18 @@ var ButtonSizes = {
|
|
|
4852
4856
|
letterSpacing: '-0.01em'
|
|
4853
4857
|
},
|
|
4854
4858
|
md: {
|
|
4855
|
-
minHeight:
|
|
4856
|
-
paddingTop:
|
|
4857
|
-
paddingBottom:
|
|
4858
|
-
paddingLeft:
|
|
4859
|
-
paddingRight:
|
|
4860
|
-
fontSize:
|
|
4861
|
-
fontWeight:
|
|
4862
|
-
lineHeight:
|
|
4859
|
+
minHeight: 12 * 4,
|
|
4860
|
+
paddingTop: 8,
|
|
4861
|
+
paddingBottom: 8,
|
|
4862
|
+
paddingLeft: 20,
|
|
4863
|
+
paddingRight: 20,
|
|
4864
|
+
fontSize: 16,
|
|
4865
|
+
fontWeight: 550,
|
|
4866
|
+
lineHeight: 24,
|
|
4863
4867
|
letterSpacing: '-0.01em'
|
|
4864
4868
|
},
|
|
4865
4869
|
lg: {
|
|
4866
|
-
minHeight:
|
|
4870
|
+
minHeight: 14 * 4,
|
|
4867
4871
|
paddingTop: 8,
|
|
4868
4872
|
paddingBottom: 8,
|
|
4869
4873
|
paddingLeft: 16,
|
|
@@ -4874,7 +4878,7 @@ var ButtonSizes = {
|
|
|
4874
4878
|
letterSpacing: '-0.01em'
|
|
4875
4879
|
},
|
|
4876
4880
|
xl: {
|
|
4877
|
-
minHeight:
|
|
4881
|
+
minHeight: 16 * 4,
|
|
4878
4882
|
paddingTop: 10,
|
|
4879
4883
|
paddingBottom: 10,
|
|
4880
4884
|
paddingLeft: 20,
|
|
@@ -4923,142 +4927,387 @@ var IconSizes$1 = {
|
|
|
4923
4927
|
padding: 14
|
|
4924
4928
|
}
|
|
4925
4929
|
};
|
|
4926
|
-
var getButtonVariants = (color, isLight)
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
borderWidth: 1,
|
|
4931
|
-
borderStyle: 'solid',
|
|
4932
|
-
borderColor: 'transparent',
|
|
4933
|
-
_hover: {
|
|
4934
|
-
opacity: 0.9
|
|
4935
|
-
},
|
|
4936
|
-
_active: {
|
|
4937
|
-
opacity: 0.95
|
|
4938
|
-
},
|
|
4939
|
-
_focusVisible: {
|
|
4940
|
-
outline: 'none',
|
|
4941
|
-
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
4942
|
-
},
|
|
4943
|
-
transition: 'background-color 0.2s ease, opacity 0.2s ease'
|
|
4944
|
-
},
|
|
4945
|
-
outline: {
|
|
4946
|
-
backgroundColor: 'transparent',
|
|
4947
|
-
color: color,
|
|
4948
|
-
borderWidth: 1,
|
|
4949
|
-
borderStyle: 'solid',
|
|
4950
|
-
borderColor: color,
|
|
4951
|
-
_hover: {
|
|
4952
|
-
backgroundColor: color,
|
|
4953
|
-
color: isLight ? 'color.black' : 'color.white',
|
|
4954
|
-
opacity: 0.9
|
|
4955
|
-
},
|
|
4956
|
-
_active: {
|
|
4930
|
+
var getButtonVariants = function getButtonVariants(color, isLight, isThemeLight) {
|
|
4931
|
+
var textColor = isLight ? '#000000' : '#FFFFFF';
|
|
4932
|
+
return {
|
|
4933
|
+
filled: {
|
|
4957
4934
|
backgroundColor: color,
|
|
4958
|
-
color:
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4935
|
+
color: textColor,
|
|
4936
|
+
borderWidth: 1,
|
|
4937
|
+
borderStyle: 'solid',
|
|
4938
|
+
borderColor: 'transparent',
|
|
4939
|
+
_hover: {
|
|
4940
|
+
opacity: 0.9,
|
|
4941
|
+
color: textColor
|
|
4942
|
+
},
|
|
4943
|
+
_active: {
|
|
4944
|
+
opacity: 0.95,
|
|
4945
|
+
color: textColor
|
|
4946
|
+
},
|
|
4947
|
+
_focusVisible: {
|
|
4948
|
+
outline: 'none',
|
|
4949
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color,
|
|
4950
|
+
color: textColor
|
|
4951
|
+
},
|
|
4952
|
+
transition: 'background-color 0.2s ease, opacity 0.2s ease'
|
|
4964
4953
|
},
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4954
|
+
outline: {
|
|
4955
|
+
backgroundColor: 'transparent',
|
|
4956
|
+
color: color,
|
|
4957
|
+
borderWidth: 1,
|
|
4958
|
+
borderStyle: 'solid',
|
|
4959
|
+
borderColor: color,
|
|
4960
|
+
_hover: {
|
|
4961
|
+
backgroundColor: color,
|
|
4962
|
+
color: textColor,
|
|
4963
|
+
opacity: 0.9
|
|
4964
|
+
},
|
|
4965
|
+
_active: {
|
|
4966
|
+
backgroundColor: color,
|
|
4967
|
+
color: textColor,
|
|
4968
|
+
opacity: 0.95
|
|
4969
|
+
},
|
|
4970
|
+
_focusVisible: {
|
|
4971
|
+
outline: 'none',
|
|
4972
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
4973
|
+
},
|
|
4974
|
+
transition: 'background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease'
|
|
4976
4975
|
},
|
|
4977
|
-
|
|
4978
|
-
backgroundColor:
|
|
4979
|
-
|
|
4976
|
+
ghost: {
|
|
4977
|
+
backgroundColor: 'transparent',
|
|
4978
|
+
color: color,
|
|
4979
|
+
borderWidth: 1,
|
|
4980
|
+
borderStyle: 'solid',
|
|
4981
|
+
borderColor: 'transparent',
|
|
4982
|
+
_hover: {
|
|
4983
|
+
borderWidth: 1,
|
|
4984
|
+
borderStyle: 'solid',
|
|
4985
|
+
borderColor: color,
|
|
4986
|
+
color: color,
|
|
4987
|
+
opacity: 0.9
|
|
4988
|
+
},
|
|
4989
|
+
_active: {
|
|
4990
|
+
color: color,
|
|
4991
|
+
opacity: 0.95
|
|
4992
|
+
},
|
|
4993
|
+
_focusVisible: {
|
|
4994
|
+
outline: 'none',
|
|
4995
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
4996
|
+
},
|
|
4997
|
+
transition: 'background-color 0.2s ease, opacity 0.2s ease'
|
|
4980
4998
|
},
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4999
|
+
link: {
|
|
5000
|
+
backgroundColor: 'transparent',
|
|
5001
|
+
color: color,
|
|
5002
|
+
borderWidth: 0,
|
|
5003
|
+
borderStyle: 'none',
|
|
5004
|
+
borderColor: 'transparent',
|
|
5005
|
+
textDecoration: 'underline',
|
|
5006
|
+
textUnderlineOffset: '2px',
|
|
5007
|
+
textDecorationThickness: '1px',
|
|
5008
|
+
textDecorationColor: color,
|
|
5009
|
+
_hover: {
|
|
5010
|
+
color: color,
|
|
5011
|
+
opacity: 0.8
|
|
5012
|
+
},
|
|
5013
|
+
_active: {
|
|
5014
|
+
color: color,
|
|
5015
|
+
opacity: 0.9
|
|
5016
|
+
},
|
|
5017
|
+
_focusVisible: {
|
|
5018
|
+
outline: 'none',
|
|
5019
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
5020
|
+
},
|
|
5021
|
+
transition: 'opacity 0.2s ease'
|
|
4984
5022
|
},
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
5023
|
+
borderMoving: {
|
|
5024
|
+
position: 'relative',
|
|
5025
|
+
backgroundColor: 'black',
|
|
5026
|
+
color: textColor,
|
|
5027
|
+
overflow: 'hidden',
|
|
5028
|
+
borderWidth: 0,
|
|
5029
|
+
borderStyle: 'none',
|
|
5030
|
+
borderColor: 'transparent',
|
|
5031
|
+
_hover: {
|
|
5032
|
+
color: textColor
|
|
5033
|
+
},
|
|
5034
|
+
_active: {
|
|
5035
|
+
color: textColor
|
|
5036
|
+
},
|
|
5037
|
+
_focusVisible: {
|
|
5038
|
+
outline: 'none',
|
|
5039
|
+
boxShadow: '0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(0, 0, 0, 0.8)'
|
|
5040
|
+
},
|
|
5041
|
+
transition: 'opacity 0.2s ease'
|
|
4998
5042
|
},
|
|
4999
|
-
|
|
5000
|
-
|
|
5043
|
+
animatedStroke: {
|
|
5044
|
+
display: 'inline-block',
|
|
5045
|
+
margin: '0 auto',
|
|
5046
|
+
textAlign: 'center',
|
|
5047
|
+
textDecoration: 'none',
|
|
5048
|
+
position: 'relative',
|
|
5049
|
+
cursor: 'pointer',
|
|
5050
|
+
backgroundColor: 'transparent',
|
|
5051
|
+
color: color,
|
|
5052
|
+
borderWidth: 0,
|
|
5053
|
+
borderStyle: 'none',
|
|
5054
|
+
borderColor: 'transparent',
|
|
5055
|
+
_hover: {
|
|
5056
|
+
color: color
|
|
5057
|
+
},
|
|
5058
|
+
_active: {
|
|
5059
|
+
color: color
|
|
5060
|
+
},
|
|
5061
|
+
_focusVisible: {
|
|
5062
|
+
outline: 'none',
|
|
5063
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
5064
|
+
},
|
|
5065
|
+
transition: 'opacity 0.2s ease'
|
|
5066
|
+
}
|
|
5067
|
+
};
|
|
5068
|
+
};
|
|
5069
|
+
|
|
5070
|
+
var _excluded$d = ["shape", "size", "isDisabled", "onClick", "views", "mainTone", "tone", "borderMovingGradientColors", "borderMovingDuration", "content", "shadow"],
|
|
5071
|
+
_excluded2$3 = ["to", "onClick", "views", "children", "size", "accentColor", "textColor", "getColor", "shadow"],
|
|
5072
|
+
_excluded3$3 = ["variant", "to", "isDisabled", "isLoading", "isAuto", "isFilled", "isExternal", "shape", "shadow", "onClick", "views", "baseStyles", "sizeStyles", "iconPad", "resolvedTextColor", "content", "size"],
|
|
5073
|
+
_excluded4$3 = ["variant", "size", "shape", "iconPosition", "loaderPosition", "backgroundColor", "color", "isAuto", "isFilled", "isDisabled", "isLoading", "isIconRounded", "icon", "children", "to", "isExternal", "shadow", "onClick", "views", "themeMode", "borderMovingDuration", "borderMovingGradientColors", "animatedStrokeAccentColor", "animatedStrokeTextColor"];
|
|
5074
|
+
// --- Helper: Button Content ---
|
|
5075
|
+
// Renders the inner content: Loader, Icon, and Children.
|
|
5076
|
+
var ButtonContent = _ref => {
|
|
5077
|
+
var {
|
|
5078
|
+
children,
|
|
5079
|
+
icon,
|
|
5080
|
+
isLoading,
|
|
5081
|
+
iconPosition = 'left',
|
|
5082
|
+
loaderPosition = 'left',
|
|
5083
|
+
size = 'md',
|
|
5084
|
+
resolvedTextColor,
|
|
5085
|
+
isIconRounded,
|
|
5086
|
+
views
|
|
5087
|
+
} = _ref;
|
|
5088
|
+
var Wrapper = ['left', 'right'].includes(iconPosition) ? Horizontal : Vertical;
|
|
5089
|
+
var sizeStyles = ButtonSizes[size];
|
|
5090
|
+
var iconPad = isIconRounded ? IconSizes$1[size] : {};
|
|
5091
|
+
return /*#__PURE__*/React.createElement(Wrapper, Object.assign({
|
|
5092
|
+
gap: 8,
|
|
5093
|
+
alignItems: "center",
|
|
5094
|
+
justifyContent: "center"
|
|
5095
|
+
}, sizeStyles, iconPad, views == null ? void 0 : views.content), isLoading && loaderPosition === 'left' && (/*#__PURE__*/React.createElement(Loader, Object.assign({
|
|
5096
|
+
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
5097
|
+
color: 'currentColor'
|
|
5098
|
+
}, views == null ? void 0 : views.loader))), icon && ['left', 'top'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React.createElement(View, Object.assign({
|
|
5099
|
+
color: 'currentColor'
|
|
5100
|
+
}, views == null ? void 0 : views.icon), icon)), children, icon && ['right', 'bottom'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React.createElement(View, Object.assign({
|
|
5101
|
+
color: 'currentColor'
|
|
5102
|
+
}, views == null ? void 0 : views.icon), icon)), isLoading && loaderPosition === 'right' && (/*#__PURE__*/React.createElement(Loader, Object.assign({
|
|
5103
|
+
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
5104
|
+
color: 'currentColor'
|
|
5105
|
+
}, views == null ? void 0 : views.loader))));
|
|
5106
|
+
};
|
|
5107
|
+
// --- Variant: Border Moving ---
|
|
5108
|
+
var BorderMovingButton = _ref2 => {
|
|
5109
|
+
var {
|
|
5110
|
+
shape = 'rounded',
|
|
5111
|
+
size = 'md',
|
|
5112
|
+
isDisabled,
|
|
5113
|
+
onClick,
|
|
5114
|
+
views,
|
|
5115
|
+
mainTone,
|
|
5116
|
+
tone,
|
|
5117
|
+
borderMovingGradientColors,
|
|
5118
|
+
borderMovingDuration,
|
|
5119
|
+
content,
|
|
5120
|
+
shadow
|
|
5121
|
+
} = _ref2,
|
|
5122
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$d);
|
|
5123
|
+
var sizeStyles = ButtonSizes[size];
|
|
5124
|
+
var borderWidth = 3;
|
|
5125
|
+
var numericWidth = typeof sizeStyles.width === 'number' ? sizeStyles.width : 300;
|
|
5126
|
+
var numericHeight = typeof sizeStyles.height === 'number' ? sizeStyles.height : 64;
|
|
5127
|
+
var numericBorderRadius = (() => {
|
|
5128
|
+
var shapeValue = ButtonShapes[shape];
|
|
5129
|
+
if (typeof shapeValue === 'number') {
|
|
5130
|
+
return shapeValue;
|
|
5131
|
+
}
|
|
5132
|
+
if (typeof shapeValue === 'string') {
|
|
5133
|
+
return parseInt(shapeValue, 10) || 50;
|
|
5134
|
+
}
|
|
5135
|
+
return 50;
|
|
5136
|
+
})();
|
|
5137
|
+
var containerBg = mainTone;
|
|
5138
|
+
// Use high contrast text color for this variant
|
|
5139
|
+
var borderMovingTextColor = tone === 'light' ? '#000000' : '#FFFFFF';
|
|
5140
|
+
// Create gradient string for border animation
|
|
5141
|
+
var gradientColors = borderMovingGradientColors.join(', ');
|
|
5142
|
+
// Animation sequence for the moving border effect
|
|
5143
|
+
var borderAnimation = {
|
|
5144
|
+
from: {
|
|
5145
|
+
backgroundPosition: '0% 50%'
|
|
5001
5146
|
},
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
5147
|
+
to: {
|
|
5148
|
+
backgroundPosition: '200% 50%'
|
|
5005
5149
|
},
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5150
|
+
duration: borderMovingDuration + "s",
|
|
5151
|
+
timingFunction: 'linear',
|
|
5152
|
+
iterationCount: 'infinite'
|
|
5153
|
+
};
|
|
5154
|
+
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
5155
|
+
position: "relative",
|
|
5156
|
+
display: "inline-flex",
|
|
5157
|
+
alignItems: "center",
|
|
5158
|
+
justifyContent: "center",
|
|
5159
|
+
borderRadius: ButtonShapes[shape],
|
|
5160
|
+
cursor: isDisabled ? 'default' : 'pointer',
|
|
5161
|
+
onClick: onClick,
|
|
5162
|
+
boxShadow: shadow,
|
|
5163
|
+
padding: borderWidth,
|
|
5164
|
+
background: "linear-gradient(90deg, " + borderMovingGradientColors[0] + ", " + borderMovingGradientColors[1] + ", " + borderMovingGradientColors[2] + ", " + borderMovingGradientColors[0] + ")",
|
|
5165
|
+
backgroundSize: "200% 100%",
|
|
5166
|
+
animate: borderAnimation
|
|
5167
|
+
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React.createElement(View, {
|
|
5168
|
+
display: "flex",
|
|
5169
|
+
alignItems: "center",
|
|
5170
|
+
justifyContent: "center",
|
|
5171
|
+
backgroundColor: containerBg,
|
|
5172
|
+
borderRadius: Math.max(0, numericBorderRadius - borderWidth),
|
|
5173
|
+
width: "100%",
|
|
5174
|
+
height: "100%",
|
|
5175
|
+
minWidth: numericWidth - borderWidth * 2,
|
|
5176
|
+
minHeight: numericHeight - borderWidth * 2,
|
|
5177
|
+
color: borderMovingTextColor,
|
|
5178
|
+
fontSize: 14,
|
|
5179
|
+
cursor: "pointer"
|
|
5180
|
+
}, content));
|
|
5181
|
+
};
|
|
5182
|
+
// --- Variant: Animated Stroke ---
|
|
5183
|
+
var AnimatedStrokeButton = _ref3 => {
|
|
5184
|
+
var {
|
|
5185
|
+
to,
|
|
5186
|
+
onClick,
|
|
5187
|
+
views,
|
|
5188
|
+
children,
|
|
5189
|
+
size = 'md',
|
|
5190
|
+
accentColor,
|
|
5191
|
+
textColor,
|
|
5192
|
+
getColor,
|
|
5193
|
+
shadow
|
|
5194
|
+
} = _ref3,
|
|
5195
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$3);
|
|
5196
|
+
var resolvedAccentColor = getColor(accentColor);
|
|
5197
|
+
var resolvedTextColor = getColor(textColor);
|
|
5198
|
+
var sizeStyles = ButtonSizes[size];
|
|
5199
|
+
var numericWidth = typeof sizeStyles.width === 'number' ? sizeStyles.width : 300;
|
|
5200
|
+
var numericHeight = typeof sizeStyles.height === 'number' ? sizeStyles.height : 60;
|
|
5201
|
+
var strokeAnimation = {
|
|
5202
|
+
from: {
|
|
5203
|
+
strokeWidth: '8px',
|
|
5204
|
+
strokeDasharray: '0 500',
|
|
5205
|
+
strokeDashoffset: -454
|
|
5019
5206
|
},
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
maxWidth: '20rem',
|
|
5025
|
-
margin: '0 auto',
|
|
5026
|
-
textAlign: 'center',
|
|
5027
|
-
textDecoration: 'none',
|
|
5028
|
-
position: 'relative',
|
|
5029
|
-
cursor: 'pointer',
|
|
5030
|
-
backgroundColor: 'transparent',
|
|
5031
|
-
borderWidth: 0,
|
|
5032
|
-
borderStyle: 'none',
|
|
5033
|
-
borderColor: 'transparent',
|
|
5034
|
-
_focusVisible: {
|
|
5035
|
-
outline: 'none',
|
|
5036
|
-
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
5207
|
+
to: {
|
|
5208
|
+
strokeWidth: '3px',
|
|
5209
|
+
strokeDasharray: '760',
|
|
5210
|
+
strokeDashoffset: 0
|
|
5037
5211
|
},
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5212
|
+
duration: '0.9s',
|
|
5213
|
+
timingFunction: 'ease-in',
|
|
5214
|
+
fillMode: 'forwards'
|
|
5215
|
+
};
|
|
5216
|
+
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
5217
|
+
as: to ? 'a' : 'div',
|
|
5218
|
+
href: to ? to : undefined,
|
|
5219
|
+
onClick: onClick,
|
|
5220
|
+
display: "inline-block",
|
|
5221
|
+
maxWidth: "20rem",
|
|
5222
|
+
margin: "0 auto",
|
|
5223
|
+
textAlign: "center",
|
|
5224
|
+
textDecoration: "none",
|
|
5225
|
+
position: "relative",
|
|
5226
|
+
cursor: "pointer",
|
|
5227
|
+
boxShadow: shadow
|
|
5228
|
+
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React.createElement(View, {
|
|
5229
|
+
as: "svg",
|
|
5230
|
+
display: "block",
|
|
5231
|
+
height: numericHeight,
|
|
5232
|
+
width: numericWidth,
|
|
5233
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
5234
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
5235
|
+
as: "rect",
|
|
5236
|
+
height: numericHeight,
|
|
5237
|
+
width: numericWidth,
|
|
5238
|
+
fill: "transparent",
|
|
5239
|
+
stroke: resolvedAccentColor,
|
|
5240
|
+
strokeWidth: "8px",
|
|
5241
|
+
strokeDasharray: "0 500",
|
|
5242
|
+
strokeDashoffset: -454,
|
|
5243
|
+
on: {
|
|
5244
|
+
hover: {
|
|
5245
|
+
animate: strokeAnimation
|
|
5246
|
+
}
|
|
5247
|
+
}
|
|
5248
|
+
})), /*#__PURE__*/React.createElement(View, Object.assign({
|
|
5249
|
+
position: "absolute",
|
|
5250
|
+
top: 0,
|
|
5251
|
+
right: 0,
|
|
5252
|
+
bottom: 0,
|
|
5253
|
+
left: 0,
|
|
5254
|
+
display: "flex",
|
|
5255
|
+
alignItems: "center",
|
|
5256
|
+
justifyContent: "center",
|
|
5257
|
+
textAlign: "center",
|
|
5258
|
+
pointerEvents: "none",
|
|
5259
|
+
userSelect: "none",
|
|
5260
|
+
color: resolvedTextColor
|
|
5261
|
+
}, sizeStyles), children));
|
|
5262
|
+
};
|
|
5263
|
+
// --- Variant: Standard Button ---
|
|
5264
|
+
var StandardButton = _ref4 => {
|
|
5265
|
+
var {
|
|
5266
|
+
variant,
|
|
5267
|
+
to,
|
|
5268
|
+
isDisabled,
|
|
5269
|
+
isLoading,
|
|
5270
|
+
isAuto,
|
|
5271
|
+
isFilled,
|
|
5272
|
+
isExternal,
|
|
5273
|
+
shape = 'rounded',
|
|
5274
|
+
shadow,
|
|
5275
|
+
onClick,
|
|
5276
|
+
views,
|
|
5277
|
+
baseStyles,
|
|
5278
|
+
sizeStyles,
|
|
5279
|
+
iconPad,
|
|
5280
|
+
content // Destructure size to avoid passing it to Element
|
|
5281
|
+
} = _ref4,
|
|
5282
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$3);
|
|
5283
|
+
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
5284
|
+
as: variant === 'link' && to ? 'div' : 'button',
|
|
5285
|
+
type: variant === 'link' && to ? undefined : 'button',
|
|
5286
|
+
disabled: Boolean(isDisabled || isLoading)
|
|
5287
|
+
}, sizeStyles, iconPad, {
|
|
5288
|
+
display: "inline-flex",
|
|
5289
|
+
alignItems: "center",
|
|
5290
|
+
justifyContent: "center",
|
|
5291
|
+
width: isAuto ? 'fit-content' : isFilled ? '100%' : undefined,
|
|
5292
|
+
/* visuals */
|
|
5293
|
+
borderRadius: ButtonShapes[shape],
|
|
5294
|
+
boxShadow: shadow,
|
|
5295
|
+
transition: "all 0.2s ease",
|
|
5296
|
+
cursor: isDisabled ? 'default' : 'pointer',
|
|
5297
|
+
onClick: onClick
|
|
5298
|
+
}, baseStyles, views == null ? void 0 : views.container, props), to ? (/*#__PURE__*/React.createElement(Link, Object.assign({
|
|
5299
|
+
to: to,
|
|
5300
|
+
isExternal: isExternal,
|
|
5301
|
+
color: "currentColor",
|
|
5302
|
+
textDecoration: "inherit",
|
|
5303
|
+
_hover: {
|
|
5304
|
+
color: 'currentColor'
|
|
5305
|
+
}
|
|
5306
|
+
}, views == null ? void 0 : views.link), content)) : content);
|
|
5307
|
+
};
|
|
5308
|
+
// --- Main Component ---
|
|
5309
|
+
var ButtonView = _ref5 => {
|
|
5310
|
+
var _ref6, _base$color;
|
|
5062
5311
|
var {
|
|
5063
5312
|
/* behaviour */
|
|
5064
5313
|
variant = 'filled',
|
|
@@ -5068,8 +5317,10 @@ var ButtonView = _ref => {
|
|
|
5068
5317
|
loaderPosition = 'left',
|
|
5069
5318
|
backgroundColor,
|
|
5070
5319
|
// primary candidate for main color
|
|
5071
|
-
color
|
|
5072
|
-
|
|
5320
|
+
color,
|
|
5321
|
+
// 2nd candidate for main color (NOT text‑color)
|
|
5322
|
+
isAuto,
|
|
5323
|
+
isFilled,
|
|
5073
5324
|
isDisabled,
|
|
5074
5325
|
isLoading,
|
|
5075
5326
|
isIconRounded,
|
|
@@ -5089,8 +5340,8 @@ var ButtonView = _ref => {
|
|
|
5089
5340
|
borderMovingGradientColors = ['#705CFF', '#FF5C97', '#FFC75C'],
|
|
5090
5341
|
animatedStrokeAccentColor = '#705CFF',
|
|
5091
5342
|
animatedStrokeTextColor = '#333333'
|
|
5092
|
-
} =
|
|
5093
|
-
props = _objectWithoutPropertiesLoose(
|
|
5343
|
+
} = _ref5,
|
|
5344
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$3);
|
|
5094
5345
|
/* theme helpers */
|
|
5095
5346
|
var {
|
|
5096
5347
|
getColor,
|
|
@@ -5098,237 +5349,78 @@ var ButtonView = _ref => {
|
|
|
5098
5349
|
} = useTheme();
|
|
5099
5350
|
var mode = elementMode != null ? elementMode : themeMode;
|
|
5100
5351
|
/* MAIN COLOR – determines the entire palette */
|
|
5101
|
-
var mainColorKey = (
|
|
5352
|
+
var mainColorKey = (_ref6 = backgroundColor != null ? backgroundColor : color) != null ? _ref6 : 'theme.primary';
|
|
5102
5353
|
var mainTone = getColor(isDisabled ? 'theme.disabled' : mainColorKey, {
|
|
5103
5354
|
themeMode: mode
|
|
5104
5355
|
});
|
|
5105
5356
|
var tone = contrast(mainTone);
|
|
5357
|
+
/* text color with mixBlendMode for maximum visibility */
|
|
5358
|
+
var textColor = tone === 'light' ? '#000000' : '#FFFFFF';
|
|
5106
5359
|
/* variant palette */
|
|
5107
|
-
var palette = useMemo(() => getButtonVariants(mainTone, tone
|
|
5360
|
+
var palette = useMemo(() => getButtonVariants(mainTone, tone === 'light'), [mainTone, tone, mode]);
|
|
5108
5361
|
var base = palette[variant];
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
var
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
5123
|
-
color: 'inherit',
|
|
5124
|
-
_hover: {
|
|
5125
|
-
color: 'inherit'
|
|
5126
|
-
}
|
|
5127
|
-
}, views == null ? void 0 : views.loader))), icon && ['left', 'top'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React.createElement(View, Object.assign({
|
|
5128
|
-
color: 'inherit',
|
|
5129
|
-
_hover: {
|
|
5130
|
-
color: 'inherit'
|
|
5131
|
-
}
|
|
5132
|
-
}, views == null ? void 0 : views.icon), icon)), children, icon && ['right', 'bottom'].includes(iconPosition) && !isLoading && (/*#__PURE__*/React.createElement(View, Object.assign({
|
|
5133
|
-
color: 'inherit',
|
|
5134
|
-
_hover: {
|
|
5135
|
-
color: 'inherit'
|
|
5136
|
-
}
|
|
5137
|
-
}, views == null ? void 0 : views.icon), icon)), isLoading && loaderPosition === 'right' && (/*#__PURE__*/React.createElement(Loader, Object.assign({
|
|
5138
|
-
size: size === 'xs' || size === 'sm' ? 'sm' : 'md',
|
|
5139
|
-
color: 'inherit',
|
|
5140
|
-
_hover: {
|
|
5141
|
-
color: 'inherit'
|
|
5142
|
-
}
|
|
5143
|
-
}, views == null ? void 0 : views.loader))));
|
|
5144
|
-
// Handle special effect variants
|
|
5362
|
+
var resolvedTextColor = (_base$color = base == null ? void 0 : base.color) != null ? _base$color : textColor;
|
|
5363
|
+
// Render content logic safely
|
|
5364
|
+
var content = /*#__PURE__*/React.createElement(ButtonContent, {
|
|
5365
|
+
icon: icon,
|
|
5366
|
+
isLoading: isLoading,
|
|
5367
|
+
iconPosition: iconPosition,
|
|
5368
|
+
loaderPosition: loaderPosition,
|
|
5369
|
+
size: size,
|
|
5370
|
+
resolvedTextColor: resolvedTextColor,
|
|
5371
|
+
isIconRounded: isIconRounded,
|
|
5372
|
+
views: views
|
|
5373
|
+
}, children);
|
|
5374
|
+
// Dispatch to the correct variant component
|
|
5145
5375
|
if (variant === 'borderMoving') {
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
})
|
|
5159
|
-
var path = generateOffsetPath(numericWidth, numericHeight, numericBorderRadius);
|
|
5160
|
-
// Determine background color from props or use mainTone
|
|
5161
|
-
var containerBg = mainTone;
|
|
5162
|
-
// Calculate text color with proper contrast
|
|
5163
|
-
var borderMovingTextColor = tone === 'light' ? '#000000' : '#FFFFFF';
|
|
5164
|
-
return /*#__PURE__*/React.createElement(View, Object.assign({
|
|
5165
|
-
width: numericWidth,
|
|
5166
|
-
height: numericHeight,
|
|
5167
|
-
position: "relative",
|
|
5168
|
-
backgroundColor: containerBg,
|
|
5169
|
-
overflow: "hidden",
|
|
5170
|
-
borderRadius: ButtonShapes[shape],
|
|
5171
|
-
cursor: isDisabled ? 'default' : 'pointer',
|
|
5172
|
-
onClick: onClick
|
|
5173
|
-
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React.createElement("svg", {
|
|
5174
|
-
width: numericWidth,
|
|
5175
|
-
height: numericHeight,
|
|
5176
|
-
style: {
|
|
5177
|
-
position: 'absolute',
|
|
5178
|
-
top: 0,
|
|
5179
|
-
left: 0,
|
|
5180
|
-
zIndex: 1
|
|
5181
|
-
}
|
|
5182
|
-
}, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
|
5183
|
-
id: "circleGradient",
|
|
5184
|
-
x1: "0%",
|
|
5185
|
-
y1: "100%",
|
|
5186
|
-
x2: "100%",
|
|
5187
|
-
y2: "100%"
|
|
5188
|
-
}, /*#__PURE__*/React.createElement("stop", {
|
|
5189
|
-
offset: "0%",
|
|
5190
|
-
stopColor: "transparent"
|
|
5191
|
-
}), /*#__PURE__*/React.createElement("stop", {
|
|
5192
|
-
offset: "30%",
|
|
5193
|
-
stopColor: borderMovingGradientColors[0]
|
|
5194
|
-
}), /*#__PURE__*/React.createElement("stop", {
|
|
5195
|
-
offset: "60%",
|
|
5196
|
-
stopColor: borderMovingGradientColors[1]
|
|
5197
|
-
}), /*#__PURE__*/React.createElement("stop", {
|
|
5198
|
-
offset: "100%",
|
|
5199
|
-
stopColor: borderMovingGradientColors[2]
|
|
5200
|
-
})), /*#__PURE__*/React.createElement("path", {
|
|
5201
|
-
id: "uniqueId",
|
|
5202
|
-
d: path,
|
|
5203
|
-
fill: "none",
|
|
5204
|
-
stroke: "transparent"
|
|
5205
|
-
})), /*#__PURE__*/React.createElement("circle", {
|
|
5206
|
-
r: "30",
|
|
5207
|
-
fill: "url(#circleGradient)"
|
|
5208
|
-
}, /*#__PURE__*/React.createElement("animateMotion", {
|
|
5209
|
-
dur: borderMovingDuration + 's',
|
|
5210
|
-
repeatCount: "indefinite",
|
|
5211
|
-
path: path
|
|
5212
|
-
}))), /*#__PURE__*/React.createElement(View, {
|
|
5213
|
-
position: "absolute",
|
|
5214
|
-
backgroundColor: containerBg,
|
|
5215
|
-
borderRadius: Math.max(0, numericBorderRadius - 1),
|
|
5216
|
-
top: borderWidth,
|
|
5217
|
-
bottom: borderWidth,
|
|
5218
|
-
left: borderWidth,
|
|
5219
|
-
right: borderWidth,
|
|
5220
|
-
zIndex: 2
|
|
5221
|
-
}), /*#__PURE__*/React.createElement(View, {
|
|
5222
|
-
position: "relative",
|
|
5223
|
-
width: "100%",
|
|
5224
|
-
height: "100%",
|
|
5225
|
-
display: "flex",
|
|
5226
|
-
alignItems: "center",
|
|
5227
|
-
justifyContent: "center",
|
|
5228
|
-
color: borderMovingTextColor,
|
|
5229
|
-
fontSize: 14,
|
|
5230
|
-
zIndex: 3,
|
|
5231
|
-
style: {
|
|
5232
|
-
cursor: 'pointer'
|
|
5233
|
-
}
|
|
5234
|
-
}, content));
|
|
5376
|
+
return /*#__PURE__*/React.createElement(BorderMovingButton, Object.assign({
|
|
5377
|
+
variant: variant,
|
|
5378
|
+
shape: shape,
|
|
5379
|
+
size: size,
|
|
5380
|
+
isDisabled: isDisabled,
|
|
5381
|
+
onClick: onClick,
|
|
5382
|
+
views: views,
|
|
5383
|
+
mainTone: mainTone,
|
|
5384
|
+
tone: tone,
|
|
5385
|
+
borderMovingGradientColors: borderMovingGradientColors,
|
|
5386
|
+
borderMovingDuration: borderMovingDuration,
|
|
5387
|
+
content: content
|
|
5388
|
+
}, props));
|
|
5235
5389
|
}
|
|
5236
5390
|
if (variant === 'animatedStroke') {
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
var _numericHeight = typeof sizeStyles.height === 'number' ? sizeStyles.height : 60;
|
|
5241
|
-
var strokeAnimation = {
|
|
5242
|
-
from: {
|
|
5243
|
-
strokeWidth: '8px',
|
|
5244
|
-
strokeDasharray: '0 500',
|
|
5245
|
-
strokeDashoffset: -454
|
|
5246
|
-
},
|
|
5247
|
-
to: {
|
|
5248
|
-
strokeWidth: '3px',
|
|
5249
|
-
strokeDasharray: '760',
|
|
5250
|
-
strokeDashoffset: 0
|
|
5251
|
-
},
|
|
5252
|
-
duration: '0.9s',
|
|
5253
|
-
timingFunction: 'ease-in',
|
|
5254
|
-
fillMode: 'forwards'
|
|
5255
|
-
};
|
|
5256
|
-
return /*#__PURE__*/React.createElement(View, Object.assign({
|
|
5257
|
-
as: to ? 'a' : 'div',
|
|
5258
|
-
href: to ? to : undefined,
|
|
5391
|
+
return /*#__PURE__*/React.createElement(AnimatedStrokeButton, Object.assign({
|
|
5392
|
+
variant: variant,
|
|
5393
|
+
to: to,
|
|
5259
5394
|
onClick: onClick,
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
cursor: "pointer"
|
|
5267
|
-
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React.createElement(View, {
|
|
5268
|
-
as: "svg",
|
|
5269
|
-
display: "block",
|
|
5270
|
-
height: _numericHeight,
|
|
5271
|
-
width: _numericWidth,
|
|
5272
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
5273
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
5274
|
-
as: "rect",
|
|
5275
|
-
height: _numericHeight,
|
|
5276
|
-
width: _numericWidth,
|
|
5277
|
-
fill: "transparent",
|
|
5278
|
-
stroke: resolvedAccentColor,
|
|
5279
|
-
strokeWidth: "8px",
|
|
5280
|
-
strokeDasharray: "120 500",
|
|
5281
|
-
strokeDashoffset: -454,
|
|
5282
|
-
on: {
|
|
5283
|
-
hover: {
|
|
5284
|
-
animate: strokeAnimation
|
|
5285
|
-
}
|
|
5286
|
-
}
|
|
5287
|
-
})), /*#__PURE__*/React.createElement(View, {
|
|
5288
|
-
position: "absolute",
|
|
5289
|
-
top: 0,
|
|
5290
|
-
right: 0,
|
|
5291
|
-
bottom: 0,
|
|
5292
|
-
left: 0,
|
|
5293
|
-
display: "flex",
|
|
5294
|
-
alignItems: "center",
|
|
5295
|
-
justifyContent: "center",
|
|
5296
|
-
paddingX: 16,
|
|
5297
|
-
paddingY: 8,
|
|
5298
|
-
fontSize: "22px",
|
|
5299
|
-
lineHeight: "1.3",
|
|
5300
|
-
letterSpacing: "0.3rem",
|
|
5301
|
-
textAlign: "center",
|
|
5302
|
-
textTransform: "uppercase",
|
|
5303
|
-
whiteSpace: "normal",
|
|
5304
|
-
wordBreak: "break-word",
|
|
5305
|
-
pointerEvents: "none",
|
|
5306
|
-
userSelect: "none",
|
|
5307
|
-
color: resolvedTextColor
|
|
5308
|
-
}, children));
|
|
5395
|
+
views: views,
|
|
5396
|
+
size: size,
|
|
5397
|
+
accentColor: animatedStrokeAccentColor,
|
|
5398
|
+
textColor: animatedStrokeTextColor,
|
|
5399
|
+
getColor: getColor
|
|
5400
|
+
}, props), children);
|
|
5309
5401
|
}
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
display: "flex",
|
|
5316
|
-
alignItems: "center",
|
|
5317
|
-
justifyContent: "center",
|
|
5318
|
-
// width={isAuto ? 'fit-content' : isFilled ? '100%' : undefined}
|
|
5319
|
-
/* visuals */
|
|
5320
|
-
borderRadius: ButtonShapes[shape],
|
|
5321
|
-
boxShadow: shadow,
|
|
5322
|
-
transition: "all 0.2s ease",
|
|
5323
|
-
cursor: isDisabled ? 'default' : 'pointer',
|
|
5324
|
-
onClick: onClick
|
|
5325
|
-
}, base, views == null ? void 0 : views.container, props), to ? (/*#__PURE__*/React.createElement(Link, Object.assign({
|
|
5402
|
+
// Standard variants (filled, outline, ghost, link)
|
|
5403
|
+
var sizeStyles = ButtonSizes[size];
|
|
5404
|
+
var iconPad = isIconRounded ? IconSizes$1[size] : {};
|
|
5405
|
+
return /*#__PURE__*/React.createElement(StandardButton, Object.assign({
|
|
5406
|
+
variant: variant,
|
|
5326
5407
|
to: to,
|
|
5408
|
+
isDisabled: isDisabled,
|
|
5409
|
+
isLoading: isLoading,
|
|
5410
|
+
isAuto: isAuto,
|
|
5411
|
+
isFilled: isFilled,
|
|
5327
5412
|
isExternal: isExternal,
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5413
|
+
shape: shape,
|
|
5414
|
+
shadow: shadow,
|
|
5415
|
+
onClick: onClick,
|
|
5416
|
+
views: views,
|
|
5417
|
+
baseStyles: base,
|
|
5418
|
+
sizeStyles: sizeStyles,
|
|
5419
|
+
iconPad: iconPad,
|
|
5420
|
+
resolvedTextColor: resolvedTextColor,
|
|
5421
|
+
content: content,
|
|
5422
|
+
size: size
|
|
5423
|
+
}, props));
|
|
5332
5424
|
};
|
|
5333
5425
|
|
|
5334
5426
|
// Importing a custom hook to manage the state specific to the button component.
|
|
@@ -5464,9 +5556,9 @@ var useCardContext = () => {
|
|
|
5464
5556
|
};
|
|
5465
5557
|
|
|
5466
5558
|
var _excluded$e = ["children", "views", "style", "themeMode"],
|
|
5467
|
-
_excluded2$
|
|
5468
|
-
_excluded3$
|
|
5469
|
-
_excluded4$
|
|
5559
|
+
_excluded2$4 = ["children", "views", "style", "themeMode"],
|
|
5560
|
+
_excluded3$4 = ["children", "views", "style", "themeMode"],
|
|
5561
|
+
_excluded4$4 = ["variant", "size", "shape", "children", "header", "footer", "isFullWidth", "views", "style", "themeMode"];
|
|
5470
5562
|
var CardHeader = _ref => {
|
|
5471
5563
|
var _contextStyles$header;
|
|
5472
5564
|
var {
|
|
@@ -5491,7 +5583,7 @@ var CardContent = _ref2 => {
|
|
|
5491
5583
|
children,
|
|
5492
5584
|
style
|
|
5493
5585
|
} = _ref2,
|
|
5494
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
5586
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
|
|
5495
5587
|
var theme = useTheme();
|
|
5496
5588
|
var {
|
|
5497
5589
|
styles: contextStyles
|
|
@@ -5509,7 +5601,7 @@ var CardFooter = _ref3 => {
|
|
|
5509
5601
|
children,
|
|
5510
5602
|
style
|
|
5511
5603
|
} = _ref3,
|
|
5512
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
5604
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
|
|
5513
5605
|
var theme = useTheme();
|
|
5514
5606
|
var {
|
|
5515
5607
|
styles: contextStyles
|
|
@@ -5535,7 +5627,7 @@ var CardView = _ref4 => {
|
|
|
5535
5627
|
style,
|
|
5536
5628
|
themeMode: elementMode
|
|
5537
5629
|
} = _ref4,
|
|
5538
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
5630
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$4);
|
|
5539
5631
|
var theme = useTheme();
|
|
5540
5632
|
var defaultStyles = getDefaultCardStyles();
|
|
5541
5633
|
// Prepare context value, merging default styles with user's `views` overrides
|
|
@@ -5868,9 +5960,9 @@ var useCarouselContext = () => {
|
|
|
5868
5960
|
};
|
|
5869
5961
|
|
|
5870
5962
|
var _excluded$f = ["children", "isActive", "views"],
|
|
5871
|
-
_excluded2$
|
|
5872
|
-
_excluded3$
|
|
5873
|
-
_excluded4$
|
|
5963
|
+
_excluded2$5 = ["views", "children"],
|
|
5964
|
+
_excluded3$5 = ["views", "children"],
|
|
5965
|
+
_excluded4$5 = ["children", "views"],
|
|
5874
5966
|
_excluded5$1 = ["children", "views", "style"],
|
|
5875
5967
|
_excluded6$1 = ["children", "defaultActiveIndex", "activeIndex", "onChange", "showNavigation", "navigationPosition", "prevButton", "nextButton", "showIndicators", "indicatorPosition", "indicatorVariant", "autoPlay", "autoPlayInterval", "pauseOnHover", "infinite", "direction", "transitionDuration", "views", "stepIndices", "themeMode"];
|
|
5876
5968
|
var CarouselSlide = _ref => {
|
|
@@ -5895,7 +5987,7 @@ var CarouselPreviousComponent = _ref2 => {
|
|
|
5895
5987
|
children // Allow custom content/icon
|
|
5896
5988
|
// Spread remaining ButtonProps
|
|
5897
5989
|
} = _ref2,
|
|
5898
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
5990
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$5);
|
|
5899
5991
|
var {
|
|
5900
5992
|
goToPrevious,
|
|
5901
5993
|
canGoPrevious,
|
|
@@ -5918,7 +6010,7 @@ var CarouselNextComponent = _ref3 => {
|
|
|
5918
6010
|
views,
|
|
5919
6011
|
children
|
|
5920
6012
|
} = _ref3,
|
|
5921
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
6013
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$5);
|
|
5922
6014
|
var {
|
|
5923
6015
|
goToNext,
|
|
5924
6016
|
canGoNext,
|
|
@@ -5941,7 +6033,7 @@ var CarouselItemComponent = _ref4 => {
|
|
|
5941
6033
|
children,
|
|
5942
6034
|
views
|
|
5943
6035
|
} = _ref4,
|
|
5944
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
6036
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$5);
|
|
5945
6037
|
var {
|
|
5946
6038
|
registerSlide,
|
|
5947
6039
|
unregisterSlide,
|
|
@@ -7686,9 +7778,9 @@ var ContextMenuItemStates = {
|
|
|
7686
7778
|
// using viewport-aware algorithms in the ContextMenu component
|
|
7687
7779
|
|
|
7688
7780
|
var _excluded$i = ["children", "disableNativeContextMenu", "asChild", "isDisabled", "views"],
|
|
7689
|
-
_excluded2$
|
|
7690
|
-
_excluded3$
|
|
7691
|
-
_excluded4$
|
|
7781
|
+
_excluded2$6 = ["items", "children", "position", "side", "align", "views", "style"],
|
|
7782
|
+
_excluded3$6 = ["item", "children", "onSelect", "isDisabled", "views"],
|
|
7783
|
+
_excluded4$6 = ["views"],
|
|
7692
7784
|
_excluded5$2 = ["views"],
|
|
7693
7785
|
_excluded6$2 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views", "themeMode"];
|
|
7694
7786
|
// Create context for the ContextMenu
|
|
@@ -7795,7 +7887,7 @@ var ContextMenuContent = _ref3 => {
|
|
|
7795
7887
|
views,
|
|
7796
7888
|
style // Capture user-provided style
|
|
7797
7889
|
} = _ref3,
|
|
7798
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
7890
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$6);
|
|
7799
7891
|
var {
|
|
7800
7892
|
isOpen,
|
|
7801
7893
|
position: contextPosition,
|
|
@@ -7910,7 +8002,7 @@ var ContextMenuItem = _ref4 => {
|
|
|
7910
8002
|
isDisabled = false,
|
|
7911
8003
|
views
|
|
7912
8004
|
} = _ref4,
|
|
7913
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
8005
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$6);
|
|
7914
8006
|
var {
|
|
7915
8007
|
activeSubmenuId,
|
|
7916
8008
|
setActiveSubmenuId,
|
|
@@ -8039,7 +8131,7 @@ var ContextMenuDivider = _ref5 => {
|
|
|
8039
8131
|
var {
|
|
8040
8132
|
views
|
|
8041
8133
|
} = _ref5,
|
|
8042
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$
|
|
8134
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$6);
|
|
8043
8135
|
return /*#__PURE__*/React.createElement(View, Object.assign({
|
|
8044
8136
|
height: "1px",
|
|
8045
8137
|
backgroundColor: "color.gray.200",
|
|
@@ -8155,7 +8247,7 @@ ContextMenu.Divider = ContextMenuDivider;
|
|
|
8155
8247
|
ContextMenu.Separator = ContextMenuSeparator; // Add the Separator component
|
|
8156
8248
|
|
|
8157
8249
|
var _excluded$k = ["src", "color", "views", "themeMode"],
|
|
8158
|
-
_excluded2$
|
|
8250
|
+
_excluded2$7 = ["path"];
|
|
8159
8251
|
var FileSVG = _ref => {
|
|
8160
8252
|
var {
|
|
8161
8253
|
src,
|
|
@@ -8185,7 +8277,7 @@ var FileImage = _ref2 => {
|
|
|
8185
8277
|
var {
|
|
8186
8278
|
path
|
|
8187
8279
|
} = _ref2,
|
|
8188
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
8280
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$7);
|
|
8189
8281
|
return /*#__PURE__*/React.createElement(Image, Object.assign({
|
|
8190
8282
|
src: path
|
|
8191
8283
|
}, props));
|
|
@@ -8661,9 +8753,9 @@ var IconSizes$2 = {
|
|
|
8661
8753
|
};
|
|
8662
8754
|
|
|
8663
8755
|
var _excluded$s = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
8664
|
-
_excluded2$
|
|
8665
|
-
_excluded3$
|
|
8666
|
-
_excluded4$
|
|
8756
|
+
_excluded2$8 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
8757
|
+
_excluded3$7 = ["option", "size", "removeOption"],
|
|
8758
|
+
_excluded4$7 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isMulti", "isFocused", "isHovered", "isDisabled", "isReadOnly", "options", "shadow", "size", "shape", "variant", "views", "onChange", "setHide", "setValue", "setIsHovered", "setIsFocused", "setHighlightedIndex", "highlightedIndex"];
|
|
8667
8759
|
/**
|
|
8668
8760
|
* Item Component
|
|
8669
8761
|
*
|
|
@@ -8786,7 +8878,7 @@ var HiddenSelect = _ref4 => {
|
|
|
8786
8878
|
isReadOnly = false,
|
|
8787
8879
|
options = []
|
|
8788
8880
|
} = _ref4,
|
|
8789
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$
|
|
8881
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$8);
|
|
8790
8882
|
var handleChange = event => {
|
|
8791
8883
|
if (onChange) onChange(event);
|
|
8792
8884
|
};
|
|
@@ -8871,7 +8963,7 @@ var MultiSelect = _ref6 => {
|
|
|
8871
8963
|
size = 'md',
|
|
8872
8964
|
removeOption = () => {}
|
|
8873
8965
|
} = _ref6,
|
|
8874
|
-
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$
|
|
8966
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$7);
|
|
8875
8967
|
var handleClick = () => removeOption(option);
|
|
8876
8968
|
return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
8877
8969
|
gap: 8,
|
|
@@ -8932,7 +9024,7 @@ var SelectView = _ref7 => {
|
|
|
8932
9024
|
setHighlightedIndex,
|
|
8933
9025
|
highlightedIndex
|
|
8934
9026
|
} = _ref7,
|
|
8935
|
-
props = _objectWithoutPropertiesLoose(_ref7, _excluded4$
|
|
9027
|
+
props = _objectWithoutPropertiesLoose(_ref7, _excluded4$7);
|
|
8936
9028
|
var {
|
|
8937
9029
|
ref: triggerRef,
|
|
8938
9030
|
relation,
|
|
@@ -12121,8 +12213,8 @@ var IconSizes$4 = {
|
|
|
12121
12213
|
};
|
|
12122
12214
|
|
|
12123
12215
|
var _excluded$y = ["size"],
|
|
12124
|
-
_excluded2$
|
|
12125
|
-
_excluded3$
|
|
12216
|
+
_excluded2$9 = ["size"],
|
|
12217
|
+
_excluded3$8 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "onChange", "onBlur", "setHide", "setNewOptions", "setIsHovered", "setIsFocused", "setValue", "views", "themeMode"];
|
|
12126
12218
|
var CountryList = _ref => {
|
|
12127
12219
|
var props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
12128
12220
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
@@ -12133,7 +12225,7 @@ var CountrySelector = props => (/*#__PURE__*/React.createElement(Input, Object.a
|
|
|
12133
12225
|
type: "country"
|
|
12134
12226
|
}, props)));
|
|
12135
12227
|
var CountryItem = _ref2 => {
|
|
12136
|
-
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
12228
|
+
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$9);
|
|
12137
12229
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
12138
12230
|
as: "li"
|
|
12139
12231
|
}, props));
|
|
@@ -12235,7 +12327,7 @@ var CountryPickerView = _ref5 => {
|
|
|
12235
12327
|
},
|
|
12236
12328
|
themeMode: elementMode
|
|
12237
12329
|
} = _ref5,
|
|
12238
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$
|
|
12330
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$8);
|
|
12239
12331
|
var {
|
|
12240
12332
|
getColor,
|
|
12241
12333
|
themeMode
|
|
@@ -12486,7 +12578,7 @@ var usePasswordState = props => {
|
|
|
12486
12578
|
};
|
|
12487
12579
|
|
|
12488
12580
|
var _excluded$A = ["visibleIcon", "hiddenIcon"],
|
|
12489
|
-
_excluded2$
|
|
12581
|
+
_excluded2$a = ["isVisible", "setIsVisible"];
|
|
12490
12582
|
var PasswordComponent = _ref => {
|
|
12491
12583
|
var {
|
|
12492
12584
|
visibleIcon = /*#__PURE__*/React.createElement(OpenEyeIcon, {
|
|
@@ -12502,7 +12594,7 @@ var PasswordComponent = _ref => {
|
|
|
12502
12594
|
isVisible,
|
|
12503
12595
|
setIsVisible
|
|
12504
12596
|
} = _usePasswordState,
|
|
12505
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
12597
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$a);
|
|
12506
12598
|
return /*#__PURE__*/React.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
12507
12599
|
type: isVisible ? 'text' : 'password',
|
|
12508
12600
|
isClearable: false,
|
|
@@ -14631,7 +14723,7 @@ var useHoverCardState = function useHoverCardState(_temp) {
|
|
|
14631
14723
|
};
|
|
14632
14724
|
|
|
14633
14725
|
var _excluded$J = ["children", "views", "asChild"],
|
|
14634
|
-
_excluded2$
|
|
14726
|
+
_excluded2$b = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
|
|
14635
14727
|
// Create context for the HoverCard
|
|
14636
14728
|
var HoverCardContext = /*#__PURE__*/createContext({
|
|
14637
14729
|
isOpen: false,
|
|
@@ -14717,7 +14809,7 @@ var HoverCardContent = _ref3 => {
|
|
|
14717
14809
|
minWidth = '50px',
|
|
14718
14810
|
maxWidth = '300px'
|
|
14719
14811
|
} = _ref3,
|
|
14720
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
14812
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$b);
|
|
14721
14813
|
var {
|
|
14722
14814
|
isOpen,
|
|
14723
14815
|
cancelCloseTimer,
|
|
@@ -15839,7 +15931,7 @@ var SwitchComponent$1 = props => {
|
|
|
15839
15931
|
var FormikSwitch = SwitchComponent$1;
|
|
15840
15932
|
|
|
15841
15933
|
var _excluded$N = ["name"],
|
|
15842
|
-
_excluded2$
|
|
15934
|
+
_excluded2$c = ["tags"];
|
|
15843
15935
|
/**
|
|
15844
15936
|
* Formik-integrated TagInput component
|
|
15845
15937
|
*/
|
|
@@ -15882,7 +15974,7 @@ var TagInputComponent$1 = props => {
|
|
|
15882
15974
|
var {
|
|
15883
15975
|
tags
|
|
15884
15976
|
} = tagInputState,
|
|
15885
|
-
stateWithoutTags = _objectWithoutPropertiesLoose(tagInputState, _excluded2$
|
|
15977
|
+
stateWithoutTags = _objectWithoutPropertiesLoose(tagInputState, _excluded2$c);
|
|
15886
15978
|
// Render the view component with combined props and state
|
|
15887
15979
|
return /*#__PURE__*/React.createElement(TagInputView, Object.assign({}, stateWithoutTags, restProps, {
|
|
15888
15980
|
tags: tags,
|
|
@@ -15918,7 +16010,7 @@ var TextFieldComponent$1 = props => {
|
|
|
15918
16010
|
var FormikTextField = TextFieldComponent$1;
|
|
15919
16011
|
|
|
15920
16012
|
var _excluded$P = ["visibleIcon", "hiddenIcon"],
|
|
15921
|
-
_excluded2$
|
|
16013
|
+
_excluded2$d = ["isVisible", "setIsVisible"];
|
|
15922
16014
|
var PasswordComponent$1 = _ref => {
|
|
15923
16015
|
var {
|
|
15924
16016
|
visibleIcon = /*#__PURE__*/React.createElement(OpenEyeIcon, {
|
|
@@ -15935,7 +16027,7 @@ var PasswordComponent$1 = _ref => {
|
|
|
15935
16027
|
isVisible,
|
|
15936
16028
|
setIsVisible
|
|
15937
16029
|
} = _usePasswordState,
|
|
15938
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
16030
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$d);
|
|
15939
16031
|
return /*#__PURE__*/React.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
15940
16032
|
type: isVisible ? 'text' : 'password',
|
|
15941
16033
|
isClearable: false,
|
|
@@ -17052,9 +17144,9 @@ var ModalTypography = {
|
|
|
17052
17144
|
};
|
|
17053
17145
|
|
|
17054
17146
|
var _excluded$T = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
|
|
17055
|
-
_excluded2$
|
|
17056
|
-
_excluded3$
|
|
17057
|
-
_excluded4$
|
|
17147
|
+
_excluded2$e = ["children", "shadow", "isFullScreen", "shape", "views", "isOpen"],
|
|
17148
|
+
_excluded3$9 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
|
|
17149
|
+
_excluded4$8 = ["children", "views"],
|
|
17058
17150
|
_excluded5$3 = ["children", "views"];
|
|
17059
17151
|
var ModalOverlay = _ref => {
|
|
17060
17152
|
var {
|
|
@@ -17102,7 +17194,7 @@ var ModalContainer = _ref2 => {
|
|
|
17102
17194
|
shape = 'rounded',
|
|
17103
17195
|
views
|
|
17104
17196
|
} = _ref2,
|
|
17105
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
17197
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$e);
|
|
17106
17198
|
var defaultShadow = typeof document !== undefined ? {
|
|
17107
17199
|
boxShadow: '0px 4px 16px rgba(0, 0, 0, 0.15)'
|
|
17108
17200
|
} : {
|
|
@@ -17143,7 +17235,7 @@ var ModalHeader = _ref3 => {
|
|
|
17143
17235
|
buttonPosition = 'right',
|
|
17144
17236
|
views
|
|
17145
17237
|
} = _ref3,
|
|
17146
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
17238
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$9);
|
|
17147
17239
|
var onClose = props.onClose ? props.onClose : hideModal;
|
|
17148
17240
|
var buttonIcon = /*#__PURE__*/React.createElement(View, {
|
|
17149
17241
|
onClick: onClose
|
|
@@ -17172,7 +17264,7 @@ var ModalBody = _ref4 => {
|
|
|
17172
17264
|
children,
|
|
17173
17265
|
views
|
|
17174
17266
|
} = _ref4,
|
|
17175
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
17267
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$8);
|
|
17176
17268
|
return /*#__PURE__*/React.createElement(View, Object.assign({
|
|
17177
17269
|
paddingVertical: 16,
|
|
17178
17270
|
paddingHorizontal: 24,
|
|
@@ -17315,9 +17407,9 @@ var DrawerPlacements = {
|
|
|
17315
17407
|
};
|
|
17316
17408
|
|
|
17317
17409
|
var _excluded$U = ["isOpen", "onClose", "isClosePrevented", "blur", "children"],
|
|
17318
|
-
_excluded2$
|
|
17319
|
-
_excluded3$
|
|
17320
|
-
_excluded4$
|
|
17410
|
+
_excluded2$f = ["placement", "size", "children"],
|
|
17411
|
+
_excluded3$a = ["children", "onClose", "buttonPosition"],
|
|
17412
|
+
_excluded4$9 = ["children"],
|
|
17321
17413
|
_excluded5$4 = ["children"];
|
|
17322
17414
|
var DrawerOverlay = _ref => {
|
|
17323
17415
|
var {
|
|
@@ -17368,7 +17460,7 @@ var DrawerContainer = _ref2 => {
|
|
|
17368
17460
|
size = 'md',
|
|
17369
17461
|
children
|
|
17370
17462
|
} = _ref2,
|
|
17371
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
17463
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$f);
|
|
17372
17464
|
var handleClick = e => {
|
|
17373
17465
|
e.stopPropagation();
|
|
17374
17466
|
};
|
|
@@ -17394,7 +17486,7 @@ var DrawerHeader = _ref3 => {
|
|
|
17394
17486
|
onClose,
|
|
17395
17487
|
buttonPosition = 'right'
|
|
17396
17488
|
} = _ref3,
|
|
17397
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
17489
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$a);
|
|
17398
17490
|
var closeButton = onClose && (/*#__PURE__*/React.createElement(View, {
|
|
17399
17491
|
onClick: onClose,
|
|
17400
17492
|
cursor: "pointer",
|
|
@@ -17416,7 +17508,7 @@ var DrawerBody = _ref4 => {
|
|
|
17416
17508
|
var {
|
|
17417
17509
|
children
|
|
17418
17510
|
} = _ref4,
|
|
17419
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
17511
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$9);
|
|
17420
17512
|
return /*#__PURE__*/React.createElement(Vertical, Object.assign({
|
|
17421
17513
|
padding: 24,
|
|
17422
17514
|
flex: 1,
|
|
@@ -18978,7 +19070,7 @@ var TypewriterEffect = _ref => {
|
|
|
18978
19070
|
};
|
|
18979
19071
|
|
|
18980
19072
|
var _excluded$Z = ["text", "duration", "direction", "stagger", "sequential", "textStyle", "as", "wordProps"],
|
|
18981
|
-
_excluded2$
|
|
19073
|
+
_excluded2$g = ["style"];
|
|
18982
19074
|
// CSS keyframes injection - done once
|
|
18983
19075
|
var KEYFRAMES_ID = 'slide-effect-keyframes';
|
|
18984
19076
|
var injectKeyframes = () => {
|
|
@@ -19073,7 +19165,7 @@ var SlideEffect = _ref => {
|
|
|
19073
19165
|
{
|
|
19074
19166
|
style: customWordStyle
|
|
19075
19167
|
} = _ref2,
|
|
19076
|
-
restWordProps = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
19168
|
+
restWordProps = _objectWithoutPropertiesLoose(_ref2, _excluded2$g);
|
|
19077
19169
|
// Get animation names based on direction
|
|
19078
19170
|
var isUp = direction === 'up';
|
|
19079
19171
|
var enterAnim = isUp ? 'slideInUp' : 'slideInDown';
|
|
@@ -19866,9 +19958,9 @@ var DropdownMenuItemStates = {
|
|
|
19866
19958
|
};
|
|
19867
19959
|
|
|
19868
19960
|
var _excluded$11 = ["children", "views"],
|
|
19869
|
-
_excluded2$
|
|
19870
|
-
_excluded3$
|
|
19871
|
-
_excluded4$
|
|
19961
|
+
_excluded2$h = ["items", "side", "align", "views"],
|
|
19962
|
+
_excluded3$b = ["item", "views"],
|
|
19963
|
+
_excluded4$a = ["views"],
|
|
19872
19964
|
_excluded5$5 = ["trigger", "items", "side", "align", "views", "themeMode"];
|
|
19873
19965
|
// Create context for the DropdownMenu
|
|
19874
19966
|
var DropdownMenuContext = /*#__PURE__*/createContext({
|
|
@@ -19933,7 +20025,7 @@ var DropdownMenuContent = _ref3 => {
|
|
|
19933
20025
|
align = 'start',
|
|
19934
20026
|
views
|
|
19935
20027
|
} = _ref3,
|
|
19936
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
20028
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$h);
|
|
19937
20029
|
var {
|
|
19938
20030
|
isOpen,
|
|
19939
20031
|
variant,
|
|
@@ -20064,7 +20156,7 @@ var DropdownMenuItem = _ref4 => {
|
|
|
20064
20156
|
item,
|
|
20065
20157
|
views
|
|
20066
20158
|
} = _ref4,
|
|
20067
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
20159
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$b);
|
|
20068
20160
|
var {
|
|
20069
20161
|
activeSubmenuId,
|
|
20070
20162
|
setActiveSubmenuId,
|
|
@@ -20129,7 +20221,7 @@ var DropdownMenuDivider = _ref5 => {
|
|
|
20129
20221
|
var {
|
|
20130
20222
|
views
|
|
20131
20223
|
} = _ref5,
|
|
20132
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$
|
|
20224
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$a);
|
|
20133
20225
|
return /*#__PURE__*/React.createElement(View, Object.assign({
|
|
20134
20226
|
height: "1px",
|
|
20135
20227
|
backgroundColor: "color.gray.200",
|
|
@@ -24487,9 +24579,9 @@ var SidebarTransitions = {
|
|
|
24487
24579
|
};
|
|
24488
24580
|
|
|
24489
24581
|
var _excluded$1e = ["children", "showToggleButton", "views"],
|
|
24490
|
-
_excluded2$
|
|
24491
|
-
_excluded3$
|
|
24492
|
-
_excluded4$
|
|
24582
|
+
_excluded2$i = ["children", "views"],
|
|
24583
|
+
_excluded3$c = ["children", "views"],
|
|
24584
|
+
_excluded4$b = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
|
|
24493
24585
|
// Create context for the Sidebar
|
|
24494
24586
|
var SidebarContext = /*#__PURE__*/createContext({
|
|
24495
24587
|
isExpanded: true,
|
|
@@ -24586,7 +24678,7 @@ var SidebarContent = _ref3 => {
|
|
|
24586
24678
|
children,
|
|
24587
24679
|
views
|
|
24588
24680
|
} = _ref3,
|
|
24589
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
24681
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$i);
|
|
24590
24682
|
var {
|
|
24591
24683
|
isExpanded
|
|
24592
24684
|
} = useSidebarContext();
|
|
@@ -24604,7 +24696,7 @@ var SidebarFooter = _ref4 => {
|
|
|
24604
24696
|
children,
|
|
24605
24697
|
views
|
|
24606
24698
|
} = _ref4,
|
|
24607
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
24699
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$c);
|
|
24608
24700
|
var {
|
|
24609
24701
|
isExpanded
|
|
24610
24702
|
} = useSidebarContext();
|
|
@@ -24640,7 +24732,7 @@ var SidebarView = _ref5 => {
|
|
|
24640
24732
|
collapse,
|
|
24641
24733
|
views
|
|
24642
24734
|
} = _ref5,
|
|
24643
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$
|
|
24735
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$b);
|
|
24644
24736
|
// Determine width based on expanded state and size
|
|
24645
24737
|
var sizeConfig = SidebarSizes[size];
|
|
24646
24738
|
var width = isExpanded ? expandedWidth || sizeConfig.expandedWidth : collapsedWidth || sizeConfig.collapsedWidth;
|
|
@@ -25162,8 +25254,8 @@ var HandleIconStyles = {
|
|
|
25162
25254
|
};
|
|
25163
25255
|
|
|
25164
25256
|
var _excluded$1g = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
|
|
25165
|
-
_excluded2$
|
|
25166
|
-
_excluded3$
|
|
25257
|
+
_excluded2$j = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
|
|
25258
|
+
_excluded3$d = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
|
|
25167
25259
|
// Create context for the Resizable component
|
|
25168
25260
|
var ResizableContext = /*#__PURE__*/createContext({
|
|
25169
25261
|
orientation: 'horizontal',
|
|
@@ -25270,7 +25362,7 @@ var ResizableHandle = _ref3 => {
|
|
|
25270
25362
|
collapseTarget,
|
|
25271
25363
|
views
|
|
25272
25364
|
} = _ref3,
|
|
25273
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
25365
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$j);
|
|
25274
25366
|
var {
|
|
25275
25367
|
orientation,
|
|
25276
25368
|
size,
|
|
@@ -25410,7 +25502,7 @@ var ResizableView = _ref4 => {
|
|
|
25410
25502
|
containerRef,
|
|
25411
25503
|
views
|
|
25412
25504
|
} = _ref4,
|
|
25413
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
25505
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$d);
|
|
25414
25506
|
var Container = orientation === 'horizontal' ? Horizontal : Vertical;
|
|
25415
25507
|
return /*#__PURE__*/React.createElement(Container, Object.assign({
|
|
25416
25508
|
ref: containerRef,
|
|
@@ -26213,9 +26305,9 @@ var CommandFooterStyles = {
|
|
|
26213
26305
|
};
|
|
26214
26306
|
|
|
26215
26307
|
var _excluded$1i = ["value", "onValueChange", "placeholder", "views"],
|
|
26216
|
-
_excluded2$
|
|
26217
|
-
_excluded3$
|
|
26218
|
-
_excluded4$
|
|
26308
|
+
_excluded2$k = ["children", "views"],
|
|
26309
|
+
_excluded3$e = ["heading", "children", "views"],
|
|
26310
|
+
_excluded4$c = ["item", "selected", "onSelect", "views"],
|
|
26219
26311
|
_excluded5$6 = ["children", "views"],
|
|
26220
26312
|
_excluded6$3 = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "emptyState", "footer", "search", "setSearch", "selectedIndex", "setSelectedIndex", "filteredCommands", "filteredGroups", "listRef", "views", "filter"];
|
|
26221
26313
|
var CommandContext = /*#__PURE__*/createContext({
|
|
@@ -26276,7 +26368,7 @@ var CommandList = _ref3 => {
|
|
|
26276
26368
|
children,
|
|
26277
26369
|
views
|
|
26278
26370
|
} = _ref3,
|
|
26279
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
26371
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$k);
|
|
26280
26372
|
return /*#__PURE__*/React.createElement(View, Object.assign({}, CommandListStyles, views == null ? void 0 : views.container, props), children);
|
|
26281
26373
|
};
|
|
26282
26374
|
// Command Group component
|
|
@@ -26286,7 +26378,7 @@ var CommandGroup = _ref4 => {
|
|
|
26286
26378
|
children,
|
|
26287
26379
|
views
|
|
26288
26380
|
} = _ref4,
|
|
26289
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
26381
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$e);
|
|
26290
26382
|
return /*#__PURE__*/React.createElement(View, Object.assign({}, CommandGroupStyles, views == null ? void 0 : views.container, props), /*#__PURE__*/React.createElement(Text, Object.assign({}, CommandGroupHeadingStyles, views == null ? void 0 : views.heading), heading), children);
|
|
26291
26383
|
};
|
|
26292
26384
|
// Command Item component
|
|
@@ -26297,7 +26389,7 @@ var CommandItem = _ref5 => {
|
|
|
26297
26389
|
onSelect,
|
|
26298
26390
|
views
|
|
26299
26391
|
} = _ref5,
|
|
26300
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$
|
|
26392
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$c);
|
|
26301
26393
|
var handleClick = () => {
|
|
26302
26394
|
if (!item.disabled && onSelect) {
|
|
26303
26395
|
onSelect();
|
|
@@ -26683,8 +26775,8 @@ var getArrowStyles = position => {
|
|
|
26683
26775
|
};
|
|
26684
26776
|
|
|
26685
26777
|
var _excluded$1k = ["children", "views", "asChild"],
|
|
26686
|
-
_excluded2$
|
|
26687
|
-
_excluded3$
|
|
26778
|
+
_excluded2$l = ["children", "views"],
|
|
26779
|
+
_excluded3$f = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
|
|
26688
26780
|
// Create context for the Tooltip
|
|
26689
26781
|
var TooltipContext = /*#__PURE__*/createContext({
|
|
26690
26782
|
isOpen: false,
|
|
@@ -26754,7 +26846,7 @@ var TooltipContent = _ref3 => {
|
|
|
26754
26846
|
children,
|
|
26755
26847
|
views
|
|
26756
26848
|
} = _ref3,
|
|
26757
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
26849
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$l);
|
|
26758
26850
|
var {
|
|
26759
26851
|
isOpen,
|
|
26760
26852
|
contentRef,
|
|
@@ -26784,7 +26876,7 @@ var TooltipView = _ref4 => {
|
|
|
26784
26876
|
showArrow = true,
|
|
26785
26877
|
views
|
|
26786
26878
|
} = _ref4,
|
|
26787
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$
|
|
26879
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$f);
|
|
26788
26880
|
var {
|
|
26789
26881
|
isOpen,
|
|
26790
26882
|
triggerRef,
|
|
@@ -27324,9 +27416,9 @@ var Gradient = props => {
|
|
|
27324
27416
|
};
|
|
27325
27417
|
|
|
27326
27418
|
var _excluded$1n = ["children", "showRadialGradient", "views", "themeMode"],
|
|
27327
|
-
_excluded2$
|
|
27328
|
-
_excluded3$
|
|
27329
|
-
_excluded4$
|
|
27419
|
+
_excluded2$m = ["number", "children"],
|
|
27420
|
+
_excluded3$g = ["rows", "cols", "squareSize"],
|
|
27421
|
+
_excluded4$d = ["count", "colors", "speed", "shapes"],
|
|
27330
27422
|
_excluded5$7 = ["gridSize", "lineColor", "pulseColor", "animationSpeed"],
|
|
27331
27423
|
_excluded6$4 = ["rippleCount", "colors", "maxSize", "frequency"],
|
|
27332
27424
|
_excluded7$1 = ["children", "src", "backgroundSize", "backgroundPosition", "backgroundRepeat", "backgroundAttachment", "imageOpacity", "overlay", "blendMode", "views", "themeMode"],
|
|
@@ -27368,7 +27460,7 @@ var Meteors = _ref2 => {
|
|
|
27368
27460
|
number = 20,
|
|
27369
27461
|
children
|
|
27370
27462
|
} = _ref2,
|
|
27371
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
27463
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$m);
|
|
27372
27464
|
var meteors = Array.from({
|
|
27373
27465
|
length: number
|
|
27374
27466
|
}, (_, i) => i);
|
|
@@ -27436,7 +27528,7 @@ var Wall = _ref3 => {
|
|
|
27436
27528
|
cols = 10,
|
|
27437
27529
|
squareSize = 40
|
|
27438
27530
|
} = _ref3,
|
|
27439
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
27531
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$g);
|
|
27440
27532
|
var rowsArray = Array(rows).fill(1);
|
|
27441
27533
|
var colsArray = Array(cols).fill(1);
|
|
27442
27534
|
return /*#__PURE__*/React.createElement(View, Object.assign({
|
|
@@ -27479,7 +27571,7 @@ var Particles = _ref4 => {
|
|
|
27479
27571
|
speed = 'medium',
|
|
27480
27572
|
shapes = ['circle']
|
|
27481
27573
|
} = _ref4,
|
|
27482
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
27574
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$d);
|
|
27483
27575
|
var particles = Array.from({
|
|
27484
27576
|
length: count
|
|
27485
27577
|
}, (_, i) => i);
|
|
@@ -27891,5 +27983,5 @@ var Background = /*#__PURE__*/Object.assign(BackgroundComponent, {
|
|
|
27891
27983
|
});
|
|
27892
27984
|
Background.displayName = 'Background';
|
|
27893
27985
|
|
|
27894
|
-
export { Accordion, Alert, ArrowIcon, AspectRatio, AttachmentIcon, AttachmentPreview, AudioIcon, AudioInput, AudioWaveform, Avatar, Background, Badge, BatteryIcon, BluetoothIcon, BoldArrowIcon, BookmarkIcon, Button, CalendarIcon, CameraIcon, Card, Carousel, Chart, ChartIcon, ChatInput, CheckIcon, Checkbox, ChevronIcon, ClockIcon, CloseEyeIcon, CloseIcon, CloudIcon, ColorInput, ColorPicker, ComboBox, Command, ContextMenu, CookieConsent, CopyIcon, CountryPicker, CropIcon, DatePicker, DeleteIcon, Divider, DocumentIcon, DownloadIcon, DragAndDrop, DragAndDropComponent, DragHandleIcon, DragHandleLinesIcon, Drawer, DropdownMenu, DustBinIcon, EditIcon, EmojiPicker, ErrorIcon, ExternalLinkIcon, FacebookIcon, FileIcon, FileImage, FileSVG, FilterIcon, FolderIcon, FormikChatInput, FormikCheckbox, FormikColorInput, FormikComboBox, FormikCountryPicker, FormikDatePicker, FormikForm, FormikOTPInput, FormikPassword, FormikSelect, FormikSlider, FormikSwitch, FormikTagInput, FormikTextArea, FormikTextField, FormikUploader, GiftIcon, HeartIcon, HelpIcon, HomeIcon, HoverCard, Icon, ImageIcon, InfoIcon, InstagramIcon, LikeIcon, Link, LinkedinIcon, Loader, LoadingSpinnerIcon, LocationIcon, LockIcon, LogoutIcon, MagicWandIcon, MediaPreview, MenuIcon, Menubar, MessageLayout, MessageView, MicrophoneIcon, MinusIcon, Modal, MoonIcon, NavigationMenu, NotificationIcon, OTPInput, OpenEyeIcon, Pagination, PanelIcon, Password, PauseIcon, PlayIcon, PlusIcon, PowerOffIcon, PrintIcon, ProfileIcon, ProgressBar, RefreshIcon, Resizable, RotateIcon, SaveIcon, SearchIcon, Select, SendIcon, Separator, SettingsIcon, ShapeIcon, ShareButton, ShareIcon, ShieldIcon, Sidebar, Slider, SliderIcon, SpinnerIcon, StarIcon, StatusIndicator, StopIcon, SuccessIcon, Switch, Table, Tabs, TagInput, TextArea, TextField, TextIcon, ThreadsIcon, TickIcon, Title, Toast, Toggle, ToggleGroup, Tooltip, TrashIcon, TwitchIcon, TwitterIcon, UnLikeIcon, UnlockIcon, UploadIcon, Uploader, UserIcon, VideoIcon, WarningIcon, WifiIcon, XIcon, YoutubeIcon, ZoomInIcon, ZoomOutIcon, hideMessage, hideModal, showMessage, showModal, showToast, useMessageStore, useModalStore, useToast$1 as useToast };
|
|
27986
|
+
export { Accordion, Alert, ArrowIcon, AspectRatio, AttachmentIcon, AttachmentPreview, AudioIcon, AudioInput, AudioWaveform, Avatar, BackIcon, Background, Badge, BatteryIcon, BluetoothIcon, BoldArrowIcon, BookmarkIcon, Button, CalendarIcon, CameraIcon, Card, Carousel, Chart, ChartIcon, ChatInput, CheckIcon, Checkbox, ChevronIcon, ClockIcon, CloseEyeIcon, CloseIcon, CloudIcon, ColorInput, ColorPicker, ComboBox, Command, ContextMenu, CookieConsent, CopyIcon, CountryPicker, CropIcon, DatePicker, DeleteIcon, Divider, DocumentIcon, DownloadIcon, DragAndDrop, DragAndDropComponent, DragHandleIcon, DragHandleLinesIcon, Drawer, DropdownMenu, DustBinIcon, EditIcon, EmojiPicker, ErrorIcon, ExternalLinkIcon, FacebookIcon, FileIcon, FileImage, FileSVG, FilterIcon, FolderIcon, FormikChatInput, FormikCheckbox, FormikColorInput, FormikComboBox, FormikCountryPicker, FormikDatePicker, FormikForm, FormikOTPInput, FormikPassword, FormikSelect, FormikSlider, FormikSwitch, FormikTagInput, FormikTextArea, FormikTextField, FormikUploader, GiftIcon, HeartIcon, HelpIcon, HomeIcon, HoverCard, Icon, ImageIcon, InfoIcon, InstagramIcon, LikeIcon, Link, LinkedinIcon, Loader, LoadingSpinnerIcon, LocationIcon, LockIcon, LogoutIcon, MagicWandIcon, MediaPreview, MenuIcon, Menubar, MessageLayout, MessageView, MicrophoneIcon, MinusIcon, Modal, MoonIcon, NavigationMenu, NotificationIcon, OTPInput, OpenEyeIcon, Pagination, PanelIcon, Password, PauseIcon, PlayIcon, PlusIcon, PowerOffIcon, PrintIcon, ProfileIcon, ProgressBar, RefreshIcon, Resizable, RotateIcon, SaveIcon, SearchIcon, Select, SendIcon, Separator, SettingsIcon, ShapeIcon, ShareButton, ShareIcon, ShieldIcon, Sidebar, Slider, SliderIcon, SpinnerIcon, StarIcon, StatusIndicator, StopIcon, SuccessIcon, Switch, Table, Tabs, TagInput, TextArea, TextField, TextIcon, ThreadsIcon, TickIcon, Title, Toast, Toggle, ToggleGroup, Tooltip, TrashIcon, TwitchIcon, TwitterIcon, UnLikeIcon, UnlockIcon, UploadIcon, Uploader, UserIcon, VideoIcon, WarningIcon, WifiIcon, XIcon, YoutubeIcon, ZoomInIcon, ZoomOutIcon, hideMessage, hideModal, showMessage, showModal, showToast, useMessageStore, useModalStore, useToast$1 as useToast };
|
|
27895
27987
|
//# sourceMappingURL=web.esm.js.map
|