@zjlab-fe/data-hub-ui 0.7.4 → 0.8.0
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/demo/index.d.ts +1 -0
- package/dist/types/components/feature-card/index.d.ts +34 -0
- package/dist/types/components/section-heading/demo/index.d.ts +1 -0
- package/dist/types/components/section-heading/index.d.ts +30 -0
- package/dist/types/components/tip-tap/extensions/index.d.ts +1 -1
- package/dist/types/index.d.ts +4 -0
- package/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +141 -140
- package/tailwind.config.js +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Demo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.css';
|
|
3
|
+
export interface FeatureCardClassNames {
|
|
4
|
+
root?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
body?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface FeatureCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
11
|
+
/** Icon content: ReactNode or string (URL/path to image) */
|
|
12
|
+
icon?: React.ReactNode | string;
|
|
13
|
+
/** Card title (named `cardTitle` to avoid conflict with HTML title attribute) */
|
|
14
|
+
cardTitle?: React.ReactNode;
|
|
15
|
+
description?: React.ReactNode;
|
|
16
|
+
titleAs?: keyof JSX.IntrinsicElements;
|
|
17
|
+
/** Custom classNames for each element */
|
|
18
|
+
classNames?: FeatureCardClassNames;
|
|
19
|
+
}
|
|
20
|
+
declare const FeatureCardRoot: React.ForwardRefExoticComponent<FeatureCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
export type FeatureCardRootProps = React.ComponentPropsWithoutRef<typeof FeatureCardRoot>;
|
|
22
|
+
interface SlottableProps extends React.HTMLAttributes<HTMLElement> {
|
|
23
|
+
asChild?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export declare const FeatureCard: React.ForwardRefExoticComponent<FeatureCardProps & React.RefAttributes<HTMLDivElement>> & {
|
|
26
|
+
Root: React.ForwardRefExoticComponent<FeatureCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
Header: React.ForwardRefExoticComponent<SlottableProps & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
Icon: React.ForwardRefExoticComponent<SlottableProps & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
+
Body: React.ForwardRefExoticComponent<SlottableProps & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
Title: React.ForwardRefExoticComponent<SlottableProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
31
|
+
Description: React.ForwardRefExoticComponent<SlottableProps & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
Content: React.ForwardRefExoticComponent<SlottableProps & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
};
|
|
34
|
+
export default FeatureCard;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Demo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.css';
|
|
3
|
+
type Align = 'left' | 'center' | 'right';
|
|
4
|
+
type Size = 'sm' | 'md' | 'lg';
|
|
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
|
+
}
|
|
19
|
+
declare const SectionHeadingRoot: React.ForwardRefExoticComponent<SectionHeadingProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
export type SectionHeadingRootProps = React.ComponentPropsWithoutRef<typeof SectionHeadingRoot>;
|
|
21
|
+
interface SlottableProps extends React.HTMLAttributes<HTMLElement> {
|
|
22
|
+
asChild?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare const SectionHeading: React.ForwardRefExoticComponent<SectionHeadingProps & React.RefAttributes<HTMLDivElement>> & {
|
|
25
|
+
Root: React.ForwardRefExoticComponent<SectionHeadingProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
Kicker: React.ForwardRefExoticComponent<SlottableProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
Title: React.ForwardRefExoticComponent<SlottableProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
28
|
+
Description: React.ForwardRefExoticComponent<SlottableProps & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
+
};
|
|
30
|
+
export default SectionHeading;
|
|
@@ -1,2 +1,2 @@
|
|
|
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<
|
|
1
|
+
export declare const editorExtensions: (placeholder?: string) => (import("@tiptap/core").Extension<import("@tiptap/starter-kit").StarterKitOptions, any> | import("@tiptap/core").Extension<import("@tiptap/extension-placeholder").PlaceholderOptions, 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<import("@tiptap/markdown").MarkdownExtensionOptions, import("@tiptap/markdown").MarkdownExtensionStorage> | import("@tiptap/core").Extension<any, any>)[];
|
|
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>)[];
|
package/dist/types/index.d.ts
CHANGED
|
@@ -18,6 +18,10 @@ export { default as AuthTag } from './components/auth-tag';
|
|
|
18
18
|
export { default as StatusTag } from './components/status-tag';
|
|
19
19
|
export { default as FloatingLabelInput } from './components/floating-label-input';
|
|
20
20
|
export { default as PopoverSelect } from './components/popover-select';
|
|
21
|
+
export { default as SectionHeading } from './components/section-heading';
|
|
22
|
+
export type { SectionHeadingProps, SectionHeadingRootProps } from './components/section-heading';
|
|
23
|
+
export { default as FeatureCard } from './components/feature-card';
|
|
24
|
+
export type { FeatureCardProps, FeatureCardRootProps } from './components/feature-card';
|
|
21
25
|
export type { IFilePreviewProps } from './components/file-preview/interface';
|
|
22
26
|
export { default as Tiptap, TipTapReader } from './components/tip-tap';
|
|
23
27
|
export { default as PermissionEditor } from './components/permission-editor';
|