wz-h5-design 1.0.3 → 1.0.5

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 (90) hide show
  1. package/dist/Button/index.js +23 -7
  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/ButtonGroup/index.js +34 -0
  6. package/dist/ButtonGroup/index.umd.cjs +1 -0
  7. package/dist/ButtonGroup/style/index.css +1 -0
  8. package/dist/ButtonGroup/style/index.js +1 -0
  9. package/dist/ButtonGroup/style.css +1 -0
  10. package/dist/Cell/index.js +29 -2
  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/index.js +28 -1
  15. package/dist/CheckList/index.umd.cjs +1 -1
  16. package/dist/CheckList/style.css +1 -1
  17. package/dist/Checkbox/index.js +34 -2
  18. package/dist/Checkbox/index.umd.cjs +1 -1
  19. package/dist/Checkbox/style/index.css +1 -1
  20. package/dist/Checkbox/style.css +1 -1
  21. package/dist/DatePicker/style/index.css +1 -1
  22. package/dist/DatePicker/style.css +1 -1
  23. package/dist/DateRangePicker/index.js +65 -9
  24. package/dist/DateRangePicker/index.umd.cjs +1 -1
  25. package/dist/DateRangePicker/style/index.css +1 -1
  26. package/dist/DateRangePicker/style.css +1 -1
  27. package/dist/Dialog/index.js +23 -7
  28. package/dist/Dialog/index.umd.cjs +1 -1
  29. package/dist/Dialog/style.css +1 -1
  30. package/dist/Divider/index.js +13 -4
  31. package/dist/Divider/index.umd.cjs +1 -1
  32. package/dist/Divider/style/index.css +1 -1
  33. package/dist/Divider/style.css +1 -1
  34. package/dist/GridView/index.js +26 -2
  35. package/dist/GridView/index.umd.cjs +1 -1
  36. package/dist/GridView/style/index.css +1 -1
  37. package/dist/GridView/style.css +1 -1
  38. package/dist/Input/index.js +47 -5
  39. package/dist/Input/index.umd.cjs +1 -1
  40. package/dist/Input/style/index.css +1 -1
  41. package/dist/Input/style.css +1 -1
  42. package/dist/Popup/style/index.css +1 -1
  43. package/dist/Popup/style.css +1 -1
  44. package/dist/Radio/index.js +34 -2
  45. package/dist/Radio/index.umd.cjs +1 -1
  46. package/dist/Radio/style/index.css +1 -1
  47. package/dist/Radio/style.css +1 -1
  48. package/dist/Search/index.js +10 -2
  49. package/dist/Search/index.umd.cjs +1 -1
  50. package/dist/Search/style/index.css +1 -1
  51. package/dist/Search/style.css +1 -1
  52. package/dist/Switch/index.js +10 -3
  53. package/dist/Switch/index.umd.cjs +1 -1
  54. package/dist/Switch/style/index.css +1 -1
  55. package/dist/Switch/style.css +1 -1
  56. package/dist/Tabbar/index.js +6 -3
  57. package/dist/Tabbar/index.umd.cjs +1 -1
  58. package/dist/Tabbar/style/index.css +1 -1
  59. package/dist/Tabbar/style.css +1 -1
  60. package/dist/Tabs/index.js +57 -17
  61. package/dist/Tabs/index.umd.cjs +1 -1
  62. package/dist/Tabs/style/index.css +1 -1
  63. package/dist/Tabs/style.css +1 -1
  64. package/dist/TimePicker/style/index.css +1 -1
  65. package/dist/TimePicker/style.css +1 -1
  66. package/dist/Tip/index.js +28 -5
  67. package/dist/Tip/index.umd.cjs +2 -2
  68. package/dist/Tip/style/index.css +1 -1
  69. package/dist/Tip/style.css +1 -1
  70. package/dist/Tooltip/index.js +59 -14
  71. package/dist/Tooltip/index.umd.cjs +2 -2
  72. package/dist/Tooltip/style/index.css +1 -1
  73. package/dist/Tooltip/style.css +1 -1
  74. package/dist/style.css +1 -1
  75. package/dist/types/components/Button/Button.d.ts +3 -0
  76. package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +20 -0
  77. package/dist/types/components/ButtonGroup/index.d.ts +5 -0
  78. package/dist/types/components/DateRangePicker/DateRangePicker.d.ts +6 -0
  79. package/dist/types/components/Divider/Divider.d.ts +2 -0
  80. package/dist/types/components/GridView/GridView.d.ts +8 -0
  81. package/dist/types/components/Input/Input.d.ts +11 -1
  82. package/dist/types/components/Search/Search.d.ts +1 -0
  83. package/dist/types/components/Tabbar/Tabbar.d.ts +2 -0
  84. package/dist/types/components/Tabs/Tabs.d.ts +4 -1
  85. package/dist/types/components/Tip/Tip.d.ts +21 -2
  86. package/dist/types/components/Tooltip/Tooltip.d.ts +6 -2
  87. package/dist/types/components/index.d.ts +2 -1
  88. package/dist/wz-h5-design.es.js +357 -99
  89. package/dist/wz-h5-design.umd.js +2 -2
  90. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import React, { useState, useRef, useLayoutEffect } from "react";
1
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
+ import React, { useState, useRef, useCallback, useLayoutEffect, useEffect } from "react";
3
3
  function getDefaultExportFromCjs(x) {
4
4
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
5
5
  }
@@ -51,6 +51,33 @@ var classnames = { exports: {} };
51
51
  })(classnames);
52
52
  var classnamesExports = classnames.exports;
53
53
  const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
54
+ const Icon = ({
55
+ name,
56
+ size = 24,
57
+ color = "currentColor",
58
+ className = "",
59
+ style,
60
+ onClick,
61
+ type = "yunying"
62
+ // 默认使用yunying图标库
63
+ }) => {
64
+ const iconStyle = {
65
+ fontSize: typeof size === "number" ? `${size}px` : size,
66
+ color,
67
+ ...style
68
+ };
69
+ const iconFontClass = `iconfont-${type}`;
70
+ const iconPrefix = "icon-";
71
+ const iconClass = `${iconPrefix}${name}`;
72
+ return /* @__PURE__ */ jsx(
73
+ "i",
74
+ {
75
+ className: `wz-icon ${iconFontClass} ${iconClass} ${className}`,
76
+ style: iconStyle,
77
+ onClick
78
+ }
79
+ );
80
+ };
54
81
  const Tooltip = ({
55
82
  content,
56
83
  children,
@@ -62,8 +89,9 @@ const Tooltip = ({
62
89
  visible,
63
90
  onVisibleChange,
64
91
  showMask = false,
65
- action,
66
- closeIcon
92
+ actionText,
93
+ onAction,
94
+ closable = false
67
95
  }) => {
68
96
  const [internalVisible, setInternalVisible] = useState(false);
69
97
  const [computedStyle, setComputedStyle] = useState({});
@@ -78,8 +106,8 @@ const Tooltip = ({
78
106
  }
79
107
  onVisibleChange == null ? void 0 : onVisibleChange(newVisible);
80
108
  };
81
- useLayoutEffect(() => {
82
- if (currentVisible && tooltipRef.current && triggerRef.current) {
109
+ const updatePosition = useCallback(() => {
110
+ if (tooltipRef.current && triggerRef.current) {
83
111
  const bubbleEl = tooltipRef.current;
84
112
  const triggerEl = triggerRef.current;
85
113
  const { width: bubbleWidth, height: bubbleHeight } = bubbleEl.getBoundingClientRect();
@@ -112,7 +140,24 @@ const Tooltip = ({
112
140
  "--wz-tooltip-arrow-left": `${arrowLeft}px`
113
141
  });
114
142
  }
115
- }, [currentVisible]);
143
+ }, []);
144
+ useLayoutEffect(() => {
145
+ if (currentVisible) {
146
+ updatePosition();
147
+ }
148
+ }, [currentVisible, updatePosition]);
149
+ useEffect(() => {
150
+ if (!currentVisible) return;
151
+ const handleScroll = () => {
152
+ updatePosition();
153
+ };
154
+ window.addEventListener("scroll", handleScroll, true);
155
+ window.addEventListener("resize", handleScroll);
156
+ return () => {
157
+ window.removeEventListener("scroll", handleScroll, true);
158
+ window.removeEventListener("resize", handleScroll);
159
+ };
160
+ }, [currentVisible, updatePosition]);
116
161
  const handleWrapperClick = () => {
117
162
  if (trigger === "click") {
118
163
  handleVisibleChange(!currentVisible);
@@ -134,17 +179,17 @@ const Tooltip = ({
134
179
  const renderBubble = () => {
135
180
  if (!currentVisible) return null;
136
181
  const renderAction = () => {
137
- if (!action) return null;
138
- const originalOnClick = action.props.onClick;
139
- const newOnClick = (e) => {
140
- originalOnClick == null ? void 0 : originalOnClick(e);
182
+ if (!actionText) return null;
183
+ const handleActionClick = (e) => {
184
+ e.stopPropagation();
185
+ onAction == null ? void 0 : onAction();
141
186
  handleVisibleChange(false);
142
187
  };
143
- return /* @__PURE__ */ jsx("div", { className: "wz-tooltip-bubble__action-slot", children: React.cloneElement(action, { onClick: newOnClick }) });
188
+ return /* @__PURE__ */ jsx("div", { className: "wz-tooltip-bubble__action-slot", children: /* @__PURE__ */ jsx("span", { className: "wz-tooltip-bubble__action-btn", onClick: handleActionClick, children: actionText }) });
144
189
  };
145
190
  const renderCloseIcon = () => {
146
- if (!closeIcon) return null;
147
- return /* @__PURE__ */ jsx("div", { className: "wz-tooltip-bubble__close-slot", children: React.cloneElement(closeIcon, { onClick: handleClose }) });
191
+ if (!closable) return null;
192
+ return /* @__PURE__ */ jsx("div", { className: "wz-tooltip-bubble__close-slot", children: /* @__PURE__ */ jsx("span", { className: "wz-tooltip-bubble__close-btn", onClick: handleClose, children: /* @__PURE__ */ jsx(Icon, { name: "close", type: "yunying" }) }) });
148
193
  };
149
194
  return /* @__PURE__ */ jsxs(Fragment, { children: [
150
195
  showMask && /* @__PURE__ */ jsx("div", { className: "wz-tooltip-mask", onClick: handleClose }),
@@ -1,6 +1,6 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react/jsx-runtime"),require("react")):"function"==typeof define&&define.amd?define(["react/jsx-runtime","react"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).Tooltip=t(e.jsxRuntime,e.React)}(this,(function(e,t){"use strict";function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n,l={exports:{}};
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react/jsx-runtime"),require("react")):"function"==typeof define&&define.amd?define(["react/jsx-runtime","react"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).Tooltip=t(e.jsxRuntime,e.React)}(this,(function(e,t){"use strict";function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n,i={exports:{}};
2
2
  /*!
3
3
  Copyright (c) 2018 Jed Watson.
4
4
  Licensed under the MIT License (MIT), see
5
5
  http://jedwatson.github.io/classnames
6
- */n=l,function(){var e={}.hasOwnProperty;function t(){for(var o=[],n=0;n<arguments.length;n++){var l=arguments[n];if(l){var i=typeof l;if("string"===i||"number"===i)o.push(l);else if(Array.isArray(l)){if(l.length){var r=t.apply(null,l);r&&o.push(r)}}else if("object"===i){if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]")){o.push(l.toString());continue}for(var s in l)e.call(l,s)&&l[s]&&o.push(s)}}}return o.join(" ")}n.exports?(t.default=t,n.exports=t):window.classNames=t}();const i=o(l.exports);return({content:o,children:n,className:l,style:r,color:s,textColor:c,trigger:a="click",visible:u,onVisibleChange:p,showMask:d=!1,action:f,closeIcon:b})=>{const[h,m]=t.useState(!1),[g,x]=t.useState({}),[w,y]=t.useState("bottom"),j=t.useRef(null),v=t.useRef(null),_=void 0!==u,z=_?u:h,k=e=>{_||m(e),null==p||p(e)};t.useLayoutEffect((()=>{if(z&&j.current&&v.current){const e=j.current,t=v.current,{width:o,height:n}=e.getBoundingClientRect(),{top:l,left:i,width:r,height:s}=t.getBoundingClientRect(),{innerWidth:c,innerHeight:a}=window,u=8;let p,d=i+r/2-o/2,f="bottom";d<u&&(d=u),d+o>c-u&&(d=c-o-u),p=l+s+u,p+n>a-u&&(f="top",p=l-n-u),p<u&&(f="bottom",p=l+s+u);const b=i+r/2-d;y(f),x({top:`${p}px`,left:`${d}px`,"--wz-tooltip-arrow-left":`${b}px`})}}),[z]);const C=e=>{e.stopPropagation(),k(!1)},N=i("wz-tooltip-bubble",`wz-tooltip-bubble--placement-${w}`,l),S={...r,...g,opacity:g.top?1:0,transition:"opacity 150ms ease-in","--wz-tooltip-bubble-bg":s,color:c},R={onClick:()=>{"click"===a&&k(!z)},ref:v};return e.jsxs(e.Fragment,{children:[t.cloneElement(n,R),(()=>{if(!z)return null;return e.jsxs(e.Fragment,{children:[d&&e.jsx("div",{className:"wz-tooltip-mask",onClick:C}),e.jsxs("div",{className:N,style:S,ref:j,children:[e.jsx("div",{className:"wz-tooltip-bubble__arrow"}),e.jsxs("div",{className:"wz-tooltip-bubble__inner",children:[e.jsx("div",{className:"wz-tooltip-bubble__body",children:o}),(()=>{if(!f)return null;const o=f.props.onClick;return e.jsx("div",{className:"wz-tooltip-bubble__action-slot",children:t.cloneElement(f,{onClick:e=>{null==o||o(e),k(!1)}})})})(),b?e.jsx("div",{className:"wz-tooltip-bubble__close-slot",children:t.cloneElement(b,{onClick:C})}):null]})]})]})})()]})}}));
6
+ */n=i,function(){var e={}.hasOwnProperty;function t(){for(var o=[],n=0;n<arguments.length;n++){var i=arguments[n];if(i){var l=typeof i;if("string"===l||"number"===l)o.push(i);else if(Array.isArray(i)){if(i.length){var r=t.apply(null,i);r&&o.push(r)}}else if("object"===l){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){o.push(i.toString());continue}for(var s in i)e.call(i,s)&&i[s]&&o.push(s)}}}return o.join(" ")}n.exports?(t.default=t,n.exports=t):window.classNames=t}();const l=o(i.exports),r=({name:t,size:o=24,color:n="currentColor",className:i="",style:l,onClick:r,type:s="yunying"})=>{const c={fontSize:"number"==typeof o?`${o}px`:o,color:n,...l},a=`iconfont-${s}`,u=`icon-${t}`;return e.jsx("i",{className:`wz-icon ${a} ${u} ${i}`,style:c,onClick:r})};return({content:o,children:n,className:i,style:s,color:c,textColor:a,trigger:u="click",visible:p,onVisibleChange:d,showMask:b=!1,actionText:f,onAction:m,closable:w=!1})=>{const[h,x]=t.useState(!1),[g,y]=t.useState({}),[v,j]=t.useState("bottom"),z=t.useRef(null),_=t.useRef(null),N=void 0!==p,C=N?p:h,k=e=>{N||x(e),null==d||d(e)},$=t.useCallback((()=>{if(z.current&&_.current){const e=z.current,t=_.current,{width:o,height:n}=e.getBoundingClientRect(),{top:i,left:l,width:r,height:s}=t.getBoundingClientRect(),{innerWidth:c,innerHeight:a}=window,u=8;let p,d=l+r/2-o/2,b="bottom";d<u&&(d=u),d+o>c-u&&(d=c-o-u),p=i+s+u,p+n>a-u&&(b="top",p=i-n-u),p<u&&(b="bottom",p=i+s+u);const f=l+r/2-d;j(b),y({top:`${p}px`,left:`${d}px`,"--wz-tooltip-arrow-left":`${f}px`})}}),[]);t.useLayoutEffect((()=>{C&&$()}),[C,$]),t.useEffect((()=>{if(!C)return;const e=()=>{$()};return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}}),[C,$]);const S=e=>{e.stopPropagation(),k(!1)},E=l("wz-tooltip-bubble",`wz-tooltip-bubble--placement-${v}`,i),R={...s,...g,opacity:g.top?1:0,transition:"opacity 150ms ease-in","--wz-tooltip-bubble-bg":c,color:a},L={onClick:()=>{"click"===u&&k(!C)},ref:_};return e.jsxs(e.Fragment,{children:[t.cloneElement(n,L),(()=>{if(!C)return null;return e.jsxs(e.Fragment,{children:[b&&e.jsx("div",{className:"wz-tooltip-mask",onClick:S}),e.jsxs("div",{className:E,style:R,ref:z,children:[e.jsx("div",{className:"wz-tooltip-bubble__arrow"}),e.jsxs("div",{className:"wz-tooltip-bubble__inner",children:[e.jsx("div",{className:"wz-tooltip-bubble__body",children:o}),(()=>{if(!f)return null;return e.jsx("div",{className:"wz-tooltip-bubble__action-slot",children:e.jsx("span",{className:"wz-tooltip-bubble__action-btn",onClick:e=>{e.stopPropagation(),null==m||m(),k(!1)},children:f})})})(),w?e.jsx("div",{className:"wz-tooltip-bubble__close-slot",children:e.jsx("span",{className:"wz-tooltip-bubble__close-btn",onClick:S,children:e.jsx(r,{name:"close",type:"yunying"})})}):null]})]})]})})()]})}}));
@@ -1 +1 @@
1
- .wz-tooltip-mask{z-index:1000;background-color:#0006;position:fixed;top:0;bottom:0;left:0;right:0}.wz-tooltip-bubble{z-index:1001;background:var(--wz-tooltip-bubble-bg,#fff);border-radius:5px;flex-direction:column;justify-content:center;align-items:center;height:30px;font-size:14px;font-weight:400;display:flex;position:fixed;box-shadow:0 0 10px #0000001a}.wz-tooltip-bubble__inner{align-items:center;padding:12px 16px;display:flex}.wz-tooltip-bubble__action-slot,.wz-tooltip-bubble__close-slot{align-items:center;display:flex}.wz-tooltip-bubble__action-slot{order:2;margin-left:auto;padding-left:12px}.wz-tooltip-bubble__close-slot{order:3;padding-left:8px}.wz-tooltip-bubble--placement-top .wz-tooltip-bubble__arrow{border-top-color:var(--wz-tooltip-bubble-bg,#fff);top:100%}.wz-tooltip-bubble--placement-bottom .wz-tooltip-bubble__arrow{border-bottom-color:var(--wz-tooltip-bubble-bg,#fff);bottom:100%}.wz-tooltip-bubble__arrow{left:var(--wz-tooltip-arrow-left,50%);border:5px solid #0000;width:0;height:0;position:absolute;transform:translate(-50%)}.wz-tooltip-bubble__close-icon{color:inherit;opacity:.7;order:3;width:16px;height:16px;margin-left:12px;font-size:16px;position:relative;top:auto;right:auto}.wz-tooltip-bubble__close-icon:hover{opacity:1}.wz-tooltip-bubble__content{flex-direction:column;width:100%;padding:16px;display:flex}.wz-tooltip-bubble__title{color:var(--wz-tooltip-bubble-text-color,#333);margin-bottom:8px;font-size:16px;font-weight:500}.wz-tooltip-bubble__body{color:inherit;flex:1;order:1;font-size:14px;line-height:1.5}
1
+ .wz-tooltip-mask{z-index:1000;background-color:#0006;position:fixed;top:0;bottom:0;left:0;right:0}.wz-tooltip-bubble{z-index:1001;background:var(--wz-tooltip-bubble-bg,#fff);border-radius:5px;flex-direction:column;justify-content:center;align-items:center;height:30px;font-size:14px;font-weight:400;display:flex;position:fixed;box-shadow:0 0 10px #0000001a}.wz-tooltip-bubble__inner{align-items:center;padding:12px 16px;display:flex}.wz-tooltip-bubble__action-slot,.wz-tooltip-bubble__close-slot{align-items:center;display:flex}.wz-tooltip-bubble__action-slot{order:2;margin-left:auto;padding-left:12px}.wz-tooltip-bubble__action-btn{color:#fff;cursor:pointer;white-space:nowrap;background-color:#22c94d;border-radius:13px;justify-content:center;align-items:center;min-width:67px;height:22px;padding:0 12px;font-size:13px;font-weight:600;line-height:22px;display:inline-flex}.wz-tooltip-bubble__action-btn:active{opacity:.8}.wz-tooltip-bubble__close-slot{order:3;padding-left:8px}.wz-tooltip-bubble__close-btn{color:#ccc;cursor:pointer;justify-content:center;align-items:center;display:inline-flex}.wz-tooltip-bubble__close-btn:active{opacity:.7}.wz-tooltip-bubble--placement-top .wz-tooltip-bubble__arrow{border-top-color:var(--wz-tooltip-bubble-bg,#fff);top:100%}.wz-tooltip-bubble--placement-bottom .wz-tooltip-bubble__arrow{border-bottom-color:var(--wz-tooltip-bubble-bg,#fff);bottom:100%}.wz-tooltip-bubble__arrow{left:var(--wz-tooltip-arrow-left,50%);border:5px solid #0000;width:0;height:0;position:absolute;transform:translate(-50%)}.wz-tooltip-bubble__body{color:inherit;flex:1;order:1;font-size:14px;line-height:1.5}
@@ -1 +1 @@
1
- .wz-tooltip-mask{z-index:1000;background-color:#0006;position:fixed;top:0;bottom:0;left:0;right:0}.wz-tooltip-bubble{z-index:1001;background:var(--wz-tooltip-bubble-bg,#fff);border-radius:5px;flex-direction:column;justify-content:center;align-items:center;height:30px;font-size:14px;font-weight:400;display:flex;position:fixed;box-shadow:0 0 10px #0000001a}.wz-tooltip-bubble__inner{align-items:center;padding:12px 16px;display:flex}.wz-tooltip-bubble__action-slot,.wz-tooltip-bubble__close-slot{align-items:center;display:flex}.wz-tooltip-bubble__action-slot{order:2;margin-left:auto;padding-left:12px}.wz-tooltip-bubble__close-slot{order:3;padding-left:8px}.wz-tooltip-bubble--placement-top .wz-tooltip-bubble__arrow{border-top-color:var(--wz-tooltip-bubble-bg,#fff);top:100%}.wz-tooltip-bubble--placement-bottom .wz-tooltip-bubble__arrow{border-bottom-color:var(--wz-tooltip-bubble-bg,#fff);bottom:100%}.wz-tooltip-bubble__arrow{left:var(--wz-tooltip-arrow-left,50%);border:5px solid #0000;width:0;height:0;position:absolute;transform:translate(-50%)}.wz-tooltip-bubble__close-icon{color:inherit;opacity:.7;order:3;width:16px;height:16px;margin-left:12px;font-size:16px;position:relative;top:auto;right:auto}.wz-tooltip-bubble__close-icon:hover{opacity:1}.wz-tooltip-bubble__content{flex-direction:column;width:100%;padding:16px;display:flex}.wz-tooltip-bubble__title{color:var(--wz-tooltip-bubble-text-color,#333);margin-bottom:8px;font-size:16px;font-weight:500}.wz-tooltip-bubble__body{color:inherit;flex:1;order:1;font-size:14px;line-height:1.5}
1
+ .wz-icon{justify-content:center;align-items:center;transition:color .2s ease-in-out;display:inline-flex}.wz-icon-home:before{content:""}.wz-icon-search:before{content:""}.wz-icon-person:before{content:""}.wz-icon-settings:before{content:""}.wz-icon-notifications:before{content:""}.wz-icon-message:before{content:""}.wz-icon-favorite:before{content:""}.wz-icon-star:before{content:""}.wz-icon-close:before{content:""}.wz-icon-check:before{content:""}.wz-icon-arrow-back:before{content:""}.wz-icon-arrow-forward:before{content:""}.wz-icon-menu:before{content:""}.wz-icon-more:before{content:""}.wz-icon-add:before{content:""}.wz-icon-edit:before{content:""}.wz-icon-delete:before{content:""}.wz-icon-share:before{content:""}.wz-icon-download:before{content:""}.wz-icon-upload:before{content:""}.wz-icon-refresh:before{content:""}.wz-icon-help:before{content:""}.wz-icon-info:before{content:""}.wz-icon-warning:before{content:""}.wz-icon-error:before{content:""}.wz-icon-success:before{content:""}.wz-tooltip-mask{z-index:1000;background-color:#0006;position:fixed;top:0;bottom:0;left:0;right:0}.wz-tooltip-bubble{z-index:1001;background:var(--wz-tooltip-bubble-bg,#fff);border-radius:5px;flex-direction:column;justify-content:center;align-items:center;height:30px;font-size:14px;font-weight:400;display:flex;position:fixed;box-shadow:0 0 10px #0000001a}.wz-tooltip-bubble__inner{align-items:center;padding:12px 16px;display:flex}.wz-tooltip-bubble__action-slot,.wz-tooltip-bubble__close-slot{align-items:center;display:flex}.wz-tooltip-bubble__action-slot{order:2;margin-left:auto;padding-left:12px}.wz-tooltip-bubble__action-btn{color:#fff;cursor:pointer;white-space:nowrap;background-color:#22c94d;border-radius:13px;justify-content:center;align-items:center;min-width:67px;height:22px;padding:0 12px;font-size:13px;font-weight:600;line-height:22px;display:inline-flex}.wz-tooltip-bubble__action-btn:active{opacity:.8}.wz-tooltip-bubble__close-slot{order:3;padding-left:8px}.wz-tooltip-bubble__close-btn{color:#ccc;cursor:pointer;justify-content:center;align-items:center;display:inline-flex}.wz-tooltip-bubble__close-btn:active{opacity:.7}.wz-tooltip-bubble--placement-top .wz-tooltip-bubble__arrow{border-top-color:var(--wz-tooltip-bubble-bg,#fff);top:100%}.wz-tooltip-bubble--placement-bottom .wz-tooltip-bubble__arrow{border-bottom-color:var(--wz-tooltip-bubble-bg,#fff);bottom:100%}.wz-tooltip-bubble__arrow{left:var(--wz-tooltip-arrow-left,50%);border:5px solid #0000;width:0;height:0;position:absolute;transform:translate(-50%)}.wz-tooltip-bubble__body{color:inherit;flex:1;order:1;font-size:14px;line-height:1.5}