@app-studio/web 0.8.91 → 0.8.93
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 +260 -397
- 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 +261 -398
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +260 -397
- 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
|
@@ -3370,18 +3370,6 @@
|
|
|
3370
3370
|
// Badge component that displays a small indicator, typically used for counts or status
|
|
3371
3371
|
var Badge = props => /*#__PURE__*/React__default.createElement(BadgeView, Object.assign({}, props));
|
|
3372
3372
|
|
|
3373
|
-
var useButtonState = () => {
|
|
3374
|
-
var [isHovered, setIsHovered] = React__default.useState(false);
|
|
3375
|
-
// This custom react hook 'useButtonState' is defined for managing the state of a button, especially for hover interactions.
|
|
3376
|
-
return {
|
|
3377
|
-
isHovered,
|
|
3378
|
-
setIsHovered
|
|
3379
|
-
};
|
|
3380
|
-
// The 'setIsHovered' function is used to update the value of 'isHovered' state when the hover status of the button changes.
|
|
3381
|
-
// A state variable 'isHovered' is declared with its initial value set to 'false', indicating that the button is not hovered by default.
|
|
3382
|
-
};
|
|
3383
|
-
// The hook returns an object containing 'isHovered' state and the 'setIsHovered' function to enable state management from the consumer component.
|
|
3384
|
-
|
|
3385
3373
|
// This function initializes the Link component's state using the useState hook and exposes its state and setter function.
|
|
3386
3374
|
var useLinkState = () => {
|
|
3387
3375
|
var [isHovered, setIsHovered] = React.useState(false);
|
|
@@ -3966,25 +3954,14 @@
|
|
|
3966
3954
|
|
|
3967
3955
|
// Importing a custom hook to manage the state specific to the button component.
|
|
3968
3956
|
var ButtonComponent = props => {
|
|
3969
|
-
|
|
3970
|
-
var {
|
|
3971
|
-
isHovered,
|
|
3972
|
-
setIsHovered
|
|
3973
|
-
} = useButtonState();
|
|
3974
|
-
// Defining the button component with generic React Functional Component type augmented with ButtonProps type.
|
|
3975
|
-
var handleHover = () => setIsHovered(!isHovered);
|
|
3957
|
+
var [ref, hover] = appStudio.useHover();
|
|
3976
3958
|
// Destructuring the state and state update function from the custom hook for button state management.
|
|
3977
3959
|
return (
|
|
3978
3960
|
/*#__PURE__*/
|
|
3979
3961
|
// Defines a function to toggle the hover state of the button.
|
|
3980
3962
|
React__default.createElement(ButtonView, Object.assign({
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
setIsHovered: setIsHovered,
|
|
3984
|
-
// Passing the isHovered state and the setIsHovered function to the ButtonView.
|
|
3985
|
-
onMouseEnter: handleHover,
|
|
3986
|
-
// Binding handleHover function to onMouseEnter and onMouseLeave events to toggle hover effect.
|
|
3987
|
-
onMouseLeave: handleHover
|
|
3963
|
+
ref: ref,
|
|
3964
|
+
isHovered: hover
|
|
3988
3965
|
}, props))
|
|
3989
3966
|
);
|
|
3990
3967
|
// Exports the Button component for use in other parts of the application.
|
|
@@ -13614,227 +13591,66 @@
|
|
|
13614
13591
|
var Tabs = /*#__PURE__*/React__default.memo(TabsComponent);
|
|
13615
13592
|
|
|
13616
13593
|
/**
|
|
13617
|
-
* Custom hook for managing Title component state
|
|
13594
|
+
* Custom hook for managing Title component state
|
|
13618
13595
|
*/
|
|
13619
13596
|
var useTitleState = props => {
|
|
13620
13597
|
var {
|
|
13621
|
-
animation = 'none',
|
|
13622
|
-
animationDirection = 'left',
|
|
13623
|
-
animationDuration = '1s',
|
|
13624
|
-
animationDelay = '0s',
|
|
13625
13598
|
children,
|
|
13599
|
+
// Original children
|
|
13626
13600
|
_isInView = false,
|
|
13627
13601
|
alternateHighlightText = [],
|
|
13628
13602
|
alternateAnimation = false,
|
|
13603
|
+
// Default to false as per prop definition
|
|
13629
13604
|
alternateDuration = 3000,
|
|
13630
|
-
highlightText
|
|
13605
|
+
highlightText: initialHighlightText,
|
|
13606
|
+
// Renamed to avoid confusion with the dynamic target
|
|
13607
|
+
highlightTypewriter = false,
|
|
13608
|
+
highlightTypewriterDuration = 1500
|
|
13631
13609
|
} = props;
|
|
13632
|
-
// State for
|
|
13633
|
-
var [
|
|
13634
|
-
// State for
|
|
13635
|
-
var [
|
|
13636
|
-
//
|
|
13637
|
-
var [alternatingContent, setAlternatingContent] = React.useState(children);
|
|
13610
|
+
// State for the final text to be displayed (could be original children or alternating text)
|
|
13611
|
+
var [finalDisplayedText, setFinalDisplayedText] = React.useState(children);
|
|
13612
|
+
// State for the text that should be actively highlighted (could be initialHighlightText or a word from alternateHighlightText)
|
|
13613
|
+
var [activeHighlightTarget, setActiveHighlightTarget] = React.useState(initialHighlightText);
|
|
13614
|
+
// We don't need state for typewriter text anymore as we're using the TypewriterEffect component
|
|
13638
13615
|
// Handle alternating highlight text animation
|
|
13639
13616
|
React.useEffect(() => {
|
|
13640
|
-
//
|
|
13641
|
-
|
|
13642
|
-
//
|
|
13643
|
-
|
|
13617
|
+
// If not using alternating animation or conditions not met, reset to initial/non-alternating state
|
|
13618
|
+
if (!alternateAnimation || alternateHighlightText.length === 0 || !_isInView || typeof children !== 'string' ||
|
|
13619
|
+
// Base text must be a string for replacement
|
|
13620
|
+
typeof initialHighlightText !== 'string' // Placeholder must be a string
|
|
13621
|
+
) {
|
|
13622
|
+
setFinalDisplayedText(children);
|
|
13623
|
+
setActiveHighlightTarget(initialHighlightText);
|
|
13644
13624
|
return () => {};
|
|
13645
13625
|
}
|
|
13646
|
-
//
|
|
13647
|
-
if (typeof children !== 'string') {
|
|
13648
|
-
return () => {};
|
|
13649
|
-
}
|
|
13650
|
-
// Set initial content with the first alternating text
|
|
13626
|
+
// Proceed with alternating animation
|
|
13651
13627
|
var baseText = children;
|
|
13628
|
+
var placeholder = initialHighlightText;
|
|
13652
13629
|
var currentIndex = 0;
|
|
13653
|
-
// Function to update the
|
|
13654
|
-
var
|
|
13655
|
-
|
|
13656
|
-
|
|
13657
|
-
|
|
13658
|
-
|
|
13659
|
-
|
|
13660
|
-
|
|
13630
|
+
// Function to update the state for alternating text
|
|
13631
|
+
var updateAlternatingState = index => {
|
|
13632
|
+
var currentWordToHighlight = alternateHighlightText[index];
|
|
13633
|
+
// Replace the placeholder in the baseText with the current alternating word
|
|
13634
|
+
var regex = new RegExp(placeholder, 'gi');
|
|
13635
|
+
var newContent = baseText.replace(regex, currentWordToHighlight);
|
|
13636
|
+
setFinalDisplayedText(newContent);
|
|
13637
|
+
setActiveHighlightTarget(currentWordToHighlight); // Set the current word as the highlight target
|
|
13661
13638
|
};
|
|
13662
|
-
// Set initial
|
|
13663
|
-
|
|
13639
|
+
// Set initial alternating state
|
|
13640
|
+
updateAlternatingState(currentIndex);
|
|
13664
13641
|
// Create interval to cycle through the alternateHighlightText array
|
|
13665
13642
|
var interval = setInterval(() => {
|
|
13666
13643
|
currentIndex = (currentIndex + 1) % alternateHighlightText.length;
|
|
13667
|
-
|
|
13644
|
+
updateAlternatingState(currentIndex);
|
|
13668
13645
|
}, alternateDuration);
|
|
13669
13646
|
return () => clearInterval(interval);
|
|
13670
|
-
}, [alternateAnimation, alternateHighlightText, alternateDuration,
|
|
13671
|
-
//
|
|
13672
|
-
|
|
13673
|
-
// Only start the typewriter animation when the component is in view
|
|
13674
|
-
if (animation === 'typewriter' && typeof children === 'string' && _isInView) {
|
|
13675
|
-
var text = children;
|
|
13676
|
-
var currentIndex = 0;
|
|
13677
|
-
setDisplayText('');
|
|
13678
|
-
var interval = setInterval(() => {
|
|
13679
|
-
if (currentIndex <= text.length) {
|
|
13680
|
-
setDisplayText(text.substring(0, currentIndex));
|
|
13681
|
-
currentIndex++;
|
|
13682
|
-
} else {
|
|
13683
|
-
clearInterval(interval);
|
|
13684
|
-
}
|
|
13685
|
-
}, 100);
|
|
13686
|
-
return () => clearInterval(interval);
|
|
13687
|
-
}
|
|
13688
|
-
// Reset the text if not in view
|
|
13689
|
-
if (animation === 'typewriter' && !_isInView) {
|
|
13690
|
-
setDisplayText('');
|
|
13691
|
-
}
|
|
13692
|
-
return () => {};
|
|
13693
|
-
}, [animation, children, _isInView]);
|
|
13694
|
-
// Get animation configuration based on animation type
|
|
13695
|
-
var getAnimation = () => {
|
|
13696
|
-
// For typewriter animation, we handle it separately with useState and useEffect
|
|
13697
|
-
if (animation === 'typewriter') {
|
|
13698
|
-
return undefined;
|
|
13699
|
-
}
|
|
13700
|
-
switch (animation) {
|
|
13701
|
-
case 'fadeIn':
|
|
13702
|
-
return {
|
|
13703
|
-
from: {
|
|
13704
|
-
opacity: 0
|
|
13705
|
-
},
|
|
13706
|
-
to: {
|
|
13707
|
-
opacity: 1
|
|
13708
|
-
},
|
|
13709
|
-
duration: animationDuration,
|
|
13710
|
-
delay: animationDelay,
|
|
13711
|
-
// iterationCount: 'infinite',
|
|
13712
|
-
direction: 'alternate'
|
|
13713
|
-
};
|
|
13714
|
-
case 'slideIn':
|
|
13715
|
-
switch (animationDirection) {
|
|
13716
|
-
case 'left':
|
|
13717
|
-
return {
|
|
13718
|
-
from: {
|
|
13719
|
-
transform: 'translateX(-100%)'
|
|
13720
|
-
},
|
|
13721
|
-
to: {
|
|
13722
|
-
transform: 'translateX(0)'
|
|
13723
|
-
},
|
|
13724
|
-
duration: animationDuration,
|
|
13725
|
-
delay: animationDelay,
|
|
13726
|
-
// iterationCount: 'infinite',
|
|
13727
|
-
direction: 'alternate'
|
|
13728
|
-
};
|
|
13729
|
-
case 'right':
|
|
13730
|
-
return {
|
|
13731
|
-
from: {
|
|
13732
|
-
transform: 'translateX(100%)'
|
|
13733
|
-
},
|
|
13734
|
-
to: {
|
|
13735
|
-
transform: 'translateX(0)'
|
|
13736
|
-
},
|
|
13737
|
-
duration: animationDuration,
|
|
13738
|
-
delay: animationDelay,
|
|
13739
|
-
// iterationCount: 'infinite',
|
|
13740
|
-
direction: 'alternate'
|
|
13741
|
-
};
|
|
13742
|
-
case 'top':
|
|
13743
|
-
return {
|
|
13744
|
-
from: {
|
|
13745
|
-
transform: 'translateY(-100%)'
|
|
13746
|
-
},
|
|
13747
|
-
to: {
|
|
13748
|
-
transform: 'translateY(0)'
|
|
13749
|
-
},
|
|
13750
|
-
duration: animationDuration,
|
|
13751
|
-
delay: animationDelay,
|
|
13752
|
-
// iterationCount: 'infinite',
|
|
13753
|
-
direction: 'alternate'
|
|
13754
|
-
};
|
|
13755
|
-
case 'bottom':
|
|
13756
|
-
return {
|
|
13757
|
-
from: {
|
|
13758
|
-
transform: 'translateY(100%)'
|
|
13759
|
-
},
|
|
13760
|
-
to: {
|
|
13761
|
-
transform: 'translateY(0)'
|
|
13762
|
-
},
|
|
13763
|
-
duration: animationDuration,
|
|
13764
|
-
delay: animationDelay,
|
|
13765
|
-
// iterationCount: 'infinite',
|
|
13766
|
-
direction: 'alternate'
|
|
13767
|
-
};
|
|
13768
|
-
default:
|
|
13769
|
-
return {
|
|
13770
|
-
from: {
|
|
13771
|
-
transform: 'translateX(-100%)'
|
|
13772
|
-
},
|
|
13773
|
-
to: {
|
|
13774
|
-
transform: 'translateX(0)'
|
|
13775
|
-
},
|
|
13776
|
-
duration: animationDuration,
|
|
13777
|
-
delay: animationDelay,
|
|
13778
|
-
// iterationCount: 'infinite',
|
|
13779
|
-
direction: 'alternate'
|
|
13780
|
-
};
|
|
13781
|
-
}
|
|
13782
|
-
case 'bounce':
|
|
13783
|
-
return {
|
|
13784
|
-
from: {
|
|
13785
|
-
transform: 'translateY(0)'
|
|
13786
|
-
},
|
|
13787
|
-
'20%': {
|
|
13788
|
-
transform: 'translateY(-30px)'
|
|
13789
|
-
},
|
|
13790
|
-
'40%': {
|
|
13791
|
-
transform: 'translateY(0)'
|
|
13792
|
-
},
|
|
13793
|
-
'60%': {
|
|
13794
|
-
transform: 'translateY(-15px)'
|
|
13795
|
-
},
|
|
13796
|
-
'80%': {
|
|
13797
|
-
transform: 'translateY(0)'
|
|
13798
|
-
},
|
|
13799
|
-
to: {
|
|
13800
|
-
transform: 'translateY(0)'
|
|
13801
|
-
},
|
|
13802
|
-
duration: animationDuration,
|
|
13803
|
-
delay: animationDelay,
|
|
13804
|
-
iterationCount: '1'
|
|
13805
|
-
};
|
|
13806
|
-
case 'highlight':
|
|
13807
|
-
return {
|
|
13808
|
-
from: {
|
|
13809
|
-
backgroundSize: '0 100%'
|
|
13810
|
-
},
|
|
13811
|
-
to: {
|
|
13812
|
-
backgroundSize: '100% 100%'
|
|
13813
|
-
},
|
|
13814
|
-
duration: animationDuration,
|
|
13815
|
-
delay: animationDelay
|
|
13816
|
-
};
|
|
13817
|
-
case 'reveal':
|
|
13818
|
-
return {
|
|
13819
|
-
from: {
|
|
13820
|
-
clipPath: 'polygon(0 0, 0 0, 0 100%, 0% 100%)'
|
|
13821
|
-
},
|
|
13822
|
-
to: {
|
|
13823
|
-
clipPath: 'polygon(0 0, 100% 0, 100% 100%, 0 100%)'
|
|
13824
|
-
},
|
|
13825
|
-
duration: animationDuration,
|
|
13826
|
-
delay: animationDelay
|
|
13827
|
-
};
|
|
13828
|
-
case 'none':
|
|
13829
|
-
default:
|
|
13830
|
-
return undefined;
|
|
13831
|
-
}
|
|
13832
|
-
};
|
|
13647
|
+
}, [alternateAnimation, alternateHighlightText, alternateDuration, initialHighlightText, children, _isInView]);
|
|
13648
|
+
// We don't need a separate effect for typewriter animation anymore
|
|
13649
|
+
// as we're using the TypewriterEffect component directly in the view
|
|
13833
13650
|
return {
|
|
13834
|
-
|
|
13835
|
-
|
|
13836
|
-
|
|
13837
|
-
alternatingContent
|
|
13651
|
+
finalDisplayedText,
|
|
13652
|
+
activeHighlightTarget,
|
|
13653
|
+
highlightTypewriter
|
|
13838
13654
|
};
|
|
13839
13655
|
};
|
|
13840
13656
|
|
|
@@ -13860,8 +13676,13 @@
|
|
|
13860
13676
|
xs: 24,
|
|
13861
13677
|
sm: 28,
|
|
13862
13678
|
md: 32,
|
|
13863
|
-
lg:
|
|
13864
|
-
xl:
|
|
13679
|
+
lg: 40,
|
|
13680
|
+
xl: 48,
|
|
13681
|
+
'2xl': 56,
|
|
13682
|
+
'3xl': 64,
|
|
13683
|
+
'4xl': 72,
|
|
13684
|
+
'5xl': 80,
|
|
13685
|
+
'6xl': 88
|
|
13865
13686
|
};
|
|
13866
13687
|
/**
|
|
13867
13688
|
* Default styles for different highlight types
|
|
@@ -13881,11 +13702,12 @@
|
|
|
13881
13702
|
}),
|
|
13882
13703
|
gradient: (color, secondaryColor) => ({
|
|
13883
13704
|
background: "linear-gradient(135deg, " + color + ", " + (secondaryColor || color) + ")",
|
|
13884
|
-
webkitBackgroundClip: 'text',
|
|
13885
|
-
webkitTextFillColor: 'transparent',
|
|
13886
13705
|
backgroundClip: 'text',
|
|
13706
|
+
webkitBackgroundClip: 'text',
|
|
13887
13707
|
color: 'transparent',
|
|
13888
|
-
|
|
13708
|
+
webkitTextFillColor: 'transparent',
|
|
13709
|
+
display: 'inline-block',
|
|
13710
|
+
textShadow: 'none'
|
|
13889
13711
|
}),
|
|
13890
13712
|
outline: color => ({
|
|
13891
13713
|
webkitTextStroke: "1px " + color,
|
|
@@ -13899,12 +13721,91 @@
|
|
|
13899
13721
|
})
|
|
13900
13722
|
};
|
|
13901
13723
|
|
|
13902
|
-
var _excluded$L = ["
|
|
13724
|
+
var _excluded$L = ["text", "typingSpeed", "pauseTime", "onComplete", "showCursor", "cursorColor", "textStyle", "as"];
|
|
13903
13725
|
/**
|
|
13904
|
-
*
|
|
13905
|
-
*
|
|
13906
|
-
* Renders a title with optional highlighting and animations for hero sections.
|
|
13726
|
+
* A component that creates a typewriter effect for text
|
|
13907
13727
|
*/
|
|
13728
|
+
var TypewriterEffect = _ref => {
|
|
13729
|
+
var {
|
|
13730
|
+
text,
|
|
13731
|
+
typingSpeed = 50,
|
|
13732
|
+
pauseTime = 500,
|
|
13733
|
+
onComplete,
|
|
13734
|
+
showCursor = true,
|
|
13735
|
+
cursorColor = 'currentColor',
|
|
13736
|
+
textStyle
|
|
13737
|
+
} = _ref,
|
|
13738
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$L);
|
|
13739
|
+
// Convert text to array if it's a string
|
|
13740
|
+
var textArray = Array.isArray(text) ? text : [text];
|
|
13741
|
+
// State for the currently displayed text
|
|
13742
|
+
var [displayedText, setDisplayedText] = React.useState(textArray.map(() => ''));
|
|
13743
|
+
// State to track if typing is complete
|
|
13744
|
+
var [isComplete, setIsComplete] = React.useState(false);
|
|
13745
|
+
// State to track which text item we're currently typing
|
|
13746
|
+
var [currentTextIndex, setCurrentTextIndex] = React.useState(0);
|
|
13747
|
+
// State to track the character position within the current text
|
|
13748
|
+
var [charIndex, setCharIndex] = React.useState(0);
|
|
13749
|
+
React.useEffect(() => {
|
|
13750
|
+
// Reset state when text changes
|
|
13751
|
+
setDisplayedText(textArray.map(() => ''));
|
|
13752
|
+
setIsComplete(false);
|
|
13753
|
+
setCurrentTextIndex(0);
|
|
13754
|
+
setCharIndex(0);
|
|
13755
|
+
}, [text]);
|
|
13756
|
+
React.useEffect(() => {
|
|
13757
|
+
// If all text is typed, call onComplete and return
|
|
13758
|
+
if (isComplete) {
|
|
13759
|
+
if (onComplete) onComplete();
|
|
13760
|
+
return;
|
|
13761
|
+
}
|
|
13762
|
+
// Get the current text we're typing
|
|
13763
|
+
var currentText = textArray[currentTextIndex];
|
|
13764
|
+
// If we've typed all characters in the current text
|
|
13765
|
+
if (charIndex >= currentText.length) {
|
|
13766
|
+
// If we've typed all texts, we're done
|
|
13767
|
+
if (currentTextIndex >= textArray.length - 1) {
|
|
13768
|
+
setIsComplete(true);
|
|
13769
|
+
return;
|
|
13770
|
+
}
|
|
13771
|
+
// Otherwise, move to the next text after a pause
|
|
13772
|
+
var _timeout = setTimeout(() => {
|
|
13773
|
+
setCurrentTextIndex(prev => prev + 1);
|
|
13774
|
+
setCharIndex(0);
|
|
13775
|
+
}, pauseTime);
|
|
13776
|
+
return () => clearTimeout(_timeout);
|
|
13777
|
+
}
|
|
13778
|
+
// Type the next character
|
|
13779
|
+
var timeout = setTimeout(() => {
|
|
13780
|
+
setDisplayedText(prev => {
|
|
13781
|
+
var newText = [...prev];
|
|
13782
|
+
newText[currentTextIndex] = currentText.substring(0, charIndex + 1);
|
|
13783
|
+
return newText;
|
|
13784
|
+
});
|
|
13785
|
+
setCharIndex(prev => prev + 1);
|
|
13786
|
+
}, typingSpeed);
|
|
13787
|
+
return () => clearTimeout(timeout);
|
|
13788
|
+
}, [textArray, currentTextIndex, charIndex, isComplete, onComplete, pauseTime, typingSpeed]);
|
|
13789
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, displayedText.map((text, index) => (/*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
13790
|
+
key: index
|
|
13791
|
+
}, text, showCursor && index === currentTextIndex && !isComplete && (/*#__PURE__*/React__default.createElement(appStudio.Text, {
|
|
13792
|
+
as: "span",
|
|
13793
|
+
display: "inline-block",
|
|
13794
|
+
width: "0.1em",
|
|
13795
|
+
height: "1em",
|
|
13796
|
+
backgroundColor: cursorColor,
|
|
13797
|
+
style: Object.assign({
|
|
13798
|
+
animation: 'blink 1s step-end infinite',
|
|
13799
|
+
verticalAlign: 'text-bottom',
|
|
13800
|
+
marginLeft: '1px'
|
|
13801
|
+
}, textStyle)
|
|
13802
|
+
}))))));
|
|
13803
|
+
};
|
|
13804
|
+
|
|
13805
|
+
var _excluded$M = ["children", "highlightText", "highlightStyle", "highlightColor", "highlightSecondaryColor", "size", "centered", "views", "highlightAnimate", "animate", "highlightTypewriter", "highlightTypewriterDuration"];
|
|
13806
|
+
function escapeRegExp(string) {
|
|
13807
|
+
return string.replace(/[.*+?^${}()|[\\]\\/g, '\\$&');
|
|
13808
|
+
}
|
|
13908
13809
|
var TitleView = _ref => {
|
|
13909
13810
|
var {
|
|
13910
13811
|
children,
|
|
@@ -13912,150 +13813,112 @@
|
|
|
13912
13813
|
highlightStyle = 'background',
|
|
13913
13814
|
highlightColor = 'theme.primary',
|
|
13914
13815
|
highlightSecondaryColor,
|
|
13915
|
-
animation = 'none',
|
|
13916
13816
|
size = 'xl',
|
|
13917
13817
|
centered = false,
|
|
13918
|
-
views
|
|
13818
|
+
views,
|
|
13819
|
+
highlightAnimate,
|
|
13820
|
+
animate,
|
|
13821
|
+
highlightTypewriter: propHighlightTypewriter = false,
|
|
13822
|
+
highlightTypewriterDuration = 3000
|
|
13919
13823
|
} = _ref,
|
|
13920
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
13921
|
-
// Use the inView hook to detect when the component is visible
|
|
13824
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$M);
|
|
13922
13825
|
var {
|
|
13923
13826
|
ref,
|
|
13924
13827
|
inView
|
|
13925
13828
|
} = appStudio.useInView();
|
|
13926
|
-
// Get theme utilities
|
|
13927
13829
|
var {
|
|
13928
13830
|
getColor,
|
|
13929
|
-
themeMode:
|
|
13831
|
+
themeMode: ctxMode
|
|
13930
13832
|
} = appStudio.useTheme();
|
|
13931
|
-
var themeMode = props.themeMode ||
|
|
13932
|
-
// Resolve theme colors
|
|
13933
|
-
var
|
|
13934
|
-
|
|
13935
|
-
|
|
13936
|
-
|
|
13937
|
-
|
|
13938
|
-
|
|
13939
|
-
|
|
13833
|
+
var themeMode = props.themeMode || ctxMode;
|
|
13834
|
+
// Resolve colors, handling both theme colors and direct hex values
|
|
13835
|
+
var resolveColorValue = colorValue => {
|
|
13836
|
+
// If it's already a hex color, return it directly
|
|
13837
|
+
if (colorValue.startsWith('#')) {
|
|
13838
|
+
return colorValue;
|
|
13839
|
+
}
|
|
13840
|
+
// Otherwise, use the theme's getColor function
|
|
13841
|
+
return getColor(colorValue, {
|
|
13842
|
+
themeMode
|
|
13843
|
+
});
|
|
13844
|
+
};
|
|
13845
|
+
var resolvedColor = resolveColorValue(highlightColor);
|
|
13846
|
+
var resolvedSecondary = highlightSecondaryColor ? resolveColorValue(highlightSecondaryColor) : undefined;
|
|
13940
13847
|
var {
|
|
13941
|
-
|
|
13942
|
-
|
|
13943
|
-
|
|
13944
|
-
alternatingContent
|
|
13848
|
+
finalDisplayedText,
|
|
13849
|
+
activeHighlightTarget,
|
|
13850
|
+
highlightTypewriter
|
|
13945
13851
|
} = useTitleState(Object.assign({
|
|
13946
13852
|
children,
|
|
13947
13853
|
highlightText,
|
|
13948
|
-
|
|
13949
|
-
|
|
13950
|
-
|
|
13951
|
-
_isInView: inView
|
|
13854
|
+
_isInView: inView,
|
|
13855
|
+
highlightTypewriter: propHighlightTypewriter,
|
|
13856
|
+
highlightTypewriterDuration
|
|
13952
13857
|
}, props));
|
|
13953
|
-
// Get animation configuration only when the component is in view
|
|
13954
|
-
// For typewriter animation, we don't need an animation config as it's handled by useState/useEffect
|
|
13955
|
-
var animationConfig = inView && animation !== 'typewriter' ? getAnimation() : undefined;
|
|
13956
|
-
// Get highlight styles
|
|
13957
|
-
var highlightStyleProps = HighlightStyles[highlightStyle](resolvedHighlightColor, resolvedSecondaryColor);
|
|
13958
|
-
// Get font size and line height based on size prop
|
|
13959
13858
|
var fontSize = TitleSizes[size];
|
|
13960
13859
|
var lineHeight = LineHeights$1[size];
|
|
13961
|
-
//
|
|
13962
|
-
|
|
13963
|
-
|
|
13964
|
-
|
|
13965
|
-
|
|
13966
|
-
var
|
|
13967
|
-
|
|
13968
|
-
|
|
13969
|
-
|
|
13970
|
-
|
|
13971
|
-
var pattern = new RegExp("(" + currentHighlightText + ")", 'gi');
|
|
13972
|
-
// Check if the pattern matches anything in the text
|
|
13973
|
-
if (pattern.test(text)) {
|
|
13974
|
-
// Reset the regex pattern's lastIndex property
|
|
13975
|
-
pattern.lastIndex = 0;
|
|
13976
|
-
// Split the text by the pattern and keep the matches
|
|
13977
|
-
var parts = [];
|
|
13978
|
-
var lastIndex = 0;
|
|
13979
|
-
var match;
|
|
13980
|
-
while ((match = pattern.exec(text)) !== null) {
|
|
13981
|
-
// Add the text before the match
|
|
13982
|
-
if (match.index > lastIndex) {
|
|
13983
|
-
parts.push(text.substring(lastIndex, match.index));
|
|
13984
|
-
}
|
|
13985
|
-
// Add the match as a special part to be highlighted
|
|
13986
|
-
parts.push({
|
|
13987
|
-
highlight: true,
|
|
13988
|
-
text: match[0]
|
|
13989
|
-
});
|
|
13990
|
-
lastIndex = match.index + match[0].length;
|
|
13991
|
-
}
|
|
13992
|
-
// Add any remaining text after the last match
|
|
13993
|
-
if (lastIndex < text.length) {
|
|
13994
|
-
parts.push(text.substring(lastIndex));
|
|
13995
|
-
}
|
|
13996
|
-
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
13997
|
-
ref: ref,
|
|
13998
|
-
as: "h1",
|
|
13999
|
-
fontSize: fontSize,
|
|
14000
|
-
lineHeight: lineHeight + "px",
|
|
14001
|
-
fontWeight: "bold",
|
|
14002
|
-
textAlign: centered ? 'center' : 'left',
|
|
14003
|
-
animate: animationConfig
|
|
14004
|
-
}, props, views == null ? void 0 : views.container), parts.map((part, index) => (/*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
14005
|
-
key: index
|
|
14006
|
-
}, typeof part === 'string' ? part : (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
14007
|
-
as: "span",
|
|
14008
|
-
display: "inline"
|
|
14009
|
-
}, highlightStyleProps, views == null ? void 0 : views.highlight), part.text))))));
|
|
13860
|
+
// Get the text to display
|
|
13861
|
+
var text = typeof finalDisplayedText === 'string' ? finalDisplayedText : typeof children === 'string' ? children : '';
|
|
13862
|
+
if (typeof text === 'string' && activeHighlightTarget) {
|
|
13863
|
+
var pattern = new RegExp("(" + escapeRegExp(Array.isArray(activeHighlightTarget) ? activeHighlightTarget.join('|') : activeHighlightTarget) + ")", 'gi');
|
|
13864
|
+
var parts = [];
|
|
13865
|
+
var lastIndex = 0;
|
|
13866
|
+
var match;
|
|
13867
|
+
while (match = pattern.exec(text)) {
|
|
13868
|
+
if (match.index > lastIndex) {
|
|
13869
|
+
parts.push(text.substring(lastIndex, match.index));
|
|
14010
13870
|
}
|
|
13871
|
+
parts.push({
|
|
13872
|
+
highlight: true,
|
|
13873
|
+
text: match[0]
|
|
13874
|
+
});
|
|
13875
|
+
lastIndex = match.index + match[0].length;
|
|
14011
13876
|
}
|
|
14012
|
-
|
|
14013
|
-
|
|
14014
|
-
// Create a regex pattern to match any of the highlight texts
|
|
14015
|
-
// Use a more flexible approach that can match within words
|
|
14016
|
-
var _pattern = new RegExp("(" + currentHighlightText.join('|') + ")", 'gi');
|
|
14017
|
-
// Check if the pattern matches anything in the text
|
|
14018
|
-
if (_pattern.test(text)) {
|
|
14019
|
-
// Reset the regex pattern's lastIndex property
|
|
14020
|
-
_pattern.lastIndex = 0;
|
|
14021
|
-
// Split the text by the pattern and keep the matches
|
|
14022
|
-
var _parts = [];
|
|
14023
|
-
var _lastIndex = 0;
|
|
14024
|
-
var _match;
|
|
14025
|
-
while ((_match = _pattern.exec(text)) !== null) {
|
|
14026
|
-
// Add the text before the match
|
|
14027
|
-
if (_match.index > _lastIndex) {
|
|
14028
|
-
_parts.push(text.substring(_lastIndex, _match.index));
|
|
14029
|
-
}
|
|
14030
|
-
// Add the match as a special part to be highlighted
|
|
14031
|
-
_parts.push({
|
|
14032
|
-
highlight: true,
|
|
14033
|
-
text: _match[0]
|
|
14034
|
-
});
|
|
14035
|
-
_lastIndex = _match.index + _match[0].length;
|
|
14036
|
-
}
|
|
14037
|
-
// Add any remaining text after the last match
|
|
14038
|
-
if (_lastIndex < text.length) {
|
|
14039
|
-
_parts.push(text.substring(_lastIndex));
|
|
14040
|
-
}
|
|
14041
|
-
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
14042
|
-
ref: ref,
|
|
14043
|
-
as: "h1",
|
|
14044
|
-
fontSize: fontSize,
|
|
14045
|
-
lineHeight: lineHeight + "px",
|
|
14046
|
-
fontWeight: "bold",
|
|
14047
|
-
textAlign: centered ? 'center' : 'left',
|
|
14048
|
-
animate: animationConfig
|
|
14049
|
-
}, props, views == null ? void 0 : views.container), _parts.map((part, index) => (/*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
14050
|
-
key: index
|
|
14051
|
-
}, typeof part === 'string' ? part : (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
14052
|
-
as: "span",
|
|
14053
|
-
display: "inline"
|
|
14054
|
-
}, highlightStyleProps, views == null ? void 0 : views.highlight), part.text))))));
|
|
14055
|
-
}
|
|
13877
|
+
if (lastIndex < text.length) {
|
|
13878
|
+
parts.push(text.substring(lastIndex));
|
|
14056
13879
|
}
|
|
13880
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
13881
|
+
ref: ref,
|
|
13882
|
+
as: "h1",
|
|
13883
|
+
fontSize: fontSize,
|
|
13884
|
+
lineHeight: lineHeight + "px",
|
|
13885
|
+
fontWeight: "bold",
|
|
13886
|
+
textAlign: centered ? 'center' : 'left',
|
|
13887
|
+
animate: inView ? animate : undefined
|
|
13888
|
+
}, views == null ? void 0 : views.container, props), parts.map((part, idx) => typeof part === 'string' ? part : (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
13889
|
+
key: part.text + "-" + idx,
|
|
13890
|
+
as: "span",
|
|
13891
|
+
display: "inline",
|
|
13892
|
+
animate: inView ? highlightAnimate : undefined
|
|
13893
|
+
}, HighlightStyles[highlightStyle](resolvedColor, resolvedSecondary), views == null ? void 0 : views.highlight), highlightTypewriter ? (/*#__PURE__*/React__default.createElement(TypewriterEffect, {
|
|
13894
|
+
text: part.text,
|
|
13895
|
+
typingSpeed: Math.max(30, highlightTypewriterDuration / (part.text.length * 10)),
|
|
13896
|
+
showCursor: true,
|
|
13897
|
+
cursorColor: "currentColor"
|
|
13898
|
+
})) : part.text))));
|
|
14057
13899
|
}
|
|
14058
|
-
//
|
|
13900
|
+
// If highlightStyle is provided but no highlightText, apply the style to the entire title
|
|
13901
|
+
if (highlightStyle && !activeHighlightTarget) {
|
|
13902
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
13903
|
+
ref: ref,
|
|
13904
|
+
as: "h1",
|
|
13905
|
+
fontSize: fontSize,
|
|
13906
|
+
lineHeight: lineHeight + "px",
|
|
13907
|
+
fontWeight: "bold",
|
|
13908
|
+
textAlign: centered ? 'center' : 'left',
|
|
13909
|
+
animate: inView ? animate : undefined
|
|
13910
|
+
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
13911
|
+
as: "span",
|
|
13912
|
+
display: "inline",
|
|
13913
|
+
animate: inView ? highlightAnimate : undefined
|
|
13914
|
+
}, HighlightStyles[highlightStyle](resolvedColor, resolvedSecondary), views == null ? void 0 : views.highlight), highlightTypewriter ? (/*#__PURE__*/React__default.createElement(TypewriterEffect, {
|
|
13915
|
+
text: text,
|
|
13916
|
+
typingSpeed: Math.max(30, highlightTypewriterDuration / (text.length * 10)),
|
|
13917
|
+
showCursor: true,
|
|
13918
|
+
cursorColor: "currentColor"
|
|
13919
|
+
})) : text));
|
|
13920
|
+
}
|
|
13921
|
+
// Default case - no highlighting
|
|
14059
13922
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
14060
13923
|
ref: ref,
|
|
14061
13924
|
as: "h1",
|
|
@@ -14063,8 +13926,8 @@
|
|
|
14063
13926
|
lineHeight: lineHeight + "px",
|
|
14064
13927
|
fontWeight: "bold",
|
|
14065
13928
|
textAlign: centered ? 'center' : 'left',
|
|
14066
|
-
animate:
|
|
14067
|
-
},
|
|
13929
|
+
animate: inView ? animate : undefined
|
|
13930
|
+
}, views == null ? void 0 : views.container, props), text);
|
|
14068
13931
|
};
|
|
14069
13932
|
|
|
14070
13933
|
/**
|
|
@@ -14129,7 +13992,7 @@
|
|
|
14129
13992
|
};
|
|
14130
13993
|
};
|
|
14131
13994
|
|
|
14132
|
-
var _excluded$
|
|
13995
|
+
var _excluded$N = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views"];
|
|
14133
13996
|
var ToggleView = _ref => {
|
|
14134
13997
|
var {
|
|
14135
13998
|
children,
|
|
@@ -14143,7 +14006,7 @@
|
|
|
14143
14006
|
onToggle,
|
|
14144
14007
|
views
|
|
14145
14008
|
} = _ref,
|
|
14146
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
14009
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$N);
|
|
14147
14010
|
var toggleColor = !isDisabled ? 'color.trueGray.400' : 'theme.disabled';
|
|
14148
14011
|
var isActive = !!(isToggle || isHovered);
|
|
14149
14012
|
var toggleVariants = {
|
|
@@ -14186,7 +14049,7 @@
|
|
|
14186
14049
|
}, toggleVariants[variant], props, views == null ? void 0 : views.container), children);
|
|
14187
14050
|
};
|
|
14188
14051
|
|
|
14189
|
-
var _excluded$
|
|
14052
|
+
var _excluded$O = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
|
|
14190
14053
|
// Destructuring properties from ToggleProps to be used within the ToggleComponent.
|
|
14191
14054
|
var ToggleComponent = _ref => {
|
|
14192
14055
|
var {
|
|
@@ -14198,7 +14061,7 @@
|
|
|
14198
14061
|
isToggled = false,
|
|
14199
14062
|
onToggle
|
|
14200
14063
|
} = _ref,
|
|
14201
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
14064
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$O);
|
|
14202
14065
|
// Initializing toggle state and set state functions using the custom hook useToggleState.
|
|
14203
14066
|
var {
|
|
14204
14067
|
isHovered,
|
|
@@ -14589,7 +14452,7 @@
|
|
|
14589
14452
|
return positions[side];
|
|
14590
14453
|
};
|
|
14591
14454
|
|
|
14592
|
-
var _excluded$
|
|
14455
|
+
var _excluded$P = ["children", "views"],
|
|
14593
14456
|
_excluded2$d = ["items", "side", "align", "views"],
|
|
14594
14457
|
_excluded3$9 = ["item", "views"],
|
|
14595
14458
|
_excluded4$8 = ["views"],
|
|
@@ -14627,7 +14490,7 @@
|
|
|
14627
14490
|
children,
|
|
14628
14491
|
views
|
|
14629
14492
|
} = _ref2,
|
|
14630
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
14493
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$P);
|
|
14631
14494
|
var {
|
|
14632
14495
|
isOpen,
|
|
14633
14496
|
setIsOpen
|
|
@@ -14787,7 +14650,7 @@
|
|
|
14787
14650
|
}));
|
|
14788
14651
|
};
|
|
14789
14652
|
|
|
14790
|
-
var _excluded$
|
|
14653
|
+
var _excluded$Q = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
|
|
14791
14654
|
/**
|
|
14792
14655
|
* DropdownMenu component for displaying a menu when clicking on a trigger element.
|
|
14793
14656
|
*/
|
|
@@ -14802,7 +14665,7 @@
|
|
|
14802
14665
|
defaultOpen = false,
|
|
14803
14666
|
views
|
|
14804
14667
|
} = _ref,
|
|
14805
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
14668
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$Q);
|
|
14806
14669
|
var {
|
|
14807
14670
|
isOpen,
|
|
14808
14671
|
setIsOpen,
|
|
@@ -15000,7 +14863,7 @@
|
|
|
15000
14863
|
return rect;
|
|
15001
14864
|
};
|
|
15002
14865
|
|
|
15003
|
-
var _excluded$
|
|
14866
|
+
var _excluded$R = ["children", "views", "asChild"],
|
|
15004
14867
|
_excluded2$e = ["children", "views", "side", "align", "sideOffset", "style", "backgroundColor", "borderRadius", "boxShadow", "padding", "minWidth", "maxWidth"];
|
|
15005
14868
|
// Create context for the HoverCard
|
|
15006
14869
|
var HoverCardContext = /*#__PURE__*/React.createContext({
|
|
@@ -15039,7 +14902,7 @@
|
|
|
15039
14902
|
views,
|
|
15040
14903
|
asChild = false
|
|
15041
14904
|
} = _ref2,
|
|
15042
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
14905
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$R);
|
|
15043
14906
|
var {
|
|
15044
14907
|
openCard,
|
|
15045
14908
|
closeCard,
|
|
@@ -15126,7 +14989,7 @@
|
|
|
15126
14989
|
}, views == null ? void 0 : views.container, props), children);
|
|
15127
14990
|
};
|
|
15128
14991
|
|
|
15129
|
-
var _excluded$
|
|
14992
|
+
var _excluded$S = ["children", "views", "openDelay", "closeDelay"];
|
|
15130
14993
|
/**
|
|
15131
14994
|
* HoverCard component displays floating content when hovering over a trigger element.
|
|
15132
14995
|
* Supports configurable open and close delays for a smoother user experience.
|
|
@@ -15138,7 +15001,7 @@
|
|
|
15138
15001
|
openDelay,
|
|
15139
15002
|
closeDelay
|
|
15140
15003
|
} = _ref,
|
|
15141
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
15004
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$S);
|
|
15142
15005
|
var hoverCardState = useHoverCardState({
|
|
15143
15006
|
openDelay,
|
|
15144
15007
|
closeDelay
|
|
@@ -15268,7 +15131,7 @@
|
|
|
15268
15131
|
};
|
|
15269
15132
|
};
|
|
15270
15133
|
|
|
15271
|
-
var _excluded$
|
|
15134
|
+
var _excluded$T = ["children", "orientation", "size", "variant", "views"];
|
|
15272
15135
|
// Create context for the Menubar
|
|
15273
15136
|
var MenubarContext = /*#__PURE__*/React.createContext({
|
|
15274
15137
|
activeMenuId: null,
|
|
@@ -15302,7 +15165,7 @@
|
|
|
15302
15165
|
variant = 'default',
|
|
15303
15166
|
views
|
|
15304
15167
|
} = _ref2,
|
|
15305
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
15168
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$T);
|
|
15306
15169
|
var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
|
|
15307
15170
|
return /*#__PURE__*/React__default.createElement(Container, Object.assign({
|
|
15308
15171
|
role: "menubar",
|
|
@@ -15488,7 +15351,7 @@
|
|
|
15488
15351
|
})))))));
|
|
15489
15352
|
};
|
|
15490
15353
|
|
|
15491
|
-
var _excluded$
|
|
15354
|
+
var _excluded$U = ["items", "orientation", "size", "variant", "defaultActiveMenuId", "defaultOpenMenuId", "views"];
|
|
15492
15355
|
/**
|
|
15493
15356
|
* Menubar component for creating horizontal or vertical menu bars with dropdown menus.
|
|
15494
15357
|
*/
|
|
@@ -15502,7 +15365,7 @@
|
|
|
15502
15365
|
defaultOpenMenuId = null,
|
|
15503
15366
|
views
|
|
15504
15367
|
} = _ref,
|
|
15505
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
15368
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$U);
|
|
15506
15369
|
var {
|
|
15507
15370
|
activeMenuId,
|
|
15508
15371
|
setActiveMenuId,
|
|
@@ -15658,7 +15521,7 @@
|
|
|
15658
15521
|
}
|
|
15659
15522
|
};
|
|
15660
15523
|
|
|
15661
|
-
var _excluded$
|
|
15524
|
+
var _excluded$V = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "visiblePageNumbers", "views"];
|
|
15662
15525
|
var PaginationView = _ref => {
|
|
15663
15526
|
var {
|
|
15664
15527
|
currentPage,
|
|
@@ -15689,7 +15552,7 @@
|
|
|
15689
15552
|
visiblePageNumbers,
|
|
15690
15553
|
views
|
|
15691
15554
|
} = _ref,
|
|
15692
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
15555
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$V);
|
|
15693
15556
|
var handlePageChange = page => {
|
|
15694
15557
|
if (page < 1 || page > totalPages || page === currentPage) {
|
|
15695
15558
|
return;
|
|
@@ -15808,7 +15671,7 @@
|
|
|
15808
15671
|
}, option.label))))));
|
|
15809
15672
|
};
|
|
15810
15673
|
|
|
15811
|
-
var _excluded$
|
|
15674
|
+
var _excluded$W = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "views"];
|
|
15812
15675
|
/**
|
|
15813
15676
|
* Pagination component for navigating through pages of content.
|
|
15814
15677
|
*/
|
|
@@ -15829,7 +15692,7 @@
|
|
|
15829
15692
|
shape = 'rounded',
|
|
15830
15693
|
views
|
|
15831
15694
|
} = _ref,
|
|
15832
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
15695
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$W);
|
|
15833
15696
|
var {
|
|
15834
15697
|
visiblePageNumbers
|
|
15835
15698
|
} = usePaginationState(currentPage, totalPages, maxPageButtons);
|
|
@@ -15899,7 +15762,7 @@
|
|
|
15899
15762
|
}
|
|
15900
15763
|
};
|
|
15901
15764
|
|
|
15902
|
-
var _excluded$
|
|
15765
|
+
var _excluded$X = ["orientation", "variant", "thickness", "color", "spacing", "label", "decorative", "views", "themeMode"];
|
|
15903
15766
|
var SeparatorView = _ref => {
|
|
15904
15767
|
var {
|
|
15905
15768
|
orientation = 'horizontal',
|
|
@@ -15911,7 +15774,7 @@
|
|
|
15911
15774
|
decorative = false,
|
|
15912
15775
|
views
|
|
15913
15776
|
} = _ref,
|
|
15914
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
15777
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$X);
|
|
15915
15778
|
// Access theme if needed for future enhancements
|
|
15916
15779
|
var {
|
|
15917
15780
|
themeMode
|
|
@@ -16149,7 +16012,7 @@
|
|
|
16149
16012
|
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)'
|
|
16150
16013
|
};
|
|
16151
16014
|
|
|
16152
|
-
var _excluded$
|
|
16015
|
+
var _excluded$Y = ["children", "showToggleButton", "views"],
|
|
16153
16016
|
_excluded2$f = ["children", "views"],
|
|
16154
16017
|
_excluded3$a = ["children", "views"],
|
|
16155
16018
|
_excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
|
|
@@ -16182,7 +16045,7 @@
|
|
|
16182
16045
|
showToggleButton = true,
|
|
16183
16046
|
views
|
|
16184
16047
|
} = _ref2,
|
|
16185
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
16048
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$Y);
|
|
16186
16049
|
var {
|
|
16187
16050
|
isExpanded,
|
|
16188
16051
|
toggleExpanded,
|
|
@@ -16337,7 +16200,7 @@
|
|
|
16337
16200
|
}))));
|
|
16338
16201
|
};
|
|
16339
16202
|
|
|
16340
|
-
var _excluded$
|
|
16203
|
+
var _excluded$Z = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
|
|
16341
16204
|
/**
|
|
16342
16205
|
* Sidebar component for creating collapsible, themeable and customizable sidebars.
|
|
16343
16206
|
*/
|
|
@@ -16359,7 +16222,7 @@
|
|
|
16359
16222
|
breakpointBehavior = 'overlay',
|
|
16360
16223
|
views
|
|
16361
16224
|
} = _ref,
|
|
16362
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
16225
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$Z);
|
|
16363
16226
|
var {
|
|
16364
16227
|
isExpanded,
|
|
16365
16228
|
toggleExpanded,
|
|
@@ -16824,7 +16687,7 @@
|
|
|
16824
16687
|
}
|
|
16825
16688
|
};
|
|
16826
16689
|
|
|
16827
|
-
var _excluded$
|
|
16690
|
+
var _excluded$_ = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
|
|
16828
16691
|
_excluded2$g = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
|
|
16829
16692
|
_excluded3$b = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
|
|
16830
16693
|
// Create context for the Resizable component
|
|
@@ -16869,7 +16732,7 @@
|
|
|
16869
16732
|
onCollapseChange,
|
|
16870
16733
|
views
|
|
16871
16734
|
} = _ref2,
|
|
16872
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
16735
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$_);
|
|
16873
16736
|
var {
|
|
16874
16737
|
orientation,
|
|
16875
16738
|
registerPanel,
|
|
@@ -17084,7 +16947,7 @@
|
|
|
17084
16947
|
}, ResizableOrientations[orientation], views == null ? void 0 : views.container, props), children);
|
|
17085
16948
|
};
|
|
17086
16949
|
|
|
17087
|
-
var _excluded
|
|
16950
|
+
var _excluded$$ = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
|
|
17088
16951
|
/**
|
|
17089
16952
|
* Resizable component for creating resizable panel groups and layouts.
|
|
17090
16953
|
*/
|
|
@@ -17104,7 +16967,7 @@
|
|
|
17104
16967
|
keyboardResizeBy = 10,
|
|
17105
16968
|
views
|
|
17106
16969
|
} = _ref,
|
|
17107
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded
|
|
16970
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$$);
|
|
17108
16971
|
var {
|
|
17109
16972
|
isResizing,
|
|
17110
16973
|
setIsResizing,
|
|
@@ -17872,7 +17735,7 @@
|
|
|
17872
17735
|
color: 'color.gray.500'
|
|
17873
17736
|
};
|
|
17874
17737
|
|
|
17875
|
-
var _excluded
|
|
17738
|
+
var _excluded$10 = ["value", "onValueChange", "placeholder", "views"],
|
|
17876
17739
|
_excluded2$h = ["children", "views"],
|
|
17877
17740
|
_excluded3$c = ["heading", "children", "views"],
|
|
17878
17741
|
_excluded4$a = ["item", "selected", "onSelect", "views"],
|
|
@@ -17904,7 +17767,7 @@
|
|
|
17904
17767
|
placeholder = 'Type a command or search...',
|
|
17905
17768
|
views
|
|
17906
17769
|
} = _ref2,
|
|
17907
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded
|
|
17770
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$10);
|
|
17908
17771
|
var inputRef = React.useRef(null);
|
|
17909
17772
|
// Focus input when component mounts
|
|
17910
17773
|
React__default.useEffect(() => {
|
|
@@ -18087,7 +17950,7 @@
|
|
|
18087
17950
|
})))), footer && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, CommandFooterStyles, views == null ? void 0 : views.footer), footer)))));
|
|
18088
17951
|
};
|
|
18089
17952
|
|
|
18090
|
-
var _excluded$
|
|
17953
|
+
var _excluded$11 = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
|
|
18091
17954
|
/**
|
|
18092
17955
|
* Command component for displaying a command palette with search functionality.
|
|
18093
17956
|
*/
|
|
@@ -18105,7 +17968,7 @@
|
|
|
18105
17968
|
footer,
|
|
18106
17969
|
views
|
|
18107
17970
|
} = _ref,
|
|
18108
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
17971
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$11);
|
|
18109
17972
|
var {
|
|
18110
17973
|
search,
|
|
18111
17974
|
setSearch,
|
|
@@ -18392,7 +18255,7 @@
|
|
|
18392
18255
|
}
|
|
18393
18256
|
};
|
|
18394
18257
|
|
|
18395
|
-
var _excluded$
|
|
18258
|
+
var _excluded$12 = ["children", "views", "asChild"],
|
|
18396
18259
|
_excluded2$i = ["children", "views"],
|
|
18397
18260
|
_excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
|
|
18398
18261
|
// Create context for the Tooltip
|
|
@@ -18428,7 +18291,7 @@
|
|
|
18428
18291
|
views,
|
|
18429
18292
|
asChild = false
|
|
18430
18293
|
} = _ref2,
|
|
18431
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
18294
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$12);
|
|
18432
18295
|
var {
|
|
18433
18296
|
openTooltip,
|
|
18434
18297
|
closeTooltip,
|
|
@@ -18521,7 +18384,7 @@
|
|
|
18521
18384
|
}, TooltipSizes[size], TooltipVariants[variant], positionStyles, views == null ? void 0 : views.content), typeof content === 'string' ? (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({}, views == null ? void 0 : views.text), content)) : content, showArrow && /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, arrowStyles, views == null ? void 0 : views.arrow)))));
|
|
18522
18385
|
};
|
|
18523
18386
|
|
|
18524
|
-
var _excluded$
|
|
18387
|
+
var _excluded$13 = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
|
|
18525
18388
|
/**
|
|
18526
18389
|
* Tooltip component for displaying additional information when hovering over an element.
|
|
18527
18390
|
* Supports configurable positions, delays, and styling.
|
|
@@ -18541,7 +18404,7 @@
|
|
|
18541
18404
|
isDisabled = false,
|
|
18542
18405
|
views
|
|
18543
18406
|
} = _ref,
|
|
18544
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
18407
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$13);
|
|
18545
18408
|
var tooltipState = useTooltipState({
|
|
18546
18409
|
defaultOpen,
|
|
18547
18410
|
openDelay,
|