wz-h5-design 1.0.6 → 1.0.7

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 (166) hide show
  1. package/dist/Button/index.js +11 -2
  2. package/dist/Button/index.umd.cjs +1 -1
  3. package/dist/Button/style/index.css +1 -1
  4. package/dist/Button/style.css +1 -1
  5. package/dist/Cell/iconfont-B9h4iRmM.js +35 -0
  6. package/dist/Cell/iconfont-B_mx7ld3.js +35 -0
  7. package/dist/Cell/iconfont-CRbFpV7z.js +35 -0
  8. package/dist/Cell/iconfont-CXxMq4G2.js +35 -0
  9. package/dist/Cell/iconfont-De-ylfev.js +35 -0
  10. package/dist/Cell/index.js +43 -12
  11. package/dist/Cell/index.umd.cjs +2 -2
  12. package/dist/Cell/style/index.css +1 -1
  13. package/dist/Cell/style.css +1 -1
  14. package/dist/CheckList/iconfont-B9h4iRmM.js +35 -0
  15. package/dist/CheckList/iconfont-B_mx7ld3.js +35 -0
  16. package/dist/CheckList/iconfont-CRbFpV7z.js +35 -0
  17. package/dist/CheckList/iconfont-CXxMq4G2.js +35 -0
  18. package/dist/CheckList/iconfont-De-ylfev.js +35 -0
  19. package/dist/CheckList/index.js +43 -12
  20. package/dist/CheckList/index.umd.cjs +1 -1
  21. package/dist/CheckList/style.css +1 -1
  22. package/dist/Checkbox/iconfont-B9h4iRmM.js +35 -0
  23. package/dist/Checkbox/iconfont-B_mx7ld3.js +35 -0
  24. package/dist/Checkbox/iconfont-CRbFpV7z.js +35 -0
  25. package/dist/Checkbox/iconfont-CXxMq4G2.js +35 -0
  26. package/dist/Checkbox/iconfont-De-ylfev.js +35 -0
  27. package/dist/Checkbox/index.js +43 -13
  28. package/dist/Checkbox/index.umd.cjs +1 -1
  29. package/dist/Checkbox/style.css +1 -1
  30. package/dist/DateRangePicker/iconfont-B9h4iRmM.js +35 -0
  31. package/dist/DateRangePicker/iconfont-B_mx7ld3.js +35 -0
  32. package/dist/DateRangePicker/iconfont-CRbFpV7z.js +35 -0
  33. package/dist/DateRangePicker/iconfont-CXxMq4G2.js +35 -0
  34. package/dist/DateRangePicker/iconfont-De-ylfev.js +35 -0
  35. package/dist/DateRangePicker/index.js +43 -13
  36. package/dist/DateRangePicker/index.umd.cjs +1 -1
  37. package/dist/DateRangePicker/style.css +1 -1
  38. package/dist/DemoLayout/index.js +92 -0
  39. package/dist/DemoLayout/index.umd.cjs +1 -0
  40. package/dist/Dialog/index.js +11 -2
  41. package/dist/Dialog/index.umd.cjs +2 -2
  42. package/dist/Dialog/style.css +1 -1
  43. package/dist/DropDownMenu/iconfont-B9h4iRmM.js +35 -0
  44. package/dist/DropDownMenu/iconfont-B_mx7ld3.js +35 -0
  45. package/dist/DropDownMenu/iconfont-CRbFpV7z.js +35 -0
  46. package/dist/DropDownMenu/iconfont-CXxMq4G2.js +35 -0
  47. package/dist/DropDownMenu/iconfont-De-ylfev.js +35 -0
  48. package/dist/DropDownMenu/index.js +43 -13
  49. package/dist/DropDownMenu/index.umd.cjs +1 -1
  50. package/dist/DropDownMenu/style.css +1 -1
  51. package/dist/Icon/iconfont-B9h4iRmM.js +35 -0
  52. package/dist/Icon/iconfont-B_mx7ld3.js +35 -0
  53. package/dist/Icon/iconfont-CRbFpV7z.js +35 -0
  54. package/dist/Icon/iconfont-CXxMq4G2.js +35 -0
  55. package/dist/Icon/iconfont-De-ylfev.js +35 -0
  56. package/dist/Icon/index.js +43 -12
  57. package/dist/Icon/index.umd.cjs +1 -1
  58. package/dist/Icon/style/index.css +1 -1
  59. package/dist/Icon/style.css +1 -1
  60. package/dist/Input/iconfont-B9h4iRmM.js +35 -0
  61. package/dist/Input/iconfont-B_mx7ld3.js +35 -0
  62. package/dist/Input/iconfont-CRbFpV7z.js +35 -0
  63. package/dist/Input/iconfont-CXxMq4G2.js +35 -0
  64. package/dist/Input/iconfont-De-ylfev.js +35 -0
  65. package/dist/Input/index.js +43 -13
  66. package/dist/Input/index.umd.cjs +1 -1
  67. package/dist/Input/style.css +1 -1
  68. package/dist/NavBar/iconfont-B9h4iRmM.js +35 -0
  69. package/dist/NavBar/iconfont-B_mx7ld3.js +35 -0
  70. package/dist/NavBar/iconfont-CRbFpV7z.js +35 -0
  71. package/dist/NavBar/iconfont-CXxMq4G2.js +35 -0
  72. package/dist/NavBar/iconfont-De-ylfev.js +35 -0
  73. package/dist/NavBar/index.js +43 -13
  74. package/dist/NavBar/index.umd.cjs +2 -2
  75. package/dist/NavBar/style.css +1 -1
  76. package/dist/Radio/iconfont-B9h4iRmM.js +35 -0
  77. package/dist/Radio/iconfont-B_mx7ld3.js +35 -0
  78. package/dist/Radio/iconfont-CRbFpV7z.js +35 -0
  79. package/dist/Radio/iconfont-CXxMq4G2.js +35 -0
  80. package/dist/Radio/iconfont-De-ylfev.js +35 -0
  81. package/dist/Radio/index.js +43 -13
  82. package/dist/Radio/index.umd.cjs +1 -1
  83. package/dist/Radio/style.css +1 -1
  84. package/dist/Search/iconfont-B9h4iRmM.js +35 -0
  85. package/dist/Search/iconfont-B_mx7ld3.js +35 -0
  86. package/dist/Search/iconfont-CRbFpV7z.js +35 -0
  87. package/dist/Search/iconfont-CXxMq4G2.js +35 -0
  88. package/dist/Search/iconfont-De-ylfev.js +35 -0
  89. package/dist/Search/index.js +49 -16
  90. package/dist/Search/index.umd.cjs +1 -1
  91. package/dist/Search/style/index.css +1 -1
  92. package/dist/Search/style.css +1 -1
  93. package/dist/Stepper/iconfont-B9h4iRmM.js +35 -0
  94. package/dist/Stepper/iconfont-B_mx7ld3.js +35 -0
  95. package/dist/Stepper/iconfont-CRbFpV7z.js +35 -0
  96. package/dist/Stepper/iconfont-CXxMq4G2.js +35 -0
  97. package/dist/Stepper/iconfont-De-ylfev.js +35 -0
  98. package/dist/Stepper/index.js +43 -13
  99. package/dist/Stepper/index.umd.cjs +1 -1
  100. package/dist/Stepper/style.css +1 -1
  101. package/dist/Tabbar/iconfont-B9h4iRmM.js +35 -0
  102. package/dist/Tabbar/iconfont-B_mx7ld3.js +35 -0
  103. package/dist/Tabbar/iconfont-CRbFpV7z.js +35 -0
  104. package/dist/Tabbar/iconfont-CXxMq4G2.js +35 -0
  105. package/dist/Tabbar/iconfont-De-ylfev.js +35 -0
  106. package/dist/Tabbar/index.js +43 -13
  107. package/dist/Tabbar/index.umd.cjs +2 -2
  108. package/dist/Tabbar/style.css +1 -1
  109. package/dist/Tip/iconfont-B9h4iRmM.js +35 -0
  110. package/dist/Tip/iconfont-B_mx7ld3.js +35 -0
  111. package/dist/Tip/iconfont-CRbFpV7z.js +35 -0
  112. package/dist/Tip/iconfont-CXxMq4G2.js +35 -0
  113. package/dist/Tip/iconfont-De-ylfev.js +35 -0
  114. package/dist/Tip/index.js +43 -13
  115. package/dist/Tip/index.umd.cjs +2 -2
  116. package/dist/Tip/style.css +1 -1
  117. package/dist/Toast/iconfont-B9h4iRmM.js +35 -0
  118. package/dist/Toast/iconfont-B_mx7ld3.js +35 -0
  119. package/dist/Toast/iconfont-CRbFpV7z.js +35 -0
  120. package/dist/Toast/iconfont-CXxMq4G2.js +35 -0
  121. package/dist/Toast/iconfont-De-ylfev.js +35 -0
  122. package/dist/Toast/index.js +42 -12
  123. package/dist/Toast/index.umd.cjs +2 -2
  124. package/dist/Toast/style.css +1 -1
  125. package/dist/Tooltip/iconfont-B9h4iRmM.js +35 -0
  126. package/dist/Tooltip/iconfont-B_mx7ld3.js +35 -0
  127. package/dist/Tooltip/iconfont-CRbFpV7z.js +35 -0
  128. package/dist/Tooltip/iconfont-CXxMq4G2.js +35 -0
  129. package/dist/Tooltip/iconfont-De-ylfev.js +35 -0
  130. package/dist/Tooltip/index.js +43 -13
  131. package/dist/Tooltip/index.umd.cjs +2 -2
  132. package/dist/Tooltip/style.css +1 -1
  133. package/dist/assets/fonts/qitu/iconfont.css +11 -3
  134. package/dist/assets/fonts/qitu/iconfont.ttf +0 -0
  135. package/dist/assets/fonts/qitu/iconfont.woff +0 -0
  136. package/dist/assets/fonts/qitu/iconfont.woff2 +0 -0
  137. package/dist/assets/fonts/qituyonghu/iconfont.css +39 -3
  138. package/dist/assets/fonts/qituyonghu/iconfont.ttf +0 -0
  139. package/dist/assets/fonts/qituyonghu/iconfont.woff +0 -0
  140. package/dist/assets/fonts/qituyonghu/iconfont.woff2 +0 -0
  141. package/dist/assets/fonts/wzdaili/iconfont.css +3 -3
  142. package/dist/assets/fonts/wzdaili/iconfont.ttf +0 -0
  143. package/dist/assets/fonts/wzdaili/iconfont.woff +0 -0
  144. package/dist/assets/fonts/wzdaili/iconfont.woff2 +0 -0
  145. package/dist/assets/fonts/wzyonghu/iconfont.css +11 -3
  146. package/dist/assets/fonts/wzyonghu/iconfont.ttf +0 -0
  147. package/dist/assets/fonts/wzyonghu/iconfont.woff +0 -0
  148. package/dist/assets/fonts/wzyonghu/iconfont.woff2 +0 -0
  149. package/dist/assets/fonts/yunying/iconfont.css +7 -3
  150. package/dist/assets/fonts/yunying/iconfont.ttf +0 -0
  151. package/dist/assets/fonts/yunying/iconfont.woff +0 -0
  152. package/dist/assets/fonts/yunying/iconfont.woff2 +0 -0
  153. package/dist/iconfont-B9h4iRmM.js +35 -0
  154. package/dist/iconfont-B_mx7ld3.js +35 -0
  155. package/dist/iconfont-CRbFpV7z.js +35 -0
  156. package/dist/iconfont-CXxMq4G2.js +35 -0
  157. package/dist/iconfont-De-ylfev.js +35 -0
  158. package/dist/style.css +1 -1
  159. package/dist/types/components/Button/Button.d.ts +2 -0
  160. package/dist/types/components/DemoLayout/index.d.ts +30 -0
  161. package/dist/types/components/Icon/icon-data.d.ts +5 -11
  162. package/dist/types/components/Icon/icon-types.d.ts +12 -0
  163. package/dist/types/components/index.d.ts +2 -1
  164. package/dist/wz-h5-design.es.js +151 -20
  165. package/dist/wz-h5-design.umd.js +2 -2
  166. package/package.json +1 -1
@@ -8,9 +8,11 @@ export interface ButtonProps {
8
8
  color?: string;
9
9
  textColor?: string;
10
10
  borderColor?: string;
11
+ borderOpacity?: number;
11
12
  width?: string | number;
12
13
  height?: string | number;
13
14
  fontSize?: string | number;
15
+ borderRadius?: string | number;
14
16
  className?: string;
15
17
  style?: React.CSSProperties;
16
18
  children?: React.ReactNode;
@@ -0,0 +1,30 @@
1
+ import React from "react";
2
+ export interface DemoContainerProps {
3
+ children: React.ReactNode;
4
+ style?: React.CSSProperties;
5
+ }
6
+ export declare const DemoContainer: React.FC<DemoContainerProps>;
7
+ export interface DemoSectionProps {
8
+ title: string;
9
+ children: React.ReactNode;
10
+ style?: React.CSSProperties;
11
+ }
12
+ export declare const DemoSection: React.FC<DemoSectionProps>;
13
+ export interface DemoRowProps {
14
+ children: React.ReactNode;
15
+ gap?: number | string;
16
+ noMargin?: boolean;
17
+ style?: React.CSSProperties;
18
+ }
19
+ export declare const DemoRow: React.FC<DemoRowProps>;
20
+ export interface DemoSubTitleProps {
21
+ children: React.ReactNode;
22
+ style?: React.CSSProperties;
23
+ }
24
+ export declare const DemoSubTitle: React.FC<DemoSubTitleProps>;
25
+ export interface DemoIconItemProps {
26
+ icon: React.ReactNode;
27
+ label?: string;
28
+ style?: React.CSSProperties;
29
+ }
30
+ export declare const DemoIconItem: React.FC<DemoIconItemProps>;
@@ -1,22 +1,16 @@
1
1
  /**
2
- * 自动生成的图标数据和类型定义
2
+ * 自动生成的图标数据
3
3
  * 请勿手动修改此文件
4
4
  * 运行 npm run extract-icons 重新生成
5
5
  */
6
6
  export declare const ICON_MAP: {
7
- readonly qitu: readonly ["check", "close", "close-outline", "danxuankuang_sel", "date", "dingdan", "dropdown", "edit", "eyes-close", "eyes-open", "info", "jia", "jian", "jinjianchuyong", "map", "minus-sign", "next2beifen", "no-data", "plus-sign", "radio-nor", "remove", "shebei_nor", "shebei_sel", "shenhezhong1", "shouye_nor", "shouye_sel", "sousuo", "tel", "wode_nor", "wode_sel", "zhandiantubiao"];
8
- readonly qituyonghu: readonly ["check-round", "dangqianweizhi", "dropdown", "huan", "huanche1", "jia", "jinjianchuyong", "radio-nor", "song", "tuijian", "xiangji", "xuanzhong"];
7
+ readonly qitu: readonly ["bianzu", "check", "chekuanguanli", "close", "close-outline", "danxuankuang_sel", "date", "dingdan", "dropdown", "edit", "eyes-close", "eyes-open", "info", "jia", "jian", "jinjianchuyong", "map", "minus-sign", "next2beifen", "no-data", "plus-sign", "radio-nor", "remove", "shebei_nor", "shebei_sel", "shenhezhong1", "shouye_nor", "shouye_sel", "sousuo", "tel", "wode_nor", "wode_sel", "zhandiantubiao"];
8
+ readonly qituyonghu: readonly ["check-round", "chongzhidingdan", "dangqianweizhi", "dingdan", "dropdown", "huan", "huanche1", "info", "jia", "jian", "jinjianchuyong", "no-data", "radio-nor", "song", "tuijian", "xiangji", "xuanzhong", "yichaoshi", "yiguoqi", "yilixian", "yizuchu"];
9
9
  readonly wzdaili: readonly ["bukekan", "chongdiandingdan", "chongzhidingdan", "kaquanguanli", "kekan", "shebeiguanli", "shenhezhong", "shujuzonglan", "xiazaizhongxin", "xufeidingdan", "yunyingshangguanli", "zengzhishouyifenzhang", "zhanghaoguanli", "zhifuquanxianguanli"];
10
- readonly wzyonghu: readonly ["bangdingshoujihao", "chongdianbangzhu", "chongdianjilu", "chongdianwuyou", "daohang", "guanyuwanzhuang", "guzhangshangbao", "ic_notify_close", "jiantou", "jiaoyijilu", "lianxikefu", "shoucangshebei", "shouqi", "sousuo", "wanzhuangshangcheng", "wodechongdianquan", "wodedianka", "woyaodaili", "xialashaixuan", "xialashaixuan1"];
11
- readonly yunying: readonly ["batch-operation", "bianzu", "bofanganniu", "bulletin", "chart", "check", "check-circle", "check-round", "checkbox", "checkbox-checked", "checkbox-indet", "clear", "close", "close-outline", "code", "daochu1", "date", "del", "delete", "device-group", "device_nor", "device_sel", "dianliangmoshi", "dingdan", "download", "drag", "dropdown", "edit", "eyes-close", "eyes-open", "filter", "fujianwenjian", "fujianwenjian-shibai", "fuxuan_disable", "fuxuan_nor", "fuxuan_sel", "gongshuaimoshi", "home_nor", "home_sel", "info", "info-outline", "jia", "jian", "list-down", "list-up", "map", "minus-sign", "next", "no-data", "notice", "order_nor", "order_sel", "piliangcaozuo", "plus", "plus-sign", "question", "question-round", "radio-nor", "radio-sel", "refresh", "remove", "right-arrow", "scan", "share", "sousuo", "tel", "time", "user_nor", "user_sel", "warning", "weixuanzemoshi", "xiangji"];
10
+ readonly wzyonghu: readonly ["bangdingshoujihao", "chongdianbangzhu", "chongdianjilu", "chongdianwuyou", "daohang", "guanyuwanzhuang", "guzhangshangbao", "ic_notify_close", "info-outline", "jiantou", "jiantou-copy", "jiaoyijilu", "lianxikefu", "shoucangshebei", "shouqi", "sousuo", "wanzhuangshangcheng", "wodechongdianquan", "wodedianka", "woyaodaili", "xialashaixuan", "xialashaixuan1"];
11
+ readonly yunying: readonly ["batch-operation", "bianzu", "bofanganniu", "bulletin", "chart", "check", "check-circle", "check-round", "checkbox", "checkbox-checked", "checkbox-indet", "clear", "close", "close-outline", "code", "daochu1", "date", "del", "delete", "device-group", "device_nor", "device_sel", "dianliangmoshi", "dingdan", "download", "drag", "dropdown", "edit", "eyes-close", "eyes-open", "filter", "fujianwenjian", "fujianwenjian-shibai", "fuxuan_disable", "fuxuan_nor", "fuxuan_sel", "gongshuaimoshi", "home_nor", "home_sel", "info", "info-outline", "jia", "jian", "list-down", "list-up", "map", "minus-sign", "next", "no-data", "notice", "order_nor", "order_sel", "piliangcaozuo", "plus", "plus-sign", "question", "question-circle", "question-round", "radio-nor", "radio-sel", "refresh", "remove", "right-arrow", "scan", "share", "sousuo", "tel", "time", "user_nor", "user_sel", "warning", "weixuanzemoshi", "xiangji"];
12
12
  };
13
13
  export type IconType = 'qitu' | 'qituyonghu' | 'wzdaili' | 'wzyonghu' | 'yunying';
14
- export type QituIconName = 'check' | 'close' | 'close-outline' | 'danxuankuang_sel' | 'date' | 'dingdan' | 'dropdown' | 'edit' | 'eyes-close' | 'eyes-open' | 'info' | 'jia' | 'jian' | 'jinjianchuyong' | 'map' | 'minus-sign' | 'next2beifen' | 'no-data' | 'plus-sign' | 'radio-nor' | 'remove' | 'shebei_nor' | 'shebei_sel' | 'shenhezhong1' | 'shouye_nor' | 'shouye_sel' | 'sousuo' | 'tel' | 'wode_nor' | 'wode_sel' | 'zhandiantubiao';
15
- export type QituyonghuIconName = 'check-round' | 'dangqianweizhi' | 'dropdown' | 'huan' | 'huanche1' | 'jia' | 'jinjianchuyong' | 'radio-nor' | 'song' | 'tuijian' | 'xiangji' | 'xuanzhong';
16
- export type WzdailiIconName = 'bukekan' | 'chongdiandingdan' | 'chongzhidingdan' | 'kaquanguanli' | 'kekan' | 'shebeiguanli' | 'shenhezhong' | 'shujuzonglan' | 'xiazaizhongxin' | 'xufeidingdan' | 'yunyingshangguanli' | 'zengzhishouyifenzhang' | 'zhanghaoguanli' | 'zhifuquanxianguanli';
17
- export type WzyonghuIconName = 'bangdingshoujihao' | 'chongdianbangzhu' | 'chongdianjilu' | 'chongdianwuyou' | 'daohang' | 'guanyuwanzhuang' | 'guzhangshangbao' | 'ic_notify_close' | 'jiantou' | 'jiaoyijilu' | 'lianxikefu' | 'shoucangshebei' | 'shouqi' | 'sousuo' | 'wanzhuangshangcheng' | 'wodechongdianquan' | 'wodedianka' | 'woyaodaili' | 'xialashaixuan' | 'xialashaixuan1';
18
- export type YunyingIconName = 'batch-operation' | 'bianzu' | 'bofanganniu' | 'bulletin' | 'chart' | 'check' | 'check-circle' | 'check-round' | 'checkbox' | 'checkbox-checked' | 'checkbox-indet' | 'clear' | 'close' | 'close-outline' | 'code' | 'daochu1' | 'date' | 'del' | 'delete' | 'device-group' | 'device_nor' | 'device_sel' | 'dianliangmoshi' | 'dingdan' | 'download' | 'drag' | 'dropdown' | 'edit' | 'eyes-close' | 'eyes-open' | 'filter' | 'fujianwenjian' | 'fujianwenjian-shibai' | 'fuxuan_disable' | 'fuxuan_nor' | 'fuxuan_sel' | 'gongshuaimoshi' | 'home_nor' | 'home_sel' | 'info' | 'info-outline' | 'jia' | 'jian' | 'list-down' | 'list-up' | 'map' | 'minus-sign' | 'next' | 'no-data' | 'notice' | 'order_nor' | 'order_sel' | 'piliangcaozuo' | 'plus' | 'plus-sign' | 'question' | 'question-round' | 'radio-nor' | 'radio-sel' | 'refresh' | 'remove' | 'right-arrow' | 'scan' | 'share' | 'sousuo' | 'tel' | 'time' | 'user_nor' | 'user_sel' | 'warning' | 'weixuanzemoshi' | 'xiangji';
19
- export type IconName = QituIconName | QituyonghuIconName | WzdailiIconName | WzyonghuIconName | YunyingIconName;
20
14
  /**
21
15
  * 获取指定类型的所有图标名称
22
16
  */
@@ -0,0 +1,12 @@
1
+ /**
2
+ * 自动生成的图标类型定义
3
+ * 请勿手动修改此文件
4
+ * 运行 npm run extract-icons 重新生成
5
+ */
6
+ export type IconType = 'qitu' | 'qituyonghu' | 'wzdaili' | 'wzyonghu' | 'yunying';
7
+ export type QituIconName = 'bianzu' | 'check' | 'chekuanguanli' | 'close' | 'close-outline' | 'danxuankuang_sel' | 'date' | 'dingdan' | 'dropdown' | 'edit' | 'eyes-close' | 'eyes-open' | 'info' | 'jia' | 'jian' | 'jinjianchuyong' | 'map' | 'minus-sign' | 'next2beifen' | 'no-data' | 'plus-sign' | 'radio-nor' | 'remove' | 'shebei_nor' | 'shebei_sel' | 'shenhezhong1' | 'shouye_nor' | 'shouye_sel' | 'sousuo' | 'tel' | 'wode_nor' | 'wode_sel' | 'zhandiantubiao';
8
+ export type QituyonghuIconName = 'check-round' | 'chongzhidingdan' | 'dangqianweizhi' | 'dingdan' | 'dropdown' | 'huan' | 'huanche1' | 'info' | 'jia' | 'jian' | 'jinjianchuyong' | 'no-data' | 'radio-nor' | 'song' | 'tuijian' | 'xiangji' | 'xuanzhong' | 'yichaoshi' | 'yiguoqi' | 'yilixian' | 'yizuchu';
9
+ export type WzdailiIconName = 'bukekan' | 'chongdiandingdan' | 'chongzhidingdan' | 'kaquanguanli' | 'kekan' | 'shebeiguanli' | 'shenhezhong' | 'shujuzonglan' | 'xiazaizhongxin' | 'xufeidingdan' | 'yunyingshangguanli' | 'zengzhishouyifenzhang' | 'zhanghaoguanli' | 'zhifuquanxianguanli';
10
+ export type WzyonghuIconName = 'bangdingshoujihao' | 'chongdianbangzhu' | 'chongdianjilu' | 'chongdianwuyou' | 'daohang' | 'guanyuwanzhuang' | 'guzhangshangbao' | 'ic_notify_close' | 'info-outline' | 'jiantou' | 'jiantou-copy' | 'jiaoyijilu' | 'lianxikefu' | 'shoucangshebei' | 'shouqi' | 'sousuo' | 'wanzhuangshangcheng' | 'wodechongdianquan' | 'wodedianka' | 'woyaodaili' | 'xialashaixuan' | 'xialashaixuan1';
11
+ export type YunyingIconName = 'batch-operation' | 'bianzu' | 'bofanganniu' | 'bulletin' | 'chart' | 'check' | 'check-circle' | 'check-round' | 'checkbox' | 'checkbox-checked' | 'checkbox-indet' | 'clear' | 'close' | 'close-outline' | 'code' | 'daochu1' | 'date' | 'del' | 'delete' | 'device-group' | 'device_nor' | 'device_sel' | 'dianliangmoshi' | 'dingdan' | 'download' | 'drag' | 'dropdown' | 'edit' | 'eyes-close' | 'eyes-open' | 'filter' | 'fujianwenjian' | 'fujianwenjian-shibai' | 'fuxuan_disable' | 'fuxuan_nor' | 'fuxuan_sel' | 'gongshuaimoshi' | 'home_nor' | 'home_sel' | 'info' | 'info-outline' | 'jia' | 'jian' | 'list-down' | 'list-up' | 'map' | 'minus-sign' | 'next' | 'no-data' | 'notice' | 'order_nor' | 'order_sel' | 'piliangcaozuo' | 'plus' | 'plus-sign' | 'question' | 'question-circle' | 'question-round' | 'radio-nor' | 'radio-sel' | 'refresh' | 'remove' | 'right-arrow' | 'scan' | 'share' | 'sousuo' | 'tel' | 'time' | 'user_nor' | 'user_sel' | 'warning' | 'weixuanzemoshi' | 'xiangji';
12
+ export type IconName = QituIconName | QituyonghuIconName | WzdailiIconName | WzyonghuIconName | YunyingIconName;
@@ -31,5 +31,6 @@ import { Tooltip } from "./Tooltip/Tooltip";
31
31
  import { Dialog } from "./Dialog";
32
32
  import { ConfigProvider, useConfig } from "./ConfigProvider";
33
33
  import type { ConfigProviderProps, ThemeType, ThemeVars } from "./ConfigProvider";
34
- export { Button, ButtonGroup, 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, ConfigProvider, useConfig, };
34
+ import { DemoContainer, DemoSection, DemoRow, DemoSubTitle, DemoIconItem } from "./DemoLayout";
35
+ export { Button, ButtonGroup, 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, ConfigProvider, useConfig, DemoContainer, DemoSection, DemoRow, DemoSubTitle, DemoIconItem, };
35
36
  export type { ConfigProviderProps, ThemeType, ThemeVars };
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import React, { forwardRef, useState, useRef, useMemo, useContext, createContext, createElement, useCallback, Children, useEffect, useImperativeHandle, useLayoutEffect } from "react";
2
+ import React, { forwardRef, useState, useRef, useMemo, useEffect, useContext, createContext, createElement, useCallback, Children, useImperativeHandle, useLayoutEffect } from "react";
3
3
  import { createRoot } from "react-dom/client";
4
4
  const Button = forwardRef(({
5
5
  type = "primary",
@@ -9,9 +9,11 @@ const Button = forwardRef(({
9
9
  color = "",
10
10
  textColor = "",
11
11
  borderColor = "",
12
+ borderOpacity = 0.7,
12
13
  width,
13
14
  height,
14
15
  fontSize,
16
+ borderRadius,
15
17
  className = "",
16
18
  style = {},
17
19
  children,
@@ -26,6 +28,9 @@ const Button = forwardRef(({
26
28
  return typeof value === "number" ? `${value}px` : value;
27
29
  };
28
30
  const calcBorderRadius = () => {
31
+ if (borderRadius !== void 0) {
32
+ return formatSize(borderRadius);
33
+ }
29
34
  if (height !== void 0) {
30
35
  const h = typeof height === "number" ? height : parseFloat(height);
31
36
  if (!isNaN(h)) return `${h / 2}px`;
@@ -48,9 +53,13 @@ const Button = forwardRef(({
48
53
  };
49
54
  }
50
55
  if (type === "outline") {
56
+ const getOutlineBorderColor = () => {
57
+ if (borderColor) return borderColor;
58
+ return `rgba(var(--wz-primary-color-rgb, 34, 201, 77), ${borderOpacity})`;
59
+ };
51
60
  return {
52
61
  color: textColor || "var(--wz-primary-color)",
53
- borderColor: borderColor || "var(--wz-primary-color)",
62
+ borderColor: getOutlineBorderColor(),
54
63
  background: "transparent",
55
64
  ...style,
56
65
  ...customStyle
@@ -84,7 +93,7 @@ const Button = forwardRef(({
84
93
  return { ...s, ...customStyle };
85
94
  }
86
95
  return { ...style, ...customStyle };
87
- }, [type, color, textColor, borderColor, width, height, fontSize, style]);
96
+ }, [type, color, textColor, borderColor, width, height, fontSize, borderRadius, style]);
88
97
  const handleClick = (e) => {
89
98
  if (disabled) return;
90
99
  setIsActive(true);
@@ -138,7 +147,7 @@ const ButtonGroup = ({
138
147
  if (value === void 0) return void 0;
139
148
  return typeof value === "number" ? `${value}px` : value;
140
149
  };
141
- const containerStyle = {
150
+ const containerStyle2 = {
142
151
  backgroundColor: bgColor,
143
152
  height: formatSize(height),
144
153
  padding: formatSize(padding),
@@ -150,33 +159,63 @@ const ButtonGroup = ({
150
159
  fixed ? "wz-button-group--fixed" : "",
151
160
  className
152
161
  ].filter(Boolean).join(" ");
153
- return /* @__PURE__ */ jsx("div", { className: classNames2, style: containerStyle, children });
162
+ return /* @__PURE__ */ jsx("div", { className: classNames2, style: containerStyle2, children });
154
163
  };
155
164
  ButtonGroup.displayName = "ButtonGroup";
165
+ const loadedSymbols = /* @__PURE__ */ new Set();
166
+ const loadIconSymbol = (type) => {
167
+ if (loadedSymbols.has(type)) return;
168
+ try {
169
+ switch (type) {
170
+ case "yunying":
171
+ import("./iconfont-B9h4iRmM.js");
172
+ break;
173
+ case "qitu":
174
+ import("./iconfont-CXxMq4G2.js");
175
+ break;
176
+ case "wzyonghu":
177
+ import("./iconfont-CRbFpV7z.js");
178
+ break;
179
+ case "wzdaili":
180
+ import("./iconfont-B_mx7ld3.js");
181
+ break;
182
+ case "qituyonghu":
183
+ import("./iconfont-De-ylfev.js");
184
+ break;
185
+ }
186
+ loadedSymbols.add(type);
187
+ } catch (e) {
188
+ console.error(`Failed to load icon symbol for type: ${type}`, e);
189
+ }
190
+ };
156
191
  const Icon = ({
157
192
  name,
158
193
  size = 24,
159
- color = "currentColor",
194
+ color,
160
195
  className = "",
161
196
  style,
162
197
  onClick,
163
198
  type = "yunying"
164
- // 默认使用yunying图标库
165
199
  }) => {
166
- const iconStyle = {
167
- fontSize: typeof size === "number" ? `${size}px` : size,
168
- color,
200
+ useEffect(() => {
201
+ loadIconSymbol(type);
202
+ }, [type]);
203
+ const iconSize = typeof size === "number" ? `${size}px` : size;
204
+ const svgStyle = {
205
+ width: iconSize,
206
+ height: iconSize,
207
+ fill: color || "currentColor",
169
208
  ...style
170
209
  };
171
- const iconFontClass = `iconfont-${type}`;
172
- const iconPrefix = "icon-";
173
- const iconClass = `${iconPrefix}${name}`;
210
+ const symbolId = `#icon-${name}`;
174
211
  return /* @__PURE__ */ jsx(
175
- "i",
212
+ "svg",
176
213
  {
177
- className: `wz-icon ${iconFontClass} ${iconClass} ${className}`,
178
- style: iconStyle,
179
- onClick
214
+ className: `wz-icon ${className}`,
215
+ style: svgStyle,
216
+ onClick,
217
+ "aria-hidden": "true",
218
+ children: /* @__PURE__ */ jsx("use", { xlinkHref: symbolId })
180
219
  }
181
220
  );
182
221
  };
@@ -1336,8 +1375,8 @@ const Search = forwardRef(
1336
1375
  disabled = false,
1337
1376
  prefix,
1338
1377
  suffix,
1339
- leftIcon = /* @__PURE__ */ jsx(Icon, { name: "search", size: 16 }),
1340
- actionText = "搜索",
1378
+ leftIcon,
1379
+ actionText,
1341
1380
  actionColor,
1342
1381
  showCancel = false,
1343
1382
  cancelText = "返回",
@@ -1419,7 +1458,10 @@ const Search = forwardRef(
1419
1458
  {
1420
1459
  className: `wz-search-input-wrapper ${showClear ? "wz-search-input-wrapper--with-clear" : ""}`,
1421
1460
  children: [
1422
- leftIcon && /* @__PURE__ */ jsx("div", { className: "wz-search-left-icon", children: leftIcon }),
1461
+ leftIcon && /* @__PURE__ */ jsxs("div", { className: "wz-search-left-icon", children: [
1462
+ leftIcon,
1463
+ /* @__PURE__ */ jsx("div", { className: "wz-search-left-icon-divider" })
1464
+ ] }),
1423
1465
  /* @__PURE__ */ jsx(
1424
1466
  "input",
1425
1467
  {
@@ -2762,6 +2804,90 @@ const ConfigProvider = ({
2762
2804
  );
2763
2805
  return /* @__PURE__ */ jsx(ConfigContext.Provider, { value: contextValue, children });
2764
2806
  };
2807
+ const containerStyle = {
2808
+ display: "flex",
2809
+ flexDirection: "column",
2810
+ gap: "20px",
2811
+ padding: "10px",
2812
+ backgroundColor: "#f5f5f5"
2813
+ };
2814
+ const sectionTitleStyle = {
2815
+ fontSize: "16px",
2816
+ color: "#999",
2817
+ marginBottom: "12px"
2818
+ };
2819
+ const cardStyle = {
2820
+ backgroundColor: "#fff",
2821
+ borderRadius: "12px",
2822
+ padding: "20px"
2823
+ };
2824
+ const rowStyle = {
2825
+ display: "flex",
2826
+ gap: "5px",
2827
+ flexWrap: "wrap",
2828
+ alignItems: "center",
2829
+ marginBottom: "12px"
2830
+ };
2831
+ const subTitleStyle = {
2832
+ fontSize: "14px",
2833
+ color: "#333",
2834
+ marginBottom: "12px",
2835
+ fontWeight: 500
2836
+ };
2837
+ const DemoContainer = ({
2838
+ children,
2839
+ style
2840
+ }) => /* @__PURE__ */ jsx("div", { style: { ...containerStyle, ...style }, children });
2841
+ const DemoSection = ({
2842
+ title,
2843
+ children,
2844
+ style
2845
+ }) => /* @__PURE__ */ jsxs("div", { style, children: [
2846
+ /* @__PURE__ */ jsx("div", { style: sectionTitleStyle, children: title }),
2847
+ /* @__PURE__ */ jsx("div", { style: cardStyle, children })
2848
+ ] });
2849
+ const DemoRow = ({
2850
+ children,
2851
+ gap = 5,
2852
+ noMargin = false,
2853
+ style
2854
+ }) => /* @__PURE__ */ jsx(
2855
+ "div",
2856
+ {
2857
+ style: {
2858
+ ...rowStyle,
2859
+ gap,
2860
+ marginBottom: noMargin ? 0 : 12,
2861
+ ...style
2862
+ },
2863
+ children
2864
+ }
2865
+ );
2866
+ const DemoSubTitle = ({
2867
+ children,
2868
+ style
2869
+ }) => /* @__PURE__ */ jsx("div", { style: { ...subTitleStyle, ...style }, children });
2870
+ const DemoIconItem = ({
2871
+ icon,
2872
+ label,
2873
+ style
2874
+ }) => /* @__PURE__ */ jsxs(
2875
+ "div",
2876
+ {
2877
+ style: {
2878
+ display: "flex",
2879
+ flexDirection: "column",
2880
+ alignItems: "center",
2881
+ gap: "8px",
2882
+ minWidth: "60px",
2883
+ ...style
2884
+ },
2885
+ children: [
2886
+ icon,
2887
+ label && /* @__PURE__ */ jsx("span", { style: { fontSize: "12px", color: "#666" }, children: label })
2888
+ ]
2889
+ }
2890
+ );
2765
2891
  export {
2766
2892
  Button,
2767
2893
  ButtonGroup,
@@ -2774,6 +2900,11 @@ export {
2774
2900
  ConfigProvider,
2775
2901
  DatePicker,
2776
2902
  DateRangePicker,
2903
+ DemoContainer,
2904
+ DemoIconItem,
2905
+ DemoRow,
2906
+ DemoSection,
2907
+ DemoSubTitle,
2777
2908
  Dialog,
2778
2909
  Divider,
2779
2910
  DropdownMenu,