@app-studio/web 0.9.43 → 0.9.44
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/Title/Title/SlideEffect.d.ts +14 -0
- package/dist/components/Title/Title/Title.props.d.ts +20 -0
- package/dist/components/Title/Title/Title.state.d.ts +4 -0
- package/dist/web.cjs.development.js +265 -78
- 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 +265 -78
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +265 -78
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -4483,7 +4483,6 @@
|
|
|
4483
4483
|
display: 'flex',
|
|
4484
4484
|
alignItems: 'center',
|
|
4485
4485
|
justifyContent: 'center',
|
|
4486
|
-
backgroundColor: 'color.black',
|
|
4487
4486
|
// Apply shape, size, and variant styles
|
|
4488
4487
|
borderRadius: BadgeShapes[shape]
|
|
4489
4488
|
}, BadgeSizes[size], variantStyles, position ? PositionStyles[position] : {}, views == null ? void 0 : views.container);
|
|
@@ -4495,8 +4494,7 @@
|
|
|
4495
4494
|
,
|
|
4496
4495
|
textAlign: "center"
|
|
4497
4496
|
}, views == null ? void 0 : views.text, {
|
|
4498
|
-
color: combinedStyles.color
|
|
4499
|
-
bgColor: combinedStyles.backgroundColor
|
|
4497
|
+
color: combinedStyles.color
|
|
4500
4498
|
}), content || ''));
|
|
4501
4499
|
};
|
|
4502
4500
|
|
|
@@ -18674,7 +18672,11 @@
|
|
|
18674
18672
|
highlightText: initialHighlightText,
|
|
18675
18673
|
// Renamed to avoid confusion with the dynamic target
|
|
18676
18674
|
highlightTypewriter = false,
|
|
18677
|
-
highlightTypewriterDuration = 1500
|
|
18675
|
+
highlightTypewriterDuration = 1500,
|
|
18676
|
+
highlightSlide = false,
|
|
18677
|
+
highlightSlideDuration = 500,
|
|
18678
|
+
highlightSlideStagger = 50,
|
|
18679
|
+
highlightSlideSequential = true
|
|
18678
18680
|
} = props;
|
|
18679
18681
|
// State for the final text to be displayed (could be original children or alternating text)
|
|
18680
18682
|
var [finalDisplayedText, setFinalDisplayedText] = React.useState(children);
|
|
@@ -18719,7 +18721,11 @@
|
|
|
18719
18721
|
return {
|
|
18720
18722
|
finalDisplayedText,
|
|
18721
18723
|
activeHighlightTarget,
|
|
18722
|
-
highlightTypewriter
|
|
18724
|
+
highlightTypewriter,
|
|
18725
|
+
highlightSlide,
|
|
18726
|
+
highlightSlideDuration,
|
|
18727
|
+
highlightSlideStagger,
|
|
18728
|
+
highlightSlideSequential
|
|
18723
18729
|
};
|
|
18724
18730
|
};
|
|
18725
18731
|
|
|
@@ -18939,7 +18945,159 @@
|
|
|
18939
18945
|
}))))));
|
|
18940
18946
|
};
|
|
18941
18947
|
|
|
18942
|
-
var _excluded$Z = ["
|
|
18948
|
+
var _excluded$Z = ["text", "duration", "direction", "stagger", "sequential", "textStyle", "as", "wordProps"],
|
|
18949
|
+
_excluded2$f = ["style"];
|
|
18950
|
+
// CSS keyframes injection - done once
|
|
18951
|
+
var KEYFRAMES_ID = 'slide-effect-keyframes';
|
|
18952
|
+
var injectKeyframes = () => {
|
|
18953
|
+
if (typeof document === 'undefined') return;
|
|
18954
|
+
if (document.getElementById(KEYFRAMES_ID)) return;
|
|
18955
|
+
var style = document.createElement('style');
|
|
18956
|
+
style.id = KEYFRAMES_ID;
|
|
18957
|
+
style.textContent = "\n @keyframes slideInUp {\n from { transform: translateY(100%); opacity: 0; }\n to { transform: translateY(0); opacity: 1; }\n }\n @keyframes slideOutUp {\n from { transform: translateY(0); opacity: 1; }\n to { transform: translateY(-100%); opacity: 0; }\n }\n @keyframes slideInDown {\n from { transform: translateY(-100%); opacity: 0; }\n to { transform: translateY(0); opacity: 1; }\n }\n @keyframes slideOutDown {\n from { transform: translateY(0); opacity: 1; }\n to { transform: translateY(100%); opacity: 0; }\n }\n ";
|
|
18958
|
+
document.head.appendChild(style);
|
|
18959
|
+
};
|
|
18960
|
+
var SlideEffect = _ref => {
|
|
18961
|
+
var {
|
|
18962
|
+
text,
|
|
18963
|
+
duration = 500,
|
|
18964
|
+
direction = 'up',
|
|
18965
|
+
stagger = 50,
|
|
18966
|
+
sequential = false,
|
|
18967
|
+
textStyle,
|
|
18968
|
+
wordProps
|
|
18969
|
+
} = _ref,
|
|
18970
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$Z);
|
|
18971
|
+
var [displayedText, setDisplayedText] = React.useState(text);
|
|
18972
|
+
var [phase, setPhase] = React.useState('entering');
|
|
18973
|
+
var [animKey, setAnimKey] = React.useState(0);
|
|
18974
|
+
var pendingTextRef = React.useRef(null);
|
|
18975
|
+
var timeoutRef = React.useRef(null);
|
|
18976
|
+
// Inject keyframes once on mount
|
|
18977
|
+
React.useEffect(() => {
|
|
18978
|
+
injectKeyframes();
|
|
18979
|
+
}, []);
|
|
18980
|
+
// Handle text changes
|
|
18981
|
+
React.useEffect(() => {
|
|
18982
|
+
if (text === displayedText && phase === 'visible') {
|
|
18983
|
+
return;
|
|
18984
|
+
}
|
|
18985
|
+
if (text !== displayedText) {
|
|
18986
|
+
// New text arrived
|
|
18987
|
+
if (phase === 'entering' || phase === 'visible') {
|
|
18988
|
+
// Store the new text and start exit animation
|
|
18989
|
+
pendingTextRef.current = text;
|
|
18990
|
+
setPhase('exiting');
|
|
18991
|
+
} else if (phase === 'exiting') {
|
|
18992
|
+
// Already exiting, just update pending text
|
|
18993
|
+
pendingTextRef.current = text;
|
|
18994
|
+
}
|
|
18995
|
+
}
|
|
18996
|
+
}, [text, displayedText, phase]);
|
|
18997
|
+
// Calculate animation durations
|
|
18998
|
+
var words = React.useMemo(() => displayedText.split(' '), [displayedText]);
|
|
18999
|
+
var wordCount = words.length;
|
|
19000
|
+
var totalEnterDuration = React.useMemo(() => {
|
|
19001
|
+
if (sequential) {
|
|
19002
|
+
return wordCount * (duration + stagger);
|
|
19003
|
+
}
|
|
19004
|
+
return (wordCount - 1) * stagger + duration;
|
|
19005
|
+
}, [wordCount, duration, stagger, sequential]);
|
|
19006
|
+
var totalExitDuration = React.useMemo(() => {
|
|
19007
|
+
if (sequential) {
|
|
19008
|
+
return wordCount * (duration + stagger);
|
|
19009
|
+
}
|
|
19010
|
+
return (wordCount - 1) * stagger + duration;
|
|
19011
|
+
}, [wordCount, duration, stagger, sequential]);
|
|
19012
|
+
// Handle phase transitions
|
|
19013
|
+
React.useEffect(() => {
|
|
19014
|
+
if (timeoutRef.current) {
|
|
19015
|
+
clearTimeout(timeoutRef.current);
|
|
19016
|
+
}
|
|
19017
|
+
if (phase === 'entering') {
|
|
19018
|
+
// After enter animation completes, go to visible
|
|
19019
|
+
timeoutRef.current = setTimeout(() => {
|
|
19020
|
+
setPhase('visible');
|
|
19021
|
+
}, totalEnterDuration + 50);
|
|
19022
|
+
} else if (phase === 'exiting') {
|
|
19023
|
+
// After exit animation completes, swap text and enter again
|
|
19024
|
+
timeoutRef.current = setTimeout(() => {
|
|
19025
|
+
if (pendingTextRef.current !== null) {
|
|
19026
|
+
setDisplayedText(pendingTextRef.current);
|
|
19027
|
+
pendingTextRef.current = null;
|
|
19028
|
+
}
|
|
19029
|
+
setAnimKey(k => k + 1);
|
|
19030
|
+
setPhase('entering');
|
|
19031
|
+
}, totalExitDuration + 50);
|
|
19032
|
+
}
|
|
19033
|
+
return () => {
|
|
19034
|
+
if (timeoutRef.current) {
|
|
19035
|
+
clearTimeout(timeoutRef.current);
|
|
19036
|
+
}
|
|
19037
|
+
};
|
|
19038
|
+
}, [phase, totalEnterDuration, totalExitDuration]);
|
|
19039
|
+
// Memoize word props extraction
|
|
19040
|
+
var _ref2 = wordProps || {},
|
|
19041
|
+
{
|
|
19042
|
+
style: customWordStyle
|
|
19043
|
+
} = _ref2,
|
|
19044
|
+
restWordProps = _objectWithoutPropertiesLoose(_ref2, _excluded2$f);
|
|
19045
|
+
// Get animation names based on direction
|
|
19046
|
+
var isUp = direction === 'up';
|
|
19047
|
+
var enterAnim = isUp ? 'slideInUp' : 'slideInDown';
|
|
19048
|
+
var exitAnim = isUp ? 'slideOutUp' : 'slideOutDown';
|
|
19049
|
+
// Calculate delay for each word
|
|
19050
|
+
var getDelay = (index, isExit) => {
|
|
19051
|
+
if (sequential) {
|
|
19052
|
+
// Sequential: one word at a time
|
|
19053
|
+
return index * (duration + stagger);
|
|
19054
|
+
}
|
|
19055
|
+
// Parallel with stagger
|
|
19056
|
+
return index * stagger;
|
|
19057
|
+
};
|
|
19058
|
+
// Container styles
|
|
19059
|
+
var containerStyle = React.useMemo(() => Object.assign({
|
|
19060
|
+
display: 'inline-block',
|
|
19061
|
+
position: 'relative',
|
|
19062
|
+
overflow: 'hidden',
|
|
19063
|
+
verticalAlign: 'bottom',
|
|
19064
|
+
whiteSpace: 'nowrap'
|
|
19065
|
+
}, textStyle), [textStyle]);
|
|
19066
|
+
// Word row container style
|
|
19067
|
+
var wordRowStyle = React.useMemo(() => ({
|
|
19068
|
+
display: 'inline-flex',
|
|
19069
|
+
flexWrap: 'nowrap',
|
|
19070
|
+
whiteSpace: 'nowrap'
|
|
19071
|
+
}), []);
|
|
19072
|
+
// Determine current animation
|
|
19073
|
+
var currentAnim = phase === 'exiting' ? exitAnim : enterAnim;
|
|
19074
|
+
var isAnimating = phase === 'entering' || phase === 'exiting';
|
|
19075
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
19076
|
+
as: "span",
|
|
19077
|
+
style: containerStyle
|
|
19078
|
+
}, props), /*#__PURE__*/React__default.createElement("span", {
|
|
19079
|
+
style: wordRowStyle
|
|
19080
|
+
}, words.map((word, index) => {
|
|
19081
|
+
var delay = getDelay(index);
|
|
19082
|
+
var isLast = index === words.length - 1;
|
|
19083
|
+
var wordStyle = Object.assign({}, customWordStyle, {
|
|
19084
|
+
display: 'inline-block',
|
|
19085
|
+
marginRight: isLast ? 0 : '0.25em',
|
|
19086
|
+
willChange: isAnimating ? 'transform, opacity' : 'auto',
|
|
19087
|
+
animation: isAnimating ? currentAnim + " " + duration + "ms ease-out " + delay + "ms both" : 'none',
|
|
19088
|
+
transform: phase === 'visible' ? 'translateY(0)' : undefined,
|
|
19089
|
+
opacity: phase === 'visible' ? 1 : undefined
|
|
19090
|
+
});
|
|
19091
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
19092
|
+
key: animKey + "-" + index,
|
|
19093
|
+
as: "span"
|
|
19094
|
+
}, restWordProps, {
|
|
19095
|
+
style: wordStyle
|
|
19096
|
+
}), word);
|
|
19097
|
+
})));
|
|
19098
|
+
};
|
|
19099
|
+
|
|
19100
|
+
var _excluded$_ = ["children", "highlightText", "highlightStyle", "highlightColor", "highlightSecondaryColor", "size", "responsive", "centered", "views", "highlightAnimate", "animate", "animationLoop", "highlightAnimationLoop", "highlightTypewriter", "highlightTypewriterDuration", "highlightSlide", "highlightSlideDuration", "highlightSlideStagger", "highlightSlideSequential"];
|
|
18943
19101
|
function escapeRegExp(string) {
|
|
18944
19102
|
return string.replace(/[.*+?^${}()|[\\]\\/g, '\\$&');
|
|
18945
19103
|
}
|
|
@@ -18959,9 +19117,13 @@
|
|
|
18959
19117
|
animationLoop = 1,
|
|
18960
19118
|
highlightAnimationLoop = 1,
|
|
18961
19119
|
highlightTypewriter: propHighlightTypewriter = false,
|
|
18962
|
-
highlightTypewriterDuration = 3000
|
|
19120
|
+
highlightTypewriterDuration = 3000,
|
|
19121
|
+
highlightSlide: propHighlightSlide = false,
|
|
19122
|
+
highlightSlideDuration = 500,
|
|
19123
|
+
highlightSlideStagger = 50,
|
|
19124
|
+
highlightSlideSequential = true
|
|
18963
19125
|
} = _ref,
|
|
18964
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
19126
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$_);
|
|
18965
19127
|
var {
|
|
18966
19128
|
ref,
|
|
18967
19129
|
inView
|
|
@@ -18994,13 +19156,21 @@
|
|
|
18994
19156
|
var {
|
|
18995
19157
|
finalDisplayedText,
|
|
18996
19158
|
activeHighlightTarget,
|
|
18997
|
-
highlightTypewriter
|
|
19159
|
+
highlightTypewriter,
|
|
19160
|
+
highlightSlide,
|
|
19161
|
+
highlightSlideDuration: stateHighlightSlideDuration,
|
|
19162
|
+
highlightSlideStagger: stateHighlightSlideStagger,
|
|
19163
|
+
highlightSlideSequential: stateHighlightSlideSequential
|
|
18998
19164
|
} = useTitleState(Object.assign({
|
|
18999
19165
|
children,
|
|
19000
19166
|
highlightText,
|
|
19001
19167
|
_isInView: inView,
|
|
19002
19168
|
highlightTypewriter: propHighlightTypewriter,
|
|
19003
|
-
highlightTypewriterDuration
|
|
19169
|
+
highlightTypewriterDuration,
|
|
19170
|
+
highlightSlide: propHighlightSlide,
|
|
19171
|
+
highlightSlideDuration,
|
|
19172
|
+
highlightSlideStagger,
|
|
19173
|
+
highlightSlideSequential
|
|
19004
19174
|
}, props));
|
|
19005
19175
|
// Determine if we should use responsive sizing or static sizing
|
|
19006
19176
|
var useResponsive = responsive && !props.media; // Don't override if media prop is already provided
|
|
@@ -19053,16 +19223,25 @@
|
|
|
19053
19223
|
animate: inView ? controlledAnimate : undefined,
|
|
19054
19224
|
media: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.media : undefined
|
|
19055
19225
|
}, views == null ? void 0 : views.container, props), parts.map((part, idx) => typeof part === 'string' ? part : (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
19056
|
-
key:
|
|
19226
|
+
key: "highlight-" + idx,
|
|
19057
19227
|
as: "span",
|
|
19058
19228
|
display: "inline",
|
|
19059
19229
|
animate: inView ? controlledHighlightAnimate : undefined,
|
|
19060
|
-
fontSize: fontSize
|
|
19061
|
-
}, highlightViewProps, highlightBackgroundOverrides, views == null ? void 0 : views.highlight), highlightTypewriter ? (/*#__PURE__*/React__default.createElement(TypewriterEffect, {
|
|
19230
|
+
fontSize: useResponsive ? undefined : fontSize
|
|
19231
|
+
}, !highlightSlide ? highlightViewProps : {}, highlightBackgroundOverrides, views == null ? void 0 : views.highlight), highlightTypewriter ? (/*#__PURE__*/React__default.createElement(TypewriterEffect, {
|
|
19062
19232
|
text: part.text,
|
|
19063
19233
|
typingSpeed: Math.max(30, highlightTypewriterDuration / (part.text.length * 10)),
|
|
19064
19234
|
showCursor: true,
|
|
19065
19235
|
cursorColor: "currentColor"
|
|
19236
|
+
})) : highlightSlide ? (/*#__PURE__*/React__default.createElement(SlideEffect, {
|
|
19237
|
+
text: part.text,
|
|
19238
|
+
duration: stateHighlightSlideDuration,
|
|
19239
|
+
stagger: stateHighlightSlideStagger,
|
|
19240
|
+
sequential: stateHighlightSlideSequential,
|
|
19241
|
+
direction: "up",
|
|
19242
|
+
fontSize: useResponsive ? undefined : fontSize,
|
|
19243
|
+
fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
|
|
19244
|
+
wordProps: highlightViewProps
|
|
19066
19245
|
})) : part.text))));
|
|
19067
19246
|
}
|
|
19068
19247
|
// If highlightStyle is provided but no highlightText, apply the style to the entire title
|
|
@@ -19082,11 +19261,20 @@
|
|
|
19082
19261
|
fontSize: fontSize,
|
|
19083
19262
|
display: "inline",
|
|
19084
19263
|
animate: inView ? controlledHighlightAnimate : undefined
|
|
19085
|
-
}, highlightViewProps, highlightBackgroundOverrides, views == null ? void 0 : views.highlight), highlightTypewriter ? (/*#__PURE__*/React__default.createElement(TypewriterEffect, {
|
|
19264
|
+
}, !highlightSlide ? highlightViewProps : {}, highlightBackgroundOverrides, views == null ? void 0 : views.highlight), highlightTypewriter ? (/*#__PURE__*/React__default.createElement(TypewriterEffect, {
|
|
19086
19265
|
text: text,
|
|
19087
19266
|
typingSpeed: Math.max(30, highlightTypewriterDuration / (text.length * 10)),
|
|
19088
19267
|
showCursor: true,
|
|
19089
19268
|
cursorColor: "currentColor"
|
|
19269
|
+
})) : highlightSlide ? (/*#__PURE__*/React__default.createElement(SlideEffect, {
|
|
19270
|
+
text: text,
|
|
19271
|
+
duration: stateHighlightSlideDuration,
|
|
19272
|
+
stagger: stateHighlightSlideStagger,
|
|
19273
|
+
sequential: stateHighlightSlideSequential,
|
|
19274
|
+
direction: "up",
|
|
19275
|
+
fontSize: fontSize,
|
|
19276
|
+
fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
|
|
19277
|
+
wordProps: highlightViewProps
|
|
19090
19278
|
})) : text));
|
|
19091
19279
|
}
|
|
19092
19280
|
// Default case - no highlighting
|
|
@@ -19234,7 +19422,7 @@
|
|
|
19234
19422
|
}
|
|
19235
19423
|
});
|
|
19236
19424
|
|
|
19237
|
-
var _excluded
|
|
19425
|
+
var _excluded$$ = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views", "backgroundColor", "color", "themeMode"];
|
|
19238
19426
|
var ToggleView = _ref => {
|
|
19239
19427
|
var _ref2;
|
|
19240
19428
|
var {
|
|
@@ -19254,7 +19442,7 @@
|
|
|
19254
19442
|
// 2nd candidate for main color
|
|
19255
19443
|
themeMode: elementMode
|
|
19256
19444
|
} = _ref,
|
|
19257
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded
|
|
19445
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$$);
|
|
19258
19446
|
/* theme helpers */
|
|
19259
19447
|
var {
|
|
19260
19448
|
getColor,
|
|
@@ -19298,7 +19486,7 @@
|
|
|
19298
19486
|
}, props, views == null ? void 0 : views.container), children);
|
|
19299
19487
|
};
|
|
19300
19488
|
|
|
19301
|
-
var _excluded
|
|
19489
|
+
var _excluded$10 = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
|
|
19302
19490
|
// Destructuring properties from ToggleProps to be used within the ToggleComponent.
|
|
19303
19491
|
var ToggleComponent = _ref => {
|
|
19304
19492
|
var {
|
|
@@ -19310,7 +19498,7 @@
|
|
|
19310
19498
|
isToggled = false,
|
|
19311
19499
|
onToggle
|
|
19312
19500
|
} = _ref,
|
|
19313
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded
|
|
19501
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$10);
|
|
19314
19502
|
// Initializing toggle state and set state functions using the custom hook useToggleState.
|
|
19315
19503
|
var {
|
|
19316
19504
|
isHovered,
|
|
@@ -19645,8 +19833,8 @@
|
|
|
19645
19833
|
}
|
|
19646
19834
|
};
|
|
19647
19835
|
|
|
19648
|
-
var _excluded$
|
|
19649
|
-
_excluded2$
|
|
19836
|
+
var _excluded$11 = ["children", "views"],
|
|
19837
|
+
_excluded2$g = ["items", "side", "align", "views"],
|
|
19650
19838
|
_excluded3$a = ["item", "views"],
|
|
19651
19839
|
_excluded4$9 = ["views"],
|
|
19652
19840
|
_excluded5$5 = ["trigger", "items", "side", "align", "views", "themeMode"];
|
|
@@ -19686,7 +19874,7 @@
|
|
|
19686
19874
|
children,
|
|
19687
19875
|
views
|
|
19688
19876
|
} = _ref2,
|
|
19689
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
19877
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$11);
|
|
19690
19878
|
var {
|
|
19691
19879
|
isOpen,
|
|
19692
19880
|
setIsOpen,
|
|
@@ -19713,7 +19901,7 @@
|
|
|
19713
19901
|
align = 'start',
|
|
19714
19902
|
views
|
|
19715
19903
|
} = _ref3,
|
|
19716
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
19904
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$g);
|
|
19717
19905
|
var {
|
|
19718
19906
|
isOpen,
|
|
19719
19907
|
variant,
|
|
@@ -19939,7 +20127,7 @@
|
|
|
19939
20127
|
}));
|
|
19940
20128
|
};
|
|
19941
20129
|
|
|
19942
|
-
var _excluded$
|
|
20130
|
+
var _excluded$12 = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
|
|
19943
20131
|
/**
|
|
19944
20132
|
* DropdownMenu component for displaying a menu when clicking on a trigger element.
|
|
19945
20133
|
*/
|
|
@@ -19954,7 +20142,7 @@
|
|
|
19954
20142
|
defaultOpen = false,
|
|
19955
20143
|
views
|
|
19956
20144
|
} = _ref,
|
|
19957
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
20145
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$12);
|
|
19958
20146
|
var {
|
|
19959
20147
|
isOpen,
|
|
19960
20148
|
setIsOpen,
|
|
@@ -20368,7 +20556,7 @@
|
|
|
20368
20556
|
category: 'neutral'
|
|
20369
20557
|
}];
|
|
20370
20558
|
|
|
20371
|
-
var _excluded$
|
|
20559
|
+
var _excluded$13 = ["id", "name", "label", "placeholder", "helperText", "views", "size", "shape", "variant", "error", "isDisabled", "isReadOnly", "predefinedColors", "showCustomInput", "showRecentColors", "isOpen", "selectedColor", "recentColors", "customColor", "handleToggle", "handleColorSelect", "handleCustomColorChange", "handleCustomColorSubmit", "triggerRef", "dropdownRef"];
|
|
20372
20560
|
var ColorPickerView = _ref => {
|
|
20373
20561
|
var {
|
|
20374
20562
|
// Basic props
|
|
@@ -20403,7 +20591,7 @@
|
|
|
20403
20591
|
dropdownRef
|
|
20404
20592
|
// Other props
|
|
20405
20593
|
} = _ref,
|
|
20406
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
20594
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$13);
|
|
20407
20595
|
var {
|
|
20408
20596
|
getColor
|
|
20409
20597
|
} = appStudio.useTheme();
|
|
@@ -20565,6 +20753,7 @@
|
|
|
20565
20753
|
},
|
|
20566
20754
|
dropdown: {
|
|
20567
20755
|
position: 'absolute',
|
|
20756
|
+
mixBlendMode: 'normal',
|
|
20568
20757
|
top: 'calc(100% + 4px)',
|
|
20569
20758
|
left: 0,
|
|
20570
20759
|
right: 0,
|
|
@@ -22733,7 +22922,7 @@
|
|
|
22733
22922
|
};
|
|
22734
22923
|
};
|
|
22735
22924
|
|
|
22736
|
-
var _excluded$
|
|
22925
|
+
var _excluded$14 = ["id", "name", "label", "placeholder", "helperText", "views", "size", "shape", "variant", "error", "isDisabled", "isReadOnly", "showSearch", "showCategories", "showRecentEmojis", "enabledCategories", "isOpen", "selectedEmoji", "recentEmojis", "searchQuery", "activeCategory", "filteredEmojis", "handleToggle", "handleEmojiSelect", "handleSearchChange", "handleCategoryChange", "triggerRef", "dropdownRef"];
|
|
22737
22926
|
var EmojiPickerView = _ref => {
|
|
22738
22927
|
var {
|
|
22739
22928
|
// Basic props
|
|
@@ -22771,7 +22960,7 @@
|
|
|
22771
22960
|
dropdownRef
|
|
22772
22961
|
// Other props
|
|
22773
22962
|
} = _ref,
|
|
22774
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
22963
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$14);
|
|
22775
22964
|
var {
|
|
22776
22965
|
getColor
|
|
22777
22966
|
} = appStudio.useTheme();
|
|
@@ -22805,8 +22994,6 @@
|
|
|
22805
22994
|
alignItems: "center",
|
|
22806
22995
|
gap: 8
|
|
22807
22996
|
}, /*#__PURE__*/React__default.createElement(appStudio.Text, {
|
|
22808
|
-
fontSize: "20px"
|
|
22809
|
-
}, selectedEmoji || '😀'), /*#__PURE__*/React__default.createElement(appStudio.Text, {
|
|
22810
22997
|
color: selectedEmoji ? 'color.gray.800' : 'color.gray.500',
|
|
22811
22998
|
fontSize: "inherit"
|
|
22812
22999
|
}, selectedEmoji || placeholder)), !isReadOnly && !isDisabled && (/*#__PURE__*/React__default.createElement(ChevronIcon, {
|
|
@@ -22960,7 +23147,7 @@
|
|
|
22960
23147
|
}
|
|
22961
23148
|
};
|
|
22962
23149
|
|
|
22963
|
-
var _excluded$
|
|
23150
|
+
var _excluded$15 = ["children", "orientation", "size", "variant", "views"];
|
|
22964
23151
|
// Create context for the Menubar
|
|
22965
23152
|
var MenubarContext = /*#__PURE__*/React.createContext({
|
|
22966
23153
|
activeMenuId: null,
|
|
@@ -22997,7 +23184,7 @@
|
|
|
22997
23184
|
variant = 'default',
|
|
22998
23185
|
views
|
|
22999
23186
|
} = _ref2,
|
|
23000
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
23187
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$15);
|
|
23001
23188
|
var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
|
|
23002
23189
|
return /*#__PURE__*/React__default.createElement(Container, Object.assign({
|
|
23003
23190
|
role: "menubar",
|
|
@@ -23317,7 +23504,7 @@
|
|
|
23317
23504
|
})))))));
|
|
23318
23505
|
};
|
|
23319
23506
|
|
|
23320
|
-
var _excluded$
|
|
23507
|
+
var _excluded$16 = ["items", "orientation", "size", "variant", "defaultActiveMenuId", "defaultOpenMenuId", "views"];
|
|
23321
23508
|
/**
|
|
23322
23509
|
* Menubar component for creating horizontal or vertical menu bars with dropdown menus.
|
|
23323
23510
|
*/
|
|
@@ -23331,7 +23518,7 @@
|
|
|
23331
23518
|
defaultOpenMenuId = null,
|
|
23332
23519
|
views
|
|
23333
23520
|
} = _ref,
|
|
23334
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
23521
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$16);
|
|
23335
23522
|
var {
|
|
23336
23523
|
activeMenuId,
|
|
23337
23524
|
setActiveMenuId,
|
|
@@ -23513,7 +23700,7 @@
|
|
|
23513
23700
|
}
|
|
23514
23701
|
};
|
|
23515
23702
|
|
|
23516
|
-
var _excluded$
|
|
23703
|
+
var _excluded$17 = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "visiblePageNumbers", "views"];
|
|
23517
23704
|
var PaginationView = _ref => {
|
|
23518
23705
|
var {
|
|
23519
23706
|
currentPage,
|
|
@@ -23544,7 +23731,7 @@
|
|
|
23544
23731
|
visiblePageNumbers,
|
|
23545
23732
|
views
|
|
23546
23733
|
} = _ref,
|
|
23547
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
23734
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$17);
|
|
23548
23735
|
var handlePageChange = page => {
|
|
23549
23736
|
if (page < 1 || page > totalPages || page === currentPage) {
|
|
23550
23737
|
return;
|
|
@@ -23663,7 +23850,7 @@
|
|
|
23663
23850
|
}, option.label))))));
|
|
23664
23851
|
};
|
|
23665
23852
|
|
|
23666
|
-
var _excluded$
|
|
23853
|
+
var _excluded$18 = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "views"];
|
|
23667
23854
|
/**
|
|
23668
23855
|
* Pagination component for navigating through pages of content.
|
|
23669
23856
|
*/
|
|
@@ -23684,7 +23871,7 @@
|
|
|
23684
23871
|
shape = 'rounded',
|
|
23685
23872
|
views
|
|
23686
23873
|
} = _ref,
|
|
23687
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
23874
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$18);
|
|
23688
23875
|
var {
|
|
23689
23876
|
visiblePageNumbers
|
|
23690
23877
|
} = usePaginationState(currentPage, totalPages, maxPageButtons);
|
|
@@ -23708,7 +23895,7 @@
|
|
|
23708
23895
|
};
|
|
23709
23896
|
var Pagination = PaginationComponent;
|
|
23710
23897
|
|
|
23711
|
-
var _excluded$
|
|
23898
|
+
var _excluded$19 = ["value", "max", "color", "backgroundColor", "height", "radius", "views", "themeMode"];
|
|
23712
23899
|
var ProgressBarView = _ref => {
|
|
23713
23900
|
var {
|
|
23714
23901
|
value = 0,
|
|
@@ -23720,7 +23907,7 @@
|
|
|
23720
23907
|
views,
|
|
23721
23908
|
themeMode: elementMode
|
|
23722
23909
|
} = _ref,
|
|
23723
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
23910
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$19);
|
|
23724
23911
|
var {
|
|
23725
23912
|
getColor,
|
|
23726
23913
|
themeMode
|
|
@@ -23810,7 +23997,7 @@
|
|
|
23810
23997
|
}
|
|
23811
23998
|
};
|
|
23812
23999
|
|
|
23813
|
-
var _excluded$
|
|
24000
|
+
var _excluded$1a = ["orientation", "variant", "thickness", "color", "spacing", "label", "decorative", "views", "themeMode"];
|
|
23814
24001
|
var SeparatorView = _ref => {
|
|
23815
24002
|
var {
|
|
23816
24003
|
orientation = 'horizontal',
|
|
@@ -23822,7 +24009,7 @@
|
|
|
23822
24009
|
decorative = false,
|
|
23823
24010
|
views
|
|
23824
24011
|
} = _ref,
|
|
23825
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24012
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1a);
|
|
23826
24013
|
// Access theme if needed for future enhancements
|
|
23827
24014
|
var {
|
|
23828
24015
|
themeMode
|
|
@@ -23890,7 +24077,7 @@
|
|
|
23890
24077
|
var Separator = SeparatorComponent;
|
|
23891
24078
|
var Divider = SeparatorComponent;
|
|
23892
24079
|
|
|
23893
|
-
var _excluded$
|
|
24080
|
+
var _excluded$1b = ["isSupported", "isSharing", "onShare", "label", "children", "icon", "size", "isDisabled", "isLoading", "iconPosition", "disableWhenUnsupported"];
|
|
23894
24081
|
var ICON_SIZE_MAP = {
|
|
23895
24082
|
xs: 12,
|
|
23896
24083
|
sm: 14,
|
|
@@ -23913,7 +24100,7 @@
|
|
|
23913
24100
|
iconPosition,
|
|
23914
24101
|
disableWhenUnsupported = true
|
|
23915
24102
|
} = _ref,
|
|
23916
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24103
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$1b);
|
|
23917
24104
|
var resolvedSize = size != null ? size : 'md';
|
|
23918
24105
|
var resolvedIcon = icon != null ? icon : (/*#__PURE__*/React__default.createElement(ShareIcon, {
|
|
23919
24106
|
widthHeight: ICON_SIZE_MAP[resolvedSize],
|
|
@@ -24015,14 +24202,14 @@
|
|
|
24015
24202
|
};
|
|
24016
24203
|
};
|
|
24017
24204
|
|
|
24018
|
-
var _excluded$
|
|
24205
|
+
var _excluded$1c = ["shareData", "onShareStart", "onShareSuccess", "onShareCancel", "onShareError", "onUnsupported", "onClick"];
|
|
24019
24206
|
var ShareButtonComponent = props => {
|
|
24020
24207
|
var {
|
|
24021
24208
|
isSupported,
|
|
24022
24209
|
isSharing,
|
|
24023
24210
|
handleShare
|
|
24024
24211
|
} = useShareButton(props);
|
|
24025
|
-
var viewProps = _objectWithoutPropertiesLoose(props, _excluded$
|
|
24212
|
+
var viewProps = _objectWithoutPropertiesLoose(props, _excluded$1c);
|
|
24026
24213
|
return /*#__PURE__*/React__default.createElement(ShareButtonView, Object.assign({}, viewProps, {
|
|
24027
24214
|
isSupported: isSupported,
|
|
24028
24215
|
isSharing: isSharing,
|
|
@@ -24076,7 +24263,7 @@
|
|
|
24076
24263
|
};
|
|
24077
24264
|
};
|
|
24078
24265
|
|
|
24079
|
-
var _excluded$
|
|
24266
|
+
var _excluded$1d = ["label", "status", "views", "themeMode"];
|
|
24080
24267
|
var StatusIndicatorView = _ref => {
|
|
24081
24268
|
var {
|
|
24082
24269
|
label,
|
|
@@ -24084,7 +24271,7 @@
|
|
|
24084
24271
|
views,
|
|
24085
24272
|
themeMode: elementMode
|
|
24086
24273
|
} = _ref,
|
|
24087
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24274
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1d);
|
|
24088
24275
|
var {
|
|
24089
24276
|
themeMode
|
|
24090
24277
|
} = appStudio.useTheme();
|
|
@@ -24267,8 +24454,8 @@
|
|
|
24267
24454
|
bounce: 'width 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55)'
|
|
24268
24455
|
};
|
|
24269
24456
|
|
|
24270
|
-
var _excluded$
|
|
24271
|
-
_excluded2$
|
|
24457
|
+
var _excluded$1e = ["children", "showToggleButton", "views"],
|
|
24458
|
+
_excluded2$h = ["children", "views"],
|
|
24272
24459
|
_excluded3$b = ["children", "views"],
|
|
24273
24460
|
_excluded4$a = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
|
|
24274
24461
|
// Create context for the Sidebar
|
|
@@ -24300,7 +24487,7 @@
|
|
|
24300
24487
|
showToggleButton = true,
|
|
24301
24488
|
views
|
|
24302
24489
|
} = _ref2,
|
|
24303
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
24490
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1e);
|
|
24304
24491
|
var {
|
|
24305
24492
|
isExpanded,
|
|
24306
24493
|
toggleExpanded,
|
|
@@ -24367,7 +24554,7 @@
|
|
|
24367
24554
|
children,
|
|
24368
24555
|
views
|
|
24369
24556
|
} = _ref3,
|
|
24370
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
24557
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$h);
|
|
24371
24558
|
var {
|
|
24372
24559
|
isExpanded
|
|
24373
24560
|
} = useSidebarContext();
|
|
@@ -24455,7 +24642,7 @@
|
|
|
24455
24642
|
}))));
|
|
24456
24643
|
};
|
|
24457
24644
|
|
|
24458
|
-
var _excluded$
|
|
24645
|
+
var _excluded$1f = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
|
|
24459
24646
|
/**
|
|
24460
24647
|
* Sidebar component for creating collapsible, themeable and customizable sidebars.
|
|
24461
24648
|
*/
|
|
@@ -24477,7 +24664,7 @@
|
|
|
24477
24664
|
breakpointBehavior = 'overlay',
|
|
24478
24665
|
views
|
|
24479
24666
|
} = _ref,
|
|
24480
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24667
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1f);
|
|
24481
24668
|
var {
|
|
24482
24669
|
isExpanded,
|
|
24483
24670
|
toggleExpanded,
|
|
@@ -24942,8 +25129,8 @@
|
|
|
24942
25129
|
}
|
|
24943
25130
|
};
|
|
24944
25131
|
|
|
24945
|
-
var _excluded$
|
|
24946
|
-
_excluded2$
|
|
25132
|
+
var _excluded$1g = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
|
|
25133
|
+
_excluded2$i = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
|
|
24947
25134
|
_excluded3$c = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
|
|
24948
25135
|
// Create context for the Resizable component
|
|
24949
25136
|
var ResizableContext = /*#__PURE__*/React.createContext({
|
|
@@ -24987,7 +25174,7 @@
|
|
|
24987
25174
|
onCollapseChange,
|
|
24988
25175
|
views
|
|
24989
25176
|
} = _ref2,
|
|
24990
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
25177
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1g);
|
|
24991
25178
|
var {
|
|
24992
25179
|
orientation,
|
|
24993
25180
|
registerPanel,
|
|
@@ -25051,7 +25238,7 @@
|
|
|
25051
25238
|
collapseTarget,
|
|
25052
25239
|
views
|
|
25053
25240
|
} = _ref3,
|
|
25054
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
25241
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$i);
|
|
25055
25242
|
var {
|
|
25056
25243
|
orientation,
|
|
25057
25244
|
size,
|
|
@@ -25202,7 +25389,7 @@
|
|
|
25202
25389
|
}, ResizableOrientations[orientation], views == null ? void 0 : views.container, props), children);
|
|
25203
25390
|
};
|
|
25204
25391
|
|
|
25205
|
-
var _excluded$
|
|
25392
|
+
var _excluded$1h = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
|
|
25206
25393
|
/**
|
|
25207
25394
|
* Resizable component for creating resizable panel groups and layouts.
|
|
25208
25395
|
*/
|
|
@@ -25222,7 +25409,7 @@
|
|
|
25222
25409
|
keyboardResizeBy = 10,
|
|
25223
25410
|
views
|
|
25224
25411
|
} = _ref,
|
|
25225
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
25412
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1h);
|
|
25226
25413
|
var {
|
|
25227
25414
|
isResizing,
|
|
25228
25415
|
setIsResizing,
|
|
@@ -25993,8 +26180,8 @@
|
|
|
25993
26180
|
color: 'color.gray.500'
|
|
25994
26181
|
};
|
|
25995
26182
|
|
|
25996
|
-
var _excluded$
|
|
25997
|
-
_excluded2$
|
|
26183
|
+
var _excluded$1i = ["value", "onValueChange", "placeholder", "views"],
|
|
26184
|
+
_excluded2$j = ["children", "views"],
|
|
25998
26185
|
_excluded3$d = ["heading", "children", "views"],
|
|
25999
26186
|
_excluded4$b = ["item", "selected", "onSelect", "views"],
|
|
26000
26187
|
_excluded5$6 = ["children", "views"],
|
|
@@ -26025,7 +26212,7 @@
|
|
|
26025
26212
|
placeholder = 'Type a command or search...',
|
|
26026
26213
|
views
|
|
26027
26214
|
} = _ref2,
|
|
26028
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
26215
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1i);
|
|
26029
26216
|
var inputRef = React.useRef(null);
|
|
26030
26217
|
// Focus input when component mounts
|
|
26031
26218
|
React__default.useEffect(() => {
|
|
@@ -26057,7 +26244,7 @@
|
|
|
26057
26244
|
children,
|
|
26058
26245
|
views
|
|
26059
26246
|
} = _ref3,
|
|
26060
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
26247
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$j);
|
|
26061
26248
|
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandListStyles, views == null ? void 0 : views.container, props), children);
|
|
26062
26249
|
};
|
|
26063
26250
|
// Command Group component
|
|
@@ -26208,7 +26395,7 @@
|
|
|
26208
26395
|
})))), footer && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandFooterStyles, views == null ? void 0 : views.footer), footer)))));
|
|
26209
26396
|
};
|
|
26210
26397
|
|
|
26211
|
-
var _excluded$
|
|
26398
|
+
var _excluded$1j = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
|
|
26212
26399
|
/**
|
|
26213
26400
|
* Command component for displaying a command palette with search functionality.
|
|
26214
26401
|
*/
|
|
@@ -26226,7 +26413,7 @@
|
|
|
26226
26413
|
footer,
|
|
26227
26414
|
views
|
|
26228
26415
|
} = _ref,
|
|
26229
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
26416
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1j);
|
|
26230
26417
|
var {
|
|
26231
26418
|
search,
|
|
26232
26419
|
setSearch,
|
|
@@ -26463,8 +26650,8 @@
|
|
|
26463
26650
|
}
|
|
26464
26651
|
};
|
|
26465
26652
|
|
|
26466
|
-
var _excluded$
|
|
26467
|
-
_excluded2$
|
|
26653
|
+
var _excluded$1k = ["children", "views", "asChild"],
|
|
26654
|
+
_excluded2$k = ["children", "views"],
|
|
26468
26655
|
_excluded3$e = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
|
|
26469
26656
|
// Create context for the Tooltip
|
|
26470
26657
|
var TooltipContext = /*#__PURE__*/React.createContext({
|
|
@@ -26499,7 +26686,7 @@
|
|
|
26499
26686
|
views,
|
|
26500
26687
|
asChild = false
|
|
26501
26688
|
} = _ref2,
|
|
26502
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
26689
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1k);
|
|
26503
26690
|
var {
|
|
26504
26691
|
openTooltip,
|
|
26505
26692
|
closeTooltip,
|
|
@@ -26535,7 +26722,7 @@
|
|
|
26535
26722
|
children,
|
|
26536
26723
|
views
|
|
26537
26724
|
} = _ref3,
|
|
26538
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
26725
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$k);
|
|
26539
26726
|
var {
|
|
26540
26727
|
isOpen,
|
|
26541
26728
|
contentRef,
|
|
@@ -26683,7 +26870,7 @@
|
|
|
26683
26870
|
}, TooltipSizes[size], TooltipVariants[variant], views == null ? void 0 : views.content), typeof content === 'string' ? (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({}, views == null ? void 0 : views.text), content)) : content, showArrow && /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, arrowStyles, views == null ? void 0 : views.arrow)))));
|
|
26684
26871
|
};
|
|
26685
26872
|
|
|
26686
|
-
var _excluded$
|
|
26873
|
+
var _excluded$1l = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
|
|
26687
26874
|
/**
|
|
26688
26875
|
* Tooltip component for displaying additional information when hovering over an element.
|
|
26689
26876
|
* Supports configurable positions, delays, and styling.
|
|
@@ -26703,7 +26890,7 @@
|
|
|
26703
26890
|
isDisabled = false,
|
|
26704
26891
|
views
|
|
26705
26892
|
} = _ref,
|
|
26706
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
26893
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1l);
|
|
26707
26894
|
var tooltipState = useTooltipState({
|
|
26708
26895
|
defaultOpen,
|
|
26709
26896
|
openDelay,
|
|
@@ -27012,7 +27199,7 @@
|
|
|
27012
27199
|
}
|
|
27013
27200
|
};
|
|
27014
27201
|
|
|
27015
|
-
var _excluded$
|
|
27202
|
+
var _excluded$1m = ["type", "direction", "shape", "position", "from", "to", "colors", "animate", "animationDuration", "children", "views", "themeMode"];
|
|
27016
27203
|
var GradientView = _ref => {
|
|
27017
27204
|
var {
|
|
27018
27205
|
type = 'linear',
|
|
@@ -27028,7 +27215,7 @@
|
|
|
27028
27215
|
views,
|
|
27029
27216
|
themeMode: elementMode
|
|
27030
27217
|
} = _ref,
|
|
27031
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
27218
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1m);
|
|
27032
27219
|
var {
|
|
27033
27220
|
getColor,
|
|
27034
27221
|
themeMode
|
|
@@ -27104,8 +27291,8 @@
|
|
|
27104
27291
|
return /*#__PURE__*/React__default.createElement(GradientView, Object.assign({}, props));
|
|
27105
27292
|
};
|
|
27106
27293
|
|
|
27107
|
-
var _excluded$
|
|
27108
|
-
_excluded2$
|
|
27294
|
+
var _excluded$1n = ["children", "showRadialGradient", "views", "themeMode"],
|
|
27295
|
+
_excluded2$l = ["number", "children"],
|
|
27109
27296
|
_excluded3$f = ["rows", "cols", "squareSize"],
|
|
27110
27297
|
_excluded4$c = ["count", "colors", "speed", "shapes"],
|
|
27111
27298
|
_excluded5$7 = ["gridSize", "lineColor", "pulseColor", "animationSpeed"],
|
|
@@ -27125,7 +27312,7 @@
|
|
|
27125
27312
|
showRadialGradient = true,
|
|
27126
27313
|
views
|
|
27127
27314
|
} = _ref,
|
|
27128
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
27315
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1n);
|
|
27129
27316
|
var gradientColors = {
|
|
27130
27317
|
white: 'rgba(255,255,255,1)',
|
|
27131
27318
|
transparent: 'rgba(255,255,255,0)'
|
|
@@ -27149,7 +27336,7 @@
|
|
|
27149
27336
|
number = 20,
|
|
27150
27337
|
children
|
|
27151
27338
|
} = _ref2,
|
|
27152
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
27339
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$l);
|
|
27153
27340
|
var meteors = Array.from({
|
|
27154
27341
|
length: number
|
|
27155
27342
|
}, (_, i) => i);
|