@anker-in/headless-ui 0.0.27-alpha.106 → 0.0.27-alpha.107

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.
Files changed (71) hide show
  1. package/dist/cjs/biz-components/AccordionCards/index.d.ts +4 -7
  2. package/dist/cjs/biz-components/BrandEquity/BrandEquity.d.ts +5 -7
  3. package/dist/cjs/biz-components/Category/index.d.ts +5 -7
  4. package/dist/cjs/biz-components/Evaluate/index.d.ts +5 -7
  5. package/dist/cjs/biz-components/Graphic/index.d.ts +4 -7
  6. package/dist/cjs/biz-components/GraphicAttractionBlock/index.d.ts +4 -7
  7. package/dist/cjs/biz-components/HeroBanner/HeroBanner.d.ts +4 -7
  8. package/dist/cjs/biz-components/Marquee/Marquee.d.ts +4 -7
  9. package/dist/cjs/biz-components/MediaPlayerBase/index.d.ts +5 -7
  10. package/dist/cjs/biz-components/MediaPlayerMulti/index.d.ts +5 -7
  11. package/dist/cjs/biz-components/MediaPlayerSticky/index.d.ts +5 -7
  12. package/dist/cjs/biz-components/MemberEquity/index.d.ts +5 -7
  13. package/dist/cjs/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.d.ts +4 -7
  14. package/dist/cjs/biz-components/Shelf/Shelf.d.ts +4 -7
  15. package/dist/cjs/biz-components/ShelfDisplay/index.d.ts +5 -7
  16. package/dist/cjs/biz-components/Slogan/index.d.ts +4 -7
  17. package/dist/cjs/biz-components/Spacer/index.d.ts +4 -7
  18. package/dist/cjs/biz-components/Tabs/Tabs.d.ts +4 -7
  19. package/dist/cjs/biz-components/Title/index.d.ts +4 -7
  20. package/dist/cjs/shared/Styles.d.ts +4 -7
  21. package/dist/cjs/shared/Styles.js +1 -1
  22. package/dist/cjs/shared/Styles.js.map +3 -3
  23. package/dist/cjs/stories/HeroBanner.stories.d.ts +4 -7
  24. package/dist/cjs/stories/accordionCards.stories.d.ts +22 -25
  25. package/dist/cjs/stories/brandEquity.stories.d.ts +4 -7
  26. package/dist/cjs/stories/category.stories.d.ts +4 -7
  27. package/dist/cjs/stories/evaluate.stories.d.ts +4 -7
  28. package/dist/cjs/stories/graphic.stories.d.ts +8 -11
  29. package/dist/cjs/stories/marquee.stories.d.ts +4 -7
  30. package/dist/cjs/stories/mediaplayerMulti.stories.d.ts +4 -7
  31. package/dist/cjs/stories/shelf.stories.d.ts +5 -7
  32. package/dist/cjs/stories/shelfDisplay.stories.d.ts +4 -7
  33. package/dist/cjs/stories/slogan.stories.d.ts +4 -8
  34. package/dist/cjs/stories/slogan.stories.js +2 -22
  35. package/dist/cjs/stories/slogan.stories.js.map +3 -3
  36. package/dist/esm/biz-components/AccordionCards/index.d.ts +4 -7
  37. package/dist/esm/biz-components/BrandEquity/BrandEquity.d.ts +5 -7
  38. package/dist/esm/biz-components/Category/index.d.ts +5 -7
  39. package/dist/esm/biz-components/Evaluate/index.d.ts +5 -7
  40. package/dist/esm/biz-components/Graphic/index.d.ts +4 -7
  41. package/dist/esm/biz-components/GraphicAttractionBlock/index.d.ts +4 -7
  42. package/dist/esm/biz-components/HeroBanner/HeroBanner.d.ts +4 -7
  43. package/dist/esm/biz-components/Marquee/Marquee.d.ts +4 -7
  44. package/dist/esm/biz-components/MediaPlayerBase/index.d.ts +5 -7
  45. package/dist/esm/biz-components/MediaPlayerMulti/index.d.ts +5 -7
  46. package/dist/esm/biz-components/MediaPlayerSticky/index.d.ts +5 -7
  47. package/dist/esm/biz-components/MemberEquity/index.d.ts +5 -7
  48. package/dist/esm/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.d.ts +4 -7
  49. package/dist/esm/biz-components/Shelf/Shelf.d.ts +4 -7
  50. package/dist/esm/biz-components/ShelfDisplay/index.d.ts +5 -7
  51. package/dist/esm/biz-components/Slogan/index.d.ts +4 -7
  52. package/dist/esm/biz-components/Spacer/index.d.ts +4 -7
  53. package/dist/esm/biz-components/Tabs/Tabs.d.ts +4 -7
  54. package/dist/esm/biz-components/Title/index.d.ts +4 -7
  55. package/dist/esm/shared/Styles.d.ts +4 -7
  56. package/dist/esm/shared/Styles.js +1 -1
  57. package/dist/esm/shared/Styles.js.map +3 -3
  58. package/dist/esm/stories/HeroBanner.stories.d.ts +4 -7
  59. package/dist/esm/stories/accordionCards.stories.d.ts +22 -25
  60. package/dist/esm/stories/brandEquity.stories.d.ts +4 -7
  61. package/dist/esm/stories/category.stories.d.ts +4 -7
  62. package/dist/esm/stories/evaluate.stories.d.ts +4 -7
  63. package/dist/esm/stories/graphic.stories.d.ts +8 -11
  64. package/dist/esm/stories/marquee.stories.d.ts +4 -7
  65. package/dist/esm/stories/mediaplayerMulti.stories.d.ts +4 -7
  66. package/dist/esm/stories/shelf.stories.d.ts +5 -7
  67. package/dist/esm/stories/shelfDisplay.stories.d.ts +4 -7
  68. package/dist/esm/stories/slogan.stories.d.ts +4 -8
  69. package/dist/esm/stories/slogan.stories.js +3 -23
  70. package/dist/esm/stories/slogan.stories.js.map +2 -2
  71. package/package.json +1 -1
@@ -25,11 +25,8 @@ type AccordionCardsType = {
25
25
  theme?: 'light' | 'dark';
26
26
  };
27
27
  };
28
- declare const _default: {
29
- (props: Omit<AccordionCardsType, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
30
- className?: string;
31
- data?: Record<string, any>;
32
- }): import("react/jsx-runtime").JSX.Element;
33
- displayName: string;
34
- };
28
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<AccordionCardsType, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
29
+ className?: string;
30
+ data?: Record<string, any>;
31
+ } & import("react").RefAttributes<any>>;
35
32
  export default _default;
@@ -1,9 +1,7 @@
1
+ import React from 'react';
1
2
  import type { BrandEquityProps } from './types.js';
2
- declare const _default: {
3
- (props: Omit<BrandEquityProps, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
4
- className?: string;
5
- data?: Record<string, any>;
6
- }): import("react/jsx-runtime").JSX.Element;
7
- displayName: string;
8
- };
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<BrandEquityProps, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
4
+ className?: string;
5
+ data?: Record<string, any>;
6
+ } & React.RefAttributes<any>>;
9
7
  export default _default;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  export interface CategoryItem {
2
3
  /** 产品图片*/
3
4
  image: any;
@@ -23,11 +24,8 @@ export interface CategoryProps {
23
24
  };
24
25
  key?: string;
25
26
  }
26
- declare const _default: {
27
- (props: Omit<CategoryProps, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
28
- className?: string;
29
- data?: Record<string, any>;
30
- }): import("react/jsx-runtime").JSX.Element;
31
- displayName: string;
32
- };
27
+ declare const _default: React.ForwardRefExoticComponent<Omit<CategoryProps, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
28
+ className?: string;
29
+ data?: Record<string, any>;
30
+ } & React.RefAttributes<any>>;
33
31
  export default _default;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  export interface EvaluateItem {
2
3
  /** 产品图片*/
3
4
  img: {
@@ -24,11 +25,8 @@ export interface EvaluateProps {
24
25
  };
25
26
  key?: string;
26
27
  }
27
- declare const _default: {
28
- (props: Omit<EvaluateProps, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
29
- className?: string;
30
- data?: Record<string, any>;
31
- }): import("react/jsx-runtime").JSX.Element;
32
- displayName: string;
33
- };
28
+ declare const _default: React.ForwardRefExoticComponent<Omit<EvaluateProps, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
29
+ className?: string;
30
+ data?: Record<string, any>;
31
+ } & React.RefAttributes<any>>;
34
32
  export default _default;
@@ -15,11 +15,8 @@ export interface GraphicProps extends ComponentCommonProps {
15
15
  itemShape?: 'round' | 'square';
16
16
  };
17
17
  }
18
- declare const _default: {
19
- (props: Omit<GraphicProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
20
- className?: string;
21
- data?: Record<string, any>;
22
- }): import("react/jsx-runtime").JSX.Element;
23
- displayName: string;
24
- };
18
+ declare const _default: React.ForwardRefExoticComponent<Omit<Omit<GraphicProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
19
+ className?: string;
20
+ data?: Record<string, any>;
21
+ }, "ref"> & React.RefAttributes<any>>;
25
22
  export default _default;
@@ -17,12 +17,9 @@ interface GraphicAttractionBlockProps extends ComponentCommonProps {
17
17
  attractionItems?: AttractionItem[];
18
18
  };
19
19
  }
20
- declare const _default: {
21
- (props: Omit<GraphicAttractionBlockProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
22
- className?: string;
23
- data?: Record<string, any>;
24
- }): import("react/jsx-runtime").JSX.Element;
25
- displayName: string;
26
- };
20
+ declare const _default: React.ForwardRefExoticComponent<Omit<Omit<GraphicAttractionBlockProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
21
+ className?: string;
22
+ data?: Record<string, any>;
23
+ }, "ref"> & React.RefAttributes<any>>;
27
24
  export default _default;
28
25
  export type { GraphicAttractionBlockProps };
@@ -1,10 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { HeroBannerProps } from './types.js';
3
- declare const _default: {
4
- (props: Omit<HeroBannerProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
5
- className?: string;
6
- data?: Record<string, any>;
7
- }): import("react/jsx-runtime").JSX.Element;
8
- displayName: string;
9
- };
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<Omit<HeroBannerProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
4
+ className?: string;
5
+ data?: Record<string, any>;
6
+ }, "ref"> & React.RefAttributes<any>>;
10
7
  export default _default;
@@ -10,12 +10,9 @@ declare const MarqueeImageContent: {
10
10
  displayName: string;
11
11
  };
12
12
  declare const MarqueeTextContent: React.ForwardRefExoticComponent<MarqueeTextContentProps & React.RefAttributes<HTMLDivElement>>;
13
- declare const _default: {
14
- (props: Omit<MarqueeProps & React.RefAttributes<SwiperRef>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
15
- className?: string;
16
- data?: Record<string, any>;
17
- }): import("react/jsx-runtime").JSX.Element;
18
- displayName: string;
19
- };
13
+ declare const _default: React.ForwardRefExoticComponent<Omit<Omit<MarqueeProps & React.RefAttributes<SwiperRef>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
14
+ className?: string;
15
+ data?: Record<string, any>;
16
+ }, "ref"> & React.RefAttributes<any>>;
20
17
  export default _default;
21
18
  export { MarqueeItem, MarqueeImageContent, MarqueeTextContent };
@@ -1,9 +1,7 @@
1
+ import React from 'react';
1
2
  import type { MediaPlayerBaseProps } from './types.js';
2
- declare const _default: {
3
- (props: Omit<MediaPlayerBaseProps, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
4
- className?: string;
5
- data?: Record<string, any>;
6
- }): import("react/jsx-runtime").JSX.Element;
7
- displayName: string;
8
- };
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<MediaPlayerBaseProps, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
4
+ className?: string;
5
+ data?: Record<string, any>;
6
+ } & React.RefAttributes<any>>;
9
7
  export default _default;
@@ -1,9 +1,7 @@
1
+ import React from 'react';
1
2
  import type { MediaPlayerMultiProps } from './types.js';
2
- declare const _default: {
3
- (props: Omit<MediaPlayerMultiProps, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
4
- className?: string;
5
- data?: Record<string, any>;
6
- }): import("react/jsx-runtime").JSX.Element;
7
- displayName: string;
8
- };
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<MediaPlayerMultiProps, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
4
+ className?: string;
5
+ data?: Record<string, any>;
6
+ } & React.RefAttributes<any>>;
9
7
  export default _default;
@@ -1,9 +1,7 @@
1
+ import React from 'react';
1
2
  import type { MediaPlayerBaseProps } from './types.js';
2
- declare const _default: {
3
- (props: Omit<MediaPlayerBaseProps, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
4
- className?: string;
5
- data?: Record<string, any>;
6
- }): import("react/jsx-runtime").JSX.Element;
7
- displayName: string;
8
- };
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<MediaPlayerBaseProps, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
4
+ className?: string;
5
+ data?: Record<string, any>;
6
+ } & React.RefAttributes<any>>;
9
7
  export default _default;
@@ -1,9 +1,7 @@
1
+ import React from 'react';
1
2
  import type { MemberEquityProps } from './types.js';
2
- declare const _default: {
3
- (props: Omit<MemberEquityProps, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
4
- className?: string;
5
- data?: Record<string, any>;
6
- }): import("react/jsx-runtime").JSX.Element;
7
- displayName: string;
8
- };
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<MemberEquityProps, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
4
+ className?: string;
5
+ data?: Record<string, any>;
6
+ } & React.RefAttributes<any>>;
9
7
  export default _default;
@@ -1,11 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { MultiLayoutGraphicBlockProps } from './types';
3
- declare const _default: {
4
- (props: Omit<MultiLayoutGraphicBlockProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
5
- className?: string;
6
- data?: Record<string, any>;
7
- }): import("react/jsx-runtime").JSX.Element;
8
- displayName: string;
9
- };
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<Omit<MultiLayoutGraphicBlockProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
4
+ className?: string;
5
+ data?: Record<string, any>;
6
+ }, "ref"> & React.RefAttributes<any>>;
10
7
  export default _default;
11
8
  export type { MultiLayoutGraphicBlockProps };
@@ -1,9 +1,6 @@
1
1
  import type { ShelfProps } from './types.js';
2
- declare const _default: {
3
- (props: Omit<ShelfProps, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
4
- className?: string;
5
- data?: Record<string, any>;
6
- }): import("react/jsx-runtime").JSX.Element;
7
- displayName: string;
8
- };
2
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<ShelfProps, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
3
+ className?: string;
4
+ data?: Record<string, any>;
5
+ } & import("react").RefAttributes<any>>;
9
6
  export default _default;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  export interface ShelfDisplayItem {
2
3
  id?: string;
3
4
  /** 产品图片*/
@@ -50,11 +51,8 @@ export interface ShelfDisplayProps {
50
51
  className?: string;
51
52
  key?: string;
52
53
  }
53
- declare const _default: {
54
- (props: Omit<ShelfDisplayProps, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
55
- className?: string;
56
- data?: Record<string, any>;
57
- }): import("react/jsx-runtime").JSX.Element;
58
- displayName: string;
59
- };
54
+ declare const _default: React.ForwardRefExoticComponent<Omit<ShelfDisplayProps, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
55
+ className?: string;
56
+ data?: Record<string, any>;
57
+ } & React.RefAttributes<any>>;
60
58
  export default _default;
@@ -1,10 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { SloganProps } from './types.js';
3
- declare const _default: {
4
- (props: Omit<SloganProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
5
- className?: string;
6
- data?: Record<string, any>;
7
- }): import("react/jsx-runtime").JSX.Element;
8
- displayName: string;
9
- };
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<Omit<SloganProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
4
+ className?: string;
5
+ data?: Record<string, any>;
6
+ }, "ref"> & React.RefAttributes<any>>;
10
7
  export default _default;
@@ -1,10 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { SpacerProps } from './types.js';
3
- declare const _default: {
4
- (props: Omit<SpacerProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
5
- className?: string;
6
- data?: Record<string, any>;
7
- }): import("react/jsx-runtime").JSX.Element;
8
- displayName: string;
9
- };
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<Omit<SpacerProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
4
+ className?: string;
5
+ data?: Record<string, any>;
6
+ }, "ref"> & React.RefAttributes<any>>;
10
7
  export default _default;
@@ -1,10 +1,7 @@
1
1
  import type { TabsProps } from './types.js';
2
2
  import React from 'react';
3
- declare const _default: {
4
- (props: Omit<TabsProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
5
- className?: string;
6
- data?: Record<string, any>;
7
- }): import("react/jsx-runtime").JSX.Element;
8
- displayName: string;
9
- };
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<Omit<TabsProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
4
+ className?: string;
5
+ data?: Record<string, any>;
6
+ }, "ref"> & React.RefAttributes<any>>;
10
7
  export default _default;
@@ -1,10 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { TitleProps } from './types.js';
3
- declare const _default: {
4
- (props: Omit<TitleProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
5
- className?: string;
6
- data?: Record<string, any>;
7
- }): import("react/jsx-runtime").JSX.Element;
8
- displayName: string;
9
- };
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<Omit<TitleProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
4
+ className?: string;
5
+ data?: Record<string, any>;
6
+ }, "ref"> & React.RefAttributes<any>>;
10
7
  export default _default;
@@ -25,10 +25,7 @@ export declare const useStyles: (styleProps: Partial<StylesProps>, data?: Record
25
25
  * @param WrappedComponent - 需要包装的组件
26
26
  * @param defaultStyleProps - 默认样式属性
27
27
  */
28
- export declare function withStyles<P extends object>(WrappedComponent: React.ComponentType<P>, defaultStyleProps?: Partial<StylesProps>): {
29
- (props: Omit<P, keyof StylesProps> & Partial<StylesProps> & {
30
- className?: string;
31
- data?: Record<string, any>;
32
- }): import("react/jsx-runtime").JSX.Element;
33
- displayName: string;
34
- };
28
+ export declare function withStyles<P extends object>(WrappedComponent: React.ComponentType<P>, defaultStyleProps?: Partial<StylesProps>): React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<P, keyof StylesProps> & Partial<StylesProps> & {
29
+ className?: string;
30
+ data?: Record<string, any>;
31
+ }> & React.RefAttributes<any>>;
@@ -1,2 +1,2 @@
1
- "use strict";var g=Object.create;var a=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var N=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var b=(t,e)=>{for(var s in e)a(t,s,{get:e[s],enumerable:!0})},i=(t,e,s,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of f(e))!R.call(t,r)&&r!==s&&a(t,r,{get:()=>e[r],enumerable:!(n=p(e,r))||n.enumerable});return t};var $=(t,e,s)=>(s=t!=null?g(N(t)):{},i(e||!t||!t.__esModule?a(s,"default",{value:t,enumerable:!0}):s,t)),k=t=>i(a({},"__esModule",{value:!0}),t);var C={};b(C,{getStylesProps:()=>m,useStyles:()=>S,withStyles:()=>h});module.exports=k(C);var o=require("react/jsx-runtime"),l=require("react"),y=require("./simpleHash.js"),d=$(require("./getKeyPropsString.js"));const c=t=>{const e=(0,d.default)(t);return`style_${(0,y.simpleHash)(e)}`},m=t=>{const{style:e,uid:s,disabled:n}=t;return{style:e,uid:s,disabled:n}},x=({style:t,uid:e=c({}),disabled:s=!1})=>!t||s?null:(0,o.jsx)("style",{suppressHydrationWarning:!0,"data-style-id":e,children:`.block-${e} { ${t} }`}),S=(t,e)=>{const s=(0,l.useMemo)(()=>t?.uid||c({...t,data:e}),[e,t]),n=(0,l.useMemo)(()=>(0,o.jsx)(x,{...t,uid:s}),[t,s]);return{className:`block-${s} `,StyleComponent:n,uid:s}};function h(t,e){const s=function(n){const r={...e,...m(n)},{className:u,StyleComponent:P}=S(r,n.data);return(0,o.jsxs)(o.Fragment,{children:[P,(0,o.jsx)(t,{...n,className:`${u} ${n.className}`})]})};return s.displayName=t.displayName||t.name||"Component",s}
1
+ "use strict";var p=Object.create;var l=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var b=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var $=(t,e)=>{for(var s in e)l(t,s,{get:e[s],enumerable:!0})},i=(t,e,s,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of N(e))!k.call(t,a)&&a!==s&&l(t,a,{get:()=>e[a],enumerable:!(n=R(e,a))||n.enumerable});return t};var y=(t,e,s)=>(s=t!=null?p(b(t)):{},i(e||!t||!t.__esModule?l(s,"default",{value:t,enumerable:!0}):s,t)),x=t=>i(l({},"__esModule",{value:!0}),t);var C={};$(C,{getStylesProps:()=>S,useStyles:()=>u,withStyles:()=>h});module.exports=x(C);var r=require("react/jsx-runtime"),o=y(require("react")),d=require("./simpleHash.js"),m=y(require("./getKeyPropsString.js"));const c=t=>{const e=(0,m.default)(t);return`style_${(0,d.simpleHash)(e)}`},S=t=>{const{style:e,uid:s,disabled:n}=t;return{style:e,uid:s,disabled:n}},w=({style:t,uid:e=c({}),disabled:s=!1})=>!t||s?null:(0,r.jsx)("style",{suppressHydrationWarning:!0,"data-style-id":e,children:`.block-${e} { ${t} }`}),u=(t,e)=>{const s=(0,o.useMemo)(()=>t?.uid||c({...t,data:e}),[e,t]),n=(0,o.useMemo)(()=>(0,r.jsx)(w,{...t,uid:s}),[t,s]);return{className:`block-${s} `,StyleComponent:n,uid:s}};function h(t,e){const s=o.default.forwardRef((n,a)=>{const P={...e,...S(n)},{className:g,StyleComponent:f}=u(P,n?.data);return(0,r.jsxs)(r.Fragment,{children:[f,(0,r.jsx)(t,{...n,className:`${g} ${n?.className}`,ref:a})]})});return s.displayName=t.displayName||t.name||"Component",s}
2
2
  //# sourceMappingURL=Styles.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/shared/Styles.tsx"],
4
- "sourcesContent": ["import React, { useMemo } from 'react'\nimport { simpleHash } from './simpleHash.js'\nimport getKeyPropsString from './getKeyPropsString.js'\n\nexport interface StylesProps {\n /** \u81EA\u5B9A\u4E49\u6837\u5F0F\u5B57\u7B26\u4E32 */\n style?: string\n /** \u552F\u4E00\u6807\u8BC6\u7B26 */\n uid?: string\n /** \u662F\u5426\u7981\u7528 */\n disabled?: boolean\n}\n\n/**\n * \u6839\u636E props \u751F\u6210\u786E\u5B9A\u6027 uid\n */\nconst generateUID = (props: Record<string, any>) => {\n const keyString = getKeyPropsString(props)\n return `style_${simpleHash(keyString)}`\n}\n\n/**\n * \u4ECE\u7EC4\u4EF6 props \u4E2D\u63D0\u53D6\u6837\u5F0F\u76F8\u5173\u5C5E\u6027\n */\nexport const getStylesProps = <T extends Record<string, unknown>>(props: T & StylesProps): StylesProps => {\n const { style, uid, disabled } = props\n return { style, uid, disabled }\n}\n\n/**\n * \u6837\u5F0F\u6CE8\u5165\u7EC4\u4EF6\n */\nconst Styles: React.FC<StylesProps> = ({ style, uid = generateUID({}), disabled = false }) => {\n if (!style || disabled) {\n return null\n }\n\n return <style suppressHydrationWarning data-style-id={uid}>{`.block-${uid} { ${style} }`}</style>\n}\n\n/**\n * \u6837\u5F0F Hook\uFF0C\u8FD4\u56DE\u6837\u5F0F\u7C7B\u540D\u548C\u6837\u5F0F\u7EC4\u4EF6\n * @param styleProps - \u6837\u5F0F\u5C5E\u6027\n */\nexport const useStyles = (styleProps: Partial<StylesProps>, data?: Record<string, any>) => {\n const uid = useMemo(() => styleProps?.uid || generateUID({ ...styleProps, data }), [data, styleProps])\n\n const StyleComponent = useMemo(() => <Styles {...styleProps} uid={uid} />, [styleProps, uid])\n\n return {\n className: `block-${uid} `,\n StyleComponent,\n uid,\n } as const\n}\n\n/**\n * \u6837\u5F0F\u9AD8\u9636\u7EC4\u4EF6\uFF0C \u7528\u4E8E\u7ED9\u7EC4\u4EF6\u7528style \u6807\u7B7E\u7684\u5F62\u5F0F\u8FFD\u52A0\u6837\u5F0F\n * @param WrappedComponent - \u9700\u8981\u5305\u88C5\u7684\u7EC4\u4EF6\n * @param defaultStyleProps - \u9ED8\u8BA4\u6837\u5F0F\u5C5E\u6027\n */\nexport function withStyles<P extends object>(\n WrappedComponent: React.ComponentType<P>,\n defaultStyleProps?: Partial<StylesProps>\n) {\n const WithStyles = function (\n props: Omit<P, keyof StylesProps> & Partial<StylesProps> & { className?: string; data?: Record<string, any> }\n ) {\n const finalStyleProps = {\n ...defaultStyleProps,\n ...getStylesProps(props),\n }\n\n const { className, StyleComponent } = useStyles(finalStyleProps, props.data)\n\n return (\n <>\n {StyleComponent}\n <WrappedComponent {...(props as P)} className={`${className} ${props.className}`} />\n </>\n )\n }\n\n // \u76F4\u63A5\u4F7F\u7528\u539F\u59CB\u7EC4\u4EF6\u7684\u540D\u79F0\n WithStyles.displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component'\n return WithStyles\n}\n"],
5
- "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,oBAAAE,EAAA,cAAAC,EAAA,eAAAC,IAAA,eAAAC,EAAAL,GAqCS,IAAAM,EAAA,6BArCTC,EAA+B,iBAC/BC,EAA2B,2BAC3BC,EAA8B,qCAc9B,MAAMC,EAAeC,GAA+B,CAClD,MAAMC,KAAY,EAAAC,SAAkBF,CAAK,EACzC,MAAO,YAAS,cAAWC,CAAS,CAAC,EACvC,EAKaV,EAAqDS,GAAwC,CACxG,KAAM,CAAE,MAAAG,EAAO,IAAAC,EAAK,SAAAC,CAAS,EAAIL,EACjC,MAAO,CAAE,MAAAG,EAAO,IAAAC,EAAK,SAAAC,CAAS,CAChC,EAKMC,EAAgC,CAAC,CAAE,MAAAH,EAAO,IAAAC,EAAML,EAAY,CAAC,CAAC,EAAG,SAAAM,EAAW,EAAM,IAClF,CAACF,GAASE,EACL,QAGF,OAAC,SAAM,yBAAwB,GAAC,gBAAeD,EAAM,mBAAUA,CAAG,MAAMD,CAAK,KAAK,EAO9EX,EAAY,CAACe,EAAkCC,IAA+B,CACzF,MAAMJ,KAAM,WAAQ,IAAMG,GAAY,KAAOR,EAAY,CAAE,GAAGQ,EAAY,KAAAC,CAAK,CAAC,EAAG,CAACA,EAAMD,CAAU,CAAC,EAE/FE,KAAiB,WAAQ,OAAM,OAACH,EAAA,CAAQ,GAAGC,EAAY,IAAKH,EAAK,EAAI,CAACG,EAAYH,CAAG,CAAC,EAE5F,MAAO,CACL,UAAW,SAASA,CAAG,IACvB,eAAAK,EACA,IAAAL,CACF,CACF,EAOO,SAASX,EACdiB,EACAC,EACA,CACA,MAAMC,EAAa,SACjBZ,EACA,CACA,MAAMa,EAAkB,CACtB,GAAGF,EACH,GAAGpB,EAAeS,CAAK,CACzB,EAEM,CAAE,UAAAc,EAAW,eAAAL,CAAe,EAAIjB,EAAUqB,EAAiBb,EAAM,IAAI,EAE3E,SACE,oBACG,UAAAS,KACD,OAACC,EAAA,CAAkB,GAAIV,EAAa,UAAW,GAAGc,CAAS,IAAId,EAAM,SAAS,GAAI,GACpF,CAEJ,EAGA,OAAAY,EAAW,YAAcF,EAAiB,aAAeA,EAAiB,MAAQ,YAC3EE,CACT",
6
- "names": ["Styles_exports", "__export", "getStylesProps", "useStyles", "withStyles", "__toCommonJS", "import_jsx_runtime", "import_react", "import_simpleHash", "import_getKeyPropsString", "generateUID", "props", "keyString", "getKeyPropsString", "style", "uid", "disabled", "Styles", "styleProps", "data", "StyleComponent", "WrappedComponent", "defaultStyleProps", "WithStyles", "finalStyleProps", "className"]
4
+ "sourcesContent": ["import React, { useMemo } from 'react'\nimport { simpleHash } from './simpleHash.js'\nimport getKeyPropsString from './getKeyPropsString.js'\n\nexport interface StylesProps {\n /** \u81EA\u5B9A\u4E49\u6837\u5F0F\u5B57\u7B26\u4E32 */\n style?: string\n /** \u552F\u4E00\u6807\u8BC6\u7B26 */\n uid?: string\n /** \u662F\u5426\u7981\u7528 */\n disabled?: boolean\n}\n\n/**\n * \u6839\u636E props \u751F\u6210\u786E\u5B9A\u6027 uid\n */\nconst generateUID = (props: Record<string, any>) => {\n const keyString = getKeyPropsString(props)\n return `style_${simpleHash(keyString)}`\n}\n\n/**\n * \u4ECE\u7EC4\u4EF6 props \u4E2D\u63D0\u53D6\u6837\u5F0F\u76F8\u5173\u5C5E\u6027\n */\nexport const getStylesProps = <T extends Record<string, unknown>>(props: T & StylesProps): StylesProps => {\n const { style, uid, disabled } = props\n return { style, uid, disabled }\n}\n\n/**\n * \u6837\u5F0F\u6CE8\u5165\u7EC4\u4EF6\n */\nconst Styles: React.FC<StylesProps> = ({ style, uid = generateUID({}), disabled = false }) => {\n if (!style || disabled) {\n return null\n }\n\n return <style suppressHydrationWarning data-style-id={uid}>{`.block-${uid} { ${style} }`}</style>\n}\n\n/**\n * \u6837\u5F0F Hook\uFF0C\u8FD4\u56DE\u6837\u5F0F\u7C7B\u540D\u548C\u6837\u5F0F\u7EC4\u4EF6\n * @param styleProps - \u6837\u5F0F\u5C5E\u6027\n */\nexport const useStyles = (styleProps: Partial<StylesProps>, data?: Record<string, any>) => {\n const uid = useMemo(() => styleProps?.uid || generateUID({ ...styleProps, data }), [data, styleProps])\n\n const StyleComponent = useMemo(() => <Styles {...styleProps} uid={uid} />, [styleProps, uid])\n\n return {\n className: `block-${uid} `,\n StyleComponent,\n uid,\n } as const\n}\n\n/**\n * \u6837\u5F0F\u9AD8\u9636\u7EC4\u4EF6\uFF0C \u7528\u4E8E\u7ED9\u7EC4\u4EF6\u7528style \u6807\u7B7E\u7684\u5F62\u5F0F\u8FFD\u52A0\u6837\u5F0F\n * @param WrappedComponent - \u9700\u8981\u5305\u88C5\u7684\u7EC4\u4EF6\n * @param defaultStyleProps - \u9ED8\u8BA4\u6837\u5F0F\u5C5E\u6027\n */\nexport function withStyles<P extends object>(\n WrappedComponent: React.ComponentType<P>,\n defaultStyleProps?: Partial<StylesProps>\n) {\n const WithStyles = React.forwardRef<\n any,\n Omit<P, keyof StylesProps> & Partial<StylesProps> & { className?: string; data?: Record<string, any> }\n >((props, ref) => {\n const finalStyleProps = {\n ...defaultStyleProps,\n ...getStylesProps(props),\n }\n\n const { className, StyleComponent } = useStyles(finalStyleProps, (props as any)?.data)\n\n return (\n <>\n {StyleComponent}\n <WrappedComponent\n {...(props as unknown as P)}\n className={`${className} ${(props as any)?.className}`}\n ref={ref}\n />\n </>\n )\n })\n\n // \u76F4\u63A5\u4F7F\u7528\u539F\u59CB\u7EC4\u4EF6\u7684\u540D\u79F0\n WithStyles.displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component'\n return WithStyles\n}\n"],
5
+ "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,oBAAAE,EAAA,cAAAC,EAAA,eAAAC,IAAA,eAAAC,EAAAL,GAqCS,IAAAM,EAAA,6BArCTC,EAA+B,oBAC/BC,EAA2B,2BAC3BC,EAA8B,qCAc9B,MAAMC,EAAeC,GAA+B,CAClD,MAAMC,KAAY,EAAAC,SAAkBF,CAAK,EACzC,MAAO,YAAS,cAAWC,CAAS,CAAC,EACvC,EAKaV,EAAqDS,GAAwC,CACxG,KAAM,CAAE,MAAAG,EAAO,IAAAC,EAAK,SAAAC,CAAS,EAAIL,EACjC,MAAO,CAAE,MAAAG,EAAO,IAAAC,EAAK,SAAAC,CAAS,CAChC,EAKMC,EAAgC,CAAC,CAAE,MAAAH,EAAO,IAAAC,EAAML,EAAY,CAAC,CAAC,EAAG,SAAAM,EAAW,EAAM,IAClF,CAACF,GAASE,EACL,QAGF,OAAC,SAAM,yBAAwB,GAAC,gBAAeD,EAAM,mBAAUA,CAAG,MAAMD,CAAK,KAAK,EAO9EX,EAAY,CAACe,EAAkCC,IAA+B,CACzF,MAAMJ,KAAM,WAAQ,IAAMG,GAAY,KAAOR,EAAY,CAAE,GAAGQ,EAAY,KAAAC,CAAK,CAAC,EAAG,CAACA,EAAMD,CAAU,CAAC,EAE/FE,KAAiB,WAAQ,OAAM,OAACH,EAAA,CAAQ,GAAGC,EAAY,IAAKH,EAAK,EAAI,CAACG,EAAYH,CAAG,CAAC,EAE5F,MAAO,CACL,UAAW,SAASA,CAAG,IACvB,eAAAK,EACA,IAAAL,CACF,CACF,EAOO,SAASX,EACdiB,EACAC,EACA,CACA,MAAMC,EAAa,EAAAC,QAAM,WAGvB,CAACb,EAAOc,IAAQ,CAChB,MAAMC,EAAkB,CACtB,GAAGJ,EACH,GAAGpB,EAAeS,CAAK,CACzB,EAEM,CAAE,UAAAgB,EAAW,eAAAP,CAAe,EAAIjB,EAAUuB,EAAkBf,GAAe,IAAI,EAErF,SACE,oBACG,UAAAS,KACD,OAACC,EAAA,CACE,GAAIV,EACL,UAAW,GAAGgB,CAAS,IAAKhB,GAAe,SAAS,GACpD,IAAKc,EACP,GACF,CAEJ,CAAC,EAGD,OAAAF,EAAW,YAAcF,EAAiB,aAAeA,EAAiB,MAAQ,YAC3EE,CACT",
6
+ "names": ["Styles_exports", "__export", "getStylesProps", "useStyles", "withStyles", "__toCommonJS", "import_jsx_runtime", "import_react", "import_simpleHash", "import_getKeyPropsString", "generateUID", "props", "keyString", "getKeyPropsString", "style", "uid", "disabled", "Styles", "styleProps", "data", "StyleComponent", "WrappedComponent", "defaultStyleProps", "WithStyles", "React", "ref", "finalStyleProps", "className"]
7
7
  }
@@ -2,13 +2,10 @@ import type { StoryObj } from '@storybook/react';
2
2
  import HeroBanner from '../biz-components/HeroBanner/HeroBanner.js';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: {
6
- (props: Omit<import("../biz-components/HeroBanner/types.js").HeroBannerProps & import("react").RefAttributes<HTMLDivElement>, keyof import("../shared/Styles.js").StylesProps> & Partial<import("../shared/Styles.js").StylesProps> & {
7
- className?: string;
8
- data?: Record<string, any>;
9
- }): import("react/jsx-runtime").JSX.Element;
10
- displayName: string;
11
- };
5
+ component: import("react").ForwardRefExoticComponent<Omit<Omit<import("../biz-components/HeroBanner/types.js").HeroBannerProps & import("react").RefAttributes<HTMLDivElement>, keyof import("../shared/Styles.js").StylesProps> & Partial<import("../shared/Styles.js").StylesProps> & {
6
+ className?: string;
7
+ data?: Record<string, any>;
8
+ }, "ref"> & import("react").RefAttributes<any>>;
12
9
  parameters: {
13
10
  layout: string;
14
11
  docs: {
@@ -1,31 +1,28 @@
1
1
  import type { StoryObj } from '@storybook/react';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: {
5
- (props: Omit<{
6
- className?: string;
7
- data: {
8
- key?: string;
9
- title?: string;
10
- products: Array<{
11
- title: string;
12
- img: {
13
- url: string;
14
- };
15
- subTitle: string;
16
- link?: string;
17
- }>;
18
- shape?: "round" | "square";
19
- itemShape?: "round" | "square";
20
- primaryButton?: string;
21
- theme?: "light" | "dark";
22
- };
23
- }, keyof import("../shared/Styles.js").StylesProps> & Partial<import("../shared/Styles.js").StylesProps> & {
24
- className?: string;
25
- data?: Record<string, any>;
26
- }): import("react/jsx-runtime").JSX.Element;
27
- displayName: string;
28
- };
4
+ component: import("react").ForwardRefExoticComponent<Omit<{
5
+ className?: string;
6
+ data: {
7
+ key?: string;
8
+ title?: string;
9
+ products: Array<{
10
+ title: string;
11
+ img: {
12
+ url: string;
13
+ };
14
+ subTitle: string;
15
+ link?: string;
16
+ }>;
17
+ shape?: "round" | "square";
18
+ itemShape?: "round" | "square";
19
+ primaryButton?: string;
20
+ theme?: "light" | "dark";
21
+ };
22
+ }, keyof import("../shared/Styles.js").StylesProps> & Partial<import("../shared/Styles.js").StylesProps> & {
23
+ className?: string;
24
+ data?: Record<string, any>;
25
+ } & import("react").RefAttributes<any>>;
29
26
  parameters: {
30
27
  layout: string;
31
28
  };
@@ -1,13 +1,10 @@
1
1
  import type { StoryObj } from '@storybook/react';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: {
5
- (props: Omit<import("../biz-components/BrandEquity/types.js").BrandEquityProps, keyof import("../shared/Styles.js").StylesProps> & Partial<import("../shared/Styles.js").StylesProps> & {
6
- className?: string;
7
- data?: Record<string, any>;
8
- }): import("react/jsx-runtime").JSX.Element;
9
- displayName: string;
10
- };
4
+ component: import("react").ForwardRefExoticComponent<Omit<import("../biz-components/BrandEquity/types.js").BrandEquityProps, keyof import("../shared/Styles.js").StylesProps> & Partial<import("../shared/Styles.js").StylesProps> & {
5
+ className?: string;
6
+ data?: Record<string, any>;
7
+ } & import("react").RefAttributes<any>>;
11
8
  parameters: {
12
9
  layout: string;
13
10
  };
@@ -1,13 +1,10 @@
1
1
  import type { StoryObj } from '@storybook/react';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: {
5
- (props: Omit<import("../biz-components/Category/index.js").CategoryProps, keyof import("../shared/Styles.js").StylesProps> & Partial<import("../shared/Styles.js").StylesProps> & {
6
- className?: string;
7
- data?: Record<string, any>;
8
- }): import("react/jsx-runtime").JSX.Element;
9
- displayName: string;
10
- };
4
+ component: import("react").ForwardRefExoticComponent<Omit<import("../biz-components/Category/index.js").CategoryProps, keyof import("../shared/Styles.js").StylesProps> & Partial<import("../shared/Styles.js").StylesProps> & {
5
+ className?: string;
6
+ data?: Record<string, any>;
7
+ } & import("react").RefAttributes<any>>;
11
8
  parameters: {
12
9
  layout: string;
13
10
  };
@@ -1,13 +1,10 @@
1
1
  import type { StoryObj } from '@storybook/react';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: {
5
- (props: Omit<import("../biz-components/Evaluate/index.js").EvaluateProps, keyof import("../shared/Styles.js").StylesProps> & Partial<import("../shared/Styles.js").StylesProps> & {
6
- className?: string;
7
- data?: Record<string, any>;
8
- }): import("react/jsx-runtime").JSX.Element;
9
- displayName: string;
10
- };
4
+ component: import("react").ForwardRefExoticComponent<Omit<import("../biz-components/Evaluate/index.js").EvaluateProps, keyof import("../shared/Styles.js").StylesProps> & Partial<import("../shared/Styles.js").StylesProps> & {
5
+ className?: string;
6
+ data?: Record<string, any>;
7
+ } & import("react").RefAttributes<any>>;
11
8
  parameters: {
12
9
  layout: string;
13
10
  };
@@ -1,13 +1,10 @@
1
1
  import type { StoryObj } from '@storybook/react';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: {
5
- (props: Omit<import("../biz-components/Graphic/index.js").GraphicProps & import("react").RefAttributes<HTMLDivElement>, keyof import("../shared/Styles.js").StylesProps> & Partial<import("../shared/Styles.js").StylesProps> & {
6
- className?: string;
7
- data?: Record<string, any>;
8
- }): import("react/jsx-runtime").JSX.Element;
9
- displayName: string;
10
- };
4
+ component: import("react").ForwardRefExoticComponent<Omit<Omit<import("../biz-components/Graphic/index.js").GraphicProps & import("react").RefAttributes<HTMLDivElement>, keyof import("../shared/Styles.js").StylesProps> & Partial<import("../shared/Styles.js").StylesProps> & {
5
+ className?: string;
6
+ data?: Record<string, any>;
7
+ }, "ref"> & import("react").RefAttributes<any>>;
11
8
  parameters: {
12
9
  layout: string;
13
10
  docs: {
@@ -17,9 +14,10 @@ declare const meta: {
17
14
  };
18
15
  };
19
16
  decorators: ((Story: import("@storybook/core/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
20
- ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
17
+ disabled?: boolean | undefined;
21
18
  className?: string | undefined;
22
19
  id?: string | undefined;
20
+ style?: string | undefined;
23
21
  key?: string | undefined;
24
22
  data: {
25
23
  title?: string;
@@ -32,11 +30,10 @@ declare const meta: {
32
30
  }[];
33
31
  itemShape?: "round" | "square";
34
32
  } & Record<string, any>;
33
+ uid?: string | undefined;
35
34
  event?: any;
36
35
  condition?: any;
37
- style?: string | undefined;
38
- uid?: string | undefined;
39
- disabled?: boolean | undefined;
36
+ ref?: import("react").LegacyRef<any> | undefined;
40
37
  }>) => import("react/jsx-runtime").JSX.Element)[];
41
38
  tags: string[];
42
39
  };
@@ -3,13 +3,10 @@ import type { StoryObj } from '@storybook/react';
3
3
  import type { MarqueeProps } from '../biz-components/Marquee/type.js';
4
4
  declare const meta: {
5
5
  title: string;
6
- component: {
7
- (props: Omit<MarqueeProps & React.RefAttributes<import("swiper/react").SwiperRef>, keyof import("../shared/Styles.js").StylesProps> & Partial<import("../shared/Styles.js").StylesProps> & {
8
- className?: string;
9
- data?: Record<string, any>;
10
- }): import("react/jsx-runtime").JSX.Element;
11
- displayName: string;
12
- };
6
+ component: React.ForwardRefExoticComponent<Omit<Omit<MarqueeProps & React.RefAttributes<import("swiper/react").SwiperRef>, keyof import("../shared/Styles.js").StylesProps> & Partial<import("../shared/Styles.js").StylesProps> & {
7
+ className?: string;
8
+ data?: Record<string, any>;
9
+ }, "ref"> & React.RefAttributes<any>>;
13
10
  subcomponents: {
14
11
  MarqueeItem: ComponentType<unknown>;
15
12
  MarqueeImageContent: ComponentType<unknown>;