@marketrix.ai/widget 4.0.133 → 4.0.134

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.
@@ -12,8 +12,6 @@
12
12
  * cascade rather than being pinned to a default, and the caller's `style` spreads LAST so it wins
13
13
  * over every resolved token. `inheritColor` overrides `variant` and resolves to `TEXT_TONE.inherit`,
14
14
  * letting text inside an already-coloured container (button, badge) take that colour.
15
- *
16
- * `className` is an escape hatch for `blocks/` only — product code styles through the props above.
17
15
  */
18
16
  import type { ElementType, Ref } from 'react';
19
17
  import { type TextLeading } from '../../design-system/component-tokens';
@@ -32,8 +30,7 @@ interface TextProps extends React.HTMLAttributes<HTMLElement> {
32
30
  weight?: TextWeight;
33
31
  truncate?: boolean;
34
32
  align?: TextAlign;
35
- className?: string;
36
33
  ref?: Ref<HTMLElement>;
37
34
  }
38
- export declare function Text({ as: Component, block, inheritColor, italic, leading, variant, size, weight, truncate, align, className, ref, style, ...props }: TextProps): import("react").JSX.Element;
35
+ export declare function Text({ as: Component, block, inheritColor, italic, leading, variant, size, weight, truncate, align, ref, style, ...props }: TextProps): import("react").JSX.Element;
39
36
  export {};
package/dist/widget.mjs CHANGED
@@ -11,8 +11,8 @@ return b(uc,{...d,ref:u,className:ac("mtx-button",e),"data-disabled":t?"true":"f
11
11
  return b(n,{...p,ref:t,className:r,style:{...hc[c],...fc[u],...Ir(l),...ic(a),...i&&gc[i],...o}})}),bc=o(function(e,t){const{direction:n,hidden:r,style:o,...i}=e;/* @__PURE__ */
12
12
  return b(yc,{...i,ref:t,hidden:r,style:{display:!0===r?"none":"flex",..."column"===n&&{flexDirection:"column"},...o}})}),vc=o(function(e,t){/* @__PURE__ */
13
13
  return b(bc,{...e,ref:t,direction:"column"})}),wc=(e,t=2)=>({d:e,stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"}),xc={checkCircle:{viewBox:"0 0 512 512",paths:[{d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"}]},circle:{viewBox:"0 0 512 512",paths:[{d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"}]},exclamationCircle:{viewBox:"0 0 512 512",paths:[{d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"}]},arrowUp:{viewBox:"0 0 448 512",paths:[{d:"M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"}]},arrowDown:{viewBox:"0 0 448 512",paths:[{d:"M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z"}]},chatBubble:{viewBox:"0 0 512 512",paths:[{d:"M87.48 380c1.2-4.38-1.43-10.47-3.94-14.86a42.63 42.63 0 0 0-2.54-3.8 199.81 199.81 0 0 1-33-110C47.64 139.09 140.72 48 255.82 48 356.2 48 440 117.54 459.57 209.85a199 199 0 0 1 4.43 41.64c0 112.41-89.49 204.93-204.59 204.93-18.31 0-43-4.6-56.47-8.37s-26.92-8.77-30.39-10.11a31.14 31.14 0 0 0-11.13-2.07 30.7 30.7 0 0 0-12.08 2.43L81.5 462.78a15.92 15.92 0 0 1-4.66 1.22 9.61 9.61 0 0 1-9.58-9.74 15.85 15.85 0 0 1 .6-3.29z",fill:"none",stroke:"currentColor",strokeWidth:32,strokeLinecap:"round"},{d:"M160 256 m-32 0 a32 32 0 1 1 64 0 a32 32 0 1 1 -64 0"},{d:"M256 256 m-32 0 a32 32 0 1 1 64 0 a32 32 0 1 1 -64 0"},{d:"M352 256 m-32 0 a32 32 0 1 1 64 0 a32 32 0 1 1 -64 0"}]},stop:{viewBox:"0 0 512 512",paths:[{d:"M392 432H120a40 40 0 0 1-40-40V120a40 40 0 0 1 40-40h272a40 40 0 0 1 40 40v272a40 40 0 0 1-40 40z"}]},mousePointerClick:{viewBox:"0 0 24 24",paths:[wc("M14 4.1 12 6"),wc("m5.1 8-2.9-.8"),wc("m6 12-1.9 2"),wc("M7.2 2.2 8 5.1"),wc("M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z")]},ticktick:{viewBox:"0 0 24 24",paths:[{d:"M12 0C5.383 0 0 5.383 0 12s5.383 12 12 12 12-5.383 12-12h-2.7c0 5.128-4.172 9.3-9.3 9.3-5.128 0-9.3-4.172-9.3-9.3 0-5.128 4.172-9.3 9.3-9.3V0Zm7.4 2.583-7.505 9.371L8.388 9.08l-2.002 2.436 4.741 3.888a1.573 1.573 0 0 0 2.231-.233l8.504-10.617L19.4 2.583Z"}]},home:{viewBox:"0 0 24 24",paths:[wc("M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6")]},chat:{viewBox:"0 0 24 24",paths:[wc("M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z")]},send:{viewBox:"0 0 24 24",paths:[wc("M5 12h14m-7-7l7 7-7 7")]},closeSmall:{viewBox:"0 0 12 12",paths:[wc("M9 3L3 9M3 3l6 6",1.5)]},close:{viewBox:"0 0 20 20",paths:[{d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",fillRule:"evenodd",clipRule:"evenodd"}]},chevronDown:{viewBox:"0 0 24 24",paths:[wc("M19 9l-7 7-7-7",2.5)]},screenShare:{viewBox:"0 0 24 24",paths:[wc("M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z")]},alertCircle:{viewBox:"0 0 24 24",paths:[wc("M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z")]}};function Sc({name:e,size:t=16,className:n,ref:r,...o}){const i=xc[e];return i?/* @__PURE__ */b("svg",{...o,ref:r,"aria-hidden":"true",className:ac("mtx-icon",n),fill:"none",height:t,viewBox:i.viewBox,width:t,xmlns:"http://www.w3.org/2000/svg",children:i.paths.map((e,t)=>/* @__PURE__ */b("path",{clipRule:e.clipRule,d:e.d,fill:e.fill??(e.stroke?"none":"currentColor"),fillRule:e.fillRule,stroke:e.stroke,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin,strokeMiterlimit:e.strokeMiterlimit,strokeWidth:e.strokeWidth},t))}):null}function kc({variant:e="ghost",size:t="sm",tone:n,label:r,disabled:o,children:i,style:s,ref:a,...c}){/* @__PURE__ */
14
- return b("button",{...c,ref:a,type:"button",disabled:o,"aria-label":r,className:"mtx-icon-button","data-disabled":o?"true":"false","data-size":t,"data-variant":e,style:n?{color:xr[n],...s}:s,children:i})}var Cc={xxs:"10px",xs:"0.75rem",sm:"0.875rem",lg:"1.125rem"},Ec={normal:400,medium:500,semibold:600},Ic={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"};function Mc({as:e="span",block:t=!1,inheritColor:n=!1,italic:r=!1,leading:o,variant:i="default",size:s,weight:a,truncate:c,align:l,className:u,ref:d,style:p,...h}){/* @__PURE__ */
15
- return b(e,{...h,ref:d,className:u,style:{color:xr[n?"inherit":i],...s&&{fontSize:Cc[s]},...a&&{fontWeight:Ec[a]},...l&&{textAlign:l},...o&&{lineHeight:Sr[o]},...t&&{display:"block"},...r&&{fontStyle:"italic"},...c&&Ic,...p}})}var Tc=()=>{const{toasts:e}=Ja();return e.map(e=>{const t=Er["error"===e.type||"info"===e.type?e.type:"neutral"];/* @__PURE__ */
14
+ return b("button",{...c,ref:a,type:"button",disabled:o,"aria-label":r,className:"mtx-icon-button","data-disabled":o?"true":"false","data-size":t,"data-variant":e,style:n?{color:xr[n],...s}:s,children:i})}var Cc={xxs:"10px",xs:"0.75rem",sm:"0.875rem",lg:"1.125rem"},Ec={normal:400,medium:500,semibold:600},Ic={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"};function Mc({as:e="span",block:t=!1,inheritColor:n=!1,italic:r=!1,leading:o,variant:i="default",size:s,weight:a,truncate:c,align:l,ref:u,style:d,...p}){/* @__PURE__ */
15
+ return b(e,{...p,ref:u,style:{color:xr[n?"inherit":i],...s&&{fontSize:Cc[s]},...a&&{fontWeight:Ec[a]},...l&&{textAlign:l},...o&&{lineHeight:Sr[o]},...t&&{display:"block"},...r&&{fontStyle:"italic"},...c&&Ic,...d}})}var Tc=()=>{const{toasts:e}=Ja();return e.map(e=>{const t=Er["error"===e.type||"info"===e.type?e.type:"neutral"];/* @__PURE__ */
16
16
  return v(zs,{toast:e,className:"mtx-toast",render:/* @__PURE__ */b(bc,{align:"center",gap:"md",rounded:"pill",paddingPreset:"toast",elevation:"panel",style:{backgroundColor:t.background,border:t.border}}),children:[
17
17
  /* @__PURE__ */b(lc,{src:Za,alt:"",size:28,rounded:"pill"}),
18
18
  /* @__PURE__ */v(vc,{grow:!0,minWidth:"0",children:[/* @__PURE__ */b(Ys,{render:/* @__PURE__ */b(Mc,{as:"span",block:!0,inheritColor:!0,truncate:!0,weight:"medium",style:{fontSize:"13px",color:t.titleColor,...e.actionProps&&{whiteSpace:"normal"}}})}),null!=e.description&&/* @__PURE__ */b(Vs,{render:/* @__PURE__ */b(Mc,{as:"span",block:!0,inheritColor:!0,truncate:!0,style:{fontSize:"12px",color:t.bodyColor,opacity:.8}})})]}),e.actionProps&&/* @__PURE__ */b(ea,{render:/* @__PURE__ */b(pc,{variant:"ghost",shape:"pill",size:"sm",style:{color:t.titleColor,backgroundColor:t.actionBackground,border:t.border}})}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marketrix.ai/widget",
3
- "version": "4.0.133",
3
+ "version": "4.0.134",
4
4
  "type": "module",
5
5
  "packageManager": "bun@1.4.2",
6
6
  "sideEffects": false,