ysyt-react-agent-lib 1.0.2 → 1.0.4

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.
@@ -1,4 +1,4 @@
1
- "use strict";const a=require("./index-DoHK6Q-H.js"),b=require("react");function st(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const s=st(b),it=new a.Keyframe("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),ct=new a.Keyframe("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),dt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:o}=e,n=`${o}-fade`,r=t?"&":"";return[a.initMotion(n,it,ct,e.motionDurationMid,t),{[`
1
+ "use strict";const a=require("./index-CA2K8i3v.js"),b=require("react");function st(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const s=st(b),it=new a.Keyframe("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),ct=new a.Keyframe("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),dt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:o}=e,n=`${o}-fade`,r=t?"&":"";return[a.initMotion(n,it,ct,e.motionDurationMid,t),{[`
2
2
  ${r}${n}-enter,
3
3
  ${r}${n}-appear
4
4
  `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${n}-leave`]:{animationTimingFunction:"linear"}}]},ut=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},mt=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},ft=(e,t)=>{const{prefixCls:o,componentCls:n,gridColumns:r}=e,l={};for(let i=r;i>=0;i--)i===0?(l[`${n}${t}-${i}`]={display:"none"},l[`${n}-push-${i}`]={insetInlineStart:"auto"},l[`${n}-pull-${i}`]={insetInlineEnd:"auto"},l[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},l[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},l[`${n}${t}-offset-${i}`]={marginInlineStart:0},l[`${n}${t}-order-${i}`]={order:0}):(l[`${n}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/r*100}%`,maxWidth:`${i/r*100}%`}],l[`${n}${t}-push-${i}`]={insetInlineStart:`${i/r*100}%`},l[`${n}${t}-pull-${i}`]={insetInlineEnd:`${i/r*100}%`},l[`${n}${t}-offset-${i}`]={marginInlineStart:`${i/r*100}%`},l[`${n}${t}-order-${i}`]={order:i});return l[`${n}${t}-flex`]={flex:`var(--${o}${t}-flex)`},l},fe=(e,t)=>ft(e,t),gt=(e,t,o)=>({[`@media (min-width: ${a.unit(t)})`]:Object.assign({},fe(e,o))}),Ct=()=>({}),pt=()=>({});a.genStyleHooks("Grid",ut,Ct);const Re=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin});a.genStyleHooks("Grid",e=>{const t=a.merge(e,{gridColumns:24}),o=Re(t);return delete o.xs,[mt(t),fe(t,""),fe(t,"-xs"),Object.keys(o).map(n=>gt(t,o[n],`-${n}`)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{})]},pt);function $e(e){return{position:e,inset:0}}const bt=e=>{const{componentCls:t,antCls:o}=e;return[{[`${t}-root`]:{[`${t}${o}-zoom-enter, ${t}${o}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${o}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},$e("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},$e("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:dt(e)}]},vt=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${a.unit(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},a.resetComponent(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${a.unit(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:a.unit(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},a.genFocusStyle(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${a.unit(e.borderRadiusLG)} ${a.unit(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${a.unit(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
@@ -1,4 +1,4 @@
1
- import { t as Ft, K as Ne, g as re, m as fe, u as N, v as Dt, r as nt, x as kt, y as K, z as At, A as _t, B as Pe, E as ot, G as Vt, h as R, d as O, H as De, p as je, f as Y, c as Ie, J as at, L as ke, n as Wt, N as Ae, O as _e, P as qt, R as Te, Q as Gt, C as q, U as ge, V as Xt, X as Ut, Y as Me, Z as Kt, $ as lt, k as Ce, l as rt, a0 as Qt, a1 as Zt, a2 as Yt, a3 as ue, a4 as Re, a5 as Jt, a6 as st, a7 as en, a8 as tn, a9 as nn, aa as on, ab as an, ac as ln, ad as rn, ae as sn, af as cn, ag as it, ah as dn, ai as un, aj as mn, ak as fn, al as gn, am as Cn, W as pn } from "./index-qKFcDUB0.mjs";
1
+ import { t as Ft, K as Ne, g as re, m as fe, u as N, v as Dt, r as nt, x as kt, y as K, z as At, A as _t, B as Pe, E as ot, G as Vt, h as R, d as O, H as De, p as je, f as Y, c as Ie, J as at, L as ke, n as Wt, N as Ae, O as _e, P as qt, R as Te, Q as Gt, C as q, U as ge, V as Xt, X as Ut, Y as Me, Z as Kt, $ as lt, k as Ce, l as rt, a0 as Qt, a1 as Zt, a2 as Yt, a3 as ue, a4 as Re, a5 as Jt, a6 as st, a7 as en, a8 as tn, a9 as nn, aa as on, ab as an, ac as ln, ad as rn, ae as sn, af as cn, ag as it, ah as dn, ai as un, aj as mn, ak as fn, al as gn, am as Cn, W as pn } from "./index-DQqM3Rj7.mjs";
2
2
  import * as r from "react";
3
3
  import $, { useContext as se, useRef as Z, useMemo as vn, useEffect as Ve } from "react";
4
4
  const bn = new Ne("antFadeIn", {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DoHK6Q-H.js");exports.YsytBarPhone=e.YsytBarPhone;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CA2K8i3v.js");exports.YsytBarPhone=e.YsytBarPhone;
@@ -1,4 +1,4 @@
1
- import { an as r } from "./index-qKFcDUB0.mjs";
1
+ import { an as r } from "./index-DQqM3Rj7.mjs";
2
2
  export {
3
3
  r as YsytBarPhone
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ysyt-react-agent-lib",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "",
5
5
  "main": "dist/ysyt-react-agent-lib.cjs.js",
6
6
  "module": "dist/ysyt-react-agent-lib.es.js",
@@ -18,6 +18,9 @@
18
18
  "import": "./dist/ysyt-react-agent-lib.es.js",
19
19
  "require": "./dist/ysyt-react-agent-lib.cjs.js",
20
20
  "types": "./dist/index.d.ts"
21
+ },
22
+ "./css": {
23
+ "default": "./dist/ysyt-react-agent-lib.css"
21
24
  }
22
25
  },
23
26
  "keywords": [],