wz-h5-design 1.0.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 +51 -0
- package/dist/Button/index.js +84 -0
- package/dist/Button/index.umd.cjs +1 -0
- package/dist/Button/style/index.css +1 -0
- package/dist/Button/style/index.js +1 -0
- package/dist/Button/style.css +1 -0
- package/dist/Card/index.js +32 -0
- package/dist/Card/index.umd.cjs +1 -0
- package/dist/Card/style/index.css +1 -0
- package/dist/Card/style/index.js +1 -0
- package/dist/Card/style.css +1 -0
- package/dist/Cascader/index.js +94 -0
- package/dist/Cascader/index.umd.cjs +1 -0
- package/dist/Cascader/style/index.css +1 -0
- package/dist/Cascader/style/index.js +1 -0
- package/dist/Cascader/style.css +1 -0
- package/dist/Cell/index.js +135 -0
- package/dist/Cell/index.umd.cjs +6 -0
- package/dist/Cell/style/index.css +1 -0
- package/dist/Cell/style/index.js +1 -0
- package/dist/Cell/style.css +1 -0
- package/dist/CheckList/index.js +34 -0
- package/dist/CheckList/index.umd.cjs +1 -0
- package/dist/CheckList/style/index.css +1 -0
- package/dist/CheckList/style/index.js +1 -0
- package/dist/CheckList/style.css +1 -0
- package/dist/Checkbox/index.js +84 -0
- package/dist/Checkbox/index.umd.cjs +1 -0
- package/dist/Checkbox/style/index.css +1 -0
- package/dist/Checkbox/style/index.js +1 -0
- package/dist/Checkbox/style.css +1 -0
- package/dist/Collapse/index.js +72 -0
- package/dist/Collapse/index.umd.cjs +1 -0
- package/dist/Collapse/style/index.css +1 -0
- package/dist/Collapse/style/index.js +1 -0
- package/dist/Collapse/style.css +1 -0
- package/dist/DatePicker/index.js +154 -0
- package/dist/DatePicker/index.umd.cjs +1 -0
- package/dist/DatePicker/style/index.css +1 -0
- package/dist/DatePicker/style/index.js +1 -0
- package/dist/DatePicker/style.css +1 -0
- package/dist/DateRangePicker/index.js +220 -0
- package/dist/DateRangePicker/index.umd.cjs +1 -0
- package/dist/DateRangePicker/style/index.css +1 -0
- package/dist/DateRangePicker/style/index.js +1 -0
- package/dist/DateRangePicker/style.css +1 -0
- package/dist/Dialog/index.js +216 -0
- package/dist/Dialog/index.umd.cjs +6 -0
- package/dist/Dialog/style/index.css +1 -0
- package/dist/Dialog/style/index.js +1 -0
- package/dist/Dialog/style.css +1 -0
- package/dist/Divider/index.js +27 -0
- package/dist/Divider/index.umd.cjs +1 -0
- package/dist/Divider/style/index.css +1 -0
- package/dist/Divider/style/index.js +1 -0
- package/dist/Divider/style.css +1 -0
- package/dist/DropDownMenu/index.js +111 -0
- package/dist/DropDownMenu/index.umd.cjs +1 -0
- package/dist/DropDownMenu/style/index.css +1 -0
- package/dist/DropDownMenu/style/index.js +1 -0
- package/dist/DropDownMenu/style.css +1 -0
- package/dist/Flex/index.js +85 -0
- package/dist/Flex/index.umd.cjs +1 -0
- package/dist/Flex/style/index.css +1 -0
- package/dist/Flex/style/index.js +1 -0
- package/dist/Flex/style.css +1 -0
- package/dist/Grid/index.js +54 -0
- package/dist/Grid/index.umd.cjs +1 -0
- package/dist/Grid/style/index.css +1 -0
- package/dist/Grid/style/index.js +1 -0
- package/dist/Grid/style.css +1 -0
- package/dist/GridView/index.js +90 -0
- package/dist/GridView/index.umd.cjs +1 -0
- package/dist/GridView/style/index.css +1 -0
- package/dist/GridView/style/index.js +1 -0
- package/dist/GridView/style.css +1 -0
- package/dist/Icon/index.js +31 -0
- package/dist/Icon/index.umd.cjs +1 -0
- package/dist/Icon/style/index.css +1 -0
- package/dist/Icon/style/index.js +1 -0
- package/dist/Icon/style.css +1 -0
- package/dist/Input/index.js +148 -0
- package/dist/Input/index.umd.cjs +1 -0
- package/dist/Input/style/index.css +1 -0
- package/dist/Input/style/index.js +1 -0
- package/dist/Input/style.css +1 -0
- package/dist/NavBar/index.js +175 -0
- package/dist/NavBar/index.umd.cjs +6 -0
- package/dist/NavBar/style/index.css +1 -0
- package/dist/NavBar/style/index.js +1 -0
- package/dist/NavBar/style.css +1 -0
- package/dist/Popup/index.js +124 -0
- package/dist/Popup/index.umd.cjs +1 -0
- package/dist/Popup/style/index.css +1 -0
- package/dist/Popup/style/index.js +1 -0
- package/dist/Popup/style.css +1 -0
- package/dist/Radio/index.js +82 -0
- package/dist/Radio/index.umd.cjs +1 -0
- package/dist/Radio/style/index.css +1 -0
- package/dist/Radio/style/index.js +1 -0
- package/dist/Radio/style.css +1 -0
- package/dist/Search/index.js +158 -0
- package/dist/Search/index.umd.cjs +1 -0
- package/dist/Search/style/index.css +1 -0
- package/dist/Search/style/index.js +1 -0
- package/dist/Search/style.css +1 -0
- package/dist/Stepper/index.js +140 -0
- package/dist/Stepper/index.umd.cjs +1 -0
- package/dist/Stepper/style/index.css +1 -0
- package/dist/Stepper/style/index.js +1 -0
- package/dist/Stepper/style.css +1 -0
- package/dist/Switch/index.js +53 -0
- package/dist/Switch/index.umd.cjs +1 -0
- package/dist/Switch/style/index.css +1 -0
- package/dist/Switch/style/index.js +1 -0
- package/dist/Switch/style.css +1 -0
- package/dist/Tabbar/index.js +159 -0
- package/dist/Tabbar/index.umd.cjs +6 -0
- package/dist/Tabbar/style/index.css +1 -0
- package/dist/Tabbar/style/index.js +1 -0
- package/dist/Tabbar/style.css +1 -0
- package/dist/Tabs/index.js +50 -0
- package/dist/Tabs/index.umd.cjs +1 -0
- package/dist/Tabs/style/index.css +1 -0
- package/dist/Tabs/style/index.js +1 -0
- package/dist/Tabs/style.css +1 -0
- package/dist/Tag/index.js +96 -0
- package/dist/Tag/index.umd.cjs +6 -0
- package/dist/Tag/style/index.css +1 -0
- package/dist/Tag/style/index.js +1 -0
- package/dist/Tag/style.css +1 -0
- package/dist/TimePicker/index.js +201 -0
- package/dist/TimePicker/index.umd.cjs +1 -0
- package/dist/TimePicker/style/index.css +1 -0
- package/dist/TimePicker/style/index.js +1 -0
- package/dist/TimePicker/style.css +1 -0
- package/dist/Tip/index.js +104 -0
- package/dist/Tip/index.umd.cjs +6 -0
- package/dist/Tip/style/index.css +1 -0
- package/dist/Tip/style/index.js +1 -0
- package/dist/Tip/style.css +1 -0
- package/dist/Toast/index.js +183 -0
- package/dist/Toast/index.umd.cjs +6 -0
- package/dist/Toast/style/index.css +1 -0
- package/dist/Toast/style/index.js +1 -0
- package/dist/Toast/style.css +1 -0
- package/dist/Tooltip/index.js +172 -0
- package/dist/Tooltip/index.umd.cjs +6 -0
- package/dist/Tooltip/style/index.css +1 -0
- package/dist/Tooltip/style/index.js +1 -0
- package/dist/Tooltip/style.css +1 -0
- package/dist/assets/fonts/qitu/iconfont.css +140 -0
- package/dist/assets/fonts/qitu/iconfont.ttf +0 -0
- package/dist/assets/fonts/qitu/iconfont.woff +0 -0
- package/dist/assets/fonts/qitu/iconfont.woff2 +0 -0
- package/dist/assets/fonts/qituyonghu/iconfont.css +64 -0
- package/dist/assets/fonts/qituyonghu/iconfont.ttf +0 -0
- package/dist/assets/fonts/qituyonghu/iconfont.woff +0 -0
- package/dist/assets/fonts/qituyonghu/iconfont.woff2 +0 -0
- package/dist/assets/fonts/wzdaili/iconfont.css +71 -0
- package/dist/assets/fonts/wzdaili/iconfont.ttf +0 -0
- package/dist/assets/fonts/wzdaili/iconfont.woff +0 -0
- package/dist/assets/fonts/wzdaili/iconfont.woff2 +0 -0
- package/dist/assets/fonts/wzyonghu/iconfont.css +97 -0
- package/dist/assets/fonts/wzyonghu/iconfont.ttf +0 -0
- package/dist/assets/fonts/wzyonghu/iconfont.woff +0 -0
- package/dist/assets/fonts/wzyonghu/iconfont.woff2 +0 -0
- package/dist/assets/fonts/yunying/iconfont.css +303 -0
- package/dist/assets/fonts/yunying/iconfont.ttf +0 -0
- package/dist/assets/fonts/yunying/iconfont.woff +0 -0
- package/dist/assets/fonts/yunying/iconfont.woff2 +0 -0
- package/dist/style.css +1 -0
- package/dist/types/components/Button/Button.d.ts +16 -0
- package/dist/types/components/Button/index.d.ts +5 -0
- package/dist/types/components/Card/Card.d.ts +15 -0
- package/dist/types/components/Card/index.d.ts +3 -0
- package/dist/types/components/Cascader/Cascader.d.ts +14 -0
- package/dist/types/components/Cascader/index.d.ts +3 -0
- package/dist/types/components/Cell/Cell.d.ts +24 -0
- package/dist/types/components/Cell/CellGroup.d.ts +8 -0
- package/dist/types/components/Cell/index.d.ts +8 -0
- package/dist/types/components/CheckList/CheckList.d.ts +11 -0
- package/dist/types/components/CheckList/index.d.ts +3 -0
- package/dist/types/components/Checkbox/Checkbox.d.ts +62 -0
- package/dist/types/components/Checkbox/index.d.ts +3 -0
- package/dist/types/components/Collapse/Collapse.d.ts +17 -0
- package/dist/types/components/Collapse/index.d.ts +3 -0
- package/dist/types/components/DatePicker/DatePicker.d.ts +13 -0
- package/dist/types/components/DatePicker/index.d.ts +3 -0
- package/dist/types/components/DateRangePicker/DateRangePicker.d.ts +13 -0
- package/dist/types/components/DateRangePicker/index.d.ts +3 -0
- package/dist/types/components/Dialog/Dialog.d.ts +16 -0
- package/dist/types/components/Dialog/imperative.d.ts +8 -0
- package/dist/types/components/Dialog/index.d.ts +8 -0
- package/dist/types/components/Divider/Divider.d.ts +11 -0
- package/dist/types/components/Divider/index.d.ts +3 -0
- package/dist/types/components/DropDownMenu/DropdownMenu.d.ts +19 -0
- package/dist/types/components/DropDownMenu/index.d.ts +2 -0
- package/dist/types/components/Flex/Flex.d.ts +25 -0
- package/dist/types/components/Flex/index.d.ts +3 -0
- package/dist/types/components/Grid/Grid.d.ts +22 -0
- package/dist/types/components/Grid/index.d.ts +3 -0
- package/dist/types/components/GridView/GridView.d.ts +59 -0
- package/dist/types/components/GridView/index.d.ts +2 -0
- package/dist/types/components/Icon/Icon.d.ts +12 -0
- package/dist/types/components/Icon/icon-data.d.ts +42 -0
- package/dist/types/components/Icon/index.d.ts +3 -0
- package/dist/types/components/Input/Input.d.ts +17 -0
- package/dist/types/components/Input/index.d.ts +3 -0
- package/dist/types/components/NavBar/NavBar.d.ts +20 -0
- package/dist/types/components/NavBar/index.d.ts +3 -0
- package/dist/types/components/Popup/Popup.d.ts +23 -0
- package/dist/types/components/Popup/index.d.ts +3 -0
- package/dist/types/components/Radio/Radio.d.ts +62 -0
- package/dist/types/components/Radio/index.d.ts +3 -0
- package/dist/types/components/Search/Search.d.ts +26 -0
- package/dist/types/components/Search/index.d.ts +3 -0
- package/dist/types/components/Stepper/Stepper.d.ts +22 -0
- package/dist/types/components/Stepper/index.d.ts +3 -0
- package/dist/types/components/Switch/Switch.d.ts +16 -0
- package/dist/types/components/Switch/index.d.ts +3 -0
- package/dist/types/components/Tabbar/Tabbar.d.ts +39 -0
- package/dist/types/components/Tabbar/index.d.ts +3 -0
- package/dist/types/components/Tabs/Tabs.d.ts +25 -0
- package/dist/types/components/Tabs/index.d.ts +3 -0
- package/dist/types/components/Tag/Tag.d.ts +39 -0
- package/dist/types/components/Tag/index.d.ts +3 -0
- package/dist/types/components/TimePicker/TimePicker.d.ts +12 -0
- package/dist/types/components/TimePicker/index.d.ts +3 -0
- package/dist/types/components/Tip/Tip.d.ts +32 -0
- package/dist/types/components/Tip/index.d.ts +3 -0
- package/dist/types/components/Toast/Toast.d.ts +11 -0
- package/dist/types/components/Toast/index.d.ts +15 -0
- package/dist/types/components/Tooltip/Tooltip.d.ts +17 -0
- package/dist/types/components/Tooltip/index.d.ts +3 -0
- package/dist/types/components/index.d.ts +31 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/utils/color.d.ts +1 -0
- package/dist/wz-h5-design.es.js +2449 -0
- package/dist/wz-h5-design.umd.js +6 -0
- package/package.json +84 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import './Tag.scss';
|
|
3
|
+
export interface TagProps {
|
|
4
|
+
/**
|
|
5
|
+
* @description 标签类型
|
|
6
|
+
* @default 'solid'
|
|
7
|
+
*/
|
|
8
|
+
type?: 'solid' | 'line';
|
|
9
|
+
/**
|
|
10
|
+
* @description 标签尺寸
|
|
11
|
+
* @default 'large'
|
|
12
|
+
*/
|
|
13
|
+
size?: 'large' | 'small';
|
|
14
|
+
/**
|
|
15
|
+
* @description 标签颜色
|
|
16
|
+
*/
|
|
17
|
+
color?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @description 背景颜色,type='solid' 时生效
|
|
20
|
+
*/
|
|
21
|
+
bgColor?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @description 字体粗细
|
|
24
|
+
*/
|
|
25
|
+
fontWeight?: 'normal' | 'bold' | number;
|
|
26
|
+
/**
|
|
27
|
+
* @description 自定义类名
|
|
28
|
+
*/
|
|
29
|
+
className?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @description 自定义样式
|
|
32
|
+
*/
|
|
33
|
+
style?: React.CSSProperties;
|
|
34
|
+
/**
|
|
35
|
+
* @description 子节点
|
|
36
|
+
*/
|
|
37
|
+
children?: React.ReactNode;
|
|
38
|
+
}
|
|
39
|
+
export declare const Tag: FC<TagProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './TimePicker.scss';
|
|
3
|
+
export interface TimePickerProps {
|
|
4
|
+
type?: 'single' | 'time';
|
|
5
|
+
options?: string[];
|
|
6
|
+
value?: string;
|
|
7
|
+
onChange?: (val: string) => void;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
itemHeight?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const TimePicker: React.FC<TimePickerProps>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import './Tip.scss';
|
|
3
|
+
export interface TipProps {
|
|
4
|
+
/**
|
|
5
|
+
* @description 提示内容
|
|
6
|
+
*/
|
|
7
|
+
content: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* @description 样式类名
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
12
|
+
/**
|
|
13
|
+
* @description 是否可见
|
|
14
|
+
* @default true
|
|
15
|
+
*/
|
|
16
|
+
visible?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* @description 是否开启走马灯效果
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
marquee?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* @description 关闭事件
|
|
24
|
+
*/
|
|
25
|
+
onClose?: () => void;
|
|
26
|
+
/**
|
|
27
|
+
* @description 操作按钮
|
|
28
|
+
*/
|
|
29
|
+
action?: ReactNode;
|
|
30
|
+
}
|
|
31
|
+
export declare const Tip: FC<TipProps>;
|
|
32
|
+
export default Tip;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
import "./Toast.scss";
|
|
3
|
+
export interface ToastProps {
|
|
4
|
+
content: string;
|
|
5
|
+
duration?: number;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
visible?: boolean;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare const Toast: FC<ToastProps>;
|
|
11
|
+
export default Toast;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ToastProps } from "./Toast";
|
|
2
|
+
export declare const show: (props: ToastProps | string) => void;
|
|
3
|
+
export declare const success: (content: string, duration?: number) => void;
|
|
4
|
+
export declare const fail: (content: string, duration?: number) => void;
|
|
5
|
+
export declare const loading: (content: string, duration?: number) => void;
|
|
6
|
+
export declare const warn: (content: string, duration?: number) => void;
|
|
7
|
+
export declare const hide: () => void;
|
|
8
|
+
export declare const Toast: {
|
|
9
|
+
show: (props: ToastProps | string) => void;
|
|
10
|
+
success: (content: string, duration?: number) => void;
|
|
11
|
+
fail: (content: string, duration?: number) => void;
|
|
12
|
+
loading: (content: string, duration?: number) => void;
|
|
13
|
+
warn: (content: string, duration?: number) => void;
|
|
14
|
+
hide: () => void;
|
|
15
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { ReactNode, FC } from "react";
|
|
2
|
+
import "./Tooltip.scss";
|
|
3
|
+
export interface TooltipProps {
|
|
4
|
+
content: ReactNode;
|
|
5
|
+
children: React.ReactElement;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
color?: string;
|
|
9
|
+
textColor?: string;
|
|
10
|
+
trigger?: "click";
|
|
11
|
+
visible?: boolean;
|
|
12
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
13
|
+
showMask?: boolean;
|
|
14
|
+
action?: React.ReactNode;
|
|
15
|
+
closeIcon?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare const Tooltip: FC<TooltipProps>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Button } from "./Button/Button";
|
|
2
|
+
import { Radio } from "./Radio/Radio";
|
|
3
|
+
import { Checkbox } from "./Checkbox/Checkbox";
|
|
4
|
+
import { Switch } from "./Switch/Switch";
|
|
5
|
+
import { Tabbar } from "./Tabbar/Tabbar";
|
|
6
|
+
import { Icon } from "./Icon/Icon";
|
|
7
|
+
import { Card } from "./Card/Card";
|
|
8
|
+
import { Cell } from "./Cell";
|
|
9
|
+
import { Tabs } from "./Tabs/Tabs";
|
|
10
|
+
import { Collapse } from "./Collapse/Collapse";
|
|
11
|
+
import { Stepper } from "./Stepper/Stepper";
|
|
12
|
+
import { Popup } from "./Popup/Popup";
|
|
13
|
+
import { Cascader } from "./Cascader/Cascader";
|
|
14
|
+
import { Input } from "./Input/Input";
|
|
15
|
+
import { Divider } from "./Divider/Divider";
|
|
16
|
+
import { CheckList } from "./CheckList/CheckList";
|
|
17
|
+
import { Search } from "./Search/Search";
|
|
18
|
+
import { TimePicker } from "./TimePicker/TimePicker";
|
|
19
|
+
import { DatePicker } from "./DatePicker/DatePicker";
|
|
20
|
+
import { DateRangePicker } from "./DateRangePicker/DateRangePicker";
|
|
21
|
+
import { Flex } from "./Flex/Flex";
|
|
22
|
+
import { Grid } from "./Grid/Grid";
|
|
23
|
+
import { GridView } from "./GridView/GridView";
|
|
24
|
+
import { Tag } from "./Tag/Tag";
|
|
25
|
+
import { Tip } from "./Tip/Tip";
|
|
26
|
+
import { NavBar } from "./NavBar/NavBar";
|
|
27
|
+
import { DropdownMenu } from "./DropDownMenu";
|
|
28
|
+
import { Toast } from "./Toast";
|
|
29
|
+
import { Tooltip } from "./Tooltip/Tooltip";
|
|
30
|
+
import { Dialog } from "./Dialog";
|
|
31
|
+
export { Button, Radio, Checkbox, Switch, Tabbar, Icon, Card, Cell, Tabs, Collapse, Stepper, Popup, Cascader, Input, Divider, CheckList, Search, TimePicker, DatePicker, DateRangePicker, Flex, Grid, GridView, Tag, Tip, NavBar, DropdownMenu, Toast, Tooltip, Dialog, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import './styles/global.scss';
|
|
2
|
+
import './assets/inconfont/yunying/iconfont.css';
|
|
3
|
+
import './assets/inconfont/qitu/iconfont.css';
|
|
4
|
+
import './assets/inconfont/wzyonghu/iconfont.css';
|
|
5
|
+
import './assets/inconfont/wzdaili/iconfont.css';
|
|
6
|
+
import './assets/inconfont/qituyonghu/iconfont.css';
|
|
7
|
+
export * from './components';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function hexToRgba(hex: string, opacity: number): string;
|