dishui 0.0.80 → 0.0.82

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.
@@ -1,14 +1,14 @@
1
1
  //#region src/styles/themeStyles.ts
2
2
  var e = {
3
3
  light: {
4
- backgroundColor: "var(--blade-accent)",
5
- borderColor: "var(--blade-accent)",
6
- textColor: "var(--blade-accent-fg)"
4
+ backgroundColor: "var(--dishui-accent)",
5
+ borderColor: "var(--dishui-accent)",
6
+ textColor: "var(--dishui-accent-fg)"
7
7
  },
8
8
  dark: {
9
- backgroundColor: "var(--blade-accent)",
10
- borderColor: "var(--blade-accent)",
11
- textColor: "var(--blade-accent-fg)"
9
+ backgroundColor: "var(--dishui-accent)",
10
+ borderColor: "var(--dishui-accent)",
11
+ textColor: "var(--dishui-accent-fg)"
12
12
  },
13
13
  cursor: {
14
14
  backgroundColor: "rgba(96, 165, 250, 0.16)",
@@ -1 +1 @@
1
- {"version":3,"file":"themeStyles.js","names":[],"sources":["../../src/styles/themeStyles.ts"],"sourcesContent":["// 共用主题样式配置\n// 用于 Tree 组件和 Sidebar 组件的活跃状态样式\n\nexport interface ThemeActiveStyle {\n backgroundColor: string;\n borderColor: string;\n textColor: string;\n}\n\n// 主题配色映射\nexport const themeActiveStyles: Record<string, ThemeActiveStyle> = {\n light: {\n backgroundColor: 'var(--blade-accent)',\n borderColor: 'var(--blade-accent)',\n textColor: 'var(--blade-accent-fg)',\n },\n dark: {\n backgroundColor: 'var(--blade-accent)',\n borderColor: 'var(--blade-accent)',\n textColor: 'var(--blade-accent-fg)',\n },\n cursor: {\n backgroundColor: 'rgba(96, 165, 250, 0.16)',\n borderColor: 'rgb(96, 165, 250)',\n textColor: 'rgb(147, 197, 253)',\n },\n retro: {\n backgroundColor: 'rgba(239, 68, 68, 0.15)',\n borderColor: 'rgb(239, 68, 68)',\n textColor: 'rgb(239, 68, 68)',\n },\n cyberpunk: {\n backgroundColor: 'rgba(255, 221, 0, 0.18)',\n borderColor: 'rgb(255, 221, 0)',\n textColor: 'rgb(255, 221, 0)',\n },\n matrix: {\n backgroundColor: 'rgba(0, 255, 65, 0.15)',\n borderColor: 'rgb(0, 255, 65)',\n textColor: 'rgb(0, 255, 65)',\n },\n oceanblue: {\n backgroundColor: 'rgba(6, 95, 212, 0.18)',\n borderColor: 'rgb(6, 95, 212)',\n textColor: 'rgb(6, 95, 212)',\n },\n eyecare: {\n backgroundColor: 'rgba(34, 139, 34, 0.18)',\n borderColor: 'rgb(34, 139, 34)',\n textColor: 'rgb(34, 139, 34)',\n },\n ghibli: {\n backgroundColor: 'rgba(249, 115, 22, 0.18)',\n borderColor: 'rgb(249, 115, 22)',\n textColor: 'rgb(249, 115, 22)',\n },\n pinkgirl: {\n backgroundColor: 'rgba(236, 72, 153, 0.15)',\n borderColor: 'rgb(236, 72, 153)',\n textColor: 'rgb(236, 72, 153)',\n },\n mintgirl: {\n backgroundColor: 'rgba(52, 211, 153, 0.15)',\n borderColor: 'rgb(52, 211, 153)',\n textColor: 'rgb(52, 211, 153)',\n },\n\n wuxing: {\n backgroundColor: 'rgba(180, 120, 60, 0.15)',\n borderColor: 'rgb(180, 120, 60)',\n textColor: 'rgb(140, 90, 40)',\n },\n jukebox: {\n backgroundColor: 'rgba(147, 51, 234, 0.18)',\n borderColor: 'rgb(147, 51, 234)',\n textColor: 'rgb(167, 139, 250)',\n },\n};\n\n// 生成 Tree 组件的主题活跃状态 CSS\nexport const generateTreeActiveStyles = (): string => {\n return Object.entries(themeActiveStyles)\n .map(([theme, style]) => `\n /* ${theme.charAt(0).toUpperCase() + theme.slice(1)} 主题 */\n [data-theme=\"${theme}\"] .tree-node-content-active {\n background-color: ${style.backgroundColor} !important;\n border-left: 4px solid ${style.borderColor} !important;\n color: ${style.textColor} !important;\n }\n [data-theme=\"${theme}\"] .tree-node-content-active .tree-node-icon,\n [data-theme=\"${theme}\"] .tree-node-content-active .tree-node-label {\n color: ${style.textColor} !important;\n }`)\n .join('\\n');\n};\n\n// 生成 Sidebar 组件的主题活跃状态 CSS\nexport const generateSidebarActiveStyles = (): string => {\n return Object.entries(themeActiveStyles)\n .map(([theme, style]) => `\n /* ${theme.charAt(0).toUpperCase() + theme.slice(1)} 主题 */\n [data-theme=\"${theme}\"] .sidebar-tree .tree-node-content-active {\n background-color: ${style.backgroundColor} !important;\n border-left: 4px solid ${style.borderColor} !important;\n }\n [data-theme=\"${theme}\"] .sidebar-tree .tree-node-content-active .tree-node-label,\n [data-theme=\"${theme}\"] .sidebar-tree .tree-node-content-active .tree-node-icon svg {\n color: ${style.textColor} !important;\n stroke: ${style.textColor} !important;\n }`)\n .join('\\n');\n};\n\n"],"mappings":";AAUA,IAAa,IAAsD;CACjE,OAAO;EACL,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;CACA,MAAM;EACJ,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;CACA,QAAQ;EACN,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;CACA,OAAO;EACL,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;CACA,WAAW;EACT,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;CACA,QAAQ;EACN,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;CACA,WAAW;EACT,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;CACA,SAAS;EACP,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;CACA,QAAQ;EACN,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;CACA,UAAU;EACR,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;CACA,UAAU;EACR,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;CAEA,QAAQ;EACN,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;CACA,SAAS;EACP,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;AACF,GAGa,UACJ,OAAO,QAAQ,CAAiB,CAAC,CACrC,KAAK,CAAC,GAAO,OAAW;aAChB,EAAM,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,EAAM,MAAM,CAAC,EAAE;uBACrC,EAAM;8BACC,EAAM,gBAAgB;mCACjB,EAAM,YAAY;mBAClC,EAAM,UAAU;;uBAEZ,EAAM;uBACN,EAAM;mBACV,EAAM,UAAU;UACzB,CAAC,CACN,KAAK,IAAI,GAID,UACJ,OAAO,QAAQ,CAAiB,CAAC,CACrC,KAAK,CAAC,GAAO,OAAW;aAChB,EAAM,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,EAAM,MAAM,CAAC,EAAE;uBACrC,EAAM;8BACC,EAAM,gBAAgB;mCACjB,EAAM,YAAY;;uBAE9B,EAAM;uBACN,EAAM;mBACV,EAAM,UAAU;oBACf,EAAM,UAAU;UAC1B,CAAC,CACN,KAAK,IAAI"}
1
+ {"version":3,"file":"themeStyles.js","names":[],"sources":["../../src/styles/themeStyles.ts"],"sourcesContent":["// 共用主题样式配置\n// 用于 Tree 组件和 Sidebar 组件的活跃状态样式\n\nexport interface ThemeActiveStyle {\n backgroundColor: string;\n borderColor: string;\n textColor: string;\n}\n\n// 主题配色映射\nexport const themeActiveStyles: Record<string, ThemeActiveStyle> = {\n light: {\n backgroundColor: 'var(--dishui-accent)',\n borderColor: 'var(--dishui-accent)',\n textColor: 'var(--dishui-accent-fg)',\n },\n dark: {\n backgroundColor: 'var(--dishui-accent)',\n borderColor: 'var(--dishui-accent)',\n textColor: 'var(--dishui-accent-fg)',\n },\n cursor: {\n backgroundColor: 'rgba(96, 165, 250, 0.16)',\n borderColor: 'rgb(96, 165, 250)',\n textColor: 'rgb(147, 197, 253)',\n },\n retro: {\n backgroundColor: 'rgba(239, 68, 68, 0.15)',\n borderColor: 'rgb(239, 68, 68)',\n textColor: 'rgb(239, 68, 68)',\n },\n cyberpunk: {\n backgroundColor: 'rgba(255, 221, 0, 0.18)',\n borderColor: 'rgb(255, 221, 0)',\n textColor: 'rgb(255, 221, 0)',\n },\n matrix: {\n backgroundColor: 'rgba(0, 255, 65, 0.15)',\n borderColor: 'rgb(0, 255, 65)',\n textColor: 'rgb(0, 255, 65)',\n },\n oceanblue: {\n backgroundColor: 'rgba(6, 95, 212, 0.18)',\n borderColor: 'rgb(6, 95, 212)',\n textColor: 'rgb(6, 95, 212)',\n },\n eyecare: {\n backgroundColor: 'rgba(34, 139, 34, 0.18)',\n borderColor: 'rgb(34, 139, 34)',\n textColor: 'rgb(34, 139, 34)',\n },\n ghibli: {\n backgroundColor: 'rgba(249, 115, 22, 0.18)',\n borderColor: 'rgb(249, 115, 22)',\n textColor: 'rgb(249, 115, 22)',\n },\n pinkgirl: {\n backgroundColor: 'rgba(236, 72, 153, 0.15)',\n borderColor: 'rgb(236, 72, 153)',\n textColor: 'rgb(236, 72, 153)',\n },\n mintgirl: {\n backgroundColor: 'rgba(52, 211, 153, 0.15)',\n borderColor: 'rgb(52, 211, 153)',\n textColor: 'rgb(52, 211, 153)',\n },\n\n wuxing: {\n backgroundColor: 'rgba(180, 120, 60, 0.15)',\n borderColor: 'rgb(180, 120, 60)',\n textColor: 'rgb(140, 90, 40)',\n },\n jukebox: {\n backgroundColor: 'rgba(147, 51, 234, 0.18)',\n borderColor: 'rgb(147, 51, 234)',\n textColor: 'rgb(167, 139, 250)',\n },\n};\n\n// 生成 Tree 组件的主题活跃状态 CSS\nexport const generateTreeActiveStyles = (): string => {\n return Object.entries(themeActiveStyles)\n .map(([theme, style]) => `\n /* ${theme.charAt(0).toUpperCase() + theme.slice(1)} 主题 */\n [data-theme=\"${theme}\"] .tree-node-content-active {\n background-color: ${style.backgroundColor} !important;\n border-left: 4px solid ${style.borderColor} !important;\n color: ${style.textColor} !important;\n }\n [data-theme=\"${theme}\"] .tree-node-content-active .tree-node-icon,\n [data-theme=\"${theme}\"] .tree-node-content-active .tree-node-label {\n color: ${style.textColor} !important;\n }`)\n .join('\\n');\n};\n\n// 生成 Sidebar 组件的主题活跃状态 CSS\nexport const generateSidebarActiveStyles = (): string => {\n return Object.entries(themeActiveStyles)\n .map(([theme, style]) => `\n /* ${theme.charAt(0).toUpperCase() + theme.slice(1)} 主题 */\n [data-theme=\"${theme}\"] .sidebar-tree .tree-node-content-active {\n background-color: ${style.backgroundColor} !important;\n border-left: 4px solid ${style.borderColor} !important;\n }\n [data-theme=\"${theme}\"] .sidebar-tree .tree-node-content-active .tree-node-label,\n [data-theme=\"${theme}\"] .sidebar-tree .tree-node-content-active .tree-node-icon svg {\n color: ${style.textColor} !important;\n stroke: ${style.textColor} !important;\n }`)\n .join('\\n');\n};\n\n"],"mappings":";AAUA,IAAa,IAAsD;CACjE,OAAO;EACL,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;CACA,MAAM;EACJ,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;CACA,QAAQ;EACN,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;CACA,OAAO;EACL,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;CACA,WAAW;EACT,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;CACA,QAAQ;EACN,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;CACA,WAAW;EACT,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;CACA,SAAS;EACP,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;CACA,QAAQ;EACN,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;CACA,UAAU;EACR,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;CACA,UAAU;EACR,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;CAEA,QAAQ;EACN,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;CACA,SAAS;EACP,iBAAiB;EACjB,aAAa;EACb,WAAW;CACb;AACF,GAGa,UACJ,OAAO,QAAQ,CAAiB,CAAC,CACrC,KAAK,CAAC,GAAO,OAAW;aAChB,EAAM,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,EAAM,MAAM,CAAC,EAAE;uBACrC,EAAM;8BACC,EAAM,gBAAgB;mCACjB,EAAM,YAAY;mBAClC,EAAM,UAAU;;uBAEZ,EAAM;uBACN,EAAM;mBACV,EAAM,UAAU;UACzB,CAAC,CACN,KAAK,IAAI,GAID,UACJ,OAAO,QAAQ,CAAiB,CAAC,CACrC,KAAK,CAAC,GAAO,OAAW;aAChB,EAAM,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,EAAM,MAAM,CAAC,EAAE;uBACrC,EAAM;8BACC,EAAM,gBAAgB;mCACjB,EAAM,YAAY;;uBAE9B,EAAM;uBACN,EAAM;mBACV,EAAM,UAAU;oBACf,EAAM,UAAU;UAC1B,CAAC,CACN,KAAK,IAAI"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dishui",
3
- "version": "0.0.80",
3
+ "version": "0.0.82",
4
4
  "description": "New Components UI Framework with AI Powered",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",