@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
|
@@ -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
|
}),
|
|
@@ -19493,7 +19503,7 @@ var SlideEffect = _ref => {
|
|
|
19493
19503
|
})));
|
|
19494
19504
|
};
|
|
19495
19505
|
|
|
19496
|
-
var _excluded$$ = ["children", "highlightText", "highlightStyle", "highlightColor", "highlightSecondaryColor", "size", "responsive", "views", "highlightAnimate", "animate", "animationLoop", "highlightAnimationLoop", "highlightTypewriter", "highlightTypewriterDuration", "highlightSlide", "highlightSlideDuration", "highlightSlideStagger", "highlightSlideSequential"];
|
|
19506
|
+
var _excluded$$ = ["children", "highlightText", "highlightStyle", "highlightColor", "highlightSecondaryColor", "size", "responsive", "views", "highlightAnimate", "animate", "animationLoop", "highlightAnimationLoop", "highlightTypewriter", "highlightTypewriterDuration", "highlightSlide", "highlightSlideDuration", "highlightSlideStagger", "highlightSlideSequential", "themeMode"];
|
|
19497
19507
|
function escapeRegExp(string) {
|
|
19498
19508
|
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
19499
19509
|
}
|
|
@@ -19516,7 +19526,8 @@ var TitleView = _ref => {
|
|
|
19516
19526
|
highlightSlide: propHighlightSlide = false,
|
|
19517
19527
|
highlightSlideDuration = 500,
|
|
19518
19528
|
highlightSlideStagger = 50,
|
|
19519
|
-
highlightSlideSequential = true
|
|
19529
|
+
highlightSlideSequential = true,
|
|
19530
|
+
themeMode: elementMode
|
|
19520
19531
|
} = _ref,
|
|
19521
19532
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$$);
|
|
19522
19533
|
var {
|
|
@@ -19525,29 +19536,15 @@ var TitleView = _ref => {
|
|
|
19525
19536
|
} = appStudio.useInView();
|
|
19526
19537
|
var {
|
|
19527
19538
|
getColor,
|
|
19528
|
-
themeMode
|
|
19539
|
+
themeMode
|
|
19529
19540
|
} = appStudio.useTheme();
|
|
19530
|
-
var
|
|
19531
|
-
|
|
19532
|
-
|
|
19533
|
-
|
|
19534
|
-
|
|
19535
|
-
|
|
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
|
-
} : {};
|
|
19541
|
+
var currentThemeMode = elementMode || themeMode;
|
|
19542
|
+
var resolvedHighlightColor = getColor(highlightColor, {
|
|
19543
|
+
themeMode: currentThemeMode
|
|
19544
|
+
});
|
|
19545
|
+
var resolvedHighlightSecondaryColor = highlightSecondaryColor ? getColor(highlightSecondaryColor, {
|
|
19546
|
+
themeMode: currentThemeMode
|
|
19547
|
+
}) : undefined;
|
|
19551
19548
|
var {
|
|
19552
19549
|
finalDisplayedText,
|
|
19553
19550
|
activeHighlightTarget,
|
|
@@ -19567,12 +19564,13 @@ var TitleView = _ref => {
|
|
|
19567
19564
|
highlightSlideStagger,
|
|
19568
19565
|
highlightSlideSequential
|
|
19569
19566
|
}, props));
|
|
19570
|
-
//
|
|
19571
|
-
var useResponsive = responsive && !props.media;
|
|
19567
|
+
// Common style calculations
|
|
19568
|
+
var useResponsive = responsive && !props.media;
|
|
19572
19569
|
var fontSize = TitleSizes[size];
|
|
19573
|
-
// Get responsive styles if responsive prop is true
|
|
19574
19570
|
var responsiveStyles = useResponsive ? ResponsiveTypography[size] : null;
|
|
19575
|
-
//
|
|
19571
|
+
// Highlight style props
|
|
19572
|
+
var highlightProps = HighlightStyles[highlightStyle](resolvedHighlightColor, resolvedHighlightSecondaryColor);
|
|
19573
|
+
// Apply loop control to animations
|
|
19576
19574
|
var applyAnimationLoop = (animation, loopControl) => {
|
|
19577
19575
|
if (!animation) return animation;
|
|
19578
19576
|
if (Array.isArray(animation)) {
|
|
@@ -19584,109 +19582,88 @@ var TitleView = _ref => {
|
|
|
19584
19582
|
iterationCount: loopControl.toString()
|
|
19585
19583
|
});
|
|
19586
19584
|
};
|
|
19587
|
-
// Apply loop control to animations
|
|
19588
19585
|
var controlledAnimate = applyAnimationLoop(animate, animationLoop);
|
|
19589
19586
|
var controlledHighlightAnimate = applyAnimationLoop(highlightAnimate, highlightAnimationLoop);
|
|
19590
19587
|
// Get the text to display
|
|
19591
19588
|
var text = typeof finalDisplayedText === 'string' ? finalDisplayedText : typeof children === 'string' ? children : '';
|
|
19589
|
+
// Common container props
|
|
19590
|
+
var containerProps = {
|
|
19591
|
+
ref,
|
|
19592
|
+
as: 'h1',
|
|
19593
|
+
fontSize: useResponsive ? undefined : fontSize,
|
|
19594
|
+
fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
|
|
19595
|
+
letterSpacing: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.letterSpacing : undefined,
|
|
19596
|
+
marginBottom: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.marginBottom : undefined,
|
|
19597
|
+
animate: inView ? controlledAnimate : undefined,
|
|
19598
|
+
media: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.media : undefined
|
|
19599
|
+
};
|
|
19600
|
+
// Render highlighted text content (typewriter, slide, or plain)
|
|
19601
|
+
var renderHighlightedContent = content => {
|
|
19602
|
+
// If animations are enabled but not in view, render invisible placeholder
|
|
19603
|
+
// This holds layout space and prevents animations (like typewriter) from running off-screen
|
|
19604
|
+
if (!inView && (highlightTypewriter || highlightSlide)) {
|
|
19605
|
+
return /*#__PURE__*/React__default.createElement("span", {
|
|
19606
|
+
style: {
|
|
19607
|
+
opacity: 0
|
|
19608
|
+
}
|
|
19609
|
+
}, content);
|
|
19610
|
+
}
|
|
19611
|
+
if (highlightTypewriter) {
|
|
19612
|
+
return /*#__PURE__*/React__default.createElement(TypewriterEffect, Object.assign({
|
|
19613
|
+
text: content,
|
|
19614
|
+
typingSpeed: Math.max(30, highlightTypewriterDuration / (content.length * 10)),
|
|
19615
|
+
showCursor: true,
|
|
19616
|
+
cursorColor: "currentColor"
|
|
19617
|
+
}, highlightProps));
|
|
19618
|
+
}
|
|
19619
|
+
if (highlightSlide) {
|
|
19620
|
+
return /*#__PURE__*/React__default.createElement(SlideEffect, {
|
|
19621
|
+
text: content,
|
|
19622
|
+
duration: stateHighlightSlideDuration,
|
|
19623
|
+
stagger: stateHighlightSlideStagger,
|
|
19624
|
+
sequential: stateHighlightSlideSequential,
|
|
19625
|
+
direction: "up",
|
|
19626
|
+
fontSize: useResponsive ? undefined : fontSize,
|
|
19627
|
+
fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
|
|
19628
|
+
wordProps: highlightProps
|
|
19629
|
+
});
|
|
19630
|
+
}
|
|
19631
|
+
return content;
|
|
19632
|
+
};
|
|
19633
|
+
// Case 1: Has highlight target - render with highlighted parts
|
|
19592
19634
|
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
|
-
})();
|
|
19635
|
+
var pattern = Array.isArray(activeHighlightTarget) ? new RegExp("(" + activeHighlightTarget.map(t => escapeRegExp(String(t))).join('|') + ")", 'gi') : new RegExp("(" + escapeRegExp(String(activeHighlightTarget)) + ")", 'gi');
|
|
19600
19636
|
var parts = [];
|
|
19601
19637
|
var lastIndex = 0;
|
|
19602
19638
|
var match;
|
|
19603
19639
|
while (match = pattern.exec(text)) {
|
|
19604
|
-
if (match.index > lastIndex)
|
|
19605
|
-
parts.push(text.substring(lastIndex, match.index));
|
|
19606
|
-
}
|
|
19640
|
+
if (match.index > lastIndex) parts.push(text.substring(lastIndex, match.index));
|
|
19607
19641
|
parts.push({
|
|
19608
19642
|
highlight: true,
|
|
19609
19643
|
text: match[0]
|
|
19610
19644
|
});
|
|
19611
19645
|
lastIndex = match.index + match[0].length;
|
|
19612
19646
|
}
|
|
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({
|
|
19647
|
+
if (lastIndex < text.length) parts.push(text.substring(lastIndex));
|
|
19648
|
+
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
19649
|
key: "highlight-" + idx,
|
|
19627
19650
|
as: "span",
|
|
19628
19651
|
display: "inline",
|
|
19629
19652
|
animate: inView ? controlledHighlightAnimate : undefined,
|
|
19630
19653
|
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))));
|
|
19654
|
+
}, !highlightSlide ? highlightProps : {}, views == null ? void 0 : views.highlight), renderHighlightedContent(part.text)))));
|
|
19646
19655
|
}
|
|
19647
|
-
//
|
|
19656
|
+
// Case 2: Has highlight style but no highlight target - apply style to entire title
|
|
19648
19657
|
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({
|
|
19658
|
+
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
19659
|
as: "span",
|
|
19660
19660
|
fontSize: fontSize,
|
|
19661
19661
|
display: "inline",
|
|
19662
19662
|
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));
|
|
19663
|
+
}, !highlightSlide ? highlightProps : {}, views == null ? void 0 : views.highlight), renderHighlightedContent(text)));
|
|
19678
19664
|
}
|
|
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);
|
|
19665
|
+
// Case 3: Default - no highlighting
|
|
19666
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({}, containerProps, views == null ? void 0 : views.container, props), text);
|
|
19690
19667
|
};
|
|
19691
19668
|
|
|
19692
19669
|
/**
|
|
@@ -20953,7 +20930,7 @@ var DefaultColorPalette$1 = [
|
|
|
20953
20930
|
category: 'neutral'
|
|
20954
20931
|
}];
|
|
20955
20932
|
|
|
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"];
|
|
20933
|
+
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
20934
|
var ColorPickerView = _ref => {
|
|
20958
20935
|
var {
|
|
20959
20936
|
// Basic props
|
|
@@ -23320,7 +23297,7 @@ var useEmojiPickerState = props => {
|
|
|
23320
23297
|
};
|
|
23321
23298
|
};
|
|
23322
23299
|
|
|
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"];
|
|
23300
|
+
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
23301
|
var EmojiPickerView = _ref => {
|
|
23325
23302
|
var {
|
|
23326
23303
|
// Basic props
|
|
@@ -24488,7 +24465,7 @@ var SeparatorView = _ref => {
|
|
|
24488
24465
|
var borderWidth = SeparatorThicknesses[thickness];
|
|
24489
24466
|
// Set appropriate ARIA attributes based on decorative prop
|
|
24490
24467
|
var ariaProps = decorative ? {
|
|
24491
|
-
'aria-hidden':
|
|
24468
|
+
'aria-hidden': true
|
|
24492
24469
|
} : {
|
|
24493
24470
|
role: 'separator',
|
|
24494
24471
|
'aria-orientation': orientation
|