@aic-kits/react 0.10.0 → 0.10.1
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 +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -85,7 +85,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ai]+=1);const xs=r=>({none:0,
|
|
|
85
85
|
width: 100%;
|
|
86
86
|
height: 100%;
|
|
87
87
|
object-fit: cover;
|
|
88
|
-
`,Kl=({art:r,width:o,height:i,style:u,"data-testid":c,...h})=>{const p=he(),v=p.__hd__.art.defaultImageSize||p.__hd__.art.defaultSize,y=Qe(p,o??v),R=Qe(p,i??v);return w.jsx(V,{display:"flex",alignItems:"center",justifyContent:"center",width:y,height:R,overflow:"hidden",style:u,"data-testid":c,...h,children:w.jsx(z_,{src:r,alt:"Art"})})},Yl=({art:r,width:o,height:i,style:u,"data-testid":c,...h})=>{const p=he(),v=p.__hd__.art.defaultSvgSize||p.__hd__.art.defaultSize,y=Qe(p,o??v),R=Qe(p,i??v);return w.jsx(V,{display:"flex",alignItems:"center",justifyContent:"center",width:y,height:R,overflow:"hidden",style:u,"data-testid":c,dangerouslySetInnerHTML:{__html:r},...h})},Ai=r=>{const{art:o,type:i}=r;return i==="image"||vt.isString(o)&&Ul(o)?w.jsx(Kl,{...r}):i==="svg"||vt.isString(o)&&Gl(o)?w.jsx(Yl,{...r}):i==="emoji"||vt.isString(o)&&Hl(o)?w.jsx(Vl,{...r}):i==="icon"||vt.isString(o)&&jl(o)?w.jsx(Zl,{...r}):i==="brand"?w.jsx(ql,{...r}):w.jsx(w.Fragment,{})},Ac=()=>typeof document>"u";function N_(r){const[o,i]=S.useState(()=>Ac()
|
|
88
|
+
`,Kl=({art:r,width:o,height:i,style:u,"data-testid":c,...h})=>{const p=he(),v=p.__hd__.art.defaultImageSize||p.__hd__.art.defaultSize,y=Qe(p,o??v),R=Qe(p,i??v);return w.jsx(V,{display:"flex",alignItems:"center",justifyContent:"center",width:y,height:R,overflow:"hidden",style:u,"data-testid":c,...h,children:w.jsx(z_,{src:r,alt:"Art"})})},Yl=({art:r,width:o,height:i,style:u,"data-testid":c,...h})=>{const p=he(),v=p.__hd__.art.defaultSvgSize||p.__hd__.art.defaultSize,y=Qe(p,o??v),R=Qe(p,i??v);return w.jsx(V,{display:"flex",alignItems:"center",justifyContent:"center",width:y,height:R,overflow:"hidden",style:u,"data-testid":c,dangerouslySetInnerHTML:{__html:r},...h})},Ai=r=>{const{art:o,type:i}=r;return i==="image"||vt.isString(o)&&Ul(o)?w.jsx(Kl,{...r}):i==="svg"||vt.isString(o)&&Gl(o)?w.jsx(Yl,{...r}):i==="emoji"||vt.isString(o)&&Hl(o)?w.jsx(Vl,{...r}):i==="icon"||vt.isString(o)&&jl(o)?w.jsx(Zl,{...r}):i==="brand"?w.jsx(ql,{...r}):w.jsx(w.Fragment,{})},Ac=()=>typeof document>"u";function N_(r){const[o,i]=S.useState(()=>(Ac(),!1));return S.useEffect(()=>{if(Ac())return;const u=window.matchMedia(r),c=h=>{i(h.matches)};return u.addEventListener?u.addEventListener("change",c):u.addListener(c),i(u.matches),()=>{u.removeEventListener?u.removeEventListener("change",c):u.removeListener(c)}},[r]),o}const H_=me(V)`
|
|
89
89
|
position: absolute;
|
|
90
90
|
top: 0;
|
|
91
91
|
left: 0;
|
package/dist/index.js
CHANGED
|
@@ -6090,7 +6090,7 @@ const Z = Sn(A_), ft = (r, o) => typeof o == "number" ? `${o}px` : xt.isString(o
|
|
|
6090
6090
|
return i === "image" || xt.isString(o) && R_(o) ? /* @__PURE__ */ S(W_, { ...r }) : i === "svg" || xt.isString(o) && T_(o) ? /* @__PURE__ */ S(B_, { ...r }) : i === "emoji" || xt.isString(o) && E_(o) ? /* @__PURE__ */ S($_, { ...r }) : i === "icon" || xt.isString(o) && I_(o) ? /* @__PURE__ */ S(L_, { ...r }) : i === "brand" ? /* @__PURE__ */ S(O_, { ...r }) : /* @__PURE__ */ S(gs, {});
|
|
6091
6091
|
}, Ec = () => typeof document > "u";
|
|
6092
6092
|
function F_(r) {
|
|
6093
|
-
const [o, i] = Fe(() => Ec()
|
|
6093
|
+
const [o, i] = Fe(() => (Ec(), !1));
|
|
6094
6094
|
return Cn(() => {
|
|
6095
6095
|
if (Ec())
|
|
6096
6096
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aic-kits/react",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"vite-plugin-dts": "^4.3.0",
|
|
47
47
|
"vitest": "^2.1.8"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "d39ba8d280244ff6dce966cc661042655c43ab2c"
|
|
50
50
|
}
|