@caron/caron
Advanced tools
@@ -12,3 +12,3 @@ import { ReactNode } from 'react'; | ||
| } | ||
| type ButtonProps = { | ||
| declare type ButtonProps = { | ||
| children?: ReactNode; | ||
@@ -15,0 +15,0 @@ /** |
| /// <reference types="react" /> | ||
| export type STATUS = 'pending' | 'success' | 'error'; | ||
| export declare type STATUS = 'pending' | 'success' | 'error'; | ||
| export interface FormFields { | ||
| [key: string]: FieldType; | ||
| } | ||
| export type FieldType = UFieldType & { | ||
| export declare type FieldType = UFieldType & { | ||
| status?: STATUS; | ||
@@ -8,0 +8,0 @@ message?: string; |
@@ -1,2 +0,1 @@ | ||
| export { default as Button } from './Button/Index'; | ||
| export { default as LazyLoad } from './LazyLoad/Index'; | ||
@@ -18,2 +17,4 @@ export { default as GlobalConfigProvider, globalConfigContext, } from './GlobalConfig/Index'; | ||
| export { default as Checkbox } from './CheckBox/Index'; | ||
| import Button from './Button/Index'; | ||
| export { Button }; | ||
| import './styles/common.less'; |
@@ -5,3 +5,3 @@ import React, { ForwardRefExoticComponent } from 'react'; | ||
| import Password from './password'; | ||
| type InputType = ForwardRefExoticComponent<InputProps & React.RefAttributes<RefInputType>> & { | ||
| declare type InputType = ForwardRefExoticComponent<InputProps & React.RefAttributes<RefInputType>> & { | ||
| Password: typeof Password; | ||
@@ -8,0 +8,0 @@ }; |
@@ -81,3 +81,3 @@ import { CSSProperties, InputHTMLAttributes, ReactNode } from 'react'; | ||
| } | ||
| export type RefInputType = { | ||
| export declare type RefInputType = { | ||
| /** 使输入框失去焦点 */ | ||
@@ -84,0 +84,0 @@ blur: () => void; |
| /// <reference types="react" /> | ||
| import { MenuProps } from './type'; | ||
| type MenuContextProps = Pick<MenuProps, 'mode' | 'theme' | 'selectedKeys' | 'openKeys' | 'collapse' | 'inDropdown' | 'triggerProps'> & { | ||
| declare type MenuContextProps = Pick<MenuProps, 'mode' | 'theme' | 'selectedKeys' | 'openKeys' | 'collapse' | 'inDropdown' | 'triggerProps'> & { | ||
| id?: string; | ||
@@ -5,0 +5,0 @@ prefixCls?: string; |
| import * as React from 'react'; | ||
| type widthUnit = number | string; | ||
| declare type widthUnit = number | string; | ||
| export interface SkeletonParagraphProps { | ||
@@ -4,0 +4,0 @@ prefixCls?: string; |
| import React, { FC } from 'react'; | ||
| import './index.less'; | ||
| import SkeletonAvatar from './Avatar'; | ||
| type widthUnit = number | string; | ||
| declare type widthUnit = number | string; | ||
| export interface SkeletonProps { | ||
@@ -19,3 +19,3 @@ active?: boolean; | ||
| } | ||
| type CompoundedComponent = { | ||
| declare type CompoundedComponent = { | ||
| Avatar: typeof SkeletonAvatar; | ||
@@ -22,0 +22,0 @@ }; |
| import { CSSProperties } from 'react'; | ||
| import { MouseLocationType, TriggerProps } from './type'; | ||
| type ReturnType = { | ||
| declare type ReturnType = { | ||
| style?: CSSProperties; | ||
@@ -5,0 +5,0 @@ arrowStyle?: CSSProperties; |
@@ -11,3 +11,3 @@ import React, { MouseEvent, PropsWithChildren } from 'react'; | ||
| } | ||
| export type EventsByTriggerNeedType = 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onMouseMove' | 'onFocus' | 'onBlur' | 'onContextMenu' | 'onKeyDown'; | ||
| export declare type EventsByTriggerNeedType = 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onMouseMove' | 'onFocus' | 'onBlur' | 'onContextMenu' | 'onKeyDown'; | ||
| declare class Trigger extends PureComponent<TriggerProps, TriggerState> { | ||
@@ -14,0 +14,0 @@ static displayName: string; |
@@ -142,5 +142,5 @@ import { CSSProperties, HTMLAttributes, ReactNode } from 'react'; | ||
| } | ||
| export type MouseLocationType = { | ||
| export declare type MouseLocationType = { | ||
| clientX: number; | ||
| clientY: number; | ||
| }; |
@@ -1,2 +0,2 @@ | ||
| export type Rect = { | ||
| export declare type Rect = { | ||
| width: number; | ||
@@ -3,0 +3,0 @@ height: number; |
@@ -12,3 +12,3 @@ import { ReactNode } from 'react'; | ||
| } | ||
| type ButtonProps = { | ||
| declare type ButtonProps = { | ||
| children?: ReactNode; | ||
@@ -15,0 +15,0 @@ /** |
| /// <reference types="react" /> | ||
| export type STATUS = 'pending' | 'success' | 'error'; | ||
| export declare type STATUS = 'pending' | 'success' | 'error'; | ||
| export interface FormFields { | ||
| [key: string]: FieldType; | ||
| } | ||
| export type FieldType = UFieldType & { | ||
| export declare type FieldType = UFieldType & { | ||
| status?: STATUS; | ||
@@ -8,0 +8,0 @@ message?: string; |
@@ -1,2 +0,1 @@ | ||
| export { default as Button } from './Button/Index'; | ||
| export { default as LazyLoad } from './LazyLoad/Index'; | ||
@@ -18,2 +17,4 @@ export { default as GlobalConfigProvider, globalConfigContext, } from './GlobalConfig/Index'; | ||
| export { default as Checkbox } from './CheckBox/Index'; | ||
| import Button from './Button/Index'; | ||
| export { Button }; | ||
| import './styles/common.less'; |
@@ -5,3 +5,3 @@ import React, { ForwardRefExoticComponent } from 'react'; | ||
| import Password from './password'; | ||
| type InputType = ForwardRefExoticComponent<InputProps & React.RefAttributes<RefInputType>> & { | ||
| declare type InputType = ForwardRefExoticComponent<InputProps & React.RefAttributes<RefInputType>> & { | ||
| Password: typeof Password; | ||
@@ -8,0 +8,0 @@ }; |
@@ -81,3 +81,3 @@ import { CSSProperties, InputHTMLAttributes, ReactNode } from 'react'; | ||
| } | ||
| export type RefInputType = { | ||
| export declare type RefInputType = { | ||
| /** 使输入框失去焦点 */ | ||
@@ -84,0 +84,0 @@ blur: () => void; |
| /// <reference types="react" /> | ||
| import { MenuProps } from './type'; | ||
| type MenuContextProps = Pick<MenuProps, 'mode' | 'theme' | 'selectedKeys' | 'openKeys' | 'collapse' | 'inDropdown' | 'triggerProps'> & { | ||
| declare type MenuContextProps = Pick<MenuProps, 'mode' | 'theme' | 'selectedKeys' | 'openKeys' | 'collapse' | 'inDropdown' | 'triggerProps'> & { | ||
| id?: string; | ||
@@ -5,0 +5,0 @@ prefixCls?: string; |
| import * as React from 'react'; | ||
| type widthUnit = number | string; | ||
| declare type widthUnit = number | string; | ||
| export interface SkeletonParagraphProps { | ||
@@ -4,0 +4,0 @@ prefixCls?: string; |
| import React, { FC } from 'react'; | ||
| import './index.less'; | ||
| import SkeletonAvatar from './Avatar'; | ||
| type widthUnit = number | string; | ||
| declare type widthUnit = number | string; | ||
| export interface SkeletonProps { | ||
@@ -19,3 +19,3 @@ active?: boolean; | ||
| } | ||
| type CompoundedComponent = { | ||
| declare type CompoundedComponent = { | ||
| Avatar: typeof SkeletonAvatar; | ||
@@ -22,0 +22,0 @@ }; |
| import { CSSProperties } from 'react'; | ||
| import { MouseLocationType, TriggerProps } from './type'; | ||
| type ReturnType = { | ||
| declare type ReturnType = { | ||
| style?: CSSProperties; | ||
@@ -5,0 +5,0 @@ arrowStyle?: CSSProperties; |
@@ -11,3 +11,3 @@ import React, { MouseEvent, PropsWithChildren } from 'react'; | ||
| } | ||
| export type EventsByTriggerNeedType = 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onMouseMove' | 'onFocus' | 'onBlur' | 'onContextMenu' | 'onKeyDown'; | ||
| export declare type EventsByTriggerNeedType = 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onMouseMove' | 'onFocus' | 'onBlur' | 'onContextMenu' | 'onKeyDown'; | ||
| declare class Trigger extends PureComponent<TriggerProps, TriggerState> { | ||
@@ -14,0 +14,0 @@ static displayName: string; |
@@ -142,5 +142,5 @@ import { CSSProperties, HTMLAttributes, ReactNode } from 'react'; | ||
| } | ||
| export type MouseLocationType = { | ||
| export declare type MouseLocationType = { | ||
| clientX: number; | ||
| clientY: number; | ||
| }; |
@@ -1,2 +0,2 @@ | ||
| export type Rect = { | ||
| export declare type Rect = { | ||
| width: number; | ||
@@ -3,0 +3,0 @@ height: number; |
+75
-75
| /// <reference types="react" /> | ||
| import React$1, { ReactNode, FC, CSSProperties, HTMLAttributes, InputHTMLAttributes, ForwardRefExoticComponent, PureComponent, PropsWithChildren, MouseEvent, ChangeEvent } from 'react'; | ||
| import React$1, { FC, ReactNode, CSSProperties, HTMLAttributes, InputHTMLAttributes, ForwardRefExoticComponent, PureComponent, PropsWithChildren, MouseEvent, ChangeEvent } from 'react'; | ||
| interface ButtonStyle { | ||
| width?: string; | ||
| height?: string; | ||
| borderRadius?: string; | ||
| border?: string; | ||
| cursor?: string; | ||
| background?: string; | ||
| color?: string; | ||
| opacity?: string; | ||
| } | ||
| type ButtonProps = { | ||
| children?: ReactNode; | ||
| /** | ||
| * @description 类名 | ||
| */ | ||
| className?: string; | ||
| /** | ||
| * @description 按钮主题 | ||
| * @default primary | ||
| */ | ||
| type?: 'primary' | 'danger' | 'warning' | 'success' | 'text'; | ||
| /** | ||
| * @description 宽度 | ||
| */ | ||
| width?: number; | ||
| /** | ||
| * @description 高度 | ||
| */ | ||
| height?: number; | ||
| /** | ||
| * @description 禁用状态 | ||
| * @default false | ||
| */ | ||
| disabled?: boolean; | ||
| /** | ||
| * @description 按钮形状 | ||
| * @default | ||
| */ | ||
| shape?: 'default' | 'circle' | 'round'; | ||
| /** | ||
| * @description 按钮边框为虚线 | ||
| * @default false | ||
| */ | ||
| dashed?: boolean; | ||
| /** | ||
| * @description 加载状态 | ||
| * @default false | ||
| */ | ||
| loading?: boolean; | ||
| /** | ||
| * @description 图标按钮 | ||
| */ | ||
| icon?: ReactNode; | ||
| /** | ||
| * @description 自定义样式 | ||
| */ | ||
| style?: ButtonStyle; | ||
| /** | ||
| * @description 按钮点击回调事件 | ||
| */ | ||
| onClick?: (event: any) => void; | ||
| }; | ||
| declare const _default$1: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<unknown>>; | ||
| interface ILazyLoadProps { | ||
@@ -163,3 +98,3 @@ children: React$1.ReactNode; | ||
| type widthUnit = number | string; | ||
| declare type widthUnit = number | string; | ||
| interface SkeletonProps { | ||
@@ -179,3 +114,3 @@ active?: boolean; | ||
| } | ||
| type CompoundedComponent = { | ||
| declare type CompoundedComponent = { | ||
| Avatar: typeof SkeletonAvatar; | ||
@@ -214,3 +149,3 @@ }; | ||
| declare const _default: React$1.MemoExoticComponent<React$1.ForwardRefExoticComponent<BackTopProps & { | ||
| declare const _default$1: React$1.MemoExoticComponent<React$1.ForwardRefExoticComponent<BackTopProps & { | ||
| children?: React$1.ReactNode; | ||
@@ -359,3 +294,3 @@ } & React$1.RefAttributes<unknown>>>; | ||
| } | ||
| type MouseLocationType = { | ||
| declare type MouseLocationType = { | ||
| clientX: number; | ||
@@ -556,3 +491,3 @@ clientY: number; | ||
| } | ||
| type RefInputType = { | ||
| declare type RefInputType = { | ||
| /** 使输入框失去焦点 */ | ||
@@ -590,3 +525,3 @@ blur: () => void; | ||
| type InputType = ForwardRefExoticComponent<InputProps & React$1.RefAttributes<RefInputType>> & { | ||
| declare type InputType = ForwardRefExoticComponent<InputProps & React$1.RefAttributes<RefInputType>> & { | ||
| Password: typeof Password; | ||
@@ -639,3 +574,3 @@ }; | ||
| type Rect = { | ||
| declare type Rect = { | ||
| width: number; | ||
@@ -660,3 +595,3 @@ height: number; | ||
| } | ||
| type EventsByTriggerNeedType = 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onMouseMove' | 'onFocus' | 'onBlur' | 'onContextMenu' | 'onKeyDown'; | ||
| declare type EventsByTriggerNeedType = 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onMouseMove' | 'onFocus' | 'onBlur' | 'onContextMenu' | 'onKeyDown'; | ||
| declare class Trigger extends PureComponent<TriggerProps, TriggerState> { | ||
@@ -986,2 +921,67 @@ static displayName: string; | ||
| export { _default as BackTop, _default$1 as Button, Calendar, CheckboxComponent as Checkbox, Divider, Dropdown, FormComponent as Form, GlobalConfigProvider, InputElement as Input, LazyLoad, Menu, Notification, Radio, Rate, Skeleton, Tooltip, Trigger, globalConfigContext }; | ||
| interface ButtonStyle { | ||
| width?: string; | ||
| height?: string; | ||
| borderRadius?: string; | ||
| border?: string; | ||
| cursor?: string; | ||
| background?: string; | ||
| color?: string; | ||
| opacity?: string; | ||
| } | ||
| declare type ButtonProps = { | ||
| children?: ReactNode; | ||
| /** | ||
| * @description 类名 | ||
| */ | ||
| className?: string; | ||
| /** | ||
| * @description 按钮主题 | ||
| * @default primary | ||
| */ | ||
| type?: 'primary' | 'danger' | 'warning' | 'success' | 'text'; | ||
| /** | ||
| * @description 宽度 | ||
| */ | ||
| width?: number; | ||
| /** | ||
| * @description 高度 | ||
| */ | ||
| height?: number; | ||
| /** | ||
| * @description 禁用状态 | ||
| * @default false | ||
| */ | ||
| disabled?: boolean; | ||
| /** | ||
| * @description 按钮形状 | ||
| * @default | ||
| */ | ||
| shape?: 'default' | 'circle' | 'round'; | ||
| /** | ||
| * @description 按钮边框为虚线 | ||
| * @default false | ||
| */ | ||
| dashed?: boolean; | ||
| /** | ||
| * @description 加载状态 | ||
| * @default false | ||
| */ | ||
| loading?: boolean; | ||
| /** | ||
| * @description 图标按钮 | ||
| */ | ||
| icon?: ReactNode; | ||
| /** | ||
| * @description 自定义样式 | ||
| */ | ||
| style?: ButtonStyle; | ||
| /** | ||
| * @description 按钮点击回调事件 | ||
| */ | ||
| onClick?: (event: any) => void; | ||
| }; | ||
| declare const _default: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<unknown>>; | ||
| export { _default$1 as BackTop, _default as Button, Calendar, CheckboxComponent as Checkbox, Divider, Dropdown, FormComponent as Form, GlobalConfigProvider, InputElement as Input, LazyLoad, Menu, Notification, Radio, Rate, Skeleton, Tooltip, Trigger, globalConfigContext }; |
@@ -12,3 +12,3 @@ import { ReactNode } from 'react'; | ||
| } | ||
| type ButtonProps = { | ||
| declare type ButtonProps = { | ||
| children?: ReactNode; | ||
@@ -15,0 +15,0 @@ /** |
| /// <reference types="react" /> | ||
| export type STATUS = 'pending' | 'success' | 'error'; | ||
| export declare type STATUS = 'pending' | 'success' | 'error'; | ||
| export interface FormFields { | ||
| [key: string]: FieldType; | ||
| } | ||
| export type FieldType = UFieldType & { | ||
| export declare type FieldType = UFieldType & { | ||
| status?: STATUS; | ||
@@ -8,0 +8,0 @@ message?: string; |
@@ -1,2 +0,1 @@ | ||
| export { default as Button } from './Button/Index'; | ||
| export { default as LazyLoad } from './LazyLoad/Index'; | ||
@@ -18,2 +17,4 @@ export { default as GlobalConfigProvider, globalConfigContext, } from './GlobalConfig/Index'; | ||
| export { default as Checkbox } from './CheckBox/Index'; | ||
| import Button from './Button/Index'; | ||
| export { Button }; | ||
| import './styles/common.less'; |
@@ -5,3 +5,3 @@ import React, { ForwardRefExoticComponent } from 'react'; | ||
| import Password from './password'; | ||
| type InputType = ForwardRefExoticComponent<InputProps & React.RefAttributes<RefInputType>> & { | ||
| declare type InputType = ForwardRefExoticComponent<InputProps & React.RefAttributes<RefInputType>> & { | ||
| Password: typeof Password; | ||
@@ -8,0 +8,0 @@ }; |
@@ -81,3 +81,3 @@ import { CSSProperties, InputHTMLAttributes, ReactNode } from 'react'; | ||
| } | ||
| export type RefInputType = { | ||
| export declare type RefInputType = { | ||
| /** 使输入框失去焦点 */ | ||
@@ -84,0 +84,0 @@ blur: () => void; |
| /// <reference types="react" /> | ||
| import { MenuProps } from './type'; | ||
| type MenuContextProps = Pick<MenuProps, 'mode' | 'theme' | 'selectedKeys' | 'openKeys' | 'collapse' | 'inDropdown' | 'triggerProps'> & { | ||
| declare type MenuContextProps = Pick<MenuProps, 'mode' | 'theme' | 'selectedKeys' | 'openKeys' | 'collapse' | 'inDropdown' | 'triggerProps'> & { | ||
| id?: string; | ||
@@ -5,0 +5,0 @@ prefixCls?: string; |
| import * as React from 'react'; | ||
| type widthUnit = number | string; | ||
| declare type widthUnit = number | string; | ||
| export interface SkeletonParagraphProps { | ||
@@ -4,0 +4,0 @@ prefixCls?: string; |
| import React, { FC } from 'react'; | ||
| import './index.less'; | ||
| import SkeletonAvatar from './Avatar'; | ||
| type widthUnit = number | string; | ||
| declare type widthUnit = number | string; | ||
| export interface SkeletonProps { | ||
@@ -19,3 +19,3 @@ active?: boolean; | ||
| } | ||
| type CompoundedComponent = { | ||
| declare type CompoundedComponent = { | ||
| Avatar: typeof SkeletonAvatar; | ||
@@ -22,0 +22,0 @@ }; |
| import { CSSProperties } from 'react'; | ||
| import { MouseLocationType, TriggerProps } from './type'; | ||
| type ReturnType = { | ||
| declare type ReturnType = { | ||
| style?: CSSProperties; | ||
@@ -5,0 +5,0 @@ arrowStyle?: CSSProperties; |
@@ -11,3 +11,3 @@ import React, { MouseEvent, PropsWithChildren } from 'react'; | ||
| } | ||
| export type EventsByTriggerNeedType = 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onMouseMove' | 'onFocus' | 'onBlur' | 'onContextMenu' | 'onKeyDown'; | ||
| export declare type EventsByTriggerNeedType = 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onMouseMove' | 'onFocus' | 'onBlur' | 'onContextMenu' | 'onKeyDown'; | ||
| declare class Trigger extends PureComponent<TriggerProps, TriggerState> { | ||
@@ -14,0 +14,0 @@ static displayName: string; |
@@ -142,5 +142,5 @@ import { CSSProperties, HTMLAttributes, ReactNode } from 'react'; | ||
| } | ||
| export type MouseLocationType = { | ||
| export declare type MouseLocationType = { | ||
| clientX: number; | ||
| clientY: number; | ||
| }; |
@@ -1,2 +0,2 @@ | ||
| export type Rect = { | ||
| export declare type Rect = { | ||
| width: number; | ||
@@ -3,0 +3,0 @@ height: number; |
+4
-6
| { | ||
| "name": "@caron/caron", | ||
| "version": "1.0.3", | ||
| "version": "1.0.5", | ||
| "description": "caron Component library for PC", | ||
@@ -40,3 +40,2 @@ "authors": { | ||
| "@caron/caron-temp-cli": "workspace:*", | ||
| "@caron/caron-hooks": "^1.0.0", | ||
| "autoprefixer": "^10.4.13", | ||
@@ -69,3 +68,4 @@ "classnames": "^2.3.2", | ||
| "rollup-plugin-typescript2": "^0.34.1", | ||
| "tslib": "^2.4.0" | ||
| "tslib": "^2.4.0", | ||
| "@caron/caron-hooks": "workspace:*" | ||
| }, | ||
@@ -80,5 +80,3 @@ "browserslist": [ | ||
| ], | ||
| "dependencies": { | ||
| "@caron/caron-hooks": "^1.0.0" | ||
| } | ||
| "dependencies": {} | ||
| } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
595353
0.05%2
-33.33%7877
0.06%0
-100%- Removed
- Removed