ymy-components 0.0.29 → 0.0.30

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/dist/index.cjs.js CHANGED
@@ -131,7 +131,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ir]+=1);const Gu=Yu`
131
131
  @media (min-width: 640px) {
132
132
  margin-right: 0.25rem;
133
133
  }
134
- `;var ks={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},no=C.createContext&&C.createContext(ks),Ju=["attr","size","title"];function Zu(e,t){if(e==null)return{};var r=el(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function el(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _r(){return _r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_r.apply(this,arguments)}function io(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Er(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?io(Object(r),!0).forEach(function(n){tl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):io(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tl(e,t,r){return t=rl(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rl(e){var t=nl(e,"string");return typeof t=="symbol"?t:t+""}function nl(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ps(e){return e&&e.map((t,r)=>C.createElement(t.tag,Er({key:r},t.attr),Ps(t.child)))}function Je(e){return t=>C.createElement(il,_r({attr:Er({},e.attr)},t),Ps(e.child))}function il(e){var t=r=>{var{attr:n,size:i,title:o}=e,s=Zu(e,Ju),a=i||r.size||"1em",u;return r.className&&(u=r.className),e.className&&(u=(u?u+" ":"")+e.className),C.createElement("svg",_r({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:u,style:Er(Er({color:e.color||r.color},r.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&C.createElement("title",null,o),e.children)};return no!==void 0?C.createElement(no.Consumer,null,r=>t(r)):t(ks)}function ol(e){return Je({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function sl(e){return Je({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"22",y1:"2",x2:"11",y2:"13"},child:[]},{tag:"polygon",attr:{points:"22 2 15 22 11 13 2 9 22 2"},child:[]}]})(e)}const al=({iconComponent:e,buttonText:t,buttonType:r="primary",onClick:n})=>{let i;e==="plus"?i=W.jsx(ol,{}):e==="send"&&(i=W.jsx(sl,{}));const o=()=>{n&&n()};return W.jsx(Ku,{onClick:o,children:W.jsxs(Qu,{className:r,children:[W.jsx(Xu,{children:i}),W.jsx(Zo,{textStyles:{fontSize:"0.8rem",minWidth:"3rem"},content:t,animate:!0})]})})},cl=re(Jo.div)`
134
+ `;var ks={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},no=C.createContext&&C.createContext(ks),Ju=["attr","size","title"];function Zu(e,t){if(e==null)return{};var r=el(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function el(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _r(){return _r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_r.apply(this,arguments)}function io(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Er(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?io(Object(r),!0).forEach(function(n){tl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):io(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tl(e,t,r){return t=rl(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rl(e){var t=nl(e,"string");return typeof t=="symbol"?t:t+""}function nl(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ps(e){return e&&e.map((t,r)=>C.createElement(t.tag,Er({key:r},t.attr),Ps(t.child)))}function Je(e){return t=>C.createElement(il,_r({attr:Er({},e.attr)},t),Ps(e.child))}function il(e){var t=r=>{var{attr:n,size:i,title:o}=e,s=Zu(e,Ju),a=i||r.size||"1em",u;return r.className&&(u=r.className),e.className&&(u=(u?u+" ":"")+e.className),C.createElement("svg",_r({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:u,style:Er(Er({color:e.color||r.color},r.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&C.createElement("title",null,o),e.children)};return no!==void 0?C.createElement(no.Consumer,null,r=>t(r)):t(ks)}function ol(e){return Je({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function sl(e){return Je({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"22",y1:"2",x2:"11",y2:"13"},child:[]},{tag:"polygon",attr:{points:"22 2 15 22 11 13 2 9 22 2"},child:[]}]})(e)}const al=({iconComponent:e,buttonText:t,buttonType:r="primary",onClick:n})=>{let i;e==="plus"?i=W.jsx(ol,{}):e==="send"&&(i=W.jsx(sl,{}));const o=()=>{n&&n()};return W.jsx(Ku,{onClick:o,children:W.jsxs(Qu,{className:r,children:[W.jsx(Xu,{children:i}),W.jsx(Zo,{textStyles:{lineHeight:"0.8rem",minWidth:"3rem"},content:t,animate:!0})]})})},cl=re(Jo.div)`
135
135
  width: 2.5rem;
136
136
  height: 2.5rem;
137
137
  border-radius: 50%;
package/dist/index.es.js CHANGED
@@ -4186,7 +4186,7 @@ const Pf = ({
4186
4186
  /* @__PURE__ */ q.jsx(
4187
4187
  Qc,
4188
4188
  {
4189
- textStyles: { fontSize: "0.8rem", minWidth: "3rem" },
4189
+ textStyles: { lineHeight: "0.8rem", minWidth: "3rem" },
4190
4190
  content: t,
4191
4191
  animate: !0
4192
4192
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ymy-components",
3
3
  "private": false,
4
- "version": "0.0.29",
4
+ "version": "0.0.30",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",
7
7
  "module": "dist/index.es.js",