earthnut 0.2.3-alpha.2 → 1.0.0
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 +8 -8
- package/client.mjs +2 -2
- package/client.mjs.map +1 -0
- package/layoutUtil.mjs +2 -2
- package/layoutUtil.mjs.map +1 -1
- package/package.json +14 -22
- package/server.mjs +2 -2
- package/server.mjs.map +1 -1
- package/styles/common.css +1 -1012
- package/styles/common.scss +23 -345
- package/styles/flex.scss +38 -0
- package/styles/header.scss +54 -0
- package/styles/image.scss +10 -0
- package/styles/input.scss +131 -0
- package/styles/loading-keyframes.scss +242 -0
- package/styles/reset.css +1 -0
- package/styles/reset.scss +5 -4
- package/styles/root-normal-dark.scss +85 -0
- package/styles/root-normal-light.scss +83 -0
- package/styles/root-weird-dark.scss +1 -0
- package/styles/root.scss +307 -193
- package/styles/text.scss +61 -0
- package/styles/vars-color.scss +281 -233
- package/styles/vars-size.scss +6 -0
- package/type/components/ThemeContext/index.d.ts +25 -0
- package/{components → type/components}/ThemeContext/types.d.ts +4 -2
- package/{components → type/components}/button/button.d.ts +1 -1
- package/{components → type/components}/button/index.d.ts +1 -1
- package/{components → type/components}/image/index.d.ts +1 -1
- package/{components → type/components}/image/types.d.ts +1 -1
- package/{components → type/components}/image/useSrcChange.d.ts +1 -1
- package/{components → type/components}/layout/content.d.ts +1 -1
- package/{components → type/components}/layout/footer.d.ts +1 -1
- package/{components → type/components}/layout/get-value.d.ts +1 -1
- package/{components → type/components}/layout/header.d.ts +1 -1
- package/{components → type/components}/layout/index.d.ts +1 -1
- package/{components → type/components}/layout/is-fragment.d.ts +1 -1
- package/{components → type/components}/layout/layout.d.ts +1 -1
- package/{components → type/components}/layout/sidebar.d.ts +1 -1
- package/{components → type/components}/layout/types.d.ts +4 -2
- package/{components → type/components}/marquee/MarqueeEle.d.ts +1 -1
- package/{components → type/components}/marquee/index.d.ts +1 -1
- package/{components → type/components}/marquee/type.d.ts +1 -1
- package/{components → type/components}/menu/index.d.ts +1 -1
- package/{components → type/components}/menu/menu.d.ts +1 -1
- package/{components → type/components}/ripples/Content.d.ts +1 -1
- package/{components → type/components}/ripples/LazyRippleEle.d.ts +1 -1
- package/{components → type/components}/ripples/RipplesEle.d.ts +1 -1
- package/{components → type/components}/ripples/index.d.ts +1 -1
- package/{components → type/components}/ripples/types.d.ts +1 -1
- package/{components → type/components}/ripples/useOptionUpdate.d.ts +1 -1
- package/{components → type/components}/shared/EnLayoutContent/index.d.ts +2 -2
- package/{components → type/components}/shared/EnLayoutContent/types.d.ts +1 -1
- package/{components → type/components}/switch/SwitchContainer.d.ts +1 -1
- package/{components → type/components}/switch/SwitchContent.d.ts +1 -1
- package/{components → type/components}/switch/SwitchLabel.d.ts +1 -1
- package/{components → type/components}/switch/index.d.ts +1 -1
- package/type/customHooks/use-xcn/index.d.ts +14 -0
- package/{customHooks → type/customHooks}/useAnimationFrame.d.ts +1 -1
- package/{customHooks → type/customHooks}/useInputIsComposing.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/create-background-color.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/create-linear-gradient.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/default-background/_createImageData.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/default-background/circleDataList.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/default-background/createCanvasElementBySize.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/default-background/createDefault.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/default-background/index.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/load-image.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/run-side.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/type.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/utils/bind-image.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/utils/create-canvas-element.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/utils/create-image-by-src.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/utils/get-background-style.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/utils/hide-css-background.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/utils/restore-css-background.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/callback/can-side.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/callback/destroy.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/callback/drop.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/callback/extract-url.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/callback/fade.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/callback/get-new-image.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/callback/reload-background.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/callback/scale.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/index.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/init/index.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/init/initEvent.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/init/initShaders.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/init/initTexture.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/render/computeTextureBoundaries.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/render/draw.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/render/drawQuad.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/render/dropAtPointer.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/render/index.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/render/swapBufferIndices.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/render/update.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/rippersData/defaultData.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/rippersData/fadeData.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/rippersData/index.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/rippersData/loadConfig.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/rippersData/renderData.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/rippersData/useOptions.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/rippersData/vertexSource.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/ripple.html.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/ripplesClass.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/tools.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/types.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/use-lazy-ripple.d.ts +1 -1
- package/{customHooks → type/customHooks}/useTimeId.d.ts +1 -1
- package/type/dog.d.ts +8 -0
- package/{index.client.d.ts → type/index.client.d.ts} +1 -1
- package/{index.d.ts → type/index.d.ts} +1 -1
- package/{index.server.d.ts → type/index.server.d.ts} +1 -1
- package/{storage → type/storage}/main-logic .d.ts +1 -1
- package/{storage → type/storage}/storage-store.d.ts +1 -1
- package/{utilities → type/utilities}/cookie.d.ts +3 -10
- package/{utilities → type/utilities}/sys.d.ts +1 -1
- package/209.mjs +0 -10
- package/209.mjs.map +0 -1
- package/components/ThemeContext/index.d.ts +0 -11
- package/customHooks/use-xcn/index.d.ts +0 -14
package/type/dog.d.ts
ADDED
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
|
-
*
|
|
3
|
+
* enr@type/utilities/cookie.d.ts
|
|
4
4
|
* Copyright (c) 2025 earthnut.dev
|
|
5
5
|
* 请在项目根参看详细许可证明
|
|
6
6
|
*/
|
|
7
|
-
/**
|
|
8
|
-
* @Author earthnut
|
|
9
|
-
* @Email earthnut.dev@outlook.com
|
|
10
|
-
* @ProjectName nest
|
|
11
|
-
* @FileName cookie.ts
|
|
12
|
-
* @CreateDate 周五 01/10/2025
|
|
13
|
-
* @Description cookie 管理
|
|
14
|
-
*/
|
|
15
7
|
export declare const manageCookie: {
|
|
16
8
|
getItem(keyItem: string): string | null;
|
|
17
9
|
setItem(option: {
|
|
@@ -22,7 +14,8 @@ export declare const manageCookie: {
|
|
|
22
14
|
domain?: string;
|
|
23
15
|
secure?: string;
|
|
24
16
|
}): boolean;
|
|
25
|
-
deleteItem(key: string, path
|
|
17
|
+
deleteItem(key: string, path?: string, domain?: string): boolean;
|
|
18
|
+
/** 校验当前 key 是否存在 */
|
|
26
19
|
exist(key: string): boolean;
|
|
27
20
|
keys(): string[];
|
|
28
21
|
};
|
package/209.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license MIT
|
|
3
|
-
* earthnut@209.mjs
|
|
4
|
-
* Copyright (c) 2025 earthnut.dev
|
|
5
|
-
* 请在项目根参看详细许可证明
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
"use client";
|
|
9
|
-
export const __webpack_esm_id__=209;export const __webpack_esm_ids__=[209];export const __webpack_esm_modules__={209:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{H:()=>a});var a=new(function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(){};return Object.setPrototypeOf(t,this),Object.defineProperties(t,{info:{value:function(){},configurable:!1,writable:!1},warn:{value:function(){},configurable:!1,writable:!1},error:{value:function(){},configurable:!1,writable:!1},type:{value:!1,configurable:!1,writable:!1}}),t},(t=[{key:"clear",value:function(){}}])&&o(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}())({name:"earthnut",type:!1})}};
|
|
10
|
-
//# sourceMappingURL=209.mjs.map
|
package/209.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"209.mjs","mappings":"kzBACO,ICCMA,EAAM,IDDH,WAmBb,O,EAjBD,SAAAC,K,4FAAcC,CAAA,KAAAD,GACZ,IAAME,EAAO,WAAO,EAepB,OAbAC,OAAOC,eAAeF,EAAMG,MAE5BF,OAAOG,iBAAiBJ,EAAM,CAC5BK,KAAM,CAAEC,MAAO,WAAO,EAAGC,cAAc,EAAOC,UAAU,GACxDC,KAAM,CAAEH,MAAO,WAAO,EAAGC,cAAc,EAAOC,UAAU,GACxDE,MAAO,CAAEJ,MAAO,WAAO,EAAGC,cAAc,EAAOC,UAAU,GACzDG,KAAM,CACJL,OAAO,EACPC,cAAc,EACdC,UAAU,KAIPR,CACT,G,EAAC,EAAAY,IAAA,QAAAN,MACD,WAAS,M,6EAAC,CApBI,GCCG,CAAQ,CACzBO,KAAM,WACNF,MAAM,G","sources":["webpack://earthnut/./mocks/log.ts","webpack://earthnut/./dog.ts"],"sourcesContent":["/** 模拟类,用于打包用 */\nexport class Dog {\n /** 模拟类的构建 */\n constructor() {\n const _dev = () => {};\n\n Object.setPrototypeOf(_dev, this);\n\n Object.defineProperties(_dev, {\n info: { value: () => {}, configurable: false, writable: false },\n warn: { value: () => {}, configurable: false, writable: false },\n error: { value: () => {}, configurable: false, writable: false },\n type: {\n value: false,\n configurable: false,\n writable: false,\n },\n });\n\n return _dev as unknown as Dog;\n }\n clear() {}\n}\n","import { Dog } from '@qqi/log';\n/** 开发环境执行,该方法在 env === 'production' 时通过 babel 和 webpack 过滤移除 */\nexport const dog = new Dog({\n name: 'earthnut',\n type: false,\n});\n"],"names":["dog","Dog","_classCallCheck","_dev","Object","setPrototypeOf","this","defineProperties","info","value","configurable","writable","warn","error","type","key","name"],"sourceRoot":""}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license MIT
|
|
3
|
-
* earthnut@components/ThemeContext/index.d.ts
|
|
4
|
-
* Copyright (c) 2025 earthnut.dev
|
|
5
|
-
* 请在项目根参看详细许可证明
|
|
6
|
-
*/
|
|
7
|
-
import { ThemeColorModeProviderProps, ThemeContextType } from './types';
|
|
8
|
-
/** 使用主题颜色模式 */
|
|
9
|
-
export declare function useColorMode(): ThemeContextType;
|
|
10
|
-
/** */
|
|
11
|
-
export declare function ThemeColorModeProvider({ children, initialTheme, }: ThemeColorModeProviderProps): import("react").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license MIT
|
|
3
|
-
* earthnut@customHooks/use-xcn/index.d.ts
|
|
4
|
-
* Copyright (c) 2025 earthnut.dev
|
|
5
|
-
* 请在项目根参看详细许可证明
|
|
6
|
-
*/
|
|
7
|
-
/** 其实这并不是一个自定义钩子 */
|
|
8
|
-
import { EnTypeofClassNameItem, EnXcn } from 'xcn';
|
|
9
|
-
type EnClassName = 'en-flex' | 'en-flex-row' | 'en-flex-row-reverse' | 'en-flex-column' | 'en-flex-column-reverse' | 'en-flex-wrap' | 'en-full-container' | 'en-inline-block' | 'en-padding-horizontal-4' | 'en-padding-horizontal-8' | 'en-padding-horizontal-12' | 'en-padding-horizontal-16' | 'en-padding-horizontal-20' | 'en-padding-horizontal-24' | 'en-padding-horizontal-28' | 'en-padding-horizontal-32' | 'en-padding-horizontal-36' | 'en-padding-horizontal-40' | 'en-padding-vertical-4' | 'en-padding-vertical-8' | 'en-padding-vertical-12' | 'en-padding-vertical-16' | 'en-padding-vertical-20' | 'en-padding-vertical-24' | 'en-padding-vertical-28' | 'en-padding-vertical-32' | 'en-padding-vertical-36' | 'en-padding-vertical-40' | 'en-padding-4' | 'en-padding-8' | 'en-padding-12' | 'en-padding-16' | 'en-padding-20' | 'en-padding-24' | 'en-padding-28' | 'en-padding-32' | 'en-padding-36' | 'en-padding-40' | 'en-margin-horizontal-4' | 'en-margin-horizontal-8' | 'en-margin-horizontal-12' | 'en-margin-horizontal-16' | 'en-margin-horizontal-20' | 'en-margin-horizontal-24' | 'en-margin-horizontal-28' | 'en-margin-horizontal-32' | 'en-margin-horizontal-36' | 'en-margin-horizontal-40' | 'en-margin-vertical-4' | 'en-margin-vertical-8' | 'en-margin-vertical-12' | 'en-margin-vertical-16' | 'en-margin-vertical-20' | 'en-margin-vertical-24' | 'en-margin-vertical-28' | 'en-margin-vertical-32' | 'en-margin-vertical-36' | 'en-margin-vertical-40' | 'en-margin-4' | 'en-margin-8' | 'en-margin-12' | 'en-margin-16' | 'en-margin-20' | 'en-margin-24' | 'en-margin-28' | 'en-margin-32' | 'en-margin-36' | 'en-margin-40' | 'en-box-shadow-light-red100' | 'en-box-shadow-light-red100' | 'en-box-shadow-light-red100' | 'en-box-shadow-light-red100' | 'en-box-shadow-light-red100' | 'en-box-shadow-light-red100' | 'en-box-shadow-light-red100' | 'en-box-shadow-light-red100' | 'en-box-shadow-light-red100' | 'en-box-shadow-light-red100' | 'en-box-shadow-light-red100' | 'en-border-radius-4' | 'en-border-radius-8' | 'en-border-radius-12' | 'en-border-radius-16' | 'en-border-radius-20' | 'en-border-radius-24' | 'en-border-radius-28' | 'en-border-radius-32' | 'en-border-radius-36' | 'en-border-radius-40' | 'en-center' | 'en-dust' | 'en-text-in-one-line' | 'en-text-in-one-line-hide' | 'en-text-in-two-line' | 'en-color-text' | 'en-bg-red' | 'en-float-left' | 'en-float' | 'en-float-right' | 'en-clear-float' | 'en-clear' | 'en-loading' | 'en-text-center' | 'en-text-right' | 'eb-text-small' | 'en-relative' | 'en-user-select-text' | 'en-cursor-pointer';
|
|
10
|
-
/** 在 xcn 中使用 earthnut 样式类 */
|
|
11
|
-
export declare function _en<T extends EnClassName[]>(...classNameList: T): EnXcn<{
|
|
12
|
-
[K in keyof T]: EnTypeofClassNameItem<T[K]>;
|
|
13
|
-
}>;
|
|
14
|
-
export {};
|