@top-message/ui-lib 2.23.16 → 2.23.17

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.js CHANGED
@@ -66188,24 +66188,26 @@ const hdt = "_bubble_lxov0_1", bdt = "_content_lxov0_10", ydt = "_header_lxov0_1
66188
66188
  style: o,
66189
66189
  type: i,
66190
66190
  title: s,
66191
- titlePlacement: l
66192
- }, c) => {
66193
- const [f, v] = it(!1);
66191
+ titlePlacement: l,
66192
+ ignoreStopPropagation: c
66193
+ }, f) => {
66194
+ const [v, d] = it(!1);
66194
66195
  return /* @__PURE__ */ h(
66195
66196
  v9,
66196
66197
  {
66197
66198
  title: s,
66198
66199
  placement: l,
66199
- open: f,
66200
- onOpenChange: (d) => v(d),
66200
+ open: v,
66201
+ onOpenChange: (C) => d(C),
66201
66202
  children: /* @__PURE__ */ h(
66202
66203
  Y0,
66203
66204
  {
66204
- ref: c,
66205
+ ref: f,
66205
66206
  className: `${hvt.wrapper} ${t}`,
66206
- onClick: (d) => {
66207
- v(!1), e(d);
66207
+ onClick: (C) => {
66208
+ d(!1), e(C);
66208
66209
  },
66210
+ ignoreStopPropagation: c,
66209
66211
  disabled: n,
66210
66212
  type: i,
66211
66213
  style: {
@@ -510,7 +510,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
510
510
  ${A8[e]}
511
511
  ${A8["custom-"+t]}
512
512
  ${l}
513
- `,style:a,bordered:c,closable:i,ref:z,onBlur:d,onFocus:u,onMouseEnter:o,onMouseLeave:s,onClick:h,onClose:v,icon:n?m.jsx(j0,{name:n,className:A8.icon,size:12}):null,children:m.jsx("span",{className:"text-truncate",children:r})})),V8=({title:e,style:t,className:l,children:a,placement:c,open:r,onOpenChange:n,arrow:i=!0,zIndex:o})=>m.jsx(M3,{className:l,style:t,title:e,placement:c,open:r,onOpenChange:n,arrow:i,zIndex:o,children:a}),y02={},{Text:L02}=k8,H02=({className:e="",style:t={},copyable:l,...a})=>m.jsx(L02,{className:`${y02.wrapper} ${e}`,style:t,copyable:l,...a}),My={message:"_message_1343f_1",danger:"_danger_1343f_8",warning:"_warning_1343f_12"},S02=L.forwardRef(({placeholder:e,onChange:t=()=>{},disabled:l=!1,value:a="",name:c="",className:r="",size:n="medium",type:i="text",style:o,status:s,onBlur:d,id:u,message:h,autoFocus:v=!1,autoComplete:z,label:g,infoIconText:p,suffix:C,prefix:M,maxLength:b,showCharCounter:k=!1},w)=>m.jsxs("div",{className:r,style:o,children:[g&&m.jsx(F5,{labelContent:g,infoIconText:p}),m.jsx(U7,{placeholder:e,value:a,name:c,onChange:t,size:n,disabled:l,id:u,type:i,onBlur:d,status:s,autoFocus:v,ref:w,autoComplete:z,suffix:C,prefix:M,maxLength:b,showCharCounter:k}),h&&m.jsx("span",{className:`${My.message} ${s?My[s]:""}`,children:h})]})),P02={wrapper:"_wrapper_fts9x_1",title:"_title_fts9x_8"},y3=L.forwardRef(({onClick:e=()=>{},className:t="",disabled:l=!1,iconName:a,size:c,style:r,type:n,title:i,titlePlacement:o},s)=>{const[d,u]=L.useState(!1);return m.jsx(V8,{title:i,placement:o,open:d,onOpenChange:h=>u(h),children:m.jsx(f5,{ref:s,className:`${P02.wrapper} ${t}`,onClick:h=>{u(!1),e(h)},disabled:l,type:n,style:{...r,padding:c==="large"?"calc(var(--scale-1half) - 1px)":c==="medium"?"var(--scale-1)":c==="small"?"calc(var(--scale-1) - 1px)":"var(--scale-half)"},size:c,children:m.jsx(j0,{name:a,size:c==="xsmall"?14:c==="small"?16:c==="medium"?20:24})})})}),by={container:"_container_hchcm_1",wrapper:"_wrapper_hchcm_8"},j02={success:m.jsx(j0,{name:"checkmark-circle-filled",size:16,style:{color:"var(--green-500)",flexShrink:0}}),warning:m.jsx(j0,{name:"danger-filled",size:16,style:{color:"var(--yellow-500)",flexShrink:0}}),info:m.jsx(j0,{name:"info-filled",size:16,style:{color:"var(--skyBlue-500)",flexShrink:0}}),danger:m.jsx(j0,{name:"dismiss-circle-filled",size:16,style:{color:"var(--rose-500)",flexShrink:0}})},E02=L.forwardRef(({className:e="",style:t,children:l,type:a,onClose:c,duration:r},n)=>{const[i,o]=db.useMessage(),s=()=>{i.open({content:m.jsxs("div",{className:`${by.wrapper} ${e}`,style:t,children:[j02[a],l]}),duration:r,className:by.container,onClose:c})};return L.useImperativeHandle(n,()=>({openMessage:s})),m.jsx(m.Fragment,{children:o})}),m5={wrapper:"_wrapper_199fv_1",header:"_header_199fv_14",titleWrapper:"_titleWrapper_199fv_21",title:"_title_199fv_21",body:"_body_199fv_34",extra:"_extra_199fv_39",small:"_small_199fv_43",medium:"_medium_199fv_48",large:"_large_199fv_53"},wy=({withBreadcrumbs:e=!1,breadcrumbsItems:t=[],withEmptyHeader:l=!1,title:a,extraComp:c,children:r,className:n="",style:i,headerStyles:o,bodyStyles:s,size:d="medium",titleIcon:u,iconColor:h,titleExtraComp:v})=>m.jsxs("div",{className:`
513
+ `,style:a,bordered:c,closable:i,ref:z,onBlur:d,onFocus:u,onMouseEnter:o,onMouseLeave:s,onClick:h,onClose:v,icon:n?m.jsx(j0,{name:n,className:A8.icon,size:12}):null,children:m.jsx("span",{className:"text-truncate",children:r})})),V8=({title:e,style:t,className:l,children:a,placement:c,open:r,onOpenChange:n,arrow:i=!0,zIndex:o})=>m.jsx(M3,{className:l,style:t,title:e,placement:c,open:r,onOpenChange:n,arrow:i,zIndex:o,children:a}),y02={},{Text:L02}=k8,H02=({className:e="",style:t={},copyable:l,...a})=>m.jsx(L02,{className:`${y02.wrapper} ${e}`,style:t,copyable:l,...a}),My={message:"_message_1343f_1",danger:"_danger_1343f_8",warning:"_warning_1343f_12"},S02=L.forwardRef(({placeholder:e,onChange:t=()=>{},disabled:l=!1,value:a="",name:c="",className:r="",size:n="medium",type:i="text",style:o,status:s,onBlur:d,id:u,message:h,autoFocus:v=!1,autoComplete:z,label:g,infoIconText:p,suffix:C,prefix:M,maxLength:b,showCharCounter:k=!1},w)=>m.jsxs("div",{className:r,style:o,children:[g&&m.jsx(F5,{labelContent:g,infoIconText:p}),m.jsx(U7,{placeholder:e,value:a,name:c,onChange:t,size:n,disabled:l,id:u,type:i,onBlur:d,status:s,autoFocus:v,ref:w,autoComplete:z,suffix:C,prefix:M,maxLength:b,showCharCounter:k}),h&&m.jsx("span",{className:`${My.message} ${s?My[s]:""}`,children:h})]})),P02={wrapper:"_wrapper_fts9x_1",title:"_title_fts9x_8"},y3=L.forwardRef(({onClick:e=()=>{},className:t="",disabled:l=!1,iconName:a,size:c,style:r,type:n,title:i,titlePlacement:o,ignoreStopPropagation:s},d)=>{const[u,h]=L.useState(!1);return m.jsx(V8,{title:i,placement:o,open:u,onOpenChange:v=>h(v),children:m.jsx(f5,{ref:d,className:`${P02.wrapper} ${t}`,onClick:v=>{h(!1),e(v)},ignoreStopPropagation:s,disabled:l,type:n,style:{...r,padding:c==="large"?"calc(var(--scale-1half) - 1px)":c==="medium"?"var(--scale-1)":c==="small"?"calc(var(--scale-1) - 1px)":"var(--scale-half)"},size:c,children:m.jsx(j0,{name:a,size:c==="xsmall"?14:c==="small"?16:c==="medium"?20:24})})})}),by={container:"_container_hchcm_1",wrapper:"_wrapper_hchcm_8"},j02={success:m.jsx(j0,{name:"checkmark-circle-filled",size:16,style:{color:"var(--green-500)",flexShrink:0}}),warning:m.jsx(j0,{name:"danger-filled",size:16,style:{color:"var(--yellow-500)",flexShrink:0}}),info:m.jsx(j0,{name:"info-filled",size:16,style:{color:"var(--skyBlue-500)",flexShrink:0}}),danger:m.jsx(j0,{name:"dismiss-circle-filled",size:16,style:{color:"var(--rose-500)",flexShrink:0}})},E02=L.forwardRef(({className:e="",style:t,children:l,type:a,onClose:c,duration:r},n)=>{const[i,o]=db.useMessage(),s=()=>{i.open({content:m.jsxs("div",{className:`${by.wrapper} ${e}`,style:t,children:[j02[a],l]}),duration:r,className:by.container,onClose:c})};return L.useImperativeHandle(n,()=>({openMessage:s})),m.jsx(m.Fragment,{children:o})}),m5={wrapper:"_wrapper_199fv_1",header:"_header_199fv_14",titleWrapper:"_titleWrapper_199fv_21",title:"_title_199fv_21",body:"_body_199fv_34",extra:"_extra_199fv_39",small:"_small_199fv_43",medium:"_medium_199fv_48",large:"_large_199fv_53"},wy=({withBreadcrumbs:e=!1,breadcrumbsItems:t=[],withEmptyHeader:l=!1,title:a,extraComp:c,children:r,className:n="",style:i,headerStyles:o,bodyStyles:s,size:d="medium",titleIcon:u,iconColor:h,titleExtraComp:v})=>m.jsxs("div",{className:`
514
514
  ${m5.wrapper}
515
515
  ${m5[d]}
516
516
  ${m5?n:""}
@@ -13,6 +13,7 @@ type Props = {
13
13
  title?: string;
14
14
  titlePlacement?: TooltipPlacement;
15
15
  ref?: ForwardedRef<HTMLButtonElement>;
16
+ ignoreStopPropagation?: boolean;
16
17
  };
17
18
  export declare const IconButton: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLButtonElement>>;
18
19
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@top-message/ui-lib",
3
- "version": "2.23.16",
3
+ "version": "2.23.17",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",