@app-studio/web 0.9.59 → 0.9.61
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/ChatInput/ChatInput/ChatInput.props.d.ts +1 -1
- package/dist/components/ColorPicker/ColorPicker/ColorPicker.props.d.ts +1 -1
- package/dist/components/DragAndDrop/DragAndDrop/DragAndDrop.props.d.ts +1 -1
- package/dist/components/EmojiPicker/EmojiPicker/EmojiPicker.props.d.ts +1 -1
- package/dist/components/Slider/Slider/Slider.props.d.ts +1 -1
- package/dist/components/Title/Title/SlideEffect.d.ts +1 -0
- package/dist/pages/title.page.d.ts +0 -3
- package/dist/web.cjs.development.js +100 -123
- 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 +100 -123
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +100 -123
- 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 +2 -2
|
@@ -9773,7 +9773,7 @@
|
|
|
9773
9773
|
maxHeight: 'calc(100vh - 100px)',
|
|
9774
9774
|
height: 'calc(5em)',
|
|
9775
9775
|
border: 'none',
|
|
9776
|
-
resize
|
|
9776
|
+
// resize property removed to avoid type error, added via style prop
|
|
9777
9777
|
// Focus state
|
|
9778
9778
|
on: {
|
|
9779
9779
|
focus: {
|
|
@@ -9850,8 +9850,12 @@
|
|
|
9850
9850
|
onBlur: handleBlur,
|
|
9851
9851
|
onFocus: handleFocus,
|
|
9852
9852
|
multiline: "" + !!isMultiline.toString(),
|
|
9853
|
-
onChange: handleChange
|
|
9854
|
-
}, fieldStyles,
|
|
9853
|
+
onChange: e => handleChange(e)
|
|
9854
|
+
}, fieldStyles, {
|
|
9855
|
+
style: {
|
|
9856
|
+
resize: 'vertical'
|
|
9857
|
+
}
|
|
9858
|
+
}, views == null ? void 0 : views.textarea)))));
|
|
9855
9859
|
};
|
|
9856
9860
|
|
|
9857
9861
|
// Defines the TextAreaComponent as a functional component that accepts TextAreaProps for type safety and structure.
|
|
@@ -10708,7 +10712,7 @@
|
|
|
10708
10712
|
value: 'transparent'
|
|
10709
10713
|
}];
|
|
10710
10714
|
|
|
10711
|
-
var _excluded$y = ["id", "name", "label", "placeholder", "helperText", "views", "size", "shape", "variant", "shadow", "error", "isDisabled", "isReadOnly", "isFocused", "isHovered", "predefinedColors", "showCustomInput", "showRecentColors", "isOpen", "selectedColor", "recentColors", "customColor", "handleToggle", "handleColorSelect", "handleCustomColorChange", "handleCustomColorSubmit", "setIsFocused", "setIsHovered", "triggerRef", "dropdownRef"];
|
|
10715
|
+
var _excluded$y = ["id", "name", "label", "placeholder", "helperText", "views", "size", "shape", "variant", "shadow", "error", "isDisabled", "isReadOnly", "isFocused", "isHovered", "predefinedColors", "showCustomInput", "showRecentColors", "isOpen", "selectedColor", "recentColors", "customColor", "handleToggle", "handleColorSelect", "handleCustomColorChange", "handleCustomColorSubmit", "setIsFocused", "setIsHovered", "triggerRef", "dropdownRef", "onChange"];
|
|
10712
10716
|
var ColorInputView = _ref => {
|
|
10713
10717
|
var {
|
|
10714
10718
|
// Basic props
|
|
@@ -15756,7 +15760,7 @@
|
|
|
15756
15760
|
}))));
|
|
15757
15761
|
};
|
|
15758
15762
|
|
|
15759
|
-
var _excluded$M = ["onSubmit", "placeholder", "loading", "disabled", "isAgentRunning", "enableAudioRecording", "leftButtons", "rightButtons", "onStopAgent", "loadingText", "autoFocus", "sandboxId", "hideAttachments", "attachmentText", "promptExamples", "suggestions", "errorMessage", "size", "shape", "variant", "views", "mentionData", "mentionTrigger", "onMentionSelect", "onAudioRecordingStart", "onAudioRecordingStop", "value", "handleChange", "handleSubmit", "editableRef", "fileInputRef", "isUploading", "uploadProgress", "isDraggingOver", "uploadedFiles", "removeUploadedFile", "setPendingFiles", "setUploadedFiles", "setIsUploading", "startUpload", "selectedModel", "handleModelChange", "modelOptions", "subscriptionStatus", "canAccessModel", "isGuideTipShown", "hideGuideTip", "handlePromptExampleSelect", "handleDragOver", "handleDragLeave"];
|
|
15763
|
+
var _excluded$M = ["onSubmit", "placeholder", "loading", "disabled", "isAgentRunning", "enableAudioRecording", "leftButtons", "rightButtons", "onStopAgent", "loadingText", "autoFocus", "sandboxId", "hideAttachments", "attachmentText", "promptExamples", "suggestions", "errorMessage", "size", "shape", "variant", "views", "mentionData", "mentionTrigger", "onMentionSelect", "onAudioRecordingStart", "onAudioRecordingStop", "value", "handleChange", "handleSubmit", "editableRef", "fileInputRef", "isUploading", "uploadProgress", "isDraggingOver", "uploadedFiles", "removeUploadedFile", "setPendingFiles", "setUploadedFiles", "setIsUploading", "startUpload", "selectedModel", "handleModelChange", "modelOptions", "subscriptionStatus", "canAccessModel", "isGuideTipShown", "hideGuideTip", "handlePromptExampleSelect", "handleDragOver", "handleDragLeave", "onChange"];
|
|
15760
15764
|
var ChatInputView = _ref => {
|
|
15761
15765
|
var _value$trim$length;
|
|
15762
15766
|
var {
|
|
@@ -16536,7 +16540,7 @@
|
|
|
16536
16540
|
}
|
|
16537
16541
|
};
|
|
16538
16542
|
|
|
16539
|
-
var _excluded$S = ["min", "max", "step", "currentValue", "stepValues", "shape", "size", "variant", "orientation", "isDisabled", "showValue", "showTooltip", "backgroundColor", "label", "helperText", "themeMode", "shadow", "isDragging", "isHovered", "setIsHovered", "trackRef", "thumbRef", "handleThumbMouseDown", "handleTrackMouseDown", "handleKeyDown", "thumbPositionPercent", "ariaLabel", "views"];
|
|
16543
|
+
var _excluded$S = ["min", "max", "step", "currentValue", "stepValues", "shape", "size", "variant", "orientation", "isDisabled", "showValue", "showTooltip", "backgroundColor", "label", "helperText", "themeMode", "shadow", "isDragging", "isHovered", "setIsHovered", "trackRef", "thumbRef", "handleThumbMouseDown", "handleTrackMouseDown", "handleKeyDown", "thumbPositionPercent", "ariaLabel", "views", "onChange", "onDrag"];
|
|
16540
16544
|
var SliderView = _ref => {
|
|
16541
16545
|
var _views$tooltip, _views$tooltip2;
|
|
16542
16546
|
var {
|
|
@@ -19163,10 +19167,12 @@
|
|
|
19163
19167
|
*/
|
|
19164
19168
|
var HighlightStyles = {
|
|
19165
19169
|
underline: color => ({
|
|
19166
|
-
|
|
19167
|
-
|
|
19168
|
-
|
|
19169
|
-
|
|
19170
|
+
style: {
|
|
19171
|
+
textDecoration: 'underline',
|
|
19172
|
+
textDecorationColor: color,
|
|
19173
|
+
textDecorationThickness: '4px',
|
|
19174
|
+
textUnderlineOffset: '4px'
|
|
19175
|
+
}
|
|
19170
19176
|
}),
|
|
19171
19177
|
background: color => ({
|
|
19172
19178
|
backgroundColor: color,
|
|
@@ -19175,17 +19181,21 @@
|
|
|
19175
19181
|
borderRadius: '4px'
|
|
19176
19182
|
}),
|
|
19177
19183
|
gradient: (color, secondaryColor) => ({
|
|
19178
|
-
|
|
19179
|
-
|
|
19180
|
-
|
|
19184
|
+
style: {
|
|
19185
|
+
background: "linear-gradient(135deg, " + color + ", " + (secondaryColor || color) + ")",
|
|
19186
|
+
backgroundClip: 'text',
|
|
19187
|
+
WebkitBackgroundClip: 'text',
|
|
19188
|
+
WebkitTextFillColor: 'transparent'
|
|
19189
|
+
},
|
|
19181
19190
|
color: 'transparent',
|
|
19182
|
-
webkitTextFillColor: 'transparent',
|
|
19183
19191
|
display: 'inline-block',
|
|
19184
19192
|
textShadow: 'none'
|
|
19185
19193
|
}),
|
|
19186
19194
|
outline: color => ({
|
|
19187
|
-
|
|
19188
|
-
|
|
19195
|
+
style: {
|
|
19196
|
+
WebkitTextStroke: "1px " + color,
|
|
19197
|
+
WebkitTextFillColor: 'transparent'
|
|
19198
|
+
},
|
|
19189
19199
|
color: 'transparent',
|
|
19190
19200
|
textShadow: 'none'
|
|
19191
19201
|
}),
|
|
@@ -19455,7 +19465,7 @@
|
|
|
19455
19465
|
})));
|
|
19456
19466
|
};
|
|
19457
19467
|
|
|
19458
|
-
var _excluded$$ = ["children", "highlightText", "highlightStyle", "highlightColor", "highlightSecondaryColor", "size", "responsive", "views", "highlightAnimate", "animate", "animationLoop", "highlightAnimationLoop", "highlightTypewriter", "highlightTypewriterDuration", "highlightSlide", "highlightSlideDuration", "highlightSlideStagger", "highlightSlideSequential"];
|
|
19468
|
+
var _excluded$$ = ["children", "highlightText", "highlightStyle", "highlightColor", "highlightSecondaryColor", "size", "responsive", "views", "highlightAnimate", "animate", "animationLoop", "highlightAnimationLoop", "highlightTypewriter", "highlightTypewriterDuration", "highlightSlide", "highlightSlideDuration", "highlightSlideStagger", "highlightSlideSequential", "themeMode"];
|
|
19459
19469
|
function escapeRegExp(string) {
|
|
19460
19470
|
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
19461
19471
|
}
|
|
@@ -19478,7 +19488,8 @@
|
|
|
19478
19488
|
highlightSlide: propHighlightSlide = false,
|
|
19479
19489
|
highlightSlideDuration = 500,
|
|
19480
19490
|
highlightSlideStagger = 50,
|
|
19481
|
-
highlightSlideSequential = true
|
|
19491
|
+
highlightSlideSequential = true,
|
|
19492
|
+
themeMode: elementMode
|
|
19482
19493
|
} = _ref,
|
|
19483
19494
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$$);
|
|
19484
19495
|
var {
|
|
@@ -19487,29 +19498,15 @@
|
|
|
19487
19498
|
} = appStudio.useInView();
|
|
19488
19499
|
var {
|
|
19489
19500
|
getColor,
|
|
19490
|
-
themeMode
|
|
19501
|
+
themeMode
|
|
19491
19502
|
} = appStudio.useTheme();
|
|
19492
|
-
var
|
|
19493
|
-
|
|
19494
|
-
|
|
19495
|
-
|
|
19496
|
-
|
|
19497
|
-
|
|
19498
|
-
|
|
19499
|
-
// Otherwise, use the theme's getColor function
|
|
19500
|
-
return getColor(colorValue, {
|
|
19501
|
-
themeMode
|
|
19502
|
-
});
|
|
19503
|
-
};
|
|
19504
|
-
var resolvedColor = resolveColorValue(highlightColor);
|
|
19505
|
-
var resolvedSecondary = highlightSecondaryColor ? resolveColorValue(highlightSecondaryColor) : undefined;
|
|
19506
|
-
var baseHighlightProps = HighlightStyles[highlightStyle](resolvedColor, resolvedSecondary);
|
|
19507
|
-
var highlightViewProps = highlightStyle === 'background' ? Object.assign({}, baseHighlightProps, {
|
|
19508
|
-
color: undefined
|
|
19509
|
-
}) : baseHighlightProps;
|
|
19510
|
-
var highlightBackgroundOverrides = highlightStyle === 'background' ? {
|
|
19511
|
-
bgColor: resolvedColor
|
|
19512
|
-
} : {};
|
|
19503
|
+
var currentThemeMode = elementMode || themeMode;
|
|
19504
|
+
var resolvedHighlightColor = getColor(highlightColor, {
|
|
19505
|
+
themeMode: currentThemeMode
|
|
19506
|
+
});
|
|
19507
|
+
var resolvedHighlightSecondaryColor = highlightSecondaryColor ? getColor(highlightSecondaryColor, {
|
|
19508
|
+
themeMode: currentThemeMode
|
|
19509
|
+
}) : undefined;
|
|
19513
19510
|
var {
|
|
19514
19511
|
finalDisplayedText,
|
|
19515
19512
|
activeHighlightTarget,
|
|
@@ -19529,12 +19526,13 @@
|
|
|
19529
19526
|
highlightSlideStagger,
|
|
19530
19527
|
highlightSlideSequential
|
|
19531
19528
|
}, props));
|
|
19532
|
-
//
|
|
19533
|
-
var useResponsive = responsive && !props.media;
|
|
19529
|
+
// Common style calculations
|
|
19530
|
+
var useResponsive = responsive && !props.media;
|
|
19534
19531
|
var fontSize = TitleSizes[size];
|
|
19535
|
-
// Get responsive styles if responsive prop is true
|
|
19536
19532
|
var responsiveStyles = useResponsive ? ResponsiveTypography[size] : null;
|
|
19537
|
-
//
|
|
19533
|
+
// Highlight style props
|
|
19534
|
+
var highlightProps = HighlightStyles[highlightStyle](resolvedHighlightColor, resolvedHighlightSecondaryColor);
|
|
19535
|
+
// Apply loop control to animations
|
|
19538
19536
|
var applyAnimationLoop = (animation, loopControl) => {
|
|
19539
19537
|
if (!animation) return animation;
|
|
19540
19538
|
if (Array.isArray(animation)) {
|
|
@@ -19546,109 +19544,88 @@
|
|
|
19546
19544
|
iterationCount: loopControl.toString()
|
|
19547
19545
|
});
|
|
19548
19546
|
};
|
|
19549
|
-
// Apply loop control to animations
|
|
19550
19547
|
var controlledAnimate = applyAnimationLoop(animate, animationLoop);
|
|
19551
19548
|
var controlledHighlightAnimate = applyAnimationLoop(highlightAnimate, highlightAnimationLoop);
|
|
19552
19549
|
// Get the text to display
|
|
19553
19550
|
var text = typeof finalDisplayedText === 'string' ? finalDisplayedText : typeof children === 'string' ? children : '';
|
|
19551
|
+
// Common container props
|
|
19552
|
+
var containerProps = {
|
|
19553
|
+
ref,
|
|
19554
|
+
as: 'h1',
|
|
19555
|
+
fontSize: useResponsive ? undefined : fontSize,
|
|
19556
|
+
fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
|
|
19557
|
+
letterSpacing: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.letterSpacing : undefined,
|
|
19558
|
+
marginBottom: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.marginBottom : undefined,
|
|
19559
|
+
animate: inView ? controlledAnimate : undefined,
|
|
19560
|
+
media: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.media : undefined
|
|
19561
|
+
};
|
|
19562
|
+
// Render highlighted text content (typewriter, slide, or plain)
|
|
19563
|
+
var renderHighlightedContent = content => {
|
|
19564
|
+
// If animations are enabled but not in view, render invisible placeholder
|
|
19565
|
+
// This holds layout space and prevents animations (like typewriter) from running off-screen
|
|
19566
|
+
if (!inView && (highlightTypewriter || highlightSlide)) {
|
|
19567
|
+
return /*#__PURE__*/React__default.createElement("span", {
|
|
19568
|
+
style: {
|
|
19569
|
+
opacity: 0
|
|
19570
|
+
}
|
|
19571
|
+
}, content);
|
|
19572
|
+
}
|
|
19573
|
+
if (highlightTypewriter) {
|
|
19574
|
+
return /*#__PURE__*/React__default.createElement(TypewriterEffect, Object.assign({
|
|
19575
|
+
text: content,
|
|
19576
|
+
typingSpeed: Math.max(30, highlightTypewriterDuration / (content.length * 10)),
|
|
19577
|
+
showCursor: true,
|
|
19578
|
+
cursorColor: "currentColor"
|
|
19579
|
+
}, highlightProps));
|
|
19580
|
+
}
|
|
19581
|
+
if (highlightSlide) {
|
|
19582
|
+
return /*#__PURE__*/React__default.createElement(SlideEffect, {
|
|
19583
|
+
text: content,
|
|
19584
|
+
duration: stateHighlightSlideDuration,
|
|
19585
|
+
stagger: stateHighlightSlideStagger,
|
|
19586
|
+
sequential: stateHighlightSlideSequential,
|
|
19587
|
+
direction: "up",
|
|
19588
|
+
fontSize: useResponsive ? undefined : fontSize,
|
|
19589
|
+
fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
|
|
19590
|
+
wordProps: highlightProps
|
|
19591
|
+
});
|
|
19592
|
+
}
|
|
19593
|
+
return content;
|
|
19594
|
+
};
|
|
19595
|
+
// Case 1: Has highlight target - render with highlighted parts
|
|
19554
19596
|
if (typeof text === 'string' && activeHighlightTarget) {
|
|
19555
|
-
var pattern = (
|
|
19556
|
-
if (Array.isArray(activeHighlightTarget)) {
|
|
19557
|
-
var escaped = activeHighlightTarget.map(t => escapeRegExp(String(t)));
|
|
19558
|
-
return new RegExp("(" + escaped.join('|') + ")", 'gi');
|
|
19559
|
-
}
|
|
19560
|
-
return new RegExp("(" + escapeRegExp(String(activeHighlightTarget)) + ")", 'gi');
|
|
19561
|
-
})();
|
|
19597
|
+
var pattern = Array.isArray(activeHighlightTarget) ? new RegExp("(" + activeHighlightTarget.map(t => escapeRegExp(String(t))).join('|') + ")", 'gi') : new RegExp("(" + escapeRegExp(String(activeHighlightTarget)) + ")", 'gi');
|
|
19562
19598
|
var parts = [];
|
|
19563
19599
|
var lastIndex = 0;
|
|
19564
19600
|
var match;
|
|
19565
19601
|
while (match = pattern.exec(text)) {
|
|
19566
|
-
if (match.index > lastIndex)
|
|
19567
|
-
parts.push(text.substring(lastIndex, match.index));
|
|
19568
|
-
}
|
|
19602
|
+
if (match.index > lastIndex) parts.push(text.substring(lastIndex, match.index));
|
|
19569
19603
|
parts.push({
|
|
19570
19604
|
highlight: true,
|
|
19571
19605
|
text: match[0]
|
|
19572
19606
|
});
|
|
19573
19607
|
lastIndex = match.index + match[0].length;
|
|
19574
19608
|
}
|
|
19575
|
-
if (lastIndex < text.length)
|
|
19576
|
-
|
|
19577
|
-
}
|
|
19578
|
-
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
19579
|
-
ref: ref,
|
|
19580
|
-
as: "h1",
|
|
19581
|
-
fontSize: useResponsive ? undefined : fontSize,
|
|
19582
|
-
fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
|
|
19583
|
-
letterSpacing: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.letterSpacing : undefined,
|
|
19584
|
-
marginBottom: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.marginBottom : undefined,
|
|
19585
|
-
animate: inView ? controlledAnimate : undefined,
|
|
19586
|
-
media: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.media : undefined
|
|
19587
|
-
}, views == null ? void 0 : views.container, props), parts.map((part, idx) => typeof part === 'string' ? part : (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
19609
|
+
if (lastIndex < text.length) parts.push(text.substring(lastIndex));
|
|
19610
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({}, containerProps, views == null ? void 0 : views.container, props), parts.map((part, idx) => typeof part === 'string' ? part : (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
19588
19611
|
key: "highlight-" + idx,
|
|
19589
19612
|
as: "span",
|
|
19590
19613
|
display: "inline",
|
|
19591
19614
|
animate: inView ? controlledHighlightAnimate : undefined,
|
|
19592
19615
|
fontSize: useResponsive ? undefined : fontSize
|
|
19593
|
-
}, !highlightSlide ?
|
|
19594
|
-
text: part.text,
|
|
19595
|
-
typingSpeed: Math.max(30, highlightTypewriterDuration / (part.text.length * 10)),
|
|
19596
|
-
showCursor: true,
|
|
19597
|
-
cursorColor: "currentColor"
|
|
19598
|
-
})) : highlightSlide ? (/*#__PURE__*/React__default.createElement(SlideEffect, {
|
|
19599
|
-
text: part.text,
|
|
19600
|
-
duration: stateHighlightSlideDuration,
|
|
19601
|
-
stagger: stateHighlightSlideStagger,
|
|
19602
|
-
sequential: stateHighlightSlideSequential,
|
|
19603
|
-
direction: "up",
|
|
19604
|
-
fontSize: useResponsive ? undefined : fontSize,
|
|
19605
|
-
fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
|
|
19606
|
-
wordProps: highlightViewProps
|
|
19607
|
-
})) : part.text))));
|
|
19616
|
+
}, !highlightSlide ? highlightProps : {}, views == null ? void 0 : views.highlight), renderHighlightedContent(part.text)))));
|
|
19608
19617
|
}
|
|
19609
|
-
//
|
|
19618
|
+
// Case 2: Has highlight style but no highlight target - apply style to entire title
|
|
19610
19619
|
if (highlightStyle && !activeHighlightTarget) {
|
|
19611
|
-
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
19612
|
-
ref: ref,
|
|
19613
|
-
as: "h1",
|
|
19614
|
-
fontSize: useResponsive ? undefined : fontSize,
|
|
19615
|
-
fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
|
|
19616
|
-
letterSpacing: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.letterSpacing : undefined,
|
|
19617
|
-
marginBottom: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.marginBottom : undefined,
|
|
19618
|
-
animate: inView ? controlledAnimate : undefined,
|
|
19619
|
-
media: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.media : undefined
|
|
19620
|
-
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
19620
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({}, containerProps, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
19621
19621
|
as: "span",
|
|
19622
19622
|
fontSize: fontSize,
|
|
19623
19623
|
display: "inline",
|
|
19624
19624
|
animate: inView ? controlledHighlightAnimate : undefined
|
|
19625
|
-
}, !highlightSlide ?
|
|
19626
|
-
text: text,
|
|
19627
|
-
typingSpeed: Math.max(30, highlightTypewriterDuration / (text.length * 10)),
|
|
19628
|
-
showCursor: true,
|
|
19629
|
-
cursorColor: "currentColor"
|
|
19630
|
-
})) : highlightSlide ? (/*#__PURE__*/React__default.createElement(SlideEffect, {
|
|
19631
|
-
text: text,
|
|
19632
|
-
duration: stateHighlightSlideDuration,
|
|
19633
|
-
stagger: stateHighlightSlideStagger,
|
|
19634
|
-
sequential: stateHighlightSlideSequential,
|
|
19635
|
-
direction: "up",
|
|
19636
|
-
fontSize: fontSize,
|
|
19637
|
-
fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
|
|
19638
|
-
wordProps: highlightViewProps
|
|
19639
|
-
})) : text));
|
|
19625
|
+
}, !highlightSlide ? highlightProps : {}, views == null ? void 0 : views.highlight), renderHighlightedContent(text)));
|
|
19640
19626
|
}
|
|
19641
|
-
// Default
|
|
19642
|
-
return /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
19643
|
-
ref: ref,
|
|
19644
|
-
as: "h1",
|
|
19645
|
-
fontSize: fontSize,
|
|
19646
|
-
fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
|
|
19647
|
-
letterSpacing: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.letterSpacing : undefined,
|
|
19648
|
-
marginBottom: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.marginBottom : undefined,
|
|
19649
|
-
animate: inView ? controlledAnimate : undefined,
|
|
19650
|
-
media: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.media : undefined
|
|
19651
|
-
}, views == null ? void 0 : views.container, props), text);
|
|
19627
|
+
// Case 3: Default - no highlighting
|
|
19628
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({}, containerProps, views == null ? void 0 : views.container, props), text);
|
|
19652
19629
|
};
|
|
19653
19630
|
|
|
19654
19631
|
/**
|
|
@@ -20915,7 +20892,7 @@
|
|
|
20915
20892
|
category: 'neutral'
|
|
20916
20893
|
}];
|
|
20917
20894
|
|
|
20918
|
-
var _excluded$14 = ["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"];
|
|
20895
|
+
var _excluded$14 = ["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", "onChange"];
|
|
20919
20896
|
var ColorPickerView = _ref => {
|
|
20920
20897
|
var {
|
|
20921
20898
|
// Basic props
|
|
@@ -23282,7 +23259,7 @@
|
|
|
23282
23259
|
};
|
|
23283
23260
|
};
|
|
23284
23261
|
|
|
23285
|
-
var _excluded$15 = ["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"];
|
|
23262
|
+
var _excluded$15 = ["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", "onChange"];
|
|
23286
23263
|
var EmojiPickerView = _ref => {
|
|
23287
23264
|
var {
|
|
23288
23265
|
// Basic props
|
|
@@ -24450,7 +24427,7 @@
|
|
|
24450
24427
|
var borderWidth = SeparatorThicknesses[thickness];
|
|
24451
24428
|
// Set appropriate ARIA attributes based on decorative prop
|
|
24452
24429
|
var ariaProps = decorative ? {
|
|
24453
|
-
'aria-hidden':
|
|
24430
|
+
'aria-hidden': true
|
|
24454
24431
|
} : {
|
|
24455
24432
|
role: 'separator',
|
|
24456
24433
|
'aria-orientation': orientation
|