@houheaven/kit-react 0.0.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.
@@ -0,0 +1,6 @@
1
+ import { H as o } from "../chunks/hh-image-dialog-DVgO5_gN.js";
2
+ export {
3
+ o as HhImageDialog,
4
+ o as default
5
+ };
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1 @@
1
+ @keyframes loader{0%{border-radius:50%;transform:rotate(-360deg)}50%{border-radius:40%;transform:rotate(0)}to{border-radius:50%;transform:rotate(360deg)}}@-moz-keyframes loader{0%{border-radius:50%;-moz-transform:rotate(-360deg)}50%{border-radius:40%;-moz-transform:rotate(0deg)}to{border-radius:50%;-moz-transform:rotate(360deg)}}@-webkit-keyframes loader{0%{border-radius:50%;-webkit-transform:rotate(-360deg)}50%{border-radius:40%;-webkit-transform:rotate(0deg)}to{border-radius:50%;-webkit-transform:rotate(360deg)}}.fade-enter,.fade-enter-from{opacity:0}.fade-enter-active{transition:opacity .3s linear}.fade-leave-active{transition:opacity .2s linear}.fade-leave-to{opacity:0}.bounce-enter-active{animation:hhBounceIn .3s}.bounce-leave-active{animation:hhBounceOut .2s}@keyframes hhBounceIn{0%{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}@keyframes hhBounceOut{0%{opacity:1;transform:scale(1)}30%{opacity:.7;transform:scale(1.05)}to{opacity:0;transform:scale(.7)}}.fancy-enter-active{animation:hhFancyIn .3s cubic-bezier(.4,0,.5,1)}.fancy-leave-active{animation:hhFancyOut .3s cubic-bezier(1,.5,0,.4)}@keyframes hhFancyIn{0%{opacity:0;transform:scale(.6)}33%{transform:scale(.5)}to{opacity:1;transform:scale(1)}}@keyframes hhFancyOut{0%{opacity:1;transform:scale(1)}33%{transform:scale(1.1)}to{opacity:0;transform:scale(.5)}}.slideUp-enter,.slideUp-enter-from{opacity:0;transform:translateY(200px)}.slideUp-enter-to{opacity:1;transform:translateY(0)}.slideUp-enter-active{transition:opacity .3s ease,transform .3s ease}.slideUp-leave-active{transition:opacity .2s ease,transform .2s ease}.slideUp-leave-to{opacity:0;transform:translateY(100px)}.slideDown-enter,.slideDown-enter-from{opacity:0;transform:translateY(-200px)}.slideDown-enter-to{opacity:1;transform:translateY(0)}.slideDown-enter-active{transition:opacity .3s ease,transform .3s ease}.slideDown-leave-active{transition:opacity .2s ease,transform .2s ease}.slideDown-leave-to{opacity:0;transform:translateY(-100px)}.slideLeft-enter,.slideLeft-enter-from{opacity:0;transform:translate(-300px)}.slideLeft-enter-to{opacity:1;transform:translate(0)}.slideLeft-enter-active{transition:opacity .3s ease,transform .3s ease}.slideLeft-leave-active{transition:opacity .2s ease,transform .2s ease}.slideLeft-leave-to{opacity:0;transform:translate(-200px)}.slideRight-enter,.slideRight-enter-from{opacity:0;transform:translate(300px)}.slideRight-enter-to{opacity:1;transform:translate(0)}.slideRight-enter-active{transition:opacity .3s ease,transform .3s ease}.slideRight-leave-active{transition:opacity .2s ease,transform .2s ease}.slideRight-leave-to{opacity:0;transform:translate(200px)}.zoomDown-enter-active{animation:hhZoomDownIn .3s}.zoomDown-leave-active{animation:hhBounceOut .2s}@keyframes hhZoomDownIn{0%{opacity:0;transform:scale(.1) translateY(-2000px);animation-timing-function:ease-in-out}60%{opacity:.6;transform:scale(.475) translateY(60px);animation-timing-function:ease-out}to{opacity:1}}.shake-enter-active{animation:shake_x .3s}.shake-leave-active{animation:hhBounceOut .2s}@keyframes shake_x{0%,to{transform:translate(0);opacity:1}10%,30%,50%,70%,90%{transform:translate(-10px)}20%,40%,60%,80%{transform:translate(10px)}}.shake2-enter-active{animation:shake_y .3s}.shake2-leave-active{animation:hhBounceOut .2s}@keyframes shake_y{0%,to{transform:translateY(0);opacity:1}10%,30%,50%,70%,90%{transform:translateY(-10px)}20%,40%,60%,80%{transform:translateY(10px)}}.hh-image-dialog__mask{position:fixed;inset:0;z-index:2000;background:#0000004d;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.hh-image-dialog__wrap{position:fixed;inset:0;z-index:2001;display:flex;align-items:center;justify-content:center}.hh-image-dialog__card{width:200px;padding:12px;background:#fff;border-radius:12px;max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);box-sizing:content-box}.hh-image-dialog__image{display:block;width:100%;height:auto;object-fit:contain}.hh-image-dialog__text{width:100%;margin:6px 0;font:15px/1.6 微软雅黑,-apple-system,PingFang SC,sans-serif;color:#555;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
package/dist/index.cjs ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./chunks/hh-footer-C0Z5LWq4.cjs"),l=require("./chunks/hh-image-dialog-CMDgnirq.cjs");var a='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M15 18l-6-6 6-6"/></svg>',h='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M20 6L9 17l-5-5"/></svg>',c={arrowLeft:a,check:h},i=({name:o,size:e=24,style:r})=>{const t={width:typeof e=="number"?`${e}px`:e,height:typeof e=="number"?`${e}px`:e,display:"inline-flex",...r};return React.createElement("span",{dangerouslySetInnerHTML:{__html:c[o]},style:t})};exports.HhFooter=n.HhFooter;exports.HhImageDialog=l.HhImageDialog;exports.Icon=i;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../kit-icons/dist/chunk-CVZJH7CQ.js","../../kit-icons/dist/react/index.js"],"sourcesContent":["// src/index.ts\nvar iconArrowLeft = '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><path d=\"M15 18l-6-6 6-6\"/></svg>';\nvar iconCheck = '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><path d=\"M20 6L9 17l-5-5\"/></svg>';\nvar icons = {\n \"arrowLeft\": iconArrowLeft,\n \"check\": iconCheck\n};\n\nexport {\n iconArrowLeft,\n iconCheck,\n icons\n};\n//# sourceMappingURL=chunk-CVZJH7CQ.js.map","import {\n icons\n} from \"../chunk-CVZJH7CQ.js\";\n\n// src/react/index.tsx\nvar Icon = ({ name, size = 24, style }) => {\n const mergedStyle = {\n width: typeof size === \"number\" ? `${size}px` : size,\n height: typeof size === \"number\" ? `${size}px` : size,\n display: \"inline-flex\",\n ...style\n };\n return /* @__PURE__ */ React.createElement(\"span\", { dangerouslySetInnerHTML: { __html: icons[name] }, style: mergedStyle });\n};\nexport {\n Icon\n};\n//# sourceMappingURL=index.js.map"],"names":["iconArrowLeft","iconCheck","icons","Icon","name","size","style","mergedStyle"],"mappings":"sLACA,IAAIA,EAAgB,gHAChBC,EAAY,gHACZC,EAAQ,CACV,UAAaF,EACb,MAASC,CACX,ECDIE,EAAO,CAAC,CAAE,KAAAC,EAAM,KAAAC,EAAO,GAAI,MAAAC,CAAK,IAAO,CACzC,MAAMC,EAAc,CAClB,MAAO,OAAOF,GAAS,SAAW,GAAGA,CAAI,KAAOA,EAChD,OAAQ,OAAOA,GAAS,SAAW,GAAGA,CAAI,KAAOA,EACjD,QAAS,cACT,GAAGC,CACP,EACE,OAAuB,MAAM,cAAc,OAAQ,CAAE,wBAAyB,CAAE,OAAQJ,EAAME,CAAI,CAAC,EAAI,MAAOG,CAAW,CAAE,CAC7H"}
package/dist/index.js ADDED
@@ -0,0 +1,20 @@
1
+ import { H as s } from "./chunks/hh-footer-DpTB7XQN.js";
2
+ import { H as v } from "./chunks/hh-image-dialog-DVgO5_gN.js";
3
+ var n = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M15 18l-6-6 6-6"/></svg>', l = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M20 6L9 17l-5-5"/></svg>', a = {
4
+ arrowLeft: n,
5
+ check: l
6
+ }, c = ({ name: r, size: e = 24, style: o }) => {
7
+ const t = {
8
+ width: typeof e == "number" ? `${e}px` : e,
9
+ height: typeof e == "number" ? `${e}px` : e,
10
+ display: "inline-flex",
11
+ ...o
12
+ };
13
+ return /* @__PURE__ */ React.createElement("span", { dangerouslySetInnerHTML: { __html: a[r] }, style: t });
14
+ };
15
+ export {
16
+ s as HhFooter,
17
+ v as HhImageDialog,
18
+ c as Icon
19
+ };
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../kit-icons/dist/chunk-CVZJH7CQ.js","../../kit-icons/dist/react/index.js"],"sourcesContent":["// src/index.ts\nvar iconArrowLeft = '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><path d=\"M15 18l-6-6 6-6\"/></svg>';\nvar iconCheck = '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><path d=\"M20 6L9 17l-5-5\"/></svg>';\nvar icons = {\n \"arrowLeft\": iconArrowLeft,\n \"check\": iconCheck\n};\n\nexport {\n iconArrowLeft,\n iconCheck,\n icons\n};\n//# sourceMappingURL=chunk-CVZJH7CQ.js.map","import {\n icons\n} from \"../chunk-CVZJH7CQ.js\";\n\n// src/react/index.tsx\nvar Icon = ({ name, size = 24, style }) => {\n const mergedStyle = {\n width: typeof size === \"number\" ? `${size}px` : size,\n height: typeof size === \"number\" ? `${size}px` : size,\n display: \"inline-flex\",\n ...style\n };\n return /* @__PURE__ */ React.createElement(\"span\", { dangerouslySetInnerHTML: { __html: icons[name] }, style: mergedStyle });\n};\nexport {\n Icon\n};\n//# sourceMappingURL=index.js.map"],"names":["iconArrowLeft","iconCheck","icons","Icon","name","size","style","mergedStyle"],"mappings":";;AACA,IAAIA,IAAgB,iHAChBC,IAAY,iHACZC,IAAQ;AAAA,EACV,WAAaF;AAAA,EACb,OAASC;AACX,GCDIE,IAAO,CAAC,EAAE,MAAAC,GAAM,MAAAC,IAAO,IAAI,OAAAC,EAAK,MAAO;AACzC,QAAMC,IAAc;AAAA,IAClB,OAAO,OAAOF,KAAS,WAAW,GAAGA,CAAI,OAAOA;AAAA,IAChD,QAAQ,OAAOA,KAAS,WAAW,GAAGA,CAAI,OAAOA;AAAA,IACjD,SAAS;AAAA,IACT,GAAGC;AAAA,EACP;AACE,SAAuB,sBAAM,cAAc,QAAQ,EAAE,yBAAyB,EAAE,QAAQJ,EAAME,CAAI,EAAC,GAAI,OAAOG,EAAW,CAAE;AAC7H;"}