@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
package/dist/web.esm.js
CHANGED
|
@@ -9804,7 +9804,7 @@ var TextAreaView = _ref => {
|
|
|
9804
9804
|
maxHeight: 'calc(100vh - 100px)',
|
|
9805
9805
|
height: 'calc(5em)',
|
|
9806
9806
|
border: 'none',
|
|
9807
|
-
resize
|
|
9807
|
+
// resize property removed to avoid type error, added via style prop
|
|
9808
9808
|
// Focus state
|
|
9809
9809
|
on: {
|
|
9810
9810
|
focus: {
|
|
@@ -9881,8 +9881,12 @@ var TextAreaView = _ref => {
|
|
|
9881
9881
|
onBlur: handleBlur,
|
|
9882
9882
|
onFocus: handleFocus,
|
|
9883
9883
|
multiline: "" + !!isMultiline.toString(),
|
|
9884
|
-
onChange: handleChange
|
|
9885
|
-
}, fieldStyles,
|
|
9884
|
+
onChange: e => handleChange(e)
|
|
9885
|
+
}, fieldStyles, {
|
|
9886
|
+
style: {
|
|
9887
|
+
resize: 'vertical'
|
|
9888
|
+
}
|
|
9889
|
+
}, views == null ? void 0 : views.textarea)))));
|
|
9886
9890
|
};
|
|
9887
9891
|
|
|
9888
9892
|
// Defines the TextAreaComponent as a functional component that accepts TextAreaProps for type safety and structure.
|
|
@@ -10739,7 +10743,7 @@ var DefaultColorPalette = [
|
|
|
10739
10743
|
value: 'transparent'
|
|
10740
10744
|
}];
|
|
10741
10745
|
|
|
10742
|
-
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"];
|
|
10746
|
+
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"];
|
|
10743
10747
|
var ColorInputView = _ref => {
|
|
10744
10748
|
var {
|
|
10745
10749
|
// Basic props
|
|
@@ -15787,7 +15791,7 @@ var AudioRecorder = _ref => {
|
|
|
15787
15791
|
}))));
|
|
15788
15792
|
};
|
|
15789
15793
|
|
|
15790
|
-
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"];
|
|
15794
|
+
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"];
|
|
15791
15795
|
var ChatInputView = _ref => {
|
|
15792
15796
|
var _value$trim$length;
|
|
15793
15797
|
var {
|
|
@@ -16567,7 +16571,7 @@ var OrientationStyles = {
|
|
|
16567
16571
|
}
|
|
16568
16572
|
};
|
|
16569
16573
|
|
|
16570
|
-
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"];
|
|
16574
|
+
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"];
|
|
16571
16575
|
var SliderView = _ref => {
|
|
16572
16576
|
var _views$tooltip, _views$tooltip2;
|
|
16573
16577
|
var {
|
|
@@ -19194,10 +19198,12 @@ var ResponsiveTypography = {
|
|
|
19194
19198
|
*/
|
|
19195
19199
|
var HighlightStyles = {
|
|
19196
19200
|
underline: color => ({
|
|
19197
|
-
|
|
19198
|
-
|
|
19199
|
-
|
|
19200
|
-
|
|
19201
|
+
style: {
|
|
19202
|
+
textDecoration: 'underline',
|
|
19203
|
+
textDecorationColor: color,
|
|
19204
|
+
textDecorationThickness: '4px',
|
|
19205
|
+
textUnderlineOffset: '4px'
|
|
19206
|
+
}
|
|
19201
19207
|
}),
|
|
19202
19208
|
background: color => ({
|
|
19203
19209
|
backgroundColor: color,
|
|
@@ -19206,17 +19212,21 @@ var HighlightStyles = {
|
|
|
19206
19212
|
borderRadius: '4px'
|
|
19207
19213
|
}),
|
|
19208
19214
|
gradient: (color, secondaryColor) => ({
|
|
19209
|
-
|
|
19210
|
-
|
|
19211
|
-
|
|
19215
|
+
style: {
|
|
19216
|
+
background: "linear-gradient(135deg, " + color + ", " + (secondaryColor || color) + ")",
|
|
19217
|
+
backgroundClip: 'text',
|
|
19218
|
+
WebkitBackgroundClip: 'text',
|
|
19219
|
+
WebkitTextFillColor: 'transparent'
|
|
19220
|
+
},
|
|
19212
19221
|
color: 'transparent',
|
|
19213
|
-
webkitTextFillColor: 'transparent',
|
|
19214
19222
|
display: 'inline-block',
|
|
19215
19223
|
textShadow: 'none'
|
|
19216
19224
|
}),
|
|
19217
19225
|
outline: color => ({
|
|
19218
|
-
|
|
19219
|
-
|
|
19226
|
+
style: {
|
|
19227
|
+
WebkitTextStroke: "1px " + color,
|
|
19228
|
+
WebkitTextFillColor: 'transparent'
|
|
19229
|
+
},
|
|
19220
19230
|
color: 'transparent',
|
|
19221
19231
|
textShadow: 'none'
|
|
19222
19232
|
}),
|
|
@@ -19486,7 +19496,7 @@ var SlideEffect = _ref => {
|
|
|
19486
19496
|
})));
|
|
19487
19497
|
};
|
|
19488
19498
|
|
|
19489
|
-
var _excluded$$ = ["children", "highlightText", "highlightStyle", "highlightColor", "highlightSecondaryColor", "size", "responsive", "views", "highlightAnimate", "animate", "animationLoop", "highlightAnimationLoop", "highlightTypewriter", "highlightTypewriterDuration", "highlightSlide", "highlightSlideDuration", "highlightSlideStagger", "highlightSlideSequential"];
|
|
19499
|
+
var _excluded$$ = ["children", "highlightText", "highlightStyle", "highlightColor", "highlightSecondaryColor", "size", "responsive", "views", "highlightAnimate", "animate", "animationLoop", "highlightAnimationLoop", "highlightTypewriter", "highlightTypewriterDuration", "highlightSlide", "highlightSlideDuration", "highlightSlideStagger", "highlightSlideSequential", "themeMode"];
|
|
19490
19500
|
function escapeRegExp(string) {
|
|
19491
19501
|
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
19492
19502
|
}
|
|
@@ -19509,7 +19519,8 @@ var TitleView = _ref => {
|
|
|
19509
19519
|
highlightSlide: propHighlightSlide = false,
|
|
19510
19520
|
highlightSlideDuration = 500,
|
|
19511
19521
|
highlightSlideStagger = 50,
|
|
19512
|
-
highlightSlideSequential = true
|
|
19522
|
+
highlightSlideSequential = true,
|
|
19523
|
+
themeMode: elementMode
|
|
19513
19524
|
} = _ref,
|
|
19514
19525
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$$);
|
|
19515
19526
|
var {
|
|
@@ -19518,29 +19529,15 @@ var TitleView = _ref => {
|
|
|
19518
19529
|
} = useInView();
|
|
19519
19530
|
var {
|
|
19520
19531
|
getColor,
|
|
19521
|
-
themeMode
|
|
19532
|
+
themeMode
|
|
19522
19533
|
} = useTheme();
|
|
19523
|
-
var
|
|
19524
|
-
|
|
19525
|
-
|
|
19526
|
-
|
|
19527
|
-
|
|
19528
|
-
|
|
19529
|
-
|
|
19530
|
-
// Otherwise, use the theme's getColor function
|
|
19531
|
-
return getColor(colorValue, {
|
|
19532
|
-
themeMode
|
|
19533
|
-
});
|
|
19534
|
-
};
|
|
19535
|
-
var resolvedColor = resolveColorValue(highlightColor);
|
|
19536
|
-
var resolvedSecondary = highlightSecondaryColor ? resolveColorValue(highlightSecondaryColor) : undefined;
|
|
19537
|
-
var baseHighlightProps = HighlightStyles[highlightStyle](resolvedColor, resolvedSecondary);
|
|
19538
|
-
var highlightViewProps = highlightStyle === 'background' ? Object.assign({}, baseHighlightProps, {
|
|
19539
|
-
color: undefined
|
|
19540
|
-
}) : baseHighlightProps;
|
|
19541
|
-
var highlightBackgroundOverrides = highlightStyle === 'background' ? {
|
|
19542
|
-
bgColor: resolvedColor
|
|
19543
|
-
} : {};
|
|
19534
|
+
var currentThemeMode = elementMode || themeMode;
|
|
19535
|
+
var resolvedHighlightColor = getColor(highlightColor, {
|
|
19536
|
+
themeMode: currentThemeMode
|
|
19537
|
+
});
|
|
19538
|
+
var resolvedHighlightSecondaryColor = highlightSecondaryColor ? getColor(highlightSecondaryColor, {
|
|
19539
|
+
themeMode: currentThemeMode
|
|
19540
|
+
}) : undefined;
|
|
19544
19541
|
var {
|
|
19545
19542
|
finalDisplayedText,
|
|
19546
19543
|
activeHighlightTarget,
|
|
@@ -19560,12 +19557,13 @@ var TitleView = _ref => {
|
|
|
19560
19557
|
highlightSlideStagger,
|
|
19561
19558
|
highlightSlideSequential
|
|
19562
19559
|
}, props));
|
|
19563
|
-
//
|
|
19564
|
-
var useResponsive = responsive && !props.media;
|
|
19560
|
+
// Common style calculations
|
|
19561
|
+
var useResponsive = responsive && !props.media;
|
|
19565
19562
|
var fontSize = TitleSizes[size];
|
|
19566
|
-
// Get responsive styles if responsive prop is true
|
|
19567
19563
|
var responsiveStyles = useResponsive ? ResponsiveTypography[size] : null;
|
|
19568
|
-
//
|
|
19564
|
+
// Highlight style props
|
|
19565
|
+
var highlightProps = HighlightStyles[highlightStyle](resolvedHighlightColor, resolvedHighlightSecondaryColor);
|
|
19566
|
+
// Apply loop control to animations
|
|
19569
19567
|
var applyAnimationLoop = (animation, loopControl) => {
|
|
19570
19568
|
if (!animation) return animation;
|
|
19571
19569
|
if (Array.isArray(animation)) {
|
|
@@ -19577,109 +19575,88 @@ var TitleView = _ref => {
|
|
|
19577
19575
|
iterationCount: loopControl.toString()
|
|
19578
19576
|
});
|
|
19579
19577
|
};
|
|
19580
|
-
// Apply loop control to animations
|
|
19581
19578
|
var controlledAnimate = applyAnimationLoop(animate, animationLoop);
|
|
19582
19579
|
var controlledHighlightAnimate = applyAnimationLoop(highlightAnimate, highlightAnimationLoop);
|
|
19583
19580
|
// Get the text to display
|
|
19584
19581
|
var text = typeof finalDisplayedText === 'string' ? finalDisplayedText : typeof children === 'string' ? children : '';
|
|
19582
|
+
// Common container props
|
|
19583
|
+
var containerProps = {
|
|
19584
|
+
ref,
|
|
19585
|
+
as: 'h1',
|
|
19586
|
+
fontSize: useResponsive ? undefined : fontSize,
|
|
19587
|
+
fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
|
|
19588
|
+
letterSpacing: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.letterSpacing : undefined,
|
|
19589
|
+
marginBottom: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.marginBottom : undefined,
|
|
19590
|
+
animate: inView ? controlledAnimate : undefined,
|
|
19591
|
+
media: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.media : undefined
|
|
19592
|
+
};
|
|
19593
|
+
// Render highlighted text content (typewriter, slide, or plain)
|
|
19594
|
+
var renderHighlightedContent = content => {
|
|
19595
|
+
// If animations are enabled but not in view, render invisible placeholder
|
|
19596
|
+
// This holds layout space and prevents animations (like typewriter) from running off-screen
|
|
19597
|
+
if (!inView && (highlightTypewriter || highlightSlide)) {
|
|
19598
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
19599
|
+
style: {
|
|
19600
|
+
opacity: 0
|
|
19601
|
+
}
|
|
19602
|
+
}, content);
|
|
19603
|
+
}
|
|
19604
|
+
if (highlightTypewriter) {
|
|
19605
|
+
return /*#__PURE__*/React.createElement(TypewriterEffect, Object.assign({
|
|
19606
|
+
text: content,
|
|
19607
|
+
typingSpeed: Math.max(30, highlightTypewriterDuration / (content.length * 10)),
|
|
19608
|
+
showCursor: true,
|
|
19609
|
+
cursorColor: "currentColor"
|
|
19610
|
+
}, highlightProps));
|
|
19611
|
+
}
|
|
19612
|
+
if (highlightSlide) {
|
|
19613
|
+
return /*#__PURE__*/React.createElement(SlideEffect, {
|
|
19614
|
+
text: content,
|
|
19615
|
+
duration: stateHighlightSlideDuration,
|
|
19616
|
+
stagger: stateHighlightSlideStagger,
|
|
19617
|
+
sequential: stateHighlightSlideSequential,
|
|
19618
|
+
direction: "up",
|
|
19619
|
+
fontSize: useResponsive ? undefined : fontSize,
|
|
19620
|
+
fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
|
|
19621
|
+
wordProps: highlightProps
|
|
19622
|
+
});
|
|
19623
|
+
}
|
|
19624
|
+
return content;
|
|
19625
|
+
};
|
|
19626
|
+
// Case 1: Has highlight target - render with highlighted parts
|
|
19585
19627
|
if (typeof text === 'string' && activeHighlightTarget) {
|
|
19586
|
-
var pattern = (
|
|
19587
|
-
if (Array.isArray(activeHighlightTarget)) {
|
|
19588
|
-
var escaped = activeHighlightTarget.map(t => escapeRegExp(String(t)));
|
|
19589
|
-
return new RegExp("(" + escaped.join('|') + ")", 'gi');
|
|
19590
|
-
}
|
|
19591
|
-
return new RegExp("(" + escapeRegExp(String(activeHighlightTarget)) + ")", 'gi');
|
|
19592
|
-
})();
|
|
19628
|
+
var pattern = Array.isArray(activeHighlightTarget) ? new RegExp("(" + activeHighlightTarget.map(t => escapeRegExp(String(t))).join('|') + ")", 'gi') : new RegExp("(" + escapeRegExp(String(activeHighlightTarget)) + ")", 'gi');
|
|
19593
19629
|
var parts = [];
|
|
19594
19630
|
var lastIndex = 0;
|
|
19595
19631
|
var match;
|
|
19596
19632
|
while (match = pattern.exec(text)) {
|
|
19597
|
-
if (match.index > lastIndex)
|
|
19598
|
-
parts.push(text.substring(lastIndex, match.index));
|
|
19599
|
-
}
|
|
19633
|
+
if (match.index > lastIndex) parts.push(text.substring(lastIndex, match.index));
|
|
19600
19634
|
parts.push({
|
|
19601
19635
|
highlight: true,
|
|
19602
19636
|
text: match[0]
|
|
19603
19637
|
});
|
|
19604
19638
|
lastIndex = match.index + match[0].length;
|
|
19605
19639
|
}
|
|
19606
|
-
if (lastIndex < text.length)
|
|
19607
|
-
|
|
19608
|
-
}
|
|
19609
|
-
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
19610
|
-
ref: ref,
|
|
19611
|
-
as: "h1",
|
|
19612
|
-
fontSize: useResponsive ? undefined : fontSize,
|
|
19613
|
-
fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
|
|
19614
|
-
letterSpacing: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.letterSpacing : undefined,
|
|
19615
|
-
marginBottom: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.marginBottom : undefined,
|
|
19616
|
-
animate: inView ? controlledAnimate : undefined,
|
|
19617
|
-
media: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.media : undefined
|
|
19618
|
-
}, views == null ? void 0 : views.container, props), parts.map((part, idx) => typeof part === 'string' ? part : (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
19640
|
+
if (lastIndex < text.length) parts.push(text.substring(lastIndex));
|
|
19641
|
+
return /*#__PURE__*/React.createElement(Element, Object.assign({}, containerProps, views == null ? void 0 : views.container, props), parts.map((part, idx) => typeof part === 'string' ? part : (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
19619
19642
|
key: "highlight-" + idx,
|
|
19620
19643
|
as: "span",
|
|
19621
19644
|
display: "inline",
|
|
19622
19645
|
animate: inView ? controlledHighlightAnimate : undefined,
|
|
19623
19646
|
fontSize: useResponsive ? undefined : fontSize
|
|
19624
|
-
}, !highlightSlide ?
|
|
19625
|
-
text: part.text,
|
|
19626
|
-
typingSpeed: Math.max(30, highlightTypewriterDuration / (part.text.length * 10)),
|
|
19627
|
-
showCursor: true,
|
|
19628
|
-
cursorColor: "currentColor"
|
|
19629
|
-
})) : highlightSlide ? (/*#__PURE__*/React.createElement(SlideEffect, {
|
|
19630
|
-
text: part.text,
|
|
19631
|
-
duration: stateHighlightSlideDuration,
|
|
19632
|
-
stagger: stateHighlightSlideStagger,
|
|
19633
|
-
sequential: stateHighlightSlideSequential,
|
|
19634
|
-
direction: "up",
|
|
19635
|
-
fontSize: useResponsive ? undefined : fontSize,
|
|
19636
|
-
fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
|
|
19637
|
-
wordProps: highlightViewProps
|
|
19638
|
-
})) : part.text))));
|
|
19647
|
+
}, !highlightSlide ? highlightProps : {}, views == null ? void 0 : views.highlight), renderHighlightedContent(part.text)))));
|
|
19639
19648
|
}
|
|
19640
|
-
//
|
|
19649
|
+
// Case 2: Has highlight style but no highlight target - apply style to entire title
|
|
19641
19650
|
if (highlightStyle && !activeHighlightTarget) {
|
|
19642
|
-
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
19643
|
-
ref: ref,
|
|
19644
|
-
as: "h1",
|
|
19645
|
-
fontSize: useResponsive ? undefined : 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), /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
19651
|
+
return /*#__PURE__*/React.createElement(Element, Object.assign({}, containerProps, views == null ? void 0 : views.container, props), /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
19652
19652
|
as: "span",
|
|
19653
19653
|
fontSize: fontSize,
|
|
19654
19654
|
display: "inline",
|
|
19655
19655
|
animate: inView ? controlledHighlightAnimate : undefined
|
|
19656
|
-
}, !highlightSlide ?
|
|
19657
|
-
text: text,
|
|
19658
|
-
typingSpeed: Math.max(30, highlightTypewriterDuration / (text.length * 10)),
|
|
19659
|
-
showCursor: true,
|
|
19660
|
-
cursorColor: "currentColor"
|
|
19661
|
-
})) : highlightSlide ? (/*#__PURE__*/React.createElement(SlideEffect, {
|
|
19662
|
-
text: text,
|
|
19663
|
-
duration: stateHighlightSlideDuration,
|
|
19664
|
-
stagger: stateHighlightSlideStagger,
|
|
19665
|
-
sequential: stateHighlightSlideSequential,
|
|
19666
|
-
direction: "up",
|
|
19667
|
-
fontSize: fontSize,
|
|
19668
|
-
fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
|
|
19669
|
-
wordProps: highlightViewProps
|
|
19670
|
-
})) : text));
|
|
19656
|
+
}, !highlightSlide ? highlightProps : {}, views == null ? void 0 : views.highlight), renderHighlightedContent(text)));
|
|
19671
19657
|
}
|
|
19672
|
-
// Default
|
|
19673
|
-
return /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
19674
|
-
ref: ref,
|
|
19675
|
-
as: "h1",
|
|
19676
|
-
fontSize: fontSize,
|
|
19677
|
-
fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
|
|
19678
|
-
letterSpacing: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.letterSpacing : undefined,
|
|
19679
|
-
marginBottom: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.marginBottom : undefined,
|
|
19680
|
-
animate: inView ? controlledAnimate : undefined,
|
|
19681
|
-
media: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.media : undefined
|
|
19682
|
-
}, views == null ? void 0 : views.container, props), text);
|
|
19658
|
+
// Case 3: Default - no highlighting
|
|
19659
|
+
return /*#__PURE__*/React.createElement(Text, Object.assign({}, containerProps, views == null ? void 0 : views.container, props), text);
|
|
19683
19660
|
};
|
|
19684
19661
|
|
|
19685
19662
|
/**
|
|
@@ -20946,7 +20923,7 @@ var DefaultColorPalette$1 = [
|
|
|
20946
20923
|
category: 'neutral'
|
|
20947
20924
|
}];
|
|
20948
20925
|
|
|
20949
|
-
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"];
|
|
20926
|
+
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"];
|
|
20950
20927
|
var ColorPickerView = _ref => {
|
|
20951
20928
|
var {
|
|
20952
20929
|
// Basic props
|
|
@@ -23313,7 +23290,7 @@ var useEmojiPickerState = props => {
|
|
|
23313
23290
|
};
|
|
23314
23291
|
};
|
|
23315
23292
|
|
|
23316
|
-
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"];
|
|
23293
|
+
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"];
|
|
23317
23294
|
var EmojiPickerView = _ref => {
|
|
23318
23295
|
var {
|
|
23319
23296
|
// Basic props
|
|
@@ -24481,7 +24458,7 @@ var SeparatorView = _ref => {
|
|
|
24481
24458
|
var borderWidth = SeparatorThicknesses[thickness];
|
|
24482
24459
|
// Set appropriate ARIA attributes based on decorative prop
|
|
24483
24460
|
var ariaProps = decorative ? {
|
|
24484
|
-
'aria-hidden':
|
|
24461
|
+
'aria-hidden': true
|
|
24485
24462
|
} : {
|
|
24486
24463
|
role: 'separator',
|
|
24487
24464
|
'aria-orientation': orientation
|