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.
Files changed (241) hide show
  1. package/README.md +51 -0
  2. package/dist/Button/index.js +84 -0
  3. package/dist/Button/index.umd.cjs +1 -0
  4. package/dist/Button/style/index.css +1 -0
  5. package/dist/Button/style/index.js +1 -0
  6. package/dist/Button/style.css +1 -0
  7. package/dist/Card/index.js +32 -0
  8. package/dist/Card/index.umd.cjs +1 -0
  9. package/dist/Card/style/index.css +1 -0
  10. package/dist/Card/style/index.js +1 -0
  11. package/dist/Card/style.css +1 -0
  12. package/dist/Cascader/index.js +94 -0
  13. package/dist/Cascader/index.umd.cjs +1 -0
  14. package/dist/Cascader/style/index.css +1 -0
  15. package/dist/Cascader/style/index.js +1 -0
  16. package/dist/Cascader/style.css +1 -0
  17. package/dist/Cell/index.js +135 -0
  18. package/dist/Cell/index.umd.cjs +6 -0
  19. package/dist/Cell/style/index.css +1 -0
  20. package/dist/Cell/style/index.js +1 -0
  21. package/dist/Cell/style.css +1 -0
  22. package/dist/CheckList/index.js +34 -0
  23. package/dist/CheckList/index.umd.cjs +1 -0
  24. package/dist/CheckList/style/index.css +1 -0
  25. package/dist/CheckList/style/index.js +1 -0
  26. package/dist/CheckList/style.css +1 -0
  27. package/dist/Checkbox/index.js +84 -0
  28. package/dist/Checkbox/index.umd.cjs +1 -0
  29. package/dist/Checkbox/style/index.css +1 -0
  30. package/dist/Checkbox/style/index.js +1 -0
  31. package/dist/Checkbox/style.css +1 -0
  32. package/dist/Collapse/index.js +72 -0
  33. package/dist/Collapse/index.umd.cjs +1 -0
  34. package/dist/Collapse/style/index.css +1 -0
  35. package/dist/Collapse/style/index.js +1 -0
  36. package/dist/Collapse/style.css +1 -0
  37. package/dist/DatePicker/index.js +154 -0
  38. package/dist/DatePicker/index.umd.cjs +1 -0
  39. package/dist/DatePicker/style/index.css +1 -0
  40. package/dist/DatePicker/style/index.js +1 -0
  41. package/dist/DatePicker/style.css +1 -0
  42. package/dist/DateRangePicker/index.js +220 -0
  43. package/dist/DateRangePicker/index.umd.cjs +1 -0
  44. package/dist/DateRangePicker/style/index.css +1 -0
  45. package/dist/DateRangePicker/style/index.js +1 -0
  46. package/dist/DateRangePicker/style.css +1 -0
  47. package/dist/Dialog/index.js +216 -0
  48. package/dist/Dialog/index.umd.cjs +6 -0
  49. package/dist/Dialog/style/index.css +1 -0
  50. package/dist/Dialog/style/index.js +1 -0
  51. package/dist/Dialog/style.css +1 -0
  52. package/dist/Divider/index.js +27 -0
  53. package/dist/Divider/index.umd.cjs +1 -0
  54. package/dist/Divider/style/index.css +1 -0
  55. package/dist/Divider/style/index.js +1 -0
  56. package/dist/Divider/style.css +1 -0
  57. package/dist/DropDownMenu/index.js +111 -0
  58. package/dist/DropDownMenu/index.umd.cjs +1 -0
  59. package/dist/DropDownMenu/style/index.css +1 -0
  60. package/dist/DropDownMenu/style/index.js +1 -0
  61. package/dist/DropDownMenu/style.css +1 -0
  62. package/dist/Flex/index.js +85 -0
  63. package/dist/Flex/index.umd.cjs +1 -0
  64. package/dist/Flex/style/index.css +1 -0
  65. package/dist/Flex/style/index.js +1 -0
  66. package/dist/Flex/style.css +1 -0
  67. package/dist/Grid/index.js +54 -0
  68. package/dist/Grid/index.umd.cjs +1 -0
  69. package/dist/Grid/style/index.css +1 -0
  70. package/dist/Grid/style/index.js +1 -0
  71. package/dist/Grid/style.css +1 -0
  72. package/dist/GridView/index.js +90 -0
  73. package/dist/GridView/index.umd.cjs +1 -0
  74. package/dist/GridView/style/index.css +1 -0
  75. package/dist/GridView/style/index.js +1 -0
  76. package/dist/GridView/style.css +1 -0
  77. package/dist/Icon/index.js +31 -0
  78. package/dist/Icon/index.umd.cjs +1 -0
  79. package/dist/Icon/style/index.css +1 -0
  80. package/dist/Icon/style/index.js +1 -0
  81. package/dist/Icon/style.css +1 -0
  82. package/dist/Input/index.js +148 -0
  83. package/dist/Input/index.umd.cjs +1 -0
  84. package/dist/Input/style/index.css +1 -0
  85. package/dist/Input/style/index.js +1 -0
  86. package/dist/Input/style.css +1 -0
  87. package/dist/NavBar/index.js +175 -0
  88. package/dist/NavBar/index.umd.cjs +6 -0
  89. package/dist/NavBar/style/index.css +1 -0
  90. package/dist/NavBar/style/index.js +1 -0
  91. package/dist/NavBar/style.css +1 -0
  92. package/dist/Popup/index.js +124 -0
  93. package/dist/Popup/index.umd.cjs +1 -0
  94. package/dist/Popup/style/index.css +1 -0
  95. package/dist/Popup/style/index.js +1 -0
  96. package/dist/Popup/style.css +1 -0
  97. package/dist/Radio/index.js +82 -0
  98. package/dist/Radio/index.umd.cjs +1 -0
  99. package/dist/Radio/style/index.css +1 -0
  100. package/dist/Radio/style/index.js +1 -0
  101. package/dist/Radio/style.css +1 -0
  102. package/dist/Search/index.js +158 -0
  103. package/dist/Search/index.umd.cjs +1 -0
  104. package/dist/Search/style/index.css +1 -0
  105. package/dist/Search/style/index.js +1 -0
  106. package/dist/Search/style.css +1 -0
  107. package/dist/Stepper/index.js +140 -0
  108. package/dist/Stepper/index.umd.cjs +1 -0
  109. package/dist/Stepper/style/index.css +1 -0
  110. package/dist/Stepper/style/index.js +1 -0
  111. package/dist/Stepper/style.css +1 -0
  112. package/dist/Switch/index.js +53 -0
  113. package/dist/Switch/index.umd.cjs +1 -0
  114. package/dist/Switch/style/index.css +1 -0
  115. package/dist/Switch/style/index.js +1 -0
  116. package/dist/Switch/style.css +1 -0
  117. package/dist/Tabbar/index.js +159 -0
  118. package/dist/Tabbar/index.umd.cjs +6 -0
  119. package/dist/Tabbar/style/index.css +1 -0
  120. package/dist/Tabbar/style/index.js +1 -0
  121. package/dist/Tabbar/style.css +1 -0
  122. package/dist/Tabs/index.js +50 -0
  123. package/dist/Tabs/index.umd.cjs +1 -0
  124. package/dist/Tabs/style/index.css +1 -0
  125. package/dist/Tabs/style/index.js +1 -0
  126. package/dist/Tabs/style.css +1 -0
  127. package/dist/Tag/index.js +96 -0
  128. package/dist/Tag/index.umd.cjs +6 -0
  129. package/dist/Tag/style/index.css +1 -0
  130. package/dist/Tag/style/index.js +1 -0
  131. package/dist/Tag/style.css +1 -0
  132. package/dist/TimePicker/index.js +201 -0
  133. package/dist/TimePicker/index.umd.cjs +1 -0
  134. package/dist/TimePicker/style/index.css +1 -0
  135. package/dist/TimePicker/style/index.js +1 -0
  136. package/dist/TimePicker/style.css +1 -0
  137. package/dist/Tip/index.js +104 -0
  138. package/dist/Tip/index.umd.cjs +6 -0
  139. package/dist/Tip/style/index.css +1 -0
  140. package/dist/Tip/style/index.js +1 -0
  141. package/dist/Tip/style.css +1 -0
  142. package/dist/Toast/index.js +183 -0
  143. package/dist/Toast/index.umd.cjs +6 -0
  144. package/dist/Toast/style/index.css +1 -0
  145. package/dist/Toast/style/index.js +1 -0
  146. package/dist/Toast/style.css +1 -0
  147. package/dist/Tooltip/index.js +172 -0
  148. package/dist/Tooltip/index.umd.cjs +6 -0
  149. package/dist/Tooltip/style/index.css +1 -0
  150. package/dist/Tooltip/style/index.js +1 -0
  151. package/dist/Tooltip/style.css +1 -0
  152. package/dist/assets/fonts/qitu/iconfont.css +140 -0
  153. package/dist/assets/fonts/qitu/iconfont.ttf +0 -0
  154. package/dist/assets/fonts/qitu/iconfont.woff +0 -0
  155. package/dist/assets/fonts/qitu/iconfont.woff2 +0 -0
  156. package/dist/assets/fonts/qituyonghu/iconfont.css +64 -0
  157. package/dist/assets/fonts/qituyonghu/iconfont.ttf +0 -0
  158. package/dist/assets/fonts/qituyonghu/iconfont.woff +0 -0
  159. package/dist/assets/fonts/qituyonghu/iconfont.woff2 +0 -0
  160. package/dist/assets/fonts/wzdaili/iconfont.css +71 -0
  161. package/dist/assets/fonts/wzdaili/iconfont.ttf +0 -0
  162. package/dist/assets/fonts/wzdaili/iconfont.woff +0 -0
  163. package/dist/assets/fonts/wzdaili/iconfont.woff2 +0 -0
  164. package/dist/assets/fonts/wzyonghu/iconfont.css +97 -0
  165. package/dist/assets/fonts/wzyonghu/iconfont.ttf +0 -0
  166. package/dist/assets/fonts/wzyonghu/iconfont.woff +0 -0
  167. package/dist/assets/fonts/wzyonghu/iconfont.woff2 +0 -0
  168. package/dist/assets/fonts/yunying/iconfont.css +303 -0
  169. package/dist/assets/fonts/yunying/iconfont.ttf +0 -0
  170. package/dist/assets/fonts/yunying/iconfont.woff +0 -0
  171. package/dist/assets/fonts/yunying/iconfont.woff2 +0 -0
  172. package/dist/style.css +1 -0
  173. package/dist/types/components/Button/Button.d.ts +16 -0
  174. package/dist/types/components/Button/index.d.ts +5 -0
  175. package/dist/types/components/Card/Card.d.ts +15 -0
  176. package/dist/types/components/Card/index.d.ts +3 -0
  177. package/dist/types/components/Cascader/Cascader.d.ts +14 -0
  178. package/dist/types/components/Cascader/index.d.ts +3 -0
  179. package/dist/types/components/Cell/Cell.d.ts +24 -0
  180. package/dist/types/components/Cell/CellGroup.d.ts +8 -0
  181. package/dist/types/components/Cell/index.d.ts +8 -0
  182. package/dist/types/components/CheckList/CheckList.d.ts +11 -0
  183. package/dist/types/components/CheckList/index.d.ts +3 -0
  184. package/dist/types/components/Checkbox/Checkbox.d.ts +62 -0
  185. package/dist/types/components/Checkbox/index.d.ts +3 -0
  186. package/dist/types/components/Collapse/Collapse.d.ts +17 -0
  187. package/dist/types/components/Collapse/index.d.ts +3 -0
  188. package/dist/types/components/DatePicker/DatePicker.d.ts +13 -0
  189. package/dist/types/components/DatePicker/index.d.ts +3 -0
  190. package/dist/types/components/DateRangePicker/DateRangePicker.d.ts +13 -0
  191. package/dist/types/components/DateRangePicker/index.d.ts +3 -0
  192. package/dist/types/components/Dialog/Dialog.d.ts +16 -0
  193. package/dist/types/components/Dialog/imperative.d.ts +8 -0
  194. package/dist/types/components/Dialog/index.d.ts +8 -0
  195. package/dist/types/components/Divider/Divider.d.ts +11 -0
  196. package/dist/types/components/Divider/index.d.ts +3 -0
  197. package/dist/types/components/DropDownMenu/DropdownMenu.d.ts +19 -0
  198. package/dist/types/components/DropDownMenu/index.d.ts +2 -0
  199. package/dist/types/components/Flex/Flex.d.ts +25 -0
  200. package/dist/types/components/Flex/index.d.ts +3 -0
  201. package/dist/types/components/Grid/Grid.d.ts +22 -0
  202. package/dist/types/components/Grid/index.d.ts +3 -0
  203. package/dist/types/components/GridView/GridView.d.ts +59 -0
  204. package/dist/types/components/GridView/index.d.ts +2 -0
  205. package/dist/types/components/Icon/Icon.d.ts +12 -0
  206. package/dist/types/components/Icon/icon-data.d.ts +42 -0
  207. package/dist/types/components/Icon/index.d.ts +3 -0
  208. package/dist/types/components/Input/Input.d.ts +17 -0
  209. package/dist/types/components/Input/index.d.ts +3 -0
  210. package/dist/types/components/NavBar/NavBar.d.ts +20 -0
  211. package/dist/types/components/NavBar/index.d.ts +3 -0
  212. package/dist/types/components/Popup/Popup.d.ts +23 -0
  213. package/dist/types/components/Popup/index.d.ts +3 -0
  214. package/dist/types/components/Radio/Radio.d.ts +62 -0
  215. package/dist/types/components/Radio/index.d.ts +3 -0
  216. package/dist/types/components/Search/Search.d.ts +26 -0
  217. package/dist/types/components/Search/index.d.ts +3 -0
  218. package/dist/types/components/Stepper/Stepper.d.ts +22 -0
  219. package/dist/types/components/Stepper/index.d.ts +3 -0
  220. package/dist/types/components/Switch/Switch.d.ts +16 -0
  221. package/dist/types/components/Switch/index.d.ts +3 -0
  222. package/dist/types/components/Tabbar/Tabbar.d.ts +39 -0
  223. package/dist/types/components/Tabbar/index.d.ts +3 -0
  224. package/dist/types/components/Tabs/Tabs.d.ts +25 -0
  225. package/dist/types/components/Tabs/index.d.ts +3 -0
  226. package/dist/types/components/Tag/Tag.d.ts +39 -0
  227. package/dist/types/components/Tag/index.d.ts +3 -0
  228. package/dist/types/components/TimePicker/TimePicker.d.ts +12 -0
  229. package/dist/types/components/TimePicker/index.d.ts +3 -0
  230. package/dist/types/components/Tip/Tip.d.ts +32 -0
  231. package/dist/types/components/Tip/index.d.ts +3 -0
  232. package/dist/types/components/Toast/Toast.d.ts +11 -0
  233. package/dist/types/components/Toast/index.d.ts +15 -0
  234. package/dist/types/components/Tooltip/Tooltip.d.ts +17 -0
  235. package/dist/types/components/Tooltip/index.d.ts +3 -0
  236. package/dist/types/components/index.d.ts +31 -0
  237. package/dist/types/index.d.ts +7 -0
  238. package/dist/types/utils/color.d.ts +1 -0
  239. package/dist/wz-h5-design.es.js +2449 -0
  240. package/dist/wz-h5-design.umd.js +6 -0
  241. 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,3 @@
1
+ import { Tag } from './Tag';
2
+ export type { TagProps } from './Tag';
3
+ export default Tag;
@@ -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,3 @@
1
+ import { TimePicker } from "./TimePicker";
2
+ export type { TimePickerProps } from "./TimePicker";
3
+ export default TimePicker;
@@ -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,3 @@
1
+ import { Tip } from './Tip';
2
+ export type { TipProps } from './Tip';
3
+ 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,3 @@
1
+ import { Tooltip } from './Tooltip';
2
+ export type { TooltipProps } from './Tooltip';
3
+ export default Tooltip;
@@ -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;