@zhang_jifan/fanui 2.1.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.
Files changed (127) hide show
  1. package/ACCESSIBILITY.md +61 -0
  2. package/CHANGELOG.md +112 -0
  3. package/COMMERCIAL-LICENSE.md +71 -0
  4. package/DESIGN-SYSTEM.md +294 -0
  5. package/LICENSE +661 -0
  6. package/README.md +348 -0
  7. package/USAGE.md +1926 -0
  8. package/_index.scss +20 -0
  9. package/dist/fanui.cjs +15 -0
  10. package/dist/fanui.css +28209 -0
  11. package/dist/fanui.d.ts +353 -0
  12. package/dist/fanui.esm.js +71 -0
  13. package/dist/fanui.js +4782 -0
  14. package/dist/fanui.min.css +1 -0
  15. package/dist/fanui.mjs +71 -0
  16. package/dist/modules/fanui-advanced.css +830 -0
  17. package/dist/modules/fanui-advanced.min.css +129 -0
  18. package/dist/modules/fanui-alert.css +575 -0
  19. package/dist/modules/fanui-alert.min.css +122 -0
  20. package/dist/modules/fanui-badge.css +426 -0
  21. package/dist/modules/fanui-badge.min.css +77 -0
  22. package/dist/modules/fanui-base.css +1394 -0
  23. package/dist/modules/fanui-base.min.css +236 -0
  24. package/dist/modules/fanui-blog.css +762 -0
  25. package/dist/modules/fanui-blog.min.css +108 -0
  26. package/dist/modules/fanui-button.css +526 -0
  27. package/dist/modules/fanui-button.min.css +56 -0
  28. package/dist/modules/fanui-card.css +291 -0
  29. package/dist/modules/fanui-card.min.css +52 -0
  30. package/dist/modules/fanui-choice.css +539 -0
  31. package/dist/modules/fanui-choice.min.css +83 -0
  32. package/dist/modules/fanui-dashboard.css +1057 -0
  33. package/dist/modules/fanui-dashboard.min.css +160 -0
  34. package/dist/modules/fanui-data.css +687 -0
  35. package/dist/modules/fanui-data.min.css +125 -0
  36. package/dist/modules/fanui-feedback.css +432 -0
  37. package/dist/modules/fanui-feedback.min.css +79 -0
  38. package/dist/modules/fanui-form.css +779 -0
  39. package/dist/modules/fanui-form.min.css +123 -0
  40. package/dist/modules/fanui-glass.css +497 -0
  41. package/dist/modules/fanui-glass.min.css +46 -0
  42. package/dist/modules/fanui-input-plus.css +799 -0
  43. package/dist/modules/fanui-input-plus.min.css +124 -0
  44. package/dist/modules/fanui-interactive.css +960 -0
  45. package/dist/modules/fanui-interactive.min.css +138 -0
  46. package/dist/modules/fanui-layout.css +4399 -0
  47. package/dist/modules/fanui-layout.min.css +1172 -0
  48. package/dist/modules/fanui-marketing.css +1125 -0
  49. package/dist/modules/fanui-marketing.min.css +144 -0
  50. package/dist/modules/fanui-nav.css +458 -0
  51. package/dist/modules/fanui-nav.min.css +76 -0
  52. package/dist/modules/fanui-overlay.css +547 -0
  53. package/dist/modules/fanui-overlay.min.css +91 -0
  54. package/dist/modules/fanui-table.css +290 -0
  55. package/dist/modules/fanui-table.min.css +62 -0
  56. package/dist/modules/fanui-tabs.css +333 -0
  57. package/dist/modules/fanui-tabs.min.css +58 -0
  58. package/dist/modules/fanui-themes.css +2728 -0
  59. package/dist/modules/fanui-themes.min.css +40 -0
  60. package/dist/modules/fanui-tokens.css +587 -0
  61. package/dist/modules/fanui-tokens.min.css +3 -0
  62. package/dist/modules/fanui-utilities.css +6557 -0
  63. package/dist/modules/fanui-utilities.min.css +1762 -0
  64. package/dist/modules/sizes.json +103 -0
  65. package/docs/MIGRATION-v2.md +179 -0
  66. package/examples/01-script-tag.html +149 -0
  67. package/examples/02-react/README.md +39 -0
  68. package/examples/02-react/index.html +12 -0
  69. package/examples/02-react/package.json +20 -0
  70. package/examples/02-react/src/App.jsx +108 -0
  71. package/examples/02-react/src/main.jsx +13 -0
  72. package/examples/02-react/src/useFanUI.js +87 -0
  73. package/examples/02-react/vite.config.js +6 -0
  74. package/examples/03-vue3/README.md +67 -0
  75. package/examples/03-vue3/index.html +12 -0
  76. package/examples/03-vue3/package.json +19 -0
  77. package/examples/03-vue3/src/App.vue +93 -0
  78. package/examples/03-vue3/src/main.js +8 -0
  79. package/examples/03-vue3/src/useFanUI.js +85 -0
  80. package/examples/03-vue3/vite.config.js +6 -0
  81. package/examples/04-vue2-cdn.html +93 -0
  82. package/examples/README.md +34 -0
  83. package/package.json +127 -0
  84. package/src/_functions.scss +319 -0
  85. package/src/_mixins.scss +1202 -0
  86. package/src/_tokens.scss +180 -0
  87. package/src/_variables.scss +491 -0
  88. package/src/base/_animations.scss +210 -0
  89. package/src/base/_reset.scss +359 -0
  90. package/src/base/_rtl.scss +133 -0
  91. package/src/base/_typography.scss +353 -0
  92. package/src/components/_advanced.scss +763 -0
  93. package/src/components/_alert.scss +322 -0
  94. package/src/components/_badge.scss +279 -0
  95. package/src/components/_blog.scss +693 -0
  96. package/src/components/_button.scss +351 -0
  97. package/src/components/_capabilities.scss +463 -0
  98. package/src/components/_card.scss +281 -0
  99. package/src/components/_choice.scss +444 -0
  100. package/src/components/_dashboard.scss +950 -0
  101. package/src/components/_data.scss +618 -0
  102. package/src/components/_feedback.scss +403 -0
  103. package/src/components/_form.scss +408 -0
  104. package/src/components/_glass.scss +374 -0
  105. package/src/components/_input-plus.scss +730 -0
  106. package/src/components/_interactive.scss +885 -0
  107. package/src/components/_marketing.scss +982 -0
  108. package/src/components/_nav.scss +480 -0
  109. package/src/components/_overlay.scss +517 -0
  110. package/src/components/_table.scss +276 -0
  111. package/src/components/_tabs.scss +338 -0
  112. package/src/fanui.d.ts +353 -0
  113. package/src/fanui.js +4782 -0
  114. package/src/fanui.scss +79 -0
  115. package/src/glass/_switches.scss +36 -0
  116. package/src/glass/_tokens.scss +259 -0
  117. package/src/layout/_container.scss +111 -0
  118. package/src/layout/_flex.scss +164 -0
  119. package/src/layout/_grid.scss +180 -0
  120. package/src/themes/_accents.scss +201 -0
  121. package/src/themes/_palettes.scss +180 -0
  122. package/src/utilities/_borders.scss +104 -0
  123. package/src/utilities/_display.scss +145 -0
  124. package/src/utilities/_effects.scss +210 -0
  125. package/src/utilities/_sizing.scss +123 -0
  126. package/src/utilities/_spacing.scss +118 -0
  127. package/src/utilities/_texture.scss +323 -0
package/dist/fanui.mjs ADDED
@@ -0,0 +1,71 @@
1
+ /* =============================================================================
2
+ * fanUI v2.1.0 · ESM 入口
3
+ * -----------------------------------------------------------------------------
4
+ * import FanUI from "@zhang_jifan/fanui"; // 默认导出 = 完整命名空间
5
+ * import { theme, toast } from "@zhang_jifan/fanui"; // 具名导出 = 各子模块
6
+ * import "@zhang_jifan/fanui/style.css"; // 样式(或 import "@zhang_jifan/fanui" 后自行引入 CSS)
7
+ *
8
+ * 说明:运行时依赖浏览器 DOM。非浏览器环境(Node / SSR)**不再导出 null**,
9
+ * 而是导出服务端门面 —— 含 FanUI.ssr 渲染器与各命名空间的空实现,
10
+ * 这样 Next / Nuxt / Astro 可以在服务端直出组件标记、且 import 不会报错。
11
+ * FanUI["switch"] // "switch" 是 JS 保留字,具名导入请用 switchModule
12
+ * ========================================================================== */
13
+ import "./fanui.js";
14
+
15
+ const __g = typeof globalThis !== "undefined" ? globalThis : {};
16
+ const FanUI = (typeof window !== "undefined" && window.FanUI) || __g.FanUI || null;
17
+
18
+ export default FanUI;
19
+ export { FanUI };
20
+ export const version = FanUI ? FanUI["version"] : null;
21
+ export const prefix = FanUI ? FanUI["prefix"] : null;
22
+ export const ssr = FanUI ? FanUI["ssr"] : null;
23
+ export const isServer = FanUI ? FanUI["isServer"] : null;
24
+ export const theme = FanUI ? FanUI["theme"] : null;
25
+ export const studio = FanUI ? FanUI["studio"] : null;
26
+ export const modal = FanUI ? FanUI["modal"] : null;
27
+ export const overlay = FanUI ? FanUI["overlay"] : null;
28
+ export const toast = FanUI ? FanUI["toast"] : null;
29
+ export const tabs = FanUI ? FanUI["tabs"] : null;
30
+ export const dropdown = FanUI ? FanUI["dropdown"] : null;
31
+ export const collapse = FanUI ? FanUI["collapse"] : null;
32
+ export const form = FanUI ? FanUI["form"] : null;
33
+ export const switchModule = FanUI ? FanUI["switch"] : null;
34
+ export const command = FanUI ? FanUI["command"] : null;
35
+ export const carousel = FanUI ? FanUI["carousel"] : null;
36
+ export const rate = FanUI ? FanUI["rate"] : null;
37
+ export const tags = FanUI ? FanUI["tags"] : null;
38
+ export const stepper = FanUI ? FanUI["stepper"] : null;
39
+ export const pin = FanUI ? FanUI["pin"] : null;
40
+ export const swatch = FanUI ? FanUI["swatch"] : null;
41
+ export const upload = FanUI ? FanUI["upload"] : null;
42
+ export const combobox = FanUI ? FanUI["combobox"] : null;
43
+ export const kanban = FanUI ? FanUI["kanban"] : null;
44
+ export const notify = FanUI ? FanUI["notify"] : null;
45
+ export const filterBar = FanUI ? FanUI["filterBar"] : null;
46
+ export const loadingBar = FanUI ? FanUI["loadingBar"] : null;
47
+ export const datePicker = FanUI ? FanUI["datePicker"] : null;
48
+ export const timePicker = FanUI ? FanUI["timePicker"] : null;
49
+ export const colorPicker = FanUI ? FanUI["colorPicker"] : null;
50
+ export const cascader = FanUI ? FanUI["cascader"] : null;
51
+ export const tree = FanUI ? FanUI["tree"] : null;
52
+ export const transfer = FanUI ? FanUI["transfer"] : null;
53
+ export const i18n = FanUI ? FanUI["i18n"] : null;
54
+ export const format = FanUI ? FanUI["format"] : null;
55
+ export const virtualList = FanUI ? FanUI["virtualList"] : null;
56
+ export const lightbox = FanUI ? FanUI["lightbox"] : null;
57
+ export const watermark = FanUI ? FanUI["watermark"] : null;
58
+ export const tour = FanUI ? FanUI["tour"] : null;
59
+ export const splitter = FanUI ? FanUI["splitter"] : null;
60
+ export const affix = FanUI ? FanUI["affix"] : null;
61
+ export const backTop = FanUI ? FanUI["backTop"] : null;
62
+ export const scroll = FanUI ? FanUI["scroll"] : null;
63
+ export const counter = FanUI ? FanUI["counter"] : null;
64
+ export const ripple = FanUI ? FanUI["ripple"] : null;
65
+ export const copy = FanUI ? FanUI["copy"] : null;
66
+ export const track = FanUI ? FanUI["track"] : null;
67
+ export const lockScroll = FanUI ? FanUI["lockScroll"] : null;
68
+ export const unlockScroll = FanUI ? FanUI["unlockScroll"] : null;
69
+ export const init = FanUI ? FanUI["init"] : null;
70
+ export const $ = FanUI ? FanUI["$"] : null;
71
+ export const $$ = FanUI ? FanUI["$$"] : null;