@univerjs/ui 0.5.4 → 0.5.5-experimental.20250122-3362a4a

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 (69) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +23 -32
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/fa-IR.js +1 -1
  5. package/lib/cjs/locale/fr-FR.js +1 -1
  6. package/lib/cjs/locale/ru-RU.js +1 -1
  7. package/lib/cjs/locale/vi-VN.js +1 -1
  8. package/lib/cjs/locale/zh-CN.js +1 -1
  9. package/lib/cjs/locale/zh-TW.js +1 -1
  10. package/lib/es/facade.js +149 -137
  11. package/lib/es/index.js +5756 -6080
  12. package/lib/es/locale/en-US.js +2 -2
  13. package/lib/es/locale/fa-IR.js +2 -2
  14. package/lib/es/locale/fr-FR.js +2 -2
  15. package/lib/es/locale/ru-RU.js +2 -2
  16. package/lib/es/locale/vi-VN.js +2 -2
  17. package/lib/es/locale/zh-CN.js +2 -2
  18. package/lib/es/locale/zh-TW.js +2 -2
  19. package/lib/index.css +1 -1
  20. package/lib/types/components/custom-label/CustomLabel.d.ts +2 -2
  21. package/lib/types/components/font-family/FontFamily.d.ts +1 -2
  22. package/lib/types/components/font-family/FontFamilyItem.d.ts +1 -2
  23. package/lib/types/components/font-size/FontSize.d.ts +1 -2
  24. package/lib/types/components/hooks/index.d.ts +20 -0
  25. package/lib/types/components/hooks/update-effect.d.ts +2 -0
  26. package/lib/types/components/hooks/useClickOutSide.d.ts +5 -0
  27. package/lib/types/components/menu/desktop/Menu.d.ts +1 -2
  28. package/lib/types/components/menu/mobile/MobileMenu.d.ts +1 -2
  29. package/lib/types/components/menu/mobile/MobileMenu.stories.d.ts +1 -2
  30. package/lib/types/components/notification/Notification.d.ts +2 -3
  31. package/lib/types/components/notification/Notification.stories.d.ts +1 -2
  32. package/lib/types/components/progress-bar/ProgressBar.d.ts +16 -2
  33. package/lib/types/controllers/ui/ui-mobile.controller.d.ts +3 -3
  34. package/lib/types/facade/f-menu-builder.d.ts +4 -0
  35. package/lib/types/facade/f-shortcut.d.ts +3 -0
  36. package/lib/types/facade/f-univer.d.ts +11 -1
  37. package/lib/types/index.d.ts +3 -5
  38. package/lib/types/services/clipboard/clipboard-interface.service.d.ts +1 -0
  39. package/lib/types/services/parts/parts.service.d.ts +2 -1
  40. package/lib/types/views/MobileApp.d.ts +1 -2
  41. package/lib/types/views/components/ComponentContainer.d.ts +1 -1
  42. package/lib/types/views/components/confirm-part/ConfirmPart.d.ts +16 -2
  43. package/lib/types/views/components/context-menu/ContextMenu.d.ts +16 -2
  44. package/lib/types/views/components/context-menu/MobileContextMenu.d.ts +16 -2
  45. package/lib/types/views/components/dialog-part/DialogPart.d.ts +16 -2
  46. package/lib/types/views/components/dom/FloatDom.d.ts +16 -2
  47. package/lib/types/views/components/global-zone/GlobalZone.d.ts +16 -2
  48. package/lib/types/views/components/popup/CanvasPopup.d.ts +16 -2
  49. package/lib/types/views/components/popup/RectPopup.d.ts +3 -2
  50. package/lib/types/views/components/popup/dom-popup.d.ts +12 -0
  51. package/lib/types/views/components/popup/single-canvas-popup.d.ts +9 -0
  52. package/lib/types/views/components/ribbon/Button/ToolbarButton.d.ts +1 -1
  53. package/lib/types/views/components/ribbon/Ribbon.d.ts +2 -2
  54. package/lib/types/views/components/ribbon/TooltipButtonWrapper.d.ts +1 -1
  55. package/lib/types/views/components/shortcut-panel/ShortcutPanel.d.ts +16 -2
  56. package/lib/types/views/components/sidebar/Sidebar.d.ts +16 -2
  57. package/lib/types/views/components/zen-zone/ZenZone.d.ts +16 -2
  58. package/lib/types/views/workbench/Workbench.d.ts +1 -2
  59. package/lib/umd/facade.js +1 -1
  60. package/lib/umd/index.js +23 -32
  61. package/lib/umd/locale/en-US.js +1 -1
  62. package/lib/umd/locale/fa-IR.js +1 -1
  63. package/lib/umd/locale/fr-FR.js +1 -1
  64. package/lib/umd/locale/ru-RU.js +1 -1
  65. package/lib/umd/locale/vi-VN.js +1 -1
  66. package/lib/umd/locale/zh-CN.js +1 -1
  67. package/lib/umd/locale/zh-TW.js +1 -1
  68. package/package.json +7 -7
  69. package/LICENSE +0 -176
@@ -1,4 +1,4 @@
1
- const e = {
1
+ const locale = {
2
2
  ribbon: {
3
3
  start: "Start",
4
4
  insert: "Insert",
@@ -60,5 +60,5 @@ const e = {
60
60
  "global-shortcut": "Global Shortcut"
61
61
  };
62
62
  export {
63
- e as default
63
+ locale as default
64
64
  };
@@ -1,4 +1,4 @@
1
- const i = {
1
+ const locale = {
2
2
  ribbon: {
3
3
  start: "شروع",
4
4
  insert: "درج",
@@ -60,5 +60,5 @@ const i = {
60
60
  "global-shortcut": "کلید میانبر جهانی"
61
61
  };
62
62
  export {
63
- i as default
63
+ locale as default
64
64
  };
@@ -1,4 +1,4 @@
1
- const e = {
1
+ const locale = {
2
2
  ribbon: {
3
3
  start: "Démarrer",
4
4
  insert: "Insérer",
@@ -60,5 +60,5 @@ const e = {
60
60
  "global-shortcut": "Raccourci global"
61
61
  };
62
62
  export {
63
- e as default
63
+ locale as default
64
64
  };
@@ -1,4 +1,4 @@
1
- const i = {
1
+ const locale = {
2
2
  ribbon: {
3
3
  start: "Начало",
4
4
  insert: "Вставка",
@@ -60,5 +60,5 @@ const i = {
60
60
  "global-shortcut": "Глобальные ярлыки"
61
61
  };
62
62
  export {
63
- i as default
63
+ locale as default
64
64
  };
@@ -1,4 +1,4 @@
1
- const n = {
1
+ const locale = {
2
2
  ribbon: {
3
3
  start: "Bắt đầu",
4
4
  insert: "Chèn",
@@ -60,5 +60,5 @@ const n = {
60
60
  "global-shortcut": "Phím tắt toàn cầu"
61
61
  };
62
62
  export {
63
- n as default
63
+ locale as default
64
64
  };
@@ -1,4 +1,4 @@
1
- const t = {
1
+ const locale = {
2
2
  ribbon: {
3
3
  start: "开始",
4
4
  insert: "插入",
@@ -60,5 +60,5 @@ const t = {
60
60
  "global-shortcut": "全局快捷键"
61
61
  };
62
62
  export {
63
- t as default
63
+ locale as default
64
64
  };
@@ -1,4 +1,4 @@
1
- const t = {
1
+ const locale = {
2
2
  ribbon: {
3
3
  start: "開始",
4
4
  insert: "插入",
@@ -60,5 +60,5 @@ const t = {
60
60
  "global-shortcut": "全域快捷鍵"
61
61
  };
62
62
  export {
63
- t as default
63
+ locale as default
64
64
  };
package/lib/index.css CHANGED
@@ -1 +1 @@
1
- .univer-pointer-events-none{pointer-events:none}.univer-absolute{position:absolute}.univer-relative{position:relative}.univer-right-0{right:0}.univer-right-2{right:.5rem}.univer-top-0{top:0}.univer-box-border{box-sizing:border-box}.univer-flex{display:flex}.univer-grid{display:grid}.univer-h-0{height:0px}.univer-h-6{height:1.5rem}.univer-h-8{height:2rem}.univer-h-full{height:100%}.univer-w-5{width:1.25rem}.univer-cursor-not-allowed{cursor:not-allowed}.univer-cursor-pointer{cursor:pointer}.univer-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.univer-items-center{align-items:center}.univer-justify-center{justify-content:center}.univer-gap-2{gap:.5rem}.univer-overflow-hidden{overflow:hidden}.univer-rounded{border-radius:.25rem}.\!univer-bg-primary-500{--tw-bg-opacity: 1 !important;background-color:rgb(70 106 247 / var(--tw-bg-opacity, 1))!important}.univer-bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(227 229 234 / var(--tw-bg-opacity, 1))}.univer-bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.univer-bg-primary-500{--tw-bg-opacity: 1;background-color:rgb(70 106 247 / var(--tw-bg-opacity, 1))}.univer-px-2{padding-left:.5rem;padding-right:.5rem}.univer-py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.univer-pr-5{padding-right:1.25rem}.univer-text-sm{font-size:.875rem;line-height:1.25rem}.univer-text-gray-200{--tw-text-opacity: 1;color:rgb(227 229 234 / var(--tw-text-opacity, 1))}.univer-text-gray-400{--tw-text-opacity: 1;color:rgb(151 157 172 / var(--tw-text-opacity, 1))}.univer-text-gray-700{--tw-text-opacity: 1;color:rgb(44 48 64 / var(--tw-text-opacity, 1))}.univer-text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.univer-underline{text-decoration-line:underline}.univer-transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.univer-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\:\!univer-bg-primary-500:hover{--tw-bg-opacity: 1 !important;background-color:rgb(70 106 247 / var(--tw-bg-opacity, 1))!important}.hover\:univer-bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(238 239 241 / var(--tw-bg-opacity, 1))}.hover\:univer-bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(227 229 234 / var(--tw-bg-opacity, 1))}.hover\:univer-bg-gray-300:hover{--tw-bg-opacity: 1;background-color:rgb(205 208 216 / var(--tw-bg-opacity, 1))}.\[\&\>\*\]\:univer-inline-flex>*{display:inline-flex}.\[\&\>\*\]\:univer-h-6>*{height:1.5rem}.\[\&\>\*\]\:univer-items-center>*{align-items:center}.\[\&\>\*\]\:univer-rounded>*{border-radius:.25rem}.\[\&\>\*\]\:univer-px-1>*{padding-left:.25rem;padding-right:.25rem}.\[\&\>\*\]\:univer-transition-colors>*{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\:\[\&\>\*\]\:univer-bg-gray-300>*:hover{--tw-bg-opacity: 1;background-color:rgb(205 208 216 / var(--tw-bg-opacity, 1))}.univer-ui-plugin-sheets-font-family{overflow:hidden;width:120px;font-size:var(--font-size-xs);text-overflow:ellipsis;white-space:nowrap}.univer-ui-plugin-sheets-font-family-item{font-size:var(--font-size-xs)}.univer-ui-plugin-sheets-font-size{width:28px;height:24px;font-size:var(--font-size-xs)}.univer-ui-plugin-sheets-font-size-input{height:24px;line-height:24px;background-color:transparent;border:none}.univer-ui-plugin-sheets-font-size-input input{font-size:var(--font-size-xs);background-color:transparent}.univer-popup-fixed{position:fixed;z-index:1000;top:-9999px;left:-9999px}.univer-menu-item-no-hover,.univer-menu-item-no-hover.univer-menu-item-active{background:none}.univer-menu-item-activated{background-color:rgb(var(--bg-color-hover))}.univer-menu-item-content{display:inline-flex;gap:var(--margin-xs);align-items:center}.univer-menu-item-selectable{position:relative;padding-left:var(--padding-xl)}.univer-menu-item-selectable-icon{position:absolute;left:0;display:inline-flex;align-items:center;font-size:var(--font-size-lg)}.univer-menu-item-more-icon{font-size:var(--font-size-sm);color:rgb(var(--text-color))}.univer-progress-bar{width:160px;height:4px;background-color:rgb(var(--border-color));border-radius:var(--border-radius-lg);margin-right:var(--margin-xs)}.univer-progress-bar-container{display:flex;align-items:center;margin:0 var(--margin-xs) 0 var(--margin-xs)}.univer-progress-bar-label{font-size:var(--font-size-xxs);color:rgb(var(--text-color-secondary));width:98px;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:var(--margin-xs);line-height:17px}.univer-progress-bar-inner{height:4px;border-radius:var(--border-radius-lg);transition:width .5s}.univer-progress-bar-close-button{background:none;border:none;font-size:var(--font-size-xxs);color:rgb(var(--text-color));cursor:pointer;padding:0;margin:0;line-height:1;display:flex;align-items:center}.univer-progress-bar-close-button:hover{color:rgb(var(--text-color-secondary))}.univer-shortcut-panel-group-title{height:40px;font-size:13px;font-weight:700;line-height:40px}.univer-shortcut-panel-item{display:flex;justify-content:space-between;height:40px;font-size:13px;line-height:40px}.univer-shortcut-panel-item-title{overflow:hidden;flex-grow:1;flex-shrink:1;max-width:200px;text-overflow:ellipsis;text-wrap:nowrap}.univer-shortcut-panel-item-shortcut{flex-grow:0;flex-shrink:0}.univer-shortcut-panel-item:not(:last-of-type){border-bottom:1px solid rgb(var(--grey-200))}.univer-float-dom-wrapper{z-index:10}.univer-float-dom{overflow:hidden}.univer-toolbar-btn{cursor:pointer;display:flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0;font-size:var(--font-size-lg);color:rgb(var(--text-color));background-color:transparent;border:none;border-radius:var(--border-radius-base);outline:none}.univer-toolbar-btn:not([disabled]):hover{background-color:rgb(var(--grey-100))}.univer-toolbar-btn[disabled]{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-btn-no-icon{padding:var(--padding-xs)}.univer-toolbar-btn-active{background-color:rgb(var(--grey-100))}.univer-toolbar-btn-active[disabled]{color:rgba(var(--text-color),.25)}.univer-toolbar{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:flex;align-items:center;box-sizing:border-box;height:32px;font-size:var(--font-size-base);color:rgb(var(--text-color));background-color:rgb(var(--bg-color-secondary));border-bottom:1px solid rgb(var(--border-color))}.univer-toolbar-container{flex:1;padding:0 var(--padding-lg);display:flex;gap:var(--margin-xs);align-items:center;justify-content:center;box-sizing:border-box;height:100%;margin:0 auto;max-width:100%;overflow:hidden}.univer-toolbar-more{max-width:80%}.univer-toolbar-more-container{display:grid;box-sizing:border-box;padding:var(--padding-sm);background-color:rgb(var(--bg-color-secondary));border-radius:var(--border-radius-base);box-shadow:var(--box-shadow-base)}.univer-toolbar-more-container .univer-toolbar-group{flex-wrap:wrap}.univer-toolbar-more-container .univer-toolbar-group:not(:last-child):after{content:initial}.univer-toolbar-more-container .univer-toolbar-group:not(:last-child)>*{margin-bottom:var(--margin-xs)}.univer-toolbar-group{display:flex;gap:var(--margin-xs);align-items:center;flex-shrink:0}.univer-toolbar-group>*{flex-shrink:0}.univer-toolbar-group:not(:last-child,:empty):after{content:"";display:block;width:1px;height:20px;background-color:rgb(var(--border-color));flex-shrink:0}.univer-toolbar-item-select-button{cursor:pointer;position:relative;overflow:hidden;display:flex;align-items:center;font-size:var(--font-size-lg);border-radius:var(--border-radius-base)}.univer-toolbar-item-select-button-disabled{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-item-select-button-disabled.univer-toolbar-item-select-button-activated{color:rgba(var(--text-color),.25)}.univer-toolbar-item-select-button-disabled.univer-toolbar-item-select-button-activated .univer-toolbar-item-select-button-label:hover,.univer-toolbar-item-select-button-disabled.univer-toolbar-item-select-button-activated .univer-toolbar-item-select-button-arrow:hover{background-color:rgb(var(--grey-100))!important}.univer-toolbar-item-select-button-activated{background-color:rgb(var(--grey-100))}.univer-toolbar-item-select-button-label{position:relative;z-index:1;display:flex;align-items:center;height:100%;padding:0 var(--padding-xs)}.univer-toolbar-item-select{cursor:pointer;position:relative;display:flex;gap:var(--margin-xs);align-items:center;height:24px;padding:0 var(--padding-xs);font-size:var(--font-size-lg);border-radius:var(--border-radius-base)}.univer-toolbar-item-select-disabled{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-item-select:hover{background-color:rgb(var(--grey-100));border-radius:var(--border-radius-base)}.univer-toolbar-item-select-arrow{display:flex;align-items:center;height:100%;color:rgb(var(--grey-400))}.univer-toolbar-item-select-arrow-disabled{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-item-select-arrow-disabled.univer-toolbar-item-select-arrow-activated{color:rgba(var(--text-color),.25)}.univer-toolbar-item-select-arrow-disabled.univer-toolbar-item-select-arrow-activated:hover{background-color:rgb(var(--grey-100))}.univer-sidebar{position:relative;transform:translate(100%);box-sizing:border-box;width:0;height:100%;color:rgb(var(--text-color))}.univer-sidebar.univer-sidebar-open{transform:translate(0);width:380px}.univer-sidebar-container{overflow-y:auto;display:grid;grid-template-rows:auto 1fr auto;box-sizing:border-box;width:100%;height:0;min-height:100%;margin:auto;background-color:rgb(var(--bg-color-secondary));border-bottom:1px solid rgb(var(--border-color));border-left:1px solid rgb(var(--border-color));scrollbar-color:rgba(var(--scrollbar-color),.7) transparent;scrollbar-gutter:auto;scrollbar-width:thin}.univer-sidebar-header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;height:44px;padding:var(--padding-xl) var(--padding-xl) 0;font-size:var(--font-size-lg);font-weight:500;background:rgb(var(--bg-color-secondary));box-sizing:border-box;z-index:10}.univer-sidebar-header-close{cursor:pointer;color:rgb(var(--text-color-secondary))}.univer-sidebar-body{padding:0 var(--padding-xl);box-sizing:border-box}.univer-sidebar-footer{position:sticky;bottom:0;padding:var(--padding-xl);background:rgb(var(--bg-color-secondary));box-sizing:border-box}.univer-zen-zone{position:absolute;z-index:-1;transition:all .2s ease-in-out;display:flex;flex-direction:row}.univer-zen-zone-open{z-index:100;top:0;left:0;width:100%;height:100%;background:rgb(var(--bg-color));opacity:1}.univer-zen-zone-close{opacity:0}.univer-zen-zone-editor-container{flex:1;position:relative}.univer-global-zone{position:absolute;display:none}.univer-global-zone-open{z-index:100;top:0;left:0;display:block;width:100%;height:100%;background:rgb(var(--bg-color))}.univer-global-zone-close{display:none}.univer-workbench-layout{display:flex;flex-direction:column;height:100%;background-color:rgb(var(--bg-color));min-height:0;position:relative}.univer-workbench-custom-header{position:relative;display:flex;flex-direction:column;min-height:0;background-color:rgb(var(--color-white))}.univer-workbench-container{position:relative;display:flex;flex:1;flex-direction:column;min-height:0}.univer-workbench-container-header{position:relative;z-index:10;width:100%}.univer-workbench-container-wrapper{display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:100%;height:100%;overflow:hidden}.univer-workbench-container-content{position:relative;overflow:hidden;display:grid;grid-template-rows:auto 1fr;flex:1;background-color:rgb(var(--bg-color-secondary));border-bottom:1px solid rgb(var(--border-color))}.univer-workbench-container-doc-content{background:rgb(var(--bg-color-secondary))}.univer-workbench-container-canvas{position:relative;overflow:hidden}.univer-workbench-container-left-sidebar,.univer-workbench-container-sidebar{height:100%}.univer-mobile-menu-container{min-width:32px;max-width:200px;display:grid;grid-gap:4px;background-color:#000;border-radius:4px;padding:4px 8px}.univer-mobile-menu-item{display:flex;flex-direction:column;justify-content:center;align-items:center;border:none;background:none;color:#fff;width:48px}.univer-mobile-menu-item>svg{font-size:18px;height:18px;width:18px}.univer-mobile-menu-item>span{width:100%;margin-top:2px;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.univer-app-layout{display:flex;flex-direction:column;height:100%;background-color:rgb(var(--bg-color));min-height:0;position:relative}.univer-app-custom-header{position:relative;display:flex;flex-direction:column;min-height:0;background-color:rgb(var(--color-white))}.univer-app-header{width:100vw}.univer-app-container{position:relative;display:flex;flex:1;flex-direction:column;min-height:0}.univer-app-container-header{position:relative;z-index:10;width:100%}.univer-app-container-wrapper{display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:100%;height:100%;overflow:hidden}.univer-app-container-content{position:relative;overflow:hidden;display:grid;grid-template-rows:auto 1fr;flex:1;background-color:rgb(var(--bg-color-secondary));border-bottom:1px solid rgb(var(--border-color))}.univer-app-container-canvas{position:relative;overflow:hidden}.univer-app-container-left-sidebar,.univer-app-container-sidebar{height:100%}.univer-notification{position:fixed;z-index:1000;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;box-sizing:border-box;margin:var(--margin-xs) 0}.univer-notification-notice{display:flex;gap:var(--margin-xs);justify-content:space-between;width:280px;padding:var(--padding-lg);font-size:var(--font-size-lg);background-color:rgb(var(--color-white));border-radius:var(--border-radius-base);box-shadow:var(--box-shadow-lg)}.univer-notification-notice-wrapper{margin:var(--margin-xs) var(--margin-base)}.univer-notification-notice-content{display:inline-flex;gap:var(--margin-xs);align-items:center;align-items:flex-start}.univer-notification-notice-close{cursor:pointer;display:flex;align-items:center;justify-content:center;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;padding:var(--padding-xs);color:rgb(var(--text-color-secondary));border-radius:var(--border-radius-base);outline:none;transition:background-color .2s}.univer-notification-notice-close:hover{background-color:rgb(var(--bg-color-hover))}.univer-notification-icon{padding:var(--padding-xs)}.univer-notification-icon-success{color:rgb(var(--success-color))}.univer-notification-icon-info{color:rgb(var(--info-color))}.univer-notification-icon-warning{color:rgb(var(--warning-color))}.univer-notification-icon-error{color:rgb(var(--error-color))}.univer-notification-content-container{display:inline-flex;flex-direction:column;gap:var(--margin-xs);align-items:flex-start;padding-top:var(--padding-xs)}.univer-notification-title{color:rgb(var(--text-color))}.univer-notification-content{color:rgb(var(--text-color-secondary))}.univer-notification-content-ellipsis{overflow:hidden;display:-webkit-box;text-overflow:ellipsis;-webkit-box-orient:vertical}.univer-notification-top,.univer-notification-topLeft,.univer-notification-topRight{top:0}.univer-notification-bottom,.univer-notification-bottomRight,.univer-notification-bottomLeft{bottom:0}.univer-notification-bottomRight,.univer-notification-topRight{right:0}.univer-notification-fade{overflow:hidden;transition:all .3s}.univer-notification-fade-appear-prepare{opacity:0}.univer-notification-fade-appear-start{transform:translate(100%);opacity:0}.univer-notification-fade-appear-active{transform:translate(0);opacity:1}.univer-notification-fade-appear,.univer-notification-fade-enter{opacity:0;animation-play-state:paused;animation-duration:.3s;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-fill-mode:both}.univer-notification-fade-leave{animation-duration:.3s;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-fill-mode:both;animation-play-state:paused}.univer-notification-fade-appear.univer-notification-fade-appear-active,.univer-notification-fade-enter.univer-notification-fade-enter-active{animation-name:univer-notification-fade-in;animation-play-state:running}.univer-notification-fade-leave.univer-notification-fade-leave-active{animation-name:univer-notification-fade-out;animation-play-state:running}@keyframes univer-notification-fade-in{0%{opacity:0}to{opacity:1}}@keyframes univer-notification-fade-out{0%{opacity:1}to{opacity:0}}
1
+ .univer-pointer-events-none{pointer-events:none}.univer-absolute{position:absolute}.univer-relative{position:relative}.univer-right-0{right:0}.univer-right-2{right:.5rem}.univer-top-0{top:0}.univer-box-border{box-sizing:border-box}.univer-flex{display:flex}.univer-grid{display:grid}.univer-h-0{height:0px}.univer-h-6{height:1.5rem}.univer-h-8{height:2rem}.univer-h-full{height:100%}.univer-w-5{width:1.25rem}.univer-cursor-not-allowed{cursor:not-allowed}.univer-cursor-pointer{cursor:pointer}.univer-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.univer-items-center{align-items:center}.univer-justify-center{justify-content:center}.univer-gap-2{gap:.5rem}.univer-overflow-hidden{overflow:hidden}.univer-rounded{border-radius:.25rem}.\!univer-bg-primary-500{--tw-bg-opacity: 1 !important;background-color:#466af7!important;background-color:rgba(70,106,247,var(--tw-bg-opacity, 1))!important}.univer-bg-gray-200{--tw-bg-opacity: 1;background-color:#e3e5ea;background-color:rgba(227,229,234,var(--tw-bg-opacity, 1))}.univer-bg-gray-50{--tw-bg-opacity: 1;background-color:#f9fafb;background-color:rgba(249,250,251,var(--tw-bg-opacity, 1))}.univer-bg-primary-500{--tw-bg-opacity: 1;background-color:#466af7;background-color:rgba(70,106,247,var(--tw-bg-opacity, 1))}.univer-px-2{padding-left:.5rem;padding-right:.5rem}.univer-py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.univer-pr-5{padding-right:1.25rem}.univer-text-sm{font-size:.875rem;line-height:1.25rem}.univer-text-gray-200{--tw-text-opacity: 1;color:#e3e5ea;color:rgba(227,229,234,var(--tw-text-opacity, 1))}.univer-text-gray-400{--tw-text-opacity: 1;color:#979dac;color:rgba(151,157,172,var(--tw-text-opacity, 1))}.univer-text-gray-700{--tw-text-opacity: 1;color:#2c3040;color:rgba(44,48,64,var(--tw-text-opacity, 1))}.univer-text-white{--tw-text-opacity: 1;color:#fff;color:rgba(255,255,255,var(--tw-text-opacity, 1))}.univer-underline{text-decoration-line:underline}.univer-transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.univer-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\:\!univer-bg-primary-500:hover{--tw-bg-opacity: 1 !important;background-color:#466af7!important;background-color:rgba(70,106,247,var(--tw-bg-opacity, 1))!important}.hover\:univer-bg-gray-100:hover{--tw-bg-opacity: 1;background-color:#eeeff1;background-color:rgba(238,239,241,var(--tw-bg-opacity, 1))}.hover\:univer-bg-gray-200:hover{--tw-bg-opacity: 1;background-color:#e3e5ea;background-color:rgba(227,229,234,var(--tw-bg-opacity, 1))}.hover\:univer-bg-gray-300:hover{--tw-bg-opacity: 1;background-color:#cdd0d8;background-color:rgba(205,208,216,var(--tw-bg-opacity, 1))}.\[\&\>\*\]\:univer-inline-flex>*{display:inline-flex}.\[\&\>\*\]\:univer-h-6>*{height:1.5rem}.\[\&\>\*\]\:univer-items-center>*{align-items:center}.\[\&\>\*\]\:univer-rounded>*{border-radius:.25rem}.\[\&\>\*\]\:univer-px-1>*{padding-left:.25rem;padding-right:.25rem}.\[\&\>\*\]\:univer-transition-colors>*{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\:\[\&\>\*\]\:univer-bg-gray-300>*:hover{--tw-bg-opacity: 1;background-color:#cdd0d8;background-color:rgba(205,208,216,var(--tw-bg-opacity, 1))}.univer-ui-plugin-sheets-font-family{overflow:hidden;width:120px;font-size:var(--font-size-xs);text-overflow:ellipsis;white-space:nowrap}.univer-ui-plugin-sheets-font-family-item{font-size:var(--font-size-xs)}.univer-ui-plugin-sheets-font-size{width:28px;height:24px;font-size:var(--font-size-xs)}.univer-ui-plugin-sheets-font-size-input{height:24px;line-height:24px;background-color:transparent;border:none}.univer-ui-plugin-sheets-font-size-input input{font-size:var(--font-size-xs);background-color:transparent}.univer-popup-fixed{position:fixed;z-index:1020;top:-9999px;left:-9999px}.univer-menu-item-no-hover,.univer-menu-item-no-hover.univer-menu-item-active{background:none}.univer-menu-item-activated{background-color:rgb(var(--bg-color-hover))}.univer-menu-item-content{display:inline-flex;gap:var(--margin-xs);align-items:center}.univer-menu-item-selectable{position:relative;padding-left:var(--padding-xl)}.univer-menu-item-selectable-icon{position:absolute;left:0;display:inline-flex;align-items:center;font-size:var(--font-size-lg)}.univer-menu-item-more-icon{font-size:var(--font-size-sm);color:rgb(var(--text-color))}.univer-progress-bar{width:160px;height:4px;background-color:rgb(var(--border-color));border-radius:var(--border-radius-lg);margin-right:var(--margin-xs)}.univer-progress-bar-container{display:flex;align-items:center;margin:0 var(--margin-xs) 0 var(--margin-xs)}.univer-progress-bar-label{font-size:var(--font-size-xxs);color:rgb(var(--text-color-secondary));width:98px;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:var(--margin-xs);line-height:17px}.univer-progress-bar-inner{height:4px;border-radius:var(--border-radius-lg);transition:width .5s}.univer-progress-bar-close-button{background:none;border:none;font-size:var(--font-size-xxs);color:rgb(var(--text-color));cursor:pointer;padding:0;margin:0;line-height:1;display:flex;align-items:center}.univer-progress-bar-close-button:hover{color:rgb(var(--text-color-secondary))}.univer-shortcut-panel-group-title{height:40px;font-size:13px;font-weight:700;line-height:40px}.univer-shortcut-panel-item{display:flex;justify-content:space-between;height:40px;font-size:13px;line-height:40px}.univer-shortcut-panel-item-title{overflow:hidden;flex-grow:1;flex-shrink:1;max-width:200px;text-overflow:ellipsis;text-wrap:nowrap}.univer-shortcut-panel-item-shortcut{flex-grow:0;flex-shrink:0}.univer-shortcut-panel-item:not(:last-of-type){border-bottom:1px solid rgb(var(--grey-200))}.univer-float-dom-wrapper{z-index:10}.univer-float-dom{overflow:hidden}.univer-toolbar-btn{cursor:pointer;display:flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0;font-size:var(--font-size-lg);color:rgb(var(--text-color));background-color:transparent;border:none;border-radius:var(--border-radius-base);outline:none}.univer-toolbar-btn:not([disabled]):hover{background-color:rgb(var(--grey-100))}.univer-toolbar-btn[disabled]{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-btn-no-icon{padding:var(--padding-xs)}.univer-toolbar-btn-active{background-color:rgb(var(--grey-100))}.univer-toolbar-btn-active[disabled]{color:rgba(var(--text-color),.25)}.univer-toolbar{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:flex;align-items:center;box-sizing:border-box;height:32px;font-size:var(--font-size-base);color:rgb(var(--text-color));background-color:rgb(var(--bg-color-secondary));border-bottom:1px solid rgb(var(--border-color))}.univer-toolbar-container{flex:1;padding:0 var(--padding-lg);display:flex;gap:var(--margin-xs);align-items:center;justify-content:center;box-sizing:border-box;height:100%;margin:0 auto;max-width:100%;overflow:hidden}.univer-toolbar-more{max-width:80%}.univer-toolbar-more-container{display:grid;box-sizing:border-box;padding:var(--padding-sm);background-color:rgb(var(--bg-color-secondary));border-radius:var(--border-radius-base);box-shadow:var(--box-shadow-base)}.univer-toolbar-more-container .univer-toolbar-group{flex-wrap:wrap}.univer-toolbar-more-container .univer-toolbar-group:not(:last-child):after{content:normal;content:initial}.univer-toolbar-more-container .univer-toolbar-group:not(:last-child)>*{margin-bottom:var(--margin-xs)}.univer-toolbar-group{display:flex;gap:var(--margin-xs);align-items:center;flex-shrink:0}.univer-toolbar-group>*{flex-shrink:0}.univer-toolbar-group:not(:last-child):not(:empty):after{content:"";display:block;width:1px;height:20px;background-color:rgb(var(--border-color));flex-shrink:0}.univer-toolbar-item-select-button{cursor:pointer;position:relative;overflow:hidden;display:flex;align-items:center;font-size:var(--font-size-lg);border-radius:var(--border-radius-base)}.univer-toolbar-item-select-button-disabled{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-item-select-button-disabled.univer-toolbar-item-select-button-activated{color:rgba(var(--text-color),.25)}.univer-toolbar-item-select-button-disabled.univer-toolbar-item-select-button-activated .univer-toolbar-item-select-button-label:hover,.univer-toolbar-item-select-button-disabled.univer-toolbar-item-select-button-activated .univer-toolbar-item-select-button-arrow:hover{background-color:rgb(var(--grey-100))!important}.univer-toolbar-item-select-button-activated{background-color:rgb(var(--grey-100))}.univer-toolbar-item-select-button-label{position:relative;z-index:1;display:flex;align-items:center;height:100%;padding:0 var(--padding-xs)}.univer-toolbar-item-select{cursor:pointer;position:relative;display:flex;gap:var(--margin-xs);align-items:center;height:24px;padding:0 var(--padding-xs);font-size:var(--font-size-lg);border-radius:var(--border-radius-base)}.univer-toolbar-item-select-disabled{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-item-select:hover{background-color:rgb(var(--grey-100));border-radius:var(--border-radius-base)}.univer-toolbar-item-select-arrow{display:flex;align-items:center;height:100%;color:rgb(var(--grey-400))}.univer-toolbar-item-select-arrow-disabled{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-item-select-arrow-disabled.univer-toolbar-item-select-arrow-activated{color:rgba(var(--text-color),.25)}.univer-toolbar-item-select-arrow-disabled.univer-toolbar-item-select-arrow-activated:hover{background-color:rgb(var(--grey-100))}.univer-sidebar{position:relative;transform:translate(100%);box-sizing:border-box;width:0;height:100%;color:rgb(var(--text-color))}.univer-sidebar.univer-sidebar-open{transform:translate(0);width:380px}.univer-sidebar-container{overflow-y:auto;display:grid;grid-template-rows:auto 1fr auto;box-sizing:border-box;width:100%;height:0;min-height:100%;margin:auto;background-color:rgb(var(--bg-color-secondary));border-bottom:1px solid rgb(var(--border-color));border-left:1px solid rgb(var(--border-color));scrollbar-color:rgba(var(--scrollbar-color),.7) transparent;scrollbar-gutter:auto;scrollbar-width:thin}.univer-sidebar-header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;height:44px;padding:var(--padding-xl) var(--padding-xl) 0;font-size:var(--font-size-lg);font-weight:500;background:rgb(var(--bg-color-secondary));box-sizing:border-box;z-index:10}.univer-sidebar-header-close{cursor:pointer;color:rgb(var(--text-color-secondary))}.univer-sidebar-body{padding:0 var(--padding-xl);box-sizing:border-box}.univer-sidebar-footer{position:sticky;bottom:0;padding:var(--padding-xl);background:rgb(var(--bg-color-secondary));box-sizing:border-box}.univer-zen-zone{position:absolute;z-index:-1;transition:all .2s ease-in-out;display:flex;flex-direction:row}.univer-zen-zone-open{z-index:100;top:0;left:0;width:100%;height:100%;background:rgb(var(--bg-color));opacity:1}.univer-zen-zone-close{opacity:0}.univer-zen-zone-editor-container{flex:1;position:relative}.univer-global-zone{position:absolute;display:none}.univer-global-zone-open{z-index:100;top:0;left:0;display:block;width:100%;height:100%;background:rgb(var(--bg-color))}.univer-global-zone-close{display:none}.univer-workbench-layout{display:flex;flex-direction:column;height:100%;background-color:rgb(var(--bg-color));min-height:0;position:relative}.univer-workbench-custom-header{position:relative;display:flex;flex-direction:column;min-height:0;background-color:rgb(var(--color-white))}.univer-workbench-container{position:relative;display:flex;flex:1;flex-direction:column;min-height:0}.univer-workbench-container-header{position:relative;z-index:10;width:100%}.univer-workbench-container-wrapper{display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:100%;height:100%;overflow:hidden}.univer-workbench-container-content{position:relative;overflow:hidden;display:grid;grid-template-rows:auto 1fr;flex:1;background-color:rgb(var(--bg-color-secondary));border-bottom:1px solid rgb(var(--border-color))}.univer-workbench-container-doc-content{background:rgb(var(--bg-color-secondary))}.univer-workbench-container-canvas{position:relative;overflow:hidden}.univer-workbench-container-left-sidebar,.univer-workbench-container-sidebar{height:100%}.univer-mobile-menu-container{min-width:32px;max-width:200px;display:grid;grid-gap:4px;background-color:#000;border-radius:4px;padding:4px 8px}.univer-mobile-menu-item{display:flex;flex-direction:column;justify-content:center;align-items:center;border:none;background:none;color:#fff;width:48px}.univer-mobile-menu-item>svg{font-size:18px;height:18px;width:18px}.univer-mobile-menu-item>span{width:100%;margin-top:2px;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.univer-app-layout{display:flex;flex-direction:column;height:100%;background-color:rgb(var(--bg-color));min-height:0;position:relative}.univer-app-custom-header{position:relative;display:flex;flex-direction:column;min-height:0;background-color:rgb(var(--color-white))}.univer-app-header{width:100vw}.univer-app-container{position:relative;display:flex;flex:1;flex-direction:column;min-height:0}.univer-app-container-header{position:relative;z-index:10;width:100%}.univer-app-container-wrapper{display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:100%;height:100%;overflow:hidden}.univer-app-container-content{position:relative;overflow:hidden;display:grid;grid-template-rows:auto 1fr;flex:1;background-color:rgb(var(--bg-color-secondary));border-bottom:1px solid rgb(var(--border-color))}.univer-app-container-canvas{position:relative;overflow:hidden}.univer-app-container-left-sidebar,.univer-app-container-sidebar{height:100%}.univer-notification{position:fixed;z-index:1000;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;box-sizing:border-box;margin:var(--margin-xs) 0}.univer-notification-notice{display:flex;gap:var(--margin-xs);justify-content:space-between;width:280px;padding:var(--padding-lg);font-size:var(--font-size-lg);background-color:rgb(var(--color-white));border-radius:var(--border-radius-base);box-shadow:var(--box-shadow-lg)}.univer-notification-notice-wrapper{margin:var(--margin-xs) var(--margin-base)}.univer-notification-notice-content{display:inline-flex;gap:var(--margin-xs);align-items:center;align-items:flex-start}.univer-notification-notice-close{cursor:pointer;display:flex;align-items:center;justify-content:center;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;padding:var(--padding-xs);color:rgb(var(--text-color-secondary));border-radius:var(--border-radius-base);outline:none;transition:background-color .2s}.univer-notification-notice-close:hover{background-color:rgb(var(--bg-color-hover))}.univer-notification-icon{padding:var(--padding-xs)}.univer-notification-icon-success{color:rgb(var(--success-color))}.univer-notification-icon-info{color:rgb(var(--info-color))}.univer-notification-icon-warning{color:rgb(var(--warning-color))}.univer-notification-icon-error{color:rgb(var(--error-color))}.univer-notification-content-container{display:inline-flex;flex-direction:column;gap:var(--margin-xs);align-items:flex-start;padding-top:var(--padding-xs)}.univer-notification-title{color:rgb(var(--text-color))}.univer-notification-content{color:rgb(var(--text-color-secondary))}.univer-notification-content-ellipsis{overflow:hidden;display:-webkit-box;text-overflow:ellipsis;-webkit-box-orient:vertical}.univer-notification-top,.univer-notification-topLeft,.univer-notification-topRight{top:0}.univer-notification-bottom,.univer-notification-bottomRight,.univer-notification-bottomLeft{bottom:0}.univer-notification-bottomRight,.univer-notification-topRight{right:0}.univer-notification-fade{overflow:hidden;transition:all .3s}.univer-notification-fade-appear-prepare{opacity:0}.univer-notification-fade-appear-start{transform:translate(100%);opacity:0}.univer-notification-fade-appear-active{transform:translate(0);opacity:1}.univer-notification-fade-appear,.univer-notification-fade-enter{opacity:0;animation-play-state:paused;animation-duration:.3s;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-fill-mode:both}.univer-notification-fade-leave{animation-duration:.3s;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-fill-mode:both;animation-play-state:paused}.univer-notification-fade-appear.univer-notification-fade-appear-active,.univer-notification-fade-enter.univer-notification-fade-enter-active{animation-name:univer-notification-fade-in;animation-play-state:running}.univer-notification-fade-leave.univer-notification-fade-leave-active{animation-name:univer-notification-fade-out;animation-play-state:running}@keyframes univer-notification-fade-in{0%{opacity:0}to{opacity:1}}@keyframes univer-notification-fade-out{0%{opacity:1}to{opacity:0}}
@@ -1,6 +1,6 @@
1
- import { default as React } from 'react';
2
1
  import { Observable } from 'rxjs';
3
2
  import { IMenuSelectorItem } from '../../services/menu/menu';
3
+ import { default as React } from 'react';
4
4
  export type ICustomLabelProps<T = undefined> = {
5
5
  value?: string | number | undefined;
6
6
  value$?: Observable<T>;
@@ -11,4 +11,4 @@ export type ICustomLabelProps<T = undefined> = {
11
11
  * The component to render toolbar item label and menu item label.
12
12
  * @param props
13
13
  */
14
- export declare function CustomLabel(props: ICustomLabelProps): JSX.Element;
14
+ export declare function CustomLabel(props: ICustomLabelProps): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,2 @@
1
- import { default as React } from 'react';
2
1
  import { IFontFamilyProps } from './interface';
3
- export declare const FontFamily: (props: IFontFamilyProps) => React.JSX.Element;
2
+ export declare const FontFamily: (props: IFontFamilyProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,2 @@
1
- import { default as React } from 'react';
2
1
  import { IFontFamilyItemProps } from './interface';
3
- export declare const FontFamilyItem: (props: IFontFamilyItemProps) => React.JSX.Element;
2
+ export declare const FontFamilyItem: (props: IFontFamilyItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,2 @@
1
- import { default as React } from 'react';
2
1
  import { IFontSizeProps } from './interface';
3
- export declare const FontSize: (props: IFontSizeProps) => React.JSX.Element;
2
+ export declare const FontSize: (props: IFontSizeProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export { useEvent } from './event';
17
+ export { useObservable, useObservableRef } from './observable';
18
+ export { useUpdateEffect } from './update-effect';
19
+ export { useClickOutSide } from './useClickOutSide';
20
+ export { useVirtualList } from './virtual-list';
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const useUpdateEffect: typeof React.useEffect;
@@ -0,0 +1,5 @@
1
+ import { RefObject } from 'react';
2
+ export interface IUseClickOutSideOptions {
3
+ handler: () => void;
4
+ }
5
+ export declare function useClickOutSide(ref: RefObject<HTMLElement>, opts: IUseClickOutSideOptions): void;
@@ -1,5 +1,4 @@
1
1
  import { IValueOption } from '../../../services/menu/menu';
2
- import { default as React } from 'react';
3
2
  export interface IBaseMenuProps {
4
3
  parentKey?: string | number;
5
4
  menuType?: string;
@@ -12,4 +11,4 @@ export interface IBaseMenuProps {
12
11
  overViewport?: 'scroll';
13
12
  onOptionSelect?: (option: IValueOption) => void;
14
13
  }
15
- export declare const Menu: (props: IBaseMenuProps) => React.JSX.Element;
14
+ export declare const Menu: (props: IBaseMenuProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,5 @@
1
- import { default as React } from 'react';
2
1
  import { IBaseMenuProps } from '../desktop/Menu';
3
2
  /**
4
3
  * The mobile context menu wrapper.
5
4
  */
6
- export declare function MobileMenu(props: IBaseMenuProps): React.JSX.Element | null;
5
+ export declare function MobileMenu(props: IBaseMenuProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
- import { default as React } from 'react';
3
2
  declare const meta: Meta;
4
3
  export default meta;
5
4
  export declare const Playground: {
6
- render(): React.JSX.Element;
5
+ render(): import("react/jsx-runtime").JSX.Element;
7
6
  };
@@ -1,5 +1,4 @@
1
1
  import { Placement } from 'rc-notification/es/interface';
2
- import { default as React } from 'react';
3
2
  import { Subject } from 'rxjs';
4
3
  export type NotificationType = 'success' | 'info' | 'warning' | 'error';
5
4
  export interface INotificationOptions {
@@ -37,8 +36,8 @@ export interface INotificationOptions {
37
36
  lines?: number;
38
37
  }
39
38
  export declare const notificationObserver: Subject<INotificationOptions>;
40
- export declare const PureContent: (props: INotificationOptions) => React.JSX.Element;
41
- export declare function Notification(): React.JSX.Element | null;
39
+ export declare const PureContent: (props: INotificationOptions) => import("react/jsx-runtime").JSX.Element;
40
+ export declare function Notification(): import("react/jsx-runtime").JSX.Element | null;
42
41
  export declare const notification: {
43
42
  show: (options: INotificationOptions) => void;
44
43
  };
@@ -1,8 +1,7 @@
1
1
  import { Meta } from '@storybook/react';
2
- import { default as React } from 'react';
3
2
  import { Notification } from './Notification';
4
3
  declare const meta: Meta<typeof Notification>;
5
4
  export default meta;
6
5
  export declare const Playground: {
7
- render: () => React.JSX.Element;
6
+ render: () => import("react/jsx-runtime").JSX.Element;
8
7
  };
@@ -1,4 +1,18 @@
1
- import { default as React } from 'react';
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
2
16
  export interface IProgressBarProps {
3
17
  progress: {
4
18
  done: number;
@@ -9,4 +23,4 @@ export interface IProgressBarProps {
9
23
  onTerminate?: () => void;
10
24
  onClearProgress?: () => void;
11
25
  }
12
- export declare function ProgressBar(props: IProgressBarProps): React.JSX.Element;
26
+ export declare function ProgressBar(props: IProgressBarProps): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,10 @@
1
+ import { IUniverUIConfig } from '../config.schema';
2
+ import { IUIController } from './ui.controller';
1
3
  import { Disposable, Injector, IUniverInstanceService, LifecycleService } from '@univerjs/core';
2
4
  import { IRenderManagerService } from '@univerjs/engine-render';
3
5
  import { ILayoutService } from '../../services/layout/layout.service';
4
- import { IUIPartsService } from '../../services/parts/parts.service';
5
- import { IUniverUIConfig } from '../config.schema';
6
6
  import { IMenuManagerService } from '../../services/menu/menu-manager.service';
7
- import { IUIController } from './ui.controller';
7
+ import { IUIPartsService } from '../../services/parts/parts.service';
8
8
  export declare class MobileUIController extends Disposable implements IUIController {
9
9
  private readonly _config;
10
10
  private readonly _instanceService;
@@ -53,6 +53,7 @@ export interface IFacadeSubmenuItem {
53
53
  * This is a build for adding a menu to Univer. Please notice that until the `appendTo` method is called,
54
54
  * the menu item is not added to the UI. Please note that this menu cannot have submenus. If you want to
55
55
  * have submenus, please use `FSubmenu`.
56
+ * @hideconstructor
56
57
  */
57
58
  export declare class FMenu extends FBase {
58
59
  private readonly _item;
@@ -75,6 +76,9 @@ export declare class FMenu extends FBase {
75
76
  */
76
77
  appendTo(path: string): void;
77
78
  }
79
+ /**
80
+ * @hideconstructor
81
+ */
78
82
  export declare class FSubmenu extends FBase {
79
83
  private readonly _item;
80
84
  protected readonly _injector: Injector;
@@ -1,5 +1,8 @@
1
1
  import { IShortcutItem, IShortcutService } from '@univerjs/ui';
2
2
  import { FBase, Injector } from '@univerjs/core';
3
+ /**
4
+ * @hideconstructor
5
+ */
3
6
  export declare class FShortcut extends FBase {
4
7
  protected readonly _injector: Injector;
5
8
  protected readonly _shortcutService: IShortcutService;
@@ -1,6 +1,6 @@
1
1
  import { IDisposable, FUniver } from '@univerjs/core';
2
2
  import { IMessageProps } from '@univerjs/design';
3
- import { BuiltInUIPart, IDialogPartMethodOptions, ISidebarMethodOptions, ComponentManager } from '@univerjs/ui';
3
+ import { BuiltInUIPart, ComponentType, IComponentOptions, IDialogPartMethodOptions, ISidebarMethodOptions, ComponentManager } from '@univerjs/ui';
4
4
  import { IFacadeMenuItem, IFacadeSubmenuItem, FMenu, FSubmenu } from './f-menu-builder';
5
5
  import { FShortcut } from './f-shortcut';
6
6
  export interface IFUniverUIMixin {
@@ -117,6 +117,15 @@ export interface IFUniverUIMixin {
117
117
  * ```
118
118
  */
119
119
  registerUIPart(key: BuiltInUIPart, component: any): IDisposable;
120
+ /**
121
+ * register an component.
122
+ * @param component
123
+ * @example
124
+ * ```ts
125
+ * univerAPI.registerComponent('my-comp', () => React.createElement('h1', null, 'Custom Header'));
126
+ * ```
127
+ */
128
+ registerComponent(name: string, component: ComponentType, options?: IComponentOptions): IDisposable;
120
129
  }
121
130
  export declare class FUniverUIMixin extends FUniver implements IFUniverUIMixin {
122
131
  getURL(): URL;
@@ -133,6 +142,7 @@ export declare class FUniverUIMixin extends FUniver implements IFUniverUIMixin {
133
142
  setUIVisible(ui: BuiltInUIPart, visible: boolean): FUniver;
134
143
  isUIVisible(ui: BuiltInUIPart): boolean;
135
144
  registerUIPart(key: BuiltInUIPart, component: any): IDisposable;
145
+ registerComponent(name: string, component: any, options?: IComponentOptions): IDisposable;
136
146
  }
137
147
  declare module '@univerjs/core' {
138
148
  interface FUniver extends IFUniverUIMixin {
@@ -18,11 +18,9 @@ export * from './common';
18
18
  export { getHeaderFooterMenuHiddenObservable, getMenuHiddenObservable } from './common/menu-hidden-observable';
19
19
  export { mergeMenuConfigs } from './common/menu-merge-configs';
20
20
  export * from './components';
21
- export { useEvent } from './components/hooks/event';
22
21
  export { t } from './components/hooks/locale';
23
- export { useObservable, useObservableRef } from './components/hooks/observable';
22
+ export * from './components/hooks';
24
23
  export { RectPopup } from './views/components/popup/RectPopup';
25
- export { useVirtualList } from './components/hooks/virtual-list';
26
24
  export { Menu as UIMenu } from './components/menu/desktop/Menu';
27
25
  export { type INotificationOptions, type NotificationType } from './components/notification/Notification';
28
26
  export { ProgressBar } from './components/progress-bar/ProgressBar';
@@ -38,13 +36,13 @@ export { UniverMobileUIPlugin } from './mobile-ui-plugin';
38
36
  export { DesktopBeforeCloseService, IBeforeCloseService } from './services/before-close/before-close.service';
39
37
  export { CopyCommand, CutCommand, PasteCommand, SheetPasteShortKeyCommandName } from './services/clipboard/clipboard.command';
40
38
  export { supportClipboardAPI } from './services/clipboard/clipboard-utils';
41
- export { BrowserClipboardService, FILE__BMP_CLIPBOARD_MIME_TYPE, FILE__JPEG_CLIPBOARD_MIME_TYPE, FILE__WEBP_CLIPBOARD_MIME_TYPE, FILE_PNG_CLIPBOARD_MIME_TYPE, FILE_SVG_XML_CLIPBOARD_MIME_TYPE, HTML_CLIPBOARD_MIME_TYPE, IClipboardInterfaceService, PLAIN_TEXT_CLIPBOARD_MIME_TYPE, } from './services/clipboard/clipboard-interface.service';
39
+ export { BrowserClipboardService, FILE__BMP_CLIPBOARD_MIME_TYPE, FILE__JPEG_CLIPBOARD_MIME_TYPE, FILE__WEBP_CLIPBOARD_MIME_TYPE, FILE_PNG_CLIPBOARD_MIME_TYPE, FILE_SVG_XML_CLIPBOARD_MIME_TYPE, HTML_CLIPBOARD_MIME_TYPE, IClipboardInterfaceService, imageMimeTypeSet, PLAIN_TEXT_CLIPBOARD_MIME_TYPE, } from './services/clipboard/clipboard-interface.service';
42
40
  export { IConfirmService } from './services/confirm/confirm.service';
43
41
  export { DesktopConfirmService } from './services/confirm/desktop-confirm.service';
44
42
  export { ContextMenuService, type IContextMenuHandler, IContextMenuService, } from './services/contextmenu/contextmenu.service';
45
43
  export { DesktopDialogService } from './services/dialog/desktop-dialog.service';
46
44
  export { IDialogService } from './services/dialog/dialog.service';
47
- export { CanvasFloatDomService, type IFloatDomLayout } from './services/dom/canvas-dom-layer.service';
45
+ export { CanvasFloatDomService, type IFloatDom, type IFloatDomLayout } from './services/dom/canvas-dom-layer.service';
48
46
  export { DesktopGlobalZoneService } from './services/global-zone/desktop-global-zone.service';
49
47
  export { IGlobalZoneService } from './services/global-zone/global-zone.service';
50
48
  export { DesktopLayoutService, ILayoutService } from './services/layout/layout.service';
@@ -7,6 +7,7 @@ export declare const FILE__JPEG_CLIPBOARD_MIME_TYPE = "image/jpeg";
7
7
  export declare const FILE__BMP_CLIPBOARD_MIME_TYPE = "image/bmp";
8
8
  export declare const FILE__WEBP_CLIPBOARD_MIME_TYPE = "image/webp";
9
9
  export declare const FILE_SVG_XML_CLIPBOARD_MIME_TYPE = "image/svg+xml";
10
+ export declare const imageMimeTypeSet: Set<string>;
10
11
  /**
11
12
  * This interface provides an interface to access system's clipboard.
12
13
  */
@@ -15,7 +15,8 @@ export declare enum BuiltInUIPart {
15
15
  CUSTOM_HEADER = "custom-header",
16
16
  CUSTOM_LEFT = "custom-left",
17
17
  CUSTOM_RIGHT = "custom-right",
18
- CUSTOM_FOOTER = "custom-footer"
18
+ CUSTOM_FOOTER = "custom-footer",
19
+ TOOLBAR = "toolbar"
19
20
  }
20
21
  export interface IUIPartsService {
21
22
  componentRegistered$: Observable<ComponentPartKey>;
@@ -1,7 +1,6 @@
1
1
  import { IWorkbenchOptions } from '../controllers/ui/ui.controller';
2
- import { default as React } from 'react';
3
2
  export interface IUniverAppProps extends IWorkbenchOptions {
4
3
  mountContainer: HTMLElement;
5
4
  onRendered?: (container: HTMLElement) => void;
6
5
  }
7
- export declare function MobileApp(props: IUniverAppProps): React.JSX.Element;
6
+ export declare function MobileApp(props: IUniverAppProps): import("react/jsx-runtime").JSX.Element;
@@ -6,7 +6,7 @@ export interface IComponentContainerProps {
6
6
  fallback?: React.ReactNode;
7
7
  sharedProps?: Record<string, unknown>;
8
8
  }
9
- export declare function ComponentContainer(props: IComponentContainerProps): string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null;
9
+ export declare function ComponentContainer(props: IComponentContainerProps): string | number | bigint | boolean | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
10
10
  /**
11
11
  * Get a set of render functions to render components of a part.
12
12
  *
@@ -1,2 +1,16 @@
1
- import { default as React } from 'react';
2
- export declare function ConfirmPart(): React.JSX.Element[];
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export declare function ConfirmPart(): import("react/jsx-runtime").JSX.Element[];
@@ -1,2 +1,16 @@
1
- import { default as React } from 'react';
2
- export declare function DesktopContextMenu(): React.JSX.Element;
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export declare function DesktopContextMenu(): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,16 @@
1
- import { default as React } from 'react';
2
- export declare function MobileContextMenu(): React.JSX.Element;
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export declare function MobileContextMenu(): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,16 @@
1
- import { default as React } from 'react';
2
- export declare function DialogPart(): React.JSX.Element;
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export declare function DialogPart(): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,18 @@
1
- import { default as React } from 'react';
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
2
16
  export declare const FloatDom: ({ unitId }: {
3
17
  unitId?: string;
4
- }) => React.JSX.Element[] | undefined;
18
+ }) => import("react/jsx-runtime").JSX.Element[] | undefined;
@@ -1,2 +1,16 @@
1
- import { default as React } from 'react';
2
- export declare function GlobalZone(): React.JSX.Element | null;
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export declare function GlobalZone(): import("react/jsx-runtime").JSX.Element | null;
@@ -1,2 +1,16 @@
1
- import { default as React } from 'react';
2
- export declare function CanvasPopup(): React.JSX.Element[];
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export declare function CanvasPopup(): import("react/jsx-runtime").JSX.Element[];