oddsgate-ds 1.0.151 → 1.0.152
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/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/atoms/Marquee/Marquee.component.d.ts +1 -1
- package/dist/cjs/types/components/atoms/Marquee/Marquee.interface.d.ts +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/atoms/Marquee/Marquee.component.d.ts +1 -1
- package/dist/esm/types/components/atoms/Marquee/Marquee.interface.d.ts +1 -0
- package/dist/types.d.ts +2 -1
- package/package.json +1 -1
- package/src/components/atoms/Marquee/Marquee.component.tsx +8 -1
- package/src/components/atoms/Marquee/Marquee.interface.ts +1 -0
- package/src/components/atoms/Marquee/Marquee.theme.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IMarquee } from './Marquee.interface';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
declare const Marquee: ({ text, className, onClick, repeat, ...props }: IMarquee) => React.JSX.Element;
|
|
3
|
+
declare const Marquee: ({ text, className, onClick, repeat, duration, ...props }: IMarquee) => React.JSX.Element;
|
|
4
4
|
export default Marquee;
|
package/dist/types.d.ts
CHANGED
|
@@ -379,12 +379,13 @@ declare const SocialLinks: ({ variant, socials, className, style, ...props }: IS
|
|
|
379
379
|
type IMarquee = {
|
|
380
380
|
text?: string;
|
|
381
381
|
repeat?: number;
|
|
382
|
+
duration: number;
|
|
382
383
|
className?: string;
|
|
383
384
|
style?: CSSProperties;
|
|
384
385
|
onClick?: () => void;
|
|
385
386
|
};
|
|
386
387
|
|
|
387
|
-
declare const Marquee: ({ text, className, onClick, repeat, ...props }: IMarquee) => React__default.JSX.Element;
|
|
388
|
+
declare const Marquee: ({ text, className, onClick, repeat, duration, ...props }: IMarquee) => React__default.JSX.Element;
|
|
388
389
|
|
|
389
390
|
type Direction = 'left' | 'right' | 'up' | 'down';
|
|
390
391
|
interface ICardMarquee {
|
package/package.json
CHANGED
|
@@ -9,10 +9,17 @@ const Marquee = ({
|
|
|
9
9
|
className,
|
|
10
10
|
onClick,
|
|
11
11
|
repeat = 5,
|
|
12
|
+
duration = 15,
|
|
12
13
|
...props
|
|
13
14
|
}: IMarquee) => {
|
|
14
15
|
return (
|
|
15
|
-
<StyledMarquee
|
|
16
|
+
<StyledMarquee
|
|
17
|
+
duration={duration}
|
|
18
|
+
repeat={repeat}
|
|
19
|
+
className={cn(className)}
|
|
20
|
+
onClick={onClick}
|
|
21
|
+
{...props}
|
|
22
|
+
>
|
|
16
23
|
<div>
|
|
17
24
|
<Heading size="display" tag="span" className="fw-bold">
|
|
18
25
|
{Array.from({ length: repeat }, () => text).join(' ')}
|
|
@@ -25,7 +25,7 @@ export const StyledMarquee = styled.div<IMarquee>`
|
|
|
25
25
|
width: fit-content;
|
|
26
26
|
white-space: nowrap;
|
|
27
27
|
transform: translate3d(var(--move-initial), 0, 0);
|
|
28
|
-
animation: marquee
|
|
28
|
+
animation: marquee ${({ duration = 15 }) => duration}s linear infinite;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
@keyframes marquee {
|