-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #184 from zhaoyuuu/publish
feat: add cjs bundle
- Loading branch information
Showing
41 changed files
with
668 additions
and
664 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,16 @@ | ||
import { FC } from 'react' | ||
import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome' | ||
export type ThemeProps = | ||
| 'primary' | ||
| 'secondary' | ||
| 'success' | ||
| 'info' | ||
| 'warning' | ||
| 'danger' | ||
| 'light' | ||
| 'dark' | ||
import { FC } from 'react'; | ||
import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome'; | ||
export type ThemeProps = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'light' | 'dark'; | ||
export interface IconProps extends FontAwesomeIconProps { | ||
/** 支持框架主题 根据主题显示不同的颜色 */ | ||
theme?: ThemeProps | ||
/** 支持框架主题 根据主题显示不同的颜色 */ | ||
theme?: ThemeProps; | ||
} | ||
/** | ||
* 提供了一套常用的图标集合 基于 react-fontawesome。 | ||
* | ||
* 支持 react-fontawesome的所有属性 可以在这里查询 https://github.com/FortAwesome/react-fontawesome#basic | ||
* ###何时使用 | ||
*需要使用图标表达或装饰时 | ||
* | ||
* 支持 fontawesome 所有 free-solid-icons,可以在这里查看所有图标 https://fontawesome.com/icons?d=gallery&s=solid&m=free | ||
*/ | ||
export declare const Icon: FC<IconProps> | ||
export default Icon | ||
export declare const Icon: FC<IconProps>; | ||
export default Icon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import Icon from './icon' | ||
export default Icon | ||
import Icon from './icon'; | ||
export default Icon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import Input from './input' | ||
export default Input | ||
import Input from './input'; | ||
export default Input; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import InputNumber from './inputNumber' | ||
export default InputNumber | ||
import InputNumber from './inputNumber'; | ||
export default InputNumber; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
import React from 'react' | ||
type Status = 'default' | 'error' | 'warning' | 'success' | ||
import React from 'react'; | ||
type Status = 'default' | 'error' | 'warning' | 'success'; | ||
export interface IInputNumberProps { | ||
placeholder?: string | ||
/** 自动获取焦点 */ | ||
autoFocus?: boolean | ||
/** 是否显示增减按钮 */ | ||
controls?: boolean | ||
/** 禁用 */ | ||
disabled?: boolean | ||
/** 是否启用键盘快捷行为 */ | ||
keyboard?: boolean | ||
/** 最大值 */ | ||
max?: number | ||
/** 最小值 */ | ||
min?: number | ||
/** 设置校验状态 */ | ||
status?: Status | ||
/** 输入框大小 */ | ||
size?: 'default' | 'small' | 'large' | ||
/** 每次改变步数 */ | ||
step?: number | ||
/** 当前值 */ | ||
value?: string | ||
/** 变化回调 */ | ||
onChange?: (value: string) => void | ||
/** 按下回车的回调 */ | ||
onPressEnter?: () => void | ||
placeholder?: string; | ||
/** 自动获取焦点 */ | ||
autoFocus?: boolean; | ||
/** 是否显示增减按钮 */ | ||
controls?: boolean; | ||
/** 禁用 */ | ||
disabled?: boolean; | ||
/** 是否启用键盘快捷行为 */ | ||
keyboard?: boolean; | ||
/** 最大值 */ | ||
max?: number; | ||
/** 最小值 */ | ||
min?: number; | ||
/** 设置校验状态 */ | ||
status?: Status; | ||
/** 输入框大小 */ | ||
size?: 'default' | 'small' | 'large'; | ||
/** 每次改变步数 */ | ||
step?: number; | ||
/** 当前值 */ | ||
value?: string; | ||
/** 变化回调 */ | ||
onChange?: (value: string) => void; | ||
/** 按下回车的回调 */ | ||
onPressEnter?: () => void; | ||
} | ||
/** | ||
* > 通过鼠标或键盘,输入范围内的数值。 | ||
* | ||
* ### 何时使用 | ||
* 当需要获取标准数值时。 | ||
*/ | ||
export declare const InputNumber: React.FC<IInputNumberProps> | ||
export default InputNumber | ||
export declare const InputNumber: React.FC<IInputNumberProps>; | ||
export default InputNumber; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { FC } from 'react' | ||
import { IMenuProps } from './menu' | ||
import { ISubMenuProps } from './subMenu/subMenu' | ||
import { IMenuItemProps } from './menuItem' | ||
import { FC } from 'react'; | ||
import { IMenuProps } from './menu'; | ||
import { ISubMenuProps } from './subMenu/subMenu'; | ||
import { IMenuItemProps } from './menuItem'; | ||
export type IMenuComponent = FC<IMenuProps> & { | ||
Item: FC<IMenuItemProps> | ||
SubMenu: FC<ISubMenuProps> | ||
} | ||
declare const TransMenu: IMenuComponent | ||
export default TransMenu | ||
Item: FC<IMenuItemProps>; | ||
SubMenu: FC<ISubMenuProps>; | ||
}; | ||
declare const TransMenu: IMenuComponent; | ||
export default TransMenu; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import React, { ReactNode } from 'react' | ||
import React, { ReactNode } from 'react'; | ||
export interface IMenuItemProps { | ||
style?: React.CSSProperties | ||
className?: string | ||
disabled?: boolean | ||
index?: string | ||
children?: ReactNode | ||
style?: React.CSSProperties; | ||
className?: string; | ||
disabled?: boolean; | ||
index?: string; | ||
children?: ReactNode; | ||
} | ||
export declare const MenuItem: React.FC<IMenuItemProps> | ||
export default MenuItem | ||
export declare const MenuItem: React.FC<IMenuItemProps>; | ||
export default MenuItem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import React, { ReactNode } from 'react' | ||
import React, { ReactNode } from 'react'; | ||
export interface ISubMenuProps { | ||
index?: string | ||
title: string | ||
className?: string | ||
children?: ReactNode | ||
index?: string; | ||
title: string; | ||
className?: string; | ||
children?: ReactNode; | ||
} | ||
export declare const SubMenu: React.FC<ISubMenuProps & React.PropsWithChildren> | ||
export default SubMenu | ||
export declare const SubMenu: React.FC<ISubMenuProps & React.PropsWithChildren>; | ||
export default SubMenu; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import Progress from './progress' | ||
export default Progress | ||
import Progress from './progress'; | ||
export default Progress; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.