@zjlab-fe/data-hub-ui 0.7.4 → 0.9.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/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  ### 组件文档站点
8
8
 
9
- https://shelwinjue.github.io/fe-assets/data-hub-ui/doc
9
+ https://fe.shelwin.xyz/data-hub-ui/doc
10
10
 
11
11
 
12
12
 
@@ -0,0 +1 @@
1
+ export default function Demo(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ export interface IProps {
3
+ open?: boolean;
4
+ onCancel?: (e: React.MouseEvent<HTMLButtonElement>) => void;
5
+ }
6
+ /**
7
+ * 申请权限弹窗
8
+ * @param props
9
+ * @returns
10
+ */
11
+ declare function ApplyPermModal(props: IProps): import("react/jsx-runtime").JSX.Element;
12
+ declare namespace ApplyPermModal {
13
+ var confirm: (props?: IProps) => void;
14
+ }
15
+ export default ApplyPermModal;
@@ -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;
@@ -18,8 +18,13 @@ 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';
24
28
  export { PermissionEditModal } from './components/permission-editor';
25
29
  export { PermissionViewPopover } from './components/permission-editor';
30
+ export { default as ApplyPermModal } from './components/apply-perm-modal';