@univerjs/slides-ui 0.7.0-nightly.202505061607 → 0.7.0-nightly.202505071607

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -16,7 +16,7 @@
16
16
  `,onClick:()=>v(g),children:u.jsx("span",{className:"univer-px-2 univer-py-1.5 univer-align-middle",children:n.t(g.label)})},g.index))}),open:i,onOpenChange:d,children:u.jsxs("div",{className:D.clsx(`
17
17
  univer-flex univer-items-center univer-justify-center univer-rounded univer-border
18
18
  univer-border-solid univer-border-gray-200 univer-bg-white univer-p-1
19
- `,{"univer-bg-gray-100":i}),children:[u.jsx($e,{className:"univer-fill-green-500 univer-text-gray-900"}),p&&u.jsx(xe,{className:"univer-text-[10px] univer-text-gray-400"})]})})})}function Ye(){var m,_;const r=f.useDependency(c.IUniverInstanceService),e=f.useDependency(c.ICommandService),t=f.useDependency(C.IRenderManagerService),n=f.useDependency(c.LocaleService),i=b.useRef(null),s=r.getCurrentUnitForType(c.UniverInstanceType.UNIVER_SLIDE),a=s==null?void 0:s.getPages(),o=s==null?void 0:s.getPageOrder();if(!a||!o)return null;const l=o.map(g=>a[g]),[h,d]=b.useState((_=(m=s==null?void 0:s.getActivePage())==null?void 0:m.id)!=null?_:null),v=b.useMemo(()=>l.map(()=>b.createRef()),[l]);b.useEffect(()=>{const g=s==null?void 0:s.activePage$.subscribe(I=>{var O;const y=(O=I==null?void 0:I.id)!=null?O:null;y&&d(y)});return()=>{g==null||g.unsubscribe()}},[]),b.useEffect(()=>{v.forEach((g,I)=>{var y;if(g.current){const O=l[I];(y=t.getRenderById(O.id))==null||y.engine.setContainer(g.current)}}),v.length>0&&e.syncExecuteCommand(we.id,{unitId:s==null?void 0:s.getUnitId()})},[v,l,t,e,s]);const p=b.useCallback(g=>{e.syncExecuteCommand(Re.id,{id:g,unitId:s==null?void 0:s.getUnitId()})},[e,s]),S=b.useCallback(()=>{e.syncExecuteCommand(Te.id,{unitId:s==null?void 0:s.getUnitId()})},[e,s]);return u.jsx("aside",{ref:i,className:D.clsx(`
19
+ `,{"univer-bg-gray-100":i}),children:[u.jsx($e,{className:"univer-fill-primary-600 univer-text-gray-900"}),p&&u.jsx(xe,{className:"univer-text-[10px] univer-text-gray-400"})]})})})}function Ye(){var m,_;const r=f.useDependency(c.IUniverInstanceService),e=f.useDependency(c.ICommandService),t=f.useDependency(C.IRenderManagerService),n=f.useDependency(c.LocaleService),i=b.useRef(null),s=r.getCurrentUnitForType(c.UniverInstanceType.UNIVER_SLIDE),a=s==null?void 0:s.getPages(),o=s==null?void 0:s.getPageOrder();if(!a||!o)return null;const l=o.map(g=>a[g]),[h,d]=b.useState((_=(m=s==null?void 0:s.getActivePage())==null?void 0:m.id)!=null?_:null),v=b.useMemo(()=>l.map(()=>b.createRef()),[l]);b.useEffect(()=>{const g=s==null?void 0:s.activePage$.subscribe(I=>{var O;const y=(O=I==null?void 0:I.id)!=null?O:null;y&&d(y)});return()=>{g==null||g.unsubscribe()}},[]),b.useEffect(()=>{v.forEach((g,I)=>{var y;if(g.current){const O=l[I];(y=t.getRenderById(O.id))==null||y.engine.setContainer(g.current)}}),v.length>0&&e.syncExecuteCommand(we.id,{unitId:s==null?void 0:s.getUnitId()})},[v,l,t,e,s]);const p=b.useCallback(g=>{e.syncExecuteCommand(Re.id,{id:g,unitId:s==null?void 0:s.getUnitId()})},[e,s]),S=b.useCallback(()=>{e.syncExecuteCommand(Te.id,{unitId:s==null?void 0:s.getUnitId()})},[e,s]);return u.jsx("aside",{ref:i,className:D.clsx(`
20
20
  univer-flex univer-h-full univer-w-64 univer-flex-col univer-overflow-y-auto univer-overflow-x-hidden
21
21
  `,D.scrollbarClassName),children:u.jsxs("div",{className:"univer-px-4",children:[u.jsx("header",{className:"univer-flex univer-justify-center univer-pt-4",children:u.jsx("a",{className:`
22
22
  univer-box-border univer-block univer-h-8 univer-w-full univer-cursor-pointer
package/lib/es/index.js CHANGED
@@ -1831,7 +1831,7 @@ function Ln(n) {
1831
1831
  "univer-bg-gray-100": r
1832
1832
  }),
1833
1833
  children: [
1834
- /* @__PURE__ */ u(Ut, { className: "univer-fill-green-500 univer-text-gray-900" }),
1834
+ /* @__PURE__ */ u(Ut, { className: "univer-fill-primary-600 univer-text-gray-900" }),
1835
1835
  g && /* @__PURE__ */ u(Xe, { className: "univer-text-[10px] univer-text-gray-400" })
1836
1836
  ]
1837
1837
  }
package/lib/index.css CHANGED
@@ -1 +1 @@
1
- .univer-absolute{position:absolute}.univer-relative{position:relative}.univer-bottom-0{bottom:0}.univer-z-10{z-index:10}.univer-m-0{margin:0}.univer-my-4{margin-top:16px;margin-bottom:16px}.univer-mt-2\.5{margin-top:10px}.univer-mt-5{margin-top:20px}.univer-box-border{box-sizing:border-box}.univer-block{display:block}.univer-flex{display:flex}.univer-grid{display:grid}.univer-h-32{height:128px}.univer-h-8{height:32px}.univer-h-full{height:100%}.univer-w-1\/2{width:50%}.univer-w-1\/3{width:33.333333%}.univer-w-11\/12{width:91.666667%}.univer-w-52{width:208px}.univer-w-64{width:256px}.univer-w-full{width:100%}.univer-cursor-pointer{cursor:pointer}.univer-list-none{list-style-type:none}.univer-flex-col{flex-direction:column}.univer-items-start{align-items:flex-start}.univer-items-center{align-items:center}.univer-justify-center{justify-content:center}.univer-gap-1{gap:4px}.univer-gap-2{gap:8px}.univer-overflow-y-auto{overflow-y:auto}.univer-overflow-x-hidden{overflow-x:hidden}.univer-rounded{border-radius:4px}.univer-rounded-lg{border-radius:8px}.univer-rounded-md{border-radius:6px}.univer-border{border-width:1px}.univer-border-t{border-top-width:1px}.univer-border-solid{border-style:solid}.univer-border-gray-200{--tw-border-opacity: 1;border-color:#e3e5ea;border-color:rgba(227,229,234,var(--tw-border-opacity, 1))}.univer-border-t-gray-200{--tw-border-opacity: 1;border-top-color:#e3e5ea;border-top-color:rgba(227,229,234,var(--tw-border-opacity, 1))}.univer-bg-gray-100{--tw-bg-opacity: 1;background-color:#eeeff1;background-color:rgba(238,239,241,var(--tw-bg-opacity, 1))}.univer-bg-white{--tw-bg-opacity: 1;background-color:#fff;background-color:rgba(255,255,255,var(--tw-bg-opacity, 1))}.univer-fill-green-500{fill:#0da471}.univer-fill-primary-600{fill:#2c53f1}.univer-p-1{padding:4px}.univer-p-1\.5{padding:6px}.univer-p-2{padding:8px}.univer-p-4{padding:16px}.univer-px-2{padding-left:8px;padding-right:8px}.univer-px-4{padding-left:16px;padding-right:16px}.univer-py-1\.5{padding-top:6px;padding-bottom:6px}.univer-pt-4{padding-top:16px}.univer-text-left{text-align:left}.univer-text-center{text-align:center}.univer-align-middle{vertical-align:middle}.univer-text-\[10px\]{font-size:10px}.univer-text-sm{font-size:14px;line-height:20px}.univer-leading-8{line-height:32px}.univer-text-gray-400{--tw-text-opacity: 1;color:#7d8698;color:rgba(125,134,152,var(--tw-text-opacity, 1))}.univer-text-gray-600{--tw-text-opacity: 1;color:#31363f;color:rgba(49,54,63,var(--tw-text-opacity, 1))}.univer-text-gray-900{--tw-text-opacity: 1;color:#1b1c1f;color:rgba(27,28,31,var(--tw-text-opacity, 1))}.univer-text-primary-600{--tw-text-opacity: 1;color:#2c53f1;color:rgba(44,83,241,var(--tw-text-opacity, 1))}.univer-shadow-lg{--tw-shadow: 0px 4px 6px 0px rgba(30, 40, 77, .05), 0px 10px 15px -3px rgba(30, 40, 77, .1);--tw-shadow-colored: 0px 4px 6px 0px var(--tw-shadow-color), 0px 10px 15px -3px var(--tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 4px 6px #1e284d0d,0 10px 15px -3px #1e284d1a;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--tw-shadow)}.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-border-primary-600:hover{--tw-border-opacity: 1;border-color:#2c53f1;border-color:rgba(44,83,241,var(--tw-border-opacity, 1))}.hover\:univer-bg-gray-100:hover{--tw-bg-opacity: 1;background-color:#eeeff1;background-color:rgba(238,239,241,var(--tw-bg-opacity, 1))}.\[\&\>div\]\:univer-border-primary-600>div{--tw-border-opacity: 1;border-color:#2c53f1;border-color:rgba(44,83,241,var(--tw-border-opacity, 1))}.\[\&\>span\]\:univer-text-primary-600>span{--tw-text-opacity: 1;color:#2c53f1;color:rgba(44,83,241,var(--tw-text-opacity, 1))}
1
+ .univer-absolute{position:absolute}.univer-relative{position:relative}.univer-bottom-0{bottom:0}.univer-z-10{z-index:10}.univer-m-0{margin:0}.univer-my-4{margin-top:16px;margin-bottom:16px}.univer-mt-2\.5{margin-top:10px}.univer-mt-5{margin-top:20px}.univer-box-border{box-sizing:border-box}.univer-block{display:block}.univer-flex{display:flex}.univer-grid{display:grid}.univer-h-32{height:128px}.univer-h-8{height:32px}.univer-h-full{height:100%}.univer-w-1\/2{width:50%}.univer-w-1\/3{width:33.333333%}.univer-w-11\/12{width:91.666667%}.univer-w-52{width:208px}.univer-w-64{width:256px}.univer-w-full{width:100%}.univer-cursor-pointer{cursor:pointer}.univer-list-none{list-style-type:none}.univer-flex-col{flex-direction:column}.univer-items-start{align-items:flex-start}.univer-items-center{align-items:center}.univer-justify-center{justify-content:center}.univer-gap-1{gap:4px}.univer-gap-2{gap:8px}.univer-overflow-y-auto{overflow-y:auto}.univer-overflow-x-hidden{overflow-x:hidden}.univer-rounded{border-radius:4px}.univer-rounded-lg{border-radius:8px}.univer-rounded-md{border-radius:6px}.univer-border{border-width:1px}.univer-border-t{border-top-width:1px}.univer-border-solid{border-style:solid}.univer-border-gray-200{border-color:var(--univer-gray-200)}.univer-border-t-gray-200{border-top-color:var(--univer-gray-200)}.univer-bg-gray-100{background-color:var(--univer-gray-100)}.univer-bg-white{background-color:var(--univer-white)}.univer-fill-primary-600{fill:var(--univer-primary-600)}.univer-p-1{padding:4px}.univer-p-1\.5{padding:6px}.univer-p-2{padding:8px}.univer-p-4{padding:16px}.univer-px-2{padding-left:8px;padding-right:8px}.univer-px-4{padding-left:16px;padding-right:16px}.univer-py-1\.5{padding-top:6px;padding-bottom:6px}.univer-pt-4{padding-top:16px}.univer-text-left{text-align:left}.univer-text-center{text-align:center}.univer-align-middle{vertical-align:middle}.univer-text-\[10px\]{font-size:10px}.univer-text-sm{font-size:14px;line-height:20px}.univer-leading-8{line-height:32px}.univer-text-gray-400{color:var(--univer-gray-400)}.univer-text-gray-600{color:var(--univer-gray-600)}.univer-text-gray-900{color:var(--univer-gray-900)}.univer-text-primary-600{color:var(--univer-primary-600)}.univer-shadow-lg{--tw-shadow: 0px 4px 6px 0px rgba(30, 40, 77, .05), 0px 10px 15px -3px rgba(30, 40, 77, .1);--tw-shadow-colored: 0px 4px 6px 0px var(--tw-shadow-color), 0px 10px 15px -3px var(--tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 4px 6px #1e284d0d,0 10px 15px -3px #1e284d1a;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--tw-shadow)}.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-border-primary-600:hover{border-color:var(--univer-primary-600)}.hover\:univer-bg-gray-100:hover{background-color:var(--univer-gray-100)}.\[\&\>div\]\:univer-border-primary-600>div{border-color:var(--univer-primary-600)}.\[\&\>span\]\:univer-text-primary-600>span{color:var(--univer-primary-600)}
package/lib/index.js CHANGED
@@ -1831,7 +1831,7 @@ function Ln(n) {
1831
1831
  "univer-bg-gray-100": r
1832
1832
  }),
1833
1833
  children: [
1834
- /* @__PURE__ */ u(Ut, { className: "univer-fill-green-500 univer-text-gray-900" }),
1834
+ /* @__PURE__ */ u(Ut, { className: "univer-fill-primary-600 univer-text-gray-900" }),
1835
1835
  g && /* @__PURE__ */ u(Xe, { className: "univer-text-[10px] univer-text-gray-400" })
1836
1836
  ]
1837
1837
  }
package/lib/umd/index.js CHANGED
@@ -16,7 +16,7 @@
16
16
  `,onClick:()=>v(p),children:u.jsx("span",{className:"univer-px-2 univer-py-1.5 univer-align-middle",children:n.t(p.label)})},p.index))}),open:i,onOpenChange:d,children:u.jsxs("div",{className:x.clsx(`
17
17
  univer-flex univer-items-center univer-justify-center univer-rounded univer-border
18
18
  univer-border-solid univer-border-gray-200 univer-bg-white univer-p-1
19
- `,{"univer-bg-gray-100":i}),children:[u.jsx(Re,{className:"univer-fill-green-500 univer-text-gray-900"}),_&&u.jsx(_e,{className:"univer-text-[10px] univer-text-gray-400"})]})})})}function Ye(){var I,m;const r=f.useDependency(a.IUniverInstanceService),e=f.useDependency(a.ICommandService),t=f.useDependency(S.IRenderManagerService),n=f.useDependency(a.LocaleService),i=b.useRef(null),s=r.getCurrentUnitForType(a.UniverInstanceType.UNIVER_SLIDE),c=s==null?void 0:s.getPages(),o=s==null?void 0:s.getPageOrder();if(!c||!o)return null;const l=o.map(p=>c[p]),[g,d]=b.useState((m=(I=s==null?void 0:s.getActivePage())==null?void 0:I.id)!=null?m:null),v=b.useMemo(()=>l.map(()=>b.createRef()),[l]);b.useEffect(()=>{const p=s==null?void 0:s.activePage$.subscribe(E=>{var T;const D=(T=E==null?void 0:E.id)!=null?T:null;D&&d(D)});return()=>{p==null||p.unsubscribe()}},[]),b.useEffect(()=>{v.forEach((p,E)=>{var D;if(p.current){const T=l[E];(D=t.getRenderById(T.id))==null||D.engine.setContainer(p.current)}}),v.length>0&&e.syncExecuteCommand(Pe.id,{unitId:s==null?void 0:s.getUnitId()})},[v,l,t,e,s]);const _=b.useCallback(p=>{e.syncExecuteCommand(Te.id,{id:p,unitId:s==null?void 0:s.getUnitId()})},[e,s]),C=b.useCallback(()=>{e.syncExecuteCommand(De.id,{unitId:s==null?void 0:s.getUnitId()})},[e,s]);return u.jsx("aside",{ref:i,className:x.clsx(`
19
+ `,{"univer-bg-gray-100":i}),children:[u.jsx(Re,{className:"univer-fill-primary-600 univer-text-gray-900"}),_&&u.jsx(_e,{className:"univer-text-[10px] univer-text-gray-400"})]})})})}function Ye(){var I,m;const r=f.useDependency(a.IUniverInstanceService),e=f.useDependency(a.ICommandService),t=f.useDependency(S.IRenderManagerService),n=f.useDependency(a.LocaleService),i=b.useRef(null),s=r.getCurrentUnitForType(a.UniverInstanceType.UNIVER_SLIDE),c=s==null?void 0:s.getPages(),o=s==null?void 0:s.getPageOrder();if(!c||!o)return null;const l=o.map(p=>c[p]),[g,d]=b.useState((m=(I=s==null?void 0:s.getActivePage())==null?void 0:I.id)!=null?m:null),v=b.useMemo(()=>l.map(()=>b.createRef()),[l]);b.useEffect(()=>{const p=s==null?void 0:s.activePage$.subscribe(E=>{var T;const D=(T=E==null?void 0:E.id)!=null?T:null;D&&d(D)});return()=>{p==null||p.unsubscribe()}},[]),b.useEffect(()=>{v.forEach((p,E)=>{var D;if(p.current){const T=l[E];(D=t.getRenderById(T.id))==null||D.engine.setContainer(p.current)}}),v.length>0&&e.syncExecuteCommand(Pe.id,{unitId:s==null?void 0:s.getUnitId()})},[v,l,t,e,s]);const _=b.useCallback(p=>{e.syncExecuteCommand(Te.id,{id:p,unitId:s==null?void 0:s.getUnitId()})},[e,s]),C=b.useCallback(()=>{e.syncExecuteCommand(De.id,{unitId:s==null?void 0:s.getUnitId()})},[e,s]);return u.jsx("aside",{ref:i,className:x.clsx(`
20
20
  univer-flex univer-h-full univer-w-64 univer-flex-col univer-overflow-y-auto univer-overflow-x-hidden
21
21
  `,x.scrollbarClassName),children:u.jsxs("div",{className:"univer-px-4",children:[u.jsx("header",{className:"univer-flex univer-justify-center univer-pt-4",children:u.jsx("a",{className:`
22
22
  univer-box-border univer-block univer-h-8 univer-w-full univer-cursor-pointer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/slides-ui",
3
- "version": "0.7.0-nightly.202505061607",
3
+ "version": "0.7.0-nightly.202505071607",
4
4
  "private": false,
5
5
  "description": "Univer normal ui-plugin-slides",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -55,14 +55,14 @@
55
55
  },
56
56
  "dependencies": {
57
57
  "@univerjs/icons": "^0.3.24",
58
- "@univerjs/design": "0.7.0-nightly.202505061607",
59
- "@univerjs/docs": "0.7.0-nightly.202505061607",
60
- "@univerjs/core": "0.7.0-nightly.202505061607",
61
- "@univerjs/docs-ui": "0.7.0-nightly.202505061607",
62
- "@univerjs/engine-render": "0.7.0-nightly.202505061607",
63
- "@univerjs/slides": "0.7.0-nightly.202505061607",
64
- "@univerjs/ui": "0.7.0-nightly.202505061607",
65
- "@univerjs/drawing": "0.7.0-nightly.202505061607"
58
+ "@univerjs/design": "0.7.0-nightly.202505071607",
59
+ "@univerjs/docs-ui": "0.7.0-nightly.202505071607",
60
+ "@univerjs/core": "0.7.0-nightly.202505071607",
61
+ "@univerjs/drawing": "0.7.0-nightly.202505071607",
62
+ "@univerjs/slides": "0.7.0-nightly.202505071607",
63
+ "@univerjs/ui": "0.7.0-nightly.202505071607",
64
+ "@univerjs/docs": "0.7.0-nightly.202505071607",
65
+ "@univerjs/engine-render": "0.7.0-nightly.202505071607"
66
66
  },
67
67
  "devDependencies": {
68
68
  "postcss": "^8.5.3",