@app-studio/web 0.9.59 → 0.9.60
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 +89 -124
- 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 +89 -124
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +89 -124
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ViewProps } from 'app-studio';
|
|
3
3
|
import { Variant, Shape, Size, ColorPickerStyles, ColorFormat, PredefinedColor } from './ColorPicker.type';
|
|
4
|
-
export interface ColorPickerProps extends ViewProps {
|
|
4
|
+
export interface ColorPickerProps extends Omit<ViewProps, 'onChange'> {
|
|
5
5
|
id?: string;
|
|
6
6
|
name?: string;
|
|
7
7
|
label?: string;
|
|
@@ -7,7 +7,7 @@ export interface DragAndDropProps {
|
|
|
7
7
|
containerProps?: ViewProps;
|
|
8
8
|
itemProps?: ViewProps;
|
|
9
9
|
}
|
|
10
|
-
export interface DragAndDropViewProps extends DragAndDropProps, ViewProps {
|
|
10
|
+
export interface DragAndDropViewProps extends DragAndDropProps, Omit<ViewProps, 'onChange'> {
|
|
11
11
|
draggedIndex: number | null;
|
|
12
12
|
itemRefs: React.MutableRefObject<(HTMLDivElement | null)[]>;
|
|
13
13
|
renderItem?: (item: any, index: number) => React.ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ViewProps } from 'app-studio';
|
|
3
3
|
import { Variant, Shape, Size, EmojiPickerStyles, EmojiCategory, Emoji } from './EmojiPicker.type';
|
|
4
|
-
export interface EmojiPickerProps extends ViewProps {
|
|
4
|
+
export interface EmojiPickerProps extends Omit<ViewProps, 'onChange'> {
|
|
5
5
|
id?: string;
|
|
6
6
|
name?: string;
|
|
7
7
|
label?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { InputProps, ViewProps } from 'app-studio';
|
|
3
3
|
import { Orientation, Shape, Size, SliderStyles, Variant } from './Slider.type';
|
|
4
|
-
export interface SliderProps extends Omit<InputProps, 'size' | 'onChange'> {
|
|
4
|
+
export interface SliderProps extends Omit<InputProps, 'size' | 'onChange' | 'onDrag'> {
|
|
5
5
|
/**
|
|
6
6
|
* The minimum value of the slider
|
|
7
7
|
*/
|
|
@@ -9811,7 +9811,7 @@ var TextAreaView = _ref => {
|
|
|
9811
9811
|
maxHeight: 'calc(100vh - 100px)',
|
|
9812
9812
|
height: 'calc(5em)',
|
|
9813
9813
|
border: 'none',
|
|
9814
|
-
resize
|
|
9814
|
+
// resize property removed to avoid type error, added via style prop
|
|
9815
9815
|
// Focus state
|
|
9816
9816
|
on: {
|
|
9817
9817
|
focus: {
|
|
@@ -9888,8 +9888,12 @@ var TextAreaView = _ref => {
|
|
|
9888
9888
|
onBlur: handleBlur,
|
|
9889
9889
|
onFocus: handleFocus,
|
|
9890
9890
|
multiline: "" + !!isMultiline.toString(),
|
|
9891
|
-
onChange: handleChange
|
|
9892
|
-
}, fieldStyles,
|
|
9891
|
+
onChange: e => handleChange(e)
|
|
9892
|
+
}, fieldStyles, {
|
|
9893
|
+
style: {
|
|
9894
|
+
resize: 'vertical'
|
|
9895
|
+
}
|
|
9896
|
+
}, views == null ? void 0 : views.textarea)))));
|
|
9893
9897
|
};
|
|
9894
9898
|
|
|
9895
9899
|
// Defines the TextAreaComponent as a functional component that accepts TextAreaProps for type safety and structure.
|
|
@@ -10746,7 +10750,7 @@ var DefaultColorPalette = [
|
|
|
10746
10750
|
value: 'transparent'
|
|
10747
10751
|
}];
|
|
10748
10752
|
|
|
10749
|
-
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"];
|
|
10753
|
+
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"];
|
|
10750
10754
|
var ColorInputView = _ref => {
|
|
10751
10755
|
var {
|
|
10752
10756
|
// Basic props
|
|
@@ -15794,7 +15798,7 @@ var AudioRecorder = _ref => {
|
|
|
15794
15798
|
}))));
|
|
15795
15799
|
};
|
|
15796
15800
|
|
|
15797
|
-
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"];
|
|
15801
|
+
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"];
|
|
15798
15802
|
var ChatInputView = _ref => {
|
|
15799
15803
|
var _value$trim$length;
|
|
15800
15804
|
var {
|
|
@@ -16574,7 +16578,7 @@ var OrientationStyles = {
|
|
|
16574
16578
|
}
|
|
16575
16579
|
};
|
|
16576
16580
|
|
|
16577
|
-
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"];
|
|
16581
|
+
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"];
|
|
16578
16582
|
var SliderView = _ref => {
|
|
16579
16583
|
var _views$tooltip, _views$tooltip2;
|
|
16580
16584
|
var {
|
|
@@ -19201,10 +19205,12 @@ var ResponsiveTypography = {
|
|
|
19201
19205
|
*/
|
|
19202
19206
|
var HighlightStyles = {
|
|
19203
19207
|
underline: color => ({
|
|
19204
|
-
|
|
19205
|
-
|
|
19206
|
-
|
|
19207
|
-
|
|
19208
|
+
style: {
|
|
19209
|
+
textDecoration: 'underline',
|
|
19210
|
+
textDecorationColor: color,
|
|
19211
|
+
textDecorationThickness: '4px',
|
|
19212
|
+
textUnderlineOffset: '4px'
|
|
19213
|
+
}
|
|
19208
19214
|
}),
|
|
19209
19215
|
background: color => ({
|
|
19210
19216
|
backgroundColor: color,
|
|
@@ -19213,17 +19219,21 @@ var HighlightStyles = {
|
|
|
19213
19219
|
borderRadius: '4px'
|
|
19214
19220
|
}),
|
|
19215
19221
|
gradient: (color, secondaryColor) => ({
|
|
19216
|
-
|
|
19217
|
-
|
|
19218
|
-
|
|
19222
|
+
style: {
|
|
19223
|
+
background: "linear-gradient(135deg, " + color + ", " + (secondaryColor || color) + ")",
|
|
19224
|
+
backgroundClip: 'text',
|
|
19225
|
+
WebkitBackgroundClip: 'text',
|
|
19226
|
+
WebkitTextFillColor: 'transparent'
|
|
19227
|
+
},
|
|
19219
19228
|
color: 'transparent',
|
|
19220
|
-
webkitTextFillColor: 'transparent',
|
|
19221
19229
|
display: 'inline-block',
|
|
19222
19230
|
textShadow: 'none'
|
|
19223
19231
|
}),
|
|
19224
19232
|
outline: color => ({
|
|
19225
|
-
|
|
19226
|
-
|
|
19233
|
+
style: {
|
|
19234
|
+
WebkitTextStroke: "1px " + color,
|
|
19235
|
+
WebkitTextFillColor: 'transparent'
|
|
19236
|
+
},
|
|
19227
19237
|
color: 'transparent',
|
|
19228
19238
|
textShadow: 'none'
|
|
19229
19239
|
}),
|
|
@@ -19523,31 +19533,6 @@ var TitleView = _ref => {
|
|
|
19523
19533
|
ref,
|
|
19524
19534
|
inView
|
|
19525
19535
|
} = appStudio.useInView();
|
|
19526
|
-
var {
|
|
19527
|
-
getColor,
|
|
19528
|
-
themeMode: ctxMode
|
|
19529
|
-
} = appStudio.useTheme();
|
|
19530
|
-
var themeMode = props.themeMode || ctxMode;
|
|
19531
|
-
// Resolve colors, handling both theme colors and direct hex values
|
|
19532
|
-
var resolveColorValue = colorValue => {
|
|
19533
|
-
// If it's already a hex color, return it directly
|
|
19534
|
-
if (colorValue.startsWith('#')) {
|
|
19535
|
-
return colorValue;
|
|
19536
|
-
}
|
|
19537
|
-
// Otherwise, use the theme's getColor function
|
|
19538
|
-
return getColor(colorValue, {
|
|
19539
|
-
themeMode
|
|
19540
|
-
});
|
|
19541
|
-
};
|
|
19542
|
-
var resolvedColor = resolveColorValue(highlightColor);
|
|
19543
|
-
var resolvedSecondary = highlightSecondaryColor ? resolveColorValue(highlightSecondaryColor) : undefined;
|
|
19544
|
-
var baseHighlightProps = HighlightStyles[highlightStyle](resolvedColor, resolvedSecondary);
|
|
19545
|
-
var highlightViewProps = highlightStyle === 'background' ? Object.assign({}, baseHighlightProps, {
|
|
19546
|
-
color: undefined
|
|
19547
|
-
}) : baseHighlightProps;
|
|
19548
|
-
var highlightBackgroundOverrides = highlightStyle === 'background' ? {
|
|
19549
|
-
bgColor: resolvedColor
|
|
19550
|
-
} : {};
|
|
19551
19536
|
var {
|
|
19552
19537
|
finalDisplayedText,
|
|
19553
19538
|
activeHighlightTarget,
|
|
@@ -19567,12 +19552,13 @@ var TitleView = _ref => {
|
|
|
19567
19552
|
highlightSlideStagger,
|
|
19568
19553
|
highlightSlideSequential
|
|
19569
19554
|
}, props));
|
|
19570
|
-
//
|
|
19571
|
-
var useResponsive = responsive && !props.media;
|
|
19555
|
+
// Common style calculations
|
|
19556
|
+
var useResponsive = responsive && !props.media;
|
|
19572
19557
|
var fontSize = TitleSizes[size];
|
|
19573
|
-
// Get responsive styles if responsive prop is true
|
|
19574
19558
|
var responsiveStyles = useResponsive ? ResponsiveTypography[size] : null;
|
|
19575
|
-
//
|
|
19559
|
+
// Highlight style props
|
|
19560
|
+
var highlightProps = HighlightStyles[highlightStyle](highlightColor, highlightSecondaryColor);
|
|
19561
|
+
// Apply loop control to animations
|
|
19576
19562
|
var applyAnimationLoop = (animation, loopControl) => {
|
|
19577
19563
|
if (!animation) return animation;
|
|
19578
19564
|
if (Array.isArray(animation)) {
|
|
@@ -19584,109 +19570,88 @@ var TitleView = _ref => {
|
|
|
19584
19570
|
iterationCount: loopControl.toString()
|
|
19585
19571
|
});
|
|
19586
19572
|
};
|
|
19587
|
-
// Apply loop control to animations
|
|
19588
19573
|
var controlledAnimate = applyAnimationLoop(animate, animationLoop);
|
|
19589
19574
|
var controlledHighlightAnimate = applyAnimationLoop(highlightAnimate, highlightAnimationLoop);
|
|
19590
19575
|
// Get the text to display
|
|
19591
19576
|
var text = typeof finalDisplayedText === 'string' ? finalDisplayedText : typeof children === 'string' ? children : '';
|
|
19577
|
+
// Common container props
|
|
19578
|
+
var containerProps = {
|
|
19579
|
+
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
|
+
};
|
|
19588
|
+
// Render highlighted text content (typewriter, slide, or plain)
|
|
19589
|
+
var renderHighlightedContent = content => {
|
|
19590
|
+
// If animations are enabled but not in view, render invisible placeholder
|
|
19591
|
+
// This holds layout space and prevents animations (like typewriter) from running off-screen
|
|
19592
|
+
if (!inView && (highlightTypewriter || highlightSlide)) {
|
|
19593
|
+
return /*#__PURE__*/React__default.createElement("span", {
|
|
19594
|
+
style: {
|
|
19595
|
+
opacity: 0
|
|
19596
|
+
}
|
|
19597
|
+
}, content);
|
|
19598
|
+
}
|
|
19599
|
+
if (highlightTypewriter) {
|
|
19600
|
+
return /*#__PURE__*/React__default.createElement(TypewriterEffect, Object.assign({
|
|
19601
|
+
text: content,
|
|
19602
|
+
typingSpeed: Math.max(30, highlightTypewriterDuration / (content.length * 10)),
|
|
19603
|
+
showCursor: true,
|
|
19604
|
+
cursorColor: "currentColor"
|
|
19605
|
+
}, highlightProps));
|
|
19606
|
+
}
|
|
19607
|
+
if (highlightSlide) {
|
|
19608
|
+
return /*#__PURE__*/React__default.createElement(SlideEffect, {
|
|
19609
|
+
text: content,
|
|
19610
|
+
duration: stateHighlightSlideDuration,
|
|
19611
|
+
stagger: stateHighlightSlideStagger,
|
|
19612
|
+
sequential: stateHighlightSlideSequential,
|
|
19613
|
+
direction: "up",
|
|
19614
|
+
fontSize: useResponsive ? undefined : fontSize,
|
|
19615
|
+
fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
|
|
19616
|
+
wordProps: highlightProps
|
|
19617
|
+
});
|
|
19618
|
+
}
|
|
19619
|
+
return content;
|
|
19620
|
+
};
|
|
19621
|
+
// Case 1: Has highlight target - render with highlighted parts
|
|
19592
19622
|
if (typeof text === 'string' && activeHighlightTarget) {
|
|
19593
|
-
var pattern = (
|
|
19594
|
-
if (Array.isArray(activeHighlightTarget)) {
|
|
19595
|
-
var escaped = activeHighlightTarget.map(t => escapeRegExp(String(t)));
|
|
19596
|
-
return new RegExp("(" + escaped.join('|') + ")", 'gi');
|
|
19597
|
-
}
|
|
19598
|
-
return new RegExp("(" + escapeRegExp(String(activeHighlightTarget)) + ")", 'gi');
|
|
19599
|
-
})();
|
|
19623
|
+
var pattern = Array.isArray(activeHighlightTarget) ? new RegExp("(" + activeHighlightTarget.map(t => escapeRegExp(String(t))).join('|') + ")", 'gi') : new RegExp("(" + escapeRegExp(String(activeHighlightTarget)) + ")", 'gi');
|
|
19600
19624
|
var parts = [];
|
|
19601
19625
|
var lastIndex = 0;
|
|
19602
19626
|
var match;
|
|
19603
19627
|
while (match = pattern.exec(text)) {
|
|
19604
|
-
if (match.index > lastIndex)
|
|
19605
|
-
parts.push(text.substring(lastIndex, match.index));
|
|
19606
|
-
}
|
|
19628
|
+
if (match.index > lastIndex) parts.push(text.substring(lastIndex, match.index));
|
|
19607
19629
|
parts.push({
|
|
19608
19630
|
highlight: true,
|
|
19609
19631
|
text: match[0]
|
|
19610
19632
|
});
|
|
19611
19633
|
lastIndex = match.index + match[0].length;
|
|
19612
19634
|
}
|
|
19613
|
-
if (lastIndex < text.length)
|
|
19614
|
-
|
|
19615
|
-
}
|
|
19616
|
-
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
19617
|
-
ref: ref,
|
|
19618
|
-
as: "h1",
|
|
19619
|
-
fontSize: useResponsive ? undefined : fontSize,
|
|
19620
|
-
fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
|
|
19621
|
-
letterSpacing: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.letterSpacing : undefined,
|
|
19622
|
-
marginBottom: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.marginBottom : undefined,
|
|
19623
|
-
animate: inView ? controlledAnimate : undefined,
|
|
19624
|
-
media: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.media : undefined
|
|
19625
|
-
}, views == null ? void 0 : views.container, props), parts.map((part, idx) => typeof part === 'string' ? part : (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
19635
|
+
if (lastIndex < text.length) parts.push(text.substring(lastIndex));
|
|
19636
|
+
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({
|
|
19626
19637
|
key: "highlight-" + idx,
|
|
19627
19638
|
as: "span",
|
|
19628
19639
|
display: "inline",
|
|
19629
19640
|
animate: inView ? controlledHighlightAnimate : undefined,
|
|
19630
19641
|
fontSize: useResponsive ? undefined : fontSize
|
|
19631
|
-
}, !highlightSlide ?
|
|
19632
|
-
text: part.text,
|
|
19633
|
-
typingSpeed: Math.max(30, highlightTypewriterDuration / (part.text.length * 10)),
|
|
19634
|
-
showCursor: true,
|
|
19635
|
-
cursorColor: "currentColor"
|
|
19636
|
-
})) : highlightSlide ? (/*#__PURE__*/React__default.createElement(SlideEffect, {
|
|
19637
|
-
text: part.text,
|
|
19638
|
-
duration: stateHighlightSlideDuration,
|
|
19639
|
-
stagger: stateHighlightSlideStagger,
|
|
19640
|
-
sequential: stateHighlightSlideSequential,
|
|
19641
|
-
direction: "up",
|
|
19642
|
-
fontSize: useResponsive ? undefined : fontSize,
|
|
19643
|
-
fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
|
|
19644
|
-
wordProps: highlightViewProps
|
|
19645
|
-
})) : part.text))));
|
|
19642
|
+
}, !highlightSlide ? highlightProps : {}, views == null ? void 0 : views.highlight), renderHighlightedContent(part.text)))));
|
|
19646
19643
|
}
|
|
19647
|
-
//
|
|
19644
|
+
// Case 2: Has highlight style but no highlight target - apply style to entire title
|
|
19648
19645
|
if (highlightStyle && !activeHighlightTarget) {
|
|
19649
|
-
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
19650
|
-
ref: ref,
|
|
19651
|
-
as: "h1",
|
|
19652
|
-
fontSize: useResponsive ? undefined : fontSize,
|
|
19653
|
-
fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
|
|
19654
|
-
letterSpacing: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.letterSpacing : undefined,
|
|
19655
|
-
marginBottom: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.marginBottom : undefined,
|
|
19656
|
-
animate: inView ? controlledAnimate : undefined,
|
|
19657
|
-
media: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.media : undefined
|
|
19658
|
-
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
19646
|
+
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({
|
|
19659
19647
|
as: "span",
|
|
19660
19648
|
fontSize: fontSize,
|
|
19661
19649
|
display: "inline",
|
|
19662
19650
|
animate: inView ? controlledHighlightAnimate : undefined
|
|
19663
|
-
}, !highlightSlide ?
|
|
19664
|
-
text: text,
|
|
19665
|
-
typingSpeed: Math.max(30, highlightTypewriterDuration / (text.length * 10)),
|
|
19666
|
-
showCursor: true,
|
|
19667
|
-
cursorColor: "currentColor"
|
|
19668
|
-
})) : highlightSlide ? (/*#__PURE__*/React__default.createElement(SlideEffect, {
|
|
19669
|
-
text: text,
|
|
19670
|
-
duration: stateHighlightSlideDuration,
|
|
19671
|
-
stagger: stateHighlightSlideStagger,
|
|
19672
|
-
sequential: stateHighlightSlideSequential,
|
|
19673
|
-
direction: "up",
|
|
19674
|
-
fontSize: fontSize,
|
|
19675
|
-
fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
|
|
19676
|
-
wordProps: highlightViewProps
|
|
19677
|
-
})) : text));
|
|
19651
|
+
}, !highlightSlide ? highlightProps : {}, views == null ? void 0 : views.highlight), renderHighlightedContent(text)));
|
|
19678
19652
|
}
|
|
19679
|
-
// Default
|
|
19680
|
-
return /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
19681
|
-
ref: ref,
|
|
19682
|
-
as: "h1",
|
|
19683
|
-
fontSize: fontSize,
|
|
19684
|
-
fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
|
|
19685
|
-
letterSpacing: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.letterSpacing : undefined,
|
|
19686
|
-
marginBottom: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.marginBottom : undefined,
|
|
19687
|
-
animate: inView ? controlledAnimate : undefined,
|
|
19688
|
-
media: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.media : undefined
|
|
19689
|
-
}, views == null ? void 0 : views.container, props), text);
|
|
19653
|
+
// Case 3: Default - no highlighting
|
|
19654
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({}, containerProps, views == null ? void 0 : views.container, props), text);
|
|
19690
19655
|
};
|
|
19691
19656
|
|
|
19692
19657
|
/**
|
|
@@ -20953,7 +20918,7 @@ var DefaultColorPalette$1 = [
|
|
|
20953
20918
|
category: 'neutral'
|
|
20954
20919
|
}];
|
|
20955
20920
|
|
|
20956
|
-
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"];
|
|
20921
|
+
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"];
|
|
20957
20922
|
var ColorPickerView = _ref => {
|
|
20958
20923
|
var {
|
|
20959
20924
|
// Basic props
|
|
@@ -23320,7 +23285,7 @@ var useEmojiPickerState = props => {
|
|
|
23320
23285
|
};
|
|
23321
23286
|
};
|
|
23322
23287
|
|
|
23323
|
-
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"];
|
|
23288
|
+
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"];
|
|
23324
23289
|
var EmojiPickerView = _ref => {
|
|
23325
23290
|
var {
|
|
23326
23291
|
// Basic props
|
|
@@ -24488,7 +24453,7 @@ var SeparatorView = _ref => {
|
|
|
24488
24453
|
var borderWidth = SeparatorThicknesses[thickness];
|
|
24489
24454
|
// Set appropriate ARIA attributes based on decorative prop
|
|
24490
24455
|
var ariaProps = decorative ? {
|
|
24491
|
-
'aria-hidden':
|
|
24456
|
+
'aria-hidden': true
|
|
24492
24457
|
} : {
|
|
24493
24458
|
role: 'separator',
|
|
24494
24459
|
'aria-orientation': orientation
|