@zjlab-fe/data-hub-ui 0.10.1 → 0.10.2
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/types/components/feature-card/index.d.ts +3 -24
- package/dist/types/components/feature-card/types.d.ts +33 -0
- package/dist/types/components/section-heading/index.d.ts +3 -17
- package/dist/types/components/section-heading/types.d.ts +24 -0
- package/dist/types/components/tip-tap/extensions/index.d.ts +1 -1
- package/dist/types/lib/utils.d.ts +2 -0
- package/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +3 -1
- package/tailwind.config.js +0 -1
|
@@ -1,28 +1,7 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import './index.css';
|
|
3
|
-
type
|
|
4
|
-
type
|
|
5
|
-
export interface FeatureCardClassNames {
|
|
6
|
-
root?: string;
|
|
7
|
-
icon?: string;
|
|
8
|
-
body?: string;
|
|
9
|
-
title?: string;
|
|
10
|
-
description?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface FeatureCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
13
|
-
/** Icon content: ReactNode or string (URL/path to image) */
|
|
14
|
-
icon?: React.ReactNode | string;
|
|
15
|
-
/** Card title (named `cardTitle` to avoid conflict with HTML title attribute) */
|
|
16
|
-
cardTitle?: React.ReactNode;
|
|
17
|
-
description?: React.ReactNode;
|
|
18
|
-
titleAs?: keyof JSX.IntrinsicElements;
|
|
19
|
-
/** Alignment: left (default), center, right */
|
|
20
|
-
align?: Align;
|
|
21
|
-
/** Size: sm, md (default), lg */
|
|
22
|
-
size?: Size;
|
|
23
|
-
/** Custom classNames for each element */
|
|
24
|
-
classNames?: FeatureCardClassNames;
|
|
25
|
-
}
|
|
3
|
+
import type { FeatureCardProps } from './types';
|
|
4
|
+
export type { FeatureCardClassNames, FeatureCardProps, FeatureCardStyles, FeatureCardAlign, FeatureCardSize, } from './types';
|
|
26
5
|
declare const FeatureCardRoot: React.ForwardRefExoticComponent<FeatureCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
6
|
export type FeatureCardRootProps = React.ComponentPropsWithoutRef<typeof FeatureCardRoot>;
|
|
28
7
|
interface SlottableProps extends React.HTMLAttributes<HTMLElement> {
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type FeatureCardAlign = 'left' | 'center' | 'right';
|
|
2
|
+
export type FeatureCardSize = 'sm' | 'md' | 'lg';
|
|
3
|
+
export interface FeatureCardClassNames {
|
|
4
|
+
root?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
body?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface FeatureCardStyles {
|
|
11
|
+
root?: React.CSSProperties;
|
|
12
|
+
icon?: React.CSSProperties;
|
|
13
|
+
body?: React.CSSProperties;
|
|
14
|
+
title?: React.CSSProperties;
|
|
15
|
+
description?: React.CSSProperties;
|
|
16
|
+
}
|
|
17
|
+
export interface FeatureCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
18
|
+
/** Icon content: ReactNode or string (URL/path to image) */
|
|
19
|
+
icon?: React.ReactNode | string;
|
|
20
|
+
/** Card title (named `cardTitle` to avoid conflict with HTML title attribute) */
|
|
21
|
+
cardTitle?: React.ReactNode;
|
|
22
|
+
description?: React.ReactNode;
|
|
23
|
+
titleAs?: keyof JSX.IntrinsicElements;
|
|
24
|
+
/** Alignment: left (default), center, right */
|
|
25
|
+
align?: FeatureCardAlign;
|
|
26
|
+
/** Size: sm, md (default), lg */
|
|
27
|
+
size?: FeatureCardSize;
|
|
28
|
+
/** Gap: 2, 3, 4 */
|
|
29
|
+
iconVariant?: 'default' | 'full' | 'square';
|
|
30
|
+
/** Custom classNames for each element */
|
|
31
|
+
classNames?: FeatureCardClassNames | ((props: FeatureCardProps) => FeatureCardClassNames);
|
|
32
|
+
styles?: FeatureCardStyles | ((props: FeatureCardProps) => FeatureCardStyles);
|
|
33
|
+
}
|
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import './index.css';
|
|
3
|
-
type
|
|
4
|
-
type
|
|
5
|
-
export interface SectionHeadingProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
-
kicker?: React.ReactNode;
|
|
7
|
-
mainTitle?: React.ReactNode;
|
|
8
|
-
description?: React.ReactNode;
|
|
9
|
-
align?: Align;
|
|
10
|
-
size?: Size;
|
|
11
|
-
titleAs?: keyof JSX.IntrinsicElements;
|
|
12
|
-
classNames?: {
|
|
13
|
-
root?: string;
|
|
14
|
-
kicker?: string;
|
|
15
|
-
title?: string;
|
|
16
|
-
description?: string;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
3
|
+
import type { SectionHeadingProps } from './types';
|
|
4
|
+
export type { SectionHeadingClassNames, SectionHeadingProps, SectionHeadingStyles, SectionHeadingAlign, SectionHeadingSize, } from './types';
|
|
19
5
|
declare const SectionHeadingRoot: React.ForwardRefExoticComponent<SectionHeadingProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
6
|
export type SectionHeadingRootProps = React.ComponentPropsWithoutRef<typeof SectionHeadingRoot>;
|
|
21
7
|
interface SlottableProps extends React.HTMLAttributes<HTMLElement> {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type SectionHeadingAlign = 'left' | 'center' | 'right';
|
|
2
|
+
export type SectionHeadingSize = 'sm' | 'md' | 'lg';
|
|
3
|
+
export interface SectionHeadingClassNames {
|
|
4
|
+
root?: string;
|
|
5
|
+
kicker?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface SectionHeadingStyles {
|
|
10
|
+
root?: React.CSSProperties;
|
|
11
|
+
kicker?: React.CSSProperties;
|
|
12
|
+
title?: React.CSSProperties;
|
|
13
|
+
description?: React.CSSProperties;
|
|
14
|
+
}
|
|
15
|
+
export interface SectionHeadingProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
kicker?: React.ReactNode;
|
|
17
|
+
mainTitle?: React.ReactNode;
|
|
18
|
+
description?: React.ReactNode;
|
|
19
|
+
align?: SectionHeadingAlign;
|
|
20
|
+
size?: SectionHeadingSize;
|
|
21
|
+
titleAs?: keyof JSX.IntrinsicElements;
|
|
22
|
+
classNames?: SectionHeadingClassNames | ((props: SectionHeadingProps) => SectionHeadingClassNames);
|
|
23
|
+
styles?: SectionHeadingStyles | ((props: SectionHeadingProps) => SectionHeadingStyles);
|
|
24
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const editorExtensions: (placeholder?: string) => (import("@tiptap/core").Extension<import("@tiptap/starter-kit").StarterKitOptions, any> | import("@tiptap/core").
|
|
1
|
+
export declare const editorExtensions: (placeholder?: string) => (import("@tiptap/core").Extension<import("@tiptap/starter-kit").StarterKitOptions, any> | import("@tiptap/core").Mark<import("@tiptap/extension-text-style").TextStyleOptions, any> | import("@tiptap/core").Extension<import("@tiptap/extension-text-style").ColorOptions, any> | import("@tiptap/core").Extension<import("@tiptap/extension-text-align").TextAlignOptions, any> | import("@tiptap/core").Mark<import("@tiptap/extension-highlight").HighlightOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-image").ImageOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-table").TableOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-table").TableRowOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-code-block-lowlight").CodeBlockLowlightOptions, any> | import("@tiptap/core").Extension<any, any> | import("@tiptap/core").Extension<import("@tiptap/extension-placeholder").PlaceholderOptions, any> | import("@tiptap/core").Extension<import("@tiptap/markdown").MarkdownExtensionOptions, import("@tiptap/markdown").MarkdownExtensionStorage>)[];
|
|
2
2
|
export declare const readerExtensions: () => (import("@tiptap/core").Extension<import("@tiptap/starter-kit").StarterKitOptions, any> | import("@tiptap/core").Mark<import("@tiptap/extension-text-style").TextStyleOptions, any> | import("@tiptap/core").Extension<import("@tiptap/extension-text-style").ColorOptions, any> | import("@tiptap/core").Extension<import("@tiptap/extension-text-align").TextAlignOptions, any> | import("@tiptap/core").Mark<import("@tiptap/extension-highlight").HighlightOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-image").ImageOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-table").TableOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-table").TableRowOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-code-block-lowlight").CodeBlockLowlightOptions, any>)[];
|