oddsgate-ds 1.0.150 → 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.
@@ -1,4 +1,4 @@
1
1
  import { IMarquee } from './Marquee.interface';
2
2
  import React from 'react';
3
- declare const Marquee: ({ text, className, onClick, ...props }: IMarquee) => React.JSX.Element;
3
+ declare const Marquee: ({ text, className, onClick, repeat, duration, ...props }: IMarquee) => React.JSX.Element;
4
4
  export default Marquee;
@@ -1,6 +1,8 @@
1
1
  import { CSSProperties } from 'react';
2
2
  export type IMarquee = {
3
3
  text?: string;
4
+ repeat?: number;
5
+ duration: number;
4
6
  className?: string;
5
7
  style?: CSSProperties;
6
8
  onClick?: () => void;
package/dist/types.d.ts CHANGED
@@ -378,12 +378,14 @@ declare const SocialLinks: ({ variant, socials, className, style, ...props }: IS
378
378
 
379
379
  type IMarquee = {
380
380
  text?: string;
381
+ repeat?: number;
382
+ duration: number;
381
383
  className?: string;
382
384
  style?: CSSProperties;
383
385
  onClick?: () => void;
384
386
  };
385
387
 
386
- declare const Marquee: ({ text, className, onClick, ...props }: IMarquee) => React__default.JSX.Element;
388
+ declare const Marquee: ({ text, className, onClick, repeat, duration, ...props }: IMarquee) => React__default.JSX.Element;
387
389
 
388
390
  type Direction = 'left' | 'right' | 'up' | 'down';
389
391
  interface ICardMarquee {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oddsgate-ds",
3
- "version": "1.0.150",
3
+ "version": "1.0.152",
4
4
  "description": "Miew theme component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -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 className={cn(className)} onClick={onClick} {...props}>
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(' ')}
@@ -3,6 +3,7 @@ import { CSSProperties } from 'react';
3
3
  export type IMarquee = {
4
4
  text?: string
5
5
  repeat?: number
6
+ duration: number
6
7
  className?: string
7
8
  style?: CSSProperties
8
9
  onClick?: () => void
@@ -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 15s linear infinite;
28
+ animation: marquee ${({ duration = 15 }) => duration}s linear infinite;
29
29
  }
30
30
 
31
31
  @keyframes marquee {