@ug666/ui-core 0.3.0-beta.1 → 0.3.0-beta.3
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/LICENSE +21 -0
- package/dist/RELEASE_PROVENANCE.json +8 -0
- package/dist/THIRD_PARTY_NOTICES.txt +98 -0
- package/dist/chunk-SSXPAFU2.js +3 -0
- package/dist/chunk-SSXPAFU2.js.map +1 -0
- package/dist/compat/table-css.d.ts +12 -0
- package/dist/compat/table-css.d.ts.map +1 -0
- package/dist/controls/rating.d.ts +6 -0
- package/dist/controls/rating.d.ts.map +1 -0
- package/dist/controls/select-value.d.ts.map +1 -0
- package/dist/controls/selection-list.d.ts +31 -0
- package/dist/controls/selection-list.d.ts.map +1 -0
- package/dist/controls/text-value.d.ts.map +1 -0
- package/dist/date-time/calendar.d.ts +26 -0
- package/dist/date-time/calendar.d.ts.map +1 -0
- package/dist/date-time/date-picker-modes.d.ts +16 -0
- package/dist/date-time/date-picker-modes.d.ts.map +1 -0
- package/dist/date-time/date-range.d.ts +9 -0
- package/dist/date-time/date-range.d.ts.map +1 -0
- package/dist/date-time/date-time.d.ts +43 -0
- package/dist/date-time/date-time.d.ts.map +1 -0
- package/dist/form/form-state.d.ts +30 -0
- package/dist/form/form-state.d.ts.map +1 -0
- package/dist/{form-validation.d.ts → form/form-validation.d.ts} +2 -1
- package/dist/form/form-validation.d.ts.map +1 -0
- package/dist/image-preview.d.ts +8 -0
- package/dist/image-preview.d.ts.map +1 -0
- package/dist/index.cjs +2 -180
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +19 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -121
- package/dist/index.js.map +1 -1
- package/dist/table/table-layout.d.ts +14 -0
- package/dist/table/table-layout.d.ts.map +1 -0
- package/dist/table/table-structure.d.ts +29 -0
- package/dist/table/table-structure.d.ts.map +1 -0
- package/dist/table/tree-table.d.ts +21 -0
- package/dist/table/tree-table.d.ts.map +1 -0
- package/dist/theme/color.d.ts +17 -0
- package/dist/theme/color.d.ts.map +1 -0
- package/dist/theme/state.d.ts +79 -0
- package/dist/theme/state.d.ts.map +1 -0
- package/dist/theme.cjs +2 -59
- package/dist/theme.cjs.map +1 -1
- package/dist/theme.d.ts +2 -31
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +2 -8
- package/dist/tree/tree-check.d.ts +23 -0
- package/dist/tree/tree-check.d.ts.map +1 -0
- package/dist/tree/tree-drag.d.ts +8 -0
- package/dist/tree/tree-drag.d.ts.map +1 -0
- package/dist/tree/tree-path.d.ts +29 -0
- package/dist/tree/tree-path.d.ts.map +1 -0
- package/package.json +4 -3
- package/dist/chunk-S4DT6FOD.js +0 -35
- package/dist/chunk-S4DT6FOD.js.map +0 -1
- package/dist/form-validation.d.ts.map +0 -1
- package/dist/select-value.d.ts.map +0 -1
- package/dist/text-value.d.ts.map +0 -1
- /package/dist/{select-value.d.ts → controls/select-value.d.ts} +0 -0
- /package/dist/{text-value.d.ts → controls/text-value.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../src/theme/state.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;AAC3E,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAA;AACrD,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;AAC/F,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG,SAAS,GAAG,UAAU,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;AACnF,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,CAAC,MA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O,CAAC,mBAAmB,CAAC,GAAG,mBAAmB,CAc5H;AAED,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,wBAAwB,GAChC,mBAAmB,CAErB;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAET"}
|
package/dist/theme.cjs
CHANGED
|
@@ -1,60 +1,3 @@
|
|
|
1
|
-
"use
|
|
2
|
-
var __defProp = Object.
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/theme.ts
|
|
21
|
-
var theme_exports = {};
|
|
22
|
-
__export(theme_exports, {
|
|
23
|
-
createUGThemeValue: () => createUGThemeValue,
|
|
24
|
-
defaultUGTheme: () => defaultUGTheme
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(theme_exports);
|
|
27
|
-
var defaultUGTheme = {
|
|
28
|
-
preset: "default",
|
|
29
|
-
mode: "system",
|
|
30
|
-
surface: "workspace",
|
|
31
|
-
density: "comfortable",
|
|
32
|
-
radius: "default",
|
|
33
|
-
shadow: "standard",
|
|
34
|
-
font: "system",
|
|
35
|
-
contrast: "standard",
|
|
36
|
-
motion: "standard",
|
|
37
|
-
background: "grid",
|
|
38
|
-
accent: "theme"
|
|
39
|
-
};
|
|
40
|
-
function createUGThemeValue(parent, overrides) {
|
|
41
|
-
return {
|
|
42
|
-
preset: overrides.preset ?? parent.preset,
|
|
43
|
-
mode: overrides.mode ?? parent.mode,
|
|
44
|
-
surface: overrides.surface ?? parent.surface,
|
|
45
|
-
density: overrides.density ?? parent.density,
|
|
46
|
-
radius: overrides.radius ?? parent.radius,
|
|
47
|
-
shadow: overrides.shadow ?? parent.shadow,
|
|
48
|
-
font: overrides.font ?? parent.font,
|
|
49
|
-
contrast: overrides.contrast ?? parent.contrast,
|
|
50
|
-
motion: overrides.motion ?? parent.motion,
|
|
51
|
-
background: overrides.background ?? parent.background,
|
|
52
|
-
accent: overrides.accent ?? parent.accent
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
56
|
-
0 && (module.exports = {
|
|
57
|
-
createUGThemeValue,
|
|
58
|
-
defaultUGTheme
|
|
59
|
-
});
|
|
1
|
+
"use client"
|
|
2
|
+
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var theme_exports={};__export(theme_exports,{applyUGThemeProfile:()=>applyUGThemeProfile,createUGThemeValue:()=>createUGThemeValue,defaultUGNavigationColors:()=>defaultUGNavigationColors,defaultUGTheme:()=>defaultUGTheme,defaultUGThemeConfiguratorOptions:()=>defaultUGThemeConfiguratorOptions,defaultUGThemeNavigationColors:()=>defaultUGThemeNavigationColors,defaultUGThemeProfiles:()=>defaultUGThemeProfiles,isUGThemeProfileModified:()=>isUGThemeProfileModified,resolveUGNavigationColors:()=>resolveUGNavigationColors,resolveUGNavigationPalette:()=>resolveUGNavigationPalette,ugThemeProfileFields:()=>ugThemeProfileFields});module.exports=__toCommonJS(theme_exports);var defaultUGThemeNavigationColors={default:{light:{background:"#ffffff",text:"#475569",activeBackground:"#ecf5ff",activeText:"#1d4ed8",hoverBackground:"#f1f5f9"},dark:{background:"#151c28",text:"#cbd5e1",activeBackground:"#3178c2",activeText:"#ffffff",hoverBackground:"#293442"}},minimal:{light:{background:"#ffffff",text:"#334155",activeBackground:"#e0f2fe",activeText:"#0369a1",hoverBackground:"#f8fafc"},dark:{background:"#111827",text:"#d1d5db",activeBackground:"#164e63",activeText:"#ecfeff",hoverBackground:"#1f2937"}},mecha:{light:{background:"#eef2f6",text:"#334155",activeBackground:"#cffafe",activeText:"#0e7490",hoverBackground:"#e2e8f0"},dark:{background:"#0b1220",text:"#cbd5e1",activeBackground:"#155e75",activeText:"#ecfeff",hoverBackground:"#172033"}}};var defaultUGNavigationColors=defaultUGThemeNavigationColors.default;function resolveUGNavigationPalette(mode,prefersDark=false){if(mode==="dark")return"dark";if(mode==="light")return"light";return prefersDark?"dark":"light"}var defaultUGAccentNavigationColors={cyan:{light:{activeBackground:"#cffafe",activeText:"#0e7490"},dark:{activeBackground:"#0e7490",activeText:"#ecfeff"}},blue:{light:{activeBackground:"#dbeafe",activeText:"#1d4ed8"},dark:{activeBackground:"#1d4ed8",activeText:"#eff6ff"}},violet:{light:{activeBackground:"#ede9fe",activeText:"#6d28d9"},dark:{activeBackground:"#6d28d9",activeText:"#f5f3ff"}},emerald:{light:{activeBackground:"#d1fae5",activeText:"#047857"},dark:{activeBackground:"#047857",activeText:"#ecfdf5"}},rose:{light:{activeBackground:"#ffe4e6",activeText:"#be123c"},dark:{activeBackground:"#be123c",activeText:"#fff1f2"}}};function resolveUGNavigationColors(preset,palette,overrides,accent="theme"){if(overrides)return overrides;const themeColors=preset in defaultUGThemeNavigationColors?defaultUGThemeNavigationColors[preset]:defaultUGThemeNavigationColors.default;const resolvedColors=themeColors[palette];if(accent in defaultUGAccentNavigationColors){return{...resolvedColors,...defaultUGAccentNavigationColors[accent][palette]}}return resolvedColors}var ugThemeProfileFields=["density","radius","shadow","font","contrast","motion","background"];var defaultUGTheme={preset:"default",mode:"system",surface:"workspace",density:"comfortable",radius:"default",shadow:"standard",font:"system",contrast:"standard",motion:"standard",background:"grid",accent:"theme"};var defaultUGThemeProfiles=[{id:"balanced",label:"\u5747\u8861",description:"\u8212\u9002\u3001\u6E05\u6670\uFF0C\u9002\u5408\u65E5\u5E38\u901A\u7528\u64CD\u4F5C\u3002",value:{density:"comfortable",radius:"default",shadow:"standard",font:"system",contrast:"standard",motion:"standard",background:"plain"}},{id:"efficient",label:"\u9AD8\u6548",description:"\u7D27\u51D1\u3001\u5229\u843D\uFF0C\u9002\u5408\u9AD8\u9891\u64CD\u4F5C\u548C\u6570\u636E\u5DE5\u4F5C\u3002",value:{density:"compact",radius:"sharp",shadow:"flat",font:"compact",contrast:"strong",motion:"reduced",background:"plain"}},{id:"readable",label:"\u6613\u8BFB",description:"\u5BBD\u677E\u3001\u6E05\u6670\uFF0C\u9002\u5408\u957F\u65F6\u95F4\u9605\u8BFB\u548C\u4F4E\u523A\u6FC0\u64CD\u4F5C\u3002",value:{density:"spacious",radius:"soft",shadow:"standard",font:"readable",contrast:"strong",motion:"reduced",background:"plain"}}];var defaultUGThemeConfiguratorOptions={presets:[{value:"default",label:"\u9ED8\u8BA4",description:"\u5747\u8861\u7684\u8FB9\u754C\u3001\u5C42\u6B21\u4E0E\u4FE1\u606F\u5BC6\u5EA6\u3002"},{value:"minimal",label:"\u7B80\u6D01",description:"\u51CF\u5C11\u88C5\u9970\uFF0C\u8BA9\u5185\u5BB9\u6210\u4E3A\u89C6\u89C9\u4E2D\u5FC3\u3002"},{value:"mecha",label:"\u673A\u68B0",description:"\u786C\u6717\u8FB9\u754C\u4E0E\u7D27\u51D1\u7684\u63A7\u5236\u53F0\u8282\u594F\u3002"}],modes:[{value:"system",label:"\u8DDF\u968F\u7CFB\u7EDF",description:"\u81EA\u52A8\u5339\u914D\u8BBE\u5907\u5916\u89C2\u3002"},{value:"light",label:"\u4EAE\u8272",description:"\u59CB\u7EC8\u4F7F\u7528\u4EAE\u8272\u754C\u9762\u3002"},{value:"dark",label:"\u6697\u8272",description:"\u59CB\u7EC8\u4F7F\u7528\u6697\u8272\u754C\u9762\u3002"}],surfaces:[{value:"workspace",label:"\u5DE5\u4F5C\u533A"},{value:"showcase",label:"\u5C55\u793A\u9875"},{value:"auth",label:"\u8BA4\u8BC1\u9875"},{value:"content",label:"\u5185\u5BB9\u9875"}],densities:[{value:"comfortable",label:"\u8212\u9002"},{value:"compact",label:"\u7D27\u51D1"},{value:"spacious",label:"\u5BBD\u677E"}],radii:[{value:"sharp",label:"\u5229\u843D"},{value:"default",label:"\u9ED8\u8BA4"},{value:"soft",label:"\u67D4\u548C"}],shadows:[{value:"flat",label:"\u5E73\u9762"},{value:"standard",label:"\u6807\u51C6"},{value:"layered",label:"\u5C42\u6B21"}],fonts:[{value:"system",label:"\u7CFB\u7EDF"},{value:"readable",label:"\u6613\u8BFB"},{value:"compact",label:"\u7D27\u51D1"}],contrasts:[{value:"soft",label:"\u67D4\u548C"},{value:"standard",label:"\u6807\u51C6"},{value:"strong",label:"\u6E05\u6670"}],motions:[{value:"reduced",label:"\u51CF\u5C11"},{value:"standard",label:"\u6807\u51C6"},{value:"lively",label:"\u7075\u52A8"}],backgrounds:[{value:"plain",label:"\u7EAF\u51C0"},{value:"grid",label:"\u7F51\u683C"},{value:"soft",label:"\u67D4\u5149"}],accents:[{value:"theme",label:"\u4E3B\u9898\u9ED8\u8BA4"},{value:"cyan",label:"UG \u9752"},{value:"blue",label:"\u6D77\u84DD"},{value:"violet",label:"\u7D2B\u6676"},{value:"emerald",label:"\u677E\u7EFF"},{value:"rose",label:"\u73AB\u7EA2"}]};function createUGThemeValue(parent,overrides){return{preset:overrides.preset??parent.preset,mode:overrides.mode??parent.mode,surface:overrides.surface??parent.surface,density:overrides.density??parent.density,radius:overrides.radius??parent.radius,shadow:overrides.shadow??parent.shadow,font:overrides.font??parent.font,contrast:overrides.contrast??parent.contrast,motion:overrides.motion??parent.motion,background:overrides.background??parent.background,accent:overrides.accent??parent.accent}}function applyUGThemeProfile(current,profile){return createUGThemeValue(current,profile.value)}function isUGThemeProfileModified(current,profile){return ugThemeProfileFields.some(field=>current[field]!==profile.value[field])}0&&(module.exports={applyUGThemeProfile,createUGThemeValue,defaultUGNavigationColors,defaultUGTheme,defaultUGThemeConfiguratorOptions,defaultUGThemeNavigationColors,defaultUGThemeProfiles,isUGThemeProfileModified,resolveUGNavigationColors,resolveUGNavigationPalette,ugThemeProfileFields});
|
|
60
3
|
//# sourceMappingURL=theme.cjs.map
|
package/dist/theme.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme.ts"],"sourcesContent":["/**\n * @description: UG UI 平台无关主题语义与组合规则\n * @author: UG - 一个斗码大陆苦逼的三段码之气的少年,并没有神秘戒指中码老的帮助,但总有一天,我会成为斗码大陆中码帝一样的存在。三十年河东,三十年河西,莫欺少年穷。\n * @date: 2026-07-21\n */\nexport type UGThemePreset = 'default' | 'minimal' | 'mecha' | (string & {})\nexport type UGThemeMode = 'light' | 'dark' | 'system'\nexport type UGThemeSurfaceValue = 'workspace' | 'showcase' | 'auth' | 'content' | (string & {})\nexport type UGThemeDensity = 'comfortable' | 'compact' | 'spacious' | (string & {})\nexport type UGThemeRadius = 'sharp' | 'default' | 'soft' | (string & {})\nexport type UGThemeShadow = 'flat' | 'standard' | 'layered' | (string & {})\nexport type UGThemeFont = 'system' | 'readable' | 'compact' | (string & {})\nexport type UGThemeContrast = 'soft' | 'standard' | 'strong' | (string & {})\nexport type UGThemeMotion = 'reduced' | 'standard' | 'lively' | (string & {})\nexport type UGThemeBackground = 'plain' | 'grid' | 'soft' | (string & {})\nexport type UGThemeAccent = 'theme' | 'cyan' | 'blue' | 'violet' | 'emerald' | 'rose' | (string & {})\n\nexport interface UGThemeContextValue {\n preset: UGThemePreset\n mode: UGThemeMode\n surface: UGThemeSurfaceValue\n density: UGThemeDensity\n radius: UGThemeRadius\n shadow: UGThemeShadow\n font: UGThemeFont\n contrast: UGThemeContrast\n motion: UGThemeMotion\n background: UGThemeBackground\n accent: UGThemeAccent\n}\n\nexport const defaultUGTheme: UGThemeContextValue = {\n preset: 'default', mode: 'system', surface: 'workspace', density: 'comfortable', radius: 'default',\n shadow: 'standard', font: 'system', contrast: 'standard', motion: 'standard', background: 'grid', accent: 'theme',\n}\n\nexport function createUGThemeValue(parent: UGThemeContextValue, overrides: Partial<UGThemeContextValue>): UGThemeContextValue {\n return {\n preset: overrides.preset ?? parent.preset,\n mode: overrides.mode ?? parent.mode,\n surface: overrides.surface ?? parent.surface,\n density: overrides.density ?? parent.density,\n radius: overrides.radius ?? parent.radius,\n shadow: overrides.shadow ?? parent.shadow,\n font: overrides.font ?? parent.font,\n contrast: overrides.contrast ?? parent.contrast,\n motion: overrides.motion ?? parent.motion,\n background: overrides.background ?? parent.background,\n accent: overrides.accent ?? parent.accent,\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA+BO,IAAM,iBAAsC;AAAA,EACjD,QAAQ;AAAA,EAAW,MAAM;AAAA,EAAU,SAAS;AAAA,EAAa,SAAS;AAAA,EAAe,QAAQ;AAAA,EACzF,QAAQ;AAAA,EAAY,MAAM;AAAA,EAAU,UAAU;AAAA,EAAY,QAAQ;AAAA,EAAY,YAAY;AAAA,EAAQ,QAAQ;AAC5G;AAEO,SAAS,mBAAmB,QAA6B,WAA8D;AAC5H,SAAO;AAAA,IACL,QAAQ,UAAU,UAAU,OAAO;AAAA,IACnC,MAAM,UAAU,QAAQ,OAAO;AAAA,IAC/B,SAAS,UAAU,WAAW,OAAO;AAAA,IACrC,SAAS,UAAU,WAAW,OAAO;AAAA,IACrC,QAAQ,UAAU,UAAU,OAAO;AAAA,IACnC,QAAQ,UAAU,UAAU,OAAO;AAAA,IACnC,MAAM,UAAU,QAAQ,OAAO;AAAA,IAC/B,UAAU,UAAU,YAAY,OAAO;AAAA,IACvC,QAAQ,UAAU,UAAU,OAAO;AAAA,IACnC,YAAY,UAAU,cAAc,OAAO;AAAA,IAC3C,QAAQ,UAAU,UAAU,OAAO;AAAA,EACrC;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/theme.ts","../src/theme/state.ts"],"sourcesContent":["/** @description Core 主题公开子入口。 */\nexport * from './theme/state'\n","/**\n * @description: UG UI 平台无关主题语义与组合规则\n * @author: UG - 一个斗码大陆苦逼的三段码之气的少年,并没有神秘戒指中码老的帮助,但总有一天,我会成为斗码大陆中码帝一样的存在。三十年河东,三十年河西,莫欺少年穷。\n * @date: 2026-07-21\n */\nexport type UGThemePreset = 'default' | 'minimal' | 'mecha' | (string & {})\nexport type UGThemeMode = 'light' | 'dark' | 'system'\nexport type UGThemeSurfaceValue = 'workspace' | 'showcase' | 'auth' | 'content' | (string & {})\nexport type UGThemeDensity = 'comfortable' | 'compact' | 'spacious' | (string & {})\nexport type UGThemeRadius = 'sharp' | 'default' | 'soft' | (string & {})\nexport type UGThemeShadow = 'flat' | 'standard' | 'layered' | (string & {})\nexport type UGThemeFont = 'system' | 'readable' | 'compact' | (string & {})\nexport type UGThemeContrast = 'soft' | 'standard' | 'strong' | (string & {})\nexport type UGThemeMotion = 'reduced' | 'standard' | 'lively' | (string & {})\nexport type UGThemeBackground = 'plain' | 'grid' | 'soft' | (string & {})\nexport type UGThemeAccent = 'theme' | 'cyan' | 'blue' | 'violet' | 'emerald' | 'rose' | (string & {})\nexport type UGNavigationMode = 'sidebar' | 'header'\nexport type UGNavigationPalette = 'light' | 'dark'\n\nexport interface UGNavigationColors {\n background: string\n text: string\n activeBackground: string\n activeText: string\n hoverBackground: string\n}\n\nexport type UGThemeNavigationColors = Readonly<Record<UGNavigationPalette, UGNavigationColors>>\n\nexport const defaultUGThemeNavigationColors: Readonly<Record<'default' | 'minimal' | 'mecha', UGThemeNavigationColors>> = {\n default: {\n light: {\n background: '#ffffff',\n text: '#475569',\n activeBackground: '#ecf5ff',\n activeText: '#1d4ed8',\n hoverBackground: '#f1f5f9',\n },\n dark: {\n background: '#151c28',\n text: '#cbd5e1',\n activeBackground: '#3178c2',\n activeText: '#ffffff',\n hoverBackground: '#293442',\n },\n },\n minimal: {\n light: {\n background: '#ffffff',\n text: '#334155',\n activeBackground: '#e0f2fe',\n activeText: '#0369a1',\n hoverBackground: '#f8fafc',\n },\n dark: {\n background: '#111827',\n text: '#d1d5db',\n activeBackground: '#164e63',\n activeText: '#ecfeff',\n hoverBackground: '#1f2937',\n },\n },\n mecha: {\n light: {\n background: '#eef2f6',\n text: '#334155',\n activeBackground: '#cffafe',\n activeText: '#0e7490',\n hoverBackground: '#e2e8f0',\n },\n dark: {\n background: '#0b1220',\n text: '#cbd5e1',\n activeBackground: '#155e75',\n activeText: '#ecfeff',\n hoverBackground: '#172033',\n },\n },\n}\n\n/** 兼容旧调用方:未声明主题时使用 default 主题的导航配色。 */\nexport const defaultUGNavigationColors: UGThemeNavigationColors = defaultUGThemeNavigationColors.default\n\n/** 将主题显示模式解析为导航默认明暗;显式导航颜色仍由调用方优先覆盖。 */\nexport function resolveUGNavigationPalette(\n mode: UGThemeMode,\n prefersDark = false,\n): UGNavigationPalette {\n if (mode === 'dark') return 'dark'\n if (mode === 'light') return 'light'\n return prefersDark ? 'dark' : 'light'\n}\n\ntype UGNavigationActiveColors = Pick<UGNavigationColors, 'activeBackground' | 'activeText'>\n\nconst defaultUGAccentNavigationColors: Readonly<Record<\n 'cyan' | 'blue' | 'violet' | 'emerald' | 'rose',\n Readonly<Record<UGNavigationPalette, UGNavigationActiveColors>>\n>> = {\n cyan: {\n light: { activeBackground: '#cffafe', activeText: '#0e7490' },\n dark: { activeBackground: '#0e7490', activeText: '#ecfeff' },\n },\n blue: {\n light: { activeBackground: '#dbeafe', activeText: '#1d4ed8' },\n dark: { activeBackground: '#1d4ed8', activeText: '#eff6ff' },\n },\n violet: {\n light: { activeBackground: '#ede9fe', activeText: '#6d28d9' },\n dark: { activeBackground: '#6d28d9', activeText: '#f5f3ff' },\n },\n emerald: {\n light: { activeBackground: '#d1fae5', activeText: '#047857' },\n dark: { activeBackground: '#047857', activeText: '#ecfdf5' },\n },\n rose: {\n light: { activeBackground: '#ffe4e6', activeText: '#be123c' },\n dark: { activeBackground: '#be123c', activeText: '#fff1f2' },\n },\n}\n\nexport function resolveUGNavigationColors(\n preset: UGThemePreset,\n palette: UGNavigationPalette,\n overrides?: UGNavigationColors,\n accent: UGThemeAccent = 'theme',\n): UGNavigationColors {\n if (overrides) return overrides\n const themeColors = preset in defaultUGThemeNavigationColors\n ? defaultUGThemeNavigationColors[preset as keyof typeof defaultUGThemeNavigationColors]\n : defaultUGThemeNavigationColors.default\n const resolvedColors = themeColors[palette]\n if (accent in defaultUGAccentNavigationColors) {\n return {\n ...resolvedColors,\n ...defaultUGAccentNavigationColors[accent as keyof typeof defaultUGAccentNavigationColors][palette],\n }\n }\n return resolvedColors\n}\n\nexport interface UGThemeContextValue {\n preset: UGThemePreset\n mode: UGThemeMode\n surface: UGThemeSurfaceValue\n density: UGThemeDensity\n radius: UGThemeRadius\n shadow: UGThemeShadow\n font: UGThemeFont\n contrast: UGThemeContrast\n motion: UGThemeMotion\n background: UGThemeBackground\n accent: UGThemeAccent\n}\n\nexport const ugThemeProfileFields = [\n 'density',\n 'radius',\n 'shadow',\n 'font',\n 'contrast',\n 'motion',\n 'background',\n] as const\n\nexport type UGThemeProfileField = (typeof ugThemeProfileFields)[number]\nexport type UGThemeProfileValue = Pick<UGThemeContextValue, UGThemeProfileField>\n\nexport interface UGThemeProfileDefinition {\n readonly id: string\n readonly label: string\n readonly description: string\n readonly value: UGThemeProfileValue\n}\n\nexport interface UGThemeChoiceOption<TValue extends string = string> {\n readonly value: TValue\n readonly label: string\n readonly description?: string\n}\n\nexport interface UGThemeConfiguratorOptions {\n readonly presets: readonly UGThemeChoiceOption<UGThemePreset>[]\n readonly modes: readonly UGThemeChoiceOption<UGThemeMode>[]\n readonly surfaces: readonly UGThemeChoiceOption<UGThemeSurfaceValue>[]\n readonly densities: readonly UGThemeChoiceOption<UGThemeDensity>[]\n readonly radii: readonly UGThemeChoiceOption<UGThemeRadius>[]\n readonly shadows: readonly UGThemeChoiceOption<UGThemeShadow>[]\n readonly fonts: readonly UGThemeChoiceOption<UGThemeFont>[]\n readonly contrasts: readonly UGThemeChoiceOption<UGThemeContrast>[]\n readonly motions: readonly UGThemeChoiceOption<UGThemeMotion>[]\n readonly backgrounds: readonly UGThemeChoiceOption<UGThemeBackground>[]\n readonly accents: readonly UGThemeChoiceOption<UGThemeAccent>[]\n}\n\nexport const defaultUGTheme: UGThemeContextValue = {\n preset: 'default', mode: 'system', surface: 'workspace', density: 'comfortable', radius: 'default',\n shadow: 'standard', font: 'system', contrast: 'standard', motion: 'standard', background: 'grid', accent: 'theme',\n}\n\nexport const defaultUGThemeProfiles: readonly UGThemeProfileDefinition[] = [\n {\n id: 'balanced',\n label: '均衡',\n description: '舒适、清晰,适合日常通用操作。',\n value: {\n density: 'comfortable',\n radius: 'default',\n shadow: 'standard',\n font: 'system',\n contrast: 'standard',\n motion: 'standard',\n background: 'plain',\n },\n },\n {\n id: 'efficient',\n label: '高效',\n description: '紧凑、利落,适合高频操作和数据工作。',\n value: {\n density: 'compact',\n radius: 'sharp',\n shadow: 'flat',\n font: 'compact',\n contrast: 'strong',\n motion: 'reduced',\n background: 'plain',\n },\n },\n {\n id: 'readable',\n label: '易读',\n description: '宽松、清晰,适合长时间阅读和低刺激操作。',\n value: {\n density: 'spacious',\n radius: 'soft',\n shadow: 'standard',\n font: 'readable',\n contrast: 'strong',\n motion: 'reduced',\n background: 'plain',\n },\n },\n] as const\n\nexport const defaultUGThemeConfiguratorOptions: UGThemeConfiguratorOptions = {\n presets: [\n { value: 'default', label: '默认', description: '均衡的边界、层次与信息密度。' },\n { value: 'minimal', label: '简洁', description: '减少装饰,让内容成为视觉中心。' },\n { value: 'mecha', label: '机械', description: '硬朗边界与紧凑的控制台节奏。' },\n ],\n modes: [\n { value: 'system', label: '跟随系统', description: '自动匹配设备外观。' },\n { value: 'light', label: '亮色', description: '始终使用亮色界面。' },\n { value: 'dark', label: '暗色', description: '始终使用暗色界面。' },\n ],\n surfaces: [\n { value: 'workspace', label: '工作区' },\n { value: 'showcase', label: '展示页' },\n { value: 'auth', label: '认证页' },\n { value: 'content', label: '内容页' },\n ],\n densities: [\n { value: 'comfortable', label: '舒适' },\n { value: 'compact', label: '紧凑' },\n { value: 'spacious', label: '宽松' },\n ],\n radii: [\n { value: 'sharp', label: '利落' },\n { value: 'default', label: '默认' },\n { value: 'soft', label: '柔和' },\n ],\n shadows: [\n { value: 'flat', label: '平面' },\n { value: 'standard', label: '标准' },\n { value: 'layered', label: '层次' },\n ],\n fonts: [\n { value: 'system', label: '系统' },\n { value: 'readable', label: '易读' },\n { value: 'compact', label: '紧凑' },\n ],\n contrasts: [\n { value: 'soft', label: '柔和' },\n { value: 'standard', label: '标准' },\n { value: 'strong', label: '清晰' },\n ],\n motions: [\n { value: 'reduced', label: '减少' },\n { value: 'standard', label: '标准' },\n { value: 'lively', label: '灵动' },\n ],\n backgrounds: [\n { value: 'plain', label: '纯净' },\n { value: 'grid', label: '网格' },\n { value: 'soft', label: '柔光' },\n ],\n accents: [\n { value: 'theme', label: '主题默认' },\n { value: 'cyan', label: 'UG 青' },\n { value: 'blue', label: '海蓝' },\n { value: 'violet', label: '紫晶' },\n { value: 'emerald', label: '松绿' },\n { value: 'rose', label: '玫红' },\n ],\n}\n\nexport function createUGThemeValue(parent: UGThemeContextValue, overrides: Partial<UGThemeContextValue>): UGThemeContextValue {\n return {\n preset: overrides.preset ?? parent.preset,\n mode: overrides.mode ?? parent.mode,\n surface: overrides.surface ?? parent.surface,\n density: overrides.density ?? parent.density,\n radius: overrides.radius ?? parent.radius,\n shadow: overrides.shadow ?? parent.shadow,\n font: overrides.font ?? parent.font,\n contrast: overrides.contrast ?? parent.contrast,\n motion: overrides.motion ?? parent.motion,\n background: overrides.background ?? parent.background,\n accent: overrides.accent ?? parent.accent,\n }\n}\n\nexport function applyUGThemeProfile(\n current: UGThemeContextValue,\n profile: UGThemeProfileDefinition,\n): UGThemeContextValue {\n return createUGThemeValue(current, profile.value)\n}\n\nexport function isUGThemeProfileModified(\n current: UGThemeContextValue,\n profile: UGThemeProfileDefinition,\n): boolean {\n return ugThemeProfileFields.some((field) => current[field] !== profile.value[field])\n}\n"],"mappings":";qqBAAA,4pBC6BO,IAAM,+BAA6G,CACxH,QAAS,CACP,MAAO,CACL,WAAY,UACZ,KAAM,UACN,iBAAkB,UAClB,WAAY,UACZ,gBAAiB,SACnB,EACA,KAAM,CACJ,WAAY,UACZ,KAAM,UACN,iBAAkB,UAClB,WAAY,UACZ,gBAAiB,SACnB,CACF,EACA,QAAS,CACP,MAAO,CACL,WAAY,UACZ,KAAM,UACN,iBAAkB,UAClB,WAAY,UACZ,gBAAiB,SACnB,EACA,KAAM,CACJ,WAAY,UACZ,KAAM,UACN,iBAAkB,UAClB,WAAY,UACZ,gBAAiB,SACnB,CACF,EACA,MAAO,CACL,MAAO,CACL,WAAY,UACZ,KAAM,UACN,iBAAkB,UAClB,WAAY,UACZ,gBAAiB,SACnB,EACA,KAAM,CACJ,WAAY,UACZ,KAAM,UACN,iBAAkB,UAClB,WAAY,UACZ,gBAAiB,SACnB,CACF,CACF,EAGO,IAAM,0BAAqD,+BAA+B,QAG1F,SAAS,2BACd,K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,oBACd,QACA,QACqB,CACrB,OAAO,mBAAmB,QAAS,QAAQ,KAAK,CAClD,CAEO,SAAS,yBACd,QACA,QACS,CACT,OAAO,qBAAqB,KAAM,OAAU,QAAQ,KAAK,IAAM,QAAQ,MAAM,KAAK,CAAC,CACrF","names":[]}
|
package/dist/theme.d.ts
CHANGED
|
@@ -1,32 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @author: UG - 一个斗码大陆苦逼的三段码之气的少年,并没有神秘戒指中码老的帮助,但总有一天,我会成为斗码大陆中码帝一样的存在。三十年河东,三十年河西,莫欺少年穷。
|
|
4
|
-
* @date: 2026-07-21
|
|
5
|
-
*/
|
|
6
|
-
export type UGThemePreset = 'default' | 'minimal' | 'mecha' | (string & {});
|
|
7
|
-
export type UGThemeMode = 'light' | 'dark' | 'system';
|
|
8
|
-
export type UGThemeSurfaceValue = 'workspace' | 'showcase' | 'auth' | 'content' | (string & {});
|
|
9
|
-
export type UGThemeDensity = 'comfortable' | 'compact' | 'spacious' | (string & {});
|
|
10
|
-
export type UGThemeRadius = 'sharp' | 'default' | 'soft' | (string & {});
|
|
11
|
-
export type UGThemeShadow = 'flat' | 'standard' | 'layered' | (string & {});
|
|
12
|
-
export type UGThemeFont = 'system' | 'readable' | 'compact' | (string & {});
|
|
13
|
-
export type UGThemeContrast = 'soft' | 'standard' | 'strong' | (string & {});
|
|
14
|
-
export type UGThemeMotion = 'reduced' | 'standard' | 'lively' | (string & {});
|
|
15
|
-
export type UGThemeBackground = 'plain' | 'grid' | 'soft' | (string & {});
|
|
16
|
-
export type UGThemeAccent = 'theme' | 'cyan' | 'blue' | 'violet' | 'emerald' | 'rose' | (string & {});
|
|
17
|
-
export interface UGThemeContextValue {
|
|
18
|
-
preset: UGThemePreset;
|
|
19
|
-
mode: UGThemeMode;
|
|
20
|
-
surface: UGThemeSurfaceValue;
|
|
21
|
-
density: UGThemeDensity;
|
|
22
|
-
radius: UGThemeRadius;
|
|
23
|
-
shadow: UGThemeShadow;
|
|
24
|
-
font: UGThemeFont;
|
|
25
|
-
contrast: UGThemeContrast;
|
|
26
|
-
motion: UGThemeMotion;
|
|
27
|
-
background: UGThemeBackground;
|
|
28
|
-
accent: UGThemeAccent;
|
|
29
|
-
}
|
|
30
|
-
export declare const defaultUGTheme: UGThemeContextValue;
|
|
31
|
-
export declare function createUGThemeValue(parent: UGThemeContextValue, overrides: Partial<UGThemeContextValue>): UGThemeContextValue;
|
|
1
|
+
/** @description Core 主题公开子入口。 */
|
|
2
|
+
export * from './theme/state';
|
|
32
3
|
//# sourceMappingURL=theme.d.ts.map
|
package/dist/theme.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,cAAc,eAAe,CAAA"}
|
package/dist/theme.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
defaultUGTheme
|
|
4
|
-
} from "./chunk-S4DT6FOD.js";
|
|
5
|
-
export {
|
|
6
|
-
createUGThemeValue,
|
|
7
|
-
defaultUGTheme
|
|
8
|
-
};
|
|
1
|
+
"use client"
|
|
2
|
+
import{applyUGThemeProfile,createUGThemeValue,defaultUGNavigationColors,defaultUGTheme,defaultUGThemeConfiguratorOptions,defaultUGThemeNavigationColors,defaultUGThemeProfiles,isUGThemeProfileModified,resolveUGNavigationColors,resolveUGNavigationPalette,ugThemeProfileFields}from"./chunk-SSXPAFU2.js";export{applyUGThemeProfile,createUGThemeValue,defaultUGNavigationColors,defaultUGTheme,defaultUGThemeConfiguratorOptions,defaultUGThemeNavigationColors,defaultUGThemeProfiles,isUGThemeProfileModified,resolveUGNavigationColors,resolveUGNavigationPalette,ugThemeProfileFields};
|
|
9
3
|
//# sourceMappingURL=theme.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 与平台无关的树勾选规范化;展开/筛选不进入选择算法。
|
|
3
|
+
* @author: UG
|
|
4
|
+
* @date: 2026-10-11
|
|
5
|
+
* @source: Element UI 2.15.14 MIT / ElemeFE, 290e68ea6aa6c56b7d83182b650e3be4f77ff1b0
|
|
6
|
+
* packages/tree/src/model/node.js:级联、禁用和半选语义。UG 非严格模式输出可用叶,保留禁用/未知既有键。
|
|
7
|
+
*/
|
|
8
|
+
export interface TreeCheckNode {
|
|
9
|
+
key: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
children?: readonly TreeCheckNode[];
|
|
12
|
+
}
|
|
13
|
+
export interface TreeCheckState {
|
|
14
|
+
/** 可提交值:非严格模式可用叶 + 禁用/未知既有键;严格模式独立节点键。 */
|
|
15
|
+
checkedKeys: string[];
|
|
16
|
+
/** 用于可访问展示的全选节点,含推导出的父节点。 */
|
|
17
|
+
checkedNodeKeys: string[];
|
|
18
|
+
halfCheckedKeys: string[];
|
|
19
|
+
disabledKeys: string[];
|
|
20
|
+
}
|
|
21
|
+
export declare function getTreeCheckState(items: readonly TreeCheckNode[], keys: readonly string[], strict?: boolean): TreeCheckState;
|
|
22
|
+
export declare function toggleTreeCheckedKey(items: readonly TreeCheckNode[], keys: readonly string[], key: string, checked: boolean, strict?: boolean): TreeCheckState;
|
|
23
|
+
//# sourceMappingURL=tree-check.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree-check.d.ts","sourceRoot":"","sources":["../../src/tree/tree-check.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAAG,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,SAAS,aAAa,EAAE,CAAA;CAAE;AACvG,MAAM,WAAW,cAAc;IAC7B,0CAA0C;IAC1C,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,6BAA6B;IAC7B,eAAe,EAAE,MAAM,EAAE,CAAA;IACzB,eAAe,EAAE,MAAM,EAAE,CAAA;IACzB,YAAY,EAAE,MAAM,EAAE,CAAA;CACvB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,aAAa,EAAE,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,MAAM,UAAQ,GAAG,cAAc,CA+B1H;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,SAAS,aAAa,EAAE,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,UAAQ,GAAG,cAAc,CAiB5J"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** @description 树拖放位置与防环合同,业务重排由调用方执行。 @author UG @date 2026-10-11 */
|
|
2
|
+
export type TreeDropPosition = 'before' | 'inside' | 'after';
|
|
3
|
+
export interface TreeDragNode {
|
|
4
|
+
key: string;
|
|
5
|
+
children?: readonly TreeDragNode[];
|
|
6
|
+
}
|
|
7
|
+
export declare function canDropTreeNode(items: readonly TreeDragNode[], source: string, target: string): boolean;
|
|
8
|
+
//# sourceMappingURL=tree-drag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree-drag.d.ts","sourceRoot":"","sources":["../../src/tree/tree-drag.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;AAC5D,MAAM,WAAW,YAAY;IAAG,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,SAAS,YAAY,EAAE,CAAA;CAAE;AACjF,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAOvG"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 按稳定节点标识查找完整祖先路径,不依赖框架或平台。
|
|
3
|
+
* 深度优先查找改编自 Element Plus 2.14.7 treeFind:
|
|
4
|
+
* https://github.com/element-plus/element-plus/blob/77d5c32c4ebcfffde67e51f6325c6d350ca668a0/packages/components/tree-select/src/utils.ts
|
|
5
|
+
* UG 将可变数组/回调查找收敛为 readonly key/children,并返回整条路径。
|
|
6
|
+
*
|
|
7
|
+
* The MIT License (MIT)
|
|
8
|
+
* Copyright (c) 2020-present Element Plus
|
|
9
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
* in the Software without restriction, including without limitation the rights
|
|
12
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
* furnished to do so, subject to the following conditions:
|
|
15
|
+
* The above copyright notice and this permission notice shall be included in
|
|
16
|
+
* all copies or substantial portions of the Software.
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
+
* THE SOFTWARE.
|
|
24
|
+
*/
|
|
25
|
+
export declare function findTreeNodePath<T extends {
|
|
26
|
+
key: string;
|
|
27
|
+
children?: readonly T[];
|
|
28
|
+
}>(items: readonly T[], key: string | undefined): readonly T[];
|
|
29
|
+
//# sourceMappingURL=tree-path.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree-path.d.ts","sourceRoot":"","sources":["../../src/tree/tree-path.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,SAAS,CAAC,EAAE,CAAA;CAAE,EACjF,KAAK,EAAE,SAAS,CAAC,EAAE,EACnB,GAAG,EAAE,MAAM,GAAG,SAAS,GACtB,SAAS,CAAC,EAAE,CAQd"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ug666/ui-core",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
3
|
+
"repository": { "type": "git", "url": "https://github.com/uguang2003/ug-ui.git", "directory": "packages/ui-core" },
|
|
4
|
+
"version": "0.3.0-beta.3",
|
|
5
|
+
"description": "UG UI 平台无关主题、组件值与状态、纯算法及组合规则",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"main": "./dist/index.cjs",
|
|
@@ -31,7 +32,7 @@
|
|
|
31
32
|
"prepublishOnly": "bun run build"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
|
-
"tsup": "^
|
|
35
|
+
"tsup": "^9.0.0",
|
|
35
36
|
"typescript": "^7.0.2"
|
|
36
37
|
},
|
|
37
38
|
"sideEffects": false
|
package/dist/chunk-S4DT6FOD.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// src/theme.ts
|
|
2
|
-
var defaultUGTheme = {
|
|
3
|
-
preset: "default",
|
|
4
|
-
mode: "system",
|
|
5
|
-
surface: "workspace",
|
|
6
|
-
density: "comfortable",
|
|
7
|
-
radius: "default",
|
|
8
|
-
shadow: "standard",
|
|
9
|
-
font: "system",
|
|
10
|
-
contrast: "standard",
|
|
11
|
-
motion: "standard",
|
|
12
|
-
background: "grid",
|
|
13
|
-
accent: "theme"
|
|
14
|
-
};
|
|
15
|
-
function createUGThemeValue(parent, overrides) {
|
|
16
|
-
return {
|
|
17
|
-
preset: overrides.preset ?? parent.preset,
|
|
18
|
-
mode: overrides.mode ?? parent.mode,
|
|
19
|
-
surface: overrides.surface ?? parent.surface,
|
|
20
|
-
density: overrides.density ?? parent.density,
|
|
21
|
-
radius: overrides.radius ?? parent.radius,
|
|
22
|
-
shadow: overrides.shadow ?? parent.shadow,
|
|
23
|
-
font: overrides.font ?? parent.font,
|
|
24
|
-
contrast: overrides.contrast ?? parent.contrast,
|
|
25
|
-
motion: overrides.motion ?? parent.motion,
|
|
26
|
-
background: overrides.background ?? parent.background,
|
|
27
|
-
accent: overrides.accent ?? parent.accent
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export {
|
|
32
|
-
defaultUGTheme,
|
|
33
|
-
createUGThemeValue
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=chunk-S4DT6FOD.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme.ts"],"sourcesContent":["/**\n * @description: UG UI 平台无关主题语义与组合规则\n * @author: UG - 一个斗码大陆苦逼的三段码之气的少年,并没有神秘戒指中码老的帮助,但总有一天,我会成为斗码大陆中码帝一样的存在。三十年河东,三十年河西,莫欺少年穷。\n * @date: 2026-07-21\n */\nexport type UGThemePreset = 'default' | 'minimal' | 'mecha' | (string & {})\nexport type UGThemeMode = 'light' | 'dark' | 'system'\nexport type UGThemeSurfaceValue = 'workspace' | 'showcase' | 'auth' | 'content' | (string & {})\nexport type UGThemeDensity = 'comfortable' | 'compact' | 'spacious' | (string & {})\nexport type UGThemeRadius = 'sharp' | 'default' | 'soft' | (string & {})\nexport type UGThemeShadow = 'flat' | 'standard' | 'layered' | (string & {})\nexport type UGThemeFont = 'system' | 'readable' | 'compact' | (string & {})\nexport type UGThemeContrast = 'soft' | 'standard' | 'strong' | (string & {})\nexport type UGThemeMotion = 'reduced' | 'standard' | 'lively' | (string & {})\nexport type UGThemeBackground = 'plain' | 'grid' | 'soft' | (string & {})\nexport type UGThemeAccent = 'theme' | 'cyan' | 'blue' | 'violet' | 'emerald' | 'rose' | (string & {})\n\nexport interface UGThemeContextValue {\n preset: UGThemePreset\n mode: UGThemeMode\n surface: UGThemeSurfaceValue\n density: UGThemeDensity\n radius: UGThemeRadius\n shadow: UGThemeShadow\n font: UGThemeFont\n contrast: UGThemeContrast\n motion: UGThemeMotion\n background: UGThemeBackground\n accent: UGThemeAccent\n}\n\nexport const defaultUGTheme: UGThemeContextValue = {\n preset: 'default', mode: 'system', surface: 'workspace', density: 'comfortable', radius: 'default',\n shadow: 'standard', font: 'system', contrast: 'standard', motion: 'standard', background: 'grid', accent: 'theme',\n}\n\nexport function createUGThemeValue(parent: UGThemeContextValue, overrides: Partial<UGThemeContextValue>): UGThemeContextValue {\n return {\n preset: overrides.preset ?? parent.preset,\n mode: overrides.mode ?? parent.mode,\n surface: overrides.surface ?? parent.surface,\n density: overrides.density ?? parent.density,\n radius: overrides.radius ?? parent.radius,\n shadow: overrides.shadow ?? parent.shadow,\n font: overrides.font ?? parent.font,\n contrast: overrides.contrast ?? parent.contrast,\n motion: overrides.motion ?? parent.motion,\n background: overrides.background ?? parent.background,\n accent: overrides.accent ?? parent.accent,\n }\n}\n"],"mappings":";AA+BO,IAAM,iBAAsC;AAAA,EACjD,QAAQ;AAAA,EAAW,MAAM;AAAA,EAAU,SAAS;AAAA,EAAa,SAAS;AAAA,EAAe,QAAQ;AAAA,EACzF,QAAQ;AAAA,EAAY,MAAM;AAAA,EAAU,UAAU;AAAA,EAAY,QAAQ;AAAA,EAAY,YAAY;AAAA,EAAQ,QAAQ;AAC5G;AAEO,SAAS,mBAAmB,Q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,oBAAoB,GAAG,MAAM,CAErE;AAED,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,oBAAoB,GAAG,SAAS,oBAAoB,EAAE,GAAG,SAAS,GACxE,MAAM,EAAE,CAGV"}
|
package/dist/text-value.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text-value.d.ts","sourceRoot":"","sources":["../src/text-value.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;AAEzD,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,iBAAiB,GAC1B,MAAM,CAIR;AAED,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,OAAO,CAAC,EAAE,iBAAiB,GAC1B,MAAM,CAkBR"}
|
|
File without changes
|
|
File without changes
|