@vef-framework/shared 1.0.7 → 1.0.9

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # The Shared foundations of VEF Framework
2
2
 
3
- VEF framework designed by Venus is built on top of React, and it provides a set of components that are essential for building a modern web application. These components are designed to be highly customizable and reusable, allowing developers to build complex and dynamic user interfaces with ease.
3
+ VEF framework made by Venus is built on top of React, and it provides a set of components that are essential for building a modern web application. These components are designed to be highly customizable and reusable, allowing developers to build complex and dynamic user interfaces with ease.
4
4
 
5
5
  ## Installation
6
6
 
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Check if the color is valid.
3
+ *
4
+ * @param color - The color to check.
5
+ * @returns Whether the color is valid.
6
+ */
7
+ export declare function isValidColor(color: string): boolean;
package/dist/color.js ADDED
@@ -0,0 +1,3 @@
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ import{colord as o}from"colord";function r(r){return o(r).isValid()}export{r as isValidColor};
3
+ /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/dist/constants.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  const e=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","gold","lime"],n=["primary","info","success","warning","error"],o=[...e,...n],r="creation",a="modification",i="audit",l=[r,a,i];export{i as auditFormScene,o as colorTypes,r as creationFormScene,e as defaultColorTypes,a as modificationFormScene,l as presetFormScenes,n as semanticColorTypes};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/dist/context.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{useRef as r}from"react";import{createContext as t,useContextSelector as e,useContext as o}from"use-context-selector";import"./lib.js";import{isNullish as n}from"radashi";import c from"react-fast-compare";function u(u){const i=t(u);return{ContextProvider:i.Provider,useContextSelector:t=>{const o=r();return e(i,(r=>{if(n(r))return;const e=t(r);return o.current&&c(e,o.current)?o.current:(o.current=e,e)}))},useContext:()=>o(i)}}export{u as createSelectableContext};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/dist/dom.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  function t(t,e,o=!1){if(e){const o=t.querySelector(e);if(!o)return 0;t=o}const r=t.offsetHeight;if(!o)return r;const n=t.computedStyleMap();return r+n.get("margin-top").value+n.get("margin-bottom").value}export{t as getElementHeight};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/dist/error.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  var e=Object.defineProperty,r=(r,o,t)=>((r,o,t)=>o in r?e(r,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[o]=t)(r,"symbol"!=typeof o?o+"":o,t);class o extends Error{constructor(e,o){super(o),r(this,"code"),this.code=e}}export{o as VefError};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/dist/event.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import t from"mitt";function r(){return t()}export{r as createEventEmitter};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import"./lib.js";import{isObject as n,isString as t,isFunction as r}from"radashi";const e=new WeakMap;function o(r){return n(r)&&"expression"in r&&t(r.expression)}function i(n){return r(n)||o(n)}function s(n,...t){const r=e.get(n);if(r)return r;const o=new Function(...t);return e.set(n,o),o}export{s as compileDynamicFn,o as isExpression,i as isFunctionOrExpression};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/dist/function.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  function o(...o){return(...n)=>{for(const r of o)r&&r(...n)}}export{o as mergeFns};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/dist/icons.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
- import{jsx as e,jsxs as r}from"@emotion/react/jsx-runtime";function t(r){return e("svg",{"aria-hidden":!0,focusable:!1,height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...r,children:e("path",{d:"M5 11l6 6l10 -10",fill:"none",stroke:"currentColor",strokeDasharray:24,strokeDashoffset:24,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:e("animate",{attributeName:"stroke-dashoffset",dur:"0.4s",fill:"freeze",values:"24;0"})})})}function a(t){return e("svg",{"aria-hidden":!0,focusable:!1,height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:r("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e("path",{d:"M3 12c0 -4.97 4.03 -9 9 -9c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9c-4.97 0 -9 -4.03 -9 -9Z",strokeDasharray:64,strokeDashoffset:64,children:e("animate",{attributeName:"stroke-dashoffset",dur:"0.6s",fill:"freeze",values:"64;0"})}),e("path",{d:"M8 12l3 3l5 -5",strokeDasharray:14,strokeDashoffset:14,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.6s",dur:"0.2s",fill:"freeze",values:"14;0"})})]})})}function s(t){return e("svg",{"aria-hidden":!0,focusable:!1,height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:r("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e("path",{d:"M19 5h-14",strokeDasharray:16,strokeDashoffset:16,children:e("animate",{attributeName:"stroke-dashoffset",dur:"0.2s",fill:"freeze",values:"16;0"})}),e("path",{d:"M19 12h-9",strokeDasharray:10,strokeDashoffset:10,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.2s",dur:"0.2s",fill:"freeze",values:"10;0"})}),e("path",{d:"M19 19h-14",strokeDasharray:16,strokeDashoffset:16,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.4s",dur:"0.2s",fill:"freeze",values:"16;0"})}),e("path",{d:"M7 9l-3 3l3 3",strokeDasharray:10,strokeDashoffset:10,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.6s",dur:"0.2s",fill:"freeze",values:"10;0"})})]})})}function o(t){return e("svg",{"aria-hidden":!0,focusable:!1,height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:r("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e("path",{d:"M21 9l-3 3l3 3",strokeDasharray:10,strokeDashoffset:10,children:e("animate",{attributeName:"stroke-dashoffset",dur:"0.2s",fill:"freeze",values:"10;0"})}),e("path",{d:"M19 5h-14",strokeDasharray:16,strokeDashoffset:16,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.2s",dur:"0.2s",fill:"freeze",values:"16;0"})}),e("path",{d:"M14 12h-9",strokeDasharray:10,strokeDashoffset:10,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.4s",dur:"0.2s",fill:"freeze",values:"10;0"})}),e("path",{d:"M19 19h-14",strokeDasharray:16,strokeDashoffset:16,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.6s",dur:"0.2s",fill:"freeze",values:"16;0"})})]})})}function i(t){return e("svg",{"aria-hidden":!0,focusable:!1,height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:r("g",{fill:"none",stroke:"currentColor",strokeDasharray:16,strokeDashoffset:16,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e("path",{d:"M5 12h14",children:e("animate",{attributeName:"stroke-dashoffset",dur:"0.4s",fill:"freeze",values:"16;0"})}),e("path",{d:"M12 5v14",children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.4s",dur:"0.4s",fill:"freeze",values:"16;0"})})]})})}function n(t){return e("svg",{"aria-hidden":!0,focusable:!1,height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:r("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e("path",{d:"M3 12c0 -4.97 4.03 -9 9 -9c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9c-4.97 0 -9 -4.03 -9 -9Z",strokeDasharray:64,strokeDashoffset:64,children:e("animate",{attributeName:"stroke-dashoffset",dur:"0.6s",fill:"freeze",values:"64;0"})}),e("path",{d:"M7 12h10",strokeDasharray:12,strokeDashoffset:12,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.6s",dur:"0.2s",fill:"freeze",values:"12;0"})}),e("path",{d:"M12 7v10",strokeDasharray:12,strokeDashoffset:12,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.8s",dur:"0.2s",fill:"freeze",values:"12;0"})})]})})}function l(t){return e("svg",{"aria-hidden":!0,focusable:!1,height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:r("g",{fill:"none",stroke:"currentColor",strokeDasharray:24,strokeDashoffset:24,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e("path",{d:"M5 5l14 14",children:e("animate",{attributeName:"stroke-dashoffset",dur:"0.4s",fill:"freeze",values:"24;0"})}),e("path",{d:"M19 5l-14 14",children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.4s",dur:"0.4s",fill:"freeze",values:"24;0"})})]})})}function h(t){return e("svg",{"aria-hidden":!0,focusable:!1,height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:r("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e("path",{d:"M12 3c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9c-4.97 0 -9 -4.03 -9 -9c0 -4.97 4.03 -9 9 -9Z",strokeDasharray:64,strokeDashoffset:64,children:e("animate",{attributeName:"stroke-dashoffset",dur:"0.6s",fill:"freeze",values:"64;0"})}),e("path",{d:"M12 12l4 4M12 12l-4 -4M12 12l-4 4M12 12l4 -4",strokeDasharray:8,strokeDashoffset:8,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.6s",dur:"0.2s",fill:"freeze",values:"8;0"})})]})})}function d(r){return e("svg",{"aria-hidden":!0,fill:"none",focusable:!1,height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...r,children:e("path",{clipRule:"evenodd",d:"M21.35 4.27c.68.47.86 1.4.38 2.08l-10 14.5a1.5 1.5 0 0 1-2.33.17l-6.5-7a1.5 1.5 0 0 1 2.2-2.04l5.23 5.63 8.94-12.96a1.5 1.5 0 0 1 2.08-.38Z",fill:"currentColor",fillRule:"evenodd"})})}function f(r){return e("svg",{"aria-hidden":!0,fill:"none",focusable:!1,height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...r,children:e("path",{clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm5.88-13.18-6.2 7.6a1.5 1.5 0 0 1-2.37 0l-3.5-4a1.5 1.5 0 1 1 2.37-1.84l2.3 2.46L15.5 8a1.5 1.5 0 1 1 2.38 1.82Z",fill:"currentColor",fillRule:"evenodd"})})}function u(r){return e("svg",{"aria-hidden":!0,fill:"none",focusable:!1,height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...r,children:e("path",{clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm2-16a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm-5 3.75c0-.41.34-.75.75-.75h2.75a1 1 0 0 1 1 1v5.5h.75a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5h.75v-5h-.75a.75.75 0 0 1-.75-.75Z",fill:"currentColor",fillRule:"evenodd"})})}function c(r){return e("svg",{"aria-hidden":!0,fill:"none",focusable:!1,height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...r,children:e("path",{clipRule:"evenodd",d:"M23 12a11 11 0 1 1-22 0 11 11 0 0 1 22 0Zm-9.5 5.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0ZM12 5a1.9 1.9 0 0 0-1.89 2l.3 5.5a1.59 1.59 0 0 0 3.17 0l.3-5.5c.07-1.09-.8-2-1.88-2Z",fill:"currentColor",fillRule:"evenodd"})})}function m(r){return e("svg",{"aria-hidden":!0,fill:"none",focusable:!1,height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...r,children:e("path",{clipRule:"evenodd",d:"m10.23 2.4-8.7 16.67A2 2 0 0 0 3.3 22h17.4a2 2 0 0 0 1.77-2.93L13.77 2.4a2 2 0 0 0-3.54 0ZM13.14 14a1.15 1.15 0 0 1-2.28 0l-.58-4.03a1.73 1.73 0 1 1 3.44 0l-.58 4.03Zm.36 4.49a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",fill:"currentColor",fillRule:"evenodd"})})}export{i as VefIconAdd,n as VefIconAddCircle,c as VefIconAlertCircle,m as VefIconAlertTriangle,t as VefIconConfirm,a as VefIconConfirmCircle,u as VefIconInfoCircle,s as VefIconMenuFoldLeft,o as VefIconMenuUnfoldLeft,l as VefIconRemove,h as VefIconRemoveCircle,d as VefIconTick,f as VefIconTickCircle};
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ import{jsx as e,jsxs as r}from"@emotion/react/jsx-runtime";function t(r){return e("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...r,children:e("path",{d:"M5 11l6 6l10 -10",fill:"none",stroke:"currentColor",strokeDasharray:24,strokeDashoffset:24,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:e("animate",{attributeName:"stroke-dashoffset",dur:"0.4s",fill:"freeze",values:"24;0"})})})}function a(t){return e("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:r("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e("path",{d:"M3 12c0 -4.97 4.03 -9 9 -9c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9c-4.97 0 -9 -4.03 -9 -9Z",strokeDasharray:64,strokeDashoffset:64,children:e("animate",{attributeName:"stroke-dashoffset",dur:"0.6s",fill:"freeze",values:"64;0"})}),e("path",{d:"M8 12l3 3l5 -5",strokeDasharray:14,strokeDashoffset:14,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.6s",dur:"0.2s",fill:"freeze",values:"14;0"})})]})})}function s(t){return e("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:r("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e("path",{d:"M19 5h-14",strokeDasharray:16,strokeDashoffset:16,children:e("animate",{attributeName:"stroke-dashoffset",dur:"0.2s",fill:"freeze",values:"16;0"})}),e("path",{d:"M19 12h-9",strokeDasharray:10,strokeDashoffset:10,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.2s",dur:"0.2s",fill:"freeze",values:"10;0"})}),e("path",{d:"M19 19h-14",strokeDasharray:16,strokeDashoffset:16,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.4s",dur:"0.2s",fill:"freeze",values:"16;0"})}),e("path",{d:"M7 9l-3 3l3 3",strokeDasharray:10,strokeDashoffset:10,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.6s",dur:"0.2s",fill:"freeze",values:"10;0"})})]})})}function o(t){return e("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:r("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e("path",{d:"M21 9l-3 3l3 3",strokeDasharray:10,strokeDashoffset:10,children:e("animate",{attributeName:"stroke-dashoffset",dur:"0.2s",fill:"freeze",values:"10;0"})}),e("path",{d:"M19 5h-14",strokeDasharray:16,strokeDashoffset:16,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.2s",dur:"0.2s",fill:"freeze",values:"16;0"})}),e("path",{d:"M14 12h-9",strokeDasharray:10,strokeDashoffset:10,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.4s",dur:"0.2s",fill:"freeze",values:"10;0"})}),e("path",{d:"M19 19h-14",strokeDasharray:16,strokeDashoffset:16,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.6s",dur:"0.2s",fill:"freeze",values:"16;0"})})]})})}function n(t){return e("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:r("g",{fill:"none",stroke:"currentColor",strokeDasharray:16,strokeDashoffset:16,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e("path",{d:"M5 12h14",children:e("animate",{attributeName:"stroke-dashoffset",dur:"0.4s",fill:"freeze",values:"16;0"})}),e("path",{d:"M12 5v14",children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.4s",dur:"0.4s",fill:"freeze",values:"16;0"})})]})})}function i(t){return e("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:r("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e("path",{d:"M3 12c0 -4.97 4.03 -9 9 -9c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9c-4.97 0 -9 -4.03 -9 -9Z",strokeDasharray:64,strokeDashoffset:64,children:e("animate",{attributeName:"stroke-dashoffset",dur:"0.6s",fill:"freeze",values:"64;0"})}),e("path",{d:"M7 12h10",strokeDasharray:12,strokeDashoffset:12,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.6s",dur:"0.2s",fill:"freeze",values:"12;0"})}),e("path",{d:"M12 7v10",strokeDasharray:12,strokeDashoffset:12,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.8s",dur:"0.2s",fill:"freeze",values:"12;0"})})]})})}function l(t){return e("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:r("g",{fill:"none",stroke:"currentColor",strokeDasharray:24,strokeDashoffset:24,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e("path",{d:"M5 5l14 14",children:e("animate",{attributeName:"stroke-dashoffset",dur:"0.4s",fill:"freeze",values:"24;0"})}),e("path",{d:"M19 5l-14 14",children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.4s",dur:"0.4s",fill:"freeze",values:"24;0"})})]})})}function d(t){return e("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:r("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e("path",{d:"M12 3c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9c-4.97 0 -9 -4.03 -9 -9c0 -4.97 4.03 -9 9 -9Z",strokeDasharray:64,strokeDashoffset:64,children:e("animate",{attributeName:"stroke-dashoffset",dur:"0.6s",fill:"freeze",values:"64;0"})}),e("path",{d:"M12 12l4 4M12 12l-4 -4M12 12l-4 4M12 12l4 -4",strokeDasharray:8,strokeDashoffset:8,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.6s",dur:"0.2s",fill:"freeze",values:"8;0"})})]})})}function h(r){return e("svg",{"aria-hidden":!0,fill:"none",focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...r,children:e("path",{clipRule:"evenodd",d:"M21.35 4.27c.68.47.86 1.4.38 2.08l-10 14.5a1.5 1.5 0 0 1-2.33.17l-6.5-7a1.5 1.5 0 0 1 2.2-2.04l5.23 5.63 8.94-12.96a1.5 1.5 0 0 1 2.08-.38Z",fill:"currentColor",fillRule:"evenodd"})})}function f(r){return e("svg",{"aria-hidden":!0,fill:"none",focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...r,children:e("path",{clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm5.88-13.18-6.2 7.6a1.5 1.5 0 0 1-2.37 0l-3.5-4a1.5 1.5 0 1 1 2.37-1.84l2.3 2.46L15.5 8a1.5 1.5 0 1 1 2.38 1.82Z",fill:"currentColor",fillRule:"evenodd"})})}function u(r){return e("svg",{"aria-hidden":!0,fill:"none",focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...r,children:e("path",{clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm2-16a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm-5 3.75c0-.41.34-.75.75-.75h2.75a1 1 0 0 1 1 1v5.5h.75a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5h.75v-5h-.75a.75.75 0 0 1-.75-.75Z",fill:"currentColor",fillRule:"evenodd"})})}function c(r){return e("svg",{"aria-hidden":!0,fill:"none",focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...r,children:e("path",{clipRule:"evenodd",d:"M23 12a11 11 0 1 1-22 0 11 11 0 0 1 22 0Zm-9.5 5.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0ZM12 5a1.9 1.9 0 0 0-1.89 2l.3 5.5a1.59 1.59 0 0 0 3.17 0l.3-5.5c.07-1.09-.8-2-1.88-2Z",fill:"currentColor",fillRule:"evenodd"})})}function k(r){return e("svg",{"aria-hidden":!0,fill:"none",focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...r,children:e("path",{clipRule:"evenodd",d:"m10.23 2.4-8.7 16.67A2 2 0 0 0 3.3 22h17.4a2 2 0 0 0 1.77-2.93L13.77 2.4a2 2 0 0 0-3.54 0ZM13.14 14a1.15 1.15 0 0 1-2.28 0l-.58-4.03a1.73 1.73 0 1 1 3.44 0l-.58 4.03Zm.36 4.49a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",fill:"currentColor",fillRule:"evenodd"})})}export{n as VefIconAdd,i as VefIconAddCircle,c as VefIconAlertCircle,k as VefIconAlertTriangle,t as VefIconConfirm,a as VefIconConfirmCircle,u as VefIconInfoCircle,s as VefIconMenuFoldLeft,o as VefIconMenuUnfoldLeft,l as VefIconRemove,d as VefIconRemoveCircle,h as VefIconTick,f as VefIconTickCircle};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/dist/id.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{customAlphabet as n}from"nanoid";const o=n("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",18);function r(){return o()}export{r as generateId};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from "./color";
1
2
  export * from "./constants";
2
3
  export * from "./context";
3
4
  export * from "./dom";
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
- export{auditFormScene,colorTypes,creationFormScene,defaultColorTypes,modificationFormScene,presetFormScenes,semanticColorTypes}from"./constants.js";export{createSelectableContext}from"./context.js";export{getElementHeight}from"./dom.js";export{VefError}from"./error.js";export{createEventEmitter}from"./event.js";export{compileDynamicFn,isExpression,isFunctionOrExpression}from"./expression.js";export{mergeFns}from"./function.js";export{VefIconAdd,VefIconAddCircle,VefIconAlertCircle,VefIconAlertTriangle,VefIconConfirm,VefIconConfirmCircle,VefIconInfoCircle,VefIconMenuFoldLeft,VefIconMenuUnfoldLeft,VefIconRemove,VefIconRemoveCircle,VefIconTick,VefIconTickCircle}from"./icons.js";export{generateId}from"./id.js";import"./lib.js";export{defaultMessageTitle,errorIcon,infoIcon,showConfirmation,showErrorAlert,showErrorMessage,showErrorNotification,showInfoAlert,showInfoMessage,showInfoNotification,showLoadingMessage,showSuccessAlert,showSuccessMessage,showSuccessNotification,showWarningAlert,showWarningMessage,showWarningNotification,successIcon,warningIcon}from"./message.js";export{extractBaseName,extractDirName,extractExtName,isAbsolutePath,joinPaths,normalizePath}from"./path.js";export{parsePinyin,parsePinyinFirstLetter}from"./pinyin.js";export{decryptRsa,encryptRsa}from"./security.js";export{createComponentStore}from"./store.js";export{bmq,breakpoints,styles}from"./styles.js";export{getNowDate,getNowDateString,getTodayString}from"./temporal.js";export{themeVariables}from"./theme-variables.js";export{difference,invokeMaybeAsyncFn,isAsyncFunction}from"./utils.js";import*as e from"./validation.js";export{e as validator};export{default as isEqual}from"react-fast-compare";export{assign,camel,capitalize,clone,cloneDeep,dash,debounce,get,isArray,isBoolean,isDate,isEmpty,isError,isFloat,isFunction,isInt,isIntString,isMap,isNullish,isNumber,isObject,isPlainObject,isPrimitive,isPromise,isRegExp,isSet,isString,isSymbol,isUndefined,isWeakMap,isWeakSet,max,memo as memoize,min,noop,omit,once,pascal,pick,set,similarity,snake,sum,template,throttle,toFloat,toInt,trim,unique}from"radashi";
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ export{isValidColor}from"./color.js";export{auditFormScene,colorTypes,creationFormScene,defaultColorTypes,modificationFormScene,presetFormScenes,semanticColorTypes}from"./constants.js";export{createSelectableContext}from"./context.js";export{getElementHeight}from"./dom.js";export{VefError}from"./error.js";export{createEventEmitter}from"./event.js";export{compileDynamicFn,isExpression,isFunctionOrExpression}from"./expression.js";export{mergeFns}from"./function.js";export{VefIconAdd,VefIconAddCircle,VefIconAlertCircle,VefIconAlertTriangle,VefIconConfirm,VefIconConfirmCircle,VefIconInfoCircle,VefIconMenuFoldLeft,VefIconMenuUnfoldLeft,VefIconRemove,VefIconRemoveCircle,VefIconTick,VefIconTickCircle}from"./icons.js";export{generateId}from"./id.js";import"./lib.js";export{defaultMessageTitle,errorIcon,infoIcon,showConfirmation,showErrorAlert,showErrorMessage,showErrorNotification,showInfoAlert,showInfoMessage,showInfoNotification,showLoadingMessage,showSuccessAlert,showSuccessMessage,showSuccessNotification,showWarningAlert,showWarningMessage,showWarningNotification,successIcon,warningIcon}from"./message.js";export{extractBaseName,extractDirName,extractExtName,isAbsolutePath,joinPaths,normalizePath}from"./path.js";export{parsePinyin,parsePinyinFirstLetter}from"./pinyin.js";export{decryptRsa,encryptRsa}from"./security.js";export{createComponentStore}from"./store.js";export{bmq,breakpoints,styles}from"./styles.js";export{getNowDate,getNowDateString,getTodayString}from"./temporal.js";export{themeVariables}from"./theme-variables.js";export{difference,invokeMaybeAsyncFn,isAsyncFunction}from"./utils.js";import*as e from"./validation.js";export{e as validator};export{default as isEqual}from"react-fast-compare";export{assign,camel,capitalize,clone,cloneDeep,cluster,dash,debounce,get,isArray,isBoolean,isDate,isEmpty,isError,isFloat,isFunction,isInt,isIntString,isMap,isNullish,isNumber,isObject,isPlainObject,isPrimitive,isPromise,isRegExp,isSet,isString,isSymbol,isUndefined,isWeakMap,isWeakSet,max,memo as memoize,min,noop,omit,once,pascal,pick,set,similarity,snake,sum,template,throttle,toFloat,toInt,trim,unique}from"radashi";
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/dist/lib.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { EmptyObject, Except, IfAny, IfEmptyObject, IfNever, IfNull, IfUnknown, JsonArray, JsonObject, JsonPrimitive, JsonValue, LiteralUnion, NonEmptyObject, NonEmptyTuple, PartialDeep, SetRequired, UnionToIntersection, UnionToTuple } from "type-fest";
2
- import { assign, camel, capitalize, clone, cloneDeep, dash, debounce, get, isArray, isBoolean, isDate, isEmpty, isError, isFloat, isFunction, isInt, isIntString, isMap, isNullish, isNumber, isObject, isPlainObject, isPrimitive, isPromise, isRegExp, isSet, isString, isSymbol, isUndefined, isWeakMap, isWeakSet, max, memo as memoize, min, noop, omit, once, pascal, pick, set, similarity, snake, sum, template, throttle, toFloat, toInt, trim, unique } from "radashi";
2
+ import { assign, camel, capitalize, clone, cloneDeep, cluster, dash, debounce, get, isArray, isBoolean, isDate, isEmpty, isError, isFloat, isFunction, isInt, isIntString, isMap, isNullish, isNumber, isObject, isPlainObject, isPrimitive, isPromise, isRegExp, isSet, isString, isSymbol, isUndefined, isWeakMap, isWeakSet, max, memo as memoize, min, noop, omit, once, pascal, pick, set, similarity, snake, sum, template, throttle, toFloat, toInt, trim, unique } from "radashi";
3
3
  export { default as isEqual } from "react-fast-compare";
4
4
  export type { EmptyObject, Except, IfAny, IfEmptyObject, IfNever, IfNull, IfUnknown, JsonArray, JsonObject, JsonPrimitive, JsonValue, LiteralUnion, NonEmptyObject, NonEmptyTuple, PartialDeep, SetRequired, UnionToIntersection, UnionToTuple, };
5
- export { assign, camel, capitalize, clone, cloneDeep, dash, debounce, get, isArray, isBoolean, isDate, isEmpty, isError, isFloat, isFunction, isInt, isIntString, isMap, isNullish, isNumber, isObject, isPlainObject, isPrimitive, isPromise, isRegExp, isSet, isString, isSymbol, isUndefined, isWeakMap, isWeakSet, max, memoize, min, noop, omit, once, pascal, pick, set, similarity, snake, sum, template, throttle, toFloat, toInt, trim, unique, };
5
+ export { assign, camel, capitalize, clone, cloneDeep, cluster, dash, debounce, get, isArray, isBoolean, isDate, isEmpty, isError, isFloat, isFunction, isInt, isIntString, isMap, isNullish, isNumber, isObject, isPlainObject, isPrimitive, isPromise, isRegExp, isSet, isString, isSymbol, isUndefined, isWeakMap, isWeakSet, max, memoize, min, noop, omit, once, pascal, pick, set, similarity, snake, sum, template, throttle, toFloat, toInt, trim, unique, };
package/dist/lib.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
- export{assign,camel,capitalize,clone,cloneDeep,dash,debounce,get,isArray,isBoolean,isDate,isEmpty,isError,isFloat,isFunction,isInt,isIntString,isMap,isNullish,isNumber,isObject,isPlainObject,isPrimitive,isPromise,isRegExp,isSet,isString,isSymbol,isUndefined,isWeakMap,isWeakSet,max,memo as memoize,min,noop,omit,once,pascal,pick,set,similarity,snake,sum,template,throttle,toFloat,toInt,trim,unique}from"radashi";export{default as isEqual}from"react-fast-compare";
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ export{assign,camel,capitalize,clone,cloneDeep,cluster,dash,debounce,get,isArray,isBoolean,isDate,isEmpty,isError,isFloat,isFunction,isInt,isIntString,isMap,isNullish,isNumber,isObject,isPlainObject,isPrimitive,isPromise,isRegExp,isSet,isString,isSymbol,isUndefined,isWeakMap,isWeakSet,max,memo as memoize,min,noop,omit,once,pascal,pick,set,similarity,snake,sum,template,throttle,toFloat,toInt,trim,unique}from"radashi";export{default as isEqual}from"react-fast-compare";
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/dist/message.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { type ReactNode } from "react";
2
- import type { Except } from "./lib";
3
2
  import type { Handler, MaybePromise, Provider } from "./types";
3
+ import { type Except } from "./lib";
4
4
  export declare const successIcon: import("react").FunctionComponentElement<Omit<import("@ant-design/icons/lib/components/Icon").IconComponentProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
5
5
  export declare const infoIcon: import("react").FunctionComponentElement<Omit<import("@ant-design/icons/lib/components/Icon").IconComponentProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
6
6
  export declare const warningIcon: import("react").FunctionComponentElement<Omit<import("@ant-design/icons/lib/components/Icon").IconComponentProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
package/dist/message.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import n,{CheckOutlined as o}from"@ant-design/icons";import{Modal as t,message as e,notification as r}from"antd";import{createElement as i}from"react";import{VefIconTickCircle as c,VefIconInfoCircle as s,VefIconAlertTriangle as a,VefIconAlertCircle as f}from"./icons.js";import"./lib.js";import{isFunction as u}from"radashi";const{confirm:l,info:p,success:m,warning:g,error:w}=t,d=i(n,{component:c}),h=i(n,{component:s}),v=i(n,{component:a}),y=i(n,{component:f}),E=i(n,{className:"vef-notification-notice-icon vef-notification-notice-icon-success",component:c}),b=i(n,{className:"vef-notification-notice-icon vef-notification-notice-icon-info",component:s}),q=i(n,{className:"vef-notification-notice-icon vef-notification-notice-icon-warning",component:a}),C=i(n,{className:"vef-notification-notice-icon vef-notification-notice-icon-error",component:f});function x(n){e.open({type:"success",content:n,duration:2,icon:d})}function A(n){e.open({type:"info",content:n,duration:3,icon:h})}function N(n){e.open({type:"warning",content:n,duration:3,icon:v})}function k(n){e.open({type:"error",content:n,duration:4,icon:y})}function O(n){const o=e.open({type:"loading",content:n,duration:0});return()=>o()}const T="提示";function j(n,o,t){const e=arguments.length;if(e<1)throw new Error("showSuccessNotification requires at least one argument");const i=e>1?n:T,c=e>1?o:n,s=3===e?t:void 0;r.open({type:"success",message:i,description:c,duration:4,closable:!0,btn:s,icon:E})}function B(n,o,t){const e=arguments.length;if(e<1)throw new Error("showInfoNotification requires at least one argument");const i=e>1?n:T,c=e>1?o:n,s=3===e?t:void 0;r.open({type:"info",message:i,description:c,duration:5,closable:!0,btn:s,icon:b})}function I(n,o,t){const e=arguments.length;if(e<1)throw new Error("showWarningNotification requires at least one argument");const i=e>1?n:T,c=e>1?o:n,s=3===e?t:void 0;r.open({type:"warning",message:i,description:c,duration:5,closable:!0,btn:s,icon:q})}function P(n,o,t){const e=arguments.length;if(e<1)throw new Error("showErrorNotification requires at least one argument");const i=e>1?n:T,c=e>1?o:n,s=3===e?t:void 0;r.open({type:"error",message:i,description:c,duration:6,closable:!0,btn:s,icon:C})}const S={color:"default",variant:"text"},W={icon:i(o)};function z(n,o,t,e){const r=arguments.length;if(r<2)throw new Error("showConfirmation requires at least two arguments");const i=r>2?n:"提示",c=2===r?n:o,s=2===r?o:t,{okText:a,cancelText:f,onCancel:p,onAfterOpen:m,onAfterClose:g}=e??{},{destroy:w}=l({title:i,content:c,cancelButtonProps:S,okButtonProps:W,centered:!0,icon:v,onOk:s,okText:a,cancelText:f,onCancel:p,afterOpenChange:u(m)||u(g)?n=>{n?m?.():g?.()}:void 0});return w}const D={success:m,info:p,warning:g,error:w},F={success:d,info:h,warning:v,error:y},G="👍🏻 好的,知道了";function H(n,o,t=T,e,r){const{okText:i=G,onCancel:c,onAfterOpen:s,onAfterClose:a}=r??{},{destroy:f}=D[n]({title:t,content:o,icon:F[n],centered:!0,onOk:e,okText:i,onCancel:c,afterOpenChange:u(s)||u(a)?n=>{n?s?.():a?.()}:void 0});return f}function J(n,o,t,e){const r=arguments.length;if(r<1)throw new Error("showSuccessAlert requires at least one argument");const i=1===r||u(o)?void 0:n;return H("success",1===r||u(o)?n:o,i,2===r||u(o)?o:t,e)}function K(n,o,t,e){const r=arguments.length;if(r<1)throw new Error("showInfoAlert requires at least one argument");const i=1===r||u(o)?void 0:n;return H("info",1===r||u(o)?n:o,i,2===r||u(o)?o:t,e)}function L(n,o,t,e){const r=arguments.length;if(r<1)throw new Error("showWarningAlert requires at least one argument");const i=1===r||u(o)?void 0:n;return H("warning",1===r||u(o)?n:o,i,2===r||u(o)?o:t,e)}function M(n,o,t,e){const r=arguments.length;if(r<1)throw new Error("showErrorAlert requires at least one argument");const i=1===r||u(o)?void 0:n;return H("error",1===r||u(o)?n:o,i,2===r||u(o)?o:t,e)}export{T as defaultMessageTitle,y as errorIcon,h as infoIcon,z as showConfirmation,M as showErrorAlert,k as showErrorMessage,P as showErrorNotification,K as showInfoAlert,A as showInfoMessage,B as showInfoNotification,O as showLoadingMessage,J as showSuccessAlert,x as showSuccessMessage,j as showSuccessNotification,L as showWarningAlert,N as showWarningMessage,I as showWarningNotification,d as successIcon,v as warningIcon};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/dist/path.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{extname as n,basename as r,dirname as t,join as o,isAbsolute as u,normalize as i}from"path-browserify";function e(t,o=!0){const u=o?n(t):void 0;return r(t,u)}function f(r){return n(r)}function c(n){return t(n)}function p(...n){return o(...n)}function m(n){return u(n)}function s(n){return i(n)}export{e as extractBaseName,c as extractDirName,f as extractExtName,m as isAbsolutePath,p as joinPaths,s as normalizePath};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/dist/pinyin.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{pinyin as n}from"pinyin-pro";function e(e){return n(e,{pattern:"pinyin",toneType:"none",type:"array",mode:"normal",nonZh:"consecutive"})}function o(e){return n(e,{pattern:"first",toneType:"none",type:"array",mode:"normal",nonZh:"consecutive"})}export{e as parsePinyin,o as parsePinyinFirstLetter};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/dist/security.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import t from"jsencrypt";function e(e,r){const n=new t;n.setPublicKey(r);const o=n.encrypt(e);if(!o)throw new Error(`Failed to encrypt value [${e}] using RSA`);return o}function r(e,r){const n=new t;n.setPrivateKey(r);const o=n.decrypt(e);if(!o)throw new Error(`Failed to decrypt value [${e}] using RSA`);return o}export{r as decryptRsa,e as encryptRsa};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/dist/store.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { StoreApi } from "zustand";
2
2
  import { type FC } from "react";
3
- import type { ChildrenProps, Mapper, MaybeNull, MaybeUndefined } from "./types";
3
+ import type { ChildrenProps, Mapper, MaybeNull } from "./types";
4
4
  /**
5
5
  * The props of the store provider
6
6
  */
@@ -8,7 +8,7 @@ export interface StoreProviderProps<T> extends ChildrenProps {
8
8
  /**
9
9
  * The initial state of the store
10
10
  */
11
- initialState?: T;
11
+ initialState: T;
12
12
  }
13
13
  /**
14
14
  * Create a store used only in a component
@@ -17,8 +17,7 @@ export interface StoreProviderProps<T> extends ChildrenProps {
17
17
  * @param storeCreator The store creator
18
18
  * @returns The store context and provider
19
19
  */
20
- export declare function createComponentStore<S, T extends Partial<S>>(name: string, storeCreator: Mapper<MaybeUndefined<T>, StoreApi<S>>): {
21
- StoreContext: import("react").Context<MaybeNull<StoreApi<S>>>;
20
+ export declare function createComponentStore<S, T extends MaybeNull<Partial<S>>>(name: string, storeCreator: Mapper<T, StoreApi<S>>): {
22
21
  StoreProvider: FC<StoreProviderProps<T>>;
23
22
  useStore: <T_1>(selector: Mapper<S, T_1>) => T_1;
24
23
  useStoreApi: () => StoreApi<S>;
package/dist/store.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
- import{createContext as r,useState as t,createElement as o,useContext as e}from"react";import{useStoreWithEqualityFn as i}from"zustand/traditional";import"./lib.js";import n from"react-fast-compare";function a(a,s){const u=r(null),c=()=>{const r=e(u);if(!r)throw new Error(`${a}Store can be used only inside ${a}StoreProvider`);return r};return{StoreContext:u,StoreProvider:({initialState:r,children:e})=>{const[i]=t((()=>s(r)));return o(u.Provider,{value:i},e)},useStore:r=>i(c(),r,n),useStoreApi:c}}export{a as createComponentStore};
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ import{createContext as r,useState as t,useRef as e,useEffect as o,createElement as n,useContext as i}from"react";import{useStoreWithEqualityFn as u}from"zustand/traditional";import"./lib.js";import a from"react-fast-compare";function c(c,s){const d=r(null),l=()=>{const r=i(d);if(!r)throw new Error(`${c}Store can be used only inside ${c}StoreProvider`);return r};return{StoreProvider:({initialState:r,children:i})=>{const[u]=t((()=>s(r))),a=e(!1);return o((()=>()=>{a.current=!1}),[]),o((()=>{a.current||(a.current=!0),r&&u.setState({...r})}),[r,u]),n(d.Provider,{value:u},i)},useStore:r=>u(l(),r,a),useStoreApi:l}}export{c as createComponentStore};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/dist/styles.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{css as t}from"@emotion/react";const l={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},e=["xs","sm","md","lg","xl","xxl"],r=Object.keys(l).reduce(((t,e)=>(t[e]=`@media (min-width: ${l[e]}px)`,t)),{}),s={flexCenter:t({display:"flex",justifyContent:"center",alignItems:"center"}),fullHeight:t({height:"100%"}),fullWidth:t({width:"100%"}),scrollbar:t({scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.3) transparent",scrollbarGutter:"stable"})};export{r as bmq,e as breakpoints,s as styles};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/dist/temporal.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{tz as n}from"@date-fns/tz";import{format as t}from"date-fns";import{zhCN as a}from"date-fns/locale";function o(){return new Date}function r(){return t(o(),"yyyy-MM-dd",{locale:a,in:n("Asia/Shanghai")})}function e(){return t(o(),"PPPPpp",{locale:a,in:n("Asia/Shanghai")})}export{o as getNowDate,r as getNowDateString,e as getTodayString};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -39,6 +39,8 @@ export declare const themeVariables: {
39
39
  zIndexBase: string;
40
40
  zIndexPopupBase: string;
41
41
  opacityImage: string;
42
+ colorBgLayout: string;
43
+ colorBgSpotlight: string;
42
44
  blue1: string;
43
45
  blue2: string;
44
46
  blue3: string;
@@ -173,14 +175,16 @@ export declare const themeVariables: {
173
175
  colorTextSecondary: string;
174
176
  colorTextTertiary: string;
175
177
  colorTextQuaternary: string;
178
+ colorTextSlate: string;
176
179
  colorFill: string;
177
180
  colorFillSecondary: string;
178
181
  colorFillTertiary: string;
179
182
  colorFillQuaternary: string;
180
- colorBgLayout: string;
183
+ colorBgSolid: string;
184
+ colorBgSolidHover: string;
185
+ colorBgSolidActive: string;
181
186
  colorBgContainer: string;
182
187
  colorBgElevated: string;
183
- colorBgSpotlight: string;
184
188
  colorBgBlur: string;
185
189
  colorBorder: string;
186
190
  colorBorderSecondary: string;
@@ -204,6 +208,7 @@ export declare const themeVariables: {
204
208
  colorSuccessTextActive: string;
205
209
  colorErrorBg: string;
206
210
  colorErrorBgHover: string;
211
+ colorErrorBgFilledHover: string;
207
212
  colorErrorBgActive: string;
208
213
  colorErrorBorder: string;
209
214
  colorErrorBorderHover: string;
@@ -234,7 +239,6 @@ export declare const themeVariables: {
234
239
  colorLinkActive: string;
235
240
  colorBgMask: string;
236
241
  colorWhite: string;
237
- fontSizeXs: string;
238
242
  fontSizeSm: string;
239
243
  fontSizeLg: string;
240
244
  fontSizeXl: string;
@@ -267,7 +271,7 @@ export declare const themeVariables: {
267
271
  borderRadiusOuter: string;
268
272
  colorFillContent: string;
269
273
  colorFillContentHover: string;
270
- colorFillAlter: string;
274
+ colorFillAlt: string;
271
275
  colorBgContainerDisabled: string;
272
276
  colorBorderBg: string;
273
277
  colorSplit: string;
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
- const e={blue:"var(--vef-blue, #3b82f6)",purple:"var(--vef-purple, #8b5cf6)",cyan:"var(--vef-cyan, #06b6d4)",green:"var(--vef-green, #22c55e)",magenta:"var(--vef-magenta, #eb2f96)",pink:"var(--vef-pink, #ec4899)",red:"var(--vef-red, #ef4444)",orange:"var(--vef-orange, #f97316)",yellow:"var(--vef-yellow, #eab308)",volcano:"var(--vef-volcano, #f43f5e)",geekblue:"var(--vef-geekblue, #6366f1)",gold:"var(--vef-gold, #fbbf24)",lime:"var(--vef-lime, #84cc16)",colorPrimary:"var(--vef-color-primary, #3b82f6)",colorSuccess:"var(--vef-color-success, #22c55e)",colorWarning:"var(--vef-color-warning, #f97316)",colorError:"var(--vef-color-error, #ef4444)",colorInfo:"var(--vef-color-info, #0ea5e9)",colorLink:"var(--vef-color-link, #6366f1)",colorTextBase:"var(--vef-color-text-base, #171717)",colorBgBase:"var(--vef-color-bg-base, #ffffff)",fontFamily:"var(--vef-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji')",fontFamilyCode:"var(--vef-font-family-code, 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace)",fontSize:"var(--vef-font-size, 16px)",lineWidth:"var(--vef-line-width, 1px)",lineType:"var(--vef-line-type, solid)",motionEaseOutCirc:"var(--vef-motion-ease-out-circ, cubic-bezier(0.08, 0.82, 0.17, 1))",motionEaseInOutCirc:"var(--vef-motion-ease-in-out-circ, cubic-bezier(0.78, 0.14, 0.15, 0.86))",motionEaseOut:"var(--vef-motion-ease-out, cubic-bezier(0.215, 0.61, 0.355, 1))",motionEaseInOut:"var(--vef-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1))",motionEaseOutBack:"var(--vef-motion-ease-out-back, cubic-bezier(0.12, 0.4, 0.29, 1.46))",motionEaseInBack:"var(--vef-motion-ease-in-back, cubic-bezier(0.71, -0.46, 0.88, 0.6))",motionEaseInQuint:"var(--vef-motion-ease-in-quint, cubic-bezier(0.755, 0.05, 0.855, 0.06))",motionEaseOutQuint:"var(--vef-motion-ease-out-quint, cubic-bezier(0.23, 1, 0.32, 1))",borderRadius:"var(--vef-border-radius, 6px)",sizePopupArrow:"var(--vef-size-popup-arrow, 16px)",controlHeight:"var(--vef-control-height, 36px)",zIndexBase:"var(--vef-z-index-base, 0)",zIndexPopupBase:"var(--vef-z-index-popup-base, 10)",opacityImage:"var(--vef-opacity-image, 1)",blue1:"var(--vef-blue-1, #f0f8ff)",blue2:"var(--vef-blue-2, #e0f0ff)",blue3:"var(--vef-blue-3, #b8daff)",blue4:"var(--vef-blue-4, #8fc1ff)",blue5:"var(--vef-blue-5, #66a6ff)",blue6:"var(--vef-blue-6, #3b82f6)",blue7:"var(--vef-blue-7, #2762cf)",blue8:"var(--vef-blue-8, #1845a8)",blue9:"var(--vef-blue-9, #0c2d82)",blue10:"var(--vef-blue-10, #071c5c)",purple1:"var(--vef-purple-1, #f7f0ff)",purple2:"var(--vef-purple-2, #f6f0ff)",purple3:"var(--vef-purple-3, #e8d9ff)",purple4:"var(--vef-purple-4, #cdb0ff)",purple5:"var(--vef-purple-5, #af87ff)",purple6:"var(--vef-purple-6, #8b5cf6)",purple7:"var(--vef-purple-7, #6842cf)",purple8:"var(--vef-purple-8, #4a2da8)",purple9:"var(--vef-purple-9, #311d82)",purple10:"var(--vef-purple-10, #1f135c)",cyan1:"var(--vef-cyan-1, #e6ffff)",cyan2:"var(--vef-cyan-2, #abfeff)",cyan3:"var(--vef-cyan-3, #7ff4fa)",cyan4:"var(--vef-cyan-4, #53e0ed)",cyan5:"var(--vef-cyan-5, #2bcbe0)",cyan6:"var(--vef-cyan-6, #06b6d4)",cyan7:"var(--vef-cyan-7, #008ead)",cyan8:"var(--vef-cyan-8, #006a87)",cyan9:"var(--vef-cyan-9, #004961)",cyan10:"var(--vef-cyan-10, #002a3b)",green1:"var(--vef-green-1, #f0fff3)",green2:"var(--vef-green-2, #c8f7d3)",green3:"var(--vef-green-3, #98ebae)",green4:"var(--vef-green-4, #6dde8f)",green5:"var(--vef-green-5, #45d174)",green6:"var(--vef-green-6, #22c55e)",green7:"var(--vef-green-7, #139e4b)",green8:"var(--vef-green-8, #087839)",green9:"var(--vef-green-9, #025227)",green10:"var(--vef-green-10, #002b16)",magenta1:"var(--vef-magenta-1, #fff0f6)",magenta2:"var(--vef-magenta-2, #ffd6e7)",magenta3:"var(--vef-magenta-3, #ffadd2)",magenta4:"var(--vef-magenta-4, #ff85c0)",magenta5:"var(--vef-magenta-5, #f759ab)",magenta6:"var(--vef-magenta-6, #eb2f96)",magenta7:"var(--vef-magenta-7, #c41d7f)",magenta8:"var(--vef-magenta-8, #9e1068)",magenta9:"var(--vef-magenta-9, #780650)",magenta10:"var(--vef-magenta-10, #520339)",pink1:"var(--vef-pink-1, #fff0f5)",pink2:"var(--vef-pink-2, #fff0f5)",pink3:"var(--vef-pink-3, #ffc9df)",pink4:"var(--vef-pink-4, #ffa1ca)",pink5:"var(--vef-pink-5, #fa75b3)",pink6:"var(--vef-pink-6, #ec4899)",pink7:"var(--vef-pink-7, #c73482)",pink8:"var(--vef-pink-8, #a1226a)",pink9:"var(--vef-pink-9, #7a1451)",pink10:"var(--vef-pink-10, #540d3a)",red1:"var(--vef-red-1, #fff2f0)",red2:"var(--vef-red-2, #ffedeb)",red3:"var(--vef-red-3, #ffc8c2)",red4:"var(--vef-red-4, #ffa099)",red5:"var(--vef-red-5, #fc746f)",red6:"var(--vef-red-6, #ef4444)",red7:"var(--vef-red-7, #c92e34)",red8:"var(--vef-red-8, #a31d26)",red9:"var(--vef-red-9, #7d101b)",red10:"var(--vef-red-10, #570a15)",orange1:"var(--vef-orange-1, #fff4e6)",orange2:"var(--vef-orange-2, #ffe0ba)",orange3:"var(--vef-orange-3, #ffca91)",orange4:"var(--vef-orange-4, #ffb169)",orange5:"var(--vef-orange-5, #ff9640)",orange6:"var(--vef-orange-6, #f97316)",orange7:"var(--vef-orange-7, #d45608)",orange8:"var(--vef-orange-8, #ad3d00)",orange9:"var(--vef-orange-9, #872b00)",orange10:"var(--vef-orange-10, #611b00)",yellow1:"var(--vef-yellow-1, #fffde6)",yellow2:"var(--vef-yellow-2, #fff5ab)",yellow3:"var(--vef-yellow-3, #ffec82)",yellow4:"var(--vef-yellow-4, #ffe159)",yellow5:"var(--vef-yellow-5, #f7cc2f)",yellow6:"var(--vef-yellow-6, #eab308)",yellow7:"var(--vef-yellow-7, #c48d00)",yellow8:"var(--vef-yellow-8, #9e6c00)",yellow9:"var(--vef-yellow-9, #784e00)",yellow10:"var(--vef-yellow-10, #523200)",volcano1:"var(--vef-volcano-1, #fff0f0)",volcano2:"var(--vef-volcano-2, #ffe6e6)",volcano3:"var(--vef-volcano-3, #ffbdc1)",volcano4:"var(--vef-volcano-4, #ff949f)",volcano5:"var(--vef-volcano-5, #ff6b7f)",volcano6:"var(--vef-volcano-6, #f43f5e)",volcano7:"var(--vef-volcano-7, #cf2b4c)",volcano8:"var(--vef-volcano-8, #a81b3c)",volcano9:"var(--vef-volcano-9, #820e2d)",volcano10:"var(--vef-volcano-10, #5c0922)",geekblue1:"var(--vef-geekblue-1, #f0f3ff)",geekblue2:"var(--vef-geekblue-2, #f0f2ff)",geekblue3:"var(--vef-geekblue-3, #e3e6ff)",geekblue4:"var(--vef-geekblue-4, #bac0ff)",geekblue5:"var(--vef-geekblue-5, #9197ff)",geekblue6:"var(--vef-geekblue-6, #6366f1)",geekblue7:"var(--vef-geekblue-7, #4c49cc)",geekblue8:"var(--vef-geekblue-8, #3933a6)",geekblue9:"var(--vef-geekblue-9, #292180)",geekblue10:"var(--vef-geekblue-10, #1e1659)",gold1:"var(--vef-gold-1, #fffdf0)",gold2:"var(--vef-gold-2, #fff7c7)",gold3:"var(--vef-gold-3, #ffed9e)",gold4:"var(--vef-gold-4, #ffe175)",gold5:"var(--vef-gold-5, #ffd24d)",gold6:"var(--vef-gold-6, #fbbf24)",gold7:"var(--vef-gold-7, #d49713)",gold8:"var(--vef-gold-8, #ad7307)",gold9:"var(--vef-gold-9, #875300)",gold10:"var(--vef-gold-10, #613900)",lime1:"var(--vef-lime-1, #faffe8)",lime2:"var(--vef-lime-2, #eeffbf)",lime3:"var(--vef-lime-3, #d4f28f)",lime4:"var(--vef-lime-4, #bae663)",lime5:"var(--vef-lime-5, #9fd93b)",lime6:"var(--vef-lime-6, #84cc16)",lime7:"var(--vef-lime-7, #62a60a)",lime8:"var(--vef-lime-8, #458001)",lime9:"var(--vef-lime-9, #2d5900)",lime10:"var(--vef-lime-10, #183300)",colorText:"var(--vef-color-text, rgb(23 23 23 / 88%))",colorTextSecondary:"var(--vef-color-text-secondary, rgb(23 23 23 / 65%))",colorTextTertiary:"var(--vef-color-text-tertiary, rgb(23 23 23 / 45%))",colorTextQuaternary:"var(--vef-color-text-quaternary, rgb(23 23 23 / 25%))",colorFill:"var(--vef-color-fill, rgb(23 23 23 / 15%))",colorFillSecondary:"var(--vef-color-fill-secondary, rgb(23 23 23 / 6%))",colorFillTertiary:"var(--vef-color-fill-tertiary, rgb(23 23 23 / 4%))",colorFillQuaternary:"var(--vef-color-fill-quaternary, rgb(23 23 23 / 2%))",colorBgLayout:"var(--vef-color-bg-layout, #f5f6fb)",colorBgContainer:"var(--vef-color-bg-container, #ffffff)",colorBgElevated:"var(--vef-color-bg-elevated, #ffffff)",colorBgSpotlight:"var(--vef-color-bg-spotlight, rgb(23 23 23 / 85%))",colorBgBlur:"var(--vef-color-bg-blur, transparent)",colorBorder:"var(--vef-color-border, #d9d9d9)",colorBorderSecondary:"var(--vef-color-border-secondary, #f0f0f0)",colorPrimaryBg:"var(--vef-color-primary-bg, #f0f8ff)",colorPrimaryBgHover:"var(--vef-color-primary-bg-hover, #e0f0ff)",colorPrimaryBorder:"var(--vef-color-primary-border, #b8daff)",colorPrimaryBorderHover:"var(--vef-color-primary-border-hover, #8fc1ff)",colorPrimaryHover:"var(--vef-color-primary-hover, #66a6ff)",colorPrimaryActive:"var(--vef-color-primary-active, #2762cf)",colorPrimaryTextHover:"var(--vef-color-primary-text-hover, #66a6ff)",colorPrimaryText:"var(--vef-color-primary-text, #3b82f6)",colorPrimaryTextActive:"var(--vef-color-primary-text-active, #2762cf)",colorSuccessBg:"var(--vef-color-success-bg, #f0fff3)",colorSuccessBgHover:"var(--vef-color-success-bg-hover, #c8f7d3)",colorSuccessBorder:"var(--vef-color-success-border, #98ebae)",colorSuccessBorderHover:"var(--vef-color-success-border-hover, #6dde8f)",colorSuccessHover:"var(--vef-color-success-hover, #6dde8f)",colorSuccessActive:"var(--vef-color-success-active, #139e4b)",colorSuccessTextHover:"var(--vef-color-success-text-hover, #45d174)",colorSuccessText:"var(--vef-color-success-text, #22c55e)",colorSuccessTextActive:"var(--vef-color-success-text-active, #139e4b)",colorErrorBg:"var(--vef-color-error-bg, #fff2f0)",colorErrorBgHover:"var(--vef-color-error-bg-hover, #ffedeb)",colorErrorBgActive:"var(--vef-color-error-bg-active, #ffc8c2)",colorErrorBorder:"var(--vef-color-error-border, #ffc8c2)",colorErrorBorderHover:"var(--vef-color-error-border-hover, #ffa099)",colorErrorHover:"var(--vef-color-error-hover, #fc746f)",colorErrorActive:"var(--vef-color-error-active, #c92e34)",colorErrorTextHover:"var(--vef-color-error-text-hover, #fc746f)",colorErrorText:"var(--vef-color-error-text, #ef4444)",colorErrorTextActive:"var(--vef-color-error-text-active, #c92e34)",colorWarningBg:"var(--vef-color-warning-bg, #fff4e6)",colorWarningBgHover:"var(--vef-color-warning-bg-hover, #ffe0ba)",colorWarningBorder:"var(--vef-color-warning-border, #ffca91)",colorWarningBorderHover:"var(--vef-color-warning-border-hover, #ffb169)",colorWarningHover:"var(--vef-color-warning-hover, #ffb169)",colorWarningActive:"var(--vef-color-warning-active, #d45608)",colorWarningTextHover:"var(--vef-color-warning-text-hover, #ff9640)",colorWarningText:"var(--vef-color-warning-text, #f97316)",colorWarningTextActive:"var(--vef-color-warning-text-active, #d45608)",colorInfoBg:"var(--vef-color-info-bg, #e6fbff)",colorInfoBgHover:"var(--vef-color-info-bg-hover, #b3f1ff)",colorInfoBorder:"var(--vef-color-info-border, #8ae6ff)",colorInfoBorderHover:"var(--vef-color-info-border-hover, #61d7ff)",colorInfoHover:"var(--vef-color-info-hover, #61d7ff)",colorInfoActive:"var(--vef-color-info-active, #027fc2)",colorInfoTextHover:"var(--vef-color-info-text-hover, #36bff5)",colorInfoText:"var(--vef-color-info-text, #0ea5e9)",colorInfoTextActive:"var(--vef-color-info-text-active, #027fc2)",colorLinkHover:"var(--vef-color-link-hover, #bac0ff)",colorLinkActive:"var(--vef-color-link-active, #4c49cc)",colorBgMask:"var(--vef-color-bg-mask, rgb(0 0 0 / 45%))",colorWhite:"var(--vef-color-white, #ffffff)",fontSizeXs:"0.75rem",fontSizeSm:"var(--vef-font-size-sm, 14px)",fontSizeLg:"var(--vef-font-size-lg, 18px)",fontSizeXl:"var(--vef-font-size-xl, 22px)",fontSizeHeading1:"var(--vef-font-size-heading-1, 42px)",fontSizeHeading2:"var(--vef-font-size-heading-2, 34px)",fontSizeHeading3:"var(--vef-font-size-heading-3, 28px)",fontSizeHeading4:"var(--vef-font-size-heading-4, 22px)",fontSizeHeading5:"var(--vef-font-size-heading-5, 18px)",lineHeight:"var(--vef-line-height, 1.5)",lineHeightLg:"var(--vef-line-height-lg, 1.4444444444444444)",lineHeightSm:"var(--vef-line-height-sm, 1.5714285714285714)",fontHeight:"var(--vef-font-height, 24px)",fontHeightLg:"var(--vef-font-height-lg, 26px)",fontHeightSm:"var(--vef-font-height-sm, 22px)",lineHeightHeading1:"var(--vef-line-height-heading-1, 1.1904761904761905)",lineHeightHeading2:"var(--vef-line-height-heading-2, 1.2352941176470589)",lineHeightHeading3:"var(--vef-line-height-heading-3, 1.2857142857142858)",lineHeightHeading4:"var(--vef-line-height-heading-4, 1.3636363636363635)",lineHeightHeading5:"var(--vef-line-height-heading-5, 1.4444444444444444)",controlHeightSm:"var(--vef-control-height-sm, 27px)",controlHeightXs:"var(--vef-control-height-xs, 18px)",controlHeightLg:"var(--vef-control-height-lg, 45px)",motionDurationFast:"var(--vef-motion-duration-fast, 0.1s)",motionDurationMid:"var(--vef-motion-duration-mid, 0.2s)",motionDurationSlow:"var(--vef-motion-duration-slow, 0.3s)",lineWidthBold:"var(--vef-line-width-bold, 2px)",borderRadiusXs:"var(--vef-border-radius-xs, 2px)",borderRadiusSm:"var(--vef-border-radius-sm, 4px)",borderRadiusLg:"var(--vef-border-radius-lg, 8px)",borderRadiusOuter:"var(--vef-border-radius-outer, 4px)",colorFillContent:"var(--vef-color-fill-content, rgb(23 23 23 / 6%))",colorFillContentHover:"var(--vef-color-fill-content-hover, rgb(23 23 23 / 15%))",colorFillAlter:"var(--vef-color-fill-alter, rgb(23 23 23 / 2%))",colorBgContainerDisabled:"var(--vef-color-bg-container-disabled, rgb(23 23 23 / 4%))",colorBorderBg:"var(--vef-color-border-bg, #ffffff)",colorSplit:"var(--vef-color-split, rgb(5 5 5 / 6%))",colorTextPlaceholder:"var(--vef-color-text-placeholder, rgb(23 23 23 / 25%))",colorTextDisabled:"var(--vef-color-text-disabled, rgb(23 23 23 / 25%))",colorTextHeading:"var(--vef-color-text-heading, rgb(23 23 23 / 88%))",colorTextLabel:"var(--vef-color-text-label, rgb(23 23 23 / 65%))",colorTextDescription:"var(--vef-color-text-description, rgb(23 23 23 / 45%))",colorTextLightSolid:"var(--vef-color-text-light-solid, #ffffff)",colorHighlight:"var(--vef-color-highlight, #ef4444)",colorBgTextHover:"var(--vef-color-bg-text-hover, rgb(23 23 23 / 6%))",colorBgTextActive:"var(--vef-color-bg-text-active, rgb(23 23 23 / 15%))",colorIcon:"var(--vef-color-icon, rgb(23 23 23 / 45%))",colorIconHover:"var(--vef-color-icon-hover, rgb(23 23 23 / 88%))",colorErrorOutline:"var(--vef-color-error-outline, rgb(255 38 5 / 6%))",colorWarningOutline:"var(--vef-color-warning-outline, rgb(255 145 5 / 10%))",fontSizeIcon:"var(--vef-font-size-icon, 14px)",lineWidthFocus:"var(--vef-line-width-focus, 4px)",controlOutlineWidth:"var(--vef-control-outline-width, 2px)",controlInteractiveSize:"var(--vef-control-interactive-size, 18px)",controlItemBgHover:"var(--vef-control-item-bg-hover, rgb(23 23 23 / 4%))",controlItemBgActive:"var(--vef-control-item-bg-active, #f0f8ff)",controlItemBgActiveHover:"var(--vef-control-item-bg-active-hover, #e0f0ff)",controlItemBgActiveDisabled:"var(--vef-control-item-bg-active-disabled, rgb(23 23 23 / 15%))",controlTmpOutline:"var(--vef-control-tmp-outline, rgb(23 23 23 / 2%))",controlOutline:"var(--vef-control-outline, rgb(5 138 255 / 6%))",fontWeightStrong:"var(--vef-font-weight-strong, 600)",opacityLoading:"var(--vef-opacity-loading, 0.65)",linkDecoration:"var(--vef-link-decoration, none)",linkHoverDecoration:"var(--vef-link-hover-decoration, none)",linkFocusDecoration:"var(--vef-link-focus-decoration, none)",controlPaddingHorizontal:"var(--vef-control-padding-horizontal, 12px)",controlPaddingHorizontalSm:"var(--vef-control-padding-horizontal-sm, 8px)",paddingXxs:"var(--vef-padding-xxs, 4px)",paddingXs:"var(--vef-padding-xs, 8px)",paddingSm:"var(--vef-padding-sm, 12px)",padding:"var(--vef-padding, 16px)",paddingMd:"var(--vef-padding-md, 20px)",paddingLg:"var(--vef-padding-lg, 24px)",paddingXl:"var(--vef-padding-xl, 32px)",paddingContentHorizontalLg:"var(--vef-padding-content-horizontal-lg, 24px)",paddingContentVerticalLg:"var(--vef-padding-content-vertical-lg, 16px)",paddingContentHorizontal:"var(--vef-padding-content-horizontal, 16px)",paddingContentVertical:"var(--vef-padding-content-vertical, 12px)",paddingContentHorizontalSm:"var(--vef-padding-content-horizontal-sm, 16px)",paddingContentVerticalSm:"var(--vef-padding-content-vertical-sm, 8px)",marginXxs:"var(--vef-margin-xxs, 4px)",marginXs:"var(--vef-margin-xs, 8px)",marginSm:"var(--vef-margin-sm, 12px)",margin:"var(--vef-margin, 16px)",marginMd:"var(--vef-margin-md, 20px)",marginLg:"var(--vef-margin-lg, 24px)",marginXl:"var(--vef-margin-xl, 32px)",marginXxl:"var(--vef-margin-xxl, 48px)",boxShadow:"var(--vef-box-shadow, 0 6px 16px 0 rgb(0 0 0 / 8%), 0 3px 6px -4px rgb(0 0 0 / 12%), 0 9px 28px 8px rgb(0 0 0 / 5%))",boxShadowSecondary:"var(--vef-box-shadow-secondary, 0 6px 16px 0 rgb(0 0 0 / 8%), 0 3px 6px -4px rgb(0 0 0 / 12%), 0 9px 28px 8px rgb(0 0 0 / 5%))",boxShadowTertiary:"var(--vef-box-shadow-tertiary, 0 1px 2px 0 rgb(0 0 0 / 3%), 0 1px 6px -1px rgb(0 0 0 / 2%), 0 2px 4px 0 rgb(0 0 0 / 2%))",boxShadowPopoverArrow:"var(--vef-box-shadow-popover-arrow, 2px 2px 5px rgb(0 0 0 / 5%))",boxShadowCard:"var(--vef-box-shadow-card, 0 1px 2px -2px rgb(0 0 0 / 16%), 0 3px 6px 0 rgb(0 0 0 / 12%), 0 5px 12px 4px rgb(0 0 0 / 9%))",boxShadowDrawerRight:"var(--vef-box-shadow-drawer-right, -6px 0 16px 0 rgb(0 0 0 / 8%), -3px 0 6px -4px rgb(0 0 0 / 12%), -9px 0 28px 8px rgb(0 0 0 / 5%))",boxShadowDrawerLeft:"var(--vef-box-shadow-drawer-left, 6px 0 16px 0 rgb(0 0 0 / 8%), 3px 0 6px -4px rgb(0 0 0 / 12%), 9px 0 28px 8px rgb(0 0 0 / 5%))",boxShadowDrawerUp:"var(--vef-box-shadow-drawer-up, 0 6px 16px 0 rgb(0 0 0 / 8%), 0 3px 6px -4px rgb(0 0 0 / 12%), 0 9px 28px 8px rgb(0 0 0 / 5%))",boxShadowDrawerDown:"var(--vef-box-shadow-drawer-down, 0 -6px 16px 0 rgb(0 0 0 / 8%), 0 -3px 6px -4px rgb(0 0 0 / 12%), 0 -9px 28px 8px rgb(0 0 0 / 5%))",boxShadowTabsOverflowLeft:"var(--vef-box-shadow-tabs-overflow-left, inset 10px 0 8px -8px rgb(0 0 0 / 8%))",boxShadowTabsOverflowRight:"var(--vef-box-shadow-tabs-overflow-right, inset -10px 0 8px -8px rgb(0 0 0 / 8%))",boxShadowTabsOverflowTop:"var(--vef-box-shadow-tabs-overflow-top, inset 0 10px 8px -8px rgb(0 0 0 / 8%))",boxShadowTabsOverflowBottom:"var(--vef-box-shadow-tabs-overflow-bottom, inset 0 -10px 8px -8px rgb(0 0 0 / 8%))",boxShadowElevated:"0 0 1px rgb(0 0 0 / 30%), 0 4px 14px rgb(0 0 0 / 10%)"};export{e as themeVariables};
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ const e={blue:"var(--vef-blue)",purple:"var(--vef-purple)",cyan:"var(--vef-cyan)",green:"var(--vef-green)",magenta:"var(--vef-magenta)",pink:"var(--vef-pink)",red:"var(--vef-red)",orange:"var(--vef-orange)",yellow:"var(--vef-yellow)",volcano:"var(--vef-volcano)",geekblue:"var(--vef-geekblue)",gold:"var(--vef-gold)",lime:"var(--vef-lime)",colorPrimary:"var(--vef-color-primary)",colorSuccess:"var(--vef-color-success)",colorWarning:"var(--vef-color-warning)",colorError:"var(--vef-color-error)",colorInfo:"var(--vef-color-info)",colorLink:"var(--vef-color-link)",colorTextBase:"var(--vef-color-text-base)",colorBgBase:"var(--vef-color-bg-base)",fontFamily:"var(--vef-font-family)",fontFamilyCode:"var(--vef-font-family-code)",fontSize:"var(--vef-font-size)",lineWidth:"var(--vef-line-width)",lineType:"var(--vef-line-type)",motionEaseOutCirc:"var(--vef-motion-ease-out-circ)",motionEaseInOutCirc:"var(--vef-motion-ease-in-out-circ)",motionEaseOut:"var(--vef-motion-ease-out)",motionEaseInOut:"var(--vef-motion-ease-in-out)",motionEaseOutBack:"var(--vef-motion-ease-out-back)",motionEaseInBack:"var(--vef-motion-ease-in-back)",motionEaseInQuint:"var(--vef-motion-ease-in-quint)",motionEaseOutQuint:"var(--vef-motion-ease-out-quint)",borderRadius:"var(--vef-border-radius)",sizePopupArrow:"var(--vef-size-popup-arrow)",controlHeight:"var(--vef-control-height)",zIndexBase:"var(--vef-z-index-base)",zIndexPopupBase:"var(--vef-z-index-popup-base)",opacityImage:"var(--vef-opacity-image)",colorBgLayout:"var(--vef-color-bg-layout)",colorBgSpotlight:"var(--vef-color-bg-spotlight)",blue1:"var(--vef-blue-1)",blue2:"var(--vef-blue-2)",blue3:"var(--vef-blue-3)",blue4:"var(--vef-blue-4)",blue5:"var(--vef-blue-5)",blue6:"var(--vef-blue-6)",blue7:"var(--vef-blue-7)",blue8:"var(--vef-blue-8)",blue9:"var(--vef-blue-9)",blue10:"var(--vef-blue-10)",purple1:"var(--vef-purple-1)",purple2:"var(--vef-purple-2)",purple3:"var(--vef-purple-3)",purple4:"var(--vef-purple-4)",purple5:"var(--vef-purple-5)",purple6:"var(--vef-purple-6)",purple7:"var(--vef-purple-7)",purple8:"var(--vef-purple-8)",purple9:"var(--vef-purple-9)",purple10:"var(--vef-purple-10)",cyan1:"var(--vef-cyan-1)",cyan2:"var(--vef-cyan-2)",cyan3:"var(--vef-cyan-3)",cyan4:"var(--vef-cyan-4)",cyan5:"var(--vef-cyan-5)",cyan6:"var(--vef-cyan-6)",cyan7:"var(--vef-cyan-7)",cyan8:"var(--vef-cyan-8)",cyan9:"var(--vef-cyan-9)",cyan10:"var(--vef-cyan-10)",green1:"var(--vef-green-1)",green2:"var(--vef-green-2)",green3:"var(--vef-green-3)",green4:"var(--vef-green-4)",green5:"var(--vef-green-5)",green6:"var(--vef-green-6)",green7:"var(--vef-green-7)",green8:"var(--vef-green-8)",green9:"var(--vef-green-9)",green10:"var(--vef-green-10)",magenta1:"var(--vef-magenta-1)",magenta2:"var(--vef-magenta-2)",magenta3:"var(--vef-magenta-3)",magenta4:"var(--vef-magenta-4)",magenta5:"var(--vef-magenta-5)",magenta6:"var(--vef-magenta-6)",magenta7:"var(--vef-magenta-7)",magenta8:"var(--vef-magenta-8)",magenta9:"var(--vef-magenta-9)",magenta10:"var(--vef-magenta-10)",pink1:"var(--vef-pink-1)",pink2:"var(--vef-pink-2)",pink3:"var(--vef-pink-3)",pink4:"var(--vef-pink-4)",pink5:"var(--vef-pink-5)",pink6:"var(--vef-pink-6)",pink7:"var(--vef-pink-7)",pink8:"var(--vef-pink-8)",pink9:"var(--vef-pink-9)",pink10:"var(--vef-pink-10)",red1:"var(--vef-red-1)",red2:"var(--vef-red-2)",red3:"var(--vef-red-3)",red4:"var(--vef-red-4)",red5:"var(--vef-red-5)",red6:"var(--vef-red-6)",red7:"var(--vef-red-7)",red8:"var(--vef-red-8)",red9:"var(--vef-red-9)",red10:"var(--vef-red-10)",orange1:"var(--vef-orange-1)",orange2:"var(--vef-orange-2)",orange3:"var(--vef-orange-3)",orange4:"var(--vef-orange-4)",orange5:"var(--vef-orange-5)",orange6:"var(--vef-orange-6)",orange7:"var(--vef-orange-7)",orange8:"var(--vef-orange-8)",orange9:"var(--vef-orange-9)",orange10:"var(--vef-orange-10)",yellow1:"var(--vef-yellow-1)",yellow2:"var(--vef-yellow-2)",yellow3:"var(--vef-yellow-3)",yellow4:"var(--vef-yellow-4)",yellow5:"var(--vef-yellow-5)",yellow6:"var(--vef-yellow-6)",yellow7:"var(--vef-yellow-7)",yellow8:"var(--vef-yellow-8)",yellow9:"var(--vef-yellow-9)",yellow10:"var(--vef-yellow-10)",volcano1:"var(--vef-volcano-1)",volcano2:"var(--vef-volcano-2)",volcano3:"var(--vef-volcano-3)",volcano4:"var(--vef-volcano-4)",volcano5:"var(--vef-volcano-5)",volcano6:"var(--vef-volcano-6)",volcano7:"var(--vef-volcano-7)",volcano8:"var(--vef-volcano-8)",volcano9:"var(--vef-volcano-9)",volcano10:"var(--vef-volcano-10)",geekblue1:"var(--vef-geekblue-1)",geekblue2:"var(--vef-geekblue-2)",geekblue3:"var(--vef-geekblue-3)",geekblue4:"var(--vef-geekblue-4)",geekblue5:"var(--vef-geekblue-5)",geekblue6:"var(--vef-geekblue-6)",geekblue7:"var(--vef-geekblue-7)",geekblue8:"var(--vef-geekblue-8)",geekblue9:"var(--vef-geekblue-9)",geekblue10:"var(--vef-geekblue-10)",gold1:"var(--vef-gold-1)",gold2:"var(--vef-gold-2)",gold3:"var(--vef-gold-3)",gold4:"var(--vef-gold-4)",gold5:"var(--vef-gold-5)",gold6:"var(--vef-gold-6)",gold7:"var(--vef-gold-7)",gold8:"var(--vef-gold-8)",gold9:"var(--vef-gold-9)",gold10:"var(--vef-gold-10)",lime1:"var(--vef-lime-1)",lime2:"var(--vef-lime-2)",lime3:"var(--vef-lime-3)",lime4:"var(--vef-lime-4)",lime5:"var(--vef-lime-5)",lime6:"var(--vef-lime-6)",lime7:"var(--vef-lime-7)",lime8:"var(--vef-lime-8)",lime9:"var(--vef-lime-9)",lime10:"var(--vef-lime-10)",colorText:"var(--vef-color-text)",colorTextSecondary:"var(--vef-color-text-secondary)",colorTextTertiary:"var(--vef-color-text-tertiary)",colorTextQuaternary:"var(--vef-color-text-quaternary)",colorTextSlate:"#64748b",colorFill:"var(--vef-color-fill)",colorFillSecondary:"var(--vef-color-fill-secondary)",colorFillTertiary:"var(--vef-color-fill-tertiary)",colorFillQuaternary:"var(--vef-color-fill-quaternary)",colorBgSolid:"var(--vef-color-bg-solid)",colorBgSolidHover:"var(--vef-color-bg-solid-hover)",colorBgSolidActive:"var(--vef-color-bg-solid-active)",colorBgContainer:"var(--vef-color-bg-container)",colorBgElevated:"var(--vef-color-bg-elevated)",colorBgBlur:"var(--vef-color-bg-blur)",colorBorder:"var(--vef-color-border)",colorBorderSecondary:"var(--vef-color-border-secondary)",colorPrimaryBg:"var(--vef-color-primary-bg)",colorPrimaryBgHover:"var(--vef-color-primary-bg-hover)",colorPrimaryBorder:"var(--vef-color-primary-border)",colorPrimaryBorderHover:"var(--vef-color-primary-border-hover)",colorPrimaryHover:"var(--vef-color-primary-hover)",colorPrimaryActive:"var(--vef-color-primary-active)",colorPrimaryTextHover:"var(--vef-color-primary-text-hover)",colorPrimaryText:"var(--vef-color-primary-text)",colorPrimaryTextActive:"var(--vef-color-primary-text-active)",colorSuccessBg:"var(--vef-color-success-bg)",colorSuccessBgHover:"var(--vef-color-success-bg-hover)",colorSuccessBorder:"var(--vef-color-success-border)",colorSuccessBorderHover:"var(--vef-color-success-border-hover)",colorSuccessHover:"var(--vef-color-success-hover)",colorSuccessActive:"var(--vef-color-success-active)",colorSuccessTextHover:"var(--vef-color-success-text-hover)",colorSuccessText:"var(--vef-color-success-text)",colorSuccessTextActive:"var(--vef-color-success-text-active)",colorErrorBg:"var(--vef-color-error-bg)",colorErrorBgHover:"var(--vef-color-error-bg-hover)",colorErrorBgFilledHover:"var(--vef-color-error-bg-filled-hover)",colorErrorBgActive:"var(--vef-color-error-bg-active)",colorErrorBorder:"var(--vef-color-error-border)",colorErrorBorderHover:"var(--vef-color-error-border-hover)",colorErrorHover:"var(--vef-color-error-hover)",colorErrorActive:"var(--vef-color-error-active)",colorErrorTextHover:"var(--vef-color-error-text-hover)",colorErrorText:"var(--vef-color-error-text)",colorErrorTextActive:"var(--vef-color-error-text-active)",colorWarningBg:"var(--vef-color-warning-bg)",colorWarningBgHover:"var(--vef-color-warning-bg-hover)",colorWarningBorder:"var(--vef-color-warning-border)",colorWarningBorderHover:"var(--vef-color-warning-border-hover)",colorWarningHover:"var(--vef-color-warning-hover)",colorWarningActive:"var(--vef-color-warning-active)",colorWarningTextHover:"var(--vef-color-warning-text-hover)",colorWarningText:"var(--vef-color-warning-text)",colorWarningTextActive:"var(--vef-color-warning-text-active)",colorInfoBg:"var(--vef-color-info-bg)",colorInfoBgHover:"var(--vef-color-info-bg-hover)",colorInfoBorder:"var(--vef-color-info-border)",colorInfoBorderHover:"var(--vef-color-info-border-hover)",colorInfoHover:"var(--vef-color-info-hover)",colorInfoActive:"var(--vef-color-info-active)",colorInfoTextHover:"var(--vef-color-info-text-hover)",colorInfoText:"var(--vef-color-info-text)",colorInfoTextActive:"var(--vef-color-info-text-active)",colorLinkHover:"var(--vef-color-link-hover)",colorLinkActive:"var(--vef-color-link-active)",colorBgMask:"var(--vef-color-bg-mask)",colorWhite:"var(--vef-color-white)",fontSizeSm:"var(--vef-font-size-sm)",fontSizeLg:"var(--vef-font-size-lg)",fontSizeXl:"var(--vef-font-size-xl)",fontSizeHeading1:"var(--vef-font-size-heading-1)",fontSizeHeading2:"var(--vef-font-size-heading-2)",fontSizeHeading3:"var(--vef-font-size-heading-3)",fontSizeHeading4:"var(--vef-font-size-heading-4)",fontSizeHeading5:"var(--vef-font-size-heading-5)",lineHeight:"var(--vef-line-height)",lineHeightLg:"var(--vef-line-height-lg)",lineHeightSm:"var(--vef-line-height-sm)",fontHeight:"var(--vef-font-height)",fontHeightLg:"var(--vef-font-height-lg)",fontHeightSm:"var(--vef-font-height-sm)",lineHeightHeading1:"var(--vef-line-height-heading-1)",lineHeightHeading2:"var(--vef-line-height-heading-2)",lineHeightHeading3:"var(--vef-line-height-heading-3)",lineHeightHeading4:"var(--vef-line-height-heading-4)",lineHeightHeading5:"var(--vef-line-height-heading-5)",controlHeightSm:"var(--vef-control-height-sm)",controlHeightXs:"var(--vef-control-height-xs)",controlHeightLg:"var(--vef-control-height-lg)",motionDurationFast:"var(--vef-motion-duration-fast)",motionDurationMid:"var(--vef-motion-duration-mid)",motionDurationSlow:"var(--vef-motion-duration-slow)",lineWidthBold:"var(--vef-line-width-bold)",borderRadiusXs:"var(--vef-border-radius-xs)",borderRadiusSm:"var(--vef-border-radius-sm)",borderRadiusLg:"var(--vef-border-radius-lg)",borderRadiusOuter:"var(--vef-border-radius-outer)",colorFillContent:"var(--vef-color-fill-content)",colorFillContentHover:"var(--vef-color-fill-content-hover)",colorFillAlt:"var(--vef-color-fill-alter)",colorBgContainerDisabled:"var(--vef-color-bg-container-disabled)",colorBorderBg:"var(--vef-color-border-bg)",colorSplit:"var(--vef-color-split)",colorTextPlaceholder:"var(--vef-color-text-placeholder)",colorTextDisabled:"var(--vef-color-text-disabled)",colorTextHeading:"var(--vef-color-text-heading)",colorTextLabel:"var(--vef-color-text-label)",colorTextDescription:"var(--vef-color-text-description)",colorTextLightSolid:"var(--vef-color-text-light-solid)",colorHighlight:"var(--vef-color-highlight)",colorBgTextHover:"var(--vef-color-bg-text-hover)",colorBgTextActive:"var(--vef-color-bg-text-active)",colorIcon:"var(--vef-color-icon)",colorIconHover:"var(--vef-color-icon-hover)",colorErrorOutline:"var(--vef-color-error-outline)",colorWarningOutline:"var(--vef-color-warning-outline)",fontSizeIcon:"var(--vef-font-size-icon)",lineWidthFocus:"var(--vef-line-width-focus)",controlOutlineWidth:"var(--vef-control-outline-width)",controlInteractiveSize:"var(--vef-control-interactive-size)",controlItemBgHover:"var(--vef-control-item-bg-hover)",controlItemBgActive:"var(--vef-control-item-bg-active)",controlItemBgActiveHover:"var(--vef-control-item-bg-active-hover)",controlItemBgActiveDisabled:"var(--vef-control-item-bg-active-disabled)",controlTmpOutline:"var(--vef-control-tmp-outline)",controlOutline:"var(--vef-control-outline)",fontWeightStrong:"var(--vef-font-weight-strong)",opacityLoading:"var(--vef-opacity-loading)",linkDecoration:"var(--vef-link-decoration)",linkHoverDecoration:"var(--vef-link-hover-decoration)",linkFocusDecoration:"var(--vef-link-focus-decoration)",controlPaddingHorizontal:"var(--vef-control-padding-horizontal)",controlPaddingHorizontalSm:"var(--vef-control-padding-horizontal-sm)",paddingXxs:"var(--vef-padding-xxs)",paddingXs:"var(--vef-padding-xs)",paddingSm:"var(--vef-padding-sm)",padding:"var(--vef-padding)",paddingMd:"var(--vef-padding-md)",paddingLg:"var(--vef-padding-lg)",paddingXl:"var(--vef-padding-xl)",paddingContentHorizontalLg:"var(--vef-padding-content-horizontal-lg)",paddingContentVerticalLg:"var(--vef-padding-content-vertical-lg)",paddingContentHorizontal:"var(--vef-padding-content-horizontal)",paddingContentVertical:"var(--vef-padding-content-vertical)",paddingContentHorizontalSm:"var(--vef-padding-content-horizontal-sm)",paddingContentVerticalSm:"var(--vef-padding-content-vertical-sm)",marginXxs:"var(--vef-margin-xxs)",marginXs:"var(--vef-margin-xs)",marginSm:"var(--vef-margin-sm)",margin:"var(--vef-margin)",marginMd:"var(--vef-margin-md)",marginLg:"var(--vef-margin-lg)",marginXl:"var(--vef-margin-xl)",marginXxl:"var(--vef-margin-xxl)",boxShadow:"var(--vef-box-shadow)",boxShadowSecondary:"var(--vef-box-shadow-secondary)",boxShadowTertiary:"var(--vef-box-shadow-tertiary)",boxShadowPopoverArrow:"var(--vef-box-shadow-popover-arrow)",boxShadowCard:"var(--vef-box-shadow-card)",boxShadowDrawerRight:"var(--vef-box-shadow-drawer-right)",boxShadowDrawerLeft:"var(--vef-box-shadow-drawer-left)",boxShadowDrawerUp:"var(--vef-box-shadow-drawer-up)",boxShadowDrawerDown:"var(--vef-box-shadow-drawer-down)",boxShadowTabsOverflowLeft:"var(--vef-box-shadow-tabs-overflow-left)",boxShadowTabsOverflowRight:"var(--vef-box-shadow-tabs-overflow-right)",boxShadowTabsOverflowTop:"var(--vef-box-shadow-tabs-overflow-top)",boxShadowTabsOverflowBottom:"var(--vef-box-shadow-tabs-overflow-bottom)",boxShadowElevated:"0 0 1px rgb(0 0 0 / 30%), 0 4px 14px rgb(0 0 0 / 10%)"};export{e as themeVariables};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/dist/types.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { Variant } from "antd/es/config-provider";
1
2
  import type { RuleObject } from "antd/es/form";
2
3
  import type { CSSProperties, ReactNode } from "react";
3
4
  import type { defaultColorTypes, semanticColorTypes } from "./constants";
@@ -493,9 +494,9 @@ export interface Dimensions {
493
494
  height?: number;
494
495
  }
495
496
  /**
496
- * The direction of the component.
497
+ * The orientation of the component.
497
498
  */
498
- export type Direction = "horizontal" | "vertical";
499
+ export type Orientation = "horizontal" | "vertical";
499
500
  /**
500
501
  * The query config.
501
502
  */
@@ -618,6 +619,10 @@ export type PermissionCheckMode = "any" | "all";
618
619
  * The confirmation mode.
619
620
  */
620
621
  export type ConfirmationMode = "simple" | "detailed";
622
+ /**
623
+ * The variant of the form item.
624
+ */
625
+ export type FormItemVariant = Variant;
621
626
  /**
622
627
  * The action button.
623
628
  */
@@ -707,17 +712,17 @@ export interface BasicMenuItem {
707
712
  extra?: ReactNode;
708
713
  }
709
714
  /**
710
- * The sub menu item.
715
+ * The submenu item.
711
716
  */
712
- export interface SubMenuItem extends Except<BasicMenuItem, "type" | "extra"> {
717
+ export interface SubmenuItem extends Except<BasicMenuItem, "type" | "extra"> {
713
718
  /**
714
719
  * The type of the menu item.
715
720
  */
716
- type: "subMenu";
721
+ type: "submenu";
717
722
  /**
718
723
  * The children of the sub menu item.
719
724
  */
720
- children: BasicMenuItem[];
725
+ children: MenuItem[];
721
726
  }
722
727
  /**
723
728
  * The group menu item.
@@ -730,7 +735,7 @@ export interface GroupMenuItem extends Pick<BasicMenuItem, "key" | "label"> {
730
735
  /**
731
736
  * The children of the group menu item.
732
737
  */
733
- children: BasicMenuItem[];
738
+ children: MenuItem[];
734
739
  }
735
740
  /**
736
741
  * The divider menu item.
@@ -744,7 +749,12 @@ export interface DividerMenuItem extends Pick<BasicMenuItem, "key"> {
744
749
  /**
745
750
  * The menu item.
746
751
  */
747
- export type MenuItem = BasicMenuItem | SubMenuItem | GroupMenuItem | DividerMenuItem;
752
+ export type MenuItem = BasicMenuItem | SubmenuItem | GroupMenuItem | DividerMenuItem;
753
+ /**
754
+ * The key of the menu item.
755
+ */
756
+ export type MenuItemKey<T extends readonly MenuItem[]> = FlattenMenuItems<T>[number]["key"];
757
+ type FlattenMenuItems<T extends readonly MenuItem[]> = T extends readonly [infer F, ...infer R extends readonly MenuItem[]] ? F extends BasicMenuItem ? [F, ...FlattenMenuItems<R>] : F extends GroupMenuItem ? FlattenMenuItems<F["children"]> : F extends SubmenuItem ? FlattenMenuItems<F["children"]> : FlattenMenuItems<R> : [];
748
758
  /**
749
759
  * The validation rule.
750
760
  */
package/dist/utils.d.ts CHANGED
@@ -34,7 +34,7 @@ export interface AsyncFnInvocationOptions<R> {
34
34
  * @param args - The arguments
35
35
  * @returns - The result
36
36
  */
37
- export declare function invokeMaybeAsyncFn<A extends any[], R>(fn: GenericFunction<A, MaybePromise<R>>, { beforeInvoke, onSuccess, onFinally }: AsyncFnInvocationOptions<R>, ...args: A): Promise<R>;
37
+ export declare function invokeMaybeAsyncFn<A extends any[], R>(fn: GenericFunction<A, MaybePromise<R>>, { beforeInvoke, onSuccess, onFinally, }: AsyncFnInvocationOptions<R>, ...args: A): Promise<R>;
38
38
  /**
39
39
  * Get the difference between two objects
40
40
  *
package/dist/utils.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import"./lib.js";import{isFunction as t}from"radashi";function n(n){return!!t(n)&&("AsyncFunction"===n.constructor.name||"[object AsyncFunction]"===Object.prototype.toString.call(n)||n.toString().startsWith("async "))}async function r(t,{beforeInvoke:r,onSuccess:o,onFinally:e},...c){if(n(t))try{r?.();const n=await t(...c);return o?.(n),n}finally{e?.()}else{const n=t(...c);if(!(n instanceof Promise))return n;try{r?.();const t=await n;return o?.(t),t}finally{e?.()}}}function o(t,n){return Object.keys(n).filter((r=>t[r]!==n[r])).reduce(((t,r)=>(t[r]=n[r],t)),{})}export{o as difference,r as invokeMaybeAsyncFn,n as isAsyncFunction};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import n from"validator";function r(r){return n.isAlpha(r)}function t(r){return n.isAlphanumeric(r)}function i(r){return n.isAscii(r)}function e(r){return n.isNumeric(r)}function o(r){return n.isDecimal(r)}function u(r,t){return n.isFloat(r,t)}function s(r){return n.isBoolean(r,{loose:!1})}function c(r){return n.isDate(r,{format:"YYYY-MM-DD",strictMode:!0})}function f(r){return n.isEmpty(r)}function l(r){return n.isEmpty(r,{ignore_whitespace:!0})}function a(r){return n.isIdentityCard(r,"zh-CN")}function p(r,t){return n.isAfter(r,t)}function m(r,t){return n.isBefore(r,t)}function _(r){return n.isEmail(r)}function d(r){return n.isHexColor(r)}function h(r,t){return n.isIn(r,t)}function q(r,t){return n.isInt(r,t)}function g(r,t){return n.isIP(r,t)}function w(r,t){return n.isIPRange(r,t)}function L(r){return n.isJSON(r)}function y(r){return n.isJWT(r)}function C(r){return n.isLatLong(r)}function I(r,t){return n.isLength(r,t)}function N(r){return n.isMimeType(r)}function P(r){return n.isMobilePhone(r,"zh-CN")}function A(r){return n.isPort(r)}function D(r){return n.isPostalCode(r,"CN")}function M(r){return n.isSemVer(r)}function S(r){return n.isSlug(r)}function U(r){return n.isStrongPassword(r,{minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1})}function v(r,t){return n.isTime(r,t)}function E(r){return n.isURL(r,{protocols:["http","https"],require_tld:!0,require_protocol:!0,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!0})}function Y(r){return n.isURL(r,{protocols:[],require_tld:!1,require_protocol:!1,require_host:!1,require_port:!1,require_valid_protocol:!1,allow_underscores:!0,allow_fragments:!1,allow_query_components:!1,allow_protocol_relative_urls:!1})}function b(r,t){return n.isUUID(r,t)}function R(n){const[r,t]=n.split(" ",2);return c(r)&&v(t)}function T(r,t,i){return n.matches(r,t,i)}const x=/^[\u4E00-\u9FA5]+\d*$/;function z(n){return x.test(n)}export{p as isAfter,r as isAlpha,t as isAlphanumeric,i as isAscii,m as isBefore,l as isBlank,s as isBoolean,z as isChineseName,c as isDate,R as isDateTime,o as isDecimal,_ as isEmail,f as isEmpty,u as isFloat,d as isHexColor,a as isIdentityCard,h as isIn,q as isInt,g as isIp,w as isIpRange,L as isJson,y as isJwt,C as isLatLong,I as isLength,N as isMimeType,P as isMobilePhone,e as isNumeric,A as isPort,D as isPostalCode,M as isSemVer,S as isSlug,U as isStrongPassword,v as isTime,Y as isUri,E as isUrl,b as isUuid,T as matches};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@vef-framework/shared",
3
3
  "type": "module",
4
- "version": "1.0.7",
4
+ "version": "1.0.9",
5
5
  "private": false,
6
+ "packageManager": "pnpm@9.15.0",
6
7
  "description": "Shared fundamental to the VEF framework",
7
8
  "author": "Venus",
8
9
  "keywords": [
@@ -18,24 +19,16 @@
18
19
  "engines": {
19
20
  "node": ">=20"
20
21
  },
21
- "scripts": {
22
- "build": "pnpm clean && tsx build.ts",
23
- "clean": "rimraf dist"
24
- },
25
- "peerDependencies": {
26
- "react": "18.3.1",
27
- "react-dom": "18.3.1",
28
- "zustand": "5.0.1"
29
- },
30
22
  "dependencies": {
31
- "@emotion/cache": "11.13.5",
32
- "@emotion/react": "11.13.5",
33
- "@emotion/styled": "11.13.5",
34
- "antd": "5.22.3",
23
+ "@emotion/cache": "11.14.0",
24
+ "@emotion/react": "11.14.0",
25
+ "@emotion/styled": "11.14.0",
26
+ "antd": "5.22.4",
35
27
  "tslib": "2.8.1",
36
28
  "use-sync-external-store": "^1.4.0",
37
29
  "@ant-design/icons": "5.5.2",
38
- "@date-fns/tz": "1.1.2",
30
+ "@date-fns/tz": "1.2.0",
31
+ "colord": "^2.9.3",
39
32
  "date-fns": "4.1.0",
40
33
  "jsencrypt": "3.3.2",
41
34
  "mitt": "3.0.1",
@@ -49,12 +42,12 @@
49
42
  "use-context-selector": "2.0.0",
50
43
  "validator": "13.12.0"
51
44
  },
52
- "devDependencies": {
53
- "@types/path-browserify": "1.0.3",
54
- "@types/scheduler": "0.23.0",
55
- "@types/validator": "13.12.2"
56
- },
57
45
  "publishConfig": {
58
46
  "access": "public"
47
+ },
48
+ "peerDependencies": {
49
+ "react": ">=18.0.0",
50
+ "react-dom": ">=18.0.0",
51
+ "zustand": ">=5.0.0"
59
52
  }
60
53
  }