@vef-framework/shared 1.0.5
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 +25 -0
- package/dist/constants.d.ts +28 -0
- package/dist/constants.js +3 -0
- package/dist/context.d.ts +21 -0
- package/dist/context.js +3 -0
- package/dist/dom.d.ts +9 -0
- package/dist/dom.js +3 -0
- package/dist/error.d.ts +16 -0
- package/dist/error.js +3 -0
- package/dist/event.d.ts +6 -0
- package/dist/event.js +3 -0
- package/dist/expression.d.ts +23 -0
- package/dist/expression.js +3 -0
- package/dist/function.d.ts +8 -0
- package/dist/function.js +3 -0
- package/dist/icons.d.ts +14 -0
- package/dist/icons.js +3 -0
- package/dist/id.d.ts +6 -0
- package/dist/id.js +3 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +3 -0
- package/dist/lib.d.ts +5 -0
- package/dist/lib.js +3 -0
- package/dist/message.d.ts +372 -0
- package/dist/message.js +3 -0
- package/dist/path.d.ts +43 -0
- package/dist/path.js +3 -0
- package/dist/pinyin.d.ts +14 -0
- package/dist/pinyin.js +3 -0
- package/dist/security.d.ts +16 -0
- package/dist/security.js +3 -0
- package/dist/store.d.ts +25 -0
- package/dist/store.js +3 -0
- package/dist/styles.d.ts +21 -0
- package/dist/styles.js +3 -0
- package/dist/temporal.d.ts +18 -0
- package/dist/temporal.js +3 -0
- package/dist/theme-variables.d.ts +339 -0
- package/dist/theme-variables.js +3 -0
- package/dist/types.d.ts +769 -0
- package/dist/utils.d.ts +45 -0
- package/dist/utils.js +3 -0
- package/dist/validation.d.ts +38 -0
- package/dist/validation.js +3 -0
- package/package.json +59 -0
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# The Shared foundations of VEF Framework
|
|
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.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
To install the VEF framework shared foundations, you can use pnpm or any other package manager you like:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pnpm add @vef-framework/shared
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
To use the VEF framework shared foundations in your project, you can import them from the package, for example:
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { generateId } from "@vef-framework/shared";
|
|
19
|
+
|
|
20
|
+
const uniqueId = generateId();
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Documentation
|
|
24
|
+
|
|
25
|
+
For more details on how to use the VEF framework shared foundations, please refer to the [official documentation](https://vef.ilxqx.com/docs).
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The default color types
|
|
3
|
+
*/
|
|
4
|
+
export declare const defaultColorTypes: readonly ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "gold", "lime"];
|
|
5
|
+
/**
|
|
6
|
+
* The semantic color types
|
|
7
|
+
*/
|
|
8
|
+
export declare const semanticColorTypes: readonly ["primary", "info", "success", "warning", "error"];
|
|
9
|
+
/**
|
|
10
|
+
* The color types
|
|
11
|
+
*/
|
|
12
|
+
export declare const colorTypes: ("blue" | "purple" | "cyan" | "green" | "magenta" | "pink" | "red" | "orange" | "yellow" | "volcano" | "geekblue" | "gold" | "lime" | "primary" | "info" | "success" | "warning" | "error")[];
|
|
13
|
+
/**
|
|
14
|
+
* The creation form scene
|
|
15
|
+
*/
|
|
16
|
+
export declare const creationFormScene = "creation";
|
|
17
|
+
/**
|
|
18
|
+
* The modification form scene
|
|
19
|
+
*/
|
|
20
|
+
export declare const modificationFormScene = "modification";
|
|
21
|
+
/**
|
|
22
|
+
* The audit form scene
|
|
23
|
+
*/
|
|
24
|
+
export declare const auditFormScene = "audit";
|
|
25
|
+
/**
|
|
26
|
+
* The preset form scenes
|
|
27
|
+
*/
|
|
28
|
+
export declare const presetFormScenes: readonly ["creation", "modification", "audit"];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
|
|
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
|
+
/*! 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 */
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type Context } from "use-context-selector";
|
|
2
|
+
import type { Mapper, Provider } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Create a context that can be selected with a selector.
|
|
5
|
+
*
|
|
6
|
+
* @param defaultValue - The default value of the context.
|
|
7
|
+
*/
|
|
8
|
+
export declare function createSelectableContext<T>(defaultValue: T): {
|
|
9
|
+
/**
|
|
10
|
+
* The provider of the context.
|
|
11
|
+
*/
|
|
12
|
+
ContextProvider: Context<T>["Provider"];
|
|
13
|
+
/**
|
|
14
|
+
* The selector of the context.
|
|
15
|
+
*/
|
|
16
|
+
useContextSelector: <R>(selector: Mapper<T, R>) => R;
|
|
17
|
+
/**
|
|
18
|
+
* The hook of the context.
|
|
19
|
+
*/
|
|
20
|
+
useContext: Provider<T>;
|
|
21
|
+
};
|
package/dist/context.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
|
|
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
|
+
/*! 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.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the height of an element
|
|
3
|
+
*
|
|
4
|
+
* @param element The parent element
|
|
5
|
+
* @param selector The selector of the child element
|
|
6
|
+
* @param includeMargin Whether to include the margin of the child element
|
|
7
|
+
* @returns The height of the target element
|
|
8
|
+
*/
|
|
9
|
+
export declare function getElementHeight(element: HTMLElement, selector?: string, includeMargin?: boolean): number;
|
package/dist/dom.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
|
|
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
|
+
/*! 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.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The error of Vef framework.
|
|
3
|
+
*/
|
|
4
|
+
export declare class VefError extends Error {
|
|
5
|
+
/**
|
|
6
|
+
* Constructs a new VefError.
|
|
7
|
+
*
|
|
8
|
+
* @param code - The code of the error.
|
|
9
|
+
* @param message - The message of the error.
|
|
10
|
+
*/
|
|
11
|
+
constructor(code: number, message: string);
|
|
12
|
+
/**
|
|
13
|
+
* The code of the error.
|
|
14
|
+
*/
|
|
15
|
+
readonly code: number;
|
|
16
|
+
}
|
package/dist/error.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
|
|
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
|
+
/*! 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.d.ts
ADDED
package/dist/event.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
|
|
2
|
+
import t from"mitt";function r(){return t()}export{r as createEventEmitter};
|
|
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 */
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { BiMapper, Expression, ObjectValue } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Check if the value is an expression.
|
|
4
|
+
*
|
|
5
|
+
* @param value - The value.
|
|
6
|
+
* @returns Whether the value is an expression.
|
|
7
|
+
*/
|
|
8
|
+
export declare function isExpression(value: unknown): value is Expression;
|
|
9
|
+
/**
|
|
10
|
+
* Check if the value is a function or an expression.
|
|
11
|
+
*
|
|
12
|
+
* @param value - The value.
|
|
13
|
+
* @returns Whether the value is a function or an expression.
|
|
14
|
+
*/
|
|
15
|
+
export declare function isFunctionOrExpression(value: unknown): value is BiMapper<ObjectValue, string, unknown> | Expression;
|
|
16
|
+
/**
|
|
17
|
+
* Compile the dynamic function.
|
|
18
|
+
*
|
|
19
|
+
* @param key - The key.
|
|
20
|
+
* @param args - The arguments.
|
|
21
|
+
* @returns The dynamic function.
|
|
22
|
+
*/
|
|
23
|
+
export declare function compileDynamicFn(key: object, ...args: string[]): Function;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
|
|
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
|
+
/*! 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 */
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AnyFunction, MaybeUndefined } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Merge multiple functions into a single function.
|
|
4
|
+
*
|
|
5
|
+
* @param fns - The functions to merge
|
|
6
|
+
* @returns The merged function
|
|
7
|
+
*/
|
|
8
|
+
export declare function mergeFns<T extends AnyFunction>(...fns: Array<MaybeUndefined<T>>): T;
|
package/dist/function.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
|
|
2
|
+
function o(...o){return(...n)=>{for(const r of o)r&&r(...n)}}export{o as mergeFns};
|
|
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.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SVGProps } from "react";
|
|
2
|
+
export declare function VefIconConfirm(props: SVGProps<SVGSVGElement>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function VefIconConfirmCircle(props: SVGProps<SVGSVGElement>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function VefIconMenuFoldLeft(props: SVGProps<SVGSVGElement>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function VefIconMenuUnfoldLeft(props: SVGProps<SVGSVGElement>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function VefIconAdd(props: SVGProps<SVGSVGElement>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function VefIconAddCircle(props: SVGProps<SVGSVGElement>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function VefIconRemove(props: SVGProps<SVGSVGElement>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function VefIconRemoveCircle(props: SVGProps<SVGSVGElement>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function VefIconTick(props: React.SVGProps<SVGSVGElement>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function VefIconTickCircle(props: React.SVGProps<SVGSVGElement>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function VefIconInfoCircle(props: React.SVGProps<SVGSVGElement>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function VefIconAlertCircle(props: React.SVGProps<SVGSVGElement>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function VefIconAlertTriangle(props: React.SVGProps<SVGSVGElement>): import("@emotion/react/jsx-runtime").JSX.Element;
|
package/dist/icons.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, 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};
|
|
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.d.ts
ADDED
package/dist/id.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
|
|
2
|
+
import{customAlphabet as n}from"nanoid";const o=n("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",18);function r(){return o()}export{r as generateId};
|
|
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
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from "./constants";
|
|
2
|
+
export * from "./context";
|
|
3
|
+
export * from "./dom";
|
|
4
|
+
export * from "./error";
|
|
5
|
+
export * from "./event";
|
|
6
|
+
export * from "./expression";
|
|
7
|
+
export * from "./function";
|
|
8
|
+
export * from "./icons";
|
|
9
|
+
export * from "./id";
|
|
10
|
+
export * from "./lib";
|
|
11
|
+
export * from "./message";
|
|
12
|
+
export * from "./path";
|
|
13
|
+
export * from "./pinyin";
|
|
14
|
+
export * from "./security";
|
|
15
|
+
export * from "./store";
|
|
16
|
+
export * from "./styles";
|
|
17
|
+
export * from "./temporal";
|
|
18
|
+
export * from "./theme-variables";
|
|
19
|
+
export * from "./types";
|
|
20
|
+
export * from "./utils";
|
|
21
|
+
export * as validator from "./validation";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, 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";import"./types.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";
|
|
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
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
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";
|
|
3
|
+
export { default as isEqual } from "react-fast-compare";
|
|
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, };
|
package/dist/lib.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, 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";
|
|
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 */
|