@rappel-ui/svg-icons 1.0.5 → 1.0.7
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/cjs/constants.js +1 -0
- package/cjs/index.js +1 -0
- package/cjs/node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js +1 -0
- package/cjs/node_modules/.pnpm/@vueuse_shared@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js +1 -0
- package/cjs/packages/components/svg-icon/index.js +1 -0
- package/cjs/packages/components/svg-icon/src/svg-icon.js +1 -0
- package/cjs/packages/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/packages/components/svg-icon/style/index.js +1 -0
- package/cjs/packages/composables/index.js +1 -0
- package/cjs/packages/composables/use-namespace/index.js +1 -0
- package/cjs/packages/composables/use-theme/index.js +1 -0
- package/cjs/packages/composables/use-waterfall-layout/index.js +1 -0
- package/cjs/packages/theme-chalk/src/base.css +1 -0
- package/cjs/packages/theme-chalk/src/svg-icon.css +1 -0
- package/cjs/packages/utils/index.js +1 -0
- package/cjs/packages/utils/util.js +1 -0
- package/cjs/packages/utils/vue/index.js +1 -0
- package/es/constants.mjs +114 -0
- package/es/index.mjs +44 -0
- package/es/node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs +275 -0
- package/es/node_modules/.pnpm/@vueuse_shared@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs +88 -0
- package/es/packages/components/svg-icon/index.mjs +7 -0
- package/es/packages/components/svg-icon/src/svg-icon.mjs +5 -0
- package/es/packages/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.mjs +52 -0
- package/es/packages/components/svg-icon/style/index.mjs +2 -0
- package/es/packages/composables/index.mjs +4 -0
- package/es/packages/composables/use-namespace/index.mjs +22 -0
- package/es/packages/composables/use-theme/index.mjs +14 -0
- package/es/packages/composables/use-waterfall-layout/index.mjs +1 -0
- package/es/packages/theme-chalk/src/base.css +1 -0
- package/es/packages/theme-chalk/src/svg-icon.css +1 -0
- package/es/packages/utils/index.mjs +3 -0
- package/es/packages/utils/util.mjs +6 -0
- package/es/packages/utils/vue/index.mjs +16 -0
- package/package.json +4 -7
- package/umd/index.js +1 -0
package/cjs/constants.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=[{name:`arrow-right`,path:`M4 12h16 M20 12L14 6M20 12L14 18`},{name:`arrow-left`,path:`M4 12L20 12M10 6L4 12L10 18`},{name:`arrow-up`,path:`M12 4L12 20M6 10L12 4L18 10`},{name:`arrow-down`,path:`M12 20L12 4M6 14L12 20L18 14`},{name:`search`,path:`M4 10A6 6 0 1 0 16 10 A6 6 0 1 0 4 10M20 20 L14.5 14.5`},{name:`search-bold`,path:`M4 11 A7 7 0 1 0 18 11A7 7 0 1 0 4 11M16 16 L20 20`},{name:`arrow-downward`,path:`M5 9L12 16L19 9`},{name:`arrow-upward`,path:`M5 16L12 9L19 16`},{name:`arrow-forward`,path:`M15 5L8 12L15 19`},{name:`arrow-backward`,path:`M8 5L15 12L8 19`},{name:`delete`,path:`M8 4L16 4M8 5L16 5M3 6L21 6M6 8L6 19L18 19L18 8M10 9L10 16M14 16L14 9`},{name:`close`,path:`M4 4L20 20M20 4L4 20`},{name:`close-short`,path:`M6 6L18 18M18 6L6 18`},{name:`loading`,path:`M12 2L12 7M19.54 4.46L16 8M22 12L17 12M19.54 19.54L16 16M12 22L12 17M4.46 19.54L8 16M2 12L7 12M4.47 4.47L8 8`},{name:`more-dot-square`,path:`M10 4h2v2h-2v-2m0 1h2m0 1h-2M10 11 h2v2h-2v-2m0 1h2m0 1h-2M10 18 h2v2h-2v-2m0 1h2m0 1h-2`},{name:`more-dot-square-horizontal`,path:`M4 11h2v2h-2v-2m0 1h2m0 1h-2M11 11h2v2h-2v-2m0 1h2m0 1h-2M18 11h2v2h-2v-2m0 1h2m0 1h-2`},{name:`more-line`,path:`M5 5h14l0 1h-14zM5 11h14l0 1h-14zM5 17h14l0 1h-14z`},{name:`more-dot-circle`,path:`M11 6a1 1 0 0 0 2 0a1 1 0 0 0 -2 0m1 0h1M11 12a1 1 0 0 0 2 0a1 1 0 0 0 -2 0m1 0h1M11 18a1 1 0 0 0 2 0a1 1 0 0 0 -2 0m1 0h1`},{name:`more-dot-circle-horizontal`,path:`M4 12a1 1 0 0 0 2 0a1 1 0 0 0 -2 0m1 0h1M11 12a1 1 0 0 0 2 0a1 1 0 0 0 -2 0m1 0h1M18 12a1 1 0 0 0 2 0a1 1 0 0 0 -2 0m1 0h1`},{name:`copy`,path:`M16 4h-11v11M9 8v12h11v-12h-11`},{name:`copy-closure`,path:`M16 8v-4h-11v11h4M9 8v12h11v-12h-11`},{name:`star`,path:`M12 2L14.63 9.25L22 9.64L16.26 14.51L18.18 22L12 17.77L5.82 22L7.74 14.51L2 9.64L9.37 9.25L12 2`},{name:`star-fill`,path:`M12 2L14.63 9.25L22 9.64L16.26 14.51L18.18 22L12 17.77L5.82 22L7.74 14.51L2 9.64L9.37 9.25L12 2`,fill:`currentColor`},{name:`help`,path:`M3 12A9 9 0 1 0 21 12A9 9 0 1 0 3 12m5.5 -2A3 3 0 1 1 14.5 10c0,2 -2.5,2 -2.5,4m0 3l0 1`},{name:`more-dot-circle-outline-vertical`,path:`M3 12A9 9 0 1 0 21 12A9 9 0 1 0 3 12M11.5 7.5a0.5 0.5 0 0 0 1 0a0.5 0.5 0 0 0 -1 0M11.5 12a0.5 0.5 0 0 0 1 0a0.5 0.5 0 0 0 -1 0M11.5 16.5a0.5 0.5 0 0 0 1 0a0.5 0.5 0 0 0 -1 0`},{name:`more-dot-circle-outline-horizontal`,path:`M3 12A9 9 0 1 0 21 12A9 9 0 1 0 3 12M7.5 12a0.5 0.5 0 0 0 1 0a0.5 0.5 0 0 0 -1 0M11.8 12a0.5 0.5 0 0 0 1 0a0.5 0.5 0 0 0 -1 0M16 12a0.5 0.5 0 0 0 1 0a0.5 0.5 0 0 0 -1 0`},{name:`exclam`,path:`M3 12A9 9 0 1 0 21 12A9 9 0 1 0 3 12M11.5 7l1 0l-0.5 6l-0.5 -6m0.5 0l0 6m-0.5 3a0.5 0.5 0 0 0 1 0a0.5 0.5 0 0 0 -1 0`}],t=e.map(e=>e.name);exports.iconNames=t,exports.svgIcons=e;
|
package/cjs/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./packages/utils/vue/index.js");require("./packages/utils/index.js");const t=require("./packages/components/svg-icon/index.js"),n=require("./constants.js");let r=require("vue");var i=e=>typeof e==`string`&&n.iconNames.includes(e)?a(e):e,a=i=>{let a=n.svgIcons.find(e=>e.name===i);if(a)return e.withInstall((0,r.defineComponent)({name:e.toPascalCase(i),inheritAttrs:!0,props:{size:{type:[String,Number],default:`1em`},color:{type:String,default:void 0},fill:{type:String,default:a.fill||void 0},spin:{type:Boolean,default:!1}},setup(e,{attrs:n}){return()=>(0,r.h)(t.ReSvgIcon,{name:a.name,path:a.path,size:e.size,color:e.color,spin:e.spin,fill:e.fill,...n})}}))},o=a(`arrow-right`),s=a(`arrow-left`),c=a(`arrow-up`),l=a(`arrow-down`),u=a(`search`),d=a(`search-bold`),f=a(`arrow-downward`),p=a(`arrow-upward`),m=a(`arrow-forward`),h=a(`arrow-backward`),g=a(`delete`),_=a(`close`),v=a(`close-short`),y=a(`loading`),b=a(`more-dot-square`),x=a(`more-dot-square-horizontal`),S=a(`more-line`),C=a(`more-dot-circle`),w=a(`more-dot-circle-horizontal`),T=a(`copy`),E=a(`copy-closure`),D=a(`star`),O=a(`star-fill`),k=a(`help`),A=a(`exclam`),j=a(`more-dot-circle-outline-vertical`),M=a(`more-dot-circle-outline-horizontal`);exports.ArrowBackward=h,exports.ArrowDown=l,exports.ArrowDownward=f,exports.ArrowForward=m,exports.ArrowLeft=s,exports.ArrowRight=o,exports.ArrowUp=c,exports.ArrowUpward=p,exports.Close=_,exports.CloseShort=v,exports.Copy=T,exports.CopyClosure=E,exports.Delete=g,exports.Exclam=A,exports.Help=k,exports.Loading=y,exports.MoreDotCircle=C,exports.MoreDotCircleHorizontal=w,exports.MoreDotSquare=b,exports.MoreDotSquareHorizontal=x,exports.MoreLine=S,exports.Search=u,exports.SearchBold=d,exports.Star=D,exports.StarFill=O,exports.createIcon=a,exports.getIcon=i,exports.iconNames=n.iconNames,exports.moreDotCircleOutlineHorizontal=M,exports.moreDotCircleOutlineVertical=j,exports.svgIcons=n.svgIcons;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("../../../../../@vueuse_shared@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js");let t=require("vue");var n=e.isClient?window:void 0;e.isClient&&window.document,e.isClient&&window.navigator,e.isClient&&window.location;function r(e){var n;let r=(0,t.toValue)(e);return(n=r==null?void 0:r.$el)==null?r:n}function i(...i){let a=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),o=(0,t.computed)(()=>{let n=e.toArray((0,t.toValue)(i[0])).filter(e=>e!=null);return n.every(e=>typeof e!=`string`)?n:void 0});return e.watchImmediate(()=>{var a,s;return[(a=(s=o.value)==null?void 0:s.map(e=>r(e)))==null?[n].filter(e=>e!=null):a,e.toArray((0,t.toValue)(o.value?i[1]:i[0])),e.toArray((0,t.unref)(o.value?i[2]:i[1])),(0,t.toValue)(o.value?i[3]:i[2])]},([t,n,r,i],o,s)=>{if(!(t!=null&&t.length)||!(n!=null&&n.length)||!(r!=null&&r.length))return;let c=e.isObject(i)?{...i}:i,l=t.flatMap(e=>n.flatMap(t=>r.map(n=>a(e,t,n,c))));s(()=>{l.forEach(e=>e())})},{flush:`post`})}function a(){let e=(0,t.shallowRef)(!1),n=(0,t.getCurrentInstance)();return n&&(0,t.onMounted)(()=>{e.value=!0},n),e}function o(e){let n=a();return(0,t.computed)(()=>(n.value,!!e()))}var s=Symbol(`vueuse-ssr-width`);function c(){let n=(0,t.hasInjectionContext)()?e.injectLocal(s,null):null;return typeof n==`number`?n:void 0}function l(r,a={}){let{window:s=n,ssrWidth:l=c()}=a,u=o(()=>s&&`matchMedia`in s&&typeof s.matchMedia==`function`),d=(0,t.shallowRef)(typeof l==`number`),f=(0,t.shallowRef)(),p=(0,t.shallowRef)(!1);return(0,t.watchEffect)(()=>{if(d.value){d.value=!u.value;let n=(0,t.toValue)(r).split(`,`);p.value=n.some(t=>{let n=t.includes(`not all`),r=t.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),i=t.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(r||i);return r&&a&&(a=l>=e.pxValue(r[1])),i&&a&&(a=l<=e.pxValue(i[1])),n?!a:a});return}u.value&&(f.value=s.matchMedia((0,t.toValue)(r)),p.value=f.value.matches)}),i(f,`change`,e=>{p.value=e.matches},{passive:!0}),(0,t.computed)(()=>p.value)}var u=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},d=`__vueuse_ssr_handlers__`,f=p();function p(){return d in u||(u[d]=u[d]||{}),u[d]}function m(e,t){return f[e]||t}function h(e){return l(`(prefers-color-scheme: dark)`,e)}function g(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}var _={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},v=`vueuse-storage`;function y(r,a,o,s={}){var c;let{flush:l=`pre`,deep:u=!0,listenToStorageChanges:d=!0,writeDefaults:f=!0,mergeDefaults:p=!1,shallow:h,window:y=n,eventFilter:b,onError:x=e=>{console.error(e)},initOnMounted:S}=s,C=(h?t.shallowRef:t.ref)(typeof a==`function`?a():a),w=(0,t.computed)(()=>(0,t.toValue)(r));if(!o)try{o=m(`getDefaultStorage`,()=>n==null?void 0:n.localStorage)()}catch(e){x(e)}if(!o)return C;let T=(0,t.toValue)(a),E=g(T),D=(c=s.serializer)==null?_[E]:c,{pause:O,resume:k}=e.watchPausable(C,e=>M(e),{flush:l,deep:u,eventFilter:b});(0,t.watch)(w,()=>P(),{flush:l});let A=!1;y&&d&&(o instanceof Storage?i(y,`storage`,e=>{S&&!A||P(e)},{passive:!0}):i(y,v,e=>{S&&!A||F(e)})),S?e.tryOnMounted(()=>{A=!0,P()}):P();function j(e,t){if(y){let n={key:w.value,oldValue:e,newValue:t,storageArea:o};y.dispatchEvent(o instanceof Storage?new StorageEvent(`storage`,n):new CustomEvent(v,{detail:n}))}}function M(e){try{let t=o.getItem(w.value);if(e==null)j(t,null),o.removeItem(w.value);else{let n=D.write(e);t!==n&&(o.setItem(w.value,n),j(t,n))}}catch(e){x(e)}}function N(e){let t=e?e.newValue:o.getItem(w.value);if(t==null)return f&&T!=null&&o.setItem(w.value,D.write(T)),T;if(!e&&p){let e=D.read(t);return typeof p==`function`?p(e,T):E===`object`&&!Array.isArray(e)?{...T,...e}:e}else if(typeof t!=`string`)return t;else return D.read(t)}function P(e){if(!(e&&e.storageArea!==o)){if(e&&e.key==null){C.value=T;return}if(!(e&&e.key!==w.value)){O();try{let t=D.write(C.value);(e===void 0||(e==null?void 0:e.newValue)!==t)&&(C.value=N(e))}catch(e){x(e)}finally{e?(0,t.nextTick)(k):k()}}}}function F(e){P(e.detail)}return C}var b=`*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function x(i={}){let{selector:a=`html`,attribute:o=`class`,initialValue:s=`auto`,window:c=n,storage:l,storageKey:u=`vueuse-color-scheme`,listenToStorageChanges:d=!0,storageRef:f,emitAuto:p,disableTransition:g=!0}=i,_={auto:``,light:`light`,dark:`dark`,...i.modes||{}},v=h({window:c}),x=(0,t.computed)(()=>v.value?`dark`:`light`),S=f||(u==null?e.toRef(s):y(u,s,l,{window:c,listenToStorageChanges:d})),C=(0,t.computed)(()=>S.value===`auto`?x.value:S.value),w=m(`updateHTMLAttrs`,(e,t,n)=>{let i=typeof e==`string`?c==null?void 0:c.document.querySelector(e):r(e);if(!i)return;let a=new Set,o=new Set,s=null;if(t===`class`){let e=n.split(/\s/g);Object.values(_).flatMap(e=>(e||``).split(/\s/g)).filter(Boolean).forEach(t=>{e.includes(t)?a.add(t):o.add(t)})}else s={key:t,value:n};if(a.size===0&&o.size===0&&s===null)return;let l;g&&(l=c.document.createElement(`style`),l.appendChild(document.createTextNode(b)),c.document.head.appendChild(l));for(let e of a)i.classList.add(e);for(let e of o)i.classList.remove(e);s&&i.setAttribute(s.key,s.value),g&&(c.getComputedStyle(l).opacity,document.head.removeChild(l))});function T(e){var t;w(a,o,(t=_[e])==null?e:t)}function E(e){i.onChanged?i.onChanged(e,T):T(e)}(0,t.watch)(C,E,{flush:`post`,immediate:!0}),e.tryOnMounted(()=>E(C.value));let D=(0,t.computed)({get(){return p?S.value:C.value},set(e){S.value=e}});return Object.assign(D,{store:S,system:x,state:C})}function S(e={}){let{valueDark:n=`dark`,valueLight:r=``}=e,i=x({...e,onChanged:(t,n)=>{var r;e.onChanged?(r=e.onChanged)==null||r.call(e,t===`dark`,n,t):n(t)},modes:{dark:n,light:r}}),a=(0,t.computed)(()=>i.system.value);return(0,t.computed)({get(){return i.value===`dark`},set(e){let t=e?`dark`:`light`;a.value===t?i.value=`auto`:i.value=t}})}exports.StorageSerializers=_,exports.bypassFilter=e.bypassFilter,exports.createFilterWrapper=e.createFilterWrapper,exports.customStorageEventName=v,exports.defaultWindow=n,exports.getLifeCycleTarget=e.getLifeCycleTarget,exports.getSSRHandler=m,exports.injectLocal=e.injectLocal,exports.isClient=e.isClient,exports.isObject=e.isObject,exports.noop=e.noop,exports.pausableFilter=e.pausableFilter,exports.pxValue=e.pxValue,exports.toArray=e.toArray,exports.toRef=e.toRef,exports.tryOnMounted=e.tryOnMounted,exports.unrefElement=r,exports.useColorMode=x,exports.useDark=S,exports.useEventListener=i,exports.useMediaQuery=l,exports.useMounted=a,exports.usePreferredDark=h,exports.useSSRWidth=c,exports.useStorage=y,exports.useSupported=o,exports.watchImmediate=e.watchImmediate,exports.watchPausable=e.watchPausable,exports.watchWithFilter=e.watchWithFilter;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e=require("vue");var t=new WeakMap,n=(...n)=>{var r;let i=n[0],a=(r=(0,e.getCurrentInstance)())==null?void 0:r.proxy,o=a==null?(0,e.getCurrentScope)():a;if(o==null&&!(0,e.hasInjectionContext)())throw Error(`injectLocal must be called in setup`);return o&&t.has(o)&&i in t.get(o)?t.get(o)[i]:(0,e.inject)(...n)},r=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var i=Object.prototype.toString,a=e=>i.call(e)===`[object Object]`,o=()=>{};function s(...t){if(t.length!==1)return(0,e.toRef)(...t);let n=t[0];return typeof n==`function`?(0,e.readonly)((0,e.customRef)(()=>({get:n,set:o}))):(0,e.ref)(n)}function c(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return`cancel`in e&&Object.assign(n,{cancel:e.cancel,flush:e.flush,isPending:e.isPending}),n}var l=e=>e();function u(t=l,n={}){let{initialState:r=`active`}=n,i=s(r===`active`);function a(){i.value=!1}function o(){i.value=!0}return{isActive:(0,e.shallowReadonly)(i),pause:a,resume:o,eventFilter:(...e)=>{i.value&&t(...e)}}}function d(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function f(e){return Array.isArray(e)?e:[e]}function p(t){return t||(0,e.getCurrentInstance)()}function m(t,n,r={}){let{eventFilter:i=l,...a}=r;return(0,e.watch)(t,c(i,n),a)}function h(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=u(r,{initialState:i});return{stop:m(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function g(t,n=!0,r){p(r)?(0,e.onMounted)(t,r):n?t():(0,e.nextTick)(t)}function _(t,n,r){return(0,e.watch)(t,n,{...r,immediate:!0})}exports.bypassFilter=l,exports.createFilterWrapper=c,exports.getLifeCycleTarget=p,exports.injectLocal=n,exports.isClient=r,exports.isObject=a,exports.noop=o,exports.pausableFilter=u,exports.pxValue=d,exports.toArray=f,exports.toRef=s,exports.tryOnMounted=g,exports.watchImmediate=_,exports.watchPausable=h,exports.watchWithFilter=m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("../../utils/vue/index.js");require("../../utils/index.js");const t=require("./src/svg-icon.js");var n=e.withInstall(t.default);exports.ReSvgIcon=n,exports.default=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=require("./svg-icon.vue_vue_type_script_setup_true_lang.js").default;exports.default=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("../../../utils/util.js");require("../../../utils/index.js"),require("../style/index.js");const t=require("../../../composables/use-namespace/index.js");require("../../../composables/index.js");let n=require("vue");var r=[`width`,`height`,`stroke`],i=[`d`,`name`,`fill`],a=(0,n.defineComponent)({name:`ReSvgIcon`,__name:`svg-icon`,props:{name:{default:()=>void 0},path:{default:``},size:{default:16},fill:{default:()=>void 0},color:{default:`currentColor`},spin:{type:Boolean,default:!1}},setup(a){let{n:o,ns:s}=t.useNamespace(`svg-icon`),c=(0,n.computed)(()=>e.toPx(a.size)),l=(0,n.computed)(()=>e.toPx(a.size));return(e,t)=>((0,n.openBlock)(),(0,n.createElementBlock)(`svg`,{class:(0,n.normalizeClass)([(0,n.unref)(o)(),{[(0,n.unref)(s)(`spinner`)]:a.spin}]),viewBox:`0 0 24 24`,width:c.value,height:l.value,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,stroke:a.color,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`},[(0,n.createElementVNode)(`path`,{d:a.path,name:a.name,fill:a.fill},null,8,i)],10,r))}});exports.default=a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/* empty css */;/* empty css */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("./use-waterfall-layout/index.js");const e=require("./use-namespace/index.js");require("./use-theme/index.js"),exports.useNamespace=e.useNamespace;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){let t=(t,n,r,i)=>{let a=`re-${t||e}`;return n&&(a+=`-${n}`),r&&(a+=`--${r}`),i&&(a+=`__${i}`),a.toLowerCase()};return{libName:`rappel-ui`,prefix:`re`,statePrefix:`is`,n:(e=``)=>t(e),ng:e=>t(``,e),nm:e=>t(``,``,e),ngm:(e,n)=>t(``,e,n),ns:e=>t(``,``,``,e),ngs:(e,n)=>t(``,e,``,n),cls:t,is:(e,t=void 0)=>t?`is-${e}`:``}}exports.useNamespace=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("../use-namespace/index.js"),t=require("../../../node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js");require("../index.js"),require("vue");var{libName:n}=e.useNamespace(``);t.useDark({storageKey:`${n}-color-scheme`,selector:`html`,attribute:`class`,valueDark:`dark`,valueLight:`light`});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("vue");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--re-color-primary:#9e88ff;--re-color-text-darkest:#000;--re-color-text-darker:#303131;--re-color-text-base:#606062;--re-color-text-dark:#909093;--re-color-text-light:#b2b2b6;--re-color-text-lighter:#cdcdd1;--re-color-text-lightest:#fff;--re-color-border-darker:#c3c3cb;--re-color-border-dark:#d0d0d8;--re-color-border-base:#dbdbe0;--re-color-border-light:#e4e4e8;--re-color-border-lighter:#ededef;--re-color-border-lightest:#efeff3;--re-color-fill-darker:#d7d7dc;--re-color-fill-dark:#e8e8ec;--re-color-fill-base:#ededf0;--re-color-fill-light:#f1f1f4;--re-color-fill-lighter:#f6f6f7;--re-color-fill-lightest:#f8f8f9;--re-color-fill-blank:#fff;--re-color-fill-transparent:transparent;--re-color-primary-base:#9e88ff;--re-color-primary-hover:#917deb;--re-color-primary-active:#8572d6;--re-color-primary-shade-9:#a894ff;--re-color-primary-shade-8:#b1a0ff;--re-color-primary-shade-7:#bbacff;--re-color-primary-shade-6:#c5b8ff;--re-color-primary-shade-5:#cfc4ff;--re-color-primary-shade-4:#d8cfff;--re-color-primary-shade-3:#e2dbff;--re-color-primary-shade-2:#ece7ff;--re-color-primary-shade-1:#f5f3ff;--re-color-success-base:#06b56d;--re-color-success-hover:#06a764;--re-color-success-active:#05985c;--re-color-success-shade-9:#1fbc7c;--re-color-success-shade-8:#38c48a;--re-color-success-shade-7:#51cb99;--re-color-success-shade-6:#6ad3a7;--re-color-success-shade-5:#83dab6;--re-color-success-shade-4:#9be1c5;--re-color-success-shade-3:#b4e9d3;--re-color-success-shade-2:#cdf0e2;--re-color-success-shade-1:#e6f8f0;--re-color-danger-base:#ee6979;--re-color-danger-hover:#db616f;--re-color-danger-active:#c85866;--re-color-danger-shade-9:#f07886;--re-color-danger-shade-8:#f18794;--re-color-danger-shade-7:#f396a1;--re-color-danger-shade-6:#f5a5af;--re-color-danger-shade-5:#f7b4bc;--re-color-danger-shade-4:#f8c3c9;--re-color-danger-shade-3:#fad2d7;--re-color-danger-shade-2:#fce1e4;--re-color-danger-shade-1:#fdf0f2;--re-color-warning-base:#e2a01d;--re-color-warning-hover:#d0931b;--re-color-warning-active:#be8618;--re-color-warning-shade-9:#e5aa34;--re-color-warning-shade-8:#e8b34a;--re-color-warning-shade-7:#ebbd61;--re-color-warning-shade-6:#eec677;--re-color-warning-shade-5:#f1d08e;--re-color-warning-shade-4:#f3d9a5;--re-color-warning-shade-3:#f6e3bb;--re-color-warning-shade-2:#f9ecd2;--re-color-warning-shade-1:#fcf6e8;--re-color-info-base:#8e8e91;--re-color-info-hover:#838385;--re-color-info-active:#77777a;--re-color-info-shade-9:#99999c;--re-color-info-shade-8:#a5a5a7;--re-color-info-shade-7:#b0b0b2;--re-color-info-shade-6:#bbbbbd;--re-color-info-shade-5:#c7c7c8;--re-color-info-shade-4:#d2d2d3;--re-color-info-shade-3:#ddddde;--re-color-info-shade-2:#e8e8e9;--re-color-info-shade-1:#f4f4f4}:root.dark{--re-color-text-darkest:#fff;--re-color-text-darker:#e0e0e2;--re-color-text-base:#d0d0d4;--re-color-text-dark:#b2b2b6;--re-color-text-light:#909093;--re-color-text-lighter:#606062;--re-color-text-lightest:#303131;--re-color-border-darker:#8e8e91;--re-color-border-dark:#6b6b6f;--re-color-border-base:#5b5b5f;--re-color-border-light:#4d4d51;--re-color-border-lighter:#3b3b3d;--re-color-border-lightest:#2c2c2e;--re-color-fill-darker:#6b6b6f;--re-color-fill-dark:#5b5b5f;--re-color-fill-base:#4d4d51;--re-color-fill-light:#3b3b3d;--re-color-fill-lighter:#323236;--re-color-fill-lightest:#2c2c2e;--re-color-fill-blank:#1b1b1f;--re-color-fill-transparent:transparent;--re-color-primary-base:#9e88ff;--re-color-primary-hover:#917deb;--re-color-primary-active:#8572d6;--re-color-primary-shade-9:#937fea;--re-color-primary-shade-8:#8877d6;--re-color-primary-shade-7:#7d6ec1;--re-color-primary-shade-6:#7265ad;--re-color-primary-shade-5:#675d98;--re-color-primary-shade-4:#5c5483;--re-color-primary-shade-3:#514b6f;--re-color-primary-shade-2:#46425a;--re-color-primary-shade-1:#3b3a46;--re-color-success-base:#06b56d;--re-color-success-hover:#06a764;--re-color-success-active:#05985c;--re-color-success-shade-9:#0aa867;--re-color-success-shade-8:#0e9b61;--re-color-success-shade-7:#138d5b;--re-color-success-shade-6:#178055;--re-color-success-shade-5:#1b734f;--re-color-success-shade-4:#1f6649;--re-color-success-shade-3:#235943;--re-color-success-shade-2:#284b3d;--re-color-success-shade-1:#2c3e37;--re-color-danger-base:#ee6979;--re-color-danger-hover:#db616f;--re-color-danger-active:#c85866;--re-color-danger-shade-9:#db6372;--re-color-danger-shade-8:#c85e6b;--re-color-danger-shade-7:#b55863;--re-color-danger-shade-6:#a2535c;--re-color-danger-shade-5:#8f4d55;--re-color-danger-shade-4:#7c474e;--re-color-danger-shade-3:#694247;--re-color-danger-shade-2:#563c3f;--re-color-danger-shade-1:#433738;--re-color-warning-base:#e2a01d;--re-color-warning-hover:#d0931b;--re-color-warning-active:#be8618;--re-color-warning-shade-9:#d0951f;--re-color-warning-shade-8:#be8a21;--re-color-warning-shade-7:#ad7f23;--re-color-warning-shade-6:#9b7425;--re-color-warning-shade-5:#896927;--re-color-warning-shade-4:#775d29;--re-color-warning-shade-3:#65522b;--re-color-warning-shade-2:#54472d;--re-color-warning-shade-1:#423c2f;--re-color-info-base:#8e8e91;--re-color-info-hover:#838385;--re-color-info-active:#77777a;--re-color-info-shade-9:#858587;--re-color-info-shade-8:#7b7b7e;--re-color-info-shade-7:#727274;--re-color-info-shade-6:#68696b;--re-color-info-shade-5:#5f6061;--re-color-info-shade-4:#565657;--re-color-info-shade-3:#4c4d4e;--re-color-info-shade-2:#434444;--re-color-info-shade-1:#393a3b}:root{--re-root-font-size:16px;--re-base-font-size:14px;--re-base-border-radius:4px;font-size:var(--re-root-font-size);--base-font-family:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Microsoft YaHei", "微软雅黑", Arial, "Noto Sans SC", sans-serif;--code-font-family:"JetBrains Mono", "ui-monospace", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace}*,:before,:after{box-sizing:border-box;-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;scroll-behavior:smooth;font-weight:400}body{font-size:var(--re-base-font-size);font-family:var(--base-font-family);margin:0;padding:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.re-svg-icon{vertical-align:middle;display:inline-block}.re-svg-icon__spinner{animation:1s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./vue/index.js"),t=require("./util.js");exports.toPascalCase=e.toPascalCase,exports.toPx=t.toPx,exports.withInstall=e.withInstall;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){return parseFloat(e)==e?`${e}px`:e}exports.toPx=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e=require("vue");var t=(t,n)=>{if(!t)return t;if(t.install=n=>{t.name?n.component(t.name,t):(0,e.warn)(`can't find the component name, use defineOptions() to configure it`,t)},n)for(let[e,r]of Object.entries(n))t[e]=r,r.install=e=>{e.component(r.name,r)};return t};function n(e){return e.split(`-`).map(e=>e.slice(0,1).toUpperCase()+e.slice(1)).join(``)}exports.toPascalCase=n,exports.withInstall=t;
|
package/es/constants.mjs
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
//#region constants.ts
|
|
2
|
+
var e = [
|
|
3
|
+
{
|
|
4
|
+
name: "arrow-right",
|
|
5
|
+
path: "M4 12h16 M20 12L14 6M20 12L14 18"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
name: "arrow-left",
|
|
9
|
+
path: "M4 12L20 12M10 6L4 12L10 18"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
name: "arrow-up",
|
|
13
|
+
path: "M12 4L12 20M6 10L12 4L18 10"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: "arrow-down",
|
|
17
|
+
path: "M12 20L12 4M6 14L12 20L18 14"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: "search",
|
|
21
|
+
path: "M4 10A6 6 0 1 0 16 10 A6 6 0 1 0 4 10M20 20 L14.5 14.5"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: "search-bold",
|
|
25
|
+
path: "M4 11 A7 7 0 1 0 18 11A7 7 0 1 0 4 11M16 16 L20 20"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "arrow-downward",
|
|
29
|
+
path: "M5 9L12 16L19 9"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "arrow-upward",
|
|
33
|
+
path: "M5 16L12 9L19 16"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: "arrow-forward",
|
|
37
|
+
path: "M15 5L8 12L15 19"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "arrow-backward",
|
|
41
|
+
path: "M8 5L15 12L8 19"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: "delete",
|
|
45
|
+
path: "M8 4L16 4M8 5L16 5M3 6L21 6M6 8L6 19L18 19L18 8M10 9L10 16M14 16L14 9"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "close",
|
|
49
|
+
path: "M4 4L20 20M20 4L4 20"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: "close-short",
|
|
53
|
+
path: "M6 6L18 18M18 6L6 18"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: "loading",
|
|
57
|
+
path: "M12 2L12 7M19.54 4.46L16 8M22 12L17 12M19.54 19.54L16 16M12 22L12 17M4.46 19.54L8 16M2 12L7 12M4.47 4.47L8 8"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: "more-dot-square",
|
|
61
|
+
path: "M10 4h2v2h-2v-2m0 1h2m0 1h-2M10 11 h2v2h-2v-2m0 1h2m0 1h-2M10 18 h2v2h-2v-2m0 1h2m0 1h-2"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: "more-dot-square-horizontal",
|
|
65
|
+
path: "M4 11h2v2h-2v-2m0 1h2m0 1h-2M11 11h2v2h-2v-2m0 1h2m0 1h-2M18 11h2v2h-2v-2m0 1h2m0 1h-2"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: "more-line",
|
|
69
|
+
path: "M5 5h14l0 1h-14zM5 11h14l0 1h-14zM5 17h14l0 1h-14z"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "more-dot-circle",
|
|
73
|
+
path: "M11 6a1 1 0 0 0 2 0a1 1 0 0 0 -2 0m1 0h1M11 12a1 1 0 0 0 2 0a1 1 0 0 0 -2 0m1 0h1M11 18a1 1 0 0 0 2 0a1 1 0 0 0 -2 0m1 0h1"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "more-dot-circle-horizontal",
|
|
77
|
+
path: "M4 12a1 1 0 0 0 2 0a1 1 0 0 0 -2 0m1 0h1M11 12a1 1 0 0 0 2 0a1 1 0 0 0 -2 0m1 0h1M18 12a1 1 0 0 0 2 0a1 1 0 0 0 -2 0m1 0h1"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: "copy",
|
|
81
|
+
path: "M16 4h-11v11M9 8v12h11v-12h-11"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: "copy-closure",
|
|
85
|
+
path: "M16 8v-4h-11v11h4M9 8v12h11v-12h-11"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: "star",
|
|
89
|
+
path: "M12 2L14.63 9.25L22 9.64L16.26 14.51L18.18 22L12 17.77L5.82 22L7.74 14.51L2 9.64L9.37 9.25L12 2"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: "star-fill",
|
|
93
|
+
path: "M12 2L14.63 9.25L22 9.64L16.26 14.51L18.18 22L12 17.77L5.82 22L7.74 14.51L2 9.64L9.37 9.25L12 2",
|
|
94
|
+
fill: "currentColor"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
name: "help",
|
|
98
|
+
path: "M3 12A9 9 0 1 0 21 12A9 9 0 1 0 3 12m5.5 -2A3 3 0 1 1 14.5 10c0,2 -2.5,2 -2.5,4m0 3l0 1"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: "more-dot-circle-outline-vertical",
|
|
102
|
+
path: "M3 12A9 9 0 1 0 21 12A9 9 0 1 0 3 12M11.5 7.5a0.5 0.5 0 0 0 1 0a0.5 0.5 0 0 0 -1 0M11.5 12a0.5 0.5 0 0 0 1 0a0.5 0.5 0 0 0 -1 0M11.5 16.5a0.5 0.5 0 0 0 1 0a0.5 0.5 0 0 0 -1 0"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: "more-dot-circle-outline-horizontal",
|
|
106
|
+
path: "M3 12A9 9 0 1 0 21 12A9 9 0 1 0 3 12M7.5 12a0.5 0.5 0 0 0 1 0a0.5 0.5 0 0 0 -1 0M11.8 12a0.5 0.5 0 0 0 1 0a0.5 0.5 0 0 0 -1 0M16 12a0.5 0.5 0 0 0 1 0a0.5 0.5 0 0 0 -1 0"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: "exclam",
|
|
110
|
+
path: "M3 12A9 9 0 1 0 21 12A9 9 0 1 0 3 12M11.5 7l1 0l-0.5 6l-0.5 -6m0.5 0l0 6m-0.5 3a0.5 0.5 0 0 0 1 0a0.5 0.5 0 0 0 -1 0"
|
|
111
|
+
}
|
|
112
|
+
], t = e.map((e) => e.name);
|
|
113
|
+
//#endregion
|
|
114
|
+
export { t as iconNames, e as svgIcons };
|
package/es/index.mjs
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { toPascalCase as e, withInstall as t } from "./packages/utils/vue/index.mjs";
|
|
2
|
+
import "./packages/utils/index.mjs";
|
|
3
|
+
import { ReSvgIcon as n } from "./packages/components/svg-icon/index.mjs";
|
|
4
|
+
import { iconNames as r, svgIcons as i } from "./constants.mjs";
|
|
5
|
+
import { defineComponent as a, h as o } from "vue";
|
|
6
|
+
//#region index.ts
|
|
7
|
+
var s = (e) => typeof e == "string" && r.includes(e) ? c(e) : e, c = (r) => {
|
|
8
|
+
let s = i.find((e) => e.name === r);
|
|
9
|
+
if (s) return t(a({
|
|
10
|
+
name: e(r),
|
|
11
|
+
inheritAttrs: !0,
|
|
12
|
+
props: {
|
|
13
|
+
size: {
|
|
14
|
+
type: [String, Number],
|
|
15
|
+
default: "1em"
|
|
16
|
+
},
|
|
17
|
+
color: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: void 0
|
|
20
|
+
},
|
|
21
|
+
fill: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: s.fill || void 0
|
|
24
|
+
},
|
|
25
|
+
spin: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: !1
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
setup(e, { attrs: t }) {
|
|
31
|
+
return () => o(n, {
|
|
32
|
+
name: s.name,
|
|
33
|
+
path: s.path,
|
|
34
|
+
size: e.size,
|
|
35
|
+
color: e.color,
|
|
36
|
+
spin: e.spin,
|
|
37
|
+
fill: e.fill,
|
|
38
|
+
...t
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}));
|
|
42
|
+
}, l = c("arrow-right"), u = c("arrow-left"), d = c("arrow-up"), f = c("arrow-down"), p = c("search"), m = c("search-bold"), h = c("arrow-downward"), g = c("arrow-upward"), _ = c("arrow-forward"), v = c("arrow-backward"), y = c("delete"), b = c("close"), x = c("close-short"), S = c("loading"), C = c("more-dot-square"), w = c("more-dot-square-horizontal"), T = c("more-line"), E = c("more-dot-circle"), D = c("more-dot-circle-horizontal"), O = c("copy"), k = c("copy-closure"), A = c("star"), j = c("star-fill"), M = c("help"), N = c("exclam"), P = c("more-dot-circle-outline-vertical"), F = c("more-dot-circle-outline-horizontal");
|
|
43
|
+
//#endregion
|
|
44
|
+
export { v as ArrowBackward, f as ArrowDown, h as ArrowDownward, _ as ArrowForward, u as ArrowLeft, l as ArrowRight, d as ArrowUp, g as ArrowUpward, b as Close, x as CloseShort, O as Copy, k as CopyClosure, y as Delete, N as Exclam, M as Help, S as Loading, E as MoreDotCircle, D as MoreDotCircleHorizontal, C as MoreDotSquare, w as MoreDotSquareHorizontal, T as MoreLine, p as Search, m as SearchBold, A as Star, j as StarFill, c as createIcon, s as getIcon, r as iconNames, F as moreDotCircleOutlineHorizontal, P as moreDotCircleOutlineVertical, i as svgIcons };
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import { bypassFilter as e, createFilterWrapper as t, getLifeCycleTarget as n, injectLocal as r, isClient as i, isObject as a, noop as o, pausableFilter as s, pxValue as c, toArray as l, toRef as u, tryOnMounted as d, watchImmediate as f, watchPausable as p, watchWithFilter as m } from "../../../../../@vueuse_shared@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs";
|
|
2
|
+
import { computed as h, getCurrentInstance as g, hasInjectionContext as _, nextTick as v, onMounted as y, ref as b, shallowRef as x, toValue as S, unref as C, watch as w, watchEffect as T } from "vue";
|
|
3
|
+
//#region ../../node_modules/.pnpm/@vueuse+core@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js
|
|
4
|
+
var E = i ? window : void 0;
|
|
5
|
+
i && window.document, i && window.navigator, i && window.location;
|
|
6
|
+
function D(e) {
|
|
7
|
+
var t;
|
|
8
|
+
let n = S(e);
|
|
9
|
+
return (t = n == null ? void 0 : n.$el) == null ? n : t;
|
|
10
|
+
}
|
|
11
|
+
function O(...e) {
|
|
12
|
+
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = h(() => {
|
|
13
|
+
let t = l(S(e[0])).filter((e) => e != null);
|
|
14
|
+
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
15
|
+
});
|
|
16
|
+
return f(() => {
|
|
17
|
+
var t, r;
|
|
18
|
+
return [
|
|
19
|
+
(t = (r = n.value) == null ? void 0 : r.map((e) => D(e))) == null ? [E].filter((e) => e != null) : t,
|
|
20
|
+
l(S(n.value ? e[1] : e[0])),
|
|
21
|
+
l(C(n.value ? e[2] : e[1])),
|
|
22
|
+
S(n.value ? e[3] : e[2])
|
|
23
|
+
];
|
|
24
|
+
}, ([e, n, r, i], o, s) => {
|
|
25
|
+
if (!(e != null && e.length) || !(n != null && n.length) || !(r != null && r.length)) return;
|
|
26
|
+
let c = a(i) ? { ...i } : i, l = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, c))));
|
|
27
|
+
s(() => {
|
|
28
|
+
l.forEach((e) => e());
|
|
29
|
+
});
|
|
30
|
+
}, { flush: "post" });
|
|
31
|
+
}
|
|
32
|
+
function k() {
|
|
33
|
+
let e = x(!1), t = g();
|
|
34
|
+
return t && y(() => {
|
|
35
|
+
e.value = !0;
|
|
36
|
+
}, t), e;
|
|
37
|
+
}
|
|
38
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
39
|
+
function A(e) {
|
|
40
|
+
let t = k();
|
|
41
|
+
return h(() => (t.value, !!e()));
|
|
42
|
+
}
|
|
43
|
+
var j = Symbol("vueuse-ssr-width");
|
|
44
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
45
|
+
function M() {
|
|
46
|
+
let e = _() ? r(j, null) : null;
|
|
47
|
+
return typeof e == "number" ? e : void 0;
|
|
48
|
+
}
|
|
49
|
+
function N(e, t = {}) {
|
|
50
|
+
let { window: n = E, ssrWidth: r = /* @__PURE__ */ M() } = t, i = /* @__PURE__ */ A(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), a = x(typeof r == "number"), o = x(), s = x(!1);
|
|
51
|
+
return T(() => {
|
|
52
|
+
if (a.value) {
|
|
53
|
+
a.value = !i.value;
|
|
54
|
+
let t = S(e).split(",");
|
|
55
|
+
s.value = t.some((e) => {
|
|
56
|
+
let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), i = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = !!(n || i);
|
|
57
|
+
return n && a && (a = r >= c(n[1])), i && a && (a = r <= c(i[1])), t ? !a : a;
|
|
58
|
+
});
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
i.value && (o.value = n.matchMedia(S(e)), s.value = o.value.matches);
|
|
62
|
+
}), O(o, "change", (e) => {
|
|
63
|
+
s.value = e.matches;
|
|
64
|
+
}, { passive: !0 }), h(() => s.value);
|
|
65
|
+
}
|
|
66
|
+
var P = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, F = "__vueuse_ssr_handlers__", I = /* #__PURE__ */ L();
|
|
67
|
+
function L() {
|
|
68
|
+
return F in P || (P[F] = P[F] || {}), P[F];
|
|
69
|
+
}
|
|
70
|
+
function R(e, t) {
|
|
71
|
+
return I[e] || t;
|
|
72
|
+
}
|
|
73
|
+
function z(e) {
|
|
74
|
+
return N("(prefers-color-scheme: dark)", e);
|
|
75
|
+
}
|
|
76
|
+
function B(e) {
|
|
77
|
+
return e == null ? "any" : e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof Date ? "date" : typeof e == "boolean" ? "boolean" : typeof e == "string" ? "string" : typeof e == "object" ? "object" : Number.isNaN(e) ? "any" : "number";
|
|
78
|
+
}
|
|
79
|
+
var V = {
|
|
80
|
+
boolean: {
|
|
81
|
+
read: (e) => e === "true",
|
|
82
|
+
write: (e) => String(e)
|
|
83
|
+
},
|
|
84
|
+
object: {
|
|
85
|
+
read: (e) => JSON.parse(e),
|
|
86
|
+
write: (e) => JSON.stringify(e)
|
|
87
|
+
},
|
|
88
|
+
number: {
|
|
89
|
+
read: (e) => Number.parseFloat(e),
|
|
90
|
+
write: (e) => String(e)
|
|
91
|
+
},
|
|
92
|
+
any: {
|
|
93
|
+
read: (e) => e,
|
|
94
|
+
write: (e) => String(e)
|
|
95
|
+
},
|
|
96
|
+
string: {
|
|
97
|
+
read: (e) => e,
|
|
98
|
+
write: (e) => String(e)
|
|
99
|
+
},
|
|
100
|
+
map: {
|
|
101
|
+
read: (e) => new Map(JSON.parse(e)),
|
|
102
|
+
write: (e) => JSON.stringify(Array.from(e.entries()))
|
|
103
|
+
},
|
|
104
|
+
set: {
|
|
105
|
+
read: (e) => new Set(JSON.parse(e)),
|
|
106
|
+
write: (e) => JSON.stringify(Array.from(e))
|
|
107
|
+
},
|
|
108
|
+
date: {
|
|
109
|
+
read: (e) => new Date(e),
|
|
110
|
+
write: (e) => e.toISOString()
|
|
111
|
+
}
|
|
112
|
+
}, H = "vueuse-storage";
|
|
113
|
+
function U(e, t, n, r = {}) {
|
|
114
|
+
var i;
|
|
115
|
+
let { flush: a = "pre", deep: o = !0, listenToStorageChanges: s = !0, writeDefaults: c = !0, mergeDefaults: l = !1, shallow: u, window: f = E, eventFilter: m, onError: g = (e) => {
|
|
116
|
+
console.error(e);
|
|
117
|
+
}, initOnMounted: _ } = r, y = (u ? x : b)(typeof t == "function" ? t() : t), C = h(() => S(e));
|
|
118
|
+
if (!n) try {
|
|
119
|
+
n = R("getDefaultStorage", () => E == null ? void 0 : E.localStorage)();
|
|
120
|
+
} catch (e) {
|
|
121
|
+
g(e);
|
|
122
|
+
}
|
|
123
|
+
if (!n) return y;
|
|
124
|
+
let T = S(t), D = B(T), k = (i = r.serializer) == null ? V[D] : i, { pause: A, resume: j } = p(y, (e) => P(e), {
|
|
125
|
+
flush: a,
|
|
126
|
+
deep: o,
|
|
127
|
+
eventFilter: m
|
|
128
|
+
});
|
|
129
|
+
w(C, () => I(), { flush: a });
|
|
130
|
+
let M = !1;
|
|
131
|
+
f && s && (n instanceof Storage ? O(f, "storage", (e) => {
|
|
132
|
+
_ && !M || I(e);
|
|
133
|
+
}, { passive: !0 }) : O(f, H, (e) => {
|
|
134
|
+
_ && !M || L(e);
|
|
135
|
+
})), _ ? d(() => {
|
|
136
|
+
M = !0, I();
|
|
137
|
+
}) : I();
|
|
138
|
+
function N(e, t) {
|
|
139
|
+
if (f) {
|
|
140
|
+
let r = {
|
|
141
|
+
key: C.value,
|
|
142
|
+
oldValue: e,
|
|
143
|
+
newValue: t,
|
|
144
|
+
storageArea: n
|
|
145
|
+
};
|
|
146
|
+
f.dispatchEvent(n instanceof Storage ? new StorageEvent("storage", r) : new CustomEvent(H, { detail: r }));
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
function P(e) {
|
|
150
|
+
try {
|
|
151
|
+
let t = n.getItem(C.value);
|
|
152
|
+
if (e == null) N(t, null), n.removeItem(C.value);
|
|
153
|
+
else {
|
|
154
|
+
let r = k.write(e);
|
|
155
|
+
t !== r && (n.setItem(C.value, r), N(t, r));
|
|
156
|
+
}
|
|
157
|
+
} catch (e) {
|
|
158
|
+
g(e);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
function F(e) {
|
|
162
|
+
let t = e ? e.newValue : n.getItem(C.value);
|
|
163
|
+
if (t == null) return c && T != null && n.setItem(C.value, k.write(T)), T;
|
|
164
|
+
if (!e && l) {
|
|
165
|
+
let e = k.read(t);
|
|
166
|
+
return typeof l == "function" ? l(e, T) : D === "object" && !Array.isArray(e) ? {
|
|
167
|
+
...T,
|
|
168
|
+
...e
|
|
169
|
+
} : e;
|
|
170
|
+
} else if (typeof t != "string") return t;
|
|
171
|
+
else return k.read(t);
|
|
172
|
+
}
|
|
173
|
+
function I(e) {
|
|
174
|
+
if (!(e && e.storageArea !== n)) {
|
|
175
|
+
if (e && e.key == null) {
|
|
176
|
+
y.value = T;
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
if (!(e && e.key !== C.value)) {
|
|
180
|
+
A();
|
|
181
|
+
try {
|
|
182
|
+
let t = k.write(y.value);
|
|
183
|
+
(e === void 0 || (e == null ? void 0 : e.newValue) !== t) && (y.value = F(e));
|
|
184
|
+
} catch (e) {
|
|
185
|
+
g(e);
|
|
186
|
+
} finally {
|
|
187
|
+
e ? v(j) : j();
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
function L(e) {
|
|
193
|
+
I(e.detail);
|
|
194
|
+
}
|
|
195
|
+
return y;
|
|
196
|
+
}
|
|
197
|
+
var W = "*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";
|
|
198
|
+
function G(e = {}) {
|
|
199
|
+
let { selector: t = "html", attribute: n = "class", initialValue: r = "auto", window: i = E, storage: a, storageKey: o = "vueuse-color-scheme", listenToStorageChanges: s = !0, storageRef: c, emitAuto: l, disableTransition: f = !0 } = e, p = {
|
|
200
|
+
auto: "",
|
|
201
|
+
light: "light",
|
|
202
|
+
dark: "dark",
|
|
203
|
+
...e.modes || {}
|
|
204
|
+
}, m = z({ window: i }), g = h(() => m.value ? "dark" : "light"), _ = c || (o == null ? u(r) : U(o, r, a, {
|
|
205
|
+
window: i,
|
|
206
|
+
listenToStorageChanges: s
|
|
207
|
+
})), v = h(() => _.value === "auto" ? g.value : _.value), y = R("updateHTMLAttrs", (e, t, n) => {
|
|
208
|
+
let r = typeof e == "string" ? i == null ? void 0 : i.document.querySelector(e) : D(e);
|
|
209
|
+
if (!r) return;
|
|
210
|
+
let a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), s = null;
|
|
211
|
+
if (t === "class") {
|
|
212
|
+
let e = n.split(/\s/g);
|
|
213
|
+
Object.values(p).flatMap((e) => (e || "").split(/\s/g)).filter(Boolean).forEach((t) => {
|
|
214
|
+
e.includes(t) ? a.add(t) : o.add(t);
|
|
215
|
+
});
|
|
216
|
+
} else s = {
|
|
217
|
+
key: t,
|
|
218
|
+
value: n
|
|
219
|
+
};
|
|
220
|
+
if (a.size === 0 && o.size === 0 && s === null) return;
|
|
221
|
+
let c;
|
|
222
|
+
f && (c = i.document.createElement("style"), c.appendChild(document.createTextNode(W)), i.document.head.appendChild(c));
|
|
223
|
+
for (let e of a) r.classList.add(e);
|
|
224
|
+
for (let e of o) r.classList.remove(e);
|
|
225
|
+
s && r.setAttribute(s.key, s.value), f && (i.getComputedStyle(c).opacity, document.head.removeChild(c));
|
|
226
|
+
});
|
|
227
|
+
function b(e) {
|
|
228
|
+
var r;
|
|
229
|
+
y(t, n, (r = p[e]) == null ? e : r);
|
|
230
|
+
}
|
|
231
|
+
function x(t) {
|
|
232
|
+
e.onChanged ? e.onChanged(t, b) : b(t);
|
|
233
|
+
}
|
|
234
|
+
w(v, x, {
|
|
235
|
+
flush: "post",
|
|
236
|
+
immediate: !0
|
|
237
|
+
}), d(() => x(v.value));
|
|
238
|
+
let S = h({
|
|
239
|
+
get() {
|
|
240
|
+
return l ? _.value : v.value;
|
|
241
|
+
},
|
|
242
|
+
set(e) {
|
|
243
|
+
_.value = e;
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
return Object.assign(S, {
|
|
247
|
+
store: _,
|
|
248
|
+
system: g,
|
|
249
|
+
state: v
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
function K(e = {}) {
|
|
253
|
+
let { valueDark: t = "dark", valueLight: n = "" } = e, r = G({
|
|
254
|
+
...e,
|
|
255
|
+
onChanged: (t, n) => {
|
|
256
|
+
var r;
|
|
257
|
+
e.onChanged ? (r = e.onChanged) == null || r.call(e, t === "dark", n, t) : n(t);
|
|
258
|
+
},
|
|
259
|
+
modes: {
|
|
260
|
+
dark: t,
|
|
261
|
+
light: n
|
|
262
|
+
}
|
|
263
|
+
}), i = h(() => r.system.value);
|
|
264
|
+
return h({
|
|
265
|
+
get() {
|
|
266
|
+
return r.value === "dark";
|
|
267
|
+
},
|
|
268
|
+
set(e) {
|
|
269
|
+
let t = e ? "dark" : "light";
|
|
270
|
+
i.value === t ? r.value = "auto" : r.value = t;
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
//#endregion
|
|
275
|
+
export { V as StorageSerializers, e as bypassFilter, t as createFilterWrapper, H as customStorageEventName, E as defaultWindow, n as getLifeCycleTarget, R as getSSRHandler, r as injectLocal, i as isClient, a as isObject, o as noop, s as pausableFilter, c as pxValue, l as toArray, u as toRef, d as tryOnMounted, D as unrefElement, G as useColorMode, K as useDark, O as useEventListener, N as useMediaQuery, k as useMounted, z as usePreferredDark, M as useSSRWidth, U as useStorage, A as useSupported, f as watchImmediate, p as watchPausable, m as watchWithFilter };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { customRef as e, getCurrentInstance as t, getCurrentScope as n, hasInjectionContext as r, inject as i, nextTick as a, onMounted as o, readonly as s, ref as c, shallowReadonly as l, toRef as u, watch as d } from "vue";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@vueuse+shared@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js
|
|
3
|
+
var f = /* @__PURE__ */ new WeakMap(), p = (...e) => {
|
|
4
|
+
var a;
|
|
5
|
+
let o = e[0], s = (a = t()) == null ? void 0 : a.proxy, c = s == null ? n() : s;
|
|
6
|
+
if (c == null && !r()) throw Error("injectLocal must be called in setup");
|
|
7
|
+
return c && f.has(c) && o in f.get(c) ? f.get(c)[o] : i(...e);
|
|
8
|
+
}, m = typeof window < "u" && typeof document < "u";
|
|
9
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
10
|
+
var h = Object.prototype.toString, g = (e) => h.call(e) === "[object Object]", _ = () => {};
|
|
11
|
+
function v(...t) {
|
|
12
|
+
if (t.length !== 1) return u(...t);
|
|
13
|
+
let n = t[0];
|
|
14
|
+
return typeof n == "function" ? s(e(() => ({
|
|
15
|
+
get: n,
|
|
16
|
+
set: _
|
|
17
|
+
}))) : c(n);
|
|
18
|
+
}
|
|
19
|
+
function y(e, t) {
|
|
20
|
+
function n(...n) {
|
|
21
|
+
return new Promise((r, i) => {
|
|
22
|
+
Promise.resolve(e(() => t.apply(this, n), {
|
|
23
|
+
fn: t,
|
|
24
|
+
thisArg: this,
|
|
25
|
+
args: n
|
|
26
|
+
})).then(r).catch(i);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
return "cancel" in e && Object.assign(n, {
|
|
30
|
+
cancel: e.cancel,
|
|
31
|
+
flush: e.flush,
|
|
32
|
+
isPending: e.isPending
|
|
33
|
+
}), n;
|
|
34
|
+
}
|
|
35
|
+
var b = (e) => e();
|
|
36
|
+
function x(e = b, t = {}) {
|
|
37
|
+
let { initialState: n = "active" } = t, r = v(n === "active");
|
|
38
|
+
function i() {
|
|
39
|
+
r.value = !1;
|
|
40
|
+
}
|
|
41
|
+
function a() {
|
|
42
|
+
r.value = !0;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
isActive: l(r),
|
|
46
|
+
pause: i,
|
|
47
|
+
resume: a,
|
|
48
|
+
eventFilter: (...t) => {
|
|
49
|
+
r.value && e(...t);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function S(e) {
|
|
54
|
+
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
55
|
+
}
|
|
56
|
+
function C(e) {
|
|
57
|
+
return Array.isArray(e) ? e : [e];
|
|
58
|
+
}
|
|
59
|
+
function w(e) {
|
|
60
|
+
return e || t();
|
|
61
|
+
}
|
|
62
|
+
function T(e, t, n = {}) {
|
|
63
|
+
let { eventFilter: r = b, ...i } = n;
|
|
64
|
+
return d(e, y(r, t), i);
|
|
65
|
+
}
|
|
66
|
+
function E(e, t, n = {}) {
|
|
67
|
+
let { eventFilter: r, initialState: i = "active", ...a } = n, { eventFilter: o, pause: s, resume: c, isActive: l } = x(r, { initialState: i });
|
|
68
|
+
return {
|
|
69
|
+
stop: T(e, t, {
|
|
70
|
+
...a,
|
|
71
|
+
eventFilter: o
|
|
72
|
+
}),
|
|
73
|
+
pause: s,
|
|
74
|
+
resume: c,
|
|
75
|
+
isActive: l
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function D(e, t = !0, n) {
|
|
79
|
+
w(n) ? o(e, n) : t ? e() : a(e);
|
|
80
|
+
}
|
|
81
|
+
function O(e, t, n) {
|
|
82
|
+
return d(e, t, {
|
|
83
|
+
...n,
|
|
84
|
+
immediate: !0
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
export { b as bypassFilter, y as createFilterWrapper, w as getLifeCycleTarget, p as injectLocal, m as isClient, g as isObject, _ as noop, x as pausableFilter, S as pxValue, C as toArray, v as toRef, D as tryOnMounted, O as watchImmediate, E as watchPausable, T as watchWithFilter };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { toPx as e } from "../../../utils/util.mjs";
|
|
2
|
+
import "../../../utils/index.mjs";
|
|
3
|
+
import "../style/index.mjs";
|
|
4
|
+
import { useNamespace as t } from "../../../composables/use-namespace/index.mjs";
|
|
5
|
+
import "../../../composables/index.mjs";
|
|
6
|
+
import { computed as n, createElementBlock as r, createElementVNode as i, defineComponent as a, normalizeClass as o, openBlock as s, unref as c } from "vue";
|
|
7
|
+
//#region ../components/svg-icon/src/svg-icon.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var l = [
|
|
9
|
+
"width",
|
|
10
|
+
"height",
|
|
11
|
+
"stroke"
|
|
12
|
+
], u = [
|
|
13
|
+
"d",
|
|
14
|
+
"name",
|
|
15
|
+
"fill"
|
|
16
|
+
], d = /*@__PURE__*/ a({
|
|
17
|
+
name: "ReSvgIcon",
|
|
18
|
+
__name: "svg-icon",
|
|
19
|
+
props: {
|
|
20
|
+
name: { default: () => void 0 },
|
|
21
|
+
path: { default: "" },
|
|
22
|
+
size: { default: 16 },
|
|
23
|
+
fill: { default: () => void 0 },
|
|
24
|
+
color: { default: "currentColor" },
|
|
25
|
+
spin: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: !1
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
setup(a) {
|
|
31
|
+
let { n: d, ns: f } = t("svg-icon"), p = n(() => e(a.size)), m = n(() => e(a.size));
|
|
32
|
+
return (e, t) => (s(), r("svg", {
|
|
33
|
+
class: o([c(d)(), { [c(f)("spinner")]: a.spin }]),
|
|
34
|
+
viewBox: "0 0 24 24",
|
|
35
|
+
width: p.value,
|
|
36
|
+
height: m.value,
|
|
37
|
+
fill: "none",
|
|
38
|
+
"stroke-linecap": "round",
|
|
39
|
+
"stroke-linejoin": "round",
|
|
40
|
+
"stroke-width": "2",
|
|
41
|
+
stroke: a.color,
|
|
42
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
43
|
+
"aria-hidden": "true"
|
|
44
|
+
}, [i("path", {
|
|
45
|
+
d: a.path,
|
|
46
|
+
name: a.name,
|
|
47
|
+
fill: a.fill
|
|
48
|
+
}, null, 8, u)], 10, l));
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
//#endregion
|
|
52
|
+
export { d as default };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region ../composables/use-namespace/index.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = (t, n, r, i) => {
|
|
4
|
+
let a = `re-${t || e}`;
|
|
5
|
+
return n && (a += `-${n}`), r && (a += `--${r}`), i && (a += `__${i}`), a.toLowerCase();
|
|
6
|
+
};
|
|
7
|
+
return {
|
|
8
|
+
libName: "rappel-ui",
|
|
9
|
+
prefix: "re",
|
|
10
|
+
statePrefix: "is",
|
|
11
|
+
n: (e = "") => t(e),
|
|
12
|
+
ng: (e) => t("", e),
|
|
13
|
+
nm: (e) => t("", "", e),
|
|
14
|
+
ngm: (e, n) => t("", e, n),
|
|
15
|
+
ns: (e) => t("", "", "", e),
|
|
16
|
+
ngs: (e, n) => t("", e, "", n),
|
|
17
|
+
cls: t,
|
|
18
|
+
is: (e, t = void 0) => t ? `is-${e}` : ""
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { e as useNamespace };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useNamespace as e } from "../use-namespace/index.mjs";
|
|
2
|
+
import { useDark as t } from "../../../node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs";
|
|
3
|
+
import "../index.mjs";
|
|
4
|
+
import "vue";
|
|
5
|
+
//#region ../composables/use-theme/index.ts
|
|
6
|
+
var { libName: n } = e("");
|
|
7
|
+
t({
|
|
8
|
+
storageKey: `${n}-color-scheme`,
|
|
9
|
+
selector: "html",
|
|
10
|
+
attribute: "class",
|
|
11
|
+
valueDark: "dark",
|
|
12
|
+
valueLight: "light"
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "vue";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--re-color-primary:#9e88ff;--re-color-text-darkest:#000;--re-color-text-darker:#303131;--re-color-text-base:#606062;--re-color-text-dark:#909093;--re-color-text-light:#b2b2b6;--re-color-text-lighter:#cdcdd1;--re-color-text-lightest:#fff;--re-color-border-darker:#c3c3cb;--re-color-border-dark:#d0d0d8;--re-color-border-base:#dbdbe0;--re-color-border-light:#e4e4e8;--re-color-border-lighter:#ededef;--re-color-border-lightest:#efeff3;--re-color-fill-darker:#d7d7dc;--re-color-fill-dark:#e8e8ec;--re-color-fill-base:#ededf0;--re-color-fill-light:#f1f1f4;--re-color-fill-lighter:#f6f6f7;--re-color-fill-lightest:#f8f8f9;--re-color-fill-blank:#fff;--re-color-fill-transparent:transparent;--re-color-primary-base:#9e88ff;--re-color-primary-hover:#917deb;--re-color-primary-active:#8572d6;--re-color-primary-shade-9:#a894ff;--re-color-primary-shade-8:#b1a0ff;--re-color-primary-shade-7:#bbacff;--re-color-primary-shade-6:#c5b8ff;--re-color-primary-shade-5:#cfc4ff;--re-color-primary-shade-4:#d8cfff;--re-color-primary-shade-3:#e2dbff;--re-color-primary-shade-2:#ece7ff;--re-color-primary-shade-1:#f5f3ff;--re-color-success-base:#06b56d;--re-color-success-hover:#06a764;--re-color-success-active:#05985c;--re-color-success-shade-9:#1fbc7c;--re-color-success-shade-8:#38c48a;--re-color-success-shade-7:#51cb99;--re-color-success-shade-6:#6ad3a7;--re-color-success-shade-5:#83dab6;--re-color-success-shade-4:#9be1c5;--re-color-success-shade-3:#b4e9d3;--re-color-success-shade-2:#cdf0e2;--re-color-success-shade-1:#e6f8f0;--re-color-danger-base:#ee6979;--re-color-danger-hover:#db616f;--re-color-danger-active:#c85866;--re-color-danger-shade-9:#f07886;--re-color-danger-shade-8:#f18794;--re-color-danger-shade-7:#f396a1;--re-color-danger-shade-6:#f5a5af;--re-color-danger-shade-5:#f7b4bc;--re-color-danger-shade-4:#f8c3c9;--re-color-danger-shade-3:#fad2d7;--re-color-danger-shade-2:#fce1e4;--re-color-danger-shade-1:#fdf0f2;--re-color-warning-base:#e2a01d;--re-color-warning-hover:#d0931b;--re-color-warning-active:#be8618;--re-color-warning-shade-9:#e5aa34;--re-color-warning-shade-8:#e8b34a;--re-color-warning-shade-7:#ebbd61;--re-color-warning-shade-6:#eec677;--re-color-warning-shade-5:#f1d08e;--re-color-warning-shade-4:#f3d9a5;--re-color-warning-shade-3:#f6e3bb;--re-color-warning-shade-2:#f9ecd2;--re-color-warning-shade-1:#fcf6e8;--re-color-info-base:#8e8e91;--re-color-info-hover:#838385;--re-color-info-active:#77777a;--re-color-info-shade-9:#99999c;--re-color-info-shade-8:#a5a5a7;--re-color-info-shade-7:#b0b0b2;--re-color-info-shade-6:#bbbbbd;--re-color-info-shade-5:#c7c7c8;--re-color-info-shade-4:#d2d2d3;--re-color-info-shade-3:#ddddde;--re-color-info-shade-2:#e8e8e9;--re-color-info-shade-1:#f4f4f4}:root.dark{--re-color-text-darkest:#fff;--re-color-text-darker:#e0e0e2;--re-color-text-base:#d0d0d4;--re-color-text-dark:#b2b2b6;--re-color-text-light:#909093;--re-color-text-lighter:#606062;--re-color-text-lightest:#303131;--re-color-border-darker:#8e8e91;--re-color-border-dark:#6b6b6f;--re-color-border-base:#5b5b5f;--re-color-border-light:#4d4d51;--re-color-border-lighter:#3b3b3d;--re-color-border-lightest:#2c2c2e;--re-color-fill-darker:#6b6b6f;--re-color-fill-dark:#5b5b5f;--re-color-fill-base:#4d4d51;--re-color-fill-light:#3b3b3d;--re-color-fill-lighter:#323236;--re-color-fill-lightest:#2c2c2e;--re-color-fill-blank:#1b1b1f;--re-color-fill-transparent:transparent;--re-color-primary-base:#9e88ff;--re-color-primary-hover:#917deb;--re-color-primary-active:#8572d6;--re-color-primary-shade-9:#937fea;--re-color-primary-shade-8:#8877d6;--re-color-primary-shade-7:#7d6ec1;--re-color-primary-shade-6:#7265ad;--re-color-primary-shade-5:#675d98;--re-color-primary-shade-4:#5c5483;--re-color-primary-shade-3:#514b6f;--re-color-primary-shade-2:#46425a;--re-color-primary-shade-1:#3b3a46;--re-color-success-base:#06b56d;--re-color-success-hover:#06a764;--re-color-success-active:#05985c;--re-color-success-shade-9:#0aa867;--re-color-success-shade-8:#0e9b61;--re-color-success-shade-7:#138d5b;--re-color-success-shade-6:#178055;--re-color-success-shade-5:#1b734f;--re-color-success-shade-4:#1f6649;--re-color-success-shade-3:#235943;--re-color-success-shade-2:#284b3d;--re-color-success-shade-1:#2c3e37;--re-color-danger-base:#ee6979;--re-color-danger-hover:#db616f;--re-color-danger-active:#c85866;--re-color-danger-shade-9:#db6372;--re-color-danger-shade-8:#c85e6b;--re-color-danger-shade-7:#b55863;--re-color-danger-shade-6:#a2535c;--re-color-danger-shade-5:#8f4d55;--re-color-danger-shade-4:#7c474e;--re-color-danger-shade-3:#694247;--re-color-danger-shade-2:#563c3f;--re-color-danger-shade-1:#433738;--re-color-warning-base:#e2a01d;--re-color-warning-hover:#d0931b;--re-color-warning-active:#be8618;--re-color-warning-shade-9:#d0951f;--re-color-warning-shade-8:#be8a21;--re-color-warning-shade-7:#ad7f23;--re-color-warning-shade-6:#9b7425;--re-color-warning-shade-5:#896927;--re-color-warning-shade-4:#775d29;--re-color-warning-shade-3:#65522b;--re-color-warning-shade-2:#54472d;--re-color-warning-shade-1:#423c2f;--re-color-info-base:#8e8e91;--re-color-info-hover:#838385;--re-color-info-active:#77777a;--re-color-info-shade-9:#858587;--re-color-info-shade-8:#7b7b7e;--re-color-info-shade-7:#727274;--re-color-info-shade-6:#68696b;--re-color-info-shade-5:#5f6061;--re-color-info-shade-4:#565657;--re-color-info-shade-3:#4c4d4e;--re-color-info-shade-2:#434444;--re-color-info-shade-1:#393a3b}:root{--re-root-font-size:16px;--re-base-font-size:14px;--re-base-border-radius:4px;font-size:var(--re-root-font-size);--base-font-family:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Microsoft YaHei", "微软雅黑", Arial, "Noto Sans SC", sans-serif;--code-font-family:"JetBrains Mono", "ui-monospace", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace}*,:before,:after{box-sizing:border-box;-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;scroll-behavior:smooth;font-weight:400}body{font-size:var(--re-base-font-size);font-family:var(--base-font-family);margin:0;padding:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.re-svg-icon{vertical-align:middle;display:inline-block}.re-svg-icon__spinner{animation:1s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { warn as e } from "vue";
|
|
2
|
+
//#region ../utils/vue/index.ts
|
|
3
|
+
var t = (t, n) => {
|
|
4
|
+
if (!t) return t;
|
|
5
|
+
if (t.install = (n) => {
|
|
6
|
+
t.name ? n.component(t.name, t) : e("can't find the component name, use defineOptions() to configure it", t);
|
|
7
|
+
}, n) for (let [e, r] of Object.entries(n)) t[e] = r, r.install = (e) => {
|
|
8
|
+
e.component(r.name, r);
|
|
9
|
+
};
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
function n(e) {
|
|
13
|
+
return e.split("-").map((e) => e.slice(0, 1).toUpperCase() + e.slice(1)).join("");
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { n as toPascalCase, t as withInstall };
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rappel-ui/svg-icons",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "",
|
|
5
|
-
"main": "./
|
|
6
|
-
"module": "./
|
|
7
|
-
"types": "./
|
|
5
|
+
"main": "./cjs/index.js",
|
|
6
|
+
"module": "./es/index.mjs",
|
|
7
|
+
"types": "./es/index.d.ts",
|
|
8
8
|
"publishConfig": {
|
|
9
9
|
"access": "public",
|
|
10
10
|
"directory": "dist"
|
|
@@ -15,9 +15,6 @@
|
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"vue": "^3.2.0"
|
|
17
17
|
},
|
|
18
|
-
"files": [
|
|
19
|
-
"dist"
|
|
20
|
-
],
|
|
21
18
|
"scripts": {
|
|
22
19
|
"clean": "rimraf dist",
|
|
23
20
|
"build": "vite build"
|
package/umd/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("vue")):typeof define==`function`&&define.amd?define([`exports`,`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e[`@rappel-ui/svg-icons`]={},e.Vue))})(this,function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var n=(e,n)=>{if(!e)return e;if(e.install=n=>{e.name?n.component(e.name,e):(0,t.warn)(`can't find the component name, use defineOptions() to configure it`,e)},n)for(let[t,r]of Object.entries(n))e[t]=r,r.install=e=>{e.component(r.name,r)};return e};function r(e){return e.split(`-`).map(e=>e.slice(0,1).toUpperCase()+e.slice(1)).join(``)}function i(e){return parseFloat(e)==e?`${e}px`:e}function a(e){let t=(t,n,r,i)=>{let a=`re-${t||e}`;return n&&(a+=`-${n}`),r&&(a+=`--${r}`),i&&(a+=`__${i}`),a.toLowerCase()};return{libName:`rappel-ui`,prefix:`re`,statePrefix:`is`,n:(e=``)=>t(e),ng:e=>t(``,e),nm:e=>t(``,``,e),ngm:(e,n)=>t(``,e,n),ns:e=>t(``,``,``,e),ngs:(e,n)=>t(``,e,``,n),cls:t,is:(e,t=void 0)=>t?`is-${e}`:``}}var o=new WeakMap,s=(...e)=>{var n;let r=e[0],i=(n=(0,t.getCurrentInstance)())==null?void 0:n.proxy,a=i==null?(0,t.getCurrentScope)():i;if(a==null&&!(0,t.hasInjectionContext)())throw Error(`injectLocal must be called in setup`);return a&&o.has(a)&&r in o.get(a)?o.get(a)[r]:(0,t.inject)(...e)},c=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var l=Object.prototype.toString,u=e=>l.call(e)===`[object Object]`,d=()=>{};function f(...e){if(e.length!==1)return(0,t.toRef)(...e);let n=e[0];return typeof n==`function`?(0,t.readonly)((0,t.customRef)(()=>({get:n,set:d}))):(0,t.ref)(n)}function p(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return`cancel`in e&&Object.assign(n,{cancel:e.cancel,flush:e.flush,isPending:e.isPending}),n}var m=e=>e();function h(e=m,n={}){let{initialState:r=`active`}=n,i=f(r===`active`);function a(){i.value=!1}function o(){i.value=!0}return{isActive:(0,t.shallowReadonly)(i),pause:a,resume:o,eventFilter:(...t)=>{i.value&&e(...t)}}}function g(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function _(e){return Array.isArray(e)?e:[e]}function v(e){return e||(0,t.getCurrentInstance)()}function y(e,n,r={}){let{eventFilter:i=m,...a}=r;return(0,t.watch)(e,p(i,n),a)}function b(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=h(r,{initialState:i});return{stop:y(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function x(e,n=!0,r){v(r)?(0,t.onMounted)(e,r):n?e():(0,t.nextTick)(e)}function S(e,n,r){return(0,t.watch)(e,n,{...r,immediate:!0})}var C=c?window:void 0;c&&window.document,c&&window.navigator,c&&window.location;function w(e){var n;let r=(0,t.toValue)(e);return(n=r==null?void 0:r.$el)==null?r:n}function T(...e){let n=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),r=(0,t.computed)(()=>{let n=_((0,t.toValue)(e[0])).filter(e=>e!=null);return n.every(e=>typeof e!=`string`)?n:void 0});return S(()=>{var n,i;return[(n=(i=r.value)==null?void 0:i.map(e=>w(e)))==null?[C].filter(e=>e!=null):n,_((0,t.toValue)(r.value?e[1]:e[0])),_((0,t.unref)(r.value?e[2]:e[1])),(0,t.toValue)(r.value?e[3]:e[2])]},([e,t,r,i],a,o)=>{if(!(e!=null&&e.length)||!(t!=null&&t.length)||!(r!=null&&r.length))return;let s=u(i)?{...i}:i,c=e.flatMap(e=>t.flatMap(t=>r.map(r=>n(e,t,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function E(){let e=(0,t.shallowRef)(!1),n=(0,t.getCurrentInstance)();return n&&(0,t.onMounted)(()=>{e.value=!0},n),e}function D(e){let n=E();return(0,t.computed)(()=>(n.value,!!e()))}var O=Symbol(`vueuse-ssr-width`);function k(){let e=(0,t.hasInjectionContext)()?s(O,null):null;return typeof e==`number`?e:void 0}function A(e,n={}){let{window:r=C,ssrWidth:i=k()}=n,a=D(()=>r&&`matchMedia`in r&&typeof r.matchMedia==`function`),o=(0,t.shallowRef)(typeof i==`number`),s=(0,t.shallowRef)(),c=(0,t.shallowRef)(!1);return(0,t.watchEffect)(()=>{if(o.value){o.value=!a.value;let n=(0,t.toValue)(e).split(`,`);c.value=n.some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),r=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||r);return n&&a&&(a=i>=g(n[1])),r&&a&&(a=i<=g(r[1])),t?!a:a});return}a.value&&(s.value=r.matchMedia((0,t.toValue)(e)),c.value=s.value.matches)}),T(s,`change`,e=>{c.value=e.matches},{passive:!0}),(0,t.computed)(()=>c.value)}var j=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},M=`__vueuse_ssr_handlers__`,N=ee();function ee(){return M in j||(j[M]=j[M]||{}),j[M]}function P(e,t){return N[e]||t}function F(e){return A(`(prefers-color-scheme: dark)`,e)}function I(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}var te={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},L=`vueuse-storage`;function R(e,n,r,i={}){var a;let{flush:o=`pre`,deep:s=!0,listenToStorageChanges:c=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:d,window:f=C,eventFilter:p,onError:m=e=>{console.error(e)},initOnMounted:h}=i,g=(d?t.shallowRef:t.ref)(typeof n==`function`?n():n),_=(0,t.computed)(()=>(0,t.toValue)(e));if(!r)try{r=P(`getDefaultStorage`,()=>C==null?void 0:C.localStorage)()}catch(e){m(e)}if(!r)return g;let v=(0,t.toValue)(n),y=I(v),S=(a=i.serializer)==null?te[y]:a,{pause:w,resume:E}=b(g,e=>k(e),{flush:o,deep:s,eventFilter:p});(0,t.watch)(_,()=>j(),{flush:o});let D=!1;f&&c&&(r instanceof Storage?T(f,`storage`,e=>{h&&!D||j(e)},{passive:!0}):T(f,L,e=>{h&&!D||M(e)})),h?x(()=>{D=!0,j()}):j();function O(e,t){if(f){let n={key:_.value,oldValue:e,newValue:t,storageArea:r};f.dispatchEvent(r instanceof Storage?new StorageEvent(`storage`,n):new CustomEvent(L,{detail:n}))}}function k(e){try{let t=r.getItem(_.value);if(e==null)O(t,null),r.removeItem(_.value);else{let n=S.write(e);t!==n&&(r.setItem(_.value,n),O(t,n))}}catch(e){m(e)}}function A(e){let t=e?e.newValue:r.getItem(_.value);if(t==null)return l&&v!=null&&r.setItem(_.value,S.write(v)),v;if(!e&&u){let e=S.read(t);return typeof u==`function`?u(e,v):y===`object`&&!Array.isArray(e)?{...v,...e}:e}else if(typeof t!=`string`)return t;else return S.read(t)}function j(e){if(!(e&&e.storageArea!==r)){if(e&&e.key==null){g.value=v;return}if(!(e&&e.key!==_.value)){w();try{let t=S.write(g.value);(e===void 0||(e==null?void 0:e.newValue)!==t)&&(g.value=A(e))}catch(e){m(e)}finally{e?(0,t.nextTick)(E):E()}}}}function M(e){j(e.detail)}return g}var z=`*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function B(e={}){let{selector:n=`html`,attribute:r=`class`,initialValue:i=`auto`,window:a=C,storage:o,storageKey:s=`vueuse-color-scheme`,listenToStorageChanges:c=!0,storageRef:l,emitAuto:u,disableTransition:d=!0}=e,p={auto:``,light:`light`,dark:`dark`,...e.modes||{}},m=F({window:a}),h=(0,t.computed)(()=>m.value?`dark`:`light`),g=l||(s==null?f(i):R(s,i,o,{window:a,listenToStorageChanges:c})),_=(0,t.computed)(()=>g.value===`auto`?h.value:g.value),v=P(`updateHTMLAttrs`,(e,t,n)=>{let r=typeof e==`string`?a==null?void 0:a.document.querySelector(e):w(e);if(!r)return;let i=new Set,o=new Set,s=null;if(t===`class`){let e=n.split(/\s/g);Object.values(p).flatMap(e=>(e||``).split(/\s/g)).filter(Boolean).forEach(t=>{e.includes(t)?i.add(t):o.add(t)})}else s={key:t,value:n};if(i.size===0&&o.size===0&&s===null)return;let c;d&&(c=a.document.createElement(`style`),c.appendChild(document.createTextNode(z)),a.document.head.appendChild(c));for(let e of i)r.classList.add(e);for(let e of o)r.classList.remove(e);s&&r.setAttribute(s.key,s.value),d&&(a.getComputedStyle(c).opacity,document.head.removeChild(c))});function y(e){var t;v(n,r,(t=p[e])==null?e:t)}function b(t){e.onChanged?e.onChanged(t,y):y(t)}(0,t.watch)(_,b,{flush:`post`,immediate:!0}),x(()=>b(_.value));let S=(0,t.computed)({get(){return u?g.value:_.value},set(e){g.value=e}});return Object.assign(S,{store:g,system:h,state:_})}function V(e={}){let{valueDark:n=`dark`,valueLight:r=``}=e,i=B({...e,onChanged:(t,n)=>{var r;e.onChanged?(r=e.onChanged)==null||r.call(e,t===`dark`,n,t):n(t)},modes:{dark:n,light:r}}),a=(0,t.computed)(()=>i.system.value);return(0,t.computed)({get(){return i.value===`dark`},set(e){let t=e?`dark`:`light`;a.value===t?i.value=`auto`:i.value=t}})}var{libName:H}=a(``);V({storageKey:`${H}-color-scheme`,selector:`html`,attribute:`class`,valueDark:`dark`,valueLight:`light`});var U=[`width`,`height`,`stroke`],W=[`d`,`name`,`fill`],G=n((0,t.defineComponent)({name:`ReSvgIcon`,__name:`svg-icon`,props:{name:{default:()=>void 0},path:{default:``},size:{default:16},fill:{default:()=>void 0},color:{default:`currentColor`},spin:{type:Boolean,default:!1}},setup(e){let{n,ns:r}=a(`svg-icon`),o=(0,t.computed)(()=>i(e.size)),s=(0,t.computed)(()=>i(e.size));return(i,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{class:(0,t.normalizeClass)([(0,t.unref)(n)(),{[(0,t.unref)(r)(`spinner`)]:e.spin}]),viewBox:`0 0 24 24`,width:o.value,height:s.value,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,stroke:e.color,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`},[(0,t.createElementVNode)(`path`,{d:e.path,name:e.name,fill:e.fill},null,8,W)],10,U))}})),K=[{name:`arrow-right`,path:`M4 12h16 M20 12L14 6M20 12L14 18`},{name:`arrow-left`,path:`M4 12L20 12M10 6L4 12L10 18`},{name:`arrow-up`,path:`M12 4L12 20M6 10L12 4L18 10`},{name:`arrow-down`,path:`M12 20L12 4M6 14L12 20L18 14`},{name:`search`,path:`M4 10A6 6 0 1 0 16 10 A6 6 0 1 0 4 10M20 20 L14.5 14.5`},{name:`search-bold`,path:`M4 11 A7 7 0 1 0 18 11A7 7 0 1 0 4 11M16 16 L20 20`},{name:`arrow-downward`,path:`M5 9L12 16L19 9`},{name:`arrow-upward`,path:`M5 16L12 9L19 16`},{name:`arrow-forward`,path:`M15 5L8 12L15 19`},{name:`arrow-backward`,path:`M8 5L15 12L8 19`},{name:`delete`,path:`M8 4L16 4M8 5L16 5M3 6L21 6M6 8L6 19L18 19L18 8M10 9L10 16M14 16L14 9`},{name:`close`,path:`M4 4L20 20M20 4L4 20`},{name:`close-short`,path:`M6 6L18 18M18 6L6 18`},{name:`loading`,path:`M12 2L12 7M19.54 4.46L16 8M22 12L17 12M19.54 19.54L16 16M12 22L12 17M4.46 19.54L8 16M2 12L7 12M4.47 4.47L8 8`},{name:`more-dot-square`,path:`M10 4h2v2h-2v-2m0 1h2m0 1h-2M10 11 h2v2h-2v-2m0 1h2m0 1h-2M10 18 h2v2h-2v-2m0 1h2m0 1h-2`},{name:`more-dot-square-horizontal`,path:`M4 11h2v2h-2v-2m0 1h2m0 1h-2M11 11h2v2h-2v-2m0 1h2m0 1h-2M18 11h2v2h-2v-2m0 1h2m0 1h-2`},{name:`more-line`,path:`M5 5h14l0 1h-14zM5 11h14l0 1h-14zM5 17h14l0 1h-14z`},{name:`more-dot-circle`,path:`M11 6a1 1 0 0 0 2 0a1 1 0 0 0 -2 0m1 0h1M11 12a1 1 0 0 0 2 0a1 1 0 0 0 -2 0m1 0h1M11 18a1 1 0 0 0 2 0a1 1 0 0 0 -2 0m1 0h1`},{name:`more-dot-circle-horizontal`,path:`M4 12a1 1 0 0 0 2 0a1 1 0 0 0 -2 0m1 0h1M11 12a1 1 0 0 0 2 0a1 1 0 0 0 -2 0m1 0h1M18 12a1 1 0 0 0 2 0a1 1 0 0 0 -2 0m1 0h1`},{name:`copy`,path:`M16 4h-11v11M9 8v12h11v-12h-11`},{name:`copy-closure`,path:`M16 8v-4h-11v11h4M9 8v12h11v-12h-11`},{name:`star`,path:`M12 2L14.63 9.25L22 9.64L16.26 14.51L18.18 22L12 17.77L5.82 22L7.74 14.51L2 9.64L9.37 9.25L12 2`},{name:`star-fill`,path:`M12 2L14.63 9.25L22 9.64L16.26 14.51L18.18 22L12 17.77L5.82 22L7.74 14.51L2 9.64L9.37 9.25L12 2`,fill:`currentColor`},{name:`help`,path:`M3 12A9 9 0 1 0 21 12A9 9 0 1 0 3 12m5.5 -2A3 3 0 1 1 14.5 10c0,2 -2.5,2 -2.5,4m0 3l0 1`},{name:`more-dot-circle-outline-vertical`,path:`M3 12A9 9 0 1 0 21 12A9 9 0 1 0 3 12M11.5 7.5a0.5 0.5 0 0 0 1 0a0.5 0.5 0 0 0 -1 0M11.5 12a0.5 0.5 0 0 0 1 0a0.5 0.5 0 0 0 -1 0M11.5 16.5a0.5 0.5 0 0 0 1 0a0.5 0.5 0 0 0 -1 0`},{name:`more-dot-circle-outline-horizontal`,path:`M3 12A9 9 0 1 0 21 12A9 9 0 1 0 3 12M7.5 12a0.5 0.5 0 0 0 1 0a0.5 0.5 0 0 0 -1 0M11.8 12a0.5 0.5 0 0 0 1 0a0.5 0.5 0 0 0 -1 0M16 12a0.5 0.5 0 0 0 1 0a0.5 0.5 0 0 0 -1 0`},{name:`exclam`,path:`M3 12A9 9 0 1 0 21 12A9 9 0 1 0 3 12M11.5 7l1 0l-0.5 6l-0.5 -6m0.5 0l0 6m-0.5 3a0.5 0.5 0 0 0 1 0a0.5 0.5 0 0 0 -1 0`}],q=K.map(e=>e.name),J=e=>typeof e==`string`&&q.includes(e)?Y(e):e,Y=e=>{let i=K.find(t=>t.name===e);if(i)return n((0,t.defineComponent)({name:r(e),inheritAttrs:!0,props:{size:{type:[String,Number],default:`1em`},color:{type:String,default:void 0},fill:{type:String,default:i.fill||void 0},spin:{type:Boolean,default:!1}},setup(e,{attrs:n}){return()=>(0,t.h)(G,{name:i.name,path:i.path,size:e.size,color:e.color,spin:e.spin,fill:e.fill,...n})}}))},X=Y(`arrow-right`),Z=Y(`arrow-left`),Q=Y(`arrow-up`),ne=Y(`arrow-down`),re=Y(`search`),ie=Y(`search-bold`),ae=Y(`arrow-downward`),oe=Y(`arrow-upward`),se=Y(`arrow-forward`),ce=Y(`arrow-backward`),le=Y(`delete`),ue=Y(`close`),de=Y(`close-short`),fe=Y(`loading`),pe=Y(`more-dot-square`),$=Y(`more-dot-square-horizontal`),me=Y(`more-line`),he=Y(`more-dot-circle`),ge=Y(`more-dot-circle-horizontal`),_e=Y(`copy`),ve=Y(`copy-closure`),ye=Y(`star`),be=Y(`star-fill`),xe=Y(`help`),Se=Y(`exclam`),Ce=Y(`more-dot-circle-outline-vertical`),we=Y(`more-dot-circle-outline-horizontal`);e.ArrowBackward=ce,e.ArrowDown=ne,e.ArrowDownward=ae,e.ArrowForward=se,e.ArrowLeft=Z,e.ArrowRight=X,e.ArrowUp=Q,e.ArrowUpward=oe,e.Close=ue,e.CloseShort=de,e.Copy=_e,e.CopyClosure=ve,e.Delete=le,e.Exclam=Se,e.Help=xe,e.Loading=fe,e.MoreDotCircle=he,e.MoreDotCircleHorizontal=ge,e.MoreDotSquare=pe,e.MoreDotSquareHorizontal=$,e.MoreLine=me,e.Search=re,e.SearchBold=ie,e.Star=ye,e.StarFill=be,e.createIcon=Y,e.getIcon=J,e.iconNames=q,e.moreDotCircleOutlineHorizontal=we,e.moreDotCircleOutlineVertical=Ce,e.svgIcons=K});
|