@app-studio/web 0.8.91 → 0.8.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Title/Title/Title.props.d.ts +26 -27
- package/dist/components/Title/Title/Title.state.d.ts +4 -118
- package/dist/components/Title/Title/Title.type.d.ts +1 -9
- package/dist/components/Title/Title/Title.view.d.ts +0 -5
- package/dist/components/Title/Title/TypewriterEffect.d.ts +17 -0
- package/dist/components/Title/examples/alternating.d.ts +1 -1
- package/dist/components/Title/examples/animated.d.ts +1 -1
- package/dist/components/Title/examples/custom.d.ts +1 -1
- package/dist/components/Title/examples/default.d.ts +1 -1
- package/dist/components/Title/examples/directAnimation.d.ts +1 -1
- package/dist/components/Title/examples/{gradientTest.d.ts → gradient.d.ts} +1 -1
- package/dist/components/Title/examples/hero.d.ts +1 -1
- package/dist/components/Title/examples/{highlightTest.d.ts → highlight.d.ts} +1 -1
- package/dist/components/Title/examples/highlightStyles.d.ts +5 -0
- package/dist/components/Title/examples/highlighted.d.ts +1 -1
- package/dist/components/Title/examples/index.d.ts +4 -2
- package/dist/components/Title/examples/responsive.d.ts +1 -1
- package/dist/components/Title/examples/typewriterHighlight.d.ts +5 -0
- package/dist/web.cjs.development.js +257 -371
- 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 +257 -371
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +257 -371
- 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/components/Title/examples/animationTest.d.ts +0 -5
package/dist/web.esm.js
CHANGED
|
@@ -13638,227 +13638,66 @@ var TabsComponent = _ref => {
|
|
|
13638
13638
|
var Tabs = /*#__PURE__*/React.memo(TabsComponent);
|
|
13639
13639
|
|
|
13640
13640
|
/**
|
|
13641
|
-
* Custom hook for managing Title component state
|
|
13641
|
+
* Custom hook for managing Title component state
|
|
13642
13642
|
*/
|
|
13643
13643
|
var useTitleState = props => {
|
|
13644
13644
|
var {
|
|
13645
|
-
animation = 'none',
|
|
13646
|
-
animationDirection = 'left',
|
|
13647
|
-
animationDuration = '1s',
|
|
13648
|
-
animationDelay = '0s',
|
|
13649
13645
|
children,
|
|
13646
|
+
// Original children
|
|
13650
13647
|
_isInView = false,
|
|
13651
13648
|
alternateHighlightText = [],
|
|
13652
13649
|
alternateAnimation = false,
|
|
13650
|
+
// Default to false as per prop definition
|
|
13653
13651
|
alternateDuration = 3000,
|
|
13654
|
-
highlightText
|
|
13652
|
+
highlightText: initialHighlightText,
|
|
13653
|
+
// Renamed to avoid confusion with the dynamic target
|
|
13654
|
+
highlightTypewriter = false,
|
|
13655
|
+
highlightTypewriterDuration = 1500
|
|
13655
13656
|
} = props;
|
|
13656
|
-
// State for
|
|
13657
|
-
var [
|
|
13658
|
-
// State for
|
|
13659
|
-
var [
|
|
13660
|
-
//
|
|
13661
|
-
var [alternatingContent, setAlternatingContent] = useState(children);
|
|
13657
|
+
// State for the final text to be displayed (could be original children or alternating text)
|
|
13658
|
+
var [finalDisplayedText, setFinalDisplayedText] = useState(children);
|
|
13659
|
+
// State for the text that should be actively highlighted (could be initialHighlightText or a word from alternateHighlightText)
|
|
13660
|
+
var [activeHighlightTarget, setActiveHighlightTarget] = useState(initialHighlightText);
|
|
13661
|
+
// We don't need state for typewriter text anymore as we're using the TypewriterEffect component
|
|
13662
13662
|
// Handle alternating highlight text animation
|
|
13663
13663
|
useEffect(() => {
|
|
13664
|
-
//
|
|
13665
|
-
|
|
13666
|
-
//
|
|
13667
|
-
|
|
13664
|
+
// If not using alternating animation or conditions not met, reset to initial/non-alternating state
|
|
13665
|
+
if (!alternateAnimation || alternateHighlightText.length === 0 || !_isInView || typeof children !== 'string' ||
|
|
13666
|
+
// Base text must be a string for replacement
|
|
13667
|
+
typeof initialHighlightText !== 'string' // Placeholder must be a string
|
|
13668
|
+
) {
|
|
13669
|
+
setFinalDisplayedText(children);
|
|
13670
|
+
setActiveHighlightTarget(initialHighlightText);
|
|
13668
13671
|
return () => {};
|
|
13669
13672
|
}
|
|
13670
|
-
//
|
|
13671
|
-
if (typeof children !== 'string') {
|
|
13672
|
-
return () => {};
|
|
13673
|
-
}
|
|
13674
|
-
// Set initial content with the first alternating text
|
|
13673
|
+
// Proceed with alternating animation
|
|
13675
13674
|
var baseText = children;
|
|
13675
|
+
var placeholder = initialHighlightText;
|
|
13676
13676
|
var currentIndex = 0;
|
|
13677
|
-
// Function to update the
|
|
13678
|
-
var
|
|
13679
|
-
|
|
13680
|
-
|
|
13681
|
-
|
|
13682
|
-
|
|
13683
|
-
|
|
13684
|
-
|
|
13677
|
+
// Function to update the state for alternating text
|
|
13678
|
+
var updateAlternatingState = index => {
|
|
13679
|
+
var currentWordToHighlight = alternateHighlightText[index];
|
|
13680
|
+
// Replace the placeholder in the baseText with the current alternating word
|
|
13681
|
+
var regex = new RegExp(placeholder, 'gi');
|
|
13682
|
+
var newContent = baseText.replace(regex, currentWordToHighlight);
|
|
13683
|
+
setFinalDisplayedText(newContent);
|
|
13684
|
+
setActiveHighlightTarget(currentWordToHighlight); // Set the current word as the highlight target
|
|
13685
13685
|
};
|
|
13686
|
-
// Set initial
|
|
13687
|
-
|
|
13686
|
+
// Set initial alternating state
|
|
13687
|
+
updateAlternatingState(currentIndex);
|
|
13688
13688
|
// Create interval to cycle through the alternateHighlightText array
|
|
13689
13689
|
var interval = setInterval(() => {
|
|
13690
13690
|
currentIndex = (currentIndex + 1) % alternateHighlightText.length;
|
|
13691
|
-
|
|
13691
|
+
updateAlternatingState(currentIndex);
|
|
13692
13692
|
}, alternateDuration);
|
|
13693
13693
|
return () => clearInterval(interval);
|
|
13694
|
-
}, [alternateAnimation, alternateHighlightText, alternateDuration,
|
|
13695
|
-
//
|
|
13696
|
-
|
|
13697
|
-
// Only start the typewriter animation when the component is in view
|
|
13698
|
-
if (animation === 'typewriter' && typeof children === 'string' && _isInView) {
|
|
13699
|
-
var text = children;
|
|
13700
|
-
var currentIndex = 0;
|
|
13701
|
-
setDisplayText('');
|
|
13702
|
-
var interval = setInterval(() => {
|
|
13703
|
-
if (currentIndex <= text.length) {
|
|
13704
|
-
setDisplayText(text.substring(0, currentIndex));
|
|
13705
|
-
currentIndex++;
|
|
13706
|
-
} else {
|
|
13707
|
-
clearInterval(interval);
|
|
13708
|
-
}
|
|
13709
|
-
}, 100);
|
|
13710
|
-
return () => clearInterval(interval);
|
|
13711
|
-
}
|
|
13712
|
-
// Reset the text if not in view
|
|
13713
|
-
if (animation === 'typewriter' && !_isInView) {
|
|
13714
|
-
setDisplayText('');
|
|
13715
|
-
}
|
|
13716
|
-
return () => {};
|
|
13717
|
-
}, [animation, children, _isInView]);
|
|
13718
|
-
// Get animation configuration based on animation type
|
|
13719
|
-
var getAnimation = () => {
|
|
13720
|
-
// For typewriter animation, we handle it separately with useState and useEffect
|
|
13721
|
-
if (animation === 'typewriter') {
|
|
13722
|
-
return undefined;
|
|
13723
|
-
}
|
|
13724
|
-
switch (animation) {
|
|
13725
|
-
case 'fadeIn':
|
|
13726
|
-
return {
|
|
13727
|
-
from: {
|
|
13728
|
-
opacity: 0
|
|
13729
|
-
},
|
|
13730
|
-
to: {
|
|
13731
|
-
opacity: 1
|
|
13732
|
-
},
|
|
13733
|
-
duration: animationDuration,
|
|
13734
|
-
delay: animationDelay,
|
|
13735
|
-
// iterationCount: 'infinite',
|
|
13736
|
-
direction: 'alternate'
|
|
13737
|
-
};
|
|
13738
|
-
case 'slideIn':
|
|
13739
|
-
switch (animationDirection) {
|
|
13740
|
-
case 'left':
|
|
13741
|
-
return {
|
|
13742
|
-
from: {
|
|
13743
|
-
transform: 'translateX(-100%)'
|
|
13744
|
-
},
|
|
13745
|
-
to: {
|
|
13746
|
-
transform: 'translateX(0)'
|
|
13747
|
-
},
|
|
13748
|
-
duration: animationDuration,
|
|
13749
|
-
delay: animationDelay,
|
|
13750
|
-
// iterationCount: 'infinite',
|
|
13751
|
-
direction: 'alternate'
|
|
13752
|
-
};
|
|
13753
|
-
case 'right':
|
|
13754
|
-
return {
|
|
13755
|
-
from: {
|
|
13756
|
-
transform: 'translateX(100%)'
|
|
13757
|
-
},
|
|
13758
|
-
to: {
|
|
13759
|
-
transform: 'translateX(0)'
|
|
13760
|
-
},
|
|
13761
|
-
duration: animationDuration,
|
|
13762
|
-
delay: animationDelay,
|
|
13763
|
-
// iterationCount: 'infinite',
|
|
13764
|
-
direction: 'alternate'
|
|
13765
|
-
};
|
|
13766
|
-
case 'top':
|
|
13767
|
-
return {
|
|
13768
|
-
from: {
|
|
13769
|
-
transform: 'translateY(-100%)'
|
|
13770
|
-
},
|
|
13771
|
-
to: {
|
|
13772
|
-
transform: 'translateY(0)'
|
|
13773
|
-
},
|
|
13774
|
-
duration: animationDuration,
|
|
13775
|
-
delay: animationDelay,
|
|
13776
|
-
// iterationCount: 'infinite',
|
|
13777
|
-
direction: 'alternate'
|
|
13778
|
-
};
|
|
13779
|
-
case 'bottom':
|
|
13780
|
-
return {
|
|
13781
|
-
from: {
|
|
13782
|
-
transform: 'translateY(100%)'
|
|
13783
|
-
},
|
|
13784
|
-
to: {
|
|
13785
|
-
transform: 'translateY(0)'
|
|
13786
|
-
},
|
|
13787
|
-
duration: animationDuration,
|
|
13788
|
-
delay: animationDelay,
|
|
13789
|
-
// iterationCount: 'infinite',
|
|
13790
|
-
direction: 'alternate'
|
|
13791
|
-
};
|
|
13792
|
-
default:
|
|
13793
|
-
return {
|
|
13794
|
-
from: {
|
|
13795
|
-
transform: 'translateX(-100%)'
|
|
13796
|
-
},
|
|
13797
|
-
to: {
|
|
13798
|
-
transform: 'translateX(0)'
|
|
13799
|
-
},
|
|
13800
|
-
duration: animationDuration,
|
|
13801
|
-
delay: animationDelay,
|
|
13802
|
-
// iterationCount: 'infinite',
|
|
13803
|
-
direction: 'alternate'
|
|
13804
|
-
};
|
|
13805
|
-
}
|
|
13806
|
-
case 'bounce':
|
|
13807
|
-
return {
|
|
13808
|
-
from: {
|
|
13809
|
-
transform: 'translateY(0)'
|
|
13810
|
-
},
|
|
13811
|
-
'20%': {
|
|
13812
|
-
transform: 'translateY(-30px)'
|
|
13813
|
-
},
|
|
13814
|
-
'40%': {
|
|
13815
|
-
transform: 'translateY(0)'
|
|
13816
|
-
},
|
|
13817
|
-
'60%': {
|
|
13818
|
-
transform: 'translateY(-15px)'
|
|
13819
|
-
},
|
|
13820
|
-
'80%': {
|
|
13821
|
-
transform: 'translateY(0)'
|
|
13822
|
-
},
|
|
13823
|
-
to: {
|
|
13824
|
-
transform: 'translateY(0)'
|
|
13825
|
-
},
|
|
13826
|
-
duration: animationDuration,
|
|
13827
|
-
delay: animationDelay,
|
|
13828
|
-
iterationCount: '1'
|
|
13829
|
-
};
|
|
13830
|
-
case 'highlight':
|
|
13831
|
-
return {
|
|
13832
|
-
from: {
|
|
13833
|
-
backgroundSize: '0 100%'
|
|
13834
|
-
},
|
|
13835
|
-
to: {
|
|
13836
|
-
backgroundSize: '100% 100%'
|
|
13837
|
-
},
|
|
13838
|
-
duration: animationDuration,
|
|
13839
|
-
delay: animationDelay
|
|
13840
|
-
};
|
|
13841
|
-
case 'reveal':
|
|
13842
|
-
return {
|
|
13843
|
-
from: {
|
|
13844
|
-
clipPath: 'polygon(0 0, 0 0, 0 100%, 0% 100%)'
|
|
13845
|
-
},
|
|
13846
|
-
to: {
|
|
13847
|
-
clipPath: 'polygon(0 0, 100% 0, 100% 100%, 0 100%)'
|
|
13848
|
-
},
|
|
13849
|
-
duration: animationDuration,
|
|
13850
|
-
delay: animationDelay
|
|
13851
|
-
};
|
|
13852
|
-
case 'none':
|
|
13853
|
-
default:
|
|
13854
|
-
return undefined;
|
|
13855
|
-
}
|
|
13856
|
-
};
|
|
13694
|
+
}, [alternateAnimation, alternateHighlightText, alternateDuration, initialHighlightText, children, _isInView]);
|
|
13695
|
+
// We don't need a separate effect for typewriter animation anymore
|
|
13696
|
+
// as we're using the TypewriterEffect component directly in the view
|
|
13857
13697
|
return {
|
|
13858
|
-
|
|
13859
|
-
|
|
13860
|
-
|
|
13861
|
-
alternatingContent
|
|
13698
|
+
finalDisplayedText,
|
|
13699
|
+
activeHighlightTarget,
|
|
13700
|
+
highlightTypewriter
|
|
13862
13701
|
};
|
|
13863
13702
|
};
|
|
13864
13703
|
|
|
@@ -13884,8 +13723,13 @@ var LineHeights$1 = {
|
|
|
13884
13723
|
xs: 24,
|
|
13885
13724
|
sm: 28,
|
|
13886
13725
|
md: 32,
|
|
13887
|
-
lg:
|
|
13888
|
-
xl:
|
|
13726
|
+
lg: 40,
|
|
13727
|
+
xl: 48,
|
|
13728
|
+
'2xl': 56,
|
|
13729
|
+
'3xl': 64,
|
|
13730
|
+
'4xl': 72,
|
|
13731
|
+
'5xl': 80,
|
|
13732
|
+
'6xl': 88
|
|
13889
13733
|
};
|
|
13890
13734
|
/**
|
|
13891
13735
|
* Default styles for different highlight types
|
|
@@ -13905,11 +13749,12 @@ var HighlightStyles = {
|
|
|
13905
13749
|
}),
|
|
13906
13750
|
gradient: (color, secondaryColor) => ({
|
|
13907
13751
|
background: "linear-gradient(135deg, " + color + ", " + (secondaryColor || color) + ")",
|
|
13908
|
-
webkitBackgroundClip: 'text',
|
|
13909
|
-
webkitTextFillColor: 'transparent',
|
|
13910
13752
|
backgroundClip: 'text',
|
|
13753
|
+
webkitBackgroundClip: 'text',
|
|
13911
13754
|
color: 'transparent',
|
|
13912
|
-
|
|
13755
|
+
webkitTextFillColor: 'transparent',
|
|
13756
|
+
display: 'inline-block',
|
|
13757
|
+
textShadow: 'none'
|
|
13913
13758
|
}),
|
|
13914
13759
|
outline: color => ({
|
|
13915
13760
|
webkitTextStroke: "1px " + color,
|
|
@@ -13923,12 +13768,91 @@ var HighlightStyles = {
|
|
|
13923
13768
|
})
|
|
13924
13769
|
};
|
|
13925
13770
|
|
|
13926
|
-
var _excluded$L = ["
|
|
13771
|
+
var _excluded$L = ["text", "typingSpeed", "pauseTime", "onComplete", "showCursor", "cursorColor", "textStyle", "as"];
|
|
13927
13772
|
/**
|
|
13928
|
-
*
|
|
13929
|
-
*
|
|
13930
|
-
* Renders a title with optional highlighting and animations for hero sections.
|
|
13773
|
+
* A component that creates a typewriter effect for text
|
|
13931
13774
|
*/
|
|
13775
|
+
var TypewriterEffect = _ref => {
|
|
13776
|
+
var {
|
|
13777
|
+
text,
|
|
13778
|
+
typingSpeed = 50,
|
|
13779
|
+
pauseTime = 500,
|
|
13780
|
+
onComplete,
|
|
13781
|
+
showCursor = true,
|
|
13782
|
+
cursorColor = 'currentColor',
|
|
13783
|
+
textStyle
|
|
13784
|
+
} = _ref,
|
|
13785
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$L);
|
|
13786
|
+
// Convert text to array if it's a string
|
|
13787
|
+
var textArray = Array.isArray(text) ? text : [text];
|
|
13788
|
+
// State for the currently displayed text
|
|
13789
|
+
var [displayedText, setDisplayedText] = useState(textArray.map(() => ''));
|
|
13790
|
+
// State to track if typing is complete
|
|
13791
|
+
var [isComplete, setIsComplete] = useState(false);
|
|
13792
|
+
// State to track which text item we're currently typing
|
|
13793
|
+
var [currentTextIndex, setCurrentTextIndex] = useState(0);
|
|
13794
|
+
// State to track the character position within the current text
|
|
13795
|
+
var [charIndex, setCharIndex] = useState(0);
|
|
13796
|
+
useEffect(() => {
|
|
13797
|
+
// Reset state when text changes
|
|
13798
|
+
setDisplayedText(textArray.map(() => ''));
|
|
13799
|
+
setIsComplete(false);
|
|
13800
|
+
setCurrentTextIndex(0);
|
|
13801
|
+
setCharIndex(0);
|
|
13802
|
+
}, [text]);
|
|
13803
|
+
useEffect(() => {
|
|
13804
|
+
// If all text is typed, call onComplete and return
|
|
13805
|
+
if (isComplete) {
|
|
13806
|
+
if (onComplete) onComplete();
|
|
13807
|
+
return;
|
|
13808
|
+
}
|
|
13809
|
+
// Get the current text we're typing
|
|
13810
|
+
var currentText = textArray[currentTextIndex];
|
|
13811
|
+
// If we've typed all characters in the current text
|
|
13812
|
+
if (charIndex >= currentText.length) {
|
|
13813
|
+
// If we've typed all texts, we're done
|
|
13814
|
+
if (currentTextIndex >= textArray.length - 1) {
|
|
13815
|
+
setIsComplete(true);
|
|
13816
|
+
return;
|
|
13817
|
+
}
|
|
13818
|
+
// Otherwise, move to the next text after a pause
|
|
13819
|
+
var _timeout = setTimeout(() => {
|
|
13820
|
+
setCurrentTextIndex(prev => prev + 1);
|
|
13821
|
+
setCharIndex(0);
|
|
13822
|
+
}, pauseTime);
|
|
13823
|
+
return () => clearTimeout(_timeout);
|
|
13824
|
+
}
|
|
13825
|
+
// Type the next character
|
|
13826
|
+
var timeout = setTimeout(() => {
|
|
13827
|
+
setDisplayedText(prev => {
|
|
13828
|
+
var newText = [...prev];
|
|
13829
|
+
newText[currentTextIndex] = currentText.substring(0, charIndex + 1);
|
|
13830
|
+
return newText;
|
|
13831
|
+
});
|
|
13832
|
+
setCharIndex(prev => prev + 1);
|
|
13833
|
+
}, typingSpeed);
|
|
13834
|
+
return () => clearTimeout(timeout);
|
|
13835
|
+
}, [textArray, currentTextIndex, charIndex, isComplete, onComplete, pauseTime, typingSpeed]);
|
|
13836
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, displayedText.map((text, index) => (/*#__PURE__*/React.createElement(React.Fragment, {
|
|
13837
|
+
key: index
|
|
13838
|
+
}, text, showCursor && index === currentTextIndex && !isComplete && (/*#__PURE__*/React.createElement(Text$1, {
|
|
13839
|
+
as: "span",
|
|
13840
|
+
display: "inline-block",
|
|
13841
|
+
width: "0.1em",
|
|
13842
|
+
height: "1em",
|
|
13843
|
+
backgroundColor: cursorColor,
|
|
13844
|
+
style: Object.assign({
|
|
13845
|
+
animation: 'blink 1s step-end infinite',
|
|
13846
|
+
verticalAlign: 'text-bottom',
|
|
13847
|
+
marginLeft: '1px'
|
|
13848
|
+
}, textStyle)
|
|
13849
|
+
}))))));
|
|
13850
|
+
};
|
|
13851
|
+
|
|
13852
|
+
var _excluded$M = ["children", "highlightText", "highlightStyle", "highlightColor", "highlightSecondaryColor", "size", "centered", "views", "highlightAnimate", "animate", "highlightTypewriter", "highlightTypewriterDuration"];
|
|
13853
|
+
function escapeRegExp(string) {
|
|
13854
|
+
return string.replace(/[.*+?^${}()|[\\]\\/g, '\\$&');
|
|
13855
|
+
}
|
|
13932
13856
|
var TitleView = _ref => {
|
|
13933
13857
|
var {
|
|
13934
13858
|
children,
|
|
@@ -13936,150 +13860,112 @@ var TitleView = _ref => {
|
|
|
13936
13860
|
highlightStyle = 'background',
|
|
13937
13861
|
highlightColor = 'theme.primary',
|
|
13938
13862
|
highlightSecondaryColor,
|
|
13939
|
-
animation = 'none',
|
|
13940
13863
|
size = 'xl',
|
|
13941
13864
|
centered = false,
|
|
13942
|
-
views
|
|
13865
|
+
views,
|
|
13866
|
+
highlightAnimate,
|
|
13867
|
+
animate,
|
|
13868
|
+
highlightTypewriter: propHighlightTypewriter = false,
|
|
13869
|
+
highlightTypewriterDuration = 3000
|
|
13943
13870
|
} = _ref,
|
|
13944
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
13945
|
-
// Use the inView hook to detect when the component is visible
|
|
13871
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$M);
|
|
13946
13872
|
var {
|
|
13947
13873
|
ref,
|
|
13948
13874
|
inView
|
|
13949
13875
|
} = useInView();
|
|
13950
|
-
// Get theme utilities
|
|
13951
13876
|
var {
|
|
13952
13877
|
getColor,
|
|
13953
|
-
themeMode:
|
|
13878
|
+
themeMode: ctxMode
|
|
13954
13879
|
} = useTheme();
|
|
13955
|
-
var themeMode = props.themeMode ||
|
|
13956
|
-
// Resolve theme colors
|
|
13957
|
-
var
|
|
13958
|
-
|
|
13959
|
-
|
|
13960
|
-
|
|
13961
|
-
|
|
13962
|
-
|
|
13963
|
-
|
|
13880
|
+
var themeMode = props.themeMode || ctxMode;
|
|
13881
|
+
// Resolve colors, handling both theme colors and direct hex values
|
|
13882
|
+
var resolveColorValue = colorValue => {
|
|
13883
|
+
// If it's already a hex color, return it directly
|
|
13884
|
+
if (colorValue.startsWith('#')) {
|
|
13885
|
+
return colorValue;
|
|
13886
|
+
}
|
|
13887
|
+
// Otherwise, use the theme's getColor function
|
|
13888
|
+
return getColor(colorValue, {
|
|
13889
|
+
themeMode
|
|
13890
|
+
});
|
|
13891
|
+
};
|
|
13892
|
+
var resolvedColor = resolveColorValue(highlightColor);
|
|
13893
|
+
var resolvedSecondary = highlightSecondaryColor ? resolveColorValue(highlightSecondaryColor) : undefined;
|
|
13964
13894
|
var {
|
|
13965
|
-
|
|
13966
|
-
|
|
13967
|
-
|
|
13968
|
-
alternatingContent
|
|
13895
|
+
finalDisplayedText,
|
|
13896
|
+
activeHighlightTarget,
|
|
13897
|
+
highlightTypewriter
|
|
13969
13898
|
} = useTitleState(Object.assign({
|
|
13970
13899
|
children,
|
|
13971
13900
|
highlightText,
|
|
13972
|
-
|
|
13973
|
-
|
|
13974
|
-
|
|
13975
|
-
_isInView: inView
|
|
13901
|
+
_isInView: inView,
|
|
13902
|
+
highlightTypewriter: propHighlightTypewriter,
|
|
13903
|
+
highlightTypewriterDuration
|
|
13976
13904
|
}, props));
|
|
13977
|
-
// Get animation configuration only when the component is in view
|
|
13978
|
-
// For typewriter animation, we don't need an animation config as it's handled by useState/useEffect
|
|
13979
|
-
var animationConfig = inView && animation !== 'typewriter' ? getAnimation() : undefined;
|
|
13980
|
-
// Get highlight styles
|
|
13981
|
-
var highlightStyleProps = HighlightStyles[highlightStyle](resolvedHighlightColor, resolvedSecondaryColor);
|
|
13982
|
-
// Get font size and line height based on size prop
|
|
13983
13905
|
var fontSize = TitleSizes[size];
|
|
13984
13906
|
var lineHeight = LineHeights$1[size];
|
|
13985
|
-
//
|
|
13986
|
-
|
|
13987
|
-
|
|
13988
|
-
|
|
13989
|
-
|
|
13990
|
-
var
|
|
13991
|
-
|
|
13992
|
-
|
|
13993
|
-
|
|
13994
|
-
|
|
13995
|
-
var pattern = new RegExp("(" + currentHighlightText + ")", 'gi');
|
|
13996
|
-
// Check if the pattern matches anything in the text
|
|
13997
|
-
if (pattern.test(text)) {
|
|
13998
|
-
// Reset the regex pattern's lastIndex property
|
|
13999
|
-
pattern.lastIndex = 0;
|
|
14000
|
-
// Split the text by the pattern and keep the matches
|
|
14001
|
-
var parts = [];
|
|
14002
|
-
var lastIndex = 0;
|
|
14003
|
-
var match;
|
|
14004
|
-
while ((match = pattern.exec(text)) !== null) {
|
|
14005
|
-
// Add the text before the match
|
|
14006
|
-
if (match.index > lastIndex) {
|
|
14007
|
-
parts.push(text.substring(lastIndex, match.index));
|
|
14008
|
-
}
|
|
14009
|
-
// Add the match as a special part to be highlighted
|
|
14010
|
-
parts.push({
|
|
14011
|
-
highlight: true,
|
|
14012
|
-
text: match[0]
|
|
14013
|
-
});
|
|
14014
|
-
lastIndex = match.index + match[0].length;
|
|
14015
|
-
}
|
|
14016
|
-
// Add any remaining text after the last match
|
|
14017
|
-
if (lastIndex < text.length) {
|
|
14018
|
-
parts.push(text.substring(lastIndex));
|
|
14019
|
-
}
|
|
14020
|
-
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
14021
|
-
ref: ref,
|
|
14022
|
-
as: "h1",
|
|
14023
|
-
fontSize: fontSize,
|
|
14024
|
-
lineHeight: lineHeight + "px",
|
|
14025
|
-
fontWeight: "bold",
|
|
14026
|
-
textAlign: centered ? 'center' : 'left',
|
|
14027
|
-
animate: animationConfig
|
|
14028
|
-
}, props, views == null ? void 0 : views.container), parts.map((part, index) => (/*#__PURE__*/React.createElement(React.Fragment, {
|
|
14029
|
-
key: index
|
|
14030
|
-
}, typeof part === 'string' ? part : (/*#__PURE__*/React.createElement(Text$1, Object.assign({
|
|
14031
|
-
as: "span",
|
|
14032
|
-
display: "inline"
|
|
14033
|
-
}, highlightStyleProps, views == null ? void 0 : views.highlight), part.text))))));
|
|
13907
|
+
// Get the text to display
|
|
13908
|
+
var text = typeof finalDisplayedText === 'string' ? finalDisplayedText : typeof children === 'string' ? children : '';
|
|
13909
|
+
if (typeof text === 'string' && activeHighlightTarget) {
|
|
13910
|
+
var pattern = new RegExp("(" + escapeRegExp(Array.isArray(activeHighlightTarget) ? activeHighlightTarget.join('|') : activeHighlightTarget) + ")", 'gi');
|
|
13911
|
+
var parts = [];
|
|
13912
|
+
var lastIndex = 0;
|
|
13913
|
+
var match;
|
|
13914
|
+
while (match = pattern.exec(text)) {
|
|
13915
|
+
if (match.index > lastIndex) {
|
|
13916
|
+
parts.push(text.substring(lastIndex, match.index));
|
|
14034
13917
|
}
|
|
13918
|
+
parts.push({
|
|
13919
|
+
highlight: true,
|
|
13920
|
+
text: match[0]
|
|
13921
|
+
});
|
|
13922
|
+
lastIndex = match.index + match[0].length;
|
|
14035
13923
|
}
|
|
14036
|
-
|
|
14037
|
-
|
|
14038
|
-
// Create a regex pattern to match any of the highlight texts
|
|
14039
|
-
// Use a more flexible approach that can match within words
|
|
14040
|
-
var _pattern = new RegExp("(" + currentHighlightText.join('|') + ")", 'gi');
|
|
14041
|
-
// Check if the pattern matches anything in the text
|
|
14042
|
-
if (_pattern.test(text)) {
|
|
14043
|
-
// Reset the regex pattern's lastIndex property
|
|
14044
|
-
_pattern.lastIndex = 0;
|
|
14045
|
-
// Split the text by the pattern and keep the matches
|
|
14046
|
-
var _parts = [];
|
|
14047
|
-
var _lastIndex = 0;
|
|
14048
|
-
var _match;
|
|
14049
|
-
while ((_match = _pattern.exec(text)) !== null) {
|
|
14050
|
-
// Add the text before the match
|
|
14051
|
-
if (_match.index > _lastIndex) {
|
|
14052
|
-
_parts.push(text.substring(_lastIndex, _match.index));
|
|
14053
|
-
}
|
|
14054
|
-
// Add the match as a special part to be highlighted
|
|
14055
|
-
_parts.push({
|
|
14056
|
-
highlight: true,
|
|
14057
|
-
text: _match[0]
|
|
14058
|
-
});
|
|
14059
|
-
_lastIndex = _match.index + _match[0].length;
|
|
14060
|
-
}
|
|
14061
|
-
// Add any remaining text after the last match
|
|
14062
|
-
if (_lastIndex < text.length) {
|
|
14063
|
-
_parts.push(text.substring(_lastIndex));
|
|
14064
|
-
}
|
|
14065
|
-
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
14066
|
-
ref: ref,
|
|
14067
|
-
as: "h1",
|
|
14068
|
-
fontSize: fontSize,
|
|
14069
|
-
lineHeight: lineHeight + "px",
|
|
14070
|
-
fontWeight: "bold",
|
|
14071
|
-
textAlign: centered ? 'center' : 'left',
|
|
14072
|
-
animate: animationConfig
|
|
14073
|
-
}, props, views == null ? void 0 : views.container), _parts.map((part, index) => (/*#__PURE__*/React.createElement(React.Fragment, {
|
|
14074
|
-
key: index
|
|
14075
|
-
}, typeof part === 'string' ? part : (/*#__PURE__*/React.createElement(Text$1, Object.assign({
|
|
14076
|
-
as: "span",
|
|
14077
|
-
display: "inline"
|
|
14078
|
-
}, highlightStyleProps, views == null ? void 0 : views.highlight), part.text))))));
|
|
14079
|
-
}
|
|
13924
|
+
if (lastIndex < text.length) {
|
|
13925
|
+
parts.push(text.substring(lastIndex));
|
|
14080
13926
|
}
|
|
13927
|
+
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
13928
|
+
ref: ref,
|
|
13929
|
+
as: "h1",
|
|
13930
|
+
fontSize: fontSize,
|
|
13931
|
+
lineHeight: lineHeight + "px",
|
|
13932
|
+
fontWeight: "bold",
|
|
13933
|
+
textAlign: centered ? 'center' : 'left',
|
|
13934
|
+
animate: inView ? animate : undefined
|
|
13935
|
+
}, views == null ? void 0 : views.container, props), parts.map((part, idx) => typeof part === 'string' ? part : (/*#__PURE__*/React.createElement(Text$1, Object.assign({
|
|
13936
|
+
key: part.text + "-" + idx,
|
|
13937
|
+
as: "span",
|
|
13938
|
+
display: "inline",
|
|
13939
|
+
animate: inView ? highlightAnimate : undefined
|
|
13940
|
+
}, HighlightStyles[highlightStyle](resolvedColor, resolvedSecondary), views == null ? void 0 : views.highlight), highlightTypewriter ? (/*#__PURE__*/React.createElement(TypewriterEffect, {
|
|
13941
|
+
text: part.text,
|
|
13942
|
+
typingSpeed: Math.max(30, highlightTypewriterDuration / (part.text.length * 10)),
|
|
13943
|
+
showCursor: true,
|
|
13944
|
+
cursorColor: "currentColor"
|
|
13945
|
+
})) : part.text))));
|
|
13946
|
+
}
|
|
13947
|
+
// If highlightStyle is provided but no highlightText, apply the style to the entire title
|
|
13948
|
+
if (highlightStyle && !activeHighlightTarget) {
|
|
13949
|
+
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
13950
|
+
ref: ref,
|
|
13951
|
+
as: "h1",
|
|
13952
|
+
fontSize: fontSize,
|
|
13953
|
+
lineHeight: lineHeight + "px",
|
|
13954
|
+
fontWeight: "bold",
|
|
13955
|
+
textAlign: centered ? 'center' : 'left',
|
|
13956
|
+
animate: inView ? animate : undefined
|
|
13957
|
+
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React.createElement(Text$1, Object.assign({
|
|
13958
|
+
as: "span",
|
|
13959
|
+
display: "inline",
|
|
13960
|
+
animate: inView ? highlightAnimate : undefined
|
|
13961
|
+
}, HighlightStyles[highlightStyle](resolvedColor, resolvedSecondary), views == null ? void 0 : views.highlight), highlightTypewriter ? (/*#__PURE__*/React.createElement(TypewriterEffect, {
|
|
13962
|
+
text: text,
|
|
13963
|
+
typingSpeed: Math.max(30, highlightTypewriterDuration / (text.length * 10)),
|
|
13964
|
+
showCursor: true,
|
|
13965
|
+
cursorColor: "currentColor"
|
|
13966
|
+
})) : text));
|
|
14081
13967
|
}
|
|
14082
|
-
// Default
|
|
13968
|
+
// Default case - no highlighting
|
|
14083
13969
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
14084
13970
|
ref: ref,
|
|
14085
13971
|
as: "h1",
|
|
@@ -14087,8 +13973,8 @@ var TitleView = _ref => {
|
|
|
14087
13973
|
lineHeight: lineHeight + "px",
|
|
14088
13974
|
fontWeight: "bold",
|
|
14089
13975
|
textAlign: centered ? 'center' : 'left',
|
|
14090
|
-
animate:
|
|
14091
|
-
},
|
|
13976
|
+
animate: inView ? animate : undefined
|
|
13977
|
+
}, views == null ? void 0 : views.container, props), text);
|
|
14092
13978
|
};
|
|
14093
13979
|
|
|
14094
13980
|
/**
|
|
@@ -14153,7 +14039,7 @@ var useToggleState = defaultToggled => {
|
|
|
14153
14039
|
};
|
|
14154
14040
|
};
|
|
14155
14041
|
|
|
14156
|
-
var _excluded$
|
|
14042
|
+
var _excluded$N = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views"];
|
|
14157
14043
|
var ToggleView = _ref => {
|
|
14158
14044
|
var {
|
|
14159
14045
|
children,
|
|
@@ -14167,7 +14053,7 @@ var ToggleView = _ref => {
|
|
|
14167
14053
|
onToggle,
|
|
14168
14054
|
views
|
|
14169
14055
|
} = _ref,
|
|
14170
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
14056
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$N);
|
|
14171
14057
|
var toggleColor = !isDisabled ? 'color.trueGray.400' : 'theme.disabled';
|
|
14172
14058
|
var isActive = !!(isToggle || isHovered);
|
|
14173
14059
|
var toggleVariants = {
|
|
@@ -14210,7 +14096,7 @@ var ToggleView = _ref => {
|
|
|
14210
14096
|
}, toggleVariants[variant], props, views == null ? void 0 : views.container), children);
|
|
14211
14097
|
};
|
|
14212
14098
|
|
|
14213
|
-
var _excluded$
|
|
14099
|
+
var _excluded$O = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
|
|
14214
14100
|
// Destructuring properties from ToggleProps to be used within the ToggleComponent.
|
|
14215
14101
|
var ToggleComponent = _ref => {
|
|
14216
14102
|
var {
|
|
@@ -14222,7 +14108,7 @@ var ToggleComponent = _ref => {
|
|
|
14222
14108
|
isToggled = false,
|
|
14223
14109
|
onToggle
|
|
14224
14110
|
} = _ref,
|
|
14225
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
14111
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$O);
|
|
14226
14112
|
// Initializing toggle state and set state functions using the custom hook useToggleState.
|
|
14227
14113
|
var {
|
|
14228
14114
|
isHovered,
|
|
@@ -14613,7 +14499,7 @@ var getDropdownPosition = function getDropdownPosition(side, align) {
|
|
|
14613
14499
|
return positions[side];
|
|
14614
14500
|
};
|
|
14615
14501
|
|
|
14616
|
-
var _excluded$
|
|
14502
|
+
var _excluded$P = ["children", "views"],
|
|
14617
14503
|
_excluded2$d = ["items", "side", "align", "views"],
|
|
14618
14504
|
_excluded3$9 = ["item", "views"],
|
|
14619
14505
|
_excluded4$8 = ["views"],
|
|
@@ -14651,7 +14537,7 @@ var DropdownMenuTrigger = _ref2 => {
|
|
|
14651
14537
|
children,
|
|
14652
14538
|
views
|
|
14653
14539
|
} = _ref2,
|
|
14654
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
14540
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$P);
|
|
14655
14541
|
var {
|
|
14656
14542
|
isOpen,
|
|
14657
14543
|
setIsOpen
|
|
@@ -14811,7 +14697,7 @@ var DropdownMenuView = _ref6 => {
|
|
|
14811
14697
|
}));
|
|
14812
14698
|
};
|
|
14813
14699
|
|
|
14814
|
-
var _excluded$
|
|
14700
|
+
var _excluded$Q = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
|
|
14815
14701
|
/**
|
|
14816
14702
|
* DropdownMenu component for displaying a menu when clicking on a trigger element.
|
|
14817
14703
|
*/
|
|
@@ -14826,7 +14712,7 @@ var DropdownMenuComponent = _ref => {
|
|
|
14826
14712
|
defaultOpen = false,
|
|
14827
14713
|
views
|
|
14828
14714
|
} = _ref,
|
|
14829
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
14715
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$Q);
|
|
14830
14716
|
var {
|
|
14831
14717
|
isOpen,
|
|
14832
14718
|
setIsOpen,
|
|
@@ -15024,7 +14910,7 @@ var useRect = ref => {
|
|
|
15024
14910
|
return rect;
|
|
15025
14911
|
};
|
|
15026
14912
|
|
|
15027
|
-
var _excluded$
|
|
14913
|
+
var _excluded$R = ["children", "views", "asChild"],
|
|
15028
14914
|
_excluded2$e = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
|
|
15029
14915
|
// Create context for the HoverCard
|
|
15030
14916
|
var HoverCardContext = /*#__PURE__*/createContext({
|
|
@@ -15063,7 +14949,7 @@ var HoverCardTrigger = _ref2 => {
|
|
|
15063
14949
|
views,
|
|
15064
14950
|
asChild = false
|
|
15065
14951
|
} = _ref2,
|
|
15066
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
14952
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$R);
|
|
15067
14953
|
var {
|
|
15068
14954
|
openCard,
|
|
15069
14955
|
closeCard,
|
|
@@ -15150,7 +15036,7 @@ var HoverCardContent = _ref3 => {
|
|
|
15150
15036
|
}, views == null ? void 0 : views.container, props), children);
|
|
15151
15037
|
};
|
|
15152
15038
|
|
|
15153
|
-
var _excluded$
|
|
15039
|
+
var _excluded$S = ["children", "views", "openDelay", "closeDelay"];
|
|
15154
15040
|
/**
|
|
15155
15041
|
* HoverCard component displays floating content when hovering over a trigger element.
|
|
15156
15042
|
* Supports configurable open and close delays for a smoother user experience.
|
|
@@ -15162,7 +15048,7 @@ var HoverCardComponent = _ref => {
|
|
|
15162
15048
|
openDelay,
|
|
15163
15049
|
closeDelay
|
|
15164
15050
|
} = _ref,
|
|
15165
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
15051
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$S);
|
|
15166
15052
|
var hoverCardState = useHoverCardState({
|
|
15167
15053
|
openDelay,
|
|
15168
15054
|
closeDelay
|
|
@@ -15292,7 +15178,7 @@ var getMenubarContentPosition = orientation => {
|
|
|
15292
15178
|
};
|
|
15293
15179
|
};
|
|
15294
15180
|
|
|
15295
|
-
var _excluded$
|
|
15181
|
+
var _excluded$T = ["children", "orientation", "size", "variant", "views"];
|
|
15296
15182
|
// Create context for the Menubar
|
|
15297
15183
|
var MenubarContext = /*#__PURE__*/createContext({
|
|
15298
15184
|
activeMenuId: null,
|
|
@@ -15326,7 +15212,7 @@ var MenubarRoot = _ref2 => {
|
|
|
15326
15212
|
variant = 'default',
|
|
15327
15213
|
views
|
|
15328
15214
|
} = _ref2,
|
|
15329
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
15215
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$T);
|
|
15330
15216
|
var Container = orientation === 'horizontal' ? Horizontal : Vertical;
|
|
15331
15217
|
return /*#__PURE__*/React.createElement(Container, Object.assign({
|
|
15332
15218
|
role: "menubar",
|
|
@@ -15512,7 +15398,7 @@ var MenubarView = _ref8 => {
|
|
|
15512
15398
|
})))))));
|
|
15513
15399
|
};
|
|
15514
15400
|
|
|
15515
|
-
var _excluded$
|
|
15401
|
+
var _excluded$U = ["items", "orientation", "size", "variant", "defaultActiveMenuId", "defaultOpenMenuId", "views"];
|
|
15516
15402
|
/**
|
|
15517
15403
|
* Menubar component for creating horizontal or vertical menu bars with dropdown menus.
|
|
15518
15404
|
*/
|
|
@@ -15526,7 +15412,7 @@ var MenubarComponent = _ref => {
|
|
|
15526
15412
|
defaultOpenMenuId = null,
|
|
15527
15413
|
views
|
|
15528
15414
|
} = _ref,
|
|
15529
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
15415
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$U);
|
|
15530
15416
|
var {
|
|
15531
15417
|
activeMenuId,
|
|
15532
15418
|
setActiveMenuId,
|
|
@@ -15682,7 +15568,7 @@ var DisabledButtonStyles = {
|
|
|
15682
15568
|
}
|
|
15683
15569
|
};
|
|
15684
15570
|
|
|
15685
|
-
var _excluded$
|
|
15571
|
+
var _excluded$V = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "visiblePageNumbers", "views"];
|
|
15686
15572
|
var PaginationView = _ref => {
|
|
15687
15573
|
var {
|
|
15688
15574
|
currentPage,
|
|
@@ -15713,7 +15599,7 @@ var PaginationView = _ref => {
|
|
|
15713
15599
|
visiblePageNumbers,
|
|
15714
15600
|
views
|
|
15715
15601
|
} = _ref,
|
|
15716
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
15602
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$V);
|
|
15717
15603
|
var handlePageChange = page => {
|
|
15718
15604
|
if (page < 1 || page > totalPages || page === currentPage) {
|
|
15719
15605
|
return;
|
|
@@ -15832,7 +15718,7 @@ var PaginationView = _ref => {
|
|
|
15832
15718
|
}, option.label))))));
|
|
15833
15719
|
};
|
|
15834
15720
|
|
|
15835
|
-
var _excluded$
|
|
15721
|
+
var _excluded$W = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "views"];
|
|
15836
15722
|
/**
|
|
15837
15723
|
* Pagination component for navigating through pages of content.
|
|
15838
15724
|
*/
|
|
@@ -15853,7 +15739,7 @@ var PaginationComponent = _ref => {
|
|
|
15853
15739
|
shape = 'rounded',
|
|
15854
15740
|
views
|
|
15855
15741
|
} = _ref,
|
|
15856
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
15742
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$W);
|
|
15857
15743
|
var {
|
|
15858
15744
|
visiblePageNumbers
|
|
15859
15745
|
} = usePaginationState(currentPage, totalPages, maxPageButtons);
|
|
@@ -15923,7 +15809,7 @@ var DefaultSeparatorStyles = {
|
|
|
15923
15809
|
}
|
|
15924
15810
|
};
|
|
15925
15811
|
|
|
15926
|
-
var _excluded$
|
|
15812
|
+
var _excluded$X = ["orientation", "variant", "thickness", "color", "spacing", "label", "decorative", "views", "themeMode"];
|
|
15927
15813
|
var SeparatorView = _ref => {
|
|
15928
15814
|
var {
|
|
15929
15815
|
orientation = 'horizontal',
|
|
@@ -15935,7 +15821,7 @@ var SeparatorView = _ref => {
|
|
|
15935
15821
|
decorative = false,
|
|
15936
15822
|
views
|
|
15937
15823
|
} = _ref,
|
|
15938
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
15824
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$X);
|
|
15939
15825
|
// Access theme if needed for future enhancements
|
|
15940
15826
|
var {
|
|
15941
15827
|
themeMode
|
|
@@ -16173,7 +16059,7 @@ var SidebarTransitions = {
|
|
|
16173
16059
|
bounce: 'width 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55)'
|
|
16174
16060
|
};
|
|
16175
16061
|
|
|
16176
|
-
var _excluded$
|
|
16062
|
+
var _excluded$Y = ["children", "showToggleButton", "views"],
|
|
16177
16063
|
_excluded2$f = ["children", "views"],
|
|
16178
16064
|
_excluded3$a = ["children", "views"],
|
|
16179
16065
|
_excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
|
|
@@ -16206,7 +16092,7 @@ var SidebarHeader = _ref2 => {
|
|
|
16206
16092
|
showToggleButton = true,
|
|
16207
16093
|
views
|
|
16208
16094
|
} = _ref2,
|
|
16209
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
16095
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$Y);
|
|
16210
16096
|
var {
|
|
16211
16097
|
isExpanded,
|
|
16212
16098
|
toggleExpanded,
|
|
@@ -16361,7 +16247,7 @@ var SidebarView = _ref5 => {
|
|
|
16361
16247
|
}))));
|
|
16362
16248
|
};
|
|
16363
16249
|
|
|
16364
|
-
var _excluded$
|
|
16250
|
+
var _excluded$Z = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
|
|
16365
16251
|
/**
|
|
16366
16252
|
* Sidebar component for creating collapsible, themeable and customizable sidebars.
|
|
16367
16253
|
*/
|
|
@@ -16383,7 +16269,7 @@ var SidebarComponent = _ref => {
|
|
|
16383
16269
|
breakpointBehavior = 'overlay',
|
|
16384
16270
|
views
|
|
16385
16271
|
} = _ref,
|
|
16386
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
16272
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$Z);
|
|
16387
16273
|
var {
|
|
16388
16274
|
isExpanded,
|
|
16389
16275
|
toggleExpanded,
|
|
@@ -16848,7 +16734,7 @@ var HandleIconStyles = {
|
|
|
16848
16734
|
}
|
|
16849
16735
|
};
|
|
16850
16736
|
|
|
16851
|
-
var _excluded$
|
|
16737
|
+
var _excluded$_ = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
|
|
16852
16738
|
_excluded2$g = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
|
|
16853
16739
|
_excluded3$b = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
|
|
16854
16740
|
// Create context for the Resizable component
|
|
@@ -16893,7 +16779,7 @@ var ResizablePanel = _ref2 => {
|
|
|
16893
16779
|
onCollapseChange,
|
|
16894
16780
|
views
|
|
16895
16781
|
} = _ref2,
|
|
16896
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
16782
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$_);
|
|
16897
16783
|
var {
|
|
16898
16784
|
orientation,
|
|
16899
16785
|
registerPanel,
|
|
@@ -17108,7 +16994,7 @@ var ResizableView = _ref4 => {
|
|
|
17108
16994
|
}, ResizableOrientations[orientation], views == null ? void 0 : views.container, props), children);
|
|
17109
16995
|
};
|
|
17110
16996
|
|
|
17111
|
-
var _excluded
|
|
16997
|
+
var _excluded$$ = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
|
|
17112
16998
|
/**
|
|
17113
16999
|
* Resizable component for creating resizable panel groups and layouts.
|
|
17114
17000
|
*/
|
|
@@ -17128,7 +17014,7 @@ var ResizableComponent = _ref => {
|
|
|
17128
17014
|
keyboardResizeBy = 10,
|
|
17129
17015
|
views
|
|
17130
17016
|
} = _ref,
|
|
17131
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded
|
|
17017
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$$);
|
|
17132
17018
|
var {
|
|
17133
17019
|
isResizing,
|
|
17134
17020
|
setIsResizing,
|
|
@@ -17896,7 +17782,7 @@ var CommandFooterStyles = {
|
|
|
17896
17782
|
color: 'color.gray.500'
|
|
17897
17783
|
};
|
|
17898
17784
|
|
|
17899
|
-
var _excluded
|
|
17785
|
+
var _excluded$10 = ["value", "onValueChange", "placeholder", "views"],
|
|
17900
17786
|
_excluded2$h = ["children", "views"],
|
|
17901
17787
|
_excluded3$c = ["heading", "children", "views"],
|
|
17902
17788
|
_excluded4$a = ["item", "selected", "onSelect", "views"],
|
|
@@ -17928,7 +17814,7 @@ var CommandInput = _ref2 => {
|
|
|
17928
17814
|
placeholder = 'Type a command or search...',
|
|
17929
17815
|
views
|
|
17930
17816
|
} = _ref2,
|
|
17931
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded
|
|
17817
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$10);
|
|
17932
17818
|
var inputRef = useRef(null);
|
|
17933
17819
|
// Focus input when component mounts
|
|
17934
17820
|
React.useEffect(() => {
|
|
@@ -18111,7 +17997,7 @@ var CommandView = _ref7 => {
|
|
|
18111
17997
|
})))), footer && (/*#__PURE__*/React.createElement(View, Object.assign({}, CommandFooterStyles, views == null ? void 0 : views.footer), footer)))));
|
|
18112
17998
|
};
|
|
18113
17999
|
|
|
18114
|
-
var _excluded$
|
|
18000
|
+
var _excluded$11 = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
|
|
18115
18001
|
/**
|
|
18116
18002
|
* Command component for displaying a command palette with search functionality.
|
|
18117
18003
|
*/
|
|
@@ -18129,7 +18015,7 @@ var CommandComponent = _ref => {
|
|
|
18129
18015
|
footer,
|
|
18130
18016
|
views
|
|
18131
18017
|
} = _ref,
|
|
18132
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
18018
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$11);
|
|
18133
18019
|
var {
|
|
18134
18020
|
search,
|
|
18135
18021
|
setSearch,
|
|
@@ -18416,7 +18302,7 @@ var getArrowStyles = position => {
|
|
|
18416
18302
|
}
|
|
18417
18303
|
};
|
|
18418
18304
|
|
|
18419
|
-
var _excluded$
|
|
18305
|
+
var _excluded$12 = ["children", "views", "asChild"],
|
|
18420
18306
|
_excluded2$i = ["children", "views"],
|
|
18421
18307
|
_excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
|
|
18422
18308
|
// Create context for the Tooltip
|
|
@@ -18452,7 +18338,7 @@ var TooltipTrigger = _ref2 => {
|
|
|
18452
18338
|
views,
|
|
18453
18339
|
asChild = false
|
|
18454
18340
|
} = _ref2,
|
|
18455
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
18341
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$12);
|
|
18456
18342
|
var {
|
|
18457
18343
|
openTooltip,
|
|
18458
18344
|
closeTooltip,
|
|
@@ -18545,7 +18431,7 @@ var TooltipView = _ref4 => {
|
|
|
18545
18431
|
}, TooltipSizes[size], TooltipVariants[variant], positionStyles, views == null ? void 0 : views.content), typeof content === 'string' ? (/*#__PURE__*/React.createElement(Text$1, Object.assign({}, views == null ? void 0 : views.text), content)) : content, showArrow && /*#__PURE__*/React.createElement(View, Object.assign({}, arrowStyles, views == null ? void 0 : views.arrow)))));
|
|
18546
18432
|
};
|
|
18547
18433
|
|
|
18548
|
-
var _excluded$
|
|
18434
|
+
var _excluded$13 = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
|
|
18549
18435
|
/**
|
|
18550
18436
|
* Tooltip component for displaying additional information when hovering over an element.
|
|
18551
18437
|
* Supports configurable positions, delays, and styling.
|
|
@@ -18565,7 +18451,7 @@ var TooltipComponent = _ref => {
|
|
|
18565
18451
|
isDisabled = false,
|
|
18566
18452
|
views
|
|
18567
18453
|
} = _ref,
|
|
18568
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
18454
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$13);
|
|
18569
18455
|
var tooltipState = useTooltipState({
|
|
18570
18456
|
defaultOpen,
|
|
18571
18457
|
openDelay,
|