Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
refactor(*): migrate styles from LESS to Tailwind CSS (#5123)
白熱3967b1392804
diff --git a/examples/package.json b/examples/package.jsonindex 249078f077..61a664b777 100644--- a/examples/package.json+++ b/examples/package.json@@ -35,7 +35,7 @@"@univerjs/engine-formula": "workspace:*","@univerjs/engine-render": "workspace:*","@univerjs/find-replace": "workspace:*",- "@univerjs/icons": "0.3.22",+ "@univerjs/icons": "0.3.23","@univerjs/mockdata": "workspace:*","@univerjs/network": "workspace:*","@univerjs/rpc": "workspace:*",@@ -89,7 +89,7 @@"@univerjs-infra/shared": "workspace:*","cross-env": "^7.0.3","detect-port": "^2.1.0",- "esbuild": "^0.25.2",+ "esbuild": "^0.25.3","esbuild-plugin-alias": "^0.2.1","esbuild-plugin-clean": "^1.0.1","esbuild-plugin-copy": "^2.1.1",@@ -97,7 +97,6 @@"esbuild-style-plugin": "^1.6.3","fast-glob": "^3.3.3","fs-extra": "^11.3.0",- "less": "^4.3.0","minimist": "^1.2.8","postcss": "^8.5.3","tailwindcss": "^3.4.17",diff --git a/packages-experimental/action-recorder/package.json b/packages-experimental/action-recorder/package.jsonindex 5cd3593fa3..9236fdec05 100644--- a/packages-experimental/action-recorder/package.json+++ b/packages-experimental/action-recorder/package.json@@ -76,7 +76,6 @@},"devDependencies": {"@univerjs-infra/shared": "workspace:*",- "less": "^4.3.0","react": "18.3.1","rxjs": "^7.8.1","tailwindcss": "^3.4.17",diff --git a/packages-experimental/uni-slides-ui/package.json b/packages-experimental/uni-slides-ui/package.jsonindex ec8be928d9..848a5552ec 100644--- a/packages-experimental/uni-slides-ui/package.json+++ b/packages-experimental/uni-slides-ui/package.json@@ -69,7 +69,6 @@},"devDependencies": {"@univerjs-infra/shared": "workspace:*",- "less": "^4.3.0","postcss": "^8.5.3","react": "18.3.1","rxjs": "^7.8.1",diff --git a/packages-experimental/uniui/package.json b/packages-experimental/uniui/package.jsonindex 4f84eafc5f..4aea813c4d 100644--- a/packages-experimental/uniui/package.json+++ b/packages-experimental/uniui/package.json@@ -73,7 +73,6 @@},"devDependencies": {"@univerjs-infra/shared": "workspace:*",- "less": "^4.3.0","postcss": "^8.5.3","react": "18.3.1","react-dom": "18.3.1",diff --git a/packages/design/src/components/cascader-list/CascaderList.tsx b/packages/design/src/components/cascader-list/CascaderList.tsxindex 484a313345..46a22a4a9e 100644--- a/packages/design/src/components/cascader-list/CascaderList.tsx+++ b/packages/design/src/components/cascader-list/CascaderList.tsx@@ -17,9 +17,7 @@import { CheckMarkSingle } from '@univerjs/icons';import { useContext, useMemo } from 'react';import { clsx } from '../../helper/clsx';-import { ConfigContext } from '../config-provider/ConfigProvider';-import styles from './index.module.less';export interface ICascaderOption {label: string;@@ -56,6 +54,14 @@ export interface ICascaderListProps {wrapperClassName?: string;}+function Empty({ emptyText }: { emptyText?: string }) {+ return (+ <section className="univer-h-8 univer-px-2 univer-pr-32 univer-text-sm/8 univer-text-gray-600">+ {emptyText}+ </section>+ );+}+export function CascaderList(props: ICascaderListProps) {const { value, options = [], onChange, contentClassName, wrapperClassName } = props;@@ -94,25 +100,50 @@ export function CascaderList(props: ICascaderListProps) {}return (- <section className={clsx(styles.cascaderList, wrapperClassName)}>+ <section+ className={clsx(`+ univer-grid univer-h-full univer-max-h-80 univer-grid-flow-col univer-overflow-y-auto univer-rounded+ univer-border univer-border-solid univer-border-gray-200 univer-py-2 univer-text-gray-900+ [&>ul:not(:last-child)]:univer-border-0 [&>ul:not(:last-child)]:univer-border-r+ [&>ul:not(:last-child)]:univer-border-solid [&>ul:not(:last-child)]:univer-border-r-gray-200+ `, wrapperClassName)}+ >{activeOptions.map((options, index) =>options.length? (- <ul key={index} className={clsx(styles.cascaderListBoard, contentClassName)}>+ <ul+ key={index}+ className={clsx(`+ univer-m-0 univer-h-full univer-max-h-80 univer-list-none univer-overflow-auto univer-px-2+ `, contentClassName)}+ >{options.map((option) => (- <li- key={option.value}- className={clsx(styles.cascaderListItem, {- [styles.cascaderListItemActive]: option.value === value[index],- })}- >+ <li key={option.value}><a- className={styles.cascaderListOption}+ className={clsx(`+ univer-relative univer-block univer-h-8 univer-cursor-pointer univer-rounded+ univer-text-sm/8+ `, {+ 'univer-px-7': index > 0,+ 'univer-px-1.5': index === 0,+ 'univer-bg-gray-200': option.value === value[index],+ })}onClick={() => handleChange(index, option.value)}>- <span className={styles.cascaderListCheckMark}>- {option.value === value[index] && <CheckMarkSingle />}- </span>+ {index > 0 && (+ <span+ className={`+ univer-absolute univer-left-2 univer-flex univer-h-full+ univer-items-center+ `}+ >+ {option.value === value[index] && (+ <CheckMarkSingle+ className="univer-text-primary-600"+ />+ )}+ </span>+ )}<span>{option.label}</span></a></li>@@ -120,12 +151,12 @@ export function CascaderList(props: ICascaderListProps) {</ul>): (- <section key={index} className={styles.cascaderListEmpty}>- {locale?.CascaderList.empty}- </section>+ <Empty key={index} emptyText={locale?.CascaderList.empty} />))}- {value.length <= 0 && <section className={styles.cascaderListEmpty}>{locale?.CascaderList.empty}</section>}+ {value.length <= 0 && (+ <Empty emptyText={locale?.CascaderList.empty} />+ )}</section>);}diff --git a/packages/design/src/components/cascader-list/index.module.less b/packages/design/src/components/cascader-list/index.module.lessdeleted file mode 100644index 1f0b93cfdc..0000000000--- a/packages/design/src/components/cascader-list/index.module.less+++ /dev/null@@ -1,91 +0,0 @@-.cascader-list {- overflow-y: auto;- display: flex;-- height: 100%;- max-height: 348px;- padding: var(--padding-sm);-- color: rgb(var(--text-color));-- border: 1px solid rgb(var(--border-color));- border-radius: var(--border-radius-base);-- &-board {- overflow: auto;-- height: 100%;- margin: 0;- padding: 0;-- list-style: none;-- &:not(:last-child) {- margin-right: var(--margin-xs);- padding-right: var(--padding-sm);- border-right: 1px solid rgb(var(--border-color));- }-- &:first-child {- .cascader-list {- &-item {- &-active {- color: rgb(var(--primary-color));- }- }-- &-option {- padding: var(--padding-xs) 0;- }-- &-check-mark {- display: none;- }- }- }-- &:not(:first-child) {- .cascader-list {- &-item {- &-active {- background-color: rgb(var(--bg-color-hover));- }- }-- &-option {- padding: var(--padding-xs) 28px;- }- }- }- }-- &-item {- border-radius: var(--border-radius-base);- }-- &-option {- cursor: pointer;- position: relative;- display: block;- font-size: var(--font-size-xs);- }-- &-check-mark {- position: absolute;- top: 50%;- left: var(--margin-xs);- transform: translateY(-50%);-- display: flex;- align-items: center;-- font-size: var(--font-size-lg);- color: rgb(var(--primary-color));- }-- &-empty {- padding-right: 120px;- font-size: var(--font-size-xs);- color: rgb(var(--text-color-secondary));- }-}diff --git a/packages/docs-ui/src/views/page-settings/index.tsx b/packages/docs-ui/src/views/page-settings/index.tsxindex 69d3de91e5..66e5326dd4 100644--- a/packages/docs-ui/src/views/page-settings/index.tsx+++ b/packages/docs-ui/src/views/page-settings/index.tsx@@ -98,7 +98,7 @@ export function PageSettings(props: IConfirmChildrenProps) {};return (- <div className="univer-theme univer-flex univer-flex-col univer-gap-4">+ <div className="univer-flex univer-flex-col univer-gap-4"><div className="univer-flex univer-flex-col univer-gap-2"><label className="univer-text-sm univer-font-medium univer-text-[#0E111E]">{localeService.t('page-settings.paper-size')}diff --git a/packages/drawing-ui/src/views/image-popup-menu/ImagePopupMenu.tsx b/packages/drawing-ui/src/views/image-popup-menu/ImagePopupMenu.tsxindex 321e9f8f78..c55caff842 100644--- a/packages/drawing-ui/src/views/image-popup-menu/ImagePopupMenu.tsx+++ b/packages/drawing-ui/src/views/image-popup-menu/ImagePopupMenu.tsx@@ -98,10 +98,7 @@ export const ImagePopupMenu: React.FC<IImagePopupMenuProps> = (props: IImagePopu'univer-bg-white': !visible,})}>- <Autofill- style={{ color: '#35322B' }}- extend={{ colorChannel1: 'rgb(var(--green-700, #409f11))' }}- />+ <Autofill className="univer-fill-green-500 univer-text-gray-900" />{showMore && <MoreDownSingle className="univer-text-[10px] univer-text-gray-400" />}</div></DropdownMenu>diff --git a/packages/find-replace/src/views/dialog/FindReplaceDialog.tsx b/packages/find-replace/src/views/dialog/FindReplaceDialog.tsxindex 54da218b3e..279fd667e8 100644--- a/packages/find-replace/src/views/dialog/FindReplaceDialog.tsx+++ b/packages/find-replace/src/views/dialog/FindReplaceDialog.tsx@@ -174,7 +174,7 @@ export const ReplaceDialog = forwardRef(function ReplaceDialogImpl(_props, ref)}, [findCompleted, matchesCount, messageService, localeService]);return (- <div className="univer-theme">+ <div><FormLayout label={localeService.t('find-replace.dialog.find')}><SearchInputfindCompleted={findCompleted}diff --git a/packages/sheets-conditional-formatting-ui/src/components/color-picker/index.module.less b/packages/sheets-conditional-formatting-ui/src/components/color-picker/index.module.lessdeleted file mode 100644index 68a0793a80..0000000000--- a/packages/sheets-conditional-formatting-ui/src/components/color-picker/index.module.less+++ /dev/null@@ -1,25 +0,0 @@-.cf-color-picker {- padding: var(--padding-base);- font-size: var(--font-size-xs);- list-style: none;- background-color: rgb(var(--bg-color-secondary));- border: 1px solid rgb(var(--border-color));- border-radius: var(--border-radius-lg);- outline: none;- box-shadow: var(--box-shadow-base);-}-.cf-color-picker-icon {- cursor: pointer;- padding: 4px;- display: flex;- align-items: center;- &:hover {- background: rgb(var(--bg-color-hover));- border-radius: var(--border-radius-base);- }- .icon-dropdown {- font-size: 8px;- color: rgb(var(--text-color-secondary));- margin-left: 6px;- }-}diff --git a/packages/sheets-conditional-formatting-ui/src/components/color-picker/index.tsx b/packages/sheets-conditional-formatting-ui/src/components/color-picker/index.tsxindex 6933e1a28f..948d13e461 100644--- a/packages/sheets-conditional-formatting-ui/src/components/color-picker/index.tsx+++ b/packages/sheets-conditional-formatting-ui/src/components/color-picker/index.tsx@@ -15,12 +15,10 @@*/import { ColorKit } from '@univerjs/core';-import { Dropdown, ColorPicker as OriginColorPicker } from '@univerjs/design';+import { clsx, Dropdown, ColorPicker as OriginColorPicker } from '@univerjs/design';import { MoreDownSingle } from '@univerjs/icons';import { ComponentManager, useDependency } from '@univerjs/ui';-import React, { useMemo } from 'react';--import styles from './index.module.less';+import { useMemo } from 'react';interface IColorPickerProps {color: string;@@ -38,7 +36,9 @@ export const ColorPicker = (props: IColorPickerProps) => {const colorKit = useMemo(() => new ColorKit(color), [color]);const Icon = componentManager.get(iconId);- return Icon && (!disable+ if (!Icon) return null;++ return !disable? (<Dropdownoverlay={(@@ -48,15 +48,19 @@ export const ColorPicker = (props: IColorPickerProps) => {)}><span- className={`- ${styles.cfColorPickerIcon}- ${className}- `}+ className={clsx(`+ univer-flex univer-cursor-pointer univer-items-center univer-rounded univer-p-1+ hover:univer-bg-gray-100+ `, className)}>- <Icon extend={{ colorChannel1: colorKit.isValid ? color : 'rgb(var(--primary-color))' }} />- {isNeedDropdownIcon && <MoreDownSingle className={styles.iconDropdown} />}+ <Icon className="univer-fill-primary-600" extend={{ colorChannel1: colorKit.isValid ? color : '' }} />+ {isNeedDropdownIcon && (+ <MoreDownSingle+ className="univer-ml-1.5 univer-text-[10px] univer-text-gray-400"+ />+ )}</span></Dropdown>)- : <Icon className={className} extend={{ colorChannel1: colorKit.isValid ? color : 'rgb(var(--primary-color))' }} />);+ : <Icon className={clsx('univer-fill-primary-600', className)} extend={{ colorChannel1: colorKit.isValid ? color : '' }} />;};diff --git a/packages/sheets-data-validation-ui/package.json b/packages/sheets-data-validation-ui/package.jsonindex 39b965aeab..534b0d931e 100644--- a/packages/sheets-data-validation-ui/package.json+++ b/packages/sheets-data-validation-ui/package.json@@ -85,7 +85,6 @@},"devDependencies": {"@univerjs-infra/shared": "workspace:*",- "less": "^4.3.0","postcss": "^8.5.3","react": "18.3.1","rxjs": "^7.8.1",diff --git a/packages/sheets-data-validation/package.json b/packages/sheets-data-validation/package.jsonindex 316111d5e6..6067e9e5f6 100644--- a/packages/sheets-data-validation/package.json+++ b/packages/sheets-data-validation/package.json@@ -82,7 +82,6 @@},"devDependencies": {"@univerjs-infra/shared": "workspace:*",- "less": "^4.3.0","rxjs": "^7.8.1","typescript": "^5.8.3","vite": "^6.3.3",diff --git a/packages/sheets-filter-ui/package.json b/packages/sheets-filter-ui/package.jsonindex f30b045783..803f79f462 100644--- a/packages/sheets-filter-ui/package.json+++ b/packages/sheets-filter-ui/package.json@@ -79,7 +79,6 @@"devDependencies": {"@univerjs-infra/shared": "workspace:*","@univerjs/engine-formula": "workspace:*",- "less": "^4.3.0","postcss": "^8.5.3","react": "18.3.1","rxjs": "^7.8.1",diff --git a/packages/sheets-formula-ui/package.json b/packages/sheets-formula-ui/package.jsonindex 8e9534aac4..ae66e37d28 100644--- a/packages/sheets-formula-ui/package.json+++ b/packages/sheets-formula-ui/package.json@@ -92,7 +92,6 @@},"devDependencies": {"@univerjs-infra/shared": "workspace:*",- "less": "^4.3.0","postcss": "^8.5.3","react": "18.3.1","rxjs": "^7.8.1",diff --git a/packages/sheets-sort-ui/src/views/CustomSortPanel.tsx b/packages/sheets-sort-ui/src/views/CustomSortPanel.tsxindex b8a3617c19..f6f9561ea2 100644--- a/packages/sheets-sort-ui/src/views/CustomSortPanel.tsx+++ b/packages/sheets-sort-ui/src/views/CustomSortPanel.tsx@@ -245,8 +245,7 @@ export function SortOptionItem(props: ISortOptionItemProps) {className={`univer-my-0 univer-box-border univer-grid univer-max-h-[310px] univer-items-centeruniver-gap-1 univer-overflow-y-auto univer-overflow-x-hidden univer-rounded-lg- univer-p-1 univer-theme univer-border univer-bg-white univer-text-base- univer-shadow-lg+ univer-border univer-bg-white univer-p-1 univer-text-base univer-shadow-lg`}>{availableMenu.map((menuItem) => (diff --git a/packages/sheets-table-ui/postcss.config.mjs b/packages/sheets-table-ui/postcss.config.mjsnew file mode 100644index 0000000000..7d59f53133--- /dev/null+++ b/packages/sheets-table-ui/postcss.config.mjs@@ -0,0 +1 @@+export { default } from '@univerjs-infra/shared/postcss';diff --git a/packages/sheets-table-ui/src/global.css b/packages/sheets-table-ui/src/global.cssnew file mode 100644index 0000000000..7c05d4ddc4--- /dev/null+++ b/packages/sheets-table-ui/src/global.css@@ -0,0 +1,2 @@+@tailwind components;+@tailwind utilities;diff --git a/packages/sheets-table-ui/src/index.ts b/packages/sheets-table-ui/src/index.tsindex b35b4e67bf..7bfe7498b0 100644--- a/packages/sheets-table-ui/src/index.ts+++ b/packages/sheets-table-ui/src/index.ts@@ -14,4 +14,6 @@* limitations under the License.*/+import './global.css';+export { UniverSheetTableUIPlugin } from './plugin';diff --git a/packages/sheets-ui/src/components/border-panel/BorderPanel.tsx b/packages/sheets-ui/src/components/border-panel/BorderPanel.tsxindex 435502957b..2c9f956843 100644--- a/packages/sheets-ui/src/components/border-panel/BorderPanel.tsx+++ b/packages/sheets-ui/src/components/border-panel/BorderPanel.tsx@@ -132,7 +132,7 @@ export function BorderPanel(props: IBorderPanelProps) {`}type="button">- <PaintBucket extend={{ colorChannel1: value?.color ?? 'rgb(var(--primary-color))' }} />+ <PaintBucket className="univer-fill-primary-600" extend={{ colorChannel1: value?.color ?? '' }} /><MoreDownSingle className="univer-text-gray-400" /></button></Dropdown>diff --git a/packages/sheets-ui/src/views/auto-fill-popup-menu/AutoFillPopupMenu.tsx b/packages/sheets-ui/src/views/auto-fill-popup-menu/AutoFillPopupMenu.tsxindex ecc07c6c87..f35cdcbb31 100644--- a/packages/sheets-ui/src/views/auto-fill-popup-menu/AutoFillPopupMenu.tsx+++ b/packages/sheets-ui/src/views/auto-fill-popup-menu/AutoFillPopupMenu.tsx@@ -208,10 +208,7 @@ export const AutoFillPopupMenu: React.FC<{}> = () => {'univer-bg-white': !visible,})}>- <Autofill- style={{ color: '#35322B' }}- extend={{ colorChannel1: 'rgb(var(--green-700, #409f11))' }}- />+ <Autofill className="univer-fill-green-500 univer-text-gray-900" />{showMore && <MoreDownSingle className="univer-text-[10px] univer-text-gray-400" />}</div></DropdownMenu>diff --git a/packages/sheets/api-extractor.json b/packages/sheets/api-extractor.jsondeleted file mode 100644index 1f20c772b0..0000000000--- a/packages/sheets/api-extractor.json+++ /dev/null@@ -1,454 +0,0 @@-/**- * Config file for API Extractor. For more info, please visit: https://api-extractor.com- */-{- "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",-- /**- * Optionally specifies another JSON config file that this file extends from. This provides a way for- * standard settings to be shared across multiple projects.- *- * If the path starts with "./" or "../", the path is resolved relative to the folder of the file that contains- * the "extends" field. Otherwise, the first path segment is interpreted as an NPM package name, and will be- * resolved using NodeJS require().- *- * SUPPORTED TOKENS: none- * DEFAULT VALUE: ""- */- // "extends": "./shared/api-extractor-base.json"- // "extends": "my-package/include/api-extractor-base.json"-- /**- * Determines the "<projectFolder>" token that can be used with other config file settings. The project folder- * typically contains the tsconfig.json and package.json config files, but the path is user-defined.- *- * The path is resolved relative to the folder of the config file that contains the setting.- *- * The default value for "projectFolder" is the token "<lookup>", which means the folder is determined by traversing- * parent folders, starting from the folder containing api-extractor.json, and stopping at the first folder- * that contains a tsconfig.json file. If a tsconfig.json file cannot be found in this way, then an error- * will be reported.- *- * SUPPORTED TOKENS: <lookup>- * DEFAULT VALUE: "<lookup>"- */- // "projectFolder": "..",-- /**- * (REQUIRED) Specifies the .d.ts file to be used as the starting point for analysis. API Extractor- * analyzes the symbols exported by this module.- *- * The file extension must be ".d.ts" and not ".ts".- *- * The path is resolved relative to the folder of the config file that contains the setting; to change this,- * prepend a folder token such as "<projectFolder>".- *- * SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>- */- "mainEntryPointFilePath": "./lib/types/facade/f-selection.d.ts",-- /**- * A list of NPM package names whose exports should be treated as part of this package.- *- * For example, suppose that Webpack is used to generate a distributed bundle for the project "library1",- * and another NPM package "library2" is embedded in this bundle. Some types from library2 may become part- * of the exported API for library1, but by default API Extractor would generate a .d.ts rollup that explicitly- * imports library2. To avoid this, we might specify:- *- * "bundledPackages": [ "library2" ],- *- * This would direct API Extractor to embed those types directly in the .d.ts rollup, as if they had been- * local files for library1.- *- * The "bundledPackages" elements may specify glob patterns using minimatch syntax. To ensure deterministic- * output, globs are expanded by matching explicitly declared top-level dependencies only. For example,- * the pattern below will NOT match "@my-company/example" unless it appears in a field such as "dependencies"- * or "devDependencies" of the project's package.json file:- *- * "bundledPackages": [ "@my-company/*" ],- */- "bundledPackages": [],-- /**- * Specifies what type of newlines API Extractor should use when writing output files. By default, the output files- * will be written with Windows-style newlines. To use POSIX-style newlines, specify "lf" instead.- * To use the OS's default newline kind, specify "os".- *- * DEFAULT VALUE: "crlf"- */- // "newlineKind": "crlf",-- /**- * Specifies how API Extractor sorts members of an enum when generating the .api.json file. By default, the output- * files will be sorted alphabetically, which is "by-name". To keep the ordering in the source code, specify- * "preserve".- *- * DEFAULT VALUE: "by-name"- */- // "enumMemberOrder": "by-name",-- /**- * Set to true when invoking API Extractor's test harness. When `testMode` is true, the `toolVersion` field in the- * .api.json file is assigned an empty string to prevent spurious diffs in output files tracked for tests.- *- * DEFAULT VALUE: "false"- */- // "testMode": false,-- /**- * Determines how the TypeScript compiler engine will be invoked by API Extractor.- */- "compiler": {- /**- * Specifies the path to the tsconfig.json file to be used by API Extractor when analyzing the project.- *- * The path is resolved relative to the folder of the config file that contains the setting; to change this,- * prepend a folder token such as "<projectFolder>".- *- * Note: This setting will be ignored if "overrideTsconfig" is used.- *- * SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>- * DEFAULT VALUE: "<projectFolder>/tsconfig.json"- */- // "tsconfigFilePath": "<projectFolder>/tsconfig.json",- /**- * Provides a compiler configuration that will be used instead of reading the tsconfig.json file from disk.- * The object must conform to the TypeScript tsconfig schema:- *- * http://json.schemastore.org/tsconfig- *- * If omitted, then the tsconfig.json file will be read from the "projectFolder".- *- * DEFAULT VALUE: no overrideTsconfig section- */- // "overrideTsconfig": {- // . . .- // }- /**- * This option causes the compiler to be invoked with the --skipLibCheck option. This option is not recommended- * and may cause API Extractor to produce incomplete or incorrect declarations, but it may be required when- * dependencies contain declarations that are incompatible with the TypeScript engine that API Extractor uses- * for its analysis. Where possible, the underlying issue should be fixed rather than relying on skipLibCheck.- *- * DEFAULT VALUE: false- */- // "skipLibCheck": true,- },-- /**- * Configures how the API report file (*.api.md) will be generated.- */- "apiReport": {- /**- * (REQUIRED) Whether to generate an API report.- */- "enabled": false-- /**- * The base filename for the API report files, to be combined with "reportFolder" or "reportTempFolder"- * to produce the full file path. The "reportFileName" should not include any path separators such as- * "\" or "/". The "reportFileName" should not include a file extension, since API Extractor will automatically- * append an appropriate file extension such as ".api.md". If the "reportVariants" setting is used, then the- * file extension includes the variant name, for example "my-report.public.api.md" or "my-report.beta.api.md".- * The "complete" variant always uses the simple extension "my-report.api.md".- *- * Previous versions of API Extractor required "reportFileName" to include the ".api.md" extension explicitly;- * for backwards compatibility, that is still accepted but will be discarded before applying the above rules.- *- * SUPPORTED TOKENS: <packageName>, <unscopedPackageName>- * DEFAULT VALUE: "<unscopedPackageName>"- */- // "reportFileName": "<unscopedPackageName>",-- /**- * To support different approval requirements for different API levels, multiple "variants" of the API report can- * be generated. The "reportVariants" setting specifies a list of variants to be generated. If omitted,- * by default only the "complete" variant will be generated, which includes all @internal, @alpha, @beta,- * and @public items. Other possible variants are "alpha" (@alpha + @beta + @public), "beta" (@beta + @public),- * and "public" (@public only).- *- * DEFAULT VALUE: [ "complete" ]- */- // "reportVariants": ["public", "beta"],-- /**- * Specifies the folder where the API report file is written. The file name portion is determined by- * the "reportFileName" setting.- *- * The API report file is normally tracked by Git. Changes to it can be used to trigger a branch policy,- * e.g. for an API review.- *- * The path is resolved relative to the folder of the config file that contains the setting; to change this,- * prepend a folder token such as "<projectFolder>".- *- * SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>- * DEFAULT VALUE: "<projectFolder>/etc/"- */- // "reportFolder": "<projectFolder>/etc/",-- /**- * Specifies the folder where the temporary report file is written. The file name portion is determined by- * the "reportFileName" setting.- *- * After the temporary file is written to disk, it is compared with the file in the "reportFolder".- * If they are different, a production build will fail.- *- * The path is resolved relative to the folder of the config file that contains the setting; to change this,- * prepend a folder token such as "<projectFolder>".- *- * SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>- * DEFAULT VALUE: "<projectFolder>/temp/"- */- // "reportTempFolder": "<projectFolder>/temp/",-- /**- * Whether "forgotten exports" should be included in the API report file. Forgotten exports are declarations- * flagged with `ae-forgotten-export` warnings. See https://api-extractor.com/pages/messages/ae-forgotten-export/ to- * learn more.- *- * DEFAULT VALUE: "false"- */- // "includeForgottenExports": false- },-- /**- * Configures how the doc model file (*.api.json) will be generated.- */- "docModel": {- /**- * (REQUIRED) Whether to generate a doc model file.- */- "enabled": true-- /**- * The output path for the doc model file. The file extension should be ".api.json".- *- * The path is resolved relative to the folder of the config file that contains the setting; to change this,- * prepend a folder token such as "<projectFolder>".- *- * SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>- * DEFAULT VALUE: "<projectFolder>/temp/<unscopedPackageName>.api.json"- */- // "apiJsonFilePath": "<projectFolder>/temp/<unscopedPackageName>.api.json",-- /**- * Whether "forgotten exports" should be included in the doc model file. Forgotten exports are declarations- * flagged with `ae-forgotten-export` warnings. See https://api-extractor.com/pages/messages/ae-forgotten-export/ to- * learn more.- *- * DEFAULT VALUE: "false"- */- // "includeForgottenExports": false,-- /**- * The base URL where the project's source code can be viewed on a website such as GitHub or- * Azure DevOps. This URL path corresponds to the `<projectFolder>` path on disk.- *- * This URL is concatenated with the file paths serialized to the doc model to produce URL file paths to individual API items.- * For example, if the `projectFolderUrl` is "https://github.com/microsoft/rushstack/tree/main/apps/api-extractor" and an API- * item's file path is "api/ExtractorConfig.ts", the full URL file path would be- * "https://github.com/microsoft/rushstack/tree/main/apps/api-extractor/api/ExtractorConfig.js".- *- * This setting can be omitted if you don't need source code links in your API documentation reference.- *- * SUPPORTED TOKENS: none- * DEFAULT VALUE: ""- */- // "projectFolderUrl": "http://github.com/path/to/your/projectFolder"- },-- /**- * Configures how the .d.ts rollup file will be generated.- */- "dtsRollup": {- /**- * (REQUIRED) Whether to generate the .d.ts rollup file.- */- "enabled": true-- /**- * Specifies the output path for a .d.ts rollup file to be generated without any trimming.- * This file will include all declarations that are exported by the main entry point.- *- * If the path is an empty string, then this file will not be written.- *- * The path is resolved relative to the folder of the config file that contains the setting; to change this,- * prepend a folder token such as "<projectFolder>".- *- * SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>- * DEFAULT VALUE: "<projectFolder>/dist/<unscopedPackageName>.d.ts"- */- // "untrimmedFilePath": "<projectFolder>/dist/<unscopedPackageName>.d.ts",-- /**- * Specifies the output path for a .d.ts rollup file to be generated with trimming for an "alpha" release.- * This file will include only declarations that are marked as "@public", "@beta", or "@alpha".- *- * If the path is an empty string, then this file will not be written.- *- * The path is resolved relative to the folder of the config file that contains the setting; to change this,- * prepend a folder token such as "<projectFolder>".- *- * SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>- * DEFAULT VALUE: ""- */- // "alphaTrimmedFilePath": "<projectFolder>/dist/<unscopedPackageName>-alpha.d.ts",-- /**- * Specifies the output path for a .d.ts rollup file to be generated with trimming for a "beta" release.- * This file will include only declarations that are marked as "@public" or "@beta".- *- * If the path is an empty string, then this file will not be written.- *- * The path is resolved relative to the folder of the config file that contains the setting; to change this,- * prepend a folder token such as "<projectFolder>".- *- * SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>- * DEFAULT VALUE: ""- */- // "betaTrimmedFilePath": "<projectFolder>/dist/<unscopedPackageName>-beta.d.ts",-- /**- * Specifies the output path for a .d.ts rollup file to be generated with trimming for a "public" release.- * This file will include only declarations that are marked as "@public".- *- * If the path is an empty string, then this file will not be written.- *- * The path is resolved relative to the folder of the config file that contains the setting; to change this,- * prepend a folder token such as "<projectFolder>".- *- * SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>- * DEFAULT VALUE: ""- */- // "publicTrimmedFilePath": "<projectFolder>/dist/<unscopedPackageName>-public.d.ts",-- /**- * When a declaration is trimmed, by default it will be replaced by a code comment such as- * "Excluded from this release type: exampleMember". Set "omitTrimmingComments" to true to remove the- * declaration completely.- *- * DEFAULT VALUE: false- */- // "omitTrimmingComments": true- },-- /**- * Configures how the tsdoc-metadata.json file will be generated.- */- "tsdocMetadata": {- /**- * Whether to generate the tsdoc-metadata.json file.- *- * DEFAULT VALUE: true- */- // "enabled": true,- /**- * Specifies where the TSDoc metadata file should be written.- *- * The path is resolved relative to the folder of the config file that contains the setting; to change this,- * prepend a folder token such as "<projectFolder>".- *- * The default value is "<lookup>", which causes the path to be automatically inferred from the "tsdocMetadata",- * "typings" or "main" fields of the project's package.json. If none of these fields are set, the lookup- * falls back to "tsdoc-metadata.json" in the package folder.- *- * SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>- * DEFAULT VALUE: "<lookup>"- */- // "tsdocMetadataFilePath": "<projectFolder>/dist/tsdoc-metadata.json"- },-- /**- * Configures how API Extractor reports error and warning messages produced during analysis.- *- * There are three sources of messages: compiler messages, API Extractor messages, and TSDoc messages.- */- "messages": {- /**- * Configures handling of diagnostic messages reported by the TypeScript compiler engine while analyzing- * the input .d.ts files.- *- * TypeScript message identifiers start with "TS" followed by an integer. For example: "TS2551"- *- * DEFAULT VALUE: A single "default" entry with logLevel=warning.- */- "compilerMessageReporting": {- /**- * Configures the default routing for messages that don't match an explicit rule in this table.- */- "default": {- /**- * Specifies whether the message should be written to the the tool's output log. Note that- * the "addToApiReportFile" property may supersede this option.- *- * Possible values: "error", "warning", "none"- *- * Errors cause the build to fail and return a nonzero exit code. Warnings cause a production build fail- * and return a nonzero exit code. For a non-production build (e.g. when "api-extractor run" includes- * the "--local" option), the warning is displayed but the build will not fail.- *- * DEFAULT VALUE: "warning"- */- "logLevel": "warning"-- /**- * When addToApiReportFile is true: If API Extractor is configured to write an API report file (.api.md),- * then the message will be written inside that file; otherwise, the message is instead logged according to- * the "logLevel" option.- *- * DEFAULT VALUE: false- */- // "addToApiReportFile": false- }-- // "TS2551": {- // "logLevel": "warning",- // "addToApiReportFile": true- // },- //- // . . .- },-- /**- * Configures handling of messages reported by API Extractor during its analysis.- *- * API Extractor message identifiers start with "ae-". For example: "ae-extra-release-tag"- *- * DEFAULT VALUE: See api-extractor-defaults.json for the complete table of extractorMessageReporting mappings- */- "extractorMessageReporting": {- "default": {- "logLevel": "warning"- // "addToApiReportFile": false- }-- // "ae-extra-release-tag": {- // "logLevel": "warning",- // "addToApiReportFile": true- // },- //- // . . .- },-- /**- * Configures handling of messages reported by the TSDoc parser when analyzing code comments.- *- * TSDoc message identifiers start with "tsdoc-". For example: "tsdoc-link-tag-unescaped-text"- *- * DEFAULT VALUE: A single "default" entry with logLevel=warning.- */- "tsdocMessageReporting": {- "default": {- "logLevel": "warning"- // "addToApiReportFile": false- }-- // "tsdoc-link-tag-unescaped-text": {- // "logLevel": "warning",- // "addToApiReportFile": true- // },- //- // . . .- }- }-}diff --git a/packages/sheets/build.js b/packages/sheets/build.jsdeleted file mode 100644index 97500f1edf..0000000000--- a/packages/sheets/build.js+++ /dev/null@@ -1,20 +0,0 @@-const tsc = require('tsc-prog');--tsc.build({- basePath: __dirname, // always required, used for relative paths- configFilePath: 'tsconfig.json', // config to inherit from (optional)- compilerOptions: {- rootDir: 'src',- outDir: 'dist',- declaration: true,- skipLibCheck: true,- },- bundleDeclaration: {- entryPoint: './facade/index.d.ts', // relative to the OUTPUT directory ('dist' here)- fallbackOnError: false, // default: true- globals: false, // default: true- augmentations: false, // default: true- },- include: ['src/**/*'],- exclude: ['**/*.test.ts', '**/*.spec.ts'],-});diff --git a/packages/slides-ui/package.json b/packages/slides-ui/package.jsonindex 12cc2e6d81..5f491668d0 100644--- a/packages/slides-ui/package.json+++ b/packages/slides-ui/package.json@@ -80,7 +80,6 @@},"devDependencies": {"@univerjs-infra/shared": "workspace:*",- "less": "^4.3.0","postcss": "^8.5.3","react": "18.3.1","rxjs": "^7.8.1",diff --git a/packages/slides-ui/src/components/image-popup-menu/ImagePopupMenu.tsx b/packages/slides-ui/src/components/image-popup-menu/ImagePopupMenu.tsxindex ef3cffedee..fe6205b82a 100644--- a/packages/slides-ui/src/components/image-popup-menu/ImagePopupMenu.tsx+++ b/packages/slides-ui/src/components/image-popup-menu/ImagePopupMenu.tsx@@ -20,7 +20,6 @@ import { clsx, Dropdown } from '@univerjs/design';import { Autofill, MoreDownSingle } from '@univerjs/icons';import { useDependency } from '@univerjs/ui';import { useState } from 'react';-import styles from './index.module.less';export interface IImagePopupMenuItem {label: string;@@ -83,17 +82,25 @@ export function SlideImagePopupMenu(props: IImagePopupMenuProps) {align="start"overlay={(<ul- className={clsx(styles.imagePopupMenu, `- univer-box-border univer-p-2 univer-text-sm univer-theme- `)}+ className={`+ univer-m-0 univer-box-border univer-grid univer-list-none univer-items-center univer-gap-1+ univer-rounded-lg univer-border univer-border-solid univer-border-gray-200 univer-bg-white+ univer-p-1.5 univer-text-sm univer-shadow-lg+ `}>{availableMenu.map((item) => (<likey={item.index}+ className={`+ univer-relative univer-box-border univer-flex univer-h-8 univer-cursor-pointer+ univer-items-center univer-rounded univer-text-sm univer-transition-colors+ hover:univer-bg-gray-100+ `}onClick={() => handleClick(item)}- className={styles.imagePopupMenuItem}>- <span className={styles.imagePopupMenuItemTitle}>{localeService.t(item.label)}</span>+ <span className="univer-px-2 univer-py-1.5 univer-align-middle">+ {localeService.t(item.label)}+ </span></li>))}</ul>@@ -102,15 +109,15 @@ export function SlideImagePopupMenu(props: IImagePopupMenuProps) {onOpenChange={onVisibleChange}><div- className={clsx(styles.btnContainer, {- [styles.btnContainerExpand]: visible,+ className={clsx(`+ univer-flex univer-items-center univer-justify-center univer-rounded univer-border+ univer-border-solid univer-border-gray-200 univer-bg-white univer-p-1+ `, {+ 'univer-bg-gray-100': visible,})}>- <Autofill- style={{ color: '#35322B' }}- extend={{ colorChannel1: 'rgb(var(--green-700, #409f11))' }}- />- {showMore && <MoreDownSingle style={{ color: '#CCCCCC', fontSize: '8px', marginLeft: '8px' }} />}+ <Autofill className="univer-fill-green-500 univer-text-gray-900" />+ {showMore && <MoreDownSingle className="univer-text-[10px] univer-text-gray-400" />}</div></Dropdown></div>diff --git a/packages/slides-ui/src/components/image-popup-menu/index.module.less b/packages/slides-ui/src/components/image-popup-menu/index.module.lessdeleted file mode 100644index 982003b0c2..0000000000--- a/packages/slides-ui/src/components/image-popup-menu/index.module.less+++ /dev/null@@ -1,92 +0,0 @@-.image-popup-menu {- display: grid;- gap: var(--margin-xxs);- align-items: center;-- box-sizing: border-box;-- margin-top: 0;- margin-bottom: 0;- padding: var(--padding-sm);-- font-size: var(--font-size-base);-- background-color: rgb(var(--bg-color-secondary));- border: 1px solid rgb(var(--border-color));- border-radius: var(--border-radius-lg);- box-shadow: var(--box-shadow-lg);-- li {- list-style: none;- }-- &-item {- cursor: pointer;-- position: relative;-- display: flex;- align-items: center;-- box-sizing: border-box;- height: 28px;-- font-size: var(--font-size-base);- font-style: normal;- line-height: 20px; /* 153.846% */- text-align: left;-- border-radius: 4px;- border-radius: var(--border-radius-base);-- transition: background 0.2s;-- &:hover {- background-color: rgb(var(--bg-color-hover));- }-- &-icon {- position: absolute;- top: 50%;- left: var(--padding-xs);- transform: translateY(-50%);-- display: flex;- align-items: center;- justify-content: center;- }-- &-title {- padding: var(--padding-xs) var(--padding-xs) var(--padding-xs) 0;- vertical-align: middle;- }-- &-hide {- color: rgb(var(--text-color-secondary));- }-- &:hover {- background: rgb(var(--grey-100));- }- }-}--.btn-container {- display: flex;- align-items: center;- justify-content: center;-- padding: 3px;-- background: white;- border: 1px solid rgb(var(--grey-200, #e5e5e5));- border-radius: 4px;-- &:hover {- background: rgb(var(--grey-100, #f5f5f5));- }-- &.btn-container-expand {- background: rgb(var(--grey-100, #f5f5f5));- }-}diff --git a/packages/slides-ui/src/components/panels/ArrangePanel.tsx b/packages/slides-ui/src/components/panels/ArrangePanel.tsxindex 33a086c936..5fe667279f 100644--- a/packages/slides-ui/src/components/panels/ArrangePanel.tsx+++ b/packages/slides-ui/src/components/panels/ArrangePanel.tsx@@ -17,12 +17,11 @@import type { Nullable } from '@univerjs/core';import type { Image, Rect, RichText } from '@univerjs/engine-render';import { ICommandService, LocaleService } from '@univerjs/core';-import { Button, clsx } from '@univerjs/design';+import { Button } from '@univerjs/design';import { BottomSingle, MoveDownSingle, MoveUpSingle, TopmostSingle } from '@univerjs/icons';import { useDependency } from '@univerjs/ui';import { UpdateSlideElementOperation } from '../../commands/operations/update-element.operation';import { CanvasView } from '../../controllers/canvas-view';-import styles from './index.module.less';enum ArrangeTypeEnum {forward,@@ -90,25 +89,25 @@ export default function ArrangePanel(props: IProps) {};return (- <div className={styles.imageCommonPanelGrid}>- <div className={styles.imageCommonPanelRow}>- <div className={clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelTitle)}>+ <div className="univer-relative univer-w-full">+ <div className="univer-relative univer-mt-2.5 univer-flex univer-h-full univer-items-start">+ <div className="univer-w-full univer-text-left univer-text-gray-600"><div>{localeService.t('image-panel.arrange.title')}</div></div></div>- <div className={styles.imageCommonPanelRow}>- <div className={clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelSpan2)}>+ <div className="univer-relative univer-mt-2.5 univer-flex univer-h-full univer-items-start">+ <div className="univer-w-1/2"><Button onClick={() => { onArrangeBtnClick(ArrangeTypeEnum.forward); }}>- <span className={styles.imageCommonPanelInline}>+ <span className="univer-flex univer-items-center univer-gap-1"><MoveUpSingle />{localeService.t('image-panel.arrange.forward')}</span></Button></div>- <div className={clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelSpan2)}>+ <div className="univer-w-1/2"><Button onClick={() => { onArrangeBtnClick(ArrangeTypeEnum.backward); }}>- <span className={styles.imageCommonPanelInline}>+ <span className="univer-flex univer-items-center univer-gap-1"><MoveDownSingle />{localeService.t('image-panel.arrange.backward')}</span>@@ -116,19 +115,19 @@ export default function ArrangePanel(props: IProps) {</Button></div></div>- <div className={styles.imageCommonPanelRow}>- <div className={clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelSpan2)}>+ <div className="univer-relative univer-mt-2.5 univer-flex univer-h-full univer-items-start">+ <div className="univer-w-1/2"><Button onClick={() => { onArrangeBtnClick(ArrangeTypeEnum.front); }}>- <span className={styles.imageCommonPanelInline}>+ <span className="univer-flex univer-items-center univer-gap-1"><TopmostSingle />{localeService.t('image-panel.arrange.front')}</span></Button></div>- <div className={clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelSpan2)}>+ <div className="univer-w-1/2"><Button onClick={() => { onArrangeBtnClick(ArrangeTypeEnum.back); }}>- <span className={styles.imageCommonPanelInline}>+ <span className="univer-flex univer-items-center univer-gap-1"><BottomSingle />{localeService.t('image-panel.arrange.back')}</span>diff --git a/packages/slides-ui/src/components/panels/FillPanel.tsx b/packages/slides-ui/src/components/panels/FillPanel.tsxindex e9b984a13c..184bb46089 100644--- a/packages/slides-ui/src/components/panels/FillPanel.tsx+++ b/packages/slides-ui/src/components/panels/FillPanel.tsx@@ -18,14 +18,13 @@ import type { Nullable } from '@univerjs/core';import type { Rect } from '@univerjs/engine-render';import { ICommandService, LocaleService } from '@univerjs/core';-import { clsx, ColorPicker, Dropdown } from '@univerjs/design';+import { ColorPicker, Dropdown } from '@univerjs/design';import { MoreDownSingle, PaintBucket } from '@univerjs/icons';import { useDependency } from '@univerjs/ui';import React from 'react';import { UpdateSlideElementOperation } from '../../commands/operations/update-element.operation';import { CanvasView } from '../../controllers/canvas-view';-import styles from './index.module.less';interface IProps {pageId: string;@@ -82,16 +81,19 @@ export default function ArrangePanel(props: IProps) {return (<div- className={clsx(styles.imageCommonPanelGrid, styles.imageCommonPanelBorder)}+ className={`+ univer-relative univer-bottom-0 univer-mt-5 univer-w-full univer-border-t univer-border-solid+ univer-border-t-gray-200+ `}>- <div className={styles.imageCommonPanelGrid}>- <div className={styles.imageCommonPanelRow}>- <div className={clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelTitle)}>+ <div className="univer-relative univer-w-full">+ <div className="univer-relative univer-mt-2.5 univer-flex univer-h-full univer-items-start">+ <div className="univer-w-full univer-text-left univer-text-gray-600"><div>{localeService.t('slide.panel.fill.title')}</div></div></div>- <div className={styles.imageCommonPanelRow}>- <div className={clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelSpan2)}>+ <div className="univer-relative univer-mt-2.5 univer-flex univer-h-full univer-items-start">+ <div className="univer-w-1/2"><Dropdownoverlay={(<div className="univer-rounded-lg univer-p-4">@@ -102,11 +104,9 @@ export default function ArrangePanel(props: IProps) {</div>)}>- <a className={styles.uiPluginSheetsBorderPanelButton}>- <PaintBucket extend={{ colorChannel1: color ?? 'rgb(var(--primary-color))' }} />- <span className={styles.uiPluginSheetsBorderPanelMoreIcon}>- <MoreDownSingle />- </span>+ <a className="univer-flex univer-cursor-pointer univer-items-center univer-gap-1">+ <PaintBucket className="univer-fill-primary-600" />+ <MoreDownSingle className="univer-text-[10px] univer-text-gray-400" /></a></Dropdown></div>diff --git a/packages/slides-ui/src/components/panels/TransformPanel.tsx b/packages/slides-ui/src/components/panels/TransformPanel.tsxindex 87e6fed052..0042b3eeef 100644--- a/packages/slides-ui/src/components/panels/TransformPanel.tsx+++ b/packages/slides-ui/src/components/panels/TransformPanel.tsx@@ -17,12 +17,11 @@import type { Nullable } from '@univerjs/core';import type { BaseObject, IChangeObserverConfig, Image, Rect, RichText } from '@univerjs/engine-render';import { ICommandService, LocaleService } from '@univerjs/core';-import { clsx, InputNumber } from '@univerjs/design';+import { InputNumber } from '@univerjs/design';import { useDependency } from '@univerjs/ui';import { useEffect, useState } from 'react';import { UpdateSlideElementOperation } from '../../commands/operations/update-element.operation';import { CanvasView } from '../../controllers/canvas-view';-import styles from './index.module.less';interface IProps {pageId: string;@@ -85,52 +84,6 @@ export default function TransformPanel(props: IProps) {setXPosition(originX);setYPosition(originY);setRotation(originRotation);-- // const params = getUpdateParams(objects, drawingManagerService);-- // if (params.length !== 1) {- // return;- // }-- // const drawingParam = params[0];-- // if (drawingParam == null) {- // return;- // }-- // const { transform } = drawingParam;-- // if (transform == null) {- // return;- // }-- // const {- // width: originWidth,- // height: originHeight,- // left: originX,- // top: originY,- // angle: originRotation,- // } = transform;-- // if (originWidth != null) {- // setWidth(originWidth);- // }-- // if (originHeight != null) {- // setHeight(originHeight);- // }-- // if (originX != null) {- // setXPosition(originX);- // }-- // if (originY != null) {- // setYPosition(originY);- // }-- // if (originRotation != null) {- // setRotation(originRotation);- // }};useEffect(() => {@@ -142,52 +95,6 @@ export default function TransformPanel(props: IProps) {changeObs(state);});- // const focusSub = drawingManagerService.focus$.subscribe((drawings) => {- // if (drawings.length !== 1) {- // return;- // }-- // const drawingParam = drawingManagerService.getDrawingByParam(drawings[0]);-- // if (drawingParam == null) {- // return;- // }-- // const transform = drawingParam.transform;-- // if (transform == null) {- // return;- // }-- // const {- // width: originWidth,- // height: originHeight,- // left: originX,- // top: originY,- // angle: originRotation,- // } = transform;-- // if (originWidth != null) {- // setWidth(originWidth);- // }-- // if (originHeight != null) {- // setHeight(originHeight);- // }-- // if (originX != null) {- // setXPosition(originX);- // }-- // if (originY != null) {- // setYPosition(originY);- // }-- // if (originRotation != null) {- // setRotation(originRotation);- // }- // });-return () => {changingSub.unsubscribe();changeStartSub.unsubscribe();@@ -274,25 +181,28 @@ export default function TransformPanel(props: IProps) {return (<div- className={clsx(styles.imageCommonPanelGrid, styles.imageCommonPanelBorder)}+ className={`+ univer-relative univer-bottom-0 univer-mt-5 univer-w-full univer-border-t univer-border-solid+ univer-border-t-gray-200+ `}>- <div className={styles.imageCommonPanelRow}>- <div className={clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelTitle)}>+ <div className="univer-relative univer-mt-2.5 univer-flex univer-h-full univer-items-start">+ <div className="univer-w-full univer-text-left univer-text-gray-600"><div>{localeService.t('image-panel.transform.title')}</div></div></div>- <div className={styles.imageCommonPanelRow}>- <div className={clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelSpan3)}>+ <div className="univer-relative univer-mt-2.5 univer-flex univer-h-full univer-items-start">+ <div className="univer-w-1/3"><label>- <div className={styles.imageCommonPanelRow}>- <div className={styles.imageCommonPanelColumn}>+ <div className="univer-relative univer-mt-2.5 univer-flex univer-h-full univer-items-start">+ <div className="univer-w-full">{localeService.t('image-panel.transform.width')}</div></div>- <div className={styles.imageCommonPanelRow}>- <div className={styles.imageCommonPanelColumn}>+ <div className="univer-relative univer-mt-2.5 univer-flex univer-h-full univer-items-start">+ <div className="univer-w-full"><InputNumber- className={styles.imageCommonPanelInput}+ className="univer-w-11/12"min={1}value={width}onChange={(val) => { handleWidthChange(val); }}@@ -301,17 +211,17 @@ export default function TransformPanel(props: IProps) {</div></label></div>- <div className={clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelSpan3)}>+ <div className="univer-w-1/3"><label>- <div className={styles.imageCommonPanelRow}>- <div className={styles.imageCommonPanelColumn}>+ <div className="univer-relative univer-mt-2.5 univer-flex univer-h-full univer-items-start">+ <div className="univer-w-full">{localeService.t('image-panel.transform.height')}</div></div>- <div className={styles.imageCommonPanelRow}>- <div className={styles.imageCommonPanelColumn}>+ <div className="univer-relative univer-mt-2.5 univer-flex univer-h-full univer-items-start">+ <div className="univer-w-full"><InputNumber- className={styles.imageCommonPanelInput}+ className="univer-w-11/12"min={1}value={height}onChange={(val) => { handleHeightChange(val); }}@@ -320,33 +230,19 @@ export default function TransformPanel(props: IProps) {</div></label></div>- {/* <div className={clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelSpan3)}>- <label>- <div className={styles.imageCommonPanelRow}>- <div className={styles.imageCommonPanelColumn}>- {localeService.t('image-panel.transform.lock')}- </div>- </div>- <div className={clsx(styles.imageCommonPanelRow, styles.imageCommonPanelRowVertical)}>- <div className={styles.imageCommonPanelColumn}>- <Checkbox checked={lockRatio} onChange={handleLockRatioChange}></Checkbox>- </div>- </div>- </label>- </div> */}</div>- <div className={styles.imageCommonPanelRow}>- <div className={clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelSpan3)}>+ <div className="univer-relative univer-mt-2.5 univer-flex univer-h-full univer-items-start">+ <div className="univer-w-1/3"><label>- <div className={styles.imageCommonPanelRow}>- <div className={styles.imageCommonPanelColumn}>+ <div className="univer-relative univer-mt-2.5 univer-flex univer-h-full univer-items-start">+ <div className="univer-w-full">{localeService.t('image-panel.transform.x')}</div></div>- <div className={styles.imageCommonPanelRow}>- <div className={styles.imageCommonPanelColumn}>+ <div className="univer-relative univer-mt-2.5 univer-flex univer-h-full univer-items-start">+ <div className="univer-w-full"><InputNumber- className={styles.imageCommonPanelInput}+ className="univer-w-11/12"precision={1}min={0}value={xPosition}@@ -356,17 +252,17 @@ export default function TransformPanel(props: IProps) {</div></label></div>- <div className={clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelSpan3)}>+ <div className="univer-w-1/3"><label>- <div className={styles.imageCommonPanelRow}>- <div className={styles.imageCommonPanelColumn}>+ <div className="univer-relative univer-mt-2.5 univer-flex univer-h-full univer-items-start">+ <div className="univer-w-full">{localeService.t('image-panel.transform.y')}</div></div>- <div className={styles.imageCommonPanelRow}>- <div className={styles.imageCommonPanelColumn}>+ <div className="univer-relative univer-mt-2.5 univer-flex univer-h-full univer-items-start">+ <div className="univer-w-full"><InputNumber- className={styles.imageCommonPanelInput}+ className="univer-w-11/12"precision={1}min={0}value={yPosition}@@ -376,17 +272,17 @@ export default function TransformPanel(props: IProps) {</div></label></div>- <div className={clsx(styles.imageCommonPanelColumn, styles.imageCommonPanelSpan3)}>+ <div className="univer-w-1/3"><label>- <div className={styles.imageCommonPanelRow}>- <div className={styles.imageCommonPanelColumn}>+ <div className="univer-relative univer-mt-2.5 univer-flex univer-h-full univer-items-start">+ <div className="univer-w-full">{localeService.t('image-panel.transform.rotate')}</div></div>- <div className={styles.imageCommonPanelRow}>- <div className={styles.imageCommonPanelColumn}>+ <div className="univer-relative univer-mt-2.5 univer-flex univer-h-full univer-items-start">+ <div className="univer-w-full"><InputNumber- className={styles.imageCommonPanelInput}+ className="univer-w-11/12"precision={1}value={rotation}onChange={handleChangeRotation}diff --git a/packages/slides-ui/src/components/panels/index.module.less b/packages/slides-ui/src/components/panels/index.module.lessdeleted file mode 100644index cd983a8454..0000000000--- a/packages/slides-ui/src/components/panels/index.module.less+++ /dev/null@@ -1,85 +0,0 @@-.slide-arrange-panel {-}--.image-common-panel {- text-align: center;- padding: var(--padding-sm);- font-size: var(--font-size-sm);- &-grid {- position: relative;- width: 100%;- }-- &-border {- border-top: 1px solid rgb(var(--border-color));- margin-top: 20px;- }-- &-title {- color: rgb(var(--text-color-secondary));- text-align: left;- }-- &-subtitle {- color: rgb(var(--text-color-primary));- text-align: left;- }-- &-row {- position: relative;- display: flex;- justify-content: flex-start;- align-items: flex-start;- height: 100%;- margin-top: 10px;-- &-vertical {- justify-content: center;- align-items: center;- height: 36px;- }- }-- &-column {- width: 100%;-- &-center {- display: flex;- justify-content: center;- align-items: center;- }- }-- &-inline {- display: flex;- align-items: center;- gap: var(--margin-xxs);- }-- &-span2 {- width: 50%;- }-- &-span3 {- width: 33.33333333%;- }-- &-input {- width: 90%;- }-}--.slide-panel {- &-color-picker {- box-sizing: border-box;- margin: 0;- padding: var(--padding-base);- font-size: var(--font-size-xs);- list-style: none;- background-color: rgb(var(--bg-color-secondary));- border: 1px solid rgb(var(--border-color));- border-radius: var(--border-radius-lg);- outline: none;- box-shadow: var(--box-shadow-base);- }-}diff --git a/packages/slides-ui/src/components/sidebar/Sidebar.tsx b/packages/slides-ui/src/components/sidebar/Sidebar.tsxindex 132bff6f6b..46435b92fd 100644--- a/packages/slides-ui/src/components/sidebar/Sidebar.tsx+++ b/packages/slides-ui/src/components/sidebar/Sidebar.tsx@@ -19,13 +19,10 @@ import type { BaseObject } from '@univerjs/engine-render';import { IUniverInstanceService, UniverInstanceType } from '@univerjs/core';import { ObjectType } from '@univerjs/engine-render';import { useDependency } from '@univerjs/ui';--import React from 'react';import { CanvasView } from '../../controllers/canvas-view';import ArrangePanel from '../panels/ArrangePanel';import FillPanel from '../panels/FillPanel';import TransformPanel from '../panels/TransformPanel';-import styles from './index.module.less';export const COMPONENT_SLIDE_SIDEBAR = 'COMPONENT_SLIDE_SIDEBAR';@@ -56,7 +53,7 @@ export default function RectSidebar() {const unitId = univerInstanceService.getFocusedUnit()?.getUnitId() || '';return (- <section className={styles.imageCommonPanel}>+ <section className="univer-p-2 univer-text-center univer-text-sm"><ArrangePanel pageId={pageId} unitId={unitId} /><TransformPanel pageId={pageId} unitId={unitId} />{object.objectType === ObjectType.RECT && <FillPanel pageId={pageId} unitId={unitId} />}diff --git a/packages/slides-ui/src/components/sidebar/index.module.less b/packages/slides-ui/src/components/sidebar/index.module.lessdeleted file mode 100644index 6a9392c566..0000000000--- a/packages/slides-ui/src/components/sidebar/index.module.less+++ /dev/null@@ -1,67 +0,0 @@-.image-common-panel {- text-align: center;- padding: var(--padding-sm);- font-size: var(--font-size-sm);- &-grid {- position: relative;- width: 100%;- }-- &-border {- border-top: 1px solid rgb(var(--border-color));- margin-top: 20px;- }-- &-title {- color: rgb(var(--text-color-secondary));- text-align: left;- }-- &-subtitle {- color: rgb(var(--text-color-primary));- text-align: left;- }-- &-row {- position: relative;- display: flex;- justify-content: flex-start;- align-items: flex-start;- height: 100%;- margin-top: 10px;-- &-vertical {- justify-content: center;- align-items: center;- height: 36px;- }- }-- &-column {- width: 100%;-- &-center {- display: flex;- justify-content: center;- align-items: center;- }- }-- &-inline {- display: flex;- align-items: center;- gap: var(--margin-xxs);- }-- &-span2 {- width: 50%;- }-- &-span3 {- width: 33.33333333%;- }-- &-input {- width: 90%;- }-}diff --git a/packages/slides-ui/src/components/slide-bar/SlideBar.tsx b/packages/slides-ui/src/components/slide-bar/SlideBar.tsxindex 6b4aac6fe8..384df3f571 100644--- a/packages/slides-ui/src/components/slide-bar/SlideBar.tsx+++ b/packages/slides-ui/src/components/slide-bar/SlideBar.tsx@@ -23,7 +23,6 @@ import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'import { ActivateSlidePageOperation } from '../../commands/operations/activate.operation';import { AppendSlideOperation } from '../../commands/operations/append-slide.operation';import { SetSlidePageThumbOperation } from '../../commands/operations/set-thumb.operation';-import styles from './index.module.less';/*** This components works as the root component of the left Sidebar of Slide.@@ -90,23 +89,45 @@ export function SlideSideBar() {}, [commandService, currentSlide]);return (- <aside className={styles.slideBar} ref={slideBarRef}>+ <aside+ ref={slideBarRef}+ className={`+ univer-flex univer-h-full univer-w-64 univer-flex-col univer-overflow-y-auto univer-overflow-x-hidden+ univer-bg-gray-50+ `}+ ><Scrollbar>- <div className={styles.slideBarContent}>- <header className={styles.slideBarContentHeader}>- <a onClick={handleAppendSlide}>{localeService.t('slide.append')}</a>+ <div className="univer-px-4">+ <header className="univer-flex univer-justify-center univer-pt-4">+ <a+ className={`+ univer-box-border univer-block univer-h-8 univer-w-full univer-cursor-pointer+ univer-rounded-md univer-border univer-border-solid univer-border-gray-200 univer-bg-white+ univer-text-center univer-text-sm univer-leading-8 univer-transition-colors+ `}+ onClick={handleAppendSlide}+ >+ {localeService.t('slide.append')}+ </a></header>{slideList.map((item, index) => (<divkey={item.id}- className={clsx(styles.slideBarItem, {- [styles.slideBarItemActive]: item.id === activatePageId,+ className={clsx('univer-my-4 univer-flex univer-gap-2', {+ '[&>div]:univer-border-primary-600 [&>span]:univer-text-primary-600': item.id === activatePageId,})}onClick={() => activatePage(item.id)}><span>{index + 1}</span>- <div ref={divRefs[index]} className={styles.slideBarBox} />+ <div+ ref={divRefs[index]}+ className={`+ univer-relative univer-box-border univer-h-32 univer-w-52 univer-border+ univer-border-solid univer-border-gray-200 univer-bg-white+ hover:univer-border-primary-600+ `}+ /></div>))}</div>diff --git a/packages/slides-ui/src/components/slide-bar/index.module.less b/packages/slides-ui/src/components/slide-bar/index.module.lessdeleted file mode 100644index 2ee76b58db..0000000000--- a/packages/slides-ui/src/components/slide-bar/index.module.less+++ /dev/null@@ -1,90 +0,0 @@-.slide-bar {- display: flex;- flex-direction: column;-- height: 100%;-- background: #f5f7f9;- border-right: 1px solid #eaecf0;- width: 260px;-- overflow-x: hidden;- overflow-y: auto;-- .slide-bar-content {- padding: 0 15px;-- &-header {- padding-top: var(--padding-lg);- display: flex;- justify-content: center;-- a {- width: 212px;- padding: var(--padding-xs) 0;- font-size: var(--font-size-sm);- background: rgb(var(--bg-color-secondary));- text-align: center;- border: 1px solid rgb(var(--border-color));- border-radius: var(--border-radius-base);- display: block;- transition: all 0.25s;- cursor: pointer;-- &:hover {- background: rgb(var(--bg-color-hover));- }- }- }-- .slide-bar-item {- display: flex;- margin: var(--margin-base) 0;-- span {- width: 15px;- font-size: 12px;- }-- .slide-bar-box {- position: relative;-- width: 212px;- height: 120px;- margin-left: 5px;-- background: #fff;- border: 2px solid #c0c0c0;-- &:hover {- border: 2px solid #d66a2b;- }- }-- &-active {- span {- color: #d66a2b;- }-- .slide-bar-box {- border: 2px solid #d66a2b;- }- }- }- }-- .slide-add-button {- padding: 10px 0;- text-align: center;-- button {- width: 45px;- height: auto;-- font-size: 24px;- line-height: 1;-- border-radius: 10px;- }- }-}diff --git a/packages/slides-ui/src/views/editor-container/EditorContainer.tsx b/packages/slides-ui/src/views/editor-container/EditorContainer.tsxindex adca50d9aa..a41f046064 100644--- a/packages/slides-ui/src/views/editor-container/EditorContainer.tsx+++ b/packages/slides-ui/src/views/editor-container/EditorContainer.tsx@@ -18,13 +18,10 @@ import type { IDocumentData } from '@univerjs/core';import { DEFAULT_EMPTY_DOCUMENT_VALUE, DocumentFlavor, IContextService } from '@univerjs/core';import { IEditorService } from '@univerjs/docs-ui';import { FIX_ONE_PIXEL_BLUR_OFFSET } from '@univerjs/engine-render';-import { DISABLE_AUTO_FOCUS_KEY, useDependency, useObservable } from '@univerjs/ui';import React, { useEffect, useState } from 'react';import { SLIDE_EDITOR_ID } from '../../const';-// import { ICellEditorManagerService } from '../../services/editor/cell-editor-manager.service';import { ISlideEditorManagerService } from '../../services/slide-editor-manager.service';-import styles from './index.module.less';interface ICellIEditorProps { }@@ -111,19 +108,20 @@ export const SlideEditorContainer: React.FC<ICellIEditorProps> = () => {slideEditorManagerService.setRect({ left, top, width, height });}});- // eslint-disable-next-line react-hooks/exhaustive-deps}, []); // Empty dependency array means this effect runs once on mount and clean up on unmountuseEffect(() => {if (!disableAutoFocus) {slideEditorManagerService.setFocus(true);}- // eslint-disable-next-line react-hooks/exhaustive-deps}, [disableAutoFocus, state]);return (<div- className={styles.slideEditorContainer}+ className={`+ univer-absolute univer-z-10 univer-box-border univer-flex univer-border univer-border-solid+ univer-border-gray-200+ `}style={{left: state.left,top: state.top,diff --git a/packages/slides-ui/src/views/editor-container/index.module.less b/packages/slides-ui/src/views/editor-container/index.module.lessdeleted file mode 100644index 464c167bd5..0000000000--- a/packages/slides-ui/src/views/editor-container/index.module.less+++ /dev/null@@ -1,32 +0,0 @@-.slide-editor-container {- position: absolute;- z-index: 10;- top: 200px;- left: 100px;-- display: flex;-- width: 100px;- height: 50px;-- border: 1px solid rgb(var(--primary-color));- box-shadow: none;- box-sizing: border-box;-- .editor-input {- position: relative;-- display: flex;-- width: 100%;- height: 100%;-- background: rgba(174, 174, 174, 0.2);-- canvas {- position: absolute;- top: -1px !important;- left: -1px !important;- }- }-}diff --git a/packages/thread-comment-ui/src/views/thread-comment-tree/index.tsx b/packages/thread-comment-ui/src/views/thread-comment-tree/index.tsxindex d2d987ea94..8824448bab 100644--- a/packages/thread-comment-ui/src/views/thread-comment-tree/index.tsx+++ b/packages/thread-comment-ui/src/views/thread-comment-tree/index.tsx@@ -141,12 +141,14 @@ const ThreadCommentItem = (props: IThreadCommentItemProps) => {? (<Dropdownoverlay={(- <div className="univer-rounded-lg univer-p-4 univer-theme">+ <div className="univer-rounded-lg"><ulclassName={`- univer-m-0 univer-grid univer-list-none univer-gap-2 univer-p-0- univer-text-sm- [&_a]:univer-cursor-pointer [&_a]:univer-rounded [&_a]:univer-p-1+ univer-m-0 univer-box-border univer-grid univer-list-none+ univer-p-1.5 univer-text-[13px] univer-text-sm+ [&_a]:univer-block [&_a]:univer-cursor-pointer+ [&_a]:univer-rounded [&_a]:univer-px-2 [&_a]:univer-py-1.5+ [&_a]:univer-transition-colors`}><li>@@ -172,7 +174,7 @@ const ThreadCommentItem = (props: IThreadCommentItemProps) => {<divclassName={`univer-ml-1 univer-inline-flex univer-h-6 univer-w-6 univer-cursor-pointer- univer-items-center univer-justify-center univer-rounded-[3px]+ univer-items-center univer-justify-center univer-rounded-smuniver-text-basehover:univer-bg-gray-50`}@@ -186,7 +188,7 @@ const ThreadCommentItem = (props: IThreadCommentItemProps) => {</div>): null}- <div className="univer-mb-1 univer-text-xs univer-leading-[1.5] univer-text-gray-600">{item.dT}</div>+ <div className="univer-mb-1 univer-text-xs/normal univer-text-gray-600">{item.dT}</div>{editing? (<ThreadCommentEditor@@ -215,7 +217,7 @@ const ThreadCommentItem = (props: IThreadCommentItemProps) => {/>): (- <div className="univer-text-[13px] univer-leading-5 univer-text-gray-900">+ <div className="univer-text-[13px]/normal univer-text-gray-900">{transformDocument2TextNodes(item.text).map((paragraph, i) => (<div key={i} className="univer-break-words">{paragraph.map((item, i) => {diff --git a/packages/ui/package.json b/packages/ui/package.jsonindex 67960325bf..d1aa6176cc 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -93,7 +93,6 @@"devDependencies": {"@testing-library/react": "^16.3.0","@univerjs-infra/shared": "workspace:*",- "less": "^4.3.0","postcss": "^8.5.3","react": "18.3.1","react-dom": "18.3.1",diff --git a/packages/ui/src/components/menu/desktop/Menu.tsx b/packages/ui/src/components/menu/desktop/Menu.tsxindex 6f11cefc01..c8d23a4ed8 100644--- a/packages/ui/src/components/menu/desktop/Menu.tsx+++ b/packages/ui/src/components/menu/desktop/Menu.tsx@@ -41,9 +41,11 @@ import { ContextMenuGroup } from '../../../services/menu/types';import { useDependency, useObservable } from '../../../utils/di';import { CustomLabel } from '../../custom-label/CustomLabel';import { useScrollYOverContainer } from '../../hooks/layout';-import styles from './index.module.less';import { UITinyMenuGroup } from './TinyMenuGroup';+const contentClassName = 'univer-inline-flex univer-gap-2 univer-items-center';+const moreIconClassName = 'univer-size-3.5 univer-text-gray-900';+/** @deprecated */export interface IBaseMenuProps {parentKey?: string | number;@@ -154,21 +156,21 @@ function MenuOptionsWrapper(props: IBaseMenuProps) {};const _className = clsx({- [styles.menuItemNoHover]: typeof option.label !== 'string' && !option.label?.hoverable,+ 'univer-bg-none': typeof option.label !== 'string' && !option.label?.hoverable,});return (<DesignMenuItem disabled={option.disabled} key={key} eventKey={key} className={_className} onClick={handleClick}><span- className={clsx(styles.menuItemContent, {- [styles.menuItemSelectable]: !(+ className={clsx(contentClassName, {+ 'univer-relative univer-pl-5': !(typeof option.label !== 'string' && !option.label?.hoverable),})}>{typeof value !== 'undefined' && String(value) === String(option.value) && (- <span className={styles.menuItemSelectableIcon}>- <CheckMarkSingle style={{ color: 'rgb(var(--success-color))' }} />+ <span className="univer-absolute univer-left-0 univer-inline-flex univer-items-center">+ <CheckMarkSingle className="univer-text-primary-600" /></span>)}<CustomLabel@@ -252,13 +254,13 @@ function MenuItem({ menuItem, onClick }: IMenuItemProps) {eventKey={item.id}disabled={disabled}className={clsx({- [styles.menuItemActivated]: activated,+ 'univer-bg-gray-200': activated,})}onClick={() => {onClick({ commandId: item.commandId, value: inputValue, id: item.id });}}>- <span className={styles.menuItemContent}>+ <span className={contentClassName}><CustomLabelvalue={value}title={title}@@ -281,7 +283,7 @@ function MenuItem({ menuItem, onClick }: IMenuItemProps) {eventKey={item.id}popupOffset={[18, 0]}title={(- <span className={styles.menuItemContent}>+ <span className={contentClassName}><CustomLabeltitle={item.title}value={inputValue}@@ -292,7 +294,7 @@ function MenuItem({ menuItem, onClick }: IMenuItemProps) {{item.shortcut && ` (${item.shortcut})`}</span>)}- expandIcon={<MoreSingle className={styles.menuItemMoreIcon} />}+ expandIcon={<MoreSingle className={moreIconClassName} />}><DesignMenuItemGroup>{selections.length > 0 && (@@ -312,7 +314,7 @@ function MenuItem({ menuItem, onClick }: IMenuItemProps) {return (<DesignMenuItem key={item.id} eventKey={item.id}>- <span className={styles.menuItemContent}>+ <span className={contentClassName}><CustomLabeltitle={item.title}value={inputValue}@@ -337,11 +339,11 @@ function MenuItem({ menuItem, onClick }: IMenuItemProps) {eventKey={item.id}popupOffset={[18, 0]}title={(- <span className={styles.menuItemContent}>+ <span className={contentClassName}><CustomLabel title={item.title} icon={item.icon} label={item.label} onChange={onChange} /></span>)}- expandIcon={<MoreSingle className={styles.menuItemMoreIcon} />}+ expandIcon={<MoreSingle className={moreIconClassName} />}><DesignMenuItemGroup>{subMenuItems.length && <MenuWrapper menuType={item.id} parentKey={item.id} onOptionSelect={onClick} />}diff --git a/packages/ui/src/components/menu/desktop/index.module.less b/packages/ui/src/components/menu/desktop/index.module.lessdeleted file mode 100644index fc712c3c48..0000000000--- a/packages/ui/src/components/menu/desktop/index.module.less+++ /dev/null@@ -1,41 +0,0 @@-.menu {- &-item {- &-no-hover {- background: none;-- &.menu-item-active {- background: none;- }- }-- &-activated {- background-color: rgb(var(--bg-color-hover));- }-- &-content {- display: inline-flex;- gap: var(--margin-xs);- align-items: center;- }-- &-selectable {- position: relative;- padding-left: var(--padding-xl);-- &-icon {- position: absolute;- left: 0;-- display: inline-flex;- align-items: center;-- font-size: var(--font-size-lg);- }- }-- &-more-icon {- font-size: var(--font-size-sm);- color: rgb(var(--text-color));- }- }-}diff --git a/packages/ui/src/components/notification/index.module.less b/packages/ui/src/components/notification/index.module.lessdeleted file mode 100644index ee0ec8dc41..0000000000--- a/packages/ui/src/components/notification/index.module.less+++ /dev/null@@ -1,197 +0,0 @@-@width: 280px;--.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;-- &-notice {- display: flex;- gap: var(--margin-xs);- justify-content: space-between;-- width: @width;- 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);-- &-wrapper {- margin: var(--margin-xs) var(--margin-base);- }-- &-content {- display: inline-flex;- gap: var(--margin-xs);- align-items: center;- align-items: flex-start;- }-- &-close {- cursor: pointer;-- display: flex;- align-items: center;- justify-content: center;-- width: 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 0.2s;-- &:hover {- background-color: rgb(var(--bg-color-hover));- }- }- }-- &-icon {- padding: var(--padding-xs);-- &-success {- color: rgb(var(--success-color));- }-- &-info {- color: rgb(var(--info-color));- }-- &-warning {- color: rgb(var(--warning-color));- }-- &-error {- color: rgb(var(--error-color));- }- }-- &-content-container {- display: inline-flex;- flex-direction: column;- gap: var(--margin-xs);- align-items: flex-start;-- padding-top: var(--padding-xs);- }-- &-title {- color: rgb(var(--text-color));- }-- &-content {- color: rgb(var(--text-color-secondary));-- &-ellipsis {- overflow: hidden;- // Omit beyond the specified number of lines- display: -webkit-box;- text-overflow: ellipsis;-- -webkit-box-orient: vertical;- }- }-- // Position- &-top,- &-topLeft,- &-topRight {- top: 0;- }-- &-bottom,- &-bottomRight,- &-bottomLeft {- bottom: 0;- }-- &-bottomRight,- &-topRight {- right: 0;- }-- // Animation- &-fade {- overflow: hidden;- transition: all 0.3s;- }-- &-fade-appear-prepare {- opacity: 0;- }-- &-fade-appear-start {- transform: translateX(100%);- opacity: 0;- }-- &-fade-appear-active {- transform: translateX(0);- opacity: 1;- }-- .fade-effect() {- animation-duration: 0.3s;- animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);- animation-fill-mode: both;- }-- &-fade-appear,- &-fade-enter {- opacity: 0;- animation-play-state: paused;- .fade-effect();- }-- &-fade-leave {- .fade-effect();-- animation-play-state: paused;- }-- &-fade-appear&-fade-appear-active,- &-fade-enter&-fade-enter-active {- animation-name: notification-fade-in;- animation-play-state: running;- }-- &-fade-leave&-fade-leave-active {- animation-name: notification-fade-out;- animation-play-state: running;- }-- @keyframes notification-fade-in {- 0% {- opacity: 0;- }-- 100% {- opacity: 1;- }- }-- @keyframes notification-fade-out {- 0% {- opacity: 1;- }-- 100% {- opacity: 0;- }- }-}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 1d918067c4..569d3f3666 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -209,10 +209,10 @@ importers:'@storybook/addon-styling-webpack':specifier: ^1.0.1'@storybook/addon-webpack5-compiler-swc':specifier: ^3.0.0'@storybook/blocks':specifier: ^8.6.12version: 8.6.12([email protected]([email protected]))([email protected])([email protected]([email protected]))@@ -224,7 +224,7 @@ importers:version: 8.6.12(@storybook/[email protected]([email protected]([email protected])))([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])'@storybook/react-webpack5':specifier: ^8.6.12- version: 8.6.12(@storybook/[email protected]([email protected]([email protected])))(@swc/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])+ version: 8.6.12(@storybook/[email protected]([email protected]([email protected])))(@swc/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])'@storybook/types':specifier: ^8.6.12version: 8.6.12([email protected]([email protected]))@@ -239,22 +239,22 @@ importers:version: link:../../packages/uicss-loader:specifier: ^7.1.2less-loader:specifier: ^12.2.0postcss-loader:specifier: ^8.1.1- version: 8.1.1([email protected])([email protected])([email protected](@swc/[email protected])([email protected]))+ version: 8.1.1([email protected])([email protected])([email protected](@swc/[email protected])([email protected]))storybook:specifier: ^8.6.12version: 8.6.12([email protected])storybook-addon-swc:specifier: ^1.2.0- version: 1.2.0(@swc/[email protected])([email protected](@swc/[email protected])([email protected])([email protected](@swc/[email protected])([email protected])))([email protected](@swc/[email protected])([email protected]))+ version: 1.2.0(@swc/[email protected])([email protected](@swc/[email protected])([email protected])([email protected](@swc/[email protected])([email protected])))([email protected](@swc/[email protected])([email protected]))style-loader:specifier: ^4.0.0tsconfig-paths-webpack-plugin:specifier: ^4.2.0version: 4.2.0@@ -338,8 +338,8 @@ importers:specifier: workspace:*version: link:../packages/find-replace'@univerjs/icons':- specifier: 0.3.22+ specifier: 0.3.23'@univerjs/mockdata':specifier: workspace:*version: link:../mockdata@@ -495,17 +495,17 @@ importers:specifier: ^2.1.0version: 2.1.0esbuild:- specifier: ^0.25.2- version: 0.25.2+ specifier: ^0.25.3+ version: 0.25.3esbuild-plugin-alias:specifier: ^0.2.1version: 0.2.1esbuild-plugin-clean:specifier: ^1.0.1- version: 1.0.1([email protected])+ version: 1.0.1([email protected])esbuild-plugin-copy:specifier: ^2.1.1- version: 2.1.1([email protected])+ version: 2.1.1([email protected])esbuild-plugin-vue3:specifier: ^0.4.2@@ -518,9 +518,6 @@ importers:fs-extra:specifier: ^11.3.0version: 11.3.0- less:- specifier: ^4.3.0- version: 4.3.0minimist:specifier: ^1.2.8version: 1.2.8@@ -622,9 +619,6 @@ importers:'@univerjs-infra/shared':specifier: workspace:*version: link:../../common/shared- less:- specifier: ^4.3.0- version: 4.3.0react:specifier: '19'version: 19.0.0@@ -945,9 +939,6 @@ importers:'@univerjs-infra/shared':specifier: workspace:*version: link:../../common/shared- less:- specifier: ^4.3.0- version: 4.3.0postcss:specifier: ^8.5.3version: 8.5.3@@ -1003,9 +994,6 @@ importers:'@univerjs-infra/shared':specifier: workspace:*version: link:../../common/shared- less:- specifier: ^4.3.0- version: 4.3.0postcss:specifier: ^8.5.3version: 8.5.3@@ -2123,9 +2111,6 @@ importers:'@univerjs-infra/shared':specifier: workspace:*version: link:../../common/shared- less:- specifier: ^4.3.0- version: 4.3.0rxjs:specifier: ^7.8.1version: 7.8.1@@ -2184,9 +2169,6 @@ importers:'@univerjs-infra/shared':specifier: workspace:*version: link:../../common/shared- less:- specifier: ^4.3.0- version: 4.3.0postcss:specifier: ^8.5.3version: 8.5.3@@ -2368,9 +2350,6 @@ importers:'@univerjs/engine-formula':specifier: workspace:*version: link:../engine-formula- less:- specifier: ^4.3.0- version: 4.3.0postcss:specifier: ^8.5.3version: 8.5.3@@ -2500,9 +2479,6 @@ importers:'@univerjs-infra/shared':specifier: workspace:*version: link:../../common/shared- less:- specifier: ^4.3.0- version: 4.3.0postcss:specifier: ^8.5.3version: 8.5.3@@ -3181,9 +3157,6 @@ importers:'@univerjs-infra/shared':specifier: workspace:*version: link:../../common/shared- less:- specifier: ^4.3.0- version: 4.3.0postcss:specifier: ^8.5.3version: 8.5.3@@ -3326,9 +3299,6 @@ importers:'@univerjs-infra/shared':specifier: workspace:*version: link:../../common/shared- less:- specifier: ^4.3.0- version: 4.3.0postcss:specifier: ^8.5.3version: 8.5.3@@ -4064,66 +4034,132 @@ packages:cpu: [ppc64]os: [aix]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-W8bFfPA8DowP8l//sxjJLSLkD8iEjMc7cBVyP+u4cEv9sM7mdUCkgsj+t0n/BWPFtv7WWCN5Yzj0N6FJNUUqBQ==}+ engines: {node: '>=18'}+ cpu: [ppc64]+ os: [aix]+'@esbuild/[email protected]':resolution: {integrity: sha512-5ZAX5xOmTligeBaeNEPnPaeEuah53Id2tX4c2CVP3JaROTH+j4fnfHCkr1PjXMd78hMst+TlkfKcW/DlTq0i4w==}engines: {node: '>=18'}cpu: [arm64]os: [android]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-XelR6MzjlZuBM4f5z2IQHK6LkK34Cvv6Rj2EntER3lwCBFdg6h2lKbtRjpTTsdEjD/WSe1q8UyPBXP1x3i/wYQ==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [android]+'@esbuild/[email protected]':resolution: {integrity: sha512-NQhH7jFstVY5x8CKbcfa166GoV0EFkaPkCKBQkdPJFvo5u+nGXLEH/ooniLb3QI8Fk58YAx7nsPLozUWfCBOJA==}engines: {node: '>=18'}cpu: [arm]os: [android]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-PuwVXbnP87Tcff5I9ngV0lmiSu40xw1At6i3GsU77U7cjDDB4s0X2cyFuBiDa1SBk9DnvWwnGvVaGBqoFWPb7A==}+ engines: {node: '>=18'}+ cpu: [arm]+ os: [android]+'@esbuild/[email protected]':resolution: {integrity: sha512-Ffcx+nnma8Sge4jzddPHCZVRvIfQ0kMsUsCMcJRHkGJ1cDmhe4SsrYIjLUKn1xpHZybmOqCWwB0zQvsjdEHtkg==}engines: {node: '>=18'}cpu: [x64]os: [android]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-ogtTpYHT/g1GWS/zKM0cc/tIebFjm1F9Aw1boQ2Y0eUQ+J89d0jFY//s9ei9jVIlkYi8AfOjiixcLJSGNSOAdQ==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [android]+'@esbuild/[email protected]':resolution: {integrity: sha512-MpM6LUVTXAzOvN4KbjzU/q5smzryuoNjlriAIx+06RpecwCkL9JpenNzpKd2YMzLJFOdPqBpuub6eVRP5IgiSA==}engines: {node: '>=18'}cpu: [arm64]os: [darwin]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-eESK5yfPNTqpAmDfFWNsOhmIOaQA59tAcF/EfYvo5/QWQCzXn5iUSOnqt3ra3UdzBv073ykTtmeLJZGt3HhA+w==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [darwin]+'@esbuild/[email protected]':resolution: {integrity: sha512-5eRPrTX7wFyuWe8FqEFPG2cU0+butQQVNcT4sVipqjLYQjjh8a8+vUTfgBKM88ObB85ahsnTwF7PSIt6PG+QkA==}engines: {node: '>=18'}cpu: [x64]os: [darwin]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-Kd8glo7sIZtwOLcPbW0yLpKmBNWMANZhrC1r6K++uDR2zyzb6AeOYtI6udbtabmQpFaxJ8uduXMAo1gs5ozz8A==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [darwin]+'@esbuild/[email protected]':resolution: {integrity: sha512-mLwm4vXKiQ2UTSX4+ImyiPdiHjiZhIaE9QvC7sw0tZ6HoNMjYAqQpGyui5VRIi5sGd+uWq940gdCbY3VLvsO1w==}engines: {node: '>=18'}cpu: [arm64]os: [freebsd]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-EJiyS70BYybOBpJth3M0KLOus0n+RRMKTYzhYhFeMwp7e/RaajXvP+BWlmEXNk6uk+KAu46j/kaQzr6au+JcIw==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [freebsd]+'@esbuild/[email protected]':resolution: {integrity: sha512-6qyyn6TjayJSwGpm8J9QYYGQcRgc90nmfdUb0O7pp1s4lTY+9D0H9O02v5JqGApUyiHOtkz6+1hZNvNtEhbwRQ==}engines: {node: '>=18'}cpu: [x64]os: [freebsd]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-Q+wSjaLpGxYf7zC0kL0nDlhsfuFkoN+EXrx2KSB33RhinWzejOd6AvgmP5JbkgXKmjhmpfgKZq24pneodYqE8Q==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [freebsd]+'@esbuild/[email protected]':resolution: {integrity: sha512-gq/sjLsOyMT19I8obBISvhoYiZIAaGF8JpeXu1u8yPv8BE5HlWYobmlsfijFIZ9hIVGYkbdFhEqC0NvM4kNO0g==}engines: {node: '>=18'}cpu: [arm64]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-xCUgnNYhRD5bb1C1nqrDV1PfkwgbswTTBRbAd8aH5PhYzikdf/ddtsYyMXFfGSsb/6t6QaPSzxtbfAZr9uox4A==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-UHBRgJcmjJv5oeQF8EpTRZs/1knq6loLxTsjc3nxO9eXAPDLcWW55flrMVc97qFPbmZP31ta1AZVUKQzKTzb0g==}engines: {node: '>=18'}cpu: [arm]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-dUOVmAUzuHy2ZOKIHIKHCm58HKzFqd+puLaS424h6I85GlSDRZIA5ycBixb3mFgM0Jdh+ZOSB6KptX30DD8YOQ==}+ engines: {node: '>=18'}+ cpu: [arm]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-bBYCv9obgW2cBP+2ZWfjYTU+f5cxRoGGQ5SeDbYdFCAZpYWrfjjfYwvUpP8MlKbP0nwZ5gyOU/0aUzZ5HWPuvQ==}engines: {node: '>=18'}cpu: [ia32]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-yplPOpczHOO4jTYKmuYuANI3WhvIPSVANGcNUeMlxH4twz/TeXuzEP41tGKNGWJjuMhotpGabeFYGAOU2ummBw==}+ engines: {node: '>=18'}+ cpu: [ia32]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-bZBrLAIX1kpWelV0XemxBZllyRmM6vgFQQG2GdNb+r3Fkp0FOh1NJSvekXDs7jq70k4euu1cryLMfU+mTXlEpw==}engines: {node: '>=12'}@@ -4136,84 +4172,168 @@ packages:cpu: [loong64]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-P4BLP5/fjyihmXCELRGrLd793q/lBtKMQl8ARGpDxgzgIKJDRJ/u4r1A/HgpBpKpKZelGct2PGI4T+axcedf6g==}+ engines: {node: '>=18'}+ cpu: [loong64]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-hDDRlzE6rPeoj+5fsADqdUZl1OzqDYow4TB4Y/3PlKBD0ph1e6uPHzIQcv2Z65u2K0kpeByIyAjCmjn1hJgG0Q==}engines: {node: '>=18'}cpu: [mips64el]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-eRAOV2ODpu6P5divMEMa26RRqb2yUoYsuQQOuFUexUoQndm4MdpXXDBbUoKIc0iPa4aCO7gIhtnYomkn2x+bag==}+ engines: {node: '>=18'}+ cpu: [mips64el]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-tsHu2RRSWzipmUi9UBDEzc0nLc4HtpZEI5Ba+Omms5456x5WaNuiG3u7xh5AO6sipnJ9r4cRWQB2tUjPyIkc6g==}engines: {node: '>=18'}cpu: [ppc64]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-ZC4jV2p7VbzTlnl8nZKLcBkfzIf4Yad1SJM4ZMKYnJqZFD4rTI+pBG65u8ev4jk3/MPwY9DvGn50wi3uhdaghg==}+ engines: {node: '>=18'}+ cpu: [ppc64]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-k4LtpgV7NJQOml/10uPU0s4SAXGnowi5qBSjaLWMojNCUICNu7TshqHLAEbkBdAszL5TabfvQ48kK84hyFzjnw==}engines: {node: '>=18'}cpu: [riscv64]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-LDDODcFzNtECTrUUbVCs6j9/bDVqy7DDRsuIXJg6so+mFksgwG7ZVnTruYi5V+z3eE5y+BJZw7VvUadkbfg7QA==}+ engines: {node: '>=18'}+ cpu: [riscv64]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-GRa4IshOdvKY7M/rDpRR3gkiTNp34M0eLTaC1a08gNrh4u488aPhuZOCpkF6+2wl3zAN7L7XIpOFBhnaE3/Q8Q==}engines: {node: '>=18'}cpu: [s390x]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-s+w/NOY2k0yC2p9SLen+ymflgcpRkvwwa02fqmAwhBRI3SC12uiS10edHHXlVWwfAagYSY5UpmT/zISXPMW3tQ==}+ engines: {node: '>=18'}+ cpu: [s390x]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-QInHERlqpTTZ4FRB0fROQWXcYRD64lAoiegezDunLpalZMjcUcld3YzZmVJ2H/Cp0wJRZ8Xtjtj0cEHhYc/uUg==}engines: {node: '>=18'}cpu: [x64]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-nQHDz4pXjSDC6UfOE1Fw9Q8d6GCAd9KdvMZpfVGWSJztYCarRgSDfOVBY5xwhQXseiyxapkiSJi/5/ja8mRFFA==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-talAIBoY5M8vHc6EeI2WW9d/CkiO9MQJ0IOWX8hrLhxGbro/vBXJvaQXefW2cP0z0nQVTdQ/eNyGFV1GSKrxfw==}engines: {node: '>=18'}cpu: [arm64]os: [netbsd]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-1QaLtOWq0mzK6tzzp0jRN3eccmN3hezey7mhLnzC6oNlJoUJz4nym5ZD7mDnS/LZQgkrhEbEiTn515lPeLpgWA==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [netbsd]+'@esbuild/[email protected]':resolution: {integrity: sha512-voZT9Z+tpOxrvfKFyfDYPc4DO4rk06qamv1a/fkuzHpiVBMOhpjK+vBmWM8J1eiB3OLSMFYNaOaBNLXGChf5tg==}engines: {node: '>=18'}cpu: [x64]os: [netbsd]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-i5Hm68HXHdgv8wkrt+10Bc50zM0/eonPb/a/OFVfB6Qvpiirco5gBA5bz7S2SHuU+Y4LWn/zehzNX14Sp4r27g==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [netbsd]+'@esbuild/[email protected]':resolution: {integrity: sha512-dcXYOC6NXOqcykeDlwId9kB6OkPUxOEqU+rkrYVqJbK2hagWOMrsTGsMr8+rW02M+d5Op5NNlgMmjzecaRf7Tg==}engines: {node: '>=18'}cpu: [arm64]os: [openbsd]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-zGAVApJEYTbOC6H/3QBr2mq3upG/LBEXr85/pTtKiv2IXcgKV0RT0QA/hSXZqSvLEpXeIxah7LczB4lkiYhTAQ==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [openbsd]+'@esbuild/[email protected]':resolution: {integrity: sha512-t/TkWwahkH0Tsgoq1Ju7QfgGhArkGLkF1uYz8nQS/PPFlXbP5YgRpqQR3ARRiC2iXoLTWFxc6DJMSK10dVXluw==}engines: {node: '>=18'}cpu: [x64]os: [openbsd]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-fpqctI45NnCIDKBH5AXQBsD0NDPbEFczK98hk/aa6HJxbl+UtLkJV2+Bvy5hLSLk3LHmqt0NTkKNso1A9y1a4w==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [openbsd]+'@esbuild/[email protected]':resolution: {integrity: sha512-cfZH1co2+imVdWCjd+D1gf9NjkchVhhdpgb1q5y6Hcv9TP6Zi9ZG/beI3ig8TvwT9lH9dlxLq5MQBBgwuj4xvA==}engines: {node: '>=18'}cpu: [x64]os: [sunos]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-ROJhm7d8bk9dMCUZjkS8fgzsPAZEjtRJqCAmVgB0gMrvG7hfmPmz9k1rwO4jSiblFjYmNvbECL9uhaPzONMfgA==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [sunos]+'@esbuild/[email protected]':resolution: {integrity: sha512-7Loyjh+D/Nx/sOTzV8vfbB3GJuHdOQyrOryFdZvPHLf42Tk9ivBU5Aedi7iyX+x6rbn2Mh68T4qq1SDqJBQO5Q==}engines: {node: '>=18'}cpu: [arm64]os: [win32]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-YWcow8peiHpNBiIXHwaswPnAXLsLVygFwCB3A7Bh5jRkIBFWHGmNQ48AlX4xDvQNoMZlPYzjVOQDYEzWCqufMQ==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [win32]+'@esbuild/[email protected]':resolution: {integrity: sha512-WRJgsz9un0nqZJ4MfhabxaD9Ft8KioqU3JMinOTvobbX6MOSUigSBlogP8QB3uxpJDsFS6yN+3FDBdqE5lg9kg==}engines: {node: '>=18'}cpu: [ia32]os: [win32]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-qspTZOIGoXVS4DpNqUYUs9UxVb04khS1Degaw/MnfMe7goQ3lTfQ13Vw4qY/Nj0979BGvMRpAYbs/BAxEvU8ew==}+ engines: {node: '>=18'}+ cpu: [ia32]+ os: [win32]+'@esbuild/[email protected]':resolution: {integrity: sha512-kM3HKb16VIXZyIeVrM1ygYmZBKybX8N4p754bw390wGO3Tf2j4L2/WYL+4suWujpgf6GBYs3jv7TyUivdd05JA==}engines: {node: '>=18'}cpu: [x64]os: [win32]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-ICgUR+kPimx0vvRzf+N/7L7tVSQeE3BYY+NhHRHXS1kBuPO7z2+7ea2HbhDyZdTephgvNvKrlDDKUexuCVBVvg==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [win32]+'@eslint-community/[email protected]':resolution: {integrity: sha512-lb/Z/MzbTf7CaVYM9WCFNQZ4L1yi3ev2fsFPF99h31ljhSEyUoyEsKsNWiU+qD1glbYTDJdqgyaLKtyTkkqtuQ==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}@@ -4535,7 +4655,7 @@ packages:engines: {node: '>=12'}'@protobufjs/[email protected]':- resolution: {integrity: sha1-m4sMxmPWaafY9vXQiToU00jzD78=}+ resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==}'@protobufjs/[email protected]':resolution: {integrity: sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==}@@ -4562,7 +4682,7 @@ packages:resolution: {integrity: sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==}'@protobufjs/[email protected]':- resolution: {integrity: sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=}+ resolution: {integrity: sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==}'@radix-ui/[email protected]':resolution: {integrity: sha512-XnbHrrprsNqZKQhStrSwgRUQzoCI1glLzdw79xiZPoofhGICeZRSQ3dIxAKH1gb3OHfNf4d6f+vAv3kil2eggA==}@@ -5639,6 +5759,12 @@ packages:react: '19'react-dom: '19'+ '@univerjs/[email protected]':+ resolution: {integrity: sha512-/LPKDxGUGTYgY21SJzEDzx+3zU9bQNidWoOMYHpRyi/BUgqPbLHoS9VLD1rg49z+Z5XfnpavKr2RbGSfgZ7evg==}+ peerDependencies:+ react: '19'+ react-dom: '19'+'@univerjs/[email protected]':resolution: {integrity: sha512-pdQR6Im6gbmge7UgbyQCSMuX3mn3fCNafk4MmCkn5NbEluOURVxhshn6jfEHLraUyw+vz/ghwBiouVHR+n1C2g==}engines: {node: '>=18.0.0', pnpm: '>=10.0.0'}@@ -7282,6 +7408,11 @@ packages:engines: {node: '>=18'}hasBin: true+ resolution: {integrity: sha512-qKA6Pvai73+M2FtftpNKRxJ78GIjmFXFxd/1DVBqGo/qNhLSfv+G12n9pNoWdytJC8U00TrViOwpjT0zgqQS8Q==}+ engines: {node: '>=18'}+ hasBin: true+resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}engines: {node: '>=6'}@@ -12076,81 +12207,156 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+dependencies:escape-string-regexp: 4.0.0@@ -13151,10 +13357,10 @@ snapshots:storybook: 8.6.12([email protected])ts-dedent: 2.2.0dependencies:'@storybook/node-logger': 8.1.6- webpack: 5.98.0(@swc/[email protected])([email protected])+ webpack: 5.98.0(@swc/[email protected])([email protected])dependencies:@@ -13165,10 +13371,10 @@ snapshots:memoizerific: 1.11.3storybook: 8.6.12([email protected])dependencies:'@swc/core': 1.10.18- swc-loader: 0.2.6(@swc/[email protected])([email protected](@swc/[email protected])([email protected]))+ swc-loader: 0.2.6(@swc/[email protected])([email protected](@swc/[email protected])([email protected]))transitivePeerDependencies:- '@swc/helpers'- webpack@@ -13182,7 +13388,7 @@ snapshots:react: 19.0.0react-dom: 19.0.0([email protected])- '@storybook/[email protected](@swc/[email protected])([email protected])([email protected]([email protected]))([email protected])':+ '@storybook/[email protected](@swc/[email protected])([email protected])([email protected]([email protected]))([email protected])':dependencies:'@storybook/core-webpack': 8.6.12([email protected]([email protected]))'@types/semver': 7.5.8@@ -13190,23 +13396,23 @@ snapshots:case-sensitive-paths-webpack-plugin: 2.4.0cjs-module-lexer: 1.4.3constants-browserify: 1.0.0es-module-lexer: 1.6.0- fork-ts-checker-webpack-plugin: 8.0.0([email protected])([email protected](@swc/[email protected])([email protected]))+ fork-ts-checker-webpack-plugin: 8.0.0([email protected])([email protected](@swc/[email protected])([email protected]))magic-string: 0.30.17path-browserify: 1.0.1process: 0.11.10semver: 7.7.1storybook: 8.6.12([email protected])- terser-webpack-plugin: 5.3.11(@swc/[email protected])([email protected])([email protected](@swc/[email protected])([email protected]))+ terser-webpack-plugin: 5.3.11(@swc/[email protected])([email protected])([email protected](@swc/[email protected])([email protected]))ts-dedent: 2.2.0url: 0.11.4util: 0.12.5util-deprecate: 1.0.2- webpack: 5.98.0(@swc/[email protected])([email protected])+ webpack: 5.98.0(@swc/[email protected])([email protected])webpack-hot-middleware: 2.26.1webpack-virtual-modules: 0.6.2optionalDependencies:@@ -13232,8 +13438,8 @@ snapshots:'@storybook/theming': 8.6.12([email protected]([email protected]))better-opn: 3.0.2browser-assert: 1.2.1- esbuild: 0.25.2- esbuild-register: 3.6.0([email protected])+ esbuild: 0.25.3+ esbuild-register: 3.6.0([email protected])jsdoc-type-pratt-parser: 4.1.0process: 0.11.10recast: 0.23.9@@ -13272,11 +13478,11 @@ snapshots:'@storybook/[email protected]': {}- '@storybook/[email protected](@storybook/[email protected]([email protected]([email protected])))(@swc/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])':+ '@storybook/[email protected](@storybook/[email protected]([email protected]([email protected])))(@swc/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])':dependencies:'@storybook/core-webpack': 8.6.12([email protected]([email protected]))'@storybook/react': 8.6.12(@storybook/[email protected]([email protected]([email protected])))([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])- '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0([email protected])([email protected](@swc/[email protected])([email protected]))+ '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0([email protected])([email protected](@swc/[email protected])([email protected]))'@types/semver': 7.5.8find-up: 5.0.0magic-string: 0.30.17@@ -13287,7 +13493,7 @@ snapshots:semver: 7.7.1storybook: 8.6.12([email protected])tsconfig-paths: 4.2.0- webpack: 5.98.0(@swc/[email protected])([email protected])+ webpack: 5.98.0(@swc/[email protected])([email protected])optionalDependencies:typescript: 5.8.3transitivePeerDependencies:@@ -13302,7 +13508,7 @@ snapshots:dependencies:storybook: 8.6.12([email protected])- '@storybook/[email protected]([email protected])([email protected](@swc/[email protected])([email protected]))':+ '@storybook/[email protected]([email protected])([email protected](@swc/[email protected])([email protected]))':dependencies:debug: 4.4.0endent: 2.1.0@@ -13312,7 +13518,7 @@ snapshots:react-docgen-typescript: 2.2.2([email protected])tslib: 2.8.1typescript: 5.8.3- webpack: 5.98.0(@swc/[email protected])([email protected])+ webpack: 5.98.0(@swc/[email protected])([email protected])transitivePeerDependencies:- supports-color@@ -13322,10 +13528,10 @@ snapshots:react-dom: 19.0.0([email protected])storybook: 8.6.12([email protected])- '@storybook/[email protected](@storybook/[email protected]([email protected]([email protected])))(@swc/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])':+ '@storybook/[email protected](@storybook/[email protected]([email protected]([email protected])))(@swc/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])':dependencies:- '@storybook/builder-webpack5': 8.6.12(@swc/[email protected])([email protected])([email protected]([email protected]))([email protected])- '@storybook/preset-react-webpack': 8.6.12(@storybook/[email protected]([email protected]([email protected])))(@swc/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])+ '@storybook/builder-webpack5': 8.6.12(@swc/[email protected])([email protected])([email protected]([email protected]))([email protected])+ '@storybook/preset-react-webpack': 8.6.12(@storybook/[email protected]([email protected]([email protected])))(@swc/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])'@storybook/react': 8.6.12(@storybook/[email protected]([email protected]([email protected])))([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])react: 19.0.0react-dom: 19.0.0([email protected])@@ -13776,6 +13982,11 @@ snapshots:react: 19.0.0react-dom: 19.0.0([email protected])+ dependencies:+ react: 19.0.0+ react-dom: 19.0.0([email protected])+dependencies:'@grpc/grpc-js': 1.10.9@@ -14940,7 +15151,7 @@ snapshots:postcss-selector-parser: 7.1.0postcss-value-parser: 4.2.0dependencies:icss-utils: 5.1.0([email protected])postcss: 8.5.3@@ -14951,9 +15162,9 @@ snapshots:postcss-value-parser: 4.2.0semver: 7.7.1optionalDependencies:- webpack: 5.98.0(@swc/[email protected])([email protected])+ webpack: 5.98.0(@swc/[email protected])([email protected])dependencies:icss-utils: 5.1.0([email protected])postcss: 8.5.3@@ -14964,7 +15175,7 @@ snapshots:postcss-value-parser: 4.2.0semver: 7.6.3optionalDependencies:- webpack: 5.98.0(@swc/[email protected])([email protected])+ webpack: 5.98.0(@swc/[email protected])([email protected])dependencies:@@ -15440,17 +15651,17 @@ snapshots:dependencies:chalk: 4.1.2del: 6.1.1- esbuild: 0.25.2+ esbuild: 0.25.3dependencies:chalk: 4.1.2chokidar: 3.6.0- esbuild: 0.25.2+ esbuild: 0.25.3fs-extra: 10.1.0globby: 11.1.0@@ -15462,10 +15673,10 @@ snapshots:optionalDependencies:sass: 1.77.5dependencies:debug: 4.4.0- esbuild: 0.25.2+ esbuild: 0.25.3transitivePeerDependencies:- supports-color@@ -15542,6 +15753,34 @@ snapshots:'@esbuild/win32-ia32': 0.25.2'@esbuild/win32-x64': 0.25.2+ optionalDependencies:+ '@esbuild/aix-ppc64': 0.25.3+ '@esbuild/android-arm': 0.25.3+ '@esbuild/android-arm64': 0.25.3+ '@esbuild/android-x64': 0.25.3+ '@esbuild/darwin-arm64': 0.25.3+ '@esbuild/darwin-x64': 0.25.3+ '@esbuild/freebsd-arm64': 0.25.3+ '@esbuild/freebsd-x64': 0.25.3+ '@esbuild/linux-arm': 0.25.3+ '@esbuild/linux-arm64': 0.25.3+ '@esbuild/linux-ia32': 0.25.3+ '@esbuild/linux-loong64': 0.25.3+ '@esbuild/linux-mips64el': 0.25.3+ '@esbuild/linux-ppc64': 0.25.3+ '@esbuild/linux-riscv64': 0.25.3+ '@esbuild/linux-s390x': 0.25.3+ '@esbuild/linux-x64': 0.25.3+ '@esbuild/netbsd-arm64': 0.25.3+ '@esbuild/netbsd-x64': 0.25.3+ '@esbuild/openbsd-arm64': 0.25.3+ '@esbuild/openbsd-x64': 0.25.3+ '@esbuild/sunos-x64': 0.25.3+ '@esbuild/win32-arm64': 0.25.3+ '@esbuild/win32-ia32': 0.25.3+ '@esbuild/win32-x64': 0.25.3+@@ -16221,7 +16460,7 @@ snapshots:cross-spawn: 7.0.6signal-exit: 4.1.0- [email protected]([email protected])([email protected](@swc/[email protected])([email protected])):+ [email protected]([email protected])([email protected](@swc/[email protected])([email protected])):dependencies:'@babel/code-frame': 7.26.2chalk: 4.1.2@@ -16236,7 +16475,7 @@ snapshots:semver: 7.7.1tapable: 2.2.1typescript: 5.8.3- webpack: 5.98.0(@swc/[email protected])([email protected])+ webpack: 5.98.0(@swc/[email protected])([email protected])dependencies:@@ -16550,7 +16789,7 @@ snapshots:relateurl: 0.2.7terser: 5.39.0dependencies:'@types/html-minifier-terser': 6.1.0html-minifier-terser: 6.1.0@@ -16558,7 +16797,7 @@ snapshots:pretty-error: 4.0.0tapable: 2.2.1optionalDependencies:- webpack: 5.98.0(@swc/[email protected])([email protected])+ webpack: 5.98.0(@swc/[email protected])([email protected])dependencies:@@ -17096,11 +17335,11 @@ snapshots:dependencies:package-json: 10.0.1- [email protected]([email protected])([email protected](@swc/[email protected])([email protected])):+ [email protected]([email protected])([email protected](@swc/[email protected])([email protected])):dependencies:less: 4.3.0optionalDependencies:- webpack: 5.98.0(@swc/[email protected])([email protected])+ webpack: 5.98.0(@swc/[email protected])([email protected])dependencies:@@ -18242,14 +18481,14 @@ snapshots:optionalDependencies:postcss: 8.4.49- [email protected]([email protected])([email protected])([email protected](@swc/[email protected])([email protected])):+ [email protected]([email protected])([email protected])([email protected](@swc/[email protected])([email protected])):dependencies:cosmiconfig: 9.0.0([email protected])jiti: 1.21.6postcss: 8.5.3semver: 7.6.3optionalDependencies:- webpack: 5.98.0(@swc/[email protected])([email protected])+ webpack: 5.98.0(@swc/[email protected])([email protected])transitivePeerDependencies:- typescript@@ -19314,15 +19553,15 @@ snapshots:- [email protected](@swc/[email protected])([email protected](@swc/[email protected])([email protected])([email protected](@swc/[email protected])([email protected])))([email protected](@swc/[email protected])([email protected])):+ [email protected](@swc/[email protected])([email protected](@swc/[email protected])([email protected])([email protected](@swc/[email protected])([email protected])))([email protected](@swc/[email protected])([email protected])):dependencies:'@babel/runtime': 7.24.7'@swc/core': 1.10.18deepmerge: 4.3.1- swc-loader: 0.1.16(@swc/[email protected])([email protected](@swc/[email protected])([email protected]))+ swc-loader: 0.1.16(@swc/[email protected])([email protected](@swc/[email protected])([email protected]))optionalDependencies:- terser-webpack-plugin: 5.3.11(@swc/[email protected])([email protected])([email protected](@swc/[email protected])([email protected]))- webpack: 5.98.0(@swc/[email protected])([email protected])+ terser-webpack-plugin: 5.3.11(@swc/[email protected])([email protected])([email protected](@swc/[email protected])([email protected]))+ webpack: 5.98.0(@swc/[email protected])([email protected])dependencies:@@ -19442,13 +19681,13 @@ snapshots:dependencies:- webpack: 5.98.0(@swc/[email protected])([email protected])+ webpack: 5.98.0(@swc/[email protected])([email protected])dependencies:- webpack: 5.98.0(@swc/[email protected])([email protected])+ webpack: 5.98.0(@swc/[email protected])([email protected])dependencies:@@ -19474,16 +19713,16 @@ snapshots:- [email protected](@swc/[email protected])([email protected](@swc/[email protected])([email protected])):+ [email protected](@swc/[email protected])([email protected](@swc/[email protected])([email protected])):dependencies:'@swc/core': 1.10.18- webpack: 5.98.0(@swc/[email protected])([email protected])+ webpack: 5.98.0(@swc/[email protected])([email protected])- [email protected](@swc/[email protected])([email protected](@swc/[email protected])([email protected])):+ [email protected](@swc/[email protected])([email protected](@swc/[email protected])([email protected])):dependencies:'@swc/core': 1.10.18'@swc/counter': 0.1.3- webpack: 5.98.0(@swc/[email protected])([email protected])+ webpack: 5.98.0(@swc/[email protected])([email protected])@@ -19542,17 +19781,17 @@ snapshots:- [email protected](@swc/[email protected])([email protected])([email protected](@swc/[email protected])([email protected])):+ [email protected](@swc/[email protected])([email protected])([email protected](@swc/[email protected])([email protected])):dependencies:'@jridgewell/trace-mapping': 0.3.25jest-worker: 27.5.1schema-utils: 4.3.0serialize-javascript: 6.0.2terser: 5.39.0- webpack: 5.98.0(@swc/[email protected])([email protected])+ webpack: 5.98.0(@swc/[email protected])([email protected])optionalDependencies:'@swc/core': 1.10.18- esbuild: 0.25.2+ esbuild: 0.25.3dependencies:@@ -19669,7 +19908,7 @@ snapshots:dependencies:- esbuild: 0.25.2+ esbuild: 0.25.3get-tsconfig: 4.10.0optionalDependencies:fsevents: 2.3.3@@ -20085,7 +20324,7 @@ snapshots:dependencies:colorette: 2.0.20memfs: 3.5.3@@ -20093,7 +20332,7 @@ snapshots:range-parser: 1.2.1schema-utils: 4.3.0optionalDependencies:- webpack: 5.98.0(@swc/[email protected])([email protected])+ webpack: 5.98.0(@swc/[email protected])([email protected])dependencies:@@ -20105,7 +20344,7 @@ snapshots:dependencies:'@types/eslint-scope': 3.7.7'@types/estree': 1.0.7@@ -20127,7 +20366,7 @@ snapshots:neo-async: 2.6.2schema-utils: 4.3.0tapable: 2.2.1- terser-webpack-plugin: 5.3.11(@swc/[email protected])([email protected])([email protected](@swc/[email protected])([email protected]))+ terser-webpack-plugin: 5.3.11(@swc/[email protected])([email protected])([email protected](@swc/[email protected])([email protected]))watchpack: 2.4.2webpack-sources: 3.2.3transitivePeerDependencies: