idea-react 2.0.0-rc.7 → 2.0.0-rc.9

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,26 +1,27 @@
1
- import { FC, HTMLAttributes } from 'react';
2
-
3
- import * as style from './index.module.less';
4
-
5
- export interface VerticalMarqueeProps extends HTMLAttributes<HTMLDivElement> {
6
- duration?: string;
7
- }
8
-
9
- export const VerticalMarquee: FC<VerticalMarqueeProps> = ({
10
- className = '',
11
- children,
12
- duration,
13
- ...props
14
- }) => (
15
- <div className={`overflow-hidden ${className}`} {...props}>
16
- <div
17
- className={`d-inline-block mw-100 mh-100 ${style.scrollWrap}`}
18
- // @ts-expect-error remove after React 19 released
19
- style={{ '--duration': duration }}
20
- >
21
- <div className={`d-inline-block ${style.scrollItem}`}>
22
- {children}
23
- </div>
24
- </div>
25
- </div>
26
- );
1
+ import { FC, HTMLAttributes } from 'react';
2
+
3
+ import * as style from './index.module.less';
4
+
5
+ export interface VerticalMarqueeProps extends HTMLAttributes<HTMLDivElement> {
6
+ duration?: string;
7
+ }
8
+
9
+ export const VerticalMarquee: FC<VerticalMarqueeProps> = ({
10
+ className = '',
11
+ children,
12
+ duration,
13
+ ...props
14
+ }) => (
15
+ <div className={`overflow-hidden ${className}`} {...props}>
16
+ <div
17
+ className={`d-inline-block mw-100 mh-100 ${style.scrollWrap}`}
18
+ // @ts-expect-error remove after React 19 released
19
+ style={{ '--duration': duration }}
20
+ >
21
+ <div className={`d-inline-block ${style.scrollItem}`}>
22
+ {children}
23
+ </div>
24
+ </div>
25
+ </div>
26
+ );
27
+ VerticalMarquee.displayName = 'VerticalMarquee';
package/source/index.ts CHANGED
@@ -1,23 +1,25 @@
1
- export * from './animate';
2
- export * from './Avatar';
3
- export * from './ClickBoundary';
4
- export * from './CodeBlock';
5
- export * from './color';
6
- export * from './Dialog';
7
- export * from './Editor';
8
- export * from './EditorHTML';
9
- export * from './HorizontalMarquee';
10
- export * from './Icon';
11
- export * from './Loading';
12
- export * from './MonthCalendar';
13
- export * from './Nameplate';
14
- export * from './OverlayBox';
15
- export * from './PageNav';
16
- export * from './Select';
17
- export * from './ShareBox';
18
- export * from './SpinnerButton';
19
- export * from './TableSpinner';
20
- export * from './TimeDistance';
21
- export * from './TypeEcho';
22
- export * from './UserRank';
23
- export * from './VerticalMarquee';
1
+ export * from './animate';
2
+ export * from './Avatar';
3
+ export * from './ClickBoundary';
4
+ export * from './CodeBlock';
5
+ export * from './color';
6
+ export * from './Dialog';
7
+ export * from './Editor';
8
+ export * from './EditorHTML';
9
+ export * from './HorizontalMarquee';
10
+ export * from './Icon';
11
+ export * from './Loading';
12
+ export * from './MonthCalendar';
13
+ export * from './Nameplate';
14
+ export * from './OverlayBox';
15
+ export * from './PageNav';
16
+ export * from './Select';
17
+ export * from './ShareBox';
18
+ export * from './SpinnerButton';
19
+ export * from './TableSpinner';
20
+ export * from './Time';
21
+ export * from './TimeDistance';
22
+ export * from './Timeline';
23
+ export * from './TypeEcho';
24
+ export * from './UserRank';
25
+ export * from './VerticalMarquee';
@@ -1,11 +1,11 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "emitDeclarationOnly": true,
6
- "noEmit": false,
7
- "outDir": "dist"
8
- },
9
- "include": ["source/**/*"],
10
- "exclude": ["source/stories/*"]
11
- }
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "emitDeclarationOnly": true,
6
+ "noEmit": false,
7
+ "outDir": "dist"
8
+ },
9
+ "include": ["source/**/*"],
10
+ "exclude": ["source/stories/*"]
11
+ }
package/tsconfig.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "target": "ES6",
4
+ "module": "ES2020",
4
5
  "moduleResolution": "Node",
5
6
  "esModuleInterop": true,
6
7
  "downlevelIteration": true,
@@ -9,7 +10,7 @@
9
10
  "skipLibCheck": true,
10
11
  "lib": ["ES2023", "DOM"]
11
12
  },
12
- "include": ["source/**/*", "stories/**/*"],
13
+ "include": ["source/**/*", "stories/**/*", "*.ts", ".storybook/**/*"],
13
14
  "typedocOptions": {
14
15
  "name": "Idea React",
15
16
  "excludeExternals": true,