@vef-framework/components 1.0.8 → 1.0.9

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 (349) hide show
  1. package/README.md +1 -1
  2. package/dist/index.d.ts +15 -2
  3. package/dist/index.js +2 -2
  4. package/dist/internal/index.js +1 -1
  5. package/dist/internal/utils.js +1 -1
  6. package/dist/vef-access-denied/access-denied-icon.d.ts +1 -1
  7. package/dist/vef-access-denied/access-denied-icon.js +1 -1
  8. package/dist/vef-access-denied/index.js +1 -1
  9. package/dist/vef-action-buttons/index.js +1 -1
  10. package/dist/vef-app/helper.d.ts +10 -0
  11. package/dist/vef-app/helper.js +3 -0
  12. package/dist/vef-app/index.d.ts +5 -0
  13. package/dist/vef-app/index.js +3 -0
  14. package/dist/vef-app/props.d.ts +7 -0
  15. package/dist/vef-auto-sizer/index.d.ts +5 -0
  16. package/dist/vef-auto-sizer/index.js +3 -0
  17. package/dist/vef-auto-sizer/props.d.ts +5 -0
  18. package/dist/vef-avatar/index.d.ts +5 -0
  19. package/dist/vef-avatar/index.js +3 -0
  20. package/dist/vef-avatar/props.d.ts +11 -0
  21. package/dist/vef-avatar-group/index.d.ts +5 -0
  22. package/dist/vef-avatar-group/index.js +3 -0
  23. package/dist/vef-avatar-group/props.d.ts +15 -0
  24. package/dist/vef-badge/index.js +1 -1
  25. package/dist/vef-bool/hooks/use-bool-instance.js +1 -1
  26. package/dist/vef-bool/index.js +1 -1
  27. package/dist/vef-button/components/base-button.js +1 -1
  28. package/dist/vef-button/index.js +1 -1
  29. package/dist/vef-card/index.js +1 -1
  30. package/dist/vef-card-meta/index.js +1 -1
  31. package/dist/vef-checkbox/hooks/use-checkbox-instance.js +1 -1
  32. package/dist/vef-checkbox/hooks/use-data-options.d.ts +1 -1
  33. package/dist/vef-checkbox/hooks/use-data-options.js +1 -1
  34. package/dist/vef-checkbox/index.js +1 -1
  35. package/dist/vef-col/index.js +1 -1
  36. package/dist/vef-color-picker/index.js +1 -1
  37. package/dist/vef-compact/index.js +1 -1
  38. package/dist/vef-config-provider/hooks/use-ui-config.d.ts +3 -5
  39. package/dist/vef-config-provider/hooks/use-ui-config.js +2 -2
  40. package/dist/vef-config-provider/index.js +15 -23
  41. package/dist/vef-config-provider/reset-style.js +1 -1
  42. package/dist/vef-config-provider/store.d.ts +14 -9
  43. package/dist/vef-config-provider/store.js +2 -2
  44. package/dist/vef-container/index.js +1 -1
  45. package/dist/vef-crud-page/components/crud-actions.js +1 -1
  46. package/dist/vef-crud-page/components/crud-filter.js +1 -1
  47. package/dist/vef-crud-page/components/crud-footer.js +4 -4
  48. package/dist/vef-crud-page/components/crud-form-modal.js +1 -1
  49. package/dist/vef-crud-page/components/crud-header.js +1 -1
  50. package/dist/vef-crud-page/components/crud-table.d.ts +2 -2
  51. package/dist/vef-crud-page/components/crud-table.js +2 -2
  52. package/dist/vef-crud-page/hooks/use-action-buttons.js +2 -2
  53. package/dist/vef-crud-page/hooks/use-crud-context.js +1 -1
  54. package/dist/vef-crud-page/hooks/use-crud-schema.d.ts +2 -2
  55. package/dist/vef-crud-page/hooks/use-crud-schema.js +1 -1
  56. package/dist/vef-crud-page/hooks/use-operation-buttons.js +2 -2
  57. package/dist/vef-crud-page/index.d.ts +3 -3
  58. package/dist/vef-crud-page/index.js +1 -1
  59. package/dist/vef-crud-page/props.d.ts +1 -1
  60. package/dist/vef-crud-page/store.js +1 -1
  61. package/dist/vef-divider/index.js +2 -2
  62. package/dist/vef-divider/props.d.ts +3 -3
  63. package/dist/vef-drawer/components/action-button-wrapper.d.ts +1 -2
  64. package/dist/vef-drawer/components/action-button-wrapper.js +1 -1
  65. package/dist/vef-drawer/components/button-props.js +1 -1
  66. package/dist/vef-drawer/components/cancel-action-button.js +1 -1
  67. package/dist/vef-drawer/components/ok-action-button.js +2 -2
  68. package/dist/vef-drawer/context.js +1 -1
  69. package/dist/vef-drawer/index.js +1 -1
  70. package/dist/vef-dropdown/index.d.ts +4 -1
  71. package/dist/vef-dropdown/index.js +2 -2
  72. package/dist/vef-dropdown/props.d.ts +28 -35
  73. package/dist/vef-dynamic-icon/index.d.ts +5 -0
  74. package/dist/vef-dynamic-icon/index.js +3 -0
  75. package/dist/vef-dynamic-icon/props.d.ts +20 -0
  76. package/dist/vef-dynamic-icon/props.js +3 -0
  77. package/dist/vef-empty/index.d.ts +1 -1
  78. package/dist/vef-empty/index.js +2 -2
  79. package/dist/vef-empty/props.d.ts +16 -1
  80. package/dist/vef-empty-placeholder/index.js +5 -5
  81. package/dist/vef-error/error-icon.d.ts +1 -1
  82. package/dist/vef-error/error-icon.js +1 -1
  83. package/dist/vef-error/index.js +1 -1
  84. package/dist/vef-filter/components/action-buttons.js +7 -7
  85. package/dist/vef-filter/components/advanced-filter.js +4 -4
  86. package/dist/vef-filter/components/basic-filter.js +1 -1
  87. package/dist/vef-filter/components/fields/index.js +1 -1
  88. package/dist/vef-filter/components/fields/input-number.js +1 -1
  89. package/dist/vef-filter/components/fields/input.js +1 -1
  90. package/dist/vef-filter/components/filter-field.js +1 -1
  91. package/dist/vef-filter/components/filter-item.d.ts +1 -1
  92. package/dist/vef-filter/components/filter-item.js +1 -1
  93. package/dist/vef-filter/event.js +1 -1
  94. package/dist/vef-filter/helper.js +1 -1
  95. package/dist/vef-filter/hooks/use-action-handlers.js +1 -1
  96. package/dist/vef-filter/hooks/use-computed-values.js +1 -1
  97. package/dist/vef-filter/hooks/use-filter-context.js +1 -1
  98. package/dist/vef-filter/hooks/use-filter-initialization.d.ts +1 -1
  99. package/dist/vef-filter/hooks/use-filter-initialization.js +1 -1
  100. package/dist/vef-filter/hooks/use-filter-instance.js +1 -1
  101. package/dist/vef-filter/hooks/use-filter-items.js +1 -1
  102. package/dist/vef-filter/hooks/use-filter-values-change.d.ts +1 -1
  103. package/dist/vef-filter/hooks/use-filter-values-change.js +1 -1
  104. package/dist/vef-filter/hooks/use-label-config.js +1 -1
  105. package/dist/vef-filter/index.d.ts +3 -4
  106. package/dist/vef-filter/index.js +1 -1
  107. package/dist/vef-filter/props.d.ts +2 -3
  108. package/dist/vef-filter/store.d.ts +1 -1
  109. package/dist/vef-filter/store.js +1 -1
  110. package/dist/vef-flex/index.js +1 -1
  111. package/dist/vef-float-button/index.js +1 -1
  112. package/dist/vef-float-button-group/index.js +1 -1
  113. package/dist/vef-form/components/fields/index.js +1 -1
  114. package/dist/vef-form/components/fields/input-number.js +1 -1
  115. package/dist/vef-form/components/fields/input.js +1 -1
  116. package/dist/vef-form/components/form-actions.js +1 -1
  117. package/dist/vef-form/components/form-content.d.ts +6 -1
  118. package/dist/vef-form/components/form-content.js +4 -4
  119. package/dist/vef-form/components/form-field.js +1 -1
  120. package/dist/vef-form/components/form-group.d.ts +3 -3
  121. package/dist/vef-form/components/form-group.js +1 -1
  122. package/dist/vef-form/components/form-hidden-item.js +1 -1
  123. package/dist/vef-form/components/form-item.d.ts +1 -1
  124. package/dist/vef-form/components/form-item.js +1 -1
  125. package/dist/vef-form/components/form-row.d.ts +2 -2
  126. package/dist/vef-form/components/form-row.js +1 -1
  127. package/dist/vef-form/event.js +1 -1
  128. package/dist/vef-form/helper.js +1 -1
  129. package/dist/vef-form/hooks/use-action-handlers.js +1 -1
  130. package/dist/vef-form/hooks/use-columns-layout.d.ts +2 -2
  131. package/dist/vef-form/hooks/use-columns-layout.js +1 -1
  132. package/dist/vef-form/hooks/use-computed-values.js +1 -1
  133. package/dist/vef-form/hooks/use-form-context.js +1 -1
  134. package/dist/vef-form/hooks/use-form-initialization.d.ts +1 -1
  135. package/dist/vef-form/hooks/use-form-initialization.js +1 -1
  136. package/dist/vef-form/hooks/use-form-instance.js +1 -1
  137. package/dist/vef-form/hooks/use-form-values-change.d.ts +1 -1
  138. package/dist/vef-form/hooks/use-form-values-change.js +1 -1
  139. package/dist/vef-form/hooks/use-label-width.js +1 -1
  140. package/dist/vef-form/index.d.ts +3 -4
  141. package/dist/vef-form/index.js +4 -4
  142. package/dist/vef-form/props.d.ts +3 -4
  143. package/dist/vef-form/store.js +1 -1
  144. package/dist/vef-form/types.d.ts +10 -10
  145. package/dist/vef-form/validation-rules.d.ts +1 -1
  146. package/dist/vef-form/validation-rules.js +1 -1
  147. package/dist/vef-form-drawer/index.d.ts +2 -2
  148. package/dist/vef-form-drawer/index.js +1 -1
  149. package/dist/vef-form-modal/index.d.ts +2 -2
  150. package/dist/vef-form-modal/index.js +1 -1
  151. package/dist/vef-generic-select/index.d.ts +4 -0
  152. package/dist/vef-generic-select/index.js +3 -0
  153. package/dist/vef-generic-select/props.d.ts +60 -0
  154. package/dist/vef-grid/index.js +1 -1
  155. package/dist/vef-grid/props.js +1 -1
  156. package/dist/vef-grid-item/index.js +1 -1
  157. package/dist/vef-icon/index.js +2 -2
  158. package/dist/vef-icon/props.d.ts +6 -2
  159. package/dist/vef-icon-select/index.d.ts +5 -0
  160. package/dist/vef-icon-select/index.js +42 -0
  161. package/dist/vef-icon-select/props.d.ts +43 -0
  162. package/dist/vef-input/hooks/use-input-instance.js +2 -2
  163. package/dist/vef-input/index.js +1 -1
  164. package/dist/vef-input/props.d.ts +8 -0
  165. package/dist/vef-input-number/hooks/use-input-number-instance.js +1 -1
  166. package/dist/vef-input-number/index.js +1 -1
  167. package/dist/vef-layout/components/content.d.ts +3 -0
  168. package/dist/vef-layout/components/content.js +3 -0
  169. package/dist/vef-layout/components/font-size.d.ts +3 -0
  170. package/dist/vef-layout/components/font-size.js +6 -0
  171. package/dist/vef-layout/components/fullscreen.d.ts +3 -0
  172. package/dist/vef-layout/components/fullscreen.js +6 -0
  173. package/dist/vef-layout/components/header-action-icons.d.ts +3 -0
  174. package/dist/vef-layout/components/header-action-icons.js +17 -0
  175. package/dist/vef-layout/components/header-content.d.ts +3 -0
  176. package/dist/vef-layout/components/header-content.js +8 -0
  177. package/dist/vef-layout/components/header.d.ts +2 -0
  178. package/dist/vef-layout/components/header.js +14 -0
  179. package/dist/vef-layout/components/sider.d.ts +13 -0
  180. package/dist/vef-layout/components/sider.js +51 -0
  181. package/dist/vef-layout/components/title.d.ts +16 -0
  182. package/dist/vef-layout/components/title.js +38 -0
  183. package/dist/vef-layout/components/user-avatar.d.ts +3 -0
  184. package/dist/vef-layout/components/user-avatar.js +20 -0
  185. package/dist/vef-layout/index.d.ts +4 -0
  186. package/dist/vef-layout/index.js +7 -0
  187. package/dist/vef-layout/logo.svg.js +3 -0
  188. package/dist/vef-layout/props.d.ts +19 -0
  189. package/dist/vef-layout/store.d.ts +16 -0
  190. package/dist/vef-layout/store.js +3 -0
  191. package/dist/vef-loading-placeholder/index.js +1 -1
  192. package/dist/vef-login/index.js +11 -8
  193. package/dist/vef-login/login-icon.d.ts +1 -1
  194. package/dist/vef-login/login-icon.js +1 -1
  195. package/dist/vef-menu/index.d.ts +5 -0
  196. package/dist/vef-menu/index.js +3 -0
  197. package/dist/vef-menu/props.d.ts +74 -0
  198. package/dist/vef-modal/components/action-button-wrapper.d.ts +1 -2
  199. package/dist/vef-modal/components/action-button-wrapper.js +1 -1
  200. package/dist/vef-modal/components/button-props.js +1 -1
  201. package/dist/vef-modal/components/cancel-action-button.js +1 -1
  202. package/dist/vef-modal/components/ok-action-button.js +2 -2
  203. package/dist/vef-modal/context.js +1 -1
  204. package/dist/vef-modal/index.js +3 -3
  205. package/dist/vef-not-found/index.js +1 -1
  206. package/dist/vef-not-found/not-found-icon.d.ts +1 -1
  207. package/dist/vef-not-found/not-found-icon.js +1 -1
  208. package/dist/vef-page/index.js +3 -3
  209. package/dist/vef-pagination/index.js +1 -1
  210. package/dist/vef-pagination/props.js +1 -1
  211. package/dist/vef-paragraph/index.js +1 -1
  212. package/dist/vef-password/hooks/use-password-instance.js +1 -1
  213. package/dist/vef-password/index.js +1 -1
  214. package/dist/vef-popconfirm/index.d.ts +1 -2
  215. package/dist/vef-popconfirm/index.js +2 -2
  216. package/dist/vef-popconfirm/props.d.ts +12 -4
  217. package/dist/vef-popover/index.d.ts +1 -2
  218. package/dist/vef-popover/index.js +2 -2
  219. package/dist/vef-popover/props.d.ts +14 -1
  220. package/dist/vef-radio/hooks/use-data-options.d.ts +1 -1
  221. package/dist/vef-radio/hooks/use-data-options.js +1 -1
  222. package/dist/vef-radio/hooks/use-radio-instance.js +1 -1
  223. package/dist/vef-radio/index.js +1 -1
  224. package/dist/vef-rate/hooks/use-rate-instance.js +1 -1
  225. package/dist/vef-rate/index.js +1 -1
  226. package/dist/vef-responsive-container/index.d.ts +1 -1
  227. package/dist/vef-responsive-container/index.js +1 -1
  228. package/dist/vef-responsive-item/index.d.ts +1 -1
  229. package/dist/vef-responsive-item/index.js +1 -1
  230. package/dist/vef-ribbon/index.js +1 -1
  231. package/dist/vef-row/index.js +1 -1
  232. package/dist/vef-scroll-area/components/scrollbar.js +1 -1
  233. package/dist/vef-scroll-area/index.js +7 -4
  234. package/dist/vef-scroll-area/props.d.ts +26 -2
  235. package/dist/vef-select/components/option.js +1 -1
  236. package/dist/vef-select/hooks/use-data-options.d.ts +2 -2
  237. package/dist/vef-select/hooks/use-data-options.js +1 -1
  238. package/dist/vef-select/hooks/use-field-names.js +1 -1
  239. package/dist/vef-select/hooks/{use-label-render.d.ts → use-render-label.d.ts} +3 -3
  240. package/dist/vef-select/hooks/{use-label-render.js → use-render-label.js} +2 -2
  241. package/dist/vef-select/hooks/use-render-option.d.ts +11 -0
  242. package/dist/vef-select/hooks/{use-option-render.js → use-render-option.js} +2 -2
  243. package/dist/vef-select/hooks/use-select-instance.js +1 -1
  244. package/dist/vef-select/index.js +2 -2
  245. package/dist/vef-select/props.d.ts +4 -3
  246. package/dist/vef-slider/hooks/use-slider-instance.js +1 -1
  247. package/dist/vef-slider/index.js +1 -1
  248. package/dist/vef-sortable-list/components/overlay-item.js +1 -1
  249. package/dist/vef-sortable-list/components/sortable-item.js +1 -1
  250. package/dist/vef-sortable-list/hooks/use-merged-items.d.ts +1 -1
  251. package/dist/vef-sortable-list/hooks/use-merged-items.js +1 -1
  252. package/dist/vef-sortable-list/index.d.ts +2 -2
  253. package/dist/vef-sortable-list/index.js +2 -2
  254. package/dist/vef-sortable-list/props.d.ts +3 -3
  255. package/dist/vef-space/index.js +1 -1
  256. package/dist/vef-spin/index.js +1 -1
  257. package/dist/vef-splitter/index.js +2 -2
  258. package/dist/vef-splitter/props.d.ts +3 -3
  259. package/dist/vef-splitter-panel/index.js +1 -1
  260. package/dist/vef-status/index.js +1 -1
  261. package/dist/vef-table/components/columns/bool.js +2 -2
  262. package/dist/vef-table/components/columns/code.js +1 -1
  263. package/dist/vef-table/components/columns/data-dictionary.js +2 -2
  264. package/dist/vef-table/components/columns/enum.js +2 -2
  265. package/dist/vef-table/components/columns/file.js +1 -1
  266. package/dist/vef-table/components/columns/icon.js +1 -1
  267. package/dist/vef-table/components/columns/id.js +1 -1
  268. package/dist/vef-table/components/columns/image.js +1 -1
  269. package/dist/vef-table/components/columns/index.js +1 -1
  270. package/dist/vef-table/components/columns/markdown.js +1 -1
  271. package/dist/vef-table/components/columns/number.js +1 -1
  272. package/dist/vef-table/components/columns/render.js +1 -1
  273. package/dist/vef-table/components/columns/rich-text.js +1 -1
  274. package/dist/vef-table/components/columns/text.js +1 -1
  275. package/dist/vef-table/components/columns-settings.js +2 -2
  276. package/dist/vef-table/components/operation-buttons.js +2 -2
  277. package/dist/vef-table/components/settings-icon.js +4 -4
  278. package/dist/vef-table/components/table-footer.js +1 -1
  279. package/dist/vef-table/helper.js +1 -1
  280. package/dist/vef-table/hooks/use-computed-batch-buttons.js +1 -1
  281. package/dist/vef-table/hooks/use-computed-columns.js +1 -1
  282. package/dist/vef-table/hooks/use-computed-values.js +1 -1
  283. package/dist/vef-table/hooks/use-data.d.ts +1 -1
  284. package/dist/vef-table/hooks/use-data.js +2 -2
  285. package/dist/vef-table/hooks/use-default-column-configs.js +1 -1
  286. package/dist/vef-table/hooks/use-display-value.js +1 -1
  287. package/dist/vef-table/hooks/use-helper-columns.d.ts +1 -1
  288. package/dist/vef-table/hooks/use-helper-columns.js +1 -1
  289. package/dist/vef-table/hooks/use-operation-column-width.d.ts +1 -1
  290. package/dist/vef-table/hooks/use-operation-column-width.js +1 -1
  291. package/dist/vef-table/hooks/use-pagination-props.js +1 -1
  292. package/dist/vef-table/hooks/use-row-props.js +2 -2
  293. package/dist/vef-table/hooks/use-row-selection-config.d.ts +3 -3
  294. package/dist/vef-table/hooks/use-row-selection-config.js +2 -2
  295. package/dist/vef-table/hooks/use-selected-rows.d.ts +10 -0
  296. package/dist/vef-table/hooks/use-selected-rows.js +3 -0
  297. package/dist/vef-table/hooks/use-table-columns.d.ts +1 -1
  298. package/dist/vef-table/hooks/use-table-columns.js +1 -1
  299. package/dist/vef-table/hooks/use-table-context.d.ts +1 -1
  300. package/dist/vef-table/hooks/use-table-context.js +1 -1
  301. package/dist/vef-table/hooks/use-table-instance.js +1 -1
  302. package/dist/vef-table/hooks/use-table-summary.d.ts +1 -1
  303. package/dist/vef-table/hooks/use-table-summary.js +1 -1
  304. package/dist/vef-table/hooks/use-table-width.js +1 -1
  305. package/dist/vef-table/index.d.ts +2 -2
  306. package/dist/vef-table/index.js +3 -3
  307. package/dist/vef-table/props.d.ts +15 -193
  308. package/dist/vef-table/store.d.ts +2 -2
  309. package/dist/vef-table/store.js +2 -2
  310. package/dist/vef-tabs/index.js +1 -1
  311. package/dist/vef-tag/index.js +1 -1
  312. package/dist/vef-temporal-picker/helper.js +1 -1
  313. package/dist/vef-temporal-picker/hooks/use-dayjs-value.d.ts +1 -1
  314. package/dist/vef-temporal-picker/hooks/use-dayjs-value.js +1 -1
  315. package/dist/vef-temporal-picker/hooks/use-temporal-limit.js +1 -1
  316. package/dist/vef-temporal-picker/hooks/use-temporal-picker-instance.js +1 -1
  317. package/dist/vef-temporal-picker/index.js +1 -1
  318. package/dist/vef-temporal-range-picker/helper.js +1 -1
  319. package/dist/vef-temporal-range-picker/hooks/use-dayjs-values.d.ts +1 -1
  320. package/dist/vef-temporal-range-picker/hooks/use-dayjs-values.js +1 -1
  321. package/dist/vef-temporal-range-picker/hooks/use-temporal-limit.js +1 -1
  322. package/dist/vef-temporal-range-picker/hooks/use-temporal-range-picker-instance.js +1 -1
  323. package/dist/vef-temporal-range-picker/index.js +1 -1
  324. package/dist/vef-temporal-range-picker/props.js +1 -1
  325. package/dist/vef-text/index.js +1 -1
  326. package/dist/vef-textarea/hooks/use-textarea-instance.js +1 -1
  327. package/dist/vef-textarea/index.js +1 -1
  328. package/dist/vef-title/index.js +2 -2
  329. package/dist/vef-tooltip/index.d.ts +1 -2
  330. package/dist/vef-tooltip/index.js +2 -2
  331. package/dist/vef-tooltip/props.d.ts +14 -1
  332. package/dist/vef-tree-select/hooks/use-change-handler.d.ts +1 -1
  333. package/dist/vef-tree-select/hooks/use-change-handler.js +1 -1
  334. package/dist/vef-tree-select/hooks/use-data-options.d.ts +1 -1
  335. package/dist/vef-tree-select/hooks/use-data-options.js +1 -1
  336. package/dist/vef-tree-select/hooks/use-tree-select-instance.js +1 -1
  337. package/dist/vef-tree-select/index.js +1 -1
  338. package/dist/vef-virtual-grid/index.d.ts +6 -0
  339. package/dist/vef-virtual-grid/index.js +14 -0
  340. package/dist/vef-virtual-grid/props.d.ts +83 -0
  341. package/dist/vef-virtual-list/index.d.ts +6 -0
  342. package/dist/vef-virtual-list/index.js +20 -0
  343. package/dist/vef-virtual-list/props.d.ts +111 -0
  344. package/package.json +18 -20
  345. package/dist/vef-config-provider/fonts/din/bold.woff2.js +0 -3
  346. package/dist/vef-config-provider/fonts/din/regular.woff2.js +0 -3
  347. package/dist/vef-select/hooks/use-option-render.d.ts +0 -11
  348. package/dist/vef-table/hooks/use-merged-value.d.ts +0 -10
  349. package/dist/vef-table/hooks/use-merged-value.js +0 -3
@@ -0,0 +1,17 @@
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ import{jsxs as r,jsx as o}from"@emotion/react/jsx-runtime";import{css as i}from"@emotion/react";import{themeVariables as e}from"@vef-framework/shared";import t from"../../vef-divider/index.js";import n from"./font-size.js";import a from"./fullscreen.js";import m from"./user-avatar.js";const s=i`
3
+ display: flex;
4
+ align-items: center;
5
+ column-gap: ${e.marginXxs};
6
+
7
+ > div:not(.vef-divider) {
8
+ border-radius: ${e.borderRadius};
9
+ transition: background-color ${e.motionDurationMid} ${e.motionEaseInOut};
10
+
11
+ &:hover {
12
+ cursor: pointer;
13
+ background-color: ${e.colorFillTertiary};
14
+ }
15
+ }
16
+ `,d=()=>r("div",{css:s,children:[o(t,{orientation:"vertical"}),o(n,{}),o(a,{}),o(m,{})]});export{d as default};
17
+ /*! 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,3 @@
1
+ import type { FC } from "react";
2
+ declare const VefHeaderContent: FC;
3
+ export default VefHeaderContent;
@@ -0,0 +1,8 @@
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ import{jsx as e}from"@emotion/react/jsx-runtime";import{css as t}from"@emotion/react";import i from"../../vef-icon-select/index.js";const o=()=>e("div",{css:t`
3
+ display: flex;
4
+ align-items: center;
5
+ justify-content: space-between;
6
+ height: 100%;
7
+ `,children:e("div",{style:{width:300},children:e(i,{})})});export{o as default};
8
+ /*! 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,2 @@
1
+ declare const VefHeader: import("react").NamedExoticComponent<{}>;
2
+ export default VefHeader;
@@ -0,0 +1,14 @@
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ import{jsxs as e,jsx as o}from"@emotion/react/jsx-runtime";import{css as r}from"@emotion/react";import{themeVariables as t,VefIconMenuUnfoldLeft as i,VefIconMenuFoldLeft as n}from"@vef-framework/shared";import{Layout as m}from"antd";import{memo as a}from"react";import d from"../../vef-button/index.js";import c from"../../vef-icon/index.js";import{useLayoutStore as l}from"../store.js";import s from"./header-action-icons.js";import p from"./header-content.js";const{Header:f}=m,h=r`
3
+ --vef-layout-header-height: 60px;
4
+ --vef-layout-header-padding: 0 ${t.paddingSm};
5
+
6
+ line-height: unset;
7
+ background-color: ${t.colorBgContainer};
8
+ border-bottom: ${t.lineWidth} ${t.lineType} ${t.colorBorderSecondary};
9
+ display: grid;
10
+ grid-template-columns: max-content minmax(min-content, 1fr) max-content;
11
+ align-items: center;
12
+ column-gap: ${t.marginSm};
13
+ `,g=a((()=>{const[r,t]=l((e=>[e.siderCollapsed,e.setSiderCollapsed]));return e(f,{css:h,children:[o(d,{color:"default",variant:"text",icon:o(c,{size:"huge",children:o(r?i:n,{})}),onClick:()=>t(!r)}),o(p,{}),o(s,{})]})}));g.displayName="VefHeader";export{g as default};
14
+ /*! 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,13 @@
1
+ import { type MenuItem } from "@vef-framework/shared";
2
+ import { type VefTitleProps } from "./title";
3
+ /**
4
+ * The props of the layout sider component.
5
+ */
6
+ interface VefSiderProps extends VefTitleProps {
7
+ /**
8
+ * The items of the sider.
9
+ */
10
+ items: MenuItem[];
11
+ }
12
+ declare const VefSider: import("react").NamedExoticComponent<VefSiderProps>;
13
+ export default VefSider;
@@ -0,0 +1,51 @@
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ import{jsxs as e,jsx as i}from"@emotion/react/jsx-runtime";import{css as r}from"@emotion/react";import{themeVariables as o}from"@vef-framework/shared";import{Layout as t}from"antd";import{memo as n}from"react";import l from"../../vef-menu/index.js";import m from"../../vef-scroll-area/index.js";import{useLayoutStore as d}from"../store.js";import s from"./title.js";const{Sider:a}=t,f=r`
3
+ border-right: ${o.lineWidth} ${o.lineType} ${o.colorBorderSecondary};
4
+
5
+ > .vef-layout-sider-children {
6
+ --vef-layout-header-height: 60px;
7
+
8
+ display: flex;
9
+ flex-direction: column;
10
+
11
+ .vef-layout-sider-menu {
12
+ flex: auto;
13
+ min-height: 0;
14
+ padding: 6px 0;
15
+
16
+ > div {
17
+ padding: 0 6px;
18
+ }
19
+
20
+ .vef-menu-submenu-title, .vef-menu-item {
21
+ user-select: none;
22
+ }
23
+
24
+ .vef-menu.vef-menu-root.vef-menu-light {
25
+ border-inline-end: none;
26
+
27
+ &.vef-menu-inline-collapsed {
28
+ width: 67px;
29
+ }
30
+
31
+ &.vef-menu-inline {
32
+ .vef-menu-item {
33
+ &.vef-menu-item-selected {
34
+ &::before {
35
+ content: "";
36
+ position: absolute;
37
+ inset-inline-start: 0;
38
+ pointer-events: none;
39
+ width: 0;
40
+ height: calc(${o.fontSize} * 0.8);
41
+ border-inline-start: 4px ${o.lineType} var(--vef-menu-item-selected-color);
42
+ border-radius: var(--vef-menu-item-border-radius);
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ `,p=n((({title:r,logo:o,items:t})=>{const[n,p]=d((e=>[e.siderCollapsed,e.setSiderCollapsed]));return e(a,{collapsible:!0,breakpoint:"lg",collapsed:n,collapsedWidth:80,css:f,theme:"light",trigger:null,width:232,onCollapse:p,children:[i(s,{logo:o,title:r}),i("div",{className:"vef-layout-sider-menu",children:i(m,{scrollbarSize:"small",children:i(l,{inlineExpansion:!0,inlineCollapsed:n,items:t})})})]})}));p.displayName="VefSider";export{p as default};
51
+ /*! 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,16 @@
1
+ import { type ReactNode } from "react";
2
+ /**
3
+ * The props of the layout title component.
4
+ */
5
+ export interface VefTitleProps {
6
+ /**
7
+ * The logo of the layout.
8
+ */
9
+ logo?: ReactNode;
10
+ /**
11
+ * The title of the layout.
12
+ */
13
+ title?: ReactNode;
14
+ }
15
+ declare const VefTitle: import("react").NamedExoticComponent<VefTitleProps>;
16
+ export default VefTitle;
@@ -0,0 +1,38 @@
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ import{jsxs as e,jsx as o}from"@emotion/react/jsx-runtime";import{css as t}from"@emotion/react";import{themeVariables as i,styles as r}from"@vef-framework/shared";import{AnimatePresence as a,motion as n}from"motion/react";import{memo as l}from"react";import d from"../logo.svg.js";import{useLayoutStore as m}from"../store.js";const s=t`
3
+ flex: none;
4
+ height: var(--vef-layout-header-height);
5
+ border-bottom: ${i.lineWidth} ${i.lineType} ${i.colorBorderSecondary};
6
+ display: flex;
7
+ align-items: center;
8
+ gap: ${i.paddingXs};
9
+ padding: 0 ${i.paddingSm};
10
+ overflow: hidden;
11
+ user-select: none;
12
+
13
+ > div {
14
+ flex: none;
15
+ width: 55px;
16
+ height: calc(${i.controlHeight} * 1.2);
17
+ font-size: 0;
18
+ ${r.flexCenter}
19
+
20
+ > img {
21
+ height: 100%;
22
+ width: auto;
23
+ }
24
+ }
25
+
26
+ > h3 {
27
+ flex: auto;
28
+ margin-bottom: 0;
29
+ font-weight: bold;
30
+ font-size: ${i.fontSizeLg};
31
+ color: ${i.colorTextSlate};
32
+ max-width: 156px;
33
+ white-space: nowrap;
34
+ overflow: hidden;
35
+ text-overflow: ellipsis;
36
+ }
37
+ `,c=l((({logo:t,title:i})=>{const r=m((e=>e.siderCollapsed));return e("div",{css:s,children:[o("div",{children:t||o("img",{alt:"VEF",src:d})}),o(a,{initial:!1,children:!r&&o(n.h3,{layout:!0,animate:{opacity:1,x:0},exit:{opacity:0,x:32},initial:{opacity:0,x:-32},transition:{duration:.2,ease:"easeIn"},children:i||"VEF快速开发系统"})})]})}));c.displayName="VefTitle";export{c as default};
38
+ /*! 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,3 @@
1
+ import type { FC } from "react";
2
+ declare const VefUserAvatar: FC;
3
+ export default VefUserAvatar;
@@ -0,0 +1,20 @@
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ import{jsx as e,jsxs as i}from"@emotion/react/jsx-runtime";import{css as o}from"@emotion/react";import{themeVariables as r}from"@vef-framework/shared";import{UserRoundIcon as n,LockKeyholeIcon as t,LogOutIcon as c,UserIcon as l}from"lucide-react";import m from"../../vef-avatar/index.js";import s from"../../vef-dropdown/index.js";import a from"../../vef-icon/index.js";const d=o`
3
+ display: flex;
4
+ align-items: center;
5
+ column-gap: ${r.marginSm};
6
+ padding: ${r.paddingXs};
7
+ `,p=o`
8
+ display: flex;
9
+ flex-direction: column;
10
+ align-items: center;
11
+ row-gap: calc(${r.marginXxs} + 2px);
12
+ user-select: none;
13
+ line-height: 1;
14
+
15
+ > span:last-of-type {
16
+ font-size: ${r.fontSizeSm};
17
+ color: ${r.colorTextDescription};
18
+ }
19
+ `,f=[{type:"item",key:"userInfo",label:"个人信息",icon:e(a,{children:e(n,{})})},{type:"item",key:"passwordModification",label:"修改密码",icon:e(a,{children:e(t,{})})},{type:"item",key:"logout",label:"退出登录",icon:e(a,{children:e(c,{})})}],h=()=>e(s,{items:f,children:i("div",{css:d,children:[e(m,{size:"medium",icon:e(a,{size:"huge",children:e(l,{})})}),i("div",{css:p,children:[e("span",{children:"超管"}),e("span",{children:"[信息科]"})]})]})});export{h as default};
20
+ /*! 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,4 @@
1
+ import type { VefLayoutProps } from "./props";
2
+ declare const VefLayout: import("react").NamedExoticComponent<VefLayoutProps>;
3
+ export type { VefLayoutProps };
4
+ export default VefLayout;
@@ -0,0 +1,7 @@
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ import{jsx as e,jsxs as t}from"@emotion/react/jsx-runtime";import{MailOutlined as i,CalendarOutlined as o,AppstoreOutlined as n,SettingOutlined as l}from"@ant-design/icons";import{css as m}from"@emotion/react";import{Layout as r}from"antd";import{memo as a}from"react";import p from"./components/content.js";import s from"./components/header.js";import y from"./components/sider.js";import{LayoutStoreProvider as c}from"./store.js";const b=m`
3
+ height: 100%;
4
+ min-height: initial;
5
+ overflow: hidden;
6
+ `,d=[{type:"item",key:"1",icon:e(i,{}),label:"Navigation One"},{type:"item",key:"2",icon:e(o,{}),label:"Navigation Two"},{type:"submenu",key:"sub1",label:"Navigation Two",icon:e(n,{}),children:[{type:"item",key:"3",label:"Option 3"},{type:"item",key:"4",label:"Option 4"},{type:"submenu",key:"sub1-2",label:"submenu",children:[{type:"item",key:"5",label:"Option 5"},{type:"item",key:"6",label:"Option 6"}]}]},{key:"sub2",type:"submenu",label:"Navigation Three",icon:e(l,{}),children:[{type:"item",key:"7",label:"Option 7"},{type:"item",key:"8",label:"Option 8"},{type:"item",key:"9",label:"Option 9"},{type:"item",key:"10",label:"Option 10"}]}],h=({logo:i,title:o,menuItems:n=d,children:l})=>t(r,{hasSider:!0,css:b,children:[e(y,{items:n,logo:i,title:o}),t(r,{hasSider:!1,children:[e(s,{}),e(p,{children:l})]})]}),u=a((t=>e(c,{initialState:null,children:e(h,{...t})})));u.displayName="VefLayout";export{u as default};
7
+ /*! 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,3 @@
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ const a="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-hidden%3D%22true%22%20role%3D%22img%22%20preserveAspectRatio%3D%22xMidYMid%20meet%22%20viewBox%3D%2296%2053%20150%20145.63955181855252%22%3E%3Cg%20transform%3D%22translate%2895%2C52.18022155761719%29%22%3E%3Cg%20fill%3D%22%2334435C%22%20hollow-target%3D%22text%22%3E%3Cg%20mask%3D%22url%28%23ab0ea033-fda4-47dc-88f0-22900a4a23a9%29%22%3E%3Cg%3E%3Csvg%20x%3D%220%22%20y%3D%220%22%20width%3D%22150%22%20height%3D%22145.63955181855252%22%20filtersec%3D%22colorsb9343370191%22%20class%3D%22image-svg-svg%20primary%22%20style%3D%22overflow%3A%20visible%3B%22%3E%3Csvg%20viewBox%3D%220%200%20334.1409912109375%20324.4289855957031%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill%3D%22none%22%20pointer-events%3D%22none%22%20d%3D%22M0%200h334.141v324.429H0z%22%3E%3C%2Fpath%3E%3Cpath%20class%3D%22st4%22%20d%3D%22M168.019%2013.483c-83.2%200-150.7%2067.5-150.7%20150.7%200%2083.2%2067.5%20150.7%20150.7%20150.7%2083.2%200%20150.7-67.5%20150.7-150.7%200-83.3-67.5-150.7-150.7-150.7zm0%20241c-49.9%200-90.4-40.5-90.4-90.4%200-49.9%2040.5-90.4%2090.4-90.4%2049.9%200%2090.4%2040.5%2090.4%2090.4%200%2050-40.5%2090.4-90.4%2090.4z%22%20fill%3D%22%23fcc29a%22%3E%3C%2Fpath%3E%3Cpath%20class%3D%22st5%22%20d%3D%22M258.419%20164.083c0%2049.9-40.5%2090.4-90.4%2090.4-49.9%200-90.4-40.5-90.4-90.4%200%2066.6%2054%20120.5%20120.5%20120.5s120.5-54%20120.5-120.5c0-83.2-67.5-150.7-150.7-150.7-83.2%200-150.7%2067.5-150.7%20150.7%200-66.6%2054-120.5%20120.5-120.5%2066.7%200%20120.7%2054%20120.7%20120.5%22%20fill%3D%22%233498db%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E%3C%2Fsvg%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2843.244998931884766%2C52.94477844238281%29%22%3E%3Cg%20data-gra%3D%22path-name%22%3E%3Cg%20transform%3D%22scale%281%29%22%3E%3Cg%3E%3Cpath%20d%3D%22M31.8-21.32L31.8-21.32Q31.8-17.56%2030.83-14.54%2029.86-11.52%2028.13-9.17%2026.4-6.82%2024.01-5.13%2021.62-3.44%2018.77-2.35%2015.93-1.26%2012.72-0.74%209.51-0.21%206.12-0.21L6.12-0.21Q4.86-0.21%203.65-0.28%202.44-0.35%201.18-0.48L1.18-0.48%201.93-36.52Q4.89-37.46%208.02-37.85%2011.15-38.24%2014.23-38.24L14.23-38.24Q18.07-38.24%2021.3-37.09%2024.52-35.93%2026.86-33.76%2029.19-31.58%2030.49-28.44%2031.8-25.3%2031.8-21.32ZM20.79-19.23L20.79-19.6Q20.81-21.05%2020.48-22.4%2020.14-23.74%2019.38-24.77%2018.61-25.81%2017.43-26.44%2016.25-27.07%2014.61-27.12L14.61-27.12%2013.54-10.47Q15.15-10.72%2016.46-11.53%2017.78-12.35%2018.73-13.55%2019.69-14.74%2020.21-16.21%2020.73-17.67%2020.79-19.23L20.79-19.23ZM64.69-25.83L64.69-25.83Q64.69-23.23%2063.92-21.22%2063.14-19.2%2061.78-17.7%2060.42-16.19%2058.6-15.15%2056.77-14.1%2054.69-13.44%2052.61-12.78%2050.38-12.47%2048.15-12.17%2046-12.14L46-12.14%2046%200.38%2033.49%200.38Q33.49-5.77%2033.52-11.87%2033.54-17.97%2033.6-24.17L33.6-24.17Q33.65-27.45%2033.62-30.72%2033.6-34%2033.76-37.33L33.76-37.33Q37.19-38.35%2040.63-38.86%2044.07-39.37%2047.72-39.37L47.72-39.37Q49.79-39.37%2051.86-39.03%2053.93-38.7%2055.82-37.97%2057.71-37.25%2059.34-36.16%2060.96-35.07%2062.14-33.57%2063.33-32.07%2064.01-30.15%2064.69-28.23%2064.69-25.83ZM52.77-24.92L52.77-24.92Q52.77-26.67%2051.71-27.65%2050.65-28.63%2048.96-28.63L48.96-28.63Q48.39-28.63%2047.79-28.53%2047.19-28.44%2046.65-28.31L46.65-28.31%2046.33-20.46Q46.7-20.41%2047.05-20.41%2047.4-20.41%2047.78-20.41L47.78-20.41Q48.74-20.41%2049.64-20.73%2050.54-21.05%2051.24-21.66%2051.94-22.26%2052.35-23.08%2052.77-23.9%2052.77-24.92Z%22%20transform%3D%22translate%28-1.1800000667572021%2C%2039.369998931884766%29%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E";export{a as default};
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,19 @@
1
+ import type { ChildrenProps, MenuItem } from "@vef-framework/shared";
2
+ import type { ReactNode } from "react";
3
+ /**
4
+ * The props of the VefLayout component.
5
+ */
6
+ export interface VefLayoutProps extends Required<ChildrenProps> {
7
+ /**
8
+ * The logo of the system.
9
+ */
10
+ logo?: ReactNode;
11
+ /**
12
+ * The title of the system.
13
+ */
14
+ title?: ReactNode;
15
+ /**
16
+ * The menu items of the system.
17
+ */
18
+ menuItems?: MenuItem[];
19
+ }
@@ -0,0 +1,16 @@
1
+ import { type Consumer } from "@vef-framework/shared";
2
+ /**
3
+ * The state of the layout component.
4
+ */
5
+ export interface LayoutState {
6
+ /**
7
+ * Whether the sider is collapsed.
8
+ */
9
+ siderCollapsed: boolean;
10
+ /**
11
+ * The callback function when the sider is collapsed.
12
+ */
13
+ setSiderCollapsed: Consumer<boolean>;
14
+ }
15
+ declare const LayoutStoreProvider: import("react").FC<import("@vef-framework/shared").StoreProviderProps<import("@vef-framework/shared").MaybeNull<Partial<LayoutState>>>>, useLayoutStore: <T>(selector: import("@vef-framework/shared").Mapper<LayoutState, T>) => T, useLayoutStoreApi: () => import("zustand").StoreApi<LayoutState>;
16
+ export { LayoutStoreProvider, useLayoutStore, useLayoutStoreApi, };
@@ -0,0 +1,3 @@
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ import{createComponentStore as e}from"@vef-framework/shared";import{createStore as r}from"zustand";const{StoreProvider:o,useStore:t,useStoreApi:s}=e("vef-layout",(function(){return r((e=>({siderCollapsed:!1,setSiderCollapsed:r=>e({siderCollapsed:r})})))}));export{o as LayoutStoreProvider,t as useLayoutStore,s as useLayoutStoreApi};
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 */
@@ -1,4 +1,4 @@
1
- /*! VefFramework version: 1.0.8, build time: 2024-12-10T13:58:46.329Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{jsx as e}from"@emotion/react/jsx-runtime";import{css as r}from"@emotion/react";import{themeVariables as o,styles as i}from"@vef-framework/shared";import t from"../vef-spin/index.js";const m=r`
3
3
  height: 100%;
4
4
  padding: ${o.paddingLg};
@@ -1,20 +1,22 @@
1
- /*! VefFramework version: 1.0.8, build time: 2024-12-10T13:58:46.329Z, made by Venus. */
2
- import{jsx as e,jsxs as i}from"@emotion/react/jsx-runtime";import{UserOutlined as t,LockOutlined as r}from"@ant-design/icons";import{css as o}from"@emotion/react";import{themeVariables as n,bmq as l,encryptRsa as s,showSuccessMessage as a,getTodayString as c,styles as d}from"@vef-framework/shared";import{useCallback as p,useState as m,useEffect as g}from"react";import f from"../vef-flex/index.js";import u from"../vef-form/index.js";import{isRequired as h}from"../vef-form/validation-rules.js";import v from"../vef-text/index.js";import x from"../vef-title/index.js";import b from"./login-icon.js";const y=o`
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ import{jsx as e,jsxs as i}from"@emotion/react/jsx-runtime";import{UserOutlined as t,LockOutlined as r}from"@ant-design/icons";import{css as o}from"@emotion/react";import{themeVariables as n,bmq as l,encryptRsa as s,showSuccessMessage as a,getTodayString as c,styles as d}from"@vef-framework/shared";import{useCallback as p,useState as m,useEffect as g}from"react";import f from"../vef-flex/index.js";import h from"../vef-form/index.js";import{isRequired as u}from"../vef-form/validation-rules.js";import v from"../vef-text/index.js";import x from"../vef-title/index.js";import b from"./login-icon.js";const y=o`
3
3
  position: relative;
4
4
  height: 100%;
5
+ overflow: hidden;
5
6
 
6
7
  .vef-typography {
7
8
  --vef-typography-title-margin-bottom: 0.2em;
8
9
  }
9
10
  `,$=o`
10
- padding-top: calc(${n.paddingXl} * 4);
11
+ flex: none;
12
+ padding-top: calc(${n.paddingXl} * 3);
11
13
  text-align: center;
12
- `,j=o`
14
+ `,w=o`
13
15
  position: absolute;
14
16
  top: 0;
15
17
  left: 0;
16
18
  padding: ${n.padding};
17
- `,w=o`
19
+ `,j=o`
18
20
  flex: 1;
19
21
  height: 100%;
20
22
  display: none;
@@ -23,8 +25,9 @@ import{jsx as e,jsxs as i}from"@emotion/react/jsx-runtime";import{UserOutlined a
23
25
  display: flex;
24
26
  }
25
27
  `,k=o`
26
- flex: 1;
27
- width: 50%;
28
+ flex: auto;
29
+ min-height: 0;
30
+ width: 40%;
28
31
  `,I=o`
29
32
  position: relative;
30
33
  height: 100%;
@@ -49,5 +52,5 @@ import{jsx as e,jsxs as i}from"@emotion/react/jsx-runtime";import{UserOutlined a
49
52
  top: ${n.margin};
50
53
  right: ${n.margin};
51
54
  left: ${n.margin};
52
- `,F=[{key:"default",rows:[{key:"1",columns:[{key:"1",items:[{name:"account",type:"Input",placeholder:"账号",prefix:e(t,{}),rules:[h("请输入账号")]},{name:"password",type:"Input",placeholder:"密码",prefix:e(r,{}),rules:[h("请输入密码")]}]}]}]}];function X(e,i){return s(e,i)}const A=({logo:t,title:r="VEF 中后台管理系统",description:o="一款极度快速的超能系统",loginApi:n,publicKey:l,onLoginSuccess:s})=>{const h=p((e=>l?{...e,password:X(e.password,l)}:e),[l]),A=p((({message:e,data:i})=>{a(e),s(i)}),[s]),[C,E]=m(c());return g((()=>{const e=setInterval((()=>{E(c())}),1e3);return()=>{clearInterval(e)}}),[]),i(f,{css:y,justify:"center",children:[t&&e("div",{css:j,children:t}),i(f,{vertical:!0,align:"center",css:w,children:[i("div",{css:$,children:[e(x,{children:r}),e(v,{children:o})]}),e("div",{css:[k,d.flexCenter],children:e(b,{})})]}),i(f,{vertical:!0,css:I,justify:"center",children:[i("div",{css:B,children:[e(v,{color:"secondary",children:"🕰️ 今天是 "}),e(v,{bold:!0,color:"green",children:C})]}),e(x,{level:2,children:"身份认证 🔑"}),e(v,{color:"secondary",children:"请输入您的账号和密码进行登录"}),e(u,{labelPosition:"left",resetButton:!1,scene:"login",schema:F,size:"large",submitApi:n,submitTip:"登录中...",submissionButton:{text:"登录",block:!0},onBeforeSubmit:h,onSubmitSuccess:A}),e("div",{css:S,children:i(v,{color:"secondary",children:["Copyright ©"," ",(new Date).getFullYear()," ","VEF."]})})]})]})};export{A as default};
55
+ `,F=[{key:"default",rows:[{key:"1",columns:[{key:"1",items:[{name:"account",type:"Input",placeholder:"账号",prefix:e(t,{}),rules:[u("请输入账号")]},{name:"password",type:"Input",placeholder:"密码",prefix:e(r,{}),rules:[u("请输入密码")]}]}]}]}];function X(e,i){return s(e,i)}const A=({logo:t,title:r="VEF 中后台管理系统",description:o="一款极度快速的超能系统",loginApi:n,publicKey:l,onLoginSuccess:s})=>{const u=p((e=>l?{...e,password:X(e.password,l)}:e),[l]),A=p((({message:e,data:i})=>{a(e),s(i)}),[s]),[C,E]=m(c());return g((()=>{const e=setInterval((()=>{E(c())}),1e3);return()=>{clearInterval(e)}}),[]),i(f,{css:y,justify:"center",children:[t&&e("div",{css:w,children:t}),i(f,{vertical:!0,align:"center",css:j,children:[i("div",{css:$,children:[e(x,{children:r}),e(v,{children:o})]}),e("div",{css:[k,d.flexCenter],children:e(b,{})})]}),i(f,{vertical:!0,css:I,justify:"center",children:[i("div",{css:B,children:[e(v,{color:"secondary",children:"🕰️ 今天是 "}),e(v,{bold:!0,color:"green",children:C})]}),e(x,{level:2,children:"身份认证 🔑"}),e(v,{color:"secondary",children:"请输入您的账号和密码进行登录"}),e(h,{labelPosition:"left",resetButton:!1,scene:"login",schema:F,size:"large",submitApi:n,submitTip:"登录中...",submissionButton:{text:"登录",block:!0},onBeforeSubmit:u,onSubmitSuccess:A}),e("div",{css:S,children:i(v,{color:"secondary",children:["Copyright ©"," ",(new Date).getFullYear()," ","VEF."]})})]})]})};export{A as default};
53
56
  /*! 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 */
@@ -1,4 +1,4 @@
1
- import type { SVGProps } from "react";
1
+ import { type SVGProps } from "react";
2
2
  declare function SvgLoginIcon(props: SVGProps<SVGSVGElement>): import("@emotion/react/jsx-runtime").JSX.Element;
3
3
  declare const Memo: import("react").MemoExoticComponent<typeof SvgLoginIcon>;
4
4
  export default Memo;
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.8, build time: 2024-12-10T13:58:46.329Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{jsxs as l,jsx as c}from"@emotion/react/jsx-runtime";import{memo as i}from"react";const h=i((function(i){return l("svg",{viewBox:"0 0 700 700",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...i,children:[l("defs",{children:[c("clipPath",{id:"login-icon_svg__u",children:c("use",{xlinkHref:"#login-icon_svg__c"})}),c("clipPath",{id:"login-icon_svg__v",children:c("use",{xlinkHref:"#login-icon_svg__d"})}),c("clipPath",{id:"login-icon_svg__w",children:c("use",{xlinkHref:"#login-icon_svg__e"})}),c("clipPath",{id:"login-icon_svg__x",children:c("use",{xlinkHref:"#login-icon_svg__f"})}),c("clipPath",{id:"login-icon_svg__y",children:c("use",{xlinkHref:"#login-icon_svg__g"})}),c("clipPath",{id:"login-icon_svg__z",children:c("use",{xlinkHref:"#login-icon_svg__h"})}),c("clipPath",{id:"login-icon_svg__A",children:c("use",{xlinkHref:"#login-icon_svg__i"})}),c("clipPath",{id:"login-icon_svg__B",children:c("use",{xlinkHref:"#login-icon_svg__j"})}),c("path",{d:"M311.3 464.9v29.6h9.8v-26.6c-3.5-2.6-7.1-3.1-9.8-3",id:"login-icon_svg__c"}),c("path",{d:"M333.9 319.5s11.1-4 27.7 0 26.5 20.5 27 33.8c.6 13.3-5.4 95.3-27.4 116.1-21.9 20.7-77.3 10.5-88.6 6.2S253 454.2 253 454.2l56.7-40.3 3-86.5z",id:"login-icon_svg__d"}),c("path",{d:"m296.9 315.3-1.3-.1s-13.8.4-18.2 5.8c-4.3 5.4-7.3 30.5-7.3 30.5l8.6 64.5s5.2 9.1 31.4 9.1 36.5-10.7 36.5-10.7l-2.4-30.2s4.4-6.8 5.1-14.2c.7-7.3-6.5-46.4-14.3-52.1s-25.2-3.2-25.2-3.2z",id:"login-icon_svg__e"}),c("path",{d:"m280.3 414.8-1.6 1.2s-47.1 15.2-51.5 29.5 2.6 96.3 2.6 96.3 12.8 10.1 24.1-1l.9-76.6 47.6-17.6 13.8.4s16.5-11.8 17.5-12.6 14-10.1 14-10.1l-8-13.2z",id:"login-icon_svg__f"}),c("path",{d:"M313.8 422.3s-24.9 21.2-27 36.9 0 84.8 0 84.8 16.1 10.7 27 0c0 0-4.5-63.1 5.2-73.8s26.8-20.4 28.9-36.3-1.2-19.6-1.2-19.6l-16.5-2.7z",id:"login-icon_svg__g"}),c("path",{d:"M295.2 301.4s2.3 4.7.4 13.8c0 0 1.4 4.4 6.5 4.3s7.6-4.9 7.6-4.9-2.4-3.9-1.4-12.1l.1-3.1-6.4-4.3z",id:"login-icon_svg__h"}),c("path",{d:"M280.7 276.4s-13.1-.5-5.8-26.9c0 0 6.7 5.1 18.7 5.8s25.3.4 27 21.7c.7 13.8-12.2 25.6-12.2 25.6l-11.7-7.4z",id:"login-icon_svg__i"}),c("path",{d:"M280.1 273.1s-3.6 30 7.4 31.7 18.3-10.9 18.3-10.9 5.5-.7 5-6.5c-.6-5.8-4.9-3.6-4.9-3.6s-4.9-2.1-4.8-7.3c0 0-5.9 1.4-8.6-4.1 0 0-4.5 3.1-9-1.7 0 0-1.2 2.8-3.4 2.4",id:"login-icon_svg__j"}),l("linearGradient",{id:"login-icon_svg__a",children:[c("stop",{offset:0,stopColor:"#b0d8ff"}),c("stop",{offset:.015,stopColor:"#b3d9ff"}),c("stop",{offset:.145,stopColor:"#c4e1ff"}),c("stop",{offset:.301,stopColor:"#d1e7ff"}),c("stop",{offset:.512,stopColor:"#d8eaff"}),c("stop",{offset:1,stopColor:"#daebff"})]}),c("linearGradient",{gradientUnits:"userSpaceOnUse",id:"login-icon_svg__k",x1:128.383,x2:131.427,xlinkHref:"#login-icon_svg__a",y1:74.959,y2:390.046}),l("linearGradient",{gradientTransform:"rotate(-2.292 542.315 401.673)",gradientUnits:"userSpaceOnUse",id:"login-icon_svg__l",x1:101.309,x2:101.309,y1:417.977,y2:484.522,children:[c("stop",{offset:.366,stopColor:"#86cf94"}),c("stop",{offset:.989,stopColor:"#008166"})]}),c("linearGradient",{gradientUnits:"userSpaceOnUse",id:"login-icon_svg__m",x1:391.539,x2:391.539,xlinkHref:"#login-icon_svg__a",y1:112.999,y2:364.581})]}),c("path",{d:"M557.1 189.1h36.4v46.6h-36.4z",fill:"#b0d8ff"}),c("path",{d:"M559.3 191.2h32v42.3h-32z",fill:"#fff"}),c("path",{d:"M595.9 148.7h61.2v75.8h-61.2z",fill:"#b0d8ff"}),c("path",{d:"M599.5 152.1h54.1v69h-54.1z",fill:"#fff"}),c("path",{d:"M247.3 367.5H17c-3 0-5.4-2.4-5.4-5.4V122.3c0-3 2.4-5.4 5.4-5.4h230.3c3 0 5.4 2.4 5.4 5.4v239.8c0 3-2.4 5.4-5.4 5.4",fill:"#b0d8ff"}),c("path",{d:"M243.4 367.5H16.7c-2.8 0-5-2.3-5-5V126.3c0-2.8 2.3-5 5-5h226.7c2.8 0 5 2.3 5 5v236.2c0 2.7-2.2 5-5 5",fill:"url(#login-icon_svg__k)"}),c("path",{d:"M237.9 177.9H23.6c-1 0-1.7-.8-1.7-1.7v-42.6c0-1 .8-1.7 1.7-1.7h214.3c1 0 1.7.8 1.7 1.7v42.6c.1.9-.7 1.7-1.7 1.7",fill:"#d5e1f7"}),c("path",{d:"M236.7 176.7H22.4c-1 0-1.7-.8-1.7-1.7v-42.6c0-1 .8-1.7 1.7-1.7h214.3c1 0 1.7.8 1.7 1.7V175c.1.9-.7 1.7-1.7 1.7",fill:"#fff"}),c("path",{d:"M238.1 359.7H23.7c-1 0-1.7-.8-1.7-1.7v-42.6c0-1 .8-1.7 1.7-1.7H238c1 0 1.7.8 1.7 1.7V358c.1.9-.7 1.7-1.6 1.7",fill:"#d5e1f7"}),c("path",{d:"M236.7 358H22.4c-1 0-1.7-.8-1.7-1.7v-42.6c0-1 .8-1.7 1.7-1.7h214.3c1 0 1.7.8 1.7 1.7v42.6c.1.9-.7 1.7-1.7 1.7",fill:"#fff"}),c("path",{d:"M93.5 324.7H31.4c-1.8 0-3.2-1.4-3.2-3.2s1.4-3.2 3.2-3.2h62.1c1.8 0 3.2 1.4 3.2 3.2s-1.4 3.2-3.2 3.2M230.4 339.8h-199c-1.8 0-3.2-1.4-3.2-3.2s1.4-3.2 3.2-3.2h199c1.8 0 3.2 1.4 3.2 3.2s-1.5 3.2-3.2 3.2",fill:"#d5e1f7"}),c("path",{d:"M232.2 351.6H29.5c-.7 0-1.3-.6-1.3-1.3v-3.7c0-.7.6-1.3 1.3-1.3h202.7c.7 0 1.3.6 1.3 1.3v3.7c.1.7-.5 1.3-1.3 1.3",fill:"#ebf5ff"}),c("path",{d:"M21.9 305V186.9c0-.7.6-1.3 1.3-1.3h43.5c.7 0 1.3.6 1.3 1.3V305c0 .7-.6 1.3-1.3 1.3H23.2c-.7 0-1.3-.6-1.3-1.3",fill:"#d5e1f7"}),c("path",{d:"M21 303.4V185.3c0-.7.6-1.3 1.3-1.3h43.5c.7 0 1.3.6 1.3 1.3v118.2c0 .7-.6 1.3-1.3 1.3H22.3c-.8-.1-1.3-.7-1.3-1.4",fill:"#fff"}),c("path",{d:"M78.1 303.9V188c0-1.3 1.1-2.4 2.4-2.4h157.3c1.3 0 2.4 1.1 2.4 2.4v115.9c0 1.3-1.1 2.4-2.4 2.4H80.5c-1.3 0-2.4-1.1-2.4-2.4",fill:"#d5e1f7"}),c("path",{d:"M76.3 302.3V186.4c0-1.3 1.1-2.4 2.4-2.4H236c1.3 0 2.4 1.1 2.4 2.4v115.9c0 1.3-1.1 2.4-2.4 2.4H78.7c-1.3 0-2.4-1.1-2.4-2.4",fill:"#fff"}),c("path",{d:"M130.9 195.4h-47c-.7 0-1.3-.6-1.3-1.3v-3.9c0-.7.6-1.3 1.3-1.3h47c.7 0 1.3.6 1.3 1.3v3.9c-.1.7-.6 1.3-1.3 1.3",fill:"#00d967"}),c("path",{d:"M229.8 210.5H83.9c-.7 0-1.3-.6-1.3-1.3v-3.8c0-.7.6-1.3 1.3-1.3h145.9c.7 0 1.3.6 1.3 1.3v3.8c0 .7-.6 1.3-1.3 1.3",fill:"#d5e1f7"}),c("path",{d:"M229.8 222.3H83.9c-.7 0-1.3-.6-1.3-1.3v-3.8c0-.7.6-1.3 1.3-1.3h145.9c.7 0 1.3.6 1.3 1.3v3.8c0 .7-.6 1.3-1.3 1.3",fill:"#ebf5ff"}),c("path",{d:"M130.9 234h-47c-.7 0-1.3-.6-1.3-1.3v-3.9c0-.7.6-1.3 1.3-1.3h47c.7 0 1.3.6 1.3 1.3v3.9c-.1.8-.6 1.3-1.3 1.3",fill:"#00d967"}),c("path",{d:"M229.8 249.1H83.9c-.7 0-1.3-.6-1.3-1.3V244c0-.7.6-1.3 1.3-1.3h145.9c.7 0 1.3.6 1.3 1.3v3.8c0 .8-.6 1.3-1.3 1.3",fill:"#d5e1f7"}),c("path",{d:"M229.8 260.9H83.9c-.7 0-1.3-.6-1.3-1.3v-3.8c0-.7.6-1.3 1.3-1.3h145.9c.7 0 1.3.6 1.3 1.3v3.8c0 .7-.6 1.3-1.3 1.3",fill:"#ebf5ff"}),c("path",{d:"M130.9 272.7h-47c-.7 0-1.3-.6-1.3-1.3v-3.9c0-.7.6-1.3 1.3-1.3h47c.7 0 1.3.6 1.3 1.3v3.9c-.1.7-.6 1.3-1.3 1.3",fill:"#00d967"}),c("path",{d:"M229.8 287.8H83.9c-.7 0-1.3-.6-1.3-1.3v-3.8c0-.7.6-1.3 1.3-1.3h145.9c.7 0 1.3.6 1.3 1.3v3.8c0 .7-.6 1.3-1.3 1.3",fill:"#d5e1f7"}),c("path",{d:"M229.8 299.6H83.9c-.7 0-1.3-.6-1.3-1.3v-3.8c0-.7.6-1.3 1.3-1.3h145.9c.7 0 1.3.6 1.3 1.3v3.8c0 .7-.6 1.3-1.3 1.3",fill:"#ebf5ff"}),c("path",{d:"M61.8 225.8h-36c-1 0-1.8-.8-1.8-1.8v-33.1c0-1 .8-1.8 1.8-1.8h36c1 0 1.8.8 1.8 1.8V224c.1 1-.7 1.8-1.8 1.8M61.8 269.3h-36c-1 0-1.8-.8-1.8-1.8v-33.1c0-1 .8-1.8 1.8-1.8h36c1 0 1.8.8 1.8 1.8v33.1c.1 1-.7 1.8-1.8 1.8M124.5 172.2H80.4c-1 0-1.8-.8-1.8-1.8v-9.9c0-1 .8-1.8 1.8-1.8h44.1c1 0 1.8.8 1.8 1.8v9.9c0 .9-.8 1.8-1.8 1.8M71.3 172.2h-44c-1 0-1.8-.8-1.8-1.8v-9.9c0-1 .8-1.8 1.8-1.8h44.1c1 0 1.8.8 1.8 1.8v9.9c0 .9-.8 1.8-1.9 1.8M178.1 172.2H134c-1 0-1.8-.8-1.8-1.8v-9.9c0-1 .8-1.8 1.8-1.8h44.1c1 0 1.8.8 1.8 1.8v9.9c.1.9-.8 1.8-1.8 1.8M231.8 172.2h-44.1c-1 0-1.8-.8-1.8-1.8v-9.9c0-1 .8-1.8 1.8-1.8h44.1c1 0 1.8.8 1.8 1.8v9.9c0 .9-.8 1.8-1.8 1.8M231.6 154H26.1c-1.1 0-2-.9-2-2v-14.9c0-1.1.9-2 2-2h205.5c1.1 0 2 .9 2 2V152c0 1.1-.9 2-2 2",fill:"#daebff"}),c("ellipse",{cx:256.5,cy:565.8,fill:"#e2eefa",rx:64.2,ry:17.3}),c("ellipse",{cx:98.2,cy:538.9,fill:"#e2eefa",rx:30.8,ry:9.6}),c("ellipse",{cx:315.6,cy:545.4,fill:"#e2eefa",rx:52.8,ry:13}),c("ellipse",{cx:613.8,cy:523.6,fill:"#e2eefa",rx:83.2,ry:9.1}),c("ellipse",{cx:450.3,cy:569.4,fill:"#e2eefa",rx:24,ry:7.5}),c("path",{d:"M3 495.3h657v4.4H3z",fill:"#d3e2f9"}),c("path",{d:"M692.3 523.9H537.5c-1.9 0-3.4-1.5-3.4-3.4V261.1c0-1.9 1.5-3.4 3.4-3.4h154.8c1.9 0 3.4 1.5 3.4 3.4v259.4c.1 1.9-1.5 3.4-3.4 3.4",fill:"#d1e3ff"}),c("path",{d:"M548.9 452.9H615v55.7h-66.1z",fill:"#e3eeff"}),c("path",{d:"M614.9 452.9h65.5v55.7h-65.5z",fill:"#e3eeff"}),c("path",{d:"M548.9 271.8h131.6V320H548.9zM548.9 332.2h131.6v48.2H548.9zM548.9 392.6h131.6v48.2H548.9z",fill:"#f5fcff"}),c("ellipse",{cx:600.6,cy:469.5,fill:"#d1e3ff",rx:4.7,ry:4.4}),c("ellipse",{cx:630.1,cy:469.5,fill:"#d1e3ff",rx:4.7,ry:4.4}),l("g",{stroke:"#b6d4ff",strokeMiterlimit:10,children:[c("path",{d:"M552.2 282.6h11v36.7h-11zM563.2 282.6h11v36.7h-11zM574.3 282.6h11v36.7h-11zM585.3 282.6h11v36.7h-11zM596.3 282.6h11v36.7h-11zM617.3 343.4h11v36.7h-11zM628.3 343.4h11v36.7h-11zM600.847 359.237v10.5h-38.6v-10.5zM604.526 348.701v10.5h-38.6v-10.5z",fill:"#d1e3ff",strokeWidth:.221}),c("path",{d:"M605.166 369.676v10.5h-38.6v-10.5zM639.3 343.4h11v36.7h-11zM650.3 343.4h11v36.7h-11zM661.3 343.4h11v36.7h-11zM560.1 404h11v36.7h-11zM571.1 404h11v36.7h-11zM582.1 404h11v36.7h-11zM593.1 404h11v36.7h-11zM604.1 404h11v36.7h-11zM631.3 316.4l-10.4 3.6-13.4-34.5 10.4-3.6zM643.1 316.4l-10.3 3.6-13.4-34.5 10.3-3.6z",fill:"#d1e3ff",strokeWidth:.221}),c("path",{d:"m664.9 313-8.8 6.3-23.3-29.3 8.8-6.3z",fill:"#d1e3ff",strokeWidth:.221}),c("ellipse",{cx:649,cy:414.6,fill:"#d1e3ff",rx:16.5,ry:15.7,strokeWidth:.221}),c("path",{d:"M649 433.5c-11 0-19.9-8.5-19.9-18.9s8.9-18.9 19.9-18.9",fill:"none",strokeWidth:.515}),c("path",{d:"M636.5 437.6h23.9v3.1h-23.9z",fill:"#d1e3ff",strokeWidth:.221}),c("path",{d:"M647.5 429.3h1.6v9h-1.6z",fill:"#d1e3ff",strokeWidth:.221})]}),c("path",{d:"M115.1 499.1s23.9-1.3 23.9-6.1c0-3.8-14.6-.6-14.6-.6s16-4.6 23.3-8.4c1.6-.8 3.3-1.7 4.4-3.2 1.1-1.4 1.6-3.5.7-5.1-1.2-2.1-4.2-2.3-6.7-2-9.8 1.2-16.7 6.4-25.6 10.9 6.5-3.3 12.2-7.4 17.6-12.2 5-4.4 10.7-8.6 14-14.5 2.1-3.7 2.9-9.2-.8-12.3-3.6-3-8.7-1.6-12.6-.2-10.5 3.7-19.7 11-25.7 20.3 1.6-4.4 2.8-8.8 3.6-13.4.3-1.8.5-4.1-1-5.2-2-1.4-4.6.5-6.1 2.3-3.7 4.5-6.5 9.8-8.3 15.4 1.2-12.5 2.4-25.3-.3-37.6-.6-2.8-1.5-5.6-3.2-7.9-1.8-2.3-4.6-3.9-7.4-3.6-2.7.3-4.9 2.2-6.8 4.2-5.9 6.5-9.3 15.2-9.5 24s2.8 17.6 8.3 24.4c-2.9-3.1-6.2-5.7-9.8-8-.8-.5-2-.9-2.6-.2-.3.4-.3.9-.3 1.4.5 6 4.5 10.9 8.4 15.5-7.8-9-19.9-14.1-31.8-13.2-1.4.1-3.1.4-3.8 1.7-.4.7-.4 1.6-.4 2.4.6 6 5.9 10.3 11.1 13.3 4.4 2.6 8.9 4.7 13.5 6.8-2.6-.4-5.3-.5-7.9-.3-.6 0-1.3.1-1.6.6-.7.9.3 2.1 1.2 2.8 6.6 4.8 15 7.1 23.1 6.5",fill:"#00d967"}),c("path",{d:"M142.2 454.6c.3-.2.6.3.3.5-7.6 5.7-14.6 12.2-20.8 19.4-6.3 7.3-11.3 15.2-16.2 23.4-.2.3-.6.1-.5-.3 8.2-17.1 22-32 37.2-43m-34.3 6.1c-4.4 11.2-7 25.2-6.1 37.3 0 .3.5.3.5 0 .2-12.1 2-25.6 6.3-37 0-.4-.6-.6-.7-.3m-15.2-24.6c-2.1 20.5-.4 42.4 5.1 62.2.1.3.6.2.5-.2-2.1-10.4-4-20.8-4.8-31.4-.8-10.2-.7-20.4-.4-30.6 0-.2-.3-.2-.4 0m-18.5 30.6c6.2 8.7 13 24.9 21.1 32 .3.3.7-.2.5-.5-7.3-8-14.5-23.1-21-31.8-.3-.3-.8 0-.6.3m66.4 13.5c-12.2 5.5-24.8 12-35.2 20.6-.3.3 0 .8.4.6 11.4-7.6 22.4-15 35-20.7.2-.1.1-.6-.2-.5m-76-1.5c8.9 5.3 18.4 16.7 28.1 20.4.3.1.6-.3.2-.5-9.4-4.6-19-15.2-28.1-20.4-.2-.1-.5.4-.2.5",fill:"url(#login-icon_svg__l)",opacity:.45}),c("path",{d:"M75.9 497.7h52v43.5h-52z",fill:"#b0d8ff"}),c("path",{d:"M117.7 497.7h10.2v43.5h-10.2z",fill:"#daebff"}),c("path",{d:"M511.9 340.1H275.6c-2.6 0-4.8-2.1-4.8-4.8V150.9c0-2.6 2.1-4.8 4.8-4.8h236.3c2.6 0 4.8 2.1 4.8 4.8v184.4c-.1 2.6-2.2 4.8-4.8 4.8",fill:"#b0d8ff"}),c("path",{d:"M507.6 340.1H275.5c-2.6 0-4.7-2.1-4.7-4.7V155.5c0-2.6 2.1-4.7 4.7-4.7h232.1c2.6 0 4.7 2.1 4.7 4.7v179.9c-.1 2.6-2.2 4.7-4.7 4.7",fill:"url(#login-icon_svg__m)"}),c("path",{d:"M340 170.4h-27.1c-.9 0-1.7-.9-1.7-2s.8-2 1.7-2H340c.9 0 1.7.9 1.7 2s-.7 2-1.7 2",fill:"#00d967"}),c("path",{d:"M366.5 188.2h-46c-.9 0-1.7-.9-1.7-2s.8-2 1.7-2h46c.9 0 1.7.9 1.7 2 0 1.2-.8 2-1.7 2",fill:"#006dfe"}),c("path",{d:"M385 188.2h70.1c.9 0 1.7-.9 1.7-2s-.8-2-1.7-2H385c-.9 0-1.7.9-1.7 2 0 1.2.8 2 1.7 2",fill:"#00d967"}),c("path",{d:"M366.5 206.1h-46c-.9 0-1.7-.9-1.7-2s.8-2 1.7-2h46c.9 0 1.7.9 1.7 2s-.8 2-1.7 2",fill:"#006dfe"}),c("path",{d:"M358.9 223.9h-46c-.9 0-1.7-.9-1.7-2s.8-2 1.7-2h46c.9 0 1.7.9 1.7 2s-.8 2-1.7 2",fill:"#00d967"}),c("path",{d:"M456.4 223.9h-78.9c-.9 0-1.7-.9-1.7-2s.8-2 1.7-2h78.9c.9 0 1.7.9 1.7 2s-.8 2-1.7 2M406.2 206.1H383c-.9 0-1.7-.9-1.7-2s.8-2 1.7-2h23.2c.9 0 1.7.9 1.7 2s-.7 2-1.7 2M447 206.1h-23.2c-.9 0-1.7-.9-1.7-2s.8-2 1.7-2H447c.9 0 1.7.9 1.7 2s-.8 2-1.7 2M343.7 241.8h-30.2c-.9 0-1.7-.9-1.7-2s.8-2 1.7-2h30.2c.9 0 1.7.9 1.7 2s-.8 2-1.7 2",fill:"#006dfe"}),c("path",{d:"M406.3 241.8h-46c-.9 0-1.7-.9-1.7-2s.8-2 1.7-2h46c.9 0 1.7.9 1.7 2s-.8 2-1.7 2",fill:"#00d967"}),c("path",{d:"M439.8 241.8h-17.2c-.9 0-1.7-.9-1.7-2s.8-2 1.7-2h17.2c.9 0 1.7.9 1.7 2s-.7 2-1.7 2M372.1 259.6h-26.9c-.9 0-1.7-.9-1.7-2s.8-2 1.7-2h26.9c.9 0 1.7.9 1.7 2s-.7 2-1.7 2M436.5 259.6h-46c-.9 0-1.7-.9-1.7-2s.8-2 1.7-2h46c.9 0 1.7.9 1.7 2s-.7 2-1.7 2M421.8 277.4h-86.1c-.9 0-1.7-.9-1.7-2s.8-2 1.7-2h86.1c.9 0 1.7.9 1.7 2 0 1.2-.8 2-1.7 2M486.2 277.4h-52c-.9 0-1.7-.9-1.7-2s.8-2 1.7-2h52c.9 0 1.7.9 1.7 2 0 1.2-.7 2-1.7 2M358.9 295.3h-46c-.9 0-1.7-.9-1.7-2s.8-2 1.7-2h46c.9 0 1.7.9 1.7 2s-.8 2-1.7 2",fill:"#006dfe"}),c("path",{d:"M414.5 295.3h-46c-.9 0-1.7-.9-1.7-2s.8-2 1.7-2h46c.9 0 1.7.9 1.7 2s-.7 2-1.7 2",fill:"#00d967"}),c("path",{d:"M418.9 313.1h-69.8c-.9 0-1.7-.9-1.7-2s.8-2 1.7-2h69.8c.9 0 1.7.9 1.7 2s-.7 2-1.7 2M288.8 166.4h3.4v4h-3.4zM288.8 184.3h3.4v4h-3.4zM288.8 202.1h3.4v4h-3.4zM288.8 219.9h3.4v4h-3.4zM288.8 237.8h3.4v4h-3.4zM288.8 255.6h3.4v4h-3.4zM288.8 264.5h3.4v4h-3.4zM288.8 273.5h3.4v4h-3.4zM288.8 282.4h3.4v4h-3.4zM288.8 291.3h3.4v4h-3.4zM288.8 300.2h3.4v4h-3.4zM288.8 309.1h3.4v4h-3.4zM288.8 318.1h3.4v4h-3.4zM468.4 321.2l-12.3-6.2c-.4-.2-.6-.6-.6-1.1v-1.3c0-.5.2-.9.6-1.1l12.3-6.2c.7-.3 1.4.2 1.4 1.1v.5c0 .5-.3.9-.6 1.1l-8.5 4.1c-.9.4-.9 1.8 0 2.2l8.5 4.1c.4.2.6.6.6 1.1v.5c.1 1-.7 1.6-1.4 1.2M479.6 301.9l-5.7 23.2c-.1.5-.5.9-1 .9-.7 0-1.2-.8-1-1.6l5.7-23.2c.1-.5.5-.9 1-.9.7 0 1.2.8 1 1.6M495.4 315.1l-12.3 6.2c-.7.3-1.4-.2-1.4-1.1v-.5c0-.5.3-.9.6-1.1l8.5-4.1c.9-.4.9-1.8 0-2.2l-8.5-4.1c-.4-.2-.6-.6-.6-1.1v-.5c0-.9.8-1.5 1.4-1.1l12.3 6.2c.4.2.6.6.6 1.1v1.3c.1.3-.2.8-.6 1",fill:"#006dfe"}),c("use",{fill:"#b0d8ff",xlinkHref:"#login-icon_svg__c"}),c("path",{clipPath:"url(#login-icon_svg__u)",d:"M309 470.5s8.4 1.5 13.2 10.4c4.8 9 8.8-1 7.9-5.1s-.4-8.3-2.9-11.4-7.2-7.6-13.7-5.9-7.3.8-6.9 4.6c.4 3.9 1 8 1 8",opacity:.34}),c("ellipse",{cx:280.6,cy:541,fill:"#191e56",rx:7.5,ry:8.3}),c("path",{d:"M324.2 548.5c0 4.6-3.4 8.3-7.5 8.3-4.2 0-7.5-3.7-7.5-8.3s3.4-8.3 7.5-8.3 7.5 3.7 7.5 8.3M359.8 541c0 4.6-3.4 8.3-7.5 8.3-4.2 0-7.5-3.7-7.5-8.3s3.4-8.3 7.5-8.3 7.5 3.7 7.5 8.3",fill:"#191e56"}),c("path",{d:"M309.5 494.3s6.6-2.7 13.6 0l.2 9.4 34.2 28.2v6.7h-10.1l-.1-5.2-26.3-20.3.2 25.6-1.3 6h-6.8l-1.3-6-.3-25-26.1 19.6-.1 5-9.4.1v-7.1l33.6-27.4v-5.7z",fill:"#0542bf"}),c("use",{fill:"#006dfe",xlinkHref:"#login-icon_svg__d"}),c("path",{clipPath:"url(#login-icon_svg__v)",d:"M336 315.5s10.5 1.8 16.1 14.8 4.4 32.4 2.9 57.6 5.8 25.8 6.6 43.3-3.3 34-26.4 41.9c-23.1 7.8-42.5 11.4-72.2 6.6l-22.1-25.2 10.7-49.1s20-20 22.5-35.1c2.5-15 21.9-52.5 29.7-58s32.2 3.2 32.2 3.2",fill:"#004efc"}),c("use",{fill:"#ffab00",xlinkHref:"#login-icon_svg__e"}),c("path",{clipPath:"url(#login-icon_svg__w)",d:"M327.2 327.4s-3.6 4.2-2.3 12c1.3 7.7 7 18.6 4.8 22.7s-6.3 11-5.4 12.6 2.7 2.5 2.7 2.5l11.8 7.5s3.1.9 5.3-.6l1.5.4-34.8 18.7-4-5.8s12.6-13.7 13.8-18.3c1.1-4.6.3-5 2.9-9.6s5.2-7.6 3.5-12.7-4.7-13.4-4.1-18.3 1-7.9 4.3-11.1M281.4 328s-2.2 9.1.1 20.2 8.2 39.8 8.2 39.8l1.4-.7c0 .1-9.7-48.9-9.7-59.3",fill:"#fe8e00"}),c("path",{d:"M250 538.1s-.8 6.6-.8 12c0 5.3 3.6 9.6 1.8 14.6-1.9 5-17.1 5.2-28 6.4-10.9 1.3-20.5-1-19.1-9.2s19-4.9 25.9-15.1c6.9-10.1 4.8-11.8 4.8-11.8zM308.2 543.2s-.8 6.6-.8 12c0 5.3 3.6 9.6 1.8 14.6-1.9 5-17.1 5.2-28 6.4-10.9 1.3-20.5-1-19.1-9.2s19-4.9 25.9-15.1c6.9-10.1 4.8-11.8 4.8-11.8z",fill:"#ffab00"}),c("use",{fill:"#1e2889",xlinkHref:"#login-icon_svg__f"}),c("path",{clipPath:"url(#login-icon_svg__x)",d:"M225.7 436.9s19.1 4.3 22.6 28 7.6 41.1 7.6 41.1l9.7-34.8 34-18.2 21.1-16.6 10.7-24.5-16.9-8.9-51.4 4.3-27 14z",fill:"#1a1a7c"}),c("use",{fill:"#1e2889",xlinkHref:"#login-icon_svg__g"}),c("path",{clipPath:"url(#login-icon_svg__y)",d:"M282.4 491c.6-1.9 9.3-37.1 45.2-28.9l11.3-5.4s14.8-12.2 15.8-13.8c1.1-1.5.2-14 .3-15.7.2-1.7 0-19.9 0-19.9l-71.1-1.7 1 25.4-2.5 38.8z",fill:"#1a1a7c"}),c("path",{d:"M118.4 580.7V414.4c0-.3.2-.5.5-.5h4.6c.3 0 .5.2.5.5v166.3c0 .3-.2.5-.5.5h-4.6c-.3 0-.5-.2-.5-.5M392.3 580.7V414.4c0-.3.2-.5.5-.5h4.6c.3 0 .5.2.5.5v166.3c0 .3-.2.5-.5.5h-4.6c-.2 0-.5-.2-.5-.5M186.9 559.7l-10.2-146.9c0-.6.4-1.1 1-1.2l3.3-.2c.6 0 1.1.4 1.2 1l10.2 146.9c0 .6-.4 1.1-1 1.2l-3.3.2c-.7.1-1.2-.4-1.2-1M452 559.7l-10.2-146.9c0-.6.4-1.1 1-1.2l3.3-.2c.6 0 1.1.4 1.2 1l10.2 146.9c0 .6-.4 1.1-1 1.2l-3.3.2c-.7.1-1.2-.4-1.2-1",fill:"#191e56"}),c("path",{d:"M456.5 419.4H108.3c-.6 0-1-.4-1-1v-9.1c0-.6.4-1 1-1h348.3c.6 0 1 .4 1 1v9.1c-.1.6-.5 1-1.1 1",fill:"#0542bf"}),c("path",{d:"M359.7 382H432v8.8h-72.3z",fill:"#ffab00"}),c("path",{d:"M361.6 390.8h72.3v8.8h-72.3z",fill:"#00d967"}),c("path",{d:"M358.1 399.5h72.3v8.8h-72.3z",fill:"#de4d30"}),c("path",{d:"m187.5 299.9 3.9 5.4c1.8-3.8 5.6-5.5 8-6.3l-5.4-4.1s-.9 0-2.1.3c-1.5.5-3.3 1.6-4.2 4.3-.1.2-.1.3-.2.4",fill:"#9bb4c9"}),c("path",{d:"M133.7 345.5c0 2.5 1.8 4.6 4.1 5.2.4.1.8.1 1.2.1s.7 0 1-.1c2.4-.5 4.3-2.6 4.3-5.2 0-1-.3-1.9-.7-2.6-.4-.6-.9-1.2-1.5-1.6-.9-.7-2-1-3.2-1-2.8-.2-5.2 2.2-5.2 5.2M181.4 294.3c0 1 .3 2 .8 2.8.4.6.9 1.2 1.5 1.6.8.6 1.9.9 3 .9.3 0 .7 0 1-.1.9-2.7 2.8-3.8 4.2-4.3.1-.3.1-.6.1-.9 0-2.9-2.4-5.3-5.3-5.3-3 0-5.3 2.4-5.3 5.3",fill:"#4143c5"}),c("path",{d:"M142.1 341.2c.6.4 1.1 1 1.5 1.6l22.8-25.1 4.8-5.2 7-7.7 5.5-6.1c-.6-.4-1.1-.9-1.5-1.6l-6.6 7.2-4.6 5.1-4.9 5.4z",fill:"#9bb4c9"}),c("path",{d:"M130.9 403.9v-.1c17.6-6.5 32.5-.5 33.7 0-3.5.9-16.7 3.8-33.7.1",fill:"#4143c5"}),c("path",{d:"m137.8 350.6 7.9 45.4 1.1 6 .1.6 2.1-.4v-.2l-1.1-6.2-7.9-45.2c-.3.1-.7.1-1 .1-.4.1-.8 0-1.2-.1",fill:"#9bb4c9"}),c("path",{d:"m190.7 308 5.4 12.1.9 2.1 8.1-6.9 7.3-6.8 4.4-4.1-1.5-1.3h-.1l-13.5-5.8s-.9.1-2.1.5c-2.4.7-6.2 2.4-8 6.3-.2.4-.4.9-.5 1.4-.2.7-.3 1.5-.4 2.5",fill:"#4143c5"}),c("path",{d:"M211.2 317.7c5.4-5.1 7.7-11.3 5.3-13.9-2.5-2.6-8.8-.7-14.2 4.4s-7.7 11.3-5.3 13.9c2.5 2.7 8.8.7 14.2-4.4M130.9 403.9h33.7v4.4h-33.7z",fill:"#859ad0"}),c("path",{d:"M476.3 514.8c0 .4-.1.8-.2 1.1-1.7 4.3-12.9 7.7-26.4 7.7-13.7 0-25-3.4-26.5-7.8l-.2-1c0-4.9 11.9-8.8 26.7-8.8 14.7 0 26.6 4 26.6 8.8",fill:"#191e56"}),c("path",{d:"m476.1 516-9.2 54.1c-16.8 9.5-34.5 0-34.5 0l-9.2-54.3c1.5 4.4 12.8 7.8 26.5 7.8 13.5 0 24.7-3.3 26.4-7.6",fill:"#0542bf"}),c("use",{fill:"#ffaca6",xlinkHref:"#login-icon_svg__h"}),c("path",{clipPath:"url(#login-icon_svg__z)",d:"M294.9 307.3s8.9-1.8 16.6 4.3c0 0 .5-13.1.9-13.5.3-.4-14.3-7-14.3-7s-5.2 3.1-5.3 5.5c-.2 2.5 2.1 10.7 2.1 10.7",fill:"#ea756c"}),c("use",{fill:"#1e2889",xlinkHref:"#login-icon_svg__i"}),c("path",{clipPath:"url(#login-icon_svg__A)",d:"M271.2 267.3s.2 1.5 6 0 13.1-3.9 22.7 2.3 13.2 19.1 20.8 17.6l-5.7 12.2-12.4 8s-19.8-5.7-20.6-7.9-6.4-15.5-7.2-17.5-2-7.1-2-7.1z",fill:"#172272"}),c("use",{fill:"#ffaca6",xlinkHref:"#login-icon_svg__j"}),c("path",{clipPath:"url(#login-icon_svg__B)",d:"M278.1 277s6.9.6 13.6 2 10.2 11.1 17.2 10c7.1-1.2 4-5 4-5l-6.6-8.9-15.4-5-9.3-1.5-3.8 3.1z",fill:"#ea756c"}),c("path",{d:"M327 377.2s-11.3 11.9-19.9 14.9-12.7 0-16.1 6.9l-.7 1.5s12.4 4 21.3-.4l27.2-15.4z",fill:"#ffaca6"}),c("path",{d:"M225.7 400.9h101.8v7.4H225.7z",fill:"#78c2ff"}),c("path",{d:"M300.5 408.3h-88.7L199 346.1h88.7z",fill:"#b0d8ff"}),c("path",{d:"M293.9 408.3h-88.7l-12.9-62.2H281z",fill:"#78c2ff"}),c("path",{d:"M456.5 375.6h44.2v19.5h-44.2z",fill:"#daebff"}),c("path",{d:"M474.3 395.2h44.2v19.5h-44.2z",fill:"#ebf5ff"}),c("ellipse",{cx:239.6,cy:372,fill:"#fff",rx:8.3,ry:9.2,transform:"rotate(-8.069 239.64 372.176)"})]})}));export{h as default};
3
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,5 @@
1
+ import { type MenuItem } from "@vef-framework/shared";
2
+ import type { VefMenuProps } from "./props";
3
+ declare function VefMenu<T extends readonly MenuItem[] = readonly MenuItem[]>({ defaultOpenedKeys, openedKeys, orientation, inlineCollapsed, inlineIndent, inlineExpansion, items, selectable, deselectable, multiple, defaultSelectedKeys, selectedKeys, appearance, onClick, onChange, onSelect, onDeselect, }: VefMenuProps<T>): import("@emotion/react/jsx-runtime").JSX.Element;
4
+ export type { VefMenuProps };
5
+ export default VefMenu;
@@ -0,0 +1,3 @@
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ import{jsx as e}from"@emotion/react/jsx-runtime";import{useNormalizedMenuItems as t}from"@vef-framework/hooks";import{isFunction as n}from"@vef-framework/shared";import{Menu as l}from"antd";import{useMemo as o}from"react";function i({defaultOpenedKeys:i,openedKeys:a,orientation:s="vertical",inlineCollapsed:r=!1,inlineIndent:c=16,inlineExpansion:d=!1,items:m,selectable:f=!0,deselectable:p=!1,multiple:y=!1,defaultSelectedKeys:u,selectedKeys:k,appearance:K,onClick:h,onChange:v,onSelect:C,onDeselect:b}){const S=t(m),[x,P,w]=o((()=>{const e=n(h)?({key:e,keyPath:t})=>h(e,t):void 0,t=n(v);return[e,n(C)||t?({key:e,keyPath:t,selectedKeys:n})=>{v?.(n),C?.(e,t)}:void 0,n(b)||t?({key:e,keyPath:t,selectedKeys:n})=>{v?.(n),b?.(e,t)}:void 0]}),[h,v,C,b]);return e(l,{defaultOpenKeys:i,defaultSelectedKeys:u,inlineCollapsed:r,inlineIndent:c,items:S,mode:"vertical"===s?d?"inline":"vertical":"horizontal",multiple:y,openKeys:a,selectable:f,selectedKeys:k,theme:K,unselectable:p?"on":"off",onClick:x,onDeselect:w,onSelect:P})}export{i as default};
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,74 @@
1
+ import type { BiConsumer, Consumer, MenuItem, MenuItemKey, Orientation } from "@vef-framework/shared";
2
+ /**
3
+ * The props of the VefMenu component.
4
+ */
5
+ export interface VefMenuProps<T extends readonly MenuItem[] = readonly MenuItem[]> {
6
+ /**
7
+ * The default opened keys.
8
+ */
9
+ defaultOpenedKeys?: Array<MenuItemKey<T>>;
10
+ /**
11
+ * The opened keys.
12
+ */
13
+ openedKeys?: Array<MenuItemKey<T>>;
14
+ /**
15
+ * The items of the menu.
16
+ */
17
+ items: T;
18
+ /**
19
+ * The orientation of the menu.
20
+ */
21
+ orientation?: Orientation;
22
+ /**
23
+ * Whether the menu is inline collapsed.
24
+ */
25
+ inlineCollapsed?: boolean;
26
+ /**
27
+ * The inline indent of the menu.
28
+ */
29
+ inlineIndent?: number;
30
+ /**
31
+ * Whether the menu is inline expansion.
32
+ */
33
+ inlineExpansion?: boolean;
34
+ /**
35
+ * Whether the menu is selectable.
36
+ */
37
+ selectable?: boolean;
38
+ /**
39
+ * Whether the menu is deselectable.
40
+ */
41
+ deselectable?: boolean;
42
+ /**
43
+ * Whether the menu is multiple selectable.
44
+ */
45
+ multiple?: boolean;
46
+ /**
47
+ * The default selected keys.
48
+ */
49
+ defaultSelectedKeys?: Array<MenuItemKey<T>>;
50
+ /**
51
+ * The selected keys.
52
+ */
53
+ selectedKeys?: Array<MenuItemKey<T>>;
54
+ /**
55
+ * The appearance of the menu.
56
+ */
57
+ appearance?: "light" | "dark";
58
+ /**
59
+ * The on change callback.
60
+ */
61
+ onChange?: Consumer<Array<MenuItemKey<T>>>;
62
+ /**
63
+ * The on select callback.
64
+ */
65
+ onSelect?: BiConsumer<MenuItemKey<T>, Array<MenuItemKey<T>>>;
66
+ /**
67
+ * The on deselect callback.
68
+ */
69
+ onDeselect?: BiConsumer<MenuItemKey<T>, Array<MenuItemKey<T>>>;
70
+ /**
71
+ * The on click callback.
72
+ */
73
+ onClick?: BiConsumer<MenuItemKey<T>, Array<MenuItemKey<T>>>;
74
+ }
@@ -1,6 +1,5 @@
1
1
  import { type FC, type ReactElement } from "react";
2
- import type { VefButtonProps } from "../../vef-button";
3
- import type VefButton from "../../vef-button";
2
+ import type { default as VefButton, VefButtonProps } from "../../vef-button";
4
3
  /**
5
4
  * The props of the vef modal action button wrapper.
6
5
  */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.8, build time: 2024-12-10T13:58:46.329Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{jsx as o,Fragment as r}from"@emotion/react/jsx-runtime";import{invokeMaybeAsyncFn as e}from"@vef-framework/shared";import{useState as i,useMemo as t,cloneElement as n}from"react";import{useModalContextSelector as a}from"../context.js";const s=({children:s})=>{const[l,d]=a((o=>[o.isDisabled,o.setIsDisabled])),[m,c]=i(!1),{disabled:f,loading:p,onClick:b}=s.props,k=t((()=>{if(b)return async o=>{await e(b,{beforeInvoke:()=>{c(!0),d(!0)},onFinally:()=>{c(!1),d(!1)}},o)}}),[b,d]),u=n(s,{disabled:l||f,loading:m||p,onClick:k});return o(r,{children:u})};export{s as default};
3
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 */
@@ -1,2 +1,2 @@
1
- /*! VefFramework version: 1.0.8, build time: 2024-12-10T13:58:46.329Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  /*! 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 */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.8, build time: 2024-12-10T13:58:46.329Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{jsx as t}from"@emotion/react/jsx-runtime";import o from"../../vef-button/index.js";import r from"./action-button-wrapper.js";const e=({text:e,onClick:i})=>t(r,{children:t(o,{color:"default",variant:"text",onClick:i,children:e})});export{e as default};
3
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 */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.8, build time: 2024-12-10T13:58:46.329Z, made by Venus. */
2
- import{jsx as o}from"@emotion/react/jsx-runtime";import{CheckOutlined as r}from"@ant-design/icons";import t from"../../vef-button/index.js";import i from"./action-button-wrapper.js";const n=({text:n,onClick:e})=>o(i,{children:o(t,{color:"primary",icon:o(r,{}),onClick:e,children:n})});export{n as default};
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ import{jsx as o}from"@emotion/react/jsx-runtime";import{CheckIcon as r}from"lucide-react";import i from"../../vef-button/index.js";import t from"../../vef-icon/index.js";import e from"./action-button-wrapper.js";const n=({text:n,onClick:c})=>o(e,{children:o(i,{color:"primary",icon:o(t,{children:o(r,{})}),onClick:c,children:n})});export{n as default};
3
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 */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.8, build time: 2024-12-10T13:58:46.329Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{createSelectableContext as e,noop as s}from"@vef-framework/shared";const{ContextProvider:o,useContext:t,useContextSelector:r}=e({isDisabled:!1,setIsDisabled:s,isFullyOpened:!1,isFullyClosed:!1});export{o as ModalContextProvider,t as useModalContext,r as useModalContextSelector};
3
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 */
@@ -1,6 +1,6 @@
1
- /*! VefFramework version: 1.0.8, build time: 2024-12-10T13:58:46.329Z, made by Venus. */
2
- import{jsx as o,jsxs as t,Fragment as e}from"@emotion/react/jsx-runtime";import{css as n}from"@emotion/react";import{useWindowSize as r}from"@vef-framework/hooks";import{isFunction as l}from"@vef-framework/shared";import{Modal as i}from"antd";import{useDragControls as s,motion as a}from"motion/react";import{useCallback as c,useState as d,useMemo as m,useLayoutEffect as f,memo as p}from"react";import u from"./components/cancel-action-button.js";import h from"./components/ok-action-button.js";import{ModalContextProvider as C}from"./context.js";export{default as VefModalActionButtonWrapper}from"./components/action-button-wrapper.js";const k=n`
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ import{jsx as o,jsxs as t,Fragment as e}from"@emotion/react/jsx-runtime";import{css as n}from"@emotion/react";import{useWindowSize as r,useSize as l}from"@vef-framework/hooks";import{isFunction as s}from"@vef-framework/shared";import{Modal as i}from"antd";import{useDragControls as a,motion as c}from"motion/react";import{useCallback as d,useState as m,useMemo as f,useEffect as p,memo as u}from"react";import h from"./components/cancel-action-button.js";import C from"./components/ok-action-button.js";import{ModalContextProvider as k}from"./context.js";export{default as VefModalActionButtonWrapper}from"./components/action-button-wrapper.js";const g=n`
3
3
  cursor: move;
4
4
  user-select: none;
5
- `,g=p((({title:n,open:p,closable:g=!0,closeOnEscPress:w=!0,closeOnMaskClick:b=!1,destroyOnClose:v=!1,showCancelButton:O=!0,cancelButtonText:x="取消",okButtonText:y="提交",actions:B,width:F,loading:j=!1,cancelOnClose:A=!0,onClose:E,onOk:T,onCancel:D,onAfterOpen:L,onAfterClose:M,children:P})=>{const I=s(),R=c((o=>{o.stopPropagation(),I.start(o)}),[I]),{width:z,height:V}=r(),[W,q]=d(null),G=m((()=>{if(W){const{width:o,height:t}=W.getBoundingClientRect();return{left:-z/2+o/2,top:-V/2+t/2,right:z/2-o/2,bottom:V/2-t/2}}return{left:0,top:0,right:0,bottom:0}}),[W,V,z]),H=m((()=>"small"===F?378:"medium"===F?736:"narrow"===F?"25vw":"half"===F?"50vw":"wide"===F?"75vw":"full"===F?"100vw":F),[F]),J=c((t=>o(a.div,{ref:o=>q(o),drag:!0,dragConstraints:G,dragControls:I,dragElastic:.3,dragListener:!1,dragMomentum:!1,children:t})),[G,I]),K=m((()=>o("div",{css:k,onPointerDown:R,children:n})),[n,R]),[N,Q]=d(!1),[S,U]=d({isFullyOpened:!1,isFullyClosed:!1}),X=m((()=>({isDisabled:N,setIsDisabled:Q,...S})),[N,Q,S]),Y=j||N;f((()=>{p&&S.isFullyClosed&&U((o=>({...o,isFullyClosed:!1})))}),[p]);const Z=c((o=>{if(!Y){if(U((o=>({...o,isFullyOpened:!1}))),A)return E?.(),void D?.();o?D?.():E?.()}}),[Y,A,E,D]),$=m((()=>{const n=o(u,{text:x,onClick:()=>Z(!0)},"cancelActionButton"),r=o(h,{text:y,onClick:T},"okActionButton");return l(B)?B([n,r]):B||(O?t(e,{children:[n,r]}):r)}),[x,y,T,B,O,Z]),_=c((({type:o,target:t})=>{let e=!0;if("click"===o){let o=t.parentElement;for(;o;){if(o.classList.contains("vef-modal-content")){e=!0;break}if(o.classList.contains("vef-modal-footer")){e=!1;break}o=o.parentElement}}Z(!e)}),[Z]),oo=c((o=>{const t=l(L),e=l(M);o?(t&&L(),U((o=>({...o,isFullyOpened:!0})))):(e&&M(),U((o=>({...o,isFullyClosed:!0}))))}),[L,M]);return o(C,{value:X,children:o(i,{centered:!0,afterOpenChange:oo,cancelText:x,closable:g,destroyOnClose:v,footer:$,keyboard:w,loading:j,maskClosable:b,modalRender:J,okText:y,open:p,title:K,width:H,zIndex:10,onCancel:_,onOk:T,children:P})})}));export{g as default};
5
+ `,w=u((({title:n,open:u,closable:w=!0,closeOnEscPress:b=!0,closeOnMaskClick:v=!1,destroyOnClose:O=!1,showCancelButton:x=!0,cancelButtonText:y="取消",okButtonText:F="提交",actions:B,width:j,loading:A=!1,cancelOnClose:E=!0,onClose:T,onOk:D,onCancel:L,onAfterOpen:M,onAfterClose:P,children:I})=>{const z=a(),R=d((o=>{o.stopPropagation(),z.start(o)}),[z]),{width:V,height:W}=r(),[q,G]=m(null),H=l(q),J=f((()=>{if(!H)return{left:0,top:0,right:0,bottom:0};const{width:o,height:t}=H;return{left:-(V/2-o/2),top:-(W/2-t/2),right:V/2-o/2,bottom:W/2-t/2}}),[H,W,V]),K=f((()=>"small"===j?378:"medium"===j?736:"narrow"===j?"25vw":"half"===j?"50vw":"wide"===j?"75vw":"full"===j?"100vw":j),[j]),N=d((t=>o(c.div,{ref:o=>G(o),drag:!0,dragConstraints:J,dragControls:z,dragElastic:.3,dragListener:!1,dragMomentum:!1,children:t})),[J,z]),Q=f((()=>o("div",{css:g,onPointerDown:R,children:n})),[n,R]),[S,U]=m(!1),[X,Y]=m({isFullyOpened:!1,isFullyClosed:!1}),Z=f((()=>({isDisabled:S,setIsDisabled:U,...X})),[S,U,X]),$=A||S;p((()=>{u&&X.isFullyClosed&&Y((o=>({...o,isFullyClosed:!1})))}),[u]);const _=d((o=>{if(!$){if(Y((o=>({...o,isFullyOpened:!1}))),E)return T?.(),void L?.();o?L?.():T?.()}}),[$,E,T,L]),oo=f((()=>{const n=o(h,{text:y,onClick:()=>_(!0)},"cancelActionButton"),r=o(C,{text:F,onClick:D},"okActionButton");return s(B)?B([n,r]):B||(x?t(e,{children:[n,r]}):r)}),[y,F,D,B,x,_]),to=d((({type:o,target:t})=>{let e=!0;if("click"===o){let o=t.parentElement;for(;o;){if(o.classList.contains("vef-modal-content")){e=!0;break}if(o.classList.contains("vef-modal-footer")){e=!1;break}o=o.parentElement}}_(!e)}),[_]),eo=d((o=>{const t=s(M),e=s(P);o?(t&&M(),Y((o=>({...o,isFullyOpened:!0})))):(e&&P(),Y((o=>({...o,isFullyClosed:!0}))))}),[M,P]);return o(k,{value:Z,children:o(i,{centered:!0,afterOpenChange:eo,cancelText:y,closable:w,destroyOnClose:O,footer:oo,keyboard:b,loading:A,maskClosable:v,modalRender:N,okText:F,open:u,title:Q,width:K,zIndex:10,onCancel:to,onOk:D,children:I})})}));export{w as default};
6
6
  /*! 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 */
@@ -1,4 +1,4 @@
1
- /*! VefFramework version: 1.0.8, build time: 2024-12-10T13:58:46.329Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{jsx as o,jsxs as i}from"@emotion/react/jsx-runtime";import{ArrowLeftOutlined as e}from"@ant-design/icons";import{css as n}from"@emotion/react";import{styles as r,themeVariables as t}from"@vef-framework/shared";import a from"../vef-button/index.js";import c from"./not-found-icon.js";const s=n`
3
3
  height: 100%;
4
4
  ${r.flexCenter}
@@ -1,4 +1,4 @@
1
- import type { SVGProps } from "react";
1
+ import { type SVGProps } from "react";
2
2
  declare function SvgNotFoundIcon(props: SVGProps<SVGSVGElement>): import("@emotion/react/jsx-runtime").JSX.Element;
3
3
  declare const Memo: import("react").MemoExoticComponent<typeof SvgNotFoundIcon>;
4
4
  export default Memo;