Skip to content

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.

chore: support tailwindcss (#4178)

白熱5627c255035e
diff --git a/common/shared/eslint/index.js b/common/shared/eslint/index.js
index 05dc2831e2..2cbf081285 100644
--- a/common/shared/eslint/index.js
+++ b/common/shared/eslint/index.js
@@ -1,3 +1,5 @@
+const eslintPluginReadableTailwind = require('eslint-plugin-readable-tailwind');
+
exports.baseRules = {
curly: ['error', 'multi-line'],
'no-param-reassign': ['warn'],
@@ -143,6 +145,29 @@ exports.facadePreset = () => {
};
};
+exports.tailwindcssPreset = () => {
+ return {
+ files: ['**/*.{jsx,tsx}'],
+ languageOptions: {
+ parserOptions: {
+ ecmaFeatures: {
+ jsx: true,
+ },
+ },
+ },
+ plugins: {
+ 'readable-tailwind': eslintPluginReadableTailwind,
+ },
+ rules: {
+ ...eslintPluginReadableTailwind.configs.warning.rules,
+ ...eslintPluginReadableTailwind.configs.error.rules,
+ 'jsonc/sort-keys': ['warn'],
+ 'readable-tailwind/multiline': ['warn', { printWidth: 120 }],
+ 'react-hooks/rules-of-hooks': 'off',
+ },
+ };
+};
+
exports.specPreset = () => {
return {
files: [
diff --git a/common/shared/package.json b/common/shared/package.json
index 97663fe9c0..188dfadf8f 100644
--- a/common/shared/package.json
+++ b/common/shared/package.json
@@ -15,7 +15,9 @@
"./eslint": "./eslint/index.js",
"./tsconfigs/*": "./tsconfigs/*.json",
"./vite": "./vite/index.ts",
- "./vitest": "./vitest/index.js"
+ "./vitest": "./vitest/index.js",
+ "./tailwind": "./tailwind/tailwind.config.ts",
+ "./postcss": "./postcss/postcss.config.mjs"
},
"main": "bin/index.js",
"bin": {
@@ -26,10 +28,12 @@
"@vitejs/plugin-react": "^4.3.4",
"@vitejs/plugin-vue": "^5.2.1",
"@vitest/coverage-istanbul": "^2.1.6",
+ "eslint-plugin-readable-tailwind": "^1.8.2",
"fs-extra": "^11.2.0",
"happy-dom": "15.0.0",
"javascript-obfuscator": "^4.1.1",
"sort-keys": "^5.1.0",
+ "tailwindcss": "^3.4.15",
"vite": "^6.0.0",
"vite-plugin-dts": "^4.3.0",
"vite-plugin-external": "^4.3.1",
diff --git a/common/shared/postcss/postcss.config.mjs b/common/shared/postcss/postcss.config.mjs
new file mode 100644
index 0000000000..6f943477c0
--- /dev/null
+++ b/common/shared/postcss/postcss.config.mjs
@@ -0,0 +1,8 @@
+/** @type {import('postcss-load-config').Config} */
+const config = {
+ plugins: {
+ tailwindcss: {},
+ },
+};
+
+export default config;
diff --git a/common/shared/tailwind/tailwind.config.ts b/common/shared/tailwind/tailwind.config.ts
new file mode 100644
index 0000000000..a27ec9eb47
--- /dev/null
+++ b/common/shared/tailwind/tailwind.config.ts
@@ -0,0 +1,162 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+
+const config: Omit<Config, 'content'> = {
+ prefix: 'univer-',
+ theme: {
+ extend: {
+ colors: {
+ primary: {
+ 50: '#F3F5FF',
+ 100: '#E9EDFF',
+ 200: '#D2DAFA',
+ 300: '#BAC6F8',
+ 400: '#6280F9',
+ 500: '#466AF7',
+ 600: '#2C53F1',
+ 700: '#143EE3',
+ 800: '#083AD1',
+ 900: '#1033BF',
+ },
+ gray: {
+ 50: '#F9FAFB',
+ 100: '#EEEFF1',
+ 200: '#E3E5EA',
+ 300: '#CDD0D8',
+ 400: '#979DAC',
+ 500: '#5F6574',
+ 600: '#414657',
+ 700: '#2C3040',
+ 800: '#181C2A',
+ 900: '#0E111E',
+ },
+ blue: {
+ 50: '#EBF5FF',
+ 100: '#E1EFFE',
+ 200: '#C3DDFD',
+ 300: '#A4CAFE',
+ 400: '#76A9FA',
+ 500: '#3F83F8',
+ 600: '#1C64F2',
+ 700: '#1A56DB',
+ 800: '#1E429F',
+ 900: '#233876',
+ },
+ red: {
+ 50: '#FDF2F2',
+ 100: '#FDE8E8',
+ 200: '#FBD5D5',
+ 300: '#F8B4B4',
+ 400: '#F98080',
+ 500: '#F05252',
+ 600: '#E02424',
+ 700: '#C81E1E',
+ 800: '#9B1C1C',
+ 900: '#771D1D',
+ },
+ orange: {
+ 50: '#FFF8F1',
+ 100: '#FEECDC',
+ 200: '#FCD9BD',
+ 300: '#FDBA8C',
+ 400: '#FF8A4C',
+ 500: '#FF5A1F',
+ 600: '#D03801',
+ 700: '#B43403',
+ 800: '#8A2C0D',
+ 900: '#771D1D',
+ },
+ yellow: {
+ 50: '#FDFCEA',
+ 100: '#FFF4B9',
+ 200: '#FCDC6A',
+ 300: '#FAC815',
+ 400: '#F1B312',
+ 500: '#D49D0F',
+ 600: '#AB7F0E',
+ 700: '#9A6D15',
+ 800: '#725213',
+ 900: '#634312',
+ },
+ green: {
+ 50: '#F3FAF7',
+ 100: '#DEF7EC',
+ 200: '#BCF0DA',
+ 300: '#84E1BC',
+ 400: '#31C48D',
+ 500: '#0DA471',
+ 600: '#057A55',
+ 700: '#046C4E',
+ 800: '#03543F',
+ 900: '#014737',
+ },
+ jiqing: {
+ 50: '#EDFAFA',
+ 100: '#D5F5F6',
+ 200: '#AFECEF',
+ 300: '#7EDCE2',
+ 400: '#16BDCA',
+ 500: '#0694A2',
+ 600: '#047481',
+ 700: '#036672',
+ 800: '#05505C',
+ 900: '#014451',
+ },
+ indigo: {
+ 50: '#F3F5FF',
+ 100: '#E9EDFF',
+ 200: '#D2DAFA',
+ 300: '#BAC6F8',
+ 400: '#6280F9',
+ 500: '#466AF7',
+ 600: '#2C53F1',
+ 700: '#143EE3',
+ 800: '#083AD1',
+ 900: '#1033BF',
+ },
+ purple: {
+ 50: '#F6F5FF',
+ 100: '#EDEBFE',
+ 200: '#DCD7FE',
+ 300: '#CABFFD',
+ 400: '#AC94FA',
+ 500: '#9061F9',
+ 600: '#7E3AF2',
+ 700: '#6C2BD9',
+ 800: '#5521B5',
+ 900: '#4A1D96',
+ },
+ pink: {
+ 50: '#FDF2F8',
+ 100: '#FCE8F3',
+ 200: '#FAD1E8',
+ 300: '#F8B4D9',
+ 400: '#F17EB8',
+ 500: '#E74694',
+ 600: '#D61F69',
+ 700: '#BF125D',
+ 800: '#99154B',
+ 900: '#751A3D',
+ },
+ },
+ },
+ },
+ plugins: [],
+};
+
+export default config;
diff --git a/common/storybook/.storybook/global.css b/common/storybook/.storybook/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/common/storybook/.storybook/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/common/storybook/.storybook/main.ts b/common/storybook/.storybook/main.ts
index 667365cbf1..024c916b4a 100644
--- a/common/storybook/.storybook/main.ts
+++ b/common/storybook/.storybook/main.ts
@@ -14,10 +14,10 @@
* limitations under the License.
*/
-import { resolve } from 'node:path';
-import { existsSync, readdirSync } from 'node:fs';
import type { StorybookConfig } from '@storybook/react-webpack5';
import type { StoriesEntry } from '@storybook/types';
+import { existsSync, readdirSync } from 'node:fs';
+import { resolve } from 'node:path';
import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin';
@@ -65,7 +65,27 @@ const config: StorybookConfig = {
options: {
rules: [
{
- test: /\.(less|css)$/i,
+ test: /\.css$/,
+ sideEffects: true,
+ use: [
+ 'style-loader',
+ {
+ loader: 'css-loader',
+ options: {
+ importLoaders: 1,
+ },
+ },
+ {
+ loader: 'postcss-loader',
+ options: {
+ implementation: 'postcss',
+ },
+ },
+ ],
+ },
+ {
+ test: /\.less$/i,
+ sideEffects: true,
use: [
'style-loader',
{
@@ -80,7 +100,7 @@ const config: StorybookConfig = {
},
{
loader: 'less-loader',
- options: { implementation: require.resolve('less') },
+ options: { implementation: 'less' },
},
],
},
@@ -90,11 +110,7 @@ const config: StorybookConfig = {
],
framework: {
name: '@storybook/react-webpack5',
- options: {
- // builder: {
- // useSWC: false,
- // },
- },
+ options: {},
},
swc: () => {
return {
diff --git a/common/storybook/.storybook/preview.tsx b/common/storybook/.storybook/preview.tsx
index fdc691b784..47f357a258 100644
--- a/common/storybook/.storybook/preview.tsx
+++ b/common/storybook/.storybook/preview.tsx
@@ -47,6 +47,8 @@ import zhCN from '@univerjs/design/locale/zh-CN';
import { DesktopLocalStorageService } from '@univerjs/ui';
import React from 'react';
+import './global.css';
+
export const themes: Record<string, Record<string, string>> = {
default: defaultTheme,
green: greenTheme,
diff --git a/common/storybook/package.json b/common/storybook/package.json
index a05e8135ce..bb124a142e 100644
--- a/common/storybook/package.json
+++ b/common/storybook/package.json
@@ -32,6 +32,7 @@
"@univerjs/ui": "workspace:*",
"css-loader": "^7.1.2",
"less-loader": "^12.2.0",
+ "postcss-loader": "^8.1.1",
"storybook": "^8.4.5",
"storybook-addon-swc": "^1.2.0",
"style-loader": "^4.0.0",
@@ -39,6 +40,10 @@
"typescript": "^5.7.2"
},
"devDependencies": {
- "@univerjs-infra/shared": "workspace:*"
+ "@types/fs-extra": "^11.0.4",
+ "@univerjs-infra/shared": "workspace:*",
+ "fs-extra": "^11.2.0",
+ "postcss": "^8.4.49",
+ "tailwindcss": "^3.4.15"
}
}
diff --git a/common/storybook/postcss.config.mjs b/common/storybook/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/common/storybook/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/common/storybook/tailwind.config.ts b/common/storybook/tailwind.config.ts
new file mode 100644
index 0000000000..9b2fe697f6
--- /dev/null
+++ b/common/storybook/tailwind.config.ts
@@ -0,0 +1,44 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import path from 'node:path';
+import { fileURLToPath } from 'node:url';
+import preset from '@univerjs-infra/shared/tailwind';
+import fs from 'fs-extra';
+
+const __dirname = path.dirname(fileURLToPath(import.meta.url));
+
+const packagesDir = fs.readdirSync(path.resolve(__dirname, '../../packages')).map((dir) => path.resolve(__dirname, `../../packages/${dir}`));
+const packagesExperimentalDir = fs.readdirSync(path.resolve(__dirname, '../../packages-experimental')).map((dir) => path.resolve(__dirname, `../../packages-experimental/${dir}`));
+
+const tailwindProjects = packagesDir.concat(packagesExperimentalDir).reduce((acc, dir) => {
+ const tailwindConfig = path.resolve(dir, 'tailwind.config.ts');
+ if (fs.existsSync(tailwindConfig)) {
+ acc.push(`${dir}/src/**/*.{js,ts,jsx,tsx}`);
+ }
+ return acc;
+}, [] as string[]);
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ '.storybook/**/*.{js,ts,jsx,tsx}',
+ ...tailwindProjects,
+ ],
+};
+
+export default config;
diff --git a/eslint.config.js b/eslint.config.js
index ceea52fa8f..c952c4262d 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -1,103 +1,105 @@
import antfu from '@antfu/eslint-config';
-import { baseRules, facadePreset, specPreset, typescriptPreset } from '@univerjs-infra/shared/eslint';
+import { baseRules, facadePreset, specPreset, tailwindcssPreset, typescriptPreset } from '@univerjs-infra/shared/eslint';
import header from 'eslint-plugin-header';
import barrel from 'eslint-plugin-no-barrel-import';
import penetrating from 'eslint-plugin-no-penetrating-import';
header.rules.header.meta.schema = false;
-export default antfu({
- stylistic: {
- indent: 4,
- semi: true,
- },
- regexp: false,
- react: true,
- yaml: {
- overrides: {
- 'yaml/indent': ['error', 4, { indicatorValueIndent: 2 }],
+export default antfu(
+ {
+ stylistic: {
+ indent: 4,
+ semi: true,
},
- },
- markdown: false,
- typescript: true,
- formatters: {
- css: true,
- html: true,
- },
- rules: baseRules,
- ignores: [
- 'mockdata/**/*.json',
- ],
-}, {
- files: ['**/*.ts', '**/*.tsx'],
- ignores: [
- 'packages/engine-render/src/components/docs/**/*.ts',
- '**/*.tsx',
- '**/*.d.ts',
- '**/vite.config.ts',
- 'playwright.config.ts',
- '**/*.spec.ts',
- '**/*.spec.tsx',
- '**/*.test.ts',
- '**/*.test.tsx',
- ], // do not check test files
- rules: {
- complexity: ['warn', { max: 20 }],
- 'max-lines-per-function': ['warn', 80],
- },
-}, {
- files: ['**/*.ts', '**/*.tsx'],
- ignores: ['**/*.d.ts', '**/vite.config.ts', '**/vitest.config.ts', 'playwright.config.ts'],
- plugins: {
- header,
- barrel,
- },
- rules: {
- 'barrel/no-barrel-import': 2,
- 'header/header': [
- 2,
- 'block',
- [
- '*',
- ' * Copyright 2023-present DreamNum Inc.',
- ' *',
- ' * Licensed under the Apache License, Version 2.0 (the "License");',
- ' * you may not use this file except in compliance with the License.',
- ' * You may obtain a copy of the License at',
- ' *',
- ' * http://www.apache.org/licenses/LICENSE-2.0',
- ' *',
- ' * Unless required by applicable law or agreed to in writing, software',
- ' * distributed under the License is distributed on an "AS IS" BASIS,',
- ' * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.',
- ' * See the License for the specific language governing permissions and',
- ' * limitations under the License.',
- ' ',
- ],
- 2,
+ regexp: false,
+ react: true,
+ yaml: {
+ overrides: {
+ 'yaml/indent': ['error', 4, { indicatorValueIndent: 2 }],
+ },
+ },
+ markdown: false,
+ typescript: true,
+ formatters: {
+ css: true,
+ html: true,
+ },
+ rules: baseRules,
+ ignores: [
+ 'mockdata/**/*.json',
],
- },
-}, {
+ }, {
+ files: ['**/*.ts', '**/*.tsx'],
+ ignores: [
+ 'packages/engine-render/src/components/docs/**/*.ts',
+ '**/*.tsx',
+ '**/*.d.ts',
+ '**/vite.config.ts',
+ 'playwright.config.ts',
+ '**/*.spec.ts',
+ '**/*.spec.tsx',
+ '**/*.test.ts',
+ '**/*.test.tsx',
+ ], // do not check test files
+ rules: {
+ complexity: ['warn', { max: 20 }],
+ 'max-lines-per-function': ['warn', 80],
+ },
+ }, {
+ files: ['**/*.ts', '**/*.tsx'],
+ ignores: ['**/*.d.ts', '**/vite.config.ts', '**/vitest.config.ts', 'playwright.config.ts'],
+ plugins: {
+ header,
+ barrel,
+ },
+ rules: {
+ 'barrel/no-barrel-import': 2,
+ 'header/header': [
+ 2,
+ 'block',
+ [
+ '*',
+ ' * Copyright 2023-present DreamNum Inc.',
+ ' *',
+ ' * Licensed under the Apache License, Version 2.0 (the "License");',
+ ' * you may not use this file except in compliance with the License.',
+ ' * You may obtain a copy of the License at',
+ ' *',
+ ' * http://www.apache.org/licenses/LICENSE-2.0',
+ ' *',
+ ' * Unless required by applicable law or agreed to in writing, software',
+ ' * distributed under the License is distributed on an "AS IS" BASIS,',
+ ' * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.',
+ ' * See the License for the specific language governing permissions and',
+ ' * limitations under the License.',
+ ' ',
+ ],
+ 2,
+ ],
+ },
+ }, {
// Not penetrating for source files
- files: ['**/*.ts', '**/*.tsx'],
- plugins: {
- penetrating,
- },
- ignores: [
- '**/__tests__/**/*',
- '**/__testing__/**/*',
- 'examples/**/*',
- ],
- rules: {
- 'penetrating/no-penetrating-import': 2,
- },
-}, {
- files: ['**/*/src/index.ts'],
- rules: {
- 'perfectionist/sort-exports': 'off',
+ files: ['**/*.ts', '**/*.tsx'],
+ plugins: {
+ penetrating,
+ },
+ ignores: [
+ '**/__tests__/**/*',
+ '**/__testing__/**/*',
+ 'examples/**/*',
+ ],
+ rules: {
+ 'penetrating/no-penetrating-import': 2,
+ },
+ }, {
+ files: ['**/*/src/index.ts'],
+ rules: {
+ 'perfectionist/sort-exports': 'off',
+ },
},
-},
-typescriptPreset(),
-facadePreset(),
-specPreset()
+ typescriptPreset(),
+ facadePreset(),
+ tailwindcssPreset(),
+ specPreset()
);
diff --git a/examples/esbuild.config.ts b/examples/esbuild.config.ts
index 55c81fe4ed..53300c3e44 100644
--- a/examples/esbuild.config.ts
+++ b/examples/esbuild.config.ts
@@ -25,6 +25,7 @@ import copyPlugin from 'esbuild-plugin-copy';
import vue from 'esbuild-plugin-vue3';
import stylePlugin from 'esbuild-style-plugin';
import minimist from 'minimist';
+import tailwindcss from 'tailwindcss';
const nodeModules = path.resolve(process.cwd(), './node_modules');
@@ -88,6 +89,9 @@ const config: SameShape<BuildOptions, BuildOptions> = {
},
}),
stylePlugin({
+ postcss: {
+ plugins: [tailwindcss],
+ },
cssModulesOptions: {
localsConvention: 'camelCaseOnly',
generateScopedName: 'univer-[local]',
diff --git a/examples/package.json b/examples/package.json
index 1011f38b42..c7de0d4aa9 100644
--- a/examples/package.json
+++ b/examples/package.json
@@ -88,6 +88,8 @@
"fs-extra": "^11.2.0",
"less": "^4.2.1",
"minimist": "^1.2.8",
+ "postcss": "^8.4.49",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2"
}
}
diff --git a/examples/postcss.config.mjs b/examples/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/examples/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/examples/src/global.css b/examples/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/examples/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/examples/src/main.tsx b/examples/src/main.tsx
index 6b06aed14c..7dbe5cc12f 100644
--- a/examples/src/main.tsx
+++ b/examples/src/main.tsx
@@ -18,7 +18,7 @@ import React from 'react';
import { createRoot } from 'react-dom/client';
import pkg from '../../package.json';
-import styles from './styles.module.less';
+import './global.css';
// package info
// eslint-disable-next-line node/prefer-global/process
@@ -64,20 +64,46 @@ function Examples() {
}];
return (
- <section className={styles.examples}>
- <header className={styles.header}>
- <img className={styles.logo} src="/favicon.svg" alt="Univer" draggable={false} />
- <h1 className={styles.title}>
- <span>Univer</span>
- <sup>{pkg.version}</sup>
+ <section
+ className="univer-h-full univer-flex univer-gap-6 univer-justify-center univer-flex-col univer-items-center"
+ >
+ <header className="univer-flex univer-items-center">
+ <img className="univer-w-24" src="/favicon.svg" alt="Univer" draggable={false} />
+ <h1 className="univer-text-slate-700">
+ <span
+ className={`
+ univer-text-4xl
+ univer-bg-[linear-gradient(121deg,#0048ff_18.89%,#0c81ed_39.58%,#029dce_59.87%,#00bbb0_74.37%,#00c5a8_79.64%)]
+ univer-text-transparent univer-bg-clip-text
+ `}
+ >
+ Univer
+ </span>
+ <sup
+ className={`
+ univer-text-xs univer-py-0.5 univer-px-2 univer-border-solid univer-border-current
+ univer-border univer-rounded-xl univer-relative -univer-top-1 univer-left-2
+ `}
+ >
+ {pkg.version}
+ </sup>
</h1>
</header>
- <section className={styles.list}>
+ <section className="univer-flex univer-flex-wrap univer-gap-6 univer-justify-center">
{demos.map((demo) => (
- <a key={demo.title} className={styles.btn} href={demo.href}>
- <span className={styles.text}>{demo.title}</span>
- <span className={styles.shimmer} />
+ <a
+ key={demo.title}
+ className={`
+ univer-bg-blue-500 univer-shadow-sm univer-transition-all univer-duration-300
+ univer-ease-in-out univer-text-white univer-rounded-lg univer-font-medium univer-no-underline
+ univer-py-2.5 univer-px-6
+
+ hover:univer-bg-emerald-500 hover:univer-scale-105
+ `}
+ href={demo.href}
+ >
+ <span>{demo.title}</span>
</a>
))}
</section>
diff --git a/examples/src/sheets/main.ts b/examples/src/sheets/main.ts
index aa5a70b2b6..ba4e4a2b6d 100644
--- a/examples/src/sheets/main.ts
+++ b/examples/src/sheets/main.ts
@@ -55,6 +55,8 @@ import '@univerjs/sheets-numfmt/facade';
import '@univerjs/sheets-hyper-link-ui/facade';
import '@univerjs/sheets-thread-comment/facade';
+import '../global.css';
+
/* eslint-disable-next-line node/prefer-global/process */
const IS_E2E: boolean = !!process.env.IS_E2E;
diff --git a/examples/src/styles.module.less b/examples/src/styles.module.less
deleted file mode 100644
index 7de8dae14d..0000000000
--- a/examples/src/styles.module.less
+++ /dev/null
@@ -1,90 +0,0 @@
-.examples {
- height: 100%;
- display: flex;
- font-family:
- Inter,
- -apple-system,
- BlinkMacSystemFont,
- 'PingFang SC',
- 'Hiragino Sans GB',
- 'noto sans',
- 'Microsoft YaHei',
- 'Helvetica Neue',
- Helvetica,
- Arial,
- sans-serif;
- -webkit-font-smoothing: antialiased;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- gap: 24px;
-}
-
-.header {
- display: flex;
- align-items: center;
-
- .logo {
- width: 96px;
- }
-
- .title {
- color: #272e3b;
-
- span {
- font-size: 36px;
- background-image: linear-gradient(
- 121deg,
- #0048ff 18.89%,
- #0c81ed 39.58%,
- #029dce 59.87%,
- #00bbb0 74.37%,
- #00c5a8 79.64%
- );
- background-clip: text;
- -webkit-background-clip: text;
- -webkit-text-fill-color: transparent;
- }
-
- sup {
- position: relative;
- top: -4px;
- left: 8px;
- padding: 2px 8px;
- color: #6b7785;
- font-size: 12px;
- font-weight: normal;
- border: 1px solid currentColor;
- border-radius: 12px;
- }
- }
-}
-
-.list {
- display: flex;
- flex-wrap: wrap;
- gap: 24px;
- justify-content: center;
-
- .btn {
- --scale: 1;
- --background: #0492ed;
- padding: 10px 24px;
- text-decoration: none;
- color: #fff;
- font-weight: 500;
- background: var(--background);
- border-radius: 8px;
- box-shadow: 0 4px 8px rgba(0, 9, 61, 0.2);
- transform: scale(var(--scale));
- transition: all 0.3s;
-
- &:hover {
- --scale: 1.05;
- --background: #00b197;
- }
-
- .title {
- }
- }
-}
diff --git a/examples/tailwind.config.ts b/examples/tailwind.config.ts
new file mode 100644
index 0000000000..eb29801806
--- /dev/null
+++ b/examples/tailwind.config.ts
@@ -0,0 +1,44 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import path from 'node:path';
+import { fileURLToPath } from 'node:url';
+import preset from '@univerjs-infra/shared/tailwind';
+import fs from 'fs-extra';
+
+const __dirname = path.dirname(fileURLToPath(import.meta.url));
+
+const packagesDir = fs.readdirSync(path.resolve(__dirname, '../packages')).map((dir) => path.resolve(__dirname, `../packages/${dir}`));
+const packagesExperimentalDir = fs.readdirSync(path.resolve(__dirname, '../packages-experimental')).map((dir) => path.resolve(__dirname, `../packages-experimental/${dir}`));
+
+const tailwindProjects = packagesDir.concat(packagesExperimentalDir).reduce((acc, dir) => {
+ const tailwindConfig = path.resolve(dir, 'tailwind.config.ts');
+ if (fs.existsSync(tailwindConfig)) {
+ acc.push(`${dir}/src/**/*.{js,ts,jsx,tsx}`);
+ }
+ return acc;
+}, [] as string[]);
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ...tailwindProjects,
+ ],
+};
+
+export default config;
diff --git a/package.json b/package.json
index 1b84f67432..625d84f6ef 100644
--- a/package.json
+++ b/package.json
@@ -43,7 +43,7 @@
"release": "release-it"
},
"devDependencies": {
- "@antfu/eslint-config": "3.10.0",
+ "@antfu/eslint-config": "3.11.2",
"@commitlint/cli": "^19.6.0",
"@commitlint/config-conventional": "^19.6.0",
"@eslint-react/eslint-plugin": "^1.17.1",
@@ -51,7 +51,7 @@
"@release-it-plugins/workspaces": "^4.2.0",
"@release-it/conventional-changelog": "^9.0.3",
"@storybook/react": "8.4.5",
- "@types/node": "^22.10.0",
+ "@types/node": "^22.10.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@univerjs-infra/shared": "workspace:*",
diff --git a/packages-experimental/action-recorder/postcss.config.mjs b/packages-experimental/action-recorder/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages-experimental/action-recorder/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages-experimental/action-recorder/src/global.css b/packages-experimental/action-recorder/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages-experimental/action-recorder/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages-experimental/action-recorder/src/index.ts b/packages-experimental/action-recorder/src/index.ts
index 0e135d9584..ec030108a9 100644
--- a/packages-experimental/action-recorder/src/index.ts
+++ b/packages-experimental/action-recorder/src/index.ts
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+import './global.css';
+
export { UniverActionRecorderPlugin } from './plugin';
export { ActionRecorderService } from './services/action-recorder.service';
export { ActionReplayService } from './services/replay.service';
diff --git a/packages-experimental/action-recorder/tailwind.config.ts b/packages-experimental/action-recorder/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages-experimental/action-recorder/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages-experimental/debugger/package.json b/packages-experimental/debugger/package.json
index 65569cd3fe..7a8ae684a8 100644
--- a/packages-experimental/debugger/package.json
+++ b/packages-experimental/debugger/package.json
@@ -74,7 +74,9 @@
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
+ "postcss": "^8.4.49",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6",
diff --git a/packages-experimental/debugger/postcss.config.mjs b/packages-experimental/debugger/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages-experimental/debugger/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages-experimental/debugger/src/global.css b/packages-experimental/debugger/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages-experimental/debugger/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages-experimental/debugger/src/index.ts b/packages-experimental/debugger/src/index.ts
index 997cf8bb83..62c91266d3 100644
--- a/packages-experimental/debugger/src/index.ts
+++ b/packages-experimental/debugger/src/index.ts
@@ -14,4 +14,6 @@
* limitations under the License.
*/
+import './global.css';
+
export * from './debugger-plugin';
diff --git a/packages-experimental/debugger/tailwind.config.ts b/packages-experimental/debugger/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages-experimental/debugger/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages-experimental/uni-docs-ui/package.json b/packages-experimental/uni-docs-ui/package.json
index 5734112b6d..a23ae70255 100644
--- a/packages-experimental/uni-docs-ui/package.json
+++ b/packages-experimental/uni-docs-ui/package.json
@@ -70,7 +70,9 @@
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
+ "postcss": "^8.4.49",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages-experimental/uni-docs-ui/postcss.config.mjs b/packages-experimental/uni-docs-ui/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages-experimental/uni-docs-ui/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages-experimental/uni-docs-ui/src/global.css b/packages-experimental/uni-docs-ui/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages-experimental/uni-docs-ui/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages-experimental/uni-docs-ui/src/index.ts b/packages-experimental/uni-docs-ui/src/index.ts
index b82418afb0..5da62d184f 100644
--- a/packages-experimental/uni-docs-ui/src/index.ts
+++ b/packages-experimental/uni-docs-ui/src/index.ts
@@ -14,4 +14,6 @@
* limitations under the License.
*/
+import './global.css';
+
export { UniDocsUIController } from './controllers/uni-docs-ui.controller';
diff --git a/packages-experimental/uni-docs-ui/tailwind.config.ts b/packages-experimental/uni-docs-ui/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages-experimental/uni-docs-ui/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages-experimental/uni-formula-ui/package.json b/packages-experimental/uni-formula-ui/package.json
index 40e5444d7b..03b685ed27 100644
--- a/packages-experimental/uni-formula-ui/package.json
+++ b/packages-experimental/uni-formula-ui/package.json
@@ -81,7 +81,9 @@
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
+ "postcss": "^8.4.49",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages-experimental/uni-formula-ui/postcss.config.mjs b/packages-experimental/uni-formula-ui/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages-experimental/uni-formula-ui/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages-experimental/uni-formula-ui/src/global.css b/packages-experimental/uni-formula-ui/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages-experimental/uni-formula-ui/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages-experimental/uni-formula-ui/src/index.ts b/packages-experimental/uni-formula-ui/src/index.ts
index ab953e95da..67e7a3478b 100644
--- a/packages-experimental/uni-formula-ui/src/index.ts
+++ b/packages-experimental/uni-formula-ui/src/index.ts
@@ -14,5 +14,7 @@
* limitations under the License.
*/
+import './global.css';
+
export { UniverDocUniFormulaUIPlugin } from './uni-formula-ui.plugin';
export { UniFormulaService } from './services/uni-formula.service';
diff --git a/packages-experimental/uni-formula-ui/tailwind.config.ts b/packages-experimental/uni-formula-ui/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages-experimental/uni-formula-ui/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages-experimental/uni-sheets-ui/package.json b/packages-experimental/uni-sheets-ui/package.json
index 72437cc26f..297f3cf7de 100644
--- a/packages-experimental/uni-sheets-ui/package.json
+++ b/packages-experimental/uni-sheets-ui/package.json
@@ -74,7 +74,9 @@
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
+ "postcss": "^8.4.49",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages-experimental/uni-sheets-ui/postcss.config.mjs b/packages-experimental/uni-sheets-ui/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages-experimental/uni-sheets-ui/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages-experimental/uni-sheets-ui/src/global.css b/packages-experimental/uni-sheets-ui/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages-experimental/uni-sheets-ui/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages-experimental/uni-sheets-ui/src/index.ts b/packages-experimental/uni-sheets-ui/src/index.ts
index db4a083b41..5d0a6879b2 100644
--- a/packages-experimental/uni-sheets-ui/src/index.ts
+++ b/packages-experimental/uni-sheets-ui/src/index.ts
@@ -14,4 +14,6 @@
* limitations under the License.
*/
+import './global.css';
+
export { UniSheetsUIController } from './controllers/uni-sheets-ui.controller';
diff --git a/packages-experimental/uni-sheets-ui/src/views/uni-sheet-bar/UniSheetBar.tsx b/packages-experimental/uni-sheets-ui/src/views/uni-sheet-bar/UniSheetBar.tsx
index 5bd5a3230e..218cd5ba0d 100644
--- a/packages-experimental/uni-sheets-ui/src/views/uni-sheet-bar/UniSheetBar.tsx
+++ b/packages-experimental/uni-sheets-ui/src/views/uni-sheet-bar/UniSheetBar.tsx
@@ -14,14 +14,14 @@
* limitations under the License.
*/
-import type { IBaseSheetBarProps } from '@univerjs/sheets-ui';
-import { useActiveWorkbook } from '@univerjs/sheets-ui';
-import { IncreaseSingle } from '@univerjs/icons';
-import React, { useCallback, useEffect, useRef, useState } from 'react';
import type { ICommandInfo } from '@univerjs/core';
+import type { IBaseSheetBarProps } from '@univerjs/sheets-ui';
import { ICommandService, useDependency } from '@univerjs/core';
-import { InsertSheetCommand, InsertSheetMutation, RemoveSheetMutation, SetTabColorMutation, SetWorksheetActiveOperation, SetWorksheetHideMutation, SetWorksheetNameMutation, SetWorksheetOrderMutation } from '@univerjs/sheets';
import { Tooltip } from '@univerjs/design';
+import { IncreaseSingle } from '@univerjs/icons';
+import { InsertSheetCommand, InsertSheetMutation, RemoveSheetMutation, SetTabColorMutation, SetWorksheetActiveOperation, SetWorksheetHideMutation, SetWorksheetNameMutation, SetWorksheetOrderMutation } from '@univerjs/sheets';
+import { useActiveWorkbook } from '@univerjs/sheets-ui';
+import React, { useCallback, useEffect, useRef, useState } from 'react';
import styles from './index.module.less';
export function UniSheetBar() {
@@ -105,7 +105,14 @@ export function UniSheetBar() {
<div className={styles.sheetTab} style={{ height: `${barHeight}px` }}>
<div className={styles.sheetItems}>
{sheetList.map((item, index) => (
- <div key={index} className={`${styles.sheetItem} ${activeKey === item.sheetId ? styles.active : ''}`} onClick={() => handleSheetActiveChange(item.sheetId)}>
+ <div
+ key={index}
+ className={`
+ ${styles.sheetItem}
+ ${activeKey === item.sheetId ? styles.active : ''}
+ `}
+ onClick={() => handleSheetActiveChange(item.sheetId)}
+ >
<Tooltip showIfEllipsis title={item.label} placement="right">
<span>
{' '}
diff --git a/packages-experimental/uni-sheets-ui/tailwind.config.ts b/packages-experimental/uni-sheets-ui/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages-experimental/uni-sheets-ui/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages-experimental/uni-slides-ui/package.json b/packages-experimental/uni-slides-ui/package.json
index 46268aa214..01dccc65bb 100644
--- a/packages-experimental/uni-slides-ui/package.json
+++ b/packages-experimental/uni-slides-ui/package.json
@@ -70,9 +70,11 @@
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"less": "^4.2.1",
+ "postcss": "^8.4.49",
"react": "18.3.1",
"react-dom": "18.3.1",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages-experimental/uni-slides-ui/postcss.config.mjs b/packages-experimental/uni-slides-ui/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages-experimental/uni-slides-ui/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages-experimental/uni-slides-ui/src/global.css b/packages-experimental/uni-slides-ui/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages-experimental/uni-slides-ui/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages-experimental/uni-slides-ui/src/index.ts b/packages-experimental/uni-slides-ui/src/index.ts
index 54b66877c0..40c141b050 100644
--- a/packages-experimental/uni-slides-ui/src/index.ts
+++ b/packages-experimental/uni-slides-ui/src/index.ts
@@ -14,4 +14,6 @@
* limitations under the License.
*/
+import './global.css';
+
export { UniSlidesUIController } from './controllers/uni-slides-ui.controller';
diff --git a/packages-experimental/uni-slides-ui/tailwind.config.ts b/packages-experimental/uni-slides-ui/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages-experimental/uni-slides-ui/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages-experimental/uniui/package.json b/packages-experimental/uniui/package.json
index 9788cca97b..6c32cd3df0 100644
--- a/packages-experimental/uniui/package.json
+++ b/packages-experimental/uniui/package.json
@@ -77,9 +77,11 @@
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"less": "^4.2.1",
+ "postcss": "^8.4.49",
"react": "18.3.1",
"react-dom": "18.3.1",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages-experimental/uniui/postcss.config.mjs b/packages-experimental/uniui/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages-experimental/uniui/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages-experimental/uniui/src/global.css b/packages-experimental/uniui/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages-experimental/uniui/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages-experimental/uniui/src/index.ts b/packages-experimental/uniui/src/index.ts
index b78888372c..536ed7fc9c 100644
--- a/packages-experimental/uniui/src/index.ts
+++ b/packages-experimental/uniui/src/index.ts
@@ -14,13 +14,15 @@
* limitations under the License.
*/
+import './global.css';
+
export { UniverUniUIPlugin } from './plugin';
export { UniUIPart } from './views/outline/Outline';
-export { getGridUnitLocalCacheKey, UnitGridService, IUnitGridService, type IProjectNode, type IUnitGrid } from './services/unit-grid/unit-grid.service';
+export { getGridUnitLocalCacheKey, type IProjectNode, type IUnitGrid, IUnitGridService, UnitGridService } from './services/unit-grid/unit-grid.service';
export { UniFloatToolbarUIPart } from './views/uni-toolbar/UniFloatToolbar';
export { SetFlowViewportOperation } from './commands/operations/set-flow-viewport.operation';
export { UniFocusUnitOperation } from './commands/operations/uni-focus-unit.operation';
-export { FONT_GROUP_MENU_ID, UNI_MENU_POSITIONS, ZEN_MENU_ID, LOCK_MENU_ID, PRINT_MENU_ID, SHARE_MENU_ID, DELETE_MENU_ID, DOWNLOAD_MENU_ID } from './controllers/menu';
+export { DELETE_MENU_ID, DOWNLOAD_MENU_ID, FONT_GROUP_MENU_ID, LOCK_MENU_ID, PRINT_MENU_ID, SHARE_MENU_ID, UNI_MENU_POSITIONS, ZEN_MENU_ID } from './controllers/menu';
export { UniToolbarService } from './services/toolbar/uni-toolbar-service';
export { BuiltinUniToolbarItemId } from './services/toolbar/uni-toolbar-service';
export { generateCloneMutation } from './controllers/utils';
diff --git a/packages-experimental/uniui/tailwind.config.ts b/packages-experimental/uniui/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages-experimental/uniui/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages/design/package.json b/packages/design/package.json
index f0bd32a04d..42b8efc530 100644
--- a/packages/design/package.json
+++ b/packages/design/package.json
@@ -98,8 +98,10 @@
"@univerjs-infra/shared": "workspace:*",
"@univerjs/core": "workspace:*",
"less": "^4.2.1",
+ "postcss": "^8.4.49",
"react": "18.3.1",
"react-dom": "18.3.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages/design/postcss.config.mjs b/packages/design/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages/design/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages/design/src/components/input/Input.tsx b/packages/design/src/components/input/Input.tsx
index 3e1b68f3ca..8e83739592 100644
--- a/packages/design/src/components/input/Input.tsx
+++ b/packages/design/src/components/input/Input.tsx
@@ -14,11 +14,11 @@
* limitations under the License.
*/
+import type { InputProps } from 'rc-input';
import { CloseSingle } from '@univerjs/icons';
import clsx from 'clsx';
import RcInput from 'rc-input';
import React from 'react';
-import type { InputProps } from 'rc-input';
import styles from './index.module.less';
diff --git a/packages/design/src/global.css b/packages/design/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages/design/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages/design/src/index.ts b/packages/design/src/index.ts
index 22b6fcd51b..ed9cbd0cd3 100644
--- a/packages/design/src/index.ts
+++ b/packages/design/src/index.ts
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+import './global.css';
+
export { Avatar, type IAvatarProps } from './components/avatar';
export { Button, type ButtonSize, type ButtonType, type IButtonProps } from './components/button';
export { CascaderList, type ICascaderListProps } from './components/cascader-list';
diff --git a/packages/design/tailwind.config.ts b/packages/design/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages/design/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages/docs-drawing-ui/package.json b/packages/docs-drawing-ui/package.json
index 5d3649fa0f..b5c669b206 100644
--- a/packages/docs-drawing-ui/package.json
+++ b/packages/docs-drawing-ui/package.json
@@ -81,8 +81,10 @@
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"less": "^4.2.1",
+ "postcss": "^8.4.49",
"react": "18.3.1",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages/docs-drawing-ui/postcss.config.mjs b/packages/docs-drawing-ui/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages/docs-drawing-ui/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages/docs-drawing-ui/src/global.css b/packages/docs-drawing-ui/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages/docs-drawing-ui/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages/docs-drawing-ui/src/index.ts b/packages/docs-drawing-ui/src/index.ts
index 8b5d0d89e2..26d5f88bfd 100644
--- a/packages/docs-drawing-ui/src/index.ts
+++ b/packages/docs-drawing-ui/src/index.ts
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+import './global.css';
+
export { UniverDocsDrawingUIPlugin } from './plugin';
export { IMAGE_MENU_ID } from './views/menu/image.menu';
diff --git a/packages/docs-drawing-ui/tailwind.config.ts b/packages/docs-drawing-ui/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages/docs-drawing-ui/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages/docs-hyper-link-ui/package.json b/packages/docs-hyper-link-ui/package.json
index 7878854090..4931e8a934 100644
--- a/packages/docs-hyper-link-ui/package.json
+++ b/packages/docs-hyper-link-ui/package.json
@@ -78,8 +78,10 @@
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
+ "postcss": "^8.4.49",
"react": "18.3.1",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages/docs-hyper-link-ui/postcss.config.mjs b/packages/docs-hyper-link-ui/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages/docs-hyper-link-ui/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages/docs-hyper-link-ui/src/global.css b/packages/docs-hyper-link-ui/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages/docs-hyper-link-ui/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages/docs-hyper-link-ui/src/index.ts b/packages/docs-hyper-link-ui/src/index.ts
index 8f6c1a370f..cfab8f147e 100644
--- a/packages/docs-hyper-link-ui/src/index.ts
+++ b/packages/docs-hyper-link-ui/src/index.ts
@@ -14,4 +14,6 @@
* limitations under the License.
*/
+import './global.css';
+
export { UniverDocsHyperLinkUIPlugin } from './plugin';
diff --git a/packages/docs-hyper-link-ui/tailwind.config.ts b/packages/docs-hyper-link-ui/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages/docs-hyper-link-ui/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages/docs-mention-ui/package.json b/packages/docs-mention-ui/package.json
index 2a94509bfd..859704e8cb 100644
--- a/packages/docs-mention-ui/package.json
+++ b/packages/docs-mention-ui/package.json
@@ -71,8 +71,10 @@
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"less": "^4.2.1",
+ "postcss": "^8.4.49",
"react": "18.3.1",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages/docs-mention-ui/postcss.config.mjs b/packages/docs-mention-ui/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages/docs-mention-ui/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages/docs-mention-ui/src/global.css b/packages/docs-mention-ui/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages/docs-mention-ui/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages/docs-mention-ui/src/index.ts b/packages/docs-mention-ui/src/index.ts
index 70a9722314..d6a6e1523b 100644
--- a/packages/docs-mention-ui/src/index.ts
+++ b/packages/docs-mention-ui/src/index.ts
@@ -14,5 +14,7 @@
* limitations under the License.
*/
+import './global.css';
+
export { DocMentionPopupService } from './services/doc-mention-popup.service';
export { UniverDocsMentionUIPlugin } from './plugin';
diff --git a/packages/docs-mention-ui/tailwind.config.ts b/packages/docs-mention-ui/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages/docs-mention-ui/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages/docs-thread-comment-ui/package.json b/packages/docs-thread-comment-ui/package.json
index d23470aac1..fb54b04e73 100644
--- a/packages/docs-thread-comment-ui/package.json
+++ b/packages/docs-thread-comment-ui/package.json
@@ -72,8 +72,10 @@
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
+ "postcss": "^8.4.49",
"react": "18.3.1",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages/docs-thread-comment-ui/postcss.config.mjs b/packages/docs-thread-comment-ui/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages/docs-thread-comment-ui/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages/docs-thread-comment-ui/src/global.css b/packages/docs-thread-comment-ui/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages/docs-thread-comment-ui/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages/docs-thread-comment-ui/src/index.ts b/packages/docs-thread-comment-ui/src/index.ts
index 29568cc22d..f0466c87b7 100644
--- a/packages/docs-thread-comment-ui/src/index.ts
+++ b/packages/docs-thread-comment-ui/src/index.ts
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+import './global.css';
+
export { UniverDocsThreadCommentUIPlugin } from './plugin';
// #region - all commands
diff --git a/packages/docs-thread-comment-ui/tailwind.config.ts b/packages/docs-thread-comment-ui/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages/docs-thread-comment-ui/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages/docs-ui/package.json b/packages/docs-ui/package.json
index 6966ffc5e4..cce5f1a610 100644
--- a/packages/docs-ui/package.json
+++ b/packages/docs-ui/package.json
@@ -88,8 +88,10 @@
"@univerjs-infra/shared": "workspace:*",
"@univerjs/docs-drawing": "workspace:*",
"less": "^4.2.1",
+ "postcss": "^8.4.49",
"react": "18.3.1",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages/docs-ui/postcss.config.mjs b/packages/docs-ui/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages/docs-ui/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages/docs-ui/src/components/list-type-picker/picker.tsx b/packages/docs-ui/src/components/list-type-picker/picker.tsx
index aead9e90aa..ad5c6e9ca0 100644
--- a/packages/docs-ui/src/components/list-type-picker/picker.tsx
+++ b/packages/docs-ui/src/components/list-type-picker/picker.tsx
@@ -35,7 +35,11 @@ export const ListTypePicker = (props: IListTypePickerProps) => {
return (
<img
key={item.value}
- className={styles.docListTypePickerItem + (value === item.value ? ` ${styles.docListTypePickerItemActive}` : '')}
+ className={styles.docListTypePickerItem + (value === item.value
+ ? `
+ ${styles.docListTypePickerItemActive}
+ `
+ : '')}
onClick={() => {
onChange(item.value);
}}
diff --git a/packages/docs-ui/src/global.css b/packages/docs-ui/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages/docs-ui/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages/docs-ui/src/index.ts b/packages/docs-ui/src/index.ts
index 50aff6b1f6..a10ad6120e 100644
--- a/packages/docs-ui/src/index.ts
+++ b/packages/docs-ui/src/index.ts
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+import './global.css';
+
export { DocAutoFormatService } from '../../docs-ui/src/services/doc-auto-format.service';
export * from './basics';
export type { IDocObjectParam } from './basics/component-tools';
diff --git a/packages/docs-ui/src/views/paragraph-setting/Setting.tsx b/packages/docs-ui/src/views/paragraph-setting/Setting.tsx
index 7cb1fa1433..3add0a8e13 100644
--- a/packages/docs-ui/src/views/paragraph-setting/Setting.tsx
+++ b/packages/docs-ui/src/views/paragraph-setting/Setting.tsx
@@ -14,12 +14,12 @@
* limitations under the License.
*/
-import * as React from 'react';
import { HorizontalAlign, LocaleService, SpacingRule, useDependency } from '@univerjs/core';
-import { useMemo } from 'react';
import { InputNumber, Select, Tooltip } from '@univerjs/design';
-import clsx from 'clsx';
import { AlignTextBothSingle, HorizontallySingle, LeftJustifyingSingle, RightJustifyingSingle } from '@univerjs/icons';
+import clsx from 'clsx';
+import * as React from 'react';
+import { useMemo } from 'react';
import {
useCurrentParagraph,
useFirstParagraphHorizontalAlign,
@@ -93,7 +93,11 @@ export function ParagraphSetting() {
return (
<div className={styles.paragraphSetting}>
<div className={styles.paragraphSettingTitle}>{localeService.t('doc.paragraphSetting.alignment')}</div>
- <div className={`${styles.paragraphSettingIconList} ${styles.paragraphSettingMtBase}`}>
+ <div className={`
+ ${styles.paragraphSettingIconList}
+ ${styles.paragraphSettingMtBase}
+ `}
+ >
{alignmentOptions.map((item) => {
return (
<Tooltip title={item.label} key={item.value} placement="bottom">
@@ -164,7 +168,13 @@ export function ParagraphSetting() {
</div>
<div className={styles.paragraphSettingFlexCol}>
<div className={styles.paragraphSettingLabel}>{localeService.t('doc.paragraphSetting.lineSpace')}</div>
- <div className={`${styles.paragraphSettingMtBase} ${styles.paragraphSettingSpaceLine}`} style={{ width: 162 }}>
+ <div
+ className={`
+ ${styles.paragraphSettingMtBase}
+ ${styles.paragraphSettingSpaceLine}
+ `}
+ style={{ width: 162 }}
+ >
<Select
value={`${spacingRule}`}
options={[
diff --git a/packages/docs-ui/tailwind.config.ts b/packages/docs-ui/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages/docs-ui/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages/drawing-ui/package.json b/packages/drawing-ui/package.json
index bb85b1bca7..8192037fc8 100644
--- a/packages/drawing-ui/package.json
+++ b/packages/drawing-ui/package.json
@@ -77,8 +77,10 @@
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"less": "^4.2.1",
+ "postcss": "^8.4.49",
"react": "18.3.1",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages/drawing-ui/postcss.config.mjs b/packages/drawing-ui/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages/drawing-ui/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages/drawing-ui/src/global.css b/packages/drawing-ui/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages/drawing-ui/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages/drawing-ui/src/index.ts b/packages/drawing-ui/src/index.ts
index 0f62eb6382..dcbe858886 100644
--- a/packages/drawing-ui/src/index.ts
+++ b/packages/drawing-ui/src/index.ts
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+import './global.css';
+
export { DrawingRenderService } from './services/drawing-render.service';
export { getUpdateParams } from './utils/get-update-params';
export { DrawingCommonPanel } from './views/panel/DrawingCommonPanel';
diff --git a/packages/drawing-ui/tailwind.config.ts b/packages/drawing-ui/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages/drawing-ui/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages/find-replace/package.json b/packages/find-replace/package.json
index 667b3cda40..a50a3202ba 100644
--- a/packages/find-replace/package.json
+++ b/packages/find-replace/package.json
@@ -77,8 +77,10 @@
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"less": "^4.2.1",
+ "postcss": "^8.4.49",
"react": "18.3.1",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages/find-replace/postcss.config.mjs b/packages/find-replace/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages/find-replace/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages/find-replace/src/global.css b/packages/find-replace/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages/find-replace/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages/find-replace/src/index.ts b/packages/find-replace/src/index.ts
index 2bf32d0687..cca2896bff 100644
--- a/packages/find-replace/src/index.ts
+++ b/packages/find-replace/src/index.ts
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+import './global.css';
+
export { UniverFindReplacePlugin } from './plugin';
export { FindReplaceController } from './controllers/find-replace.controller';
export type {
diff --git a/packages/find-replace/tailwind.config.ts b/packages/find-replace/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages/find-replace/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages/sheets-conditional-formatting-ui/package.json b/packages/sheets-conditional-formatting-ui/package.json
index 9479452723..43c079aadd 100644
--- a/packages/sheets-conditional-formatting-ui/package.json
+++ b/packages/sheets-conditional-formatting-ui/package.json
@@ -87,8 +87,10 @@
"@types/react-grid-layout": "^1.3.5",
"@univerjs-infra/shared": "workspace:*",
"less": "^4.2.1",
+ "postcss": "^8.4.49",
"react": "18.3.1",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages/sheets-conditional-formatting-ui/postcss.config.mjs b/packages/sheets-conditional-formatting-ui/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages/sheets-conditional-formatting-ui/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
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.tsx
index f09870c143..ef98a1d849 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
@@ -14,11 +14,11 @@
* limitations under the License.
*/
-import { Dropdown, ColorPicker as OriginColorPicker } from '@univerjs/design';
import { ColorKit, useDependency } from '@univerjs/core';
+import { Dropdown, ColorPicker as OriginColorPicker } from '@univerjs/design';
+import { MoreDownSingle } from '@univerjs/icons';
import { ComponentManager } from '@univerjs/ui';
import React, { useMemo } from 'react';
-import { MoreDownSingle } from '@univerjs/icons';
import styles from './index.module.less';
@@ -42,12 +42,19 @@ export const ColorPicker = (props: IColorPickerProps) => {
? (
<Dropdown
overlay={(
- <div className={`${styles.cfColorPicker} `}>
+ <div className={`
+ ${styles.cfColorPicker}
+ `}
+ >
<OriginColorPicker color={color} onChange={onChange} />
</div>
)}
>
- <span className={`${styles.cfColorPickerIcon} ${className}`}>
+ <span className={`
+ ${styles.cfColorPickerIcon}
+ ${className}
+ `}
+ >
<Icon extend={{ colorChannel1: colorKit.isValid ? color : 'rgb(var(--primary-color))' }} />
{isNeedDropdownIcon && <MoreDownSingle className={styles.iconDropdown} />}
</span>
diff --git a/packages/sheets-conditional-formatting-ui/src/components/conditional-style-editor/index.tsx b/packages/sheets-conditional-formatting-ui/src/components/conditional-style-editor/index.tsx
index dc238f009b..ce3939c447 100644
--- a/packages/sheets-conditional-formatting-ui/src/components/conditional-style-editor/index.tsx
+++ b/packages/sheets-conditional-formatting-ui/src/components/conditional-style-editor/index.tsx
@@ -14,12 +14,12 @@
* limitations under the License.
*/
-import React, { useEffect, useState } from 'react';
+import type { IHighlightCell } from '@univerjs/sheets-conditional-formatting';
import { BooleanNumber, useDependency } from '@univerjs/core';
+import { removeUndefinedAttr } from '@univerjs/sheets-conditional-formatting';
import { ComponentManager } from '@univerjs/ui';
import cl from 'clsx';
-import type { IHighlightCell } from '@univerjs/sheets-conditional-formatting';
-import { removeUndefinedAttr } from '@univerjs/sheets-conditional-formatting';
+import React, { useEffect, useState } from 'react';
import { ColorPicker } from '../color-picker';
import styles from './index.module.less';
@@ -103,7 +103,11 @@ export const ConditionalStyleEditor = (props: IConditionalStyleEditorProps) => {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [isBold, isItalic, isUnderline, isStrikethrough, fontColor, bgColor]);
return (
- <div className={`${styles.cfStyleEdit} ${className}`}>
+ <div className={`
+ ${styles.cfStyleEdit}
+ ${className}
+ `}
+ >
{ BoldSingleIcon && (
<div className={cl({ [styles.isActive]: getBooleanFromNumber(isBold || BooleanNumber.FALSE) }, styles.buttonItem)} onClick={() => isBoldSet(getAnotherBooleanNumber(isBold))}>
<BoldSingleIcon />
diff --git a/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/colorScale.tsx b/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/colorScale.tsx
index 04777dd51b..a7c0d0bf84 100644
--- a/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/colorScale.tsx
+++ b/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/colorScale.tsx
@@ -223,11 +223,18 @@ export const ColorScaleStyleEditor = (props: IStyleEditorProps) => {
return (
<div>
<div className={stylesBase.title}>{localeService.t('sheet.cf.panel.styleRule')}</div>
- <div className={`${styles.cfPreviewWrap}`}>
+ <div className={`
+ ${styles.cfPreviewWrap}
+ `}
+ >
<Preview rule={getResult({ minType, medianType, maxType, minValue, medianValue, maxValue, minColor, medianColor, maxColor }) as IConditionalFormattingRuleConfig} />
</div>
<div className={stylesBase.label}>{localeService.t('sheet.cf.valueType.min')}</div>
- <div className={`${stylesBase.labelContainer} ${stylesBase.mTSm}`}>
+ <div className={`
+ ${stylesBase.labelContainer}
+ ${stylesBase.mTSm}
+ `}
+ >
<Select
style={{ flexShrink: 0 }}
options={minOptions}
@@ -241,7 +248,9 @@ export const ColorScaleStyleEditor = (props: IStyleEditorProps) => {
/>
<TextInput
id="min"
- className={`${stylesBase.mLXxs}`}
+ className={`
+ ${stylesBase.mLXxs}
+ `}
value={minValue}
type={minType}
onChange={(v) => {
@@ -259,7 +268,11 @@ export const ColorScaleStyleEditor = (props: IStyleEditorProps) => {
/>
</div>
<div className={stylesBase.label}>{localeService.t('sheet.cf.panel.medianValue')}</div>
- <div className={`${stylesBase.labelContainer} ${stylesBase.mTSm}`}>
+ <div className={`
+ ${stylesBase.labelContainer}
+ ${stylesBase.mTSm}
+ `}
+ >
<Select
style={{ flexShrink: 0 }}
options={medianOptions}
@@ -274,7 +287,9 @@ export const ColorScaleStyleEditor = (props: IStyleEditorProps) => {
<TextInput
id="median"
- className={` ${stylesBase.mLXxs}`}
+ className={`
+ ${stylesBase.mLXxs}
+ `}
value={medianValue}
type={medianType}
onChange={(v) => {
@@ -295,7 +310,11 @@ export const ColorScaleStyleEditor = (props: IStyleEditorProps) => {
</div>
<div className={stylesBase.label}>{localeService.t('sheet.cf.valueType.max')}</div>
- <div className={`${stylesBase.labelContainer} ${stylesBase.mTSm}`}>
+ <div className={`
+ ${stylesBase.labelContainer}
+ ${stylesBase.mTSm}
+ `}
+ >
<Select
style={{ flexShrink: 0 }}
options={maxOptions}
@@ -309,7 +328,9 @@ export const ColorScaleStyleEditor = (props: IStyleEditorProps) => {
/>
<TextInput
id="max"
- className={`${stylesBase.mLXxs}`}
+ className={`
+ ${stylesBase.mLXxs}
+ `}
value={maxValue}
type={maxType}
onChange={(v) => {
diff --git a/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/dataBar.tsx b/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/dataBar.tsx
index 9cffd564cf..45af0a30b9 100644
--- a/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/dataBar.tsx
+++ b/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/dataBar.tsx
@@ -226,7 +226,10 @@ export const DataBarStyleEditor = (props: IStyleEditorProps) => {
<div className={stylesBase.title}>
{localeService.t('sheet.cf.panel.styleRule')}
</div>
- <div className={`${styles.cfPreviewWrap}`}>
+ <div className={`
+ ${styles.cfPreviewWrap}
+ `}
+ >
<Preview rule={getResult({ isGradient, minValue, minValueType, maxValue, maxValueType, positiveColor, nativeColor, isShowValue }) as IConditionalFormattingRuleConfig} />
</div>
<div>
@@ -234,7 +237,12 @@ export const DataBarStyleEditor = (props: IStyleEditorProps) => {
{localeService.t('sheet.cf.panel.fillType')}
</div>
- <div className={`${stylesBase.mTSm} ${stylesBase.mLXxs} ${stylesBase.labelContainer} `}>
+ <div className={`
+ ${stylesBase.mTSm}
+ ${stylesBase.mLXxs}
+ ${stylesBase.labelContainer}
+ `}
+ >
<RadioGroup
value={isGradient}
onChange={(v) => {
@@ -249,7 +257,11 @@ export const DataBarStyleEditor = (props: IStyleEditorProps) => {
<span className={styles.text}>{localeService.t('sheet.cf.panel.gradient')}</span>
</Radio>
</RadioGroup>
- <div className={`${styles.utilItem} ${stylesBase.mLXl}`}>
+ <div className={`
+ ${styles.utilItem}
+ ${stylesBase.mLXl}
+ `}
+ >
<Checkbox
checked={!isShowValue}
onChange={(v) => {
@@ -263,16 +275,38 @@ export const DataBarStyleEditor = (props: IStyleEditorProps) => {
</div>
<div>
<div className={stylesBase.label}>{localeService.t('sheet.cf.panel.colorSet')}</div>
- <div className={`${stylesBase.labelContainer} ${stylesBase.mTSm} ${stylesBase.mLXxs}`}>
- <div className={`${stylesBase.labelContainer}`}>
- <div className={`${styles.text}`}>{localeService.t('sheet.cf.panel.native')}</div>
+ <div className={`
+ ${stylesBase.labelContainer}
+ ${stylesBase.mTSm}
+ ${stylesBase.mLXxs}
+ `}
+ >
+ <div className={`
+ ${stylesBase.labelContainer}
+ `}
+ >
+ <div className={`
+ ${styles.text}
+ `}
+ >
+ {localeService.t('sheet.cf.panel.native')}
+ </div>
<ColorPicker
color={nativeColor}
onChange={handleNativeColorChange}
/>
</div>
- <div className={`${stylesBase.labelContainer} ${stylesBase.mLSm} `}>
- <div className={`${styles.text} `}>{localeService.t('sheet.cf.panel.positive')}</div>
+ <div className={`
+ ${stylesBase.labelContainer}
+ ${stylesBase.mLSm}
+ `}
+ >
+ <div className={`
+ ${styles.text}
+ `}
+ >
+ {localeService.t('sheet.cf.panel.positive')}
+ </div>
<ColorPicker
color={positiveColor}
onChange={handlePositiveColorChange}
@@ -283,7 +317,11 @@ export const DataBarStyleEditor = (props: IStyleEditorProps) => {
</div>
<div>
<div className={stylesBase.label}>{localeService.t('sheet.cf.valueType.min')}</div>
- <div className={`${stylesBase.mTSm} ${stylesBase.labelContainer}`}>
+ <div className={`
+ ${stylesBase.mTSm}
+ ${stylesBase.labelContainer}
+ `}
+ >
<Select
style={{ width: '50%', flexShrink: 0 }}
options={minOptions}
@@ -309,7 +347,11 @@ export const DataBarStyleEditor = (props: IStyleEditorProps) => {
/>
</div>
<div className={stylesBase.label}>{localeService.t('sheet.cf.valueType.max')}</div>
- <div className={`${stylesBase.mTSm} ${stylesBase.labelContainer}`}>
+ <div className={`
+ ${stylesBase.mTSm}
+ ${stylesBase.labelContainer}
+ `}
+ >
<Select
style={{ width: '50%', flexShrink: 0 }}
options={maxOptions}
diff --git a/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/formula.tsx b/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/formula.tsx
index 4f5bd0752d..b617f38cb2 100644
--- a/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/formula.tsx
+++ b/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/formula.tsx
@@ -95,8 +95,17 @@ export const FormulaStyleEditor = (props: IStyleEditorProps) => {
return (
<div ref={divEleRef}>
- <div className={`${stylesBase.title} ${stylesBase.mTBase}`}>{localeService.t('sheet.cf.panel.styleRule')}</div>
- <div className={`${stylesBase.mTSm}`}>
+ <div className={`
+ ${stylesBase.title}
+ ${stylesBase.mTBase}
+ `}
+ >
+ {localeService.t('sheet.cf.panel.styleRule')}
+ </div>
+ <div className={`
+ ${stylesBase.mTSm}
+ `}
+ >
<FormulaEditor
onChange={(formula) => {
@@ -122,12 +131,17 @@ export const FormulaStyleEditor = (props: IStyleEditorProps) => {
</div>
- <div className={`${styles.cfPreviewWrap} `}>
+ <div className={`
+ ${styles.cfPreviewWrap}
+ `}
+ >
<Preview rule={getResult({ style, formula }) as IConditionalFormattingRuleConfig} />
</div>
<ConditionalStyleEditor
style={rule?.style}
- className={`${stylesBase.mTSm} `}
+ className={`
+ ${stylesBase.mTSm}
+ `}
onChange={(v) => {
styleSet(v);
_onChange({ style: v, formula });
diff --git a/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/highlightCell.tsx b/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/highlightCell.tsx
index b5af52621a..91c846d670 100644
--- a/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/highlightCell.tsx
+++ b/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/highlightCell.tsx
@@ -14,9 +14,16 @@
* limitations under the License.
*/
-import React, { useEffect, useMemo, useState } from 'react';
-import { Input, InputNumber, Select } from '@univerjs/design';
+import type {
+ IConditionalFormattingRuleConfig,
+ IHighlightCell,
+ INumberHighlightCell,
+ ITextHighlightCell,
+ ITimePeriodHighlightCell,
+} from '@univerjs/sheets-conditional-formatting';
+import type { IStyleEditorProps } from './type';
import { LocaleService, useDependency } from '@univerjs/core';
+import { Input, InputNumber, Select } from '@univerjs/design';
import {
CFNumberOperator,
CFRuleType,
@@ -25,18 +32,11 @@ import {
CFTimePeriodOperator,
createDefaultValue,
} from '@univerjs/sheets-conditional-formatting';
-import type {
- IConditionalFormattingRuleConfig,
- IHighlightCell,
- INumberHighlightCell,
- ITextHighlightCell,
- ITimePeriodHighlightCell,
-} from '@univerjs/sheets-conditional-formatting';
+import React, { useEffect, useMemo, useState } from 'react';
import { ConditionalStyleEditor } from '../../conditional-style-editor';
import { Preview } from '../../preview';
-import stylesBase from '../index.module.less';
import { WrapperError } from '../../wrapper-error/WrapperError';
-import type { IStyleEditorProps } from './type';
+import stylesBase from '../index.module.less';
import styles from './index.module.less';
const createOptionItem = (text: string, localeService: LocaleService) => ({ label: localeService.t(`sheet.cf.operator.${text}`), value: text });
@@ -127,7 +127,10 @@ const HighlightCellInput = (props: {
onChange(value);
};
return (
- <div className={`${stylesBase.mTSm}`}>
+ <div className={`
+ ${stylesBase.mTSm}
+ `}
+ >
<WrapperError errorText={textError}>
<Input
className={styles.width100}
@@ -154,7 +157,10 @@ const HighlightCellInput = (props: {
numberErrorSet('');
};
return (
- <div className={`${stylesBase.mTSm}`}>
+ <div className={`
+ ${stylesBase.mTSm}
+ `}
+ >
<WrapperError errorText={numberError}>
<InputNumber min={Number.MIN_SAFE_INTEGER} max={Number.MAX_SAFE_INTEGER} className={styles.width100} value={inputNumberValue} onChange={_onChange} />
</WrapperError>
@@ -175,12 +181,24 @@ const HighlightCellInput = (props: {
numberMaxErrorSet('');
};
return (
- <div className={`${stylesBase.mTSm} ${stylesBase.labelContainer} `}>
+ <div className={`
+ ${stylesBase.mTSm}
+ ${stylesBase.labelContainer}
+ `}
+ >
<WrapperError errorText={numberMinError}>
<InputNumber min={Number.MIN_SAFE_INTEGER} max={Number.MAX_SAFE_INTEGER} value={inputNumberMin} onChange={onChangeMin} />
</WrapperError>
<WrapperError errorText={numberMaxError}>
- <InputNumber min={Number.MIN_SAFE_INTEGER} max={Number.MAX_SAFE_INTEGER} className={`${stylesBase.mLSm}`} value={inputNumberMax} onChange={onChangeMax} />
+ <InputNumber
+ min={Number.MIN_SAFE_INTEGER}
+ max={Number.MAX_SAFE_INTEGER}
+ className={`
+ ${stylesBase.mLSm}
+ `}
+ value={inputNumberMax}
+ onChange={onChangeMax}
+ />
</WrapperError>
</div>
@@ -377,16 +395,45 @@ export const HighlightCellStyleEditor = (props: IStyleEditorProps<any, ITextHigh
return (
<div>
- <div className={`${stylesBase.title} ${stylesBase.mTBase}`}>{localeService.t('sheet.cf.panel.styleRule')}</div>
- <Select className={`${stylesBase.mTSm} ${styles.width100}`} onChange={onTypeChange} value={subType} options={typeOptions} />
- {operatorOptions?.length && <Select className={`${stylesBase.mTSm} ${styles.width100}`} onChange={onOperatorChange} value={operator || ''} options={operatorOptions} />}
+ <div className={`
+ ${stylesBase.title}
+ ${stylesBase.mTBase}
+ `}
+ >
+ {localeService.t('sheet.cf.panel.styleRule')}
+ </div>
+ <Select
+ className={`
+ ${stylesBase.mTSm}
+ ${styles.width100}
+ `}
+ onChange={onTypeChange}
+ value={subType}
+ options={typeOptions}
+ />
+ {operatorOptions?.length && (
+ <Select
+ className={`
+ ${stylesBase.mTSm}
+ ${styles.width100}
+ `}
+ onChange={onOperatorChange}
+ value={operator || ''}
+ options={operatorOptions}
+ />
+ )}
<HighlightCellInput key={inputRenderKey} value={value} interceptorManager={interceptorManager} type={subType} operator={operator} rule={rule} onChange={onInputChange} />
- <div className={`${styles.cfPreviewWrap}`}>
+ <div className={`
+ ${styles.cfPreviewWrap}
+ `}
+ >
<Preview rule={getResult({}) as IConditionalFormattingRuleConfig} />
</div>
<ConditionalStyleEditor
style={rule?.style}
- className={`${stylesBase.mLXxs}`}
+ className={`
+ ${stylesBase.mLXxs}
+ `}
onChange={(v) => {
styleSet(v);
onChange(getResult({ style: v }));
diff --git a/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/iconSet.tsx b/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/iconSet.tsx
index 85959199d5..08f7e8d1dc 100644
--- a/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/iconSet.tsx
+++ b/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/iconSet.tsx
@@ -156,7 +156,14 @@ const IconItemList = (props: { onClick: (iconType: IIconType, iconId: string) =>
<div className={styles.iconItemList}>
{list.map((item) => (
<div key={`${item.iconType}_${item.iconId}`} className={styles.item}>
- <img onClick={() => handleClick(item)} className={`${styles.icon}`} src={item.base64}></img>
+ <img
+ onClick={() => handleClick(item)}
+ className={`
+ ${styles.icon}
+ `}
+ src={item.base64}
+ >
+ </img>
</div>
))}
</div>
@@ -212,14 +219,29 @@ const IconSetRuleEdit = (props: {
onChange([String(index)], value);
};
return (
- <div key={index} className={`${index ? stylesBase.mTXl : stylesBase.mTSm}`}>
- <div className={`${stylesBase.label} ${styles.flex}`}>
- <div className={`${styles.width45}`}>
+ <div
+ key={index}
+ className={`
+ ${index ? stylesBase.mTXl : stylesBase.mTSm}
+ `}
+ >
+ <div className={`
+ ${stylesBase.label}
+ ${styles.flex}
+ `}
+ >
+ <div className={`
+ ${styles.width45}
+ `}
+ >
{localeService.t('sheet.cf.iconSet.icon')}
{index + 1}
</div>
- <div className={`${styles.width45}`}>
+ <div className={`
+ ${styles.width45}
+ `}
+ >
<>
{!isFirst && !isEnd && localeService.t('sheet.cf.iconSet.rule')}
{!isFirst && !isEnd && (
@@ -238,8 +260,16 @@ const IconSetRuleEdit = (props: {
</div>
</div>
- <div className={`${styles.flex} ${stylesBase.mTSm}`}>
- <div className={`${styles.iconWrap} ${styles.width45}`}>
+ <div className={`
+ ${styles.flex}
+ ${stylesBase.mTSm}
+ `}
+ >
+ <div className={`
+ ${styles.iconWrap}
+ ${styles.width45}
+ `}
+ >
<Dropdown overlay={<IconItemList onClick={handleIconClick} iconId={item.iconId} iconType={item.iconType} />}>
<div className={styles.dropdownIcon}>
{icon ? <img src={icon} className={styles.icon} /> : <SlashSingle className={styles.icon} />}
@@ -249,9 +279,26 @@ const IconSetRuleEdit = (props: {
</div>
{!isEnd
- ? <Select className={`${stylesBase.mL0} ${styles.width45} ${stylesBase.mR0}`} options={options} value={item.operator} onChange={(v) => { handleOperatorChange(v as CFNumberOperator, index); }} />
+ ? (
+ <Select
+ className={`
+ ${stylesBase.mL0}
+ ${styles.width45}
+ ${stylesBase.mR0}
+ `}
+ options={options}
+ value={item.operator}
+ onChange={(v) => { handleOperatorChange(v as CFNumberOperator, index); }}
+ />
+ )
: (
- <div className={`${styles.width45} ${stylesBase.label}`} style={{ marginTop: 0 }}>
+ <div
+ className={`
+ ${styles.width45}
+ ${stylesBase.label}
+ `}
+ style={{ marginTop: 0 }}
+ >
{localeService.t('sheet.cf.iconSet.rule')}
<span className={styles.stress}>
(
@@ -267,23 +314,45 @@ const IconSetRuleEdit = (props: {
{!isEnd
? (
<>
- <div className={`${stylesBase.mTSm} ${stylesBase.label} ${styles.flex}`}>
- <div className={`${styles.width45}`}>
+ <div className={`
+ ${stylesBase.mTSm}
+ ${stylesBase.label}
+ ${styles.flex}
+ `}
+ >
+ <div className={`
+ ${styles.width45}
+ `}
+ >
{localeService.t('sheet.cf.iconSet.type')}
</div>
- <div className={`${styles.width45}`}>
+ <div className={`
+ ${styles.width45}
+ `}
+ >
{localeService.t('sheet.cf.iconSet.value')}
</div>
</div>
- <div className={`${stylesBase.mTSm} ${styles.flex}`}>
+ <div className={`
+ ${stylesBase.mTSm}
+ ${styles.flex}
+ `}
+ >
<Select
style={{ flexShrink: 0 }}
- className={`${styles.width45} ${stylesBase.mL0}`}
+ className={`
+ ${styles.width45}
+ ${stylesBase.mL0}
+ `}
options={valueTypeOptions}
value={item.value.type}
onChange={(v) => { handleValueTypeChange(v as CFNumberOperator, index); }}
/>
- <div className={`${stylesBase.mL0} ${styles.width45}`}>
+ <div className={`
+ ${stylesBase.mL0}
+ ${styles.width45}
+ `}
+ >
<TextInput id={index} type={item.value.type} error={error} value={item.value.value || ''} onChange={(v) => handleValueValueChange(v, index)} />
</div>
@@ -452,7 +521,10 @@ export const IconSet = (props: IStyleEditorProps<unknown, IIconSet>) => {
return (
<div className={styles.iconSet}>
<div className={stylesBase.title}>{localeService.t('sheet.cf.panel.styleRule')}</div>
- <div className={`${stylesBase.mTSm}`}>
+ <div className={`
+ ${stylesBase.mTSm}
+ `}
+ >
<Dropdown placement="bottomLeft" overlay={<IconGroupList ref={(el) => !iconGroupListEl && el && setIconGroupListEl(el)} iconType={currentIconType} onClick={handleClickIconList} />}>
<div className={styles.dropdownIcon} style={{ width: 'unset' }}>
{previewIcon}
@@ -461,12 +533,20 @@ export const IconSet = (props: IStyleEditorProps<unknown, IIconSet>) => {
{/* <div>{previewIcon}</div> */}
</Dropdown>
</div>
- <div className={`${stylesBase.mTSm} ${styles.renderConfig}`}>
+ <div className={`
+ ${stylesBase.mTSm}
+ ${styles.renderConfig}
+ `}
+ >
<div className={styles.utilItem}>
<Checkbox onChange={reverseIcon} />
{localeService.t('sheet.cf.iconSet.reverseIconOrder')}
</div>
- <div className={`${styles.utilItem} ${stylesBase.mLXl}`}>
+ <div className={`
+ ${styles.utilItem}
+ ${stylesBase.mLXl}
+ `}
+ >
<Checkbox checked={!isShowValue} onChange={(v) => { isShowValueSet(!v); }} />
{localeService.t('sheet.cf.iconSet.onlyShowIcon')}
</div>
diff --git a/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/index.tsx b/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/index.tsx
index 63f4aee44f..70b4980ad2 100644
--- a/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/index.tsx
+++ b/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/index.tsx
@@ -247,7 +247,10 @@ export const RuleEdit = (props: IRuleEditProps) => {
return (
<div className={styles.cfRuleStyleEditor}>
<div className={styleBase.title}>{localeService.t('sheet.cf.panel.range')}</div>
- <div className={`${styleBase.mTBase}`}>
+ <div className={`
+ ${styleBase.mTBase}
+ `}
+ >
<RangeSelector
unitId={unitId}
errorText={errorText}
@@ -265,7 +268,11 @@ export const RuleEdit = (props: IRuleEditProps) => {
<Select className={styles.width100} value={ruleType} options={options} onChange={(e) => ruleTypeSet(e)} />
</div>
<StyleEditor interceptorManager={interceptorManager} rule={props.rule?.rule as any} onChange={onStyleChange} />
- <div className={`${styleBase.mTBase} ${styles.btnList}`}>
+ <div className={`
+ ${styleBase.mTBase}
+ ${styles.btnList}
+ `}
+ >
<Button size="small" onClick={handleCancel}>{localeService.t('sheet.cf.panel.cancel')}</Button>
<Button className={styleBase.mLSm} size="small" type="primary" onClick={handleSubmit}>{localeService.t('sheet.cf.panel.submit')}</Button>
</div>
diff --git a/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/rank.tsx b/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/rank.tsx
index 6f47dd52d5..a6e68779ce 100644
--- a/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/rank.tsx
+++ b/packages/sheets-conditional-formatting-ui/src/components/panel/rule-edit/rank.tsx
@@ -14,16 +14,16 @@
* limitations under the License.
*/
-import React, { useEffect, useState } from 'react';
+import type { IAverageHighlightCell, IConditionalFormattingRuleConfig, IHighlightCell, IRankHighlightCell } from '@univerjs/sheets-conditional-formatting';
+import type { IStyleEditorProps } from './type';
import { LocaleService, useDependency } from '@univerjs/core';
import { Checkbox, InputNumber, Select } from '@univerjs/design';
import { CFNumberOperator, CFRuleType, CFSubRuleType } from '@univerjs/sheets-conditional-formatting';
-import type { IAverageHighlightCell, IConditionalFormattingRuleConfig, IHighlightCell, IRankHighlightCell } from '@univerjs/sheets-conditional-formatting';
+import React, { useEffect, useState } from 'react';
import { ConditionalStyleEditor } from '../../conditional-style-editor';
-import stylesBase from '../index.module.less';
import { Preview } from '../../preview';
+import stylesBase from '../index.module.less';
import styles from './index.module.less';
-import type { IStyleEditorProps } from './type';
export const RankStyleEditor = (props: IStyleEditorProps) => {
const { onChange, interceptorManager } = props;
@@ -142,9 +142,18 @@ export const RankStyleEditor = (props: IStyleEditorProps) => {
};
return (
<div>
- <div className={`${stylesBase.title} ${stylesBase.mTBase}`}>{localeService.t('sheet.cf.panel.styleRule')}</div>
+ <div className={`
+ ${stylesBase.title}
+ ${stylesBase.mTBase}
+ `}
+ >
+ {localeService.t('sheet.cf.panel.styleRule')}
+ </div>
<Select
- className={`${styles.width100} ${stylesBase.mTSm}`}
+ className={`
+ ${styles.width100}
+ ${stylesBase.mTSm}
+ `}
value={type}
options={options}
onChange={(v) => {
@@ -153,7 +162,11 @@ export const RankStyleEditor = (props: IStyleEditorProps) => {
}}
/>
{['isNotBottom', 'isBottom'].includes(type) && (
- <div className={`${stylesBase.labelContainer} ${stylesBase.mTSm}`}>
+ <div className={`
+ ${stylesBase.labelContainer}
+ ${stylesBase.mTSm}
+ `}
+ >
<InputNumber
min={1}
max={1000}
@@ -164,7 +177,12 @@ export const RankStyleEditor = (props: IStyleEditorProps) => {
_onChange({ type, isPercent, value, style });
}}
/>
- <div className={`${stylesBase.mLSm} ${stylesBase.labelContainer} ${styles.text}`}>
+ <div className={`
+ ${stylesBase.mLSm}
+ ${stylesBase.labelContainer}
+ ${styles.text}
+ `}
+ >
<Checkbox
checked={isPercent}
onChange={(v) => {
@@ -177,12 +195,17 @@ export const RankStyleEditor = (props: IStyleEditorProps) => {
</div>
)}
- <div className={`${styles.cfPreviewWrap} `}>
+ <div className={`
+ ${styles.cfPreviewWrap}
+ `}
+ >
<Preview rule={getResult({ type, isPercent, value, style }) as IConditionalFormattingRuleConfig} />
</div>
<ConditionalStyleEditor
style={rule?.style}
- className={`${stylesBase.mTSm} `}
+ className={`
+ ${stylesBase.mTSm}
+ `}
onChange={(v) => {
styleSet(v);
_onChange({ type, isPercent, value, style: v });
diff --git a/packages/sheets-conditional-formatting-ui/src/components/panel/rule-list/index.tsx b/packages/sheets-conditional-formatting-ui/src/components/panel/rule-list/index.tsx
index c9bacfd2df..04eda3143c 100644
--- a/packages/sheets-conditional-formatting-ui/src/components/panel/rule-list/index.tsx
+++ b/packages/sheets-conditional-formatting-ui/src/components/panel/rule-list/index.tsx
@@ -14,31 +14,31 @@
* limitations under the License.
*/
-import React, { useEffect, useMemo, useRef, useState } from 'react';
-import { Select, Tooltip } from '@univerjs/design';
-import { useObservable } from '@univerjs/ui';
-import { useHighlightRange } from '@univerjs/sheets-ui';
+import type { IRange, Workbook } from '@univerjs/core';
+import type { IConditionFormattingRule } from '@univerjs/sheets-conditional-formatting';
+import type { IDeleteCfCommandParams } from '../../../commands/commands/delete-cf.command';
+import type { IMoveCfCommand } from '../../../commands/commands/move-cf.command';
import { ICommandService, Injector, IUniverInstanceService, LocaleService, Rectangle, UniverInstanceType, useDependency } from '@univerjs/core';
-import type { IRange, Workbook } from '@univerjs/core';
-import { checkRangesEditablePermission, SetSelectionsOperation, SetWorksheetActiveOperation, SheetsSelectionsService } from '@univerjs/sheets';
+import { Select, Tooltip } from '@univerjs/design';
import { serializeRange } from '@univerjs/engine-formula';
import { DeleteSingle, IncreaseSingle, SequenceSingle } from '@univerjs/icons';
+import { checkRangesEditablePermission, SetSelectionsOperation, SetWorksheetActiveOperation, SheetsSelectionsService } from '@univerjs/sheets';
+import { AddConditionalRuleMutation, CFRuleType, CFSubRuleType, ConditionalFormattingRuleModel, DeleteConditionalRuleMutation, MoveConditionalRuleMutation, SetConditionalRuleMutation } from '@univerjs/sheets-conditional-formatting';
+import { useHighlightRange } from '@univerjs/sheets-ui';
+import { useObservable } from '@univerjs/ui';
+import React, { useEffect, useMemo, useRef, useState } from 'react';
import GridLayout from 'react-grid-layout';
import { debounceTime, Observable } from 'rxjs';
-import { AddConditionalRuleMutation, CFRuleType, CFSubRuleType, ConditionalFormattingRuleModel, DeleteConditionalRuleMutation, MoveConditionalRuleMutation, SetConditionalRuleMutation } from '@univerjs/sheets-conditional-formatting';
-import type { IConditionFormattingRule } from '@univerjs/sheets-conditional-formatting';
-import type { IDeleteCfCommandParams } from '../../../commands/commands/delete-cf.command';
+import { ClearWorksheetCfCommand } from '../../../commands/commands/clear-worksheet-cf.command';
import { DeleteCfCommand } from '../../../commands/commands/delete-cf.command';
-import type { IMoveCfCommand } from '../../../commands/commands/move-cf.command';
import { MoveCfCommand } from '../../../commands/commands/move-cf.command';
-import 'react-grid-layout/css/styles.css';
-import 'react-resizable/css/styles.css';
-import { Preview } from '../../preview';
import { ConditionalFormattingI18nController } from '../../../controllers/cf.i18n.controller';
-import { ClearWorksheetCfCommand } from '../../../commands/commands/clear-worksheet-cf.command';
-
+import { Preview } from '../../preview';
import styles from './index.module.less';
+import 'react-grid-layout/css/styles.css';
+
+import 'react-resizable/css/styles.css';
interface IRuleListProps {
onClick: (rule: IConditionFormattingRule) => void;
@@ -189,10 +189,9 @@ export const RuleList = (props: IRuleListProps) => {
}
});
return () => disposable.dispose();
- }).pipe(debounceTime(16))
- .subscribe(() => {
- ruleListSet(getRuleList);
- });
+ }).pipe(debounceTime(16)).subscribe(() => {
+ ruleListSet(getRuleList);
+ });
return () => {
subscription.unsubscribe();
};
@@ -324,20 +323,35 @@ export const RuleList = (props: IRuleListProps) => {
</div>
<div className={styles.btnList}>
<Tooltip title={localeService.t('sheet.cf.panel.createRule')} placement="bottom">
- <div className={`${styles.icon}`} onClick={handleCreate}>
+ <div
+ className={`
+ ${styles.icon}
+ `}
+ onClick={handleCreate}
+ >
<IncreaseSingle />
</div>
</Tooltip>
{(ruleList.length && isHasAllRuleEditPermission)
? (
<Tooltip title={localeService.t('sheet.cf.panel.clear')} placement="bottom">
- <div className={`${styles.gap} ${styles.icon}`} onClick={handleClear}>
+ <div
+ className={`
+ ${styles.gap}
+ ${styles.icon}
+ `}
+ onClick={handleClear}
+ >
<DeleteSingle />
</div>
</Tooltip>
)
: (
- <div className={`${styles.gap} ${styles.disabled}`}>
+ <div className={`
+ ${styles.gap}
+ ${styles.disabled}
+ `}
+ >
<DeleteSingle />
</div>
)}
@@ -369,10 +383,17 @@ export const RuleList = (props: IRuleListProps) => {
onClick={() => {
onClick(rule);
}}
- className={`${styles.ruleItem} ${draggingId === index ? styles.active : ''}`}
+ className={`
+ ${styles.ruleItem}
+ ${draggingId === index ? styles.active : ''}
+ `}
>
<div
- className={`${styles.draggableHandle} draggableHandle`}
+ className={`
+ ${styles.draggableHandle}
+
+ draggableHandle
+ `}
onClick={(e) => e.stopPropagation()}
>
<SequenceSingle />
@@ -383,7 +404,10 @@ export const RuleList = (props: IRuleListProps) => {
</div>
<div className={styles.preview}><Preview rule={rule.rule} /></div>
<div
- className={`${styles.deleteItem} ${draggingId === index ? styles.active : ''}`}
+ className={`
+ ${styles.deleteItem}
+ ${draggingId === index ? styles.active : ''}
+ `}
onClick={(e) => {
e.stopPropagation();
handleDelete(rule);
diff --git a/packages/sheets-conditional-formatting-ui/src/global.css b/packages/sheets-conditional-formatting-ui/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages/sheets-conditional-formatting-ui/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages/sheets-conditional-formatting-ui/src/index.ts b/packages/sheets-conditional-formatting-ui/src/index.ts
index 8ff9ab436d..b922cbeeb6 100644
--- a/packages/sheets-conditional-formatting-ui/src/index.ts
+++ b/packages/sheets-conditional-formatting-ui/src/index.ts
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+import './global.css';
+
export { UniverSheetsConditionalFormattingMobileUIPlugin } from './mobile-plugin';
export { UniverSheetsConditionalFormattingUIPlugin } from './plugin';
export { ConditionalFormattingClearController } from './controllers/cf.clear.controller';
diff --git a/packages/sheets-conditional-formatting-ui/tailwind.config.ts b/packages/sheets-conditional-formatting-ui/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages/sheets-conditional-formatting-ui/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages/sheets-crosshair-highlight/package.json b/packages/sheets-crosshair-highlight/package.json
index 75cae5a905..fd9326c4bf 100644
--- a/packages/sheets-crosshair-highlight/package.json
+++ b/packages/sheets-crosshair-highlight/package.json
@@ -83,8 +83,10 @@
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"less": "^4.2.1",
+ "postcss": "^8.4.49",
"react": "18.3.1",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages/sheets-crosshair-highlight/postcss.config.mjs b/packages/sheets-crosshair-highlight/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages/sheets-crosshair-highlight/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages/sheets-crosshair-highlight/src/global.css b/packages/sheets-crosshair-highlight/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages/sheets-crosshair-highlight/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages/sheets-crosshair-highlight/src/index.ts b/packages/sheets-crosshair-highlight/src/index.ts
index 07e9d2d8ca..f917a1647f 100644
--- a/packages/sheets-crosshair-highlight/src/index.ts
+++ b/packages/sheets-crosshair-highlight/src/index.ts
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+import './global.css';
+
export { UniverSheetsCrosshairHighlightPlugin } from './plugin';
export { CROSSHAIR_HIGHLIGHT_COLORS } from './services/crosshair.service';
diff --git a/packages/sheets-crosshair-highlight/tailwind.config.ts b/packages/sheets-crosshair-highlight/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages/sheets-crosshair-highlight/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages/sheets-data-validation-ui/package.json b/packages/sheets-data-validation-ui/package.json
index 49b78e450f..85d05e0296 100644
--- a/packages/sheets-data-validation-ui/package.json
+++ b/packages/sheets-data-validation-ui/package.json
@@ -88,8 +88,10 @@
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"less": "^4.2.1",
+ "postcss": "^8.4.49",
"react": "18.3.1",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages/sheets-data-validation-ui/postcss.config.mjs b/packages/sheets-data-validation-ui/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages/sheets-data-validation-ui/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages/sheets-data-validation-ui/src/global.css b/packages/sheets-data-validation-ui/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages/sheets-data-validation-ui/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages/sheets-data-validation-ui/src/index.ts b/packages/sheets-data-validation-ui/src/index.ts
index a436bbaddc..10c60c17b2 100644
--- a/packages/sheets-data-validation-ui/src/index.ts
+++ b/packages/sheets-data-validation-ui/src/index.ts
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+import './global.css';
+
export { DATE_DROPDOWN_KEY, LIST_DROPDOWN_KEY } from './views/components';
export { UniverSheetsDataValidationUIPlugin } from './plugin';
export { UniverSheetsDataValidationMobileUIPlugin } from './mobile-plugin';
diff --git a/packages/sheets-data-validation-ui/tailwind.config.ts b/packages/sheets-data-validation-ui/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages/sheets-data-validation-ui/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages/sheets-drawing-ui/package.json b/packages/sheets-drawing-ui/package.json
index 1f6f1aa3e1..ff4fbfd178 100644
--- a/packages/sheets-drawing-ui/package.json
+++ b/packages/sheets-drawing-ui/package.json
@@ -87,8 +87,10 @@
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"less": "^4.2.1",
+ "postcss": "^8.4.49",
"react": "18.3.1",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages/sheets-drawing-ui/postcss.config.mjs b/packages/sheets-drawing-ui/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages/sheets-drawing-ui/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages/sheets-drawing-ui/src/global.css b/packages/sheets-drawing-ui/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages/sheets-drawing-ui/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages/sheets-drawing-ui/src/index.ts b/packages/sheets-drawing-ui/src/index.ts
index 89f1511718..634e1d28df 100644
--- a/packages/sheets-drawing-ui/src/index.ts
+++ b/packages/sheets-drawing-ui/src/index.ts
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+import './global.css';
+
export { UniverSheetsDrawingUIPlugin } from './plugin';
export { type ICanvasFloatDom, SheetCanvasFloatDomManagerService } from './services/canvas-float-dom-manager.service';
export { IMAGE_MENU_ID } from './views/menu/image.menu';
diff --git a/packages/sheets-drawing-ui/tailwind.config.ts b/packages/sheets-drawing-ui/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages/sheets-drawing-ui/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages/sheets-filter-ui/package.json b/packages/sheets-filter-ui/package.json
index 900792a573..17a08b2561 100644
--- a/packages/sheets-filter-ui/package.json
+++ b/packages/sheets-filter-ui/package.json
@@ -81,8 +81,10 @@
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"less": "^4.2.1",
+ "postcss": "^8.4.49",
"react": "18.3.1",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages/sheets-filter-ui/postcss.config.mjs b/packages/sheets-filter-ui/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages/sheets-filter-ui/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages/sheets-filter-ui/src/global.css b/packages/sheets-filter-ui/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages/sheets-filter-ui/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages/sheets-filter-ui/src/index.ts b/packages/sheets-filter-ui/src/index.ts
index 02879d1a52..75bd3c6196 100644
--- a/packages/sheets-filter-ui/src/index.ts
+++ b/packages/sheets-filter-ui/src/index.ts
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+import './global.css';
+
export { UniverSheetsFilterUIPlugin } from './filter-ui-desktop.plugin';
export { UniverSheetsFilterMobileUIPlugin } from './filter-ui-mobile.plugin';
export { UniverSheetsFilterUIWorkerPlugin } from './worker/plugin';
diff --git a/packages/sheets-filter-ui/tailwind.config.ts b/packages/sheets-filter-ui/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages/sheets-filter-ui/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages/sheets-formula-ui/package.json b/packages/sheets-formula-ui/package.json
index 9002d27e6b..93ac244ff7 100644
--- a/packages/sheets-formula-ui/package.json
+++ b/packages/sheets-formula-ui/package.json
@@ -87,8 +87,10 @@
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"less": "^4.2.1",
+ "postcss": "^8.4.49",
"react": "18.3.1",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages/sheets-formula-ui/postcss.config.mjs b/packages/sheets-formula-ui/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages/sheets-formula-ui/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages/sheets-formula-ui/src/global.css b/packages/sheets-formula-ui/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages/sheets-formula-ui/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages/sheets-formula-ui/src/index.ts b/packages/sheets-formula-ui/src/index.ts
index c0ed9c111b..0328187c8f 100644
--- a/packages/sheets-formula-ui/src/index.ts
+++ b/packages/sheets-formula-ui/src/index.ts
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+import './global.css';
+
export { SheetOnlyPasteFormulaCommand } from './commands/commands/formula-clipboard.command';
export { SelectEditorFormulaOperation } from './commands/operations/editor-formula.operation';
export { HelpFunctionOperation } from './commands/operations/help-function.operation';
diff --git a/packages/sheets-formula-ui/src/views/formula-editor/help-function/HelpFunction.tsx b/packages/sheets-formula-ui/src/views/formula-editor/help-function/HelpFunction.tsx
index 2a2e5f49a8..18395e8eec 100644
--- a/packages/sheets-formula-ui/src/views/formula-editor/help-function/HelpFunction.tsx
+++ b/packages/sheets-formula-ui/src/views/formula-editor/help-function/HelpFunction.tsx
@@ -159,7 +159,13 @@ interface IParamsProps {
const Params = (props: IParamsProps) => (
<div className={styles.formulaHelpFunctionContentParams}>
- <div className={`${styles.formulaHelpFunctionContentParamsTitle} ${props.className}`}>{props.title}</div>
+ <div className={`
+ ${styles.formulaHelpFunctionContentParamsTitle}
+ ${props.className}
+ `}
+ >
+ {props.title}
+ </div>
<div className={styles.formulaHelpFunctionContentParamsDetail}>{props.value}</div>
</div>
);
diff --git a/packages/sheets-formula-ui/src/views/formula-editor/search-function/SearchFunction.tsx b/packages/sheets-formula-ui/src/views/formula-editor/search-function/SearchFunction.tsx
index 858d2d1d2c..b93734b749 100644
--- a/packages/sheets-formula-ui/src/views/formula-editor/search-function/SearchFunction.tsx
+++ b/packages/sheets-formula-ui/src/views/formula-editor/search-function/SearchFunction.tsx
@@ -208,7 +208,10 @@ function SearchFunctionFactory(props: ISearchFunctionProps, ref: any) {
<li
key={index}
className={active === index
- ? `${styles.formulaSearchFunctionItem} ${styles.formulaSearchFunctionItemActive}`
+ ? `
+ ${styles.formulaSearchFunctionItem}
+ ${styles.formulaSearchFunctionItemActive}
+ `
: styles.formulaSearchFunctionItem}
onMouseEnter={() => handleLiMouseEnter(index)}
onMouseLeave={handleLiMouseLeave}
diff --git a/packages/sheets-formula-ui/src/views/more-functions/function-params/FunctionParams.tsx b/packages/sheets-formula-ui/src/views/more-functions/function-params/FunctionParams.tsx
index 2fc1c690e9..be77952e0d 100644
--- a/packages/sheets-formula-ui/src/views/more-functions/function-params/FunctionParams.tsx
+++ b/packages/sheets-formula-ui/src/views/more-functions/function-params/FunctionParams.tsx
@@ -28,7 +28,13 @@ export function FunctionParams(props: IParamsProps) {
const { className, value, title } = props;
return (
<div className={styles.formulaFunctionParams}>
- <div className={`${styles.formulaFunctionParamsTitle} ${className}`}>{title}</div>
+ <div className={`
+ ${styles.formulaFunctionParamsTitle}
+ ${className}
+ `}
+ >
+ {title}
+ </div>
<div className={styles.formulaFunctionParamsDetail}>{value}</div>
</div>
);
diff --git a/packages/sheets-formula-ui/src/views/more-functions/select-function/SelectFunction.tsx b/packages/sheets-formula-ui/src/views/more-functions/select-function/SelectFunction.tsx
index e7fab08922..dd7fc1192b 100644
--- a/packages/sheets-formula-ui/src/views/more-functions/select-function/SelectFunction.tsx
+++ b/packages/sheets-formula-ui/src/views/more-functions/select-function/SelectFunction.tsx
@@ -166,7 +166,10 @@ export function SelectFunction(props: ISelectFunctionProps) {
<li
key={index}
className={active === index
- ? `${styles.formulaSelectFunctionResultItem} ${styles.formulaSelectFunctionResultItemActive}`
+ ? `
+ ${styles.formulaSelectFunctionResultItem}
+ ${styles.formulaSelectFunctionResultItemActive}
+ `
: styles.formulaSelectFunctionResultItem}
onMouseEnter={() => handleLiMouseEnter(index)}
onMouseLeave={handleLiMouseLeave}
diff --git a/packages/sheets-formula-ui/src/views/prompt/help-function/HelpFunction.tsx b/packages/sheets-formula-ui/src/views/prompt/help-function/HelpFunction.tsx
index 6815a48c8e..74df82aac9 100644
--- a/packages/sheets-formula-ui/src/views/prompt/help-function/HelpFunction.tsx
+++ b/packages/sheets-formula-ui/src/views/prompt/help-function/HelpFunction.tsx
@@ -222,7 +222,13 @@ interface IParamsProps {
const Params = (props: IParamsProps) => (
<div className={styles.formulaHelpFunctionContentParams}>
- <div className={`${styles.formulaHelpFunctionContentParamsTitle} ${props.className}`}>{props.title}</div>
+ <div className={`
+ ${styles.formulaHelpFunctionContentParamsTitle}
+ ${props.className}
+ `}
+ >
+ {props.title}
+ </div>
<div className={styles.formulaHelpFunctionContentParamsDetail}>{props.value}</div>
</div>
);
diff --git a/packages/sheets-formula-ui/src/views/prompt/search-function/SearchFunction.tsx b/packages/sheets-formula-ui/src/views/prompt/search-function/SearchFunction.tsx
index 2239822aff..7b3ef42462 100644
--- a/packages/sheets-formula-ui/src/views/prompt/search-function/SearchFunction.tsx
+++ b/packages/sheets-formula-ui/src/views/prompt/search-function/SearchFunction.tsx
@@ -161,7 +161,10 @@ export function SearchFunction() {
<li
key={index}
className={active === index
- ? `${styles.formulaSearchFunctionItem} ${styles.formulaSearchFunctionItemActive}`
+ ? `
+ ${styles.formulaSearchFunctionItem}
+ ${styles.formulaSearchFunctionItemActive}
+ `
: styles.formulaSearchFunctionItem}
onMouseEnter={() => handleLiMouseEnter(index)}
onMouseLeave={handleLiMouseLeave}
diff --git a/packages/sheets-formula-ui/tailwind.config.ts b/packages/sheets-formula-ui/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages/sheets-formula-ui/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages/sheets-hyper-link-ui/package.json b/packages/sheets-hyper-link-ui/package.json
index f54054c71b..098dde95f8 100644
--- a/packages/sheets-hyper-link-ui/package.json
+++ b/packages/sheets-hyper-link-ui/package.json
@@ -91,8 +91,10 @@
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
+ "postcss": "^8.4.49",
"react": "18.3.1",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages/sheets-hyper-link-ui/postcss.config.mjs b/packages/sheets-hyper-link-ui/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages/sheets-hyper-link-ui/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages/sheets-hyper-link-ui/src/global.css b/packages/sheets-hyper-link-ui/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages/sheets-hyper-link-ui/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages/sheets-hyper-link-ui/src/index.ts b/packages/sheets-hyper-link-ui/src/index.ts
index dc2d08d8cb..12d49a8a4c 100644
--- a/packages/sheets-hyper-link-ui/src/index.ts
+++ b/packages/sheets-hyper-link-ui/src/index.ts
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+import './global.css';
+
export { SheetsHyperLinkCopyPasteController } from './controllers/copy-paste.controller';
export { InsertLinkShortcut } from './controllers/menu';
export { UniverSheetsHyperLinkUIPlugin } from './plugin';
diff --git a/packages/sheets-hyper-link-ui/tailwind.config.ts b/packages/sheets-hyper-link-ui/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages/sheets-hyper-link-ui/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages/sheets-numfmt-ui/package.json b/packages/sheets-numfmt-ui/package.json
index 6eff1780c4..8a51971e0a 100644
--- a/packages/sheets-numfmt-ui/package.json
+++ b/packages/sheets-numfmt-ui/package.json
@@ -82,8 +82,10 @@
"@univerjs-infra/shared": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
"less": "^4.2.1",
+ "postcss": "^8.4.49",
"react": "18.3.1",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages/sheets-numfmt-ui/postcss.config.mjs b/packages/sheets-numfmt-ui/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages/sheets-numfmt-ui/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages/sheets-numfmt-ui/src/global.css b/packages/sheets-numfmt-ui/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages/sheets-numfmt-ui/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages/sheets-numfmt-ui/src/index.ts b/packages/sheets-numfmt-ui/src/index.ts
index 02036f06f7..ba33b178da 100644
--- a/packages/sheets-numfmt-ui/src/index.ts
+++ b/packages/sheets-numfmt-ui/src/index.ts
@@ -14,4 +14,6 @@
* limitations under the License.
*/
+import './global.css';
+
export { UniverSheetsNumfmtUIPlugin } from './plugin';
diff --git a/packages/sheets-numfmt-ui/src/views/components/accounting/index.tsx b/packages/sheets-numfmt-ui/src/views/components/accounting/index.tsx
index 38def71a21..c7a8b610f9 100644
--- a/packages/sheets-numfmt-ui/src/views/components/accounting/index.tsx
+++ b/packages/sheets-numfmt-ui/src/views/components/accounting/index.tsx
@@ -53,7 +53,7 @@ export const AccountingPanel: FC<IBusinessComponentProps> = (props) => {
return (
<div>
- <div className="m-t-16 options ">
+ <div className="m-t-16 options">
<div className="option">
<div className="label">{t('sheet.numfmt.decimalLength')}</div>
diff --git a/packages/sheets-numfmt-ui/src/views/components/currency/index.tsx b/packages/sheets-numfmt-ui/src/views/components/currency/index.tsx
index e1c8db2422..d19194ae4a 100644
--- a/packages/sheets-numfmt-ui/src/views/components/currency/index.tsx
+++ b/packages/sheets-numfmt-ui/src/views/components/currency/index.tsx
@@ -74,7 +74,7 @@ export const CurrencyPanel: FC<IBusinessComponentProps> = (props) => {
return (
<div>
- <div className="m-t-16 options ">
+ <div className="m-t-16 options">
<div className="option">
<div className="label">{t('sheet.numfmt.decimalLength')}</div>
<div className="m-t-8 w-120">
diff --git a/packages/sheets-numfmt-ui/tailwind.config.ts b/packages/sheets-numfmt-ui/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages/sheets-numfmt-ui/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages/sheets-sort-ui/package.json b/packages/sheets-sort-ui/package.json
index b124adeabf..50735cc34c 100644
--- a/packages/sheets-sort-ui/package.json
+++ b/packages/sheets-sort-ui/package.json
@@ -80,8 +80,10 @@
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"less": "^4.2.1",
+ "postcss": "^8.4.49",
"react": "18.3.1",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages/sheets-sort-ui/postcss.config.mjs b/packages/sheets-sort-ui/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages/sheets-sort-ui/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages/sheets-sort-ui/src/global.css b/packages/sheets-sort-ui/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages/sheets-sort-ui/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages/sheets-sort-ui/src/index.ts b/packages/sheets-sort-ui/src/index.ts
index b3bedb8055..a4f4e1efbc 100644
--- a/packages/sheets-sort-ui/src/index.ts
+++ b/packages/sheets-sort-ui/src/index.ts
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+import './global.css';
+
export { UniverSheetsSortUIPlugin } from './plugin';
// #region - all commands
diff --git a/packages/sheets-sort-ui/src/views/CustomSortPanel.tsx b/packages/sheets-sort-ui/src/views/CustomSortPanel.tsx
index 9a16be4160..8c2af79cb2 100644
--- a/packages/sheets-sort-ui/src/views/CustomSortPanel.tsx
+++ b/packages/sheets-sort-ui/src/views/CustomSortPanel.tsx
@@ -16,10 +16,10 @@
import type { IRange, Nullable } from '@univerjs/core';
import { LocaleService, LocaleType, throttle, useDependency } from '@univerjs/core';
-import React, { useCallback, useEffect, useRef, useState } from 'react';
-import { type IOrderRule, SheetsSortService, SortType } from '@univerjs/sheets-sort';
import { Button, Checkbox, DraggableList, Dropdown, Radio, RadioGroup } from '@univerjs/design';
import { CheckMarkSingle, DeleteEmptySingle, IncreaseSingle, MoreDownSingle, SequenceSingle } from '@univerjs/icons';
+import { type IOrderRule, SheetsSortService, SortType } from '@univerjs/sheets-sort';
+import React, { useCallback, useEffect, useRef, useState } from 'react';
import { SheetsSortUIService } from '../services/sheets-sort-ui.service';
import styles from './index.module.less';
@@ -116,7 +116,11 @@ export function CustomSortPanel() {
</div>
)
: (
- <div className={`${styles.addCondition} ${styles.addConditionDisable}`}>
+ <div className={`
+ ${styles.addCondition}
+ ${styles.addConditionDisable}
+ `}
+ >
<IncreaseSingle />
<span className={styles.addConditionText}>{localeService.t('sheets-sort.dialog.add-condition')}</span>
</div>
diff --git a/packages/sheets-sort-ui/src/views/EmbedSortBtn.tsx b/packages/sheets-sort-ui/src/views/EmbedSortBtn.tsx
index 50682f6982..0377574ea4 100644
--- a/packages/sheets-sort-ui/src/views/EmbedSortBtn.tsx
+++ b/packages/sheets-sort-ui/src/views/EmbedSortBtn.tsx
@@ -14,11 +14,11 @@
* limitations under the License.
*/
-import React, { useCallback } from 'react';
import { type IRange, IUniverInstanceService, LocaleService } from '@univerjs/core';
import { useDependency } from '@univerjs/core';
-import { getSheetCommandTarget } from '@univerjs/sheets';
import { AscendingSingle, DescendingSingle } from '@univerjs/icons';
+import { getSheetCommandTarget } from '@univerjs/sheets';
+import React, { useCallback } from 'react';
import { SheetsSortUIService } from '../services/sheets-sort-ui.service';
import styles from './index.module.less';
@@ -48,11 +48,23 @@ export default function EmbedSortBtn(props: any) {
return (
<div className={styles.embedSortBtnContainer}>
- <div className={`${styles.embedSortBtn} ${styles.embedSortBtnAsc}`} onClick={() => apply(true)}>
+ <div
+ className={`
+ ${styles.embedSortBtn}
+ ${styles.embedSortBtnAsc}
+ `}
+ onClick={() => apply(true)}
+ >
<AscendingSingle className={styles.embedSortBtnIcon} />
{localeService.t('sheets-sort.general.sort-asc')}
</div>
- <div className={`${styles.embedSortBtn} ${styles.embedSortBtnDesc}`} onClick={() => apply(false)}>
+ <div
+ className={`
+ ${styles.embedSortBtn}
+ ${styles.embedSortBtnDesc}
+ `}
+ onClick={() => apply(false)}
+ >
<DescendingSingle className={styles.embedSortBtnIcon} />
{localeService.t('sheets-sort.general.sort-desc')}
</div>
diff --git a/packages/sheets-sort-ui/tailwind.config.ts b/packages/sheets-sort-ui/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages/sheets-sort-ui/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages/sheets-thread-comment-ui/package.json b/packages/sheets-thread-comment-ui/package.json
index d66d7af106..f7e538c30a 100644
--- a/packages/sheets-thread-comment-ui/package.json
+++ b/packages/sheets-thread-comment-ui/package.json
@@ -80,8 +80,10 @@
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
+ "postcss": "^8.4.49",
"react": "18.3.1",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages/sheets-thread-comment-ui/postcss.config.mjs b/packages/sheets-thread-comment-ui/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages/sheets-thread-comment-ui/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages/sheets-thread-comment-ui/src/global.css b/packages/sheets-thread-comment-ui/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages/sheets-thread-comment-ui/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages/sheets-thread-comment-ui/src/index.ts b/packages/sheets-thread-comment-ui/src/index.ts
index 5e56084e0b..1a0e883a56 100644
--- a/packages/sheets-thread-comment-ui/src/index.ts
+++ b/packages/sheets-thread-comment-ui/src/index.ts
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+import './global.css';
+
export { ShowAddSheetCommentModalOperation } from './commands/operations/comment.operation';
export { UniverSheetsThreadCommentUIPlugin } from './plugin';
export { SheetsThreadCommentPopupService } from './services/sheets-thread-comment-popup.service';
diff --git a/packages/sheets-thread-comment-ui/tailwind.config.ts b/packages/sheets-thread-comment-ui/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages/sheets-thread-comment-ui/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages/sheets-ui/package.json b/packages/sheets-ui/package.json
index 86525d4907..6a3844f45e 100644
--- a/packages/sheets-ui/package.json
+++ b/packages/sheets-ui/package.json
@@ -90,8 +90,10 @@
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"less": "^4.2.1",
+ "postcss": "^8.4.49",
"react": "18.3.1",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages/sheets-ui/postcss.config.mjs b/packages/sheets-ui/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages/sheets-ui/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages/sheets-ui/src/components/border-panel/BorderPanel.tsx b/packages/sheets-ui/src/components/border-panel/BorderPanel.tsx
index 54ca6d8e70..5b73de4f7d 100644
--- a/packages/sheets-ui/src/components/border-panel/BorderPanel.tsx
+++ b/packages/sheets-ui/src/components/border-panel/BorderPanel.tsx
@@ -101,7 +101,12 @@ export function BorderPanel(props: IBorderPanelProps) {
{BORDER_LINE_CHILDREN.map((item) => (
<div
key={item.value}
- className={borderStyleManagerService.getBorderInfo().type === item.value ? (`${styles.uiPluginSheetsBorderPanelPositionItemActive} ${styles.uiPluginSheetsBorderPanelPositionItem}`) : styles.uiPluginSheetsBorderPanelPositionItem}
+ className={borderStyleManagerService.getBorderInfo().type === item.value
+ ? (`
+ ${styles.uiPluginSheetsBorderPanelPositionItemActive}
+ ${styles.uiPluginSheetsBorderPanelPositionItem}
+ `)
+ : styles.uiPluginSheetsBorderPanelPositionItem}
onClick={(e) => {
e.stopPropagation();
handleClick(item.value, 'type');
diff --git a/packages/sheets-ui/src/global.css b/packages/sheets-ui/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages/sheets-ui/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages/sheets-ui/src/index.ts b/packages/sheets-ui/src/index.ts
index 4a3fbf8199..4d1580ceec 100644
--- a/packages/sheets-ui/src/index.ts
+++ b/packages/sheets-ui/src/index.ts
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+import './global.css';
+
export { SheetsUIPart } from './consts/ui-name';
export { SHEET_UI_PLUGIN_NAME } from './consts/plugin-name';
export { getEditorObject } from './basics/editor/get-editor-object';
@@ -62,9 +64,9 @@ export {
export { MarkSelectionService } from './services/mark-selection/mark-selection.service';
export { IMarkSelectionService } from './services/mark-selection/mark-selection.service';
export { SheetSelectionRenderService } from './services/selection/selection-render.service';
-export { genSelectionByRange, getTopLeftSelectionOfCurrSheet, selectionDataForSelectAll as getAllSelection } from './services/selection/base-selection-render.service';
+export { genSelectionByRange, selectionDataForSelectAll as getAllSelection, getTopLeftSelectionOfCurrSheet } from './services/selection/base-selection-render.service';
export { BaseSelectionRenderService, ISheetSelectionRenderService } from './services/selection/base-selection-render.service';
-export { SelectionControl as SelectionShape, SelectionControl } from './services/selection/selection-control';
+export { SelectionControl, SelectionControl as SelectionShape } from './services/selection/selection-control';
export { SelectionShapeExtension } from './services/selection/selection-shape-extension';
export { genNormalSelectionStyle } from './services/selection/const';
export type { ISheetSkeletonManagerParam } from './services/sheet-skeleton-manager.service';
diff --git a/packages/sheets-ui/src/views/sheet-bar/SheetBar.tsx b/packages/sheets-ui/src/views/sheet-bar/SheetBar.tsx
index 3b5d3e5765..332ccdd819 100644
--- a/packages/sheets-ui/src/views/sheet-bar/SheetBar.tsx
+++ b/packages/sheets-ui/src/views/sheet-bar/SheetBar.tsx
@@ -14,19 +14,19 @@
* limitations under the License.
*/
+import type { IScrollState } from './sheet-bar-tabs/utils/slide-tab-bar';
import { ICommandService, IPermissionService, useDependency } from '@univerjs/core';
import { IncreaseSingle, MoreSingle } from '@univerjs/icons';
import { InsertSheetCommand, WorkbookCreateSheetPermission, WorkbookEditablePermission } from '@univerjs/sheets';
-import React, { useEffect, useState } from 'react';
import { useObservable } from '@univerjs/ui';
-import { ISheetBarService } from '../../services/sheet-bar/sheet-bar.service';
+import React, { useEffect, useState } from 'react';
import { useActiveWorkbook } from '../../components/hook';
+import { ISheetBarService } from '../../services/sheet-bar/sheet-bar.service';
import styles from './index.module.less';
import { SheetBarButton } from './sheet-bar-button/SheetBarButton';
import { SheetBarMenu } from './sheet-bar-menu/SheetBarMenu';
import { SheetBarTabs } from './sheet-bar-tabs/SheetBarTabs';
-import type { IScrollState } from './sheet-bar-tabs/utils/slide-tab-bar';
const SCROLL_WIDTH = 100;
@@ -92,7 +92,11 @@ export const SheetBar = () => {
{/* Scroll arrows */}
{(!leftScrollState || !rightScrollState) && (
- <div className={`${styles.sheetBarOptions} ${styles.sheetBarOptionsDivider}`}>
+ <div className={`
+ ${styles.sheetBarOptions}
+ ${styles.sheetBarOptionsDivider}
+ `}
+ >
<SheetBarButton disabled={leftScrollState} onClick={handleScrollLeft}>
<MoreSingle style={{ transform: 'rotateZ(180deg)' }} />
</SheetBarButton>
diff --git a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-menu/SheetBarMenu.tsx b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-menu/SheetBarMenu.tsx
index 9d6c18cd5f..7af0f61c03 100644
--- a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-menu/SheetBarMenu.tsx
+++ b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-menu/SheetBarMenu.tsx
@@ -145,9 +145,15 @@ export function SheetBarMenu(props: ISheetBarMenuProps) {
key={item.index}
onClick={() => handleClick(item)}
className={item.selected
- ? `${styles.sheetBarMenuItem} ${styles.sheetBarMenuItemSelect}`
+ ? `
+ ${styles.sheetBarMenuItem}
+ ${styles.sheetBarMenuItemSelect}
+ `
: item.hidden
- ? `${styles.sheetBarMenuItem} ${styles.sheetBarMenuItemHide}`
+ ? `
+ ${styles.sheetBarMenuItem}
+ ${styles.sheetBarMenuItemHide}
+ `
: styles.sheetBarMenuItem}
>
<span className={styles.sheetBarMenuItemIcon}>
diff --git a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarItem.tsx b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarItem.tsx
index a7a5831d15..e8aeafa5bc 100644
--- a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarItem.tsx
+++ b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarItem.tsx
@@ -54,7 +54,12 @@ export function SheetBarItem(props: IBaseSheetBarProps) {
<div
key={sheetId}
data-id={sheetId}
- className={currentSelected ? `${styles.slideTabActive} ${styles.slideTabItem}` : styles.slideTabItem}
+ className={currentSelected
+ ? `
+ ${styles.slideTabActive}
+ ${styles.slideTabItem}
+ `
+ : styles.slideTabItem}
style={{
backgroundColor: !currentSelected && color ? color : '',
color: !currentSelected && color ? getTextColor(color) : '',
diff --git a/packages/sheets-ui/tailwind.config.ts b/packages/sheets-ui/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages/sheets-ui/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages/sheets-zen-editor/package.json b/packages/sheets-zen-editor/package.json
index 8de3428d48..f57e540bcf 100644
--- a/packages/sheets-zen-editor/package.json
+++ b/packages/sheets-zen-editor/package.json
@@ -80,8 +80,10 @@
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"less": "^4.2.1",
+ "postcss": "^8.4.49",
"react": "18.3.1",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages/sheets-zen-editor/postcss.config.mjs b/packages/sheets-zen-editor/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages/sheets-zen-editor/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages/sheets-zen-editor/src/global.css b/packages/sheets-zen-editor/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages/sheets-zen-editor/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages/sheets-zen-editor/src/index.ts b/packages/sheets-zen-editor/src/index.ts
index 00175ff52d..c6993a217a 100644
--- a/packages/sheets-zen-editor/src/index.ts
+++ b/packages/sheets-zen-editor/src/index.ts
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+import './global.css';
+
export { CancelZenEditCommand, ConfirmZenEditCommand, OpenZenEditorCommand } from './commands/commands/zen-editor.command';
// #region - all commands
diff --git a/packages/sheets-zen-editor/tailwind.config.ts b/packages/sheets-zen-editor/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages/sheets-zen-editor/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages/slides-ui/package.json b/packages/slides-ui/package.json
index d9accbc3ac..2480ef6604 100644
--- a/packages/slides-ui/package.json
+++ b/packages/slides-ui/package.json
@@ -82,8 +82,10 @@
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"less": "^4.2.1",
+ "postcss": "^8.4.49",
"react": "18.3.1",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages/slides-ui/postcss.config.mjs b/packages/slides-ui/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages/slides-ui/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages/slides-ui/src/global.css b/packages/slides-ui/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages/slides-ui/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages/slides-ui/src/index.ts b/packages/slides-ui/src/index.ts
index f88f19aceb..8d71618a72 100644
--- a/packages/slides-ui/src/index.ts
+++ b/packages/slides-ui/src/index.ts
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+import './global.css';
+
export { UniverSlidesUIPlugin } from './slides-ui-plugin';
export { SlidesUIController } from './controllers/slide-ui.controller';
export { SlideSideBar } from './components/slide-bar/SlideBar';
diff --git a/packages/slides-ui/tailwind.config.ts b/packages/slides-ui/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages/slides-ui/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages/thread-comment-ui/package.json b/packages/thread-comment-ui/package.json
index 98a377df0d..e99f288f5e 100644
--- a/packages/thread-comment-ui/package.json
+++ b/packages/thread-comment-ui/package.json
@@ -79,8 +79,10 @@
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"less": "^4.2.1",
+ "postcss": "^8.4.49",
"react": "18.3.1",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages/thread-comment-ui/postcss.config.mjs b/packages/thread-comment-ui/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages/thread-comment-ui/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages/thread-comment-ui/src/global.css b/packages/thread-comment-ui/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages/thread-comment-ui/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages/thread-comment-ui/src/index.ts b/packages/thread-comment-ui/src/index.ts
index 26d95fcb60..5b50b612af 100644
--- a/packages/thread-comment-ui/src/index.ts
+++ b/packages/thread-comment-ui/src/index.ts
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+import './global.css';
+
export { UniverThreadCommentUIPlugin } from './plugin';
export { type ActiveCommentInfo, ThreadCommentPanelService } from './services/thread-comment-panel.service';
export { ThreadCommentPanel } from './views/thread-comment-panel';
diff --git a/packages/thread-comment-ui/tailwind.config.ts b/packages/thread-comment-ui/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages/thread-comment-ui/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages/ui/package.json b/packages/ui/package.json
index c0ee4f3a16..eceab522aa 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -93,9 +93,11 @@
"@types/react-transition-group": "^4.4.11",
"@univerjs-infra/shared": "workspace:*",
"less": "^4.2.1",
+ "postcss": "^8.4.49",
"react": "18.3.1",
"react-dom": "18.3.1",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6",
diff --git a/packages/ui/postcss.config.mjs b/packages/ui/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages/ui/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages/ui/src/global.css b/packages/ui/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages/ui/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages/ui/src/index.ts b/packages/ui/src/index.ts
index e5a3fd8a70..6bbd086f98 100644
--- a/packages/ui/src/index.ts
+++ b/packages/ui/src/index.ts
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+import './global.css';
+
export * from './common';
export { getHeaderFooterMenuHiddenObservable, getMenuHiddenObservable } from './common/menu-hidden-observable';
export { mergeMenuConfigs } from './common/menu-merge-configs';
diff --git a/packages/ui/tailwind.config.ts b/packages/ui/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages/ui/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages/uniscript/package.json b/packages/uniscript/package.json
index c943d909dc..7d72b7b391 100644
--- a/packages/uniscript/package.json
+++ b/packages/uniscript/package.json
@@ -78,7 +78,9 @@
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"less": "^4.2.1",
+ "postcss": "^8.4.49",
"rxjs": "^7.8.1",
+ "tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vitest": "^2.1.6"
diff --git a/packages/uniscript/postcss.config.mjs b/packages/uniscript/postcss.config.mjs
new file mode 100644
index 0000000000..7d59f53133
--- /dev/null
+++ b/packages/uniscript/postcss.config.mjs
@@ -0,0 +1 @@
+export { default } from '@univerjs-infra/shared/postcss';
diff --git a/packages/uniscript/src/global.css b/packages/uniscript/src/global.css
new file mode 100644
index 0000000000..7c05d4ddc4
--- /dev/null
+++ b/packages/uniscript/src/global.css
@@ -0,0 +1,2 @@
+@tailwind components;
+@tailwind utilities;
diff --git a/packages/uniscript/src/index.ts b/packages/uniscript/src/index.ts
index 4b33582495..32c096e2ba 100644
--- a/packages/uniscript/src/index.ts
+++ b/packages/uniscript/src/index.ts
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+import './global.css';
+
export { UniverUniscriptPlugin } from './plugin';
export { ScriptEditorService } from './services/script-editor.service';
export { IUniscriptExecutionService } from './services/script-execution.service';
diff --git a/packages/uniscript/tailwind.config.ts b/packages/uniscript/tailwind.config.ts
new file mode 100644
index 0000000000..048c8ae092
--- /dev/null
+++ b/packages/uniscript/tailwind.config.ts
@@ -0,0 +1,27 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { Config } from 'tailwindcss';
+import preset from '@univerjs-infra/shared/tailwind';
+
+const config: Config = {
+ presets: [preset],
+ content: [
+ './src/**/*.{js,ts,jsx,tsx}',
+ ],
+};
+
+export default config;
diff --git a/packages/watermark/package.json b/packages/watermark/package.json
index 26d85621bf..dc0e936a3c 100644
--- a/packages/watermark/package.json
+++ b/packages/watermark/package.json
@@ -79,8 +79,6 @@
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
- "less": "^4.2.1",
- "react": "18.3.1",
"rxjs": "^7.8.1",
"typescript": "^5.7.2",
"vite": "^6.0.0",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index c00b390307..70bab12c9f 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -9,11 +9,11 @@ importers:
.:
devDependencies:
'@antfu/eslint-config':
- specifier: 3.10.0
+ specifier: 3.11.2
'@commitlint/cli':
specifier: ^19.6.0
- version: 19.6.0(@types/[email protected])([email protected])
+ version: 19.6.0(@types/[email protected])([email protected])
'@commitlint/config-conventional':
specifier: ^19.6.0
version: 19.6.0
@@ -33,8 +33,8 @@ importers:
specifier: 8.4.5
'@types/node':
- specifier: ^22.10.0
- version: 22.10.0
+ specifier: ^22.10.1
+ version: 22.10.1
'@types/react':
specifier: ^18.3.12
version: 18.3.12
@@ -49,7 +49,7 @@ importers:
version: link:packages/design
'@vitejs/plugin-react':
specifier: ^4.3.4
eslint:
specifier: 9.15.0
version: 9.15.0([email protected])
@@ -103,7 +103,7 @@ importers:
version: 5.7.2
vitest:
specifier: ^2.1.6
common/shared:
dependencies:
@@ -112,13 +112,16 @@ importers:
'@vitejs/plugin-react':
specifier: ^4.3.4
'@vitejs/plugin-vue':
specifier: ^5.2.1
'@vitest/coverage-istanbul':
specifier: ^2.1.6
+ eslint-plugin-readable-tailwind:
+ specifier: ^1.8.2
fs-extra:
specifier: ^11.2.0
version: 11.2.0
@@ -131,18 +134,21 @@ importers:
sort-keys:
specifier: ^5.1.0
version: 5.1.0
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
vite:
specifier: ^6.0.0
vite-plugin-dts:
specifier: ^4.3.0
vite-plugin-external:
specifier: ^4.3.1
version: 4.3.1
vitest:
specifier: ^2.1.6
devDependencies:
'@types/fs-extra':
specifier: ^11.0.4
@@ -207,6 +213,9 @@ importers:
less-loader:
specifier: ^12.2.0
+ postcss-loader:
+ specifier: ^8.1.1
storybook:
specifier: ^8.4.5
version: 8.4.5([email protected])
@@ -223,9 +232,21 @@ importers:
specifier: ^5.7.2
version: 5.7.2
devDependencies:
+ '@types/fs-extra':
+ specifier: ^11.0.4
+ version: 11.0.4
'@univerjs-infra/shared':
specifier: workspace:*
version: link:../shared
+ fs-extra:
+ specifier: ^11.2.0
+ version: 11.2.0
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
examples:
dependencies:
@@ -408,7 +429,7 @@ importers:
version: 18.3.1([email protected])
react-mosaic-component:
specifier: ^6.1.0
devDependencies:
'@types/fs-extra':
specifier: ^11.0.4
@@ -449,6 +470,12 @@ importers:
minimist:
specifier: ^1.2.8
version: 1.2.8
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
@@ -625,10 +652,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages-experimental/debugger:
dependencies:
@@ -676,18 +703,24 @@ importers:
'@univerjs-infra/shared':
specifier: workspace:*
version: link:../../common/shared
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages-experimental/uni-docs-ui:
dependencies:
@@ -719,18 +752,24 @@ importers:
'@univerjs-infra/shared':
specifier: workspace:*
version: link:../../common/shared
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages-experimental/uni-formula:
dependencies:
@@ -749,10 +788,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages-experimental/uni-formula-ui:
dependencies:
@@ -799,18 +838,24 @@ importers:
'@univerjs-infra/shared':
specifier: workspace:*
version: link:../../common/shared
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages-experimental/uni-sheets-ui:
dependencies:
@@ -854,18 +899,24 @@ importers:
'@univerjs-infra/shared':
specifier: workspace:*
version: link:../../common/shared
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages-experimental/uni-slides-ui:
dependencies:
@@ -897,6 +948,9 @@ importers:
less:
specifier: ^4.2.1
version: 4.2.1
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
react:
specifier: 18.3.1
version: 18.3.1
@@ -906,15 +960,18 @@ importers:
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages-experimental/uniui:
dependencies:
@@ -961,6 +1018,9 @@ importers:
less:
specifier: ^4.2.1
version: 4.2.1
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
react:
specifier: 18.3.1
version: 18.3.1
@@ -970,15 +1030,18 @@ importers:
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/core:
dependencies:
@@ -1039,10 +1102,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/data-validation:
dependencies:
@@ -1067,10 +1130,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/design:
dependencies:
@@ -1159,21 +1222,27 @@ importers:
less:
specifier: ^4.2.1
version: 4.2.1
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
react:
specifier: 18.3.1
version: 18.3.1
react-dom:
specifier: 18.3.1
version: 18.3.1([email protected])
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/docs:
dependencies:
@@ -1195,10 +1264,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/docs-drawing:
dependencies:
@@ -1217,10 +1286,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/docs-drawing-ui:
dependencies:
@@ -1264,21 +1333,27 @@ importers:
less:
specifier: ^4.2.1
version: 4.2.1
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
react:
specifier: 18.3.1
version: 18.3.1
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/docs-hyper-link:
dependencies:
@@ -1297,10 +1372,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/docs-hyper-link-ui:
dependencies:
@@ -1335,21 +1410,27 @@ importers:
'@univerjs-infra/shared':
specifier: workspace:*
version: link:../../common/shared
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
react:
specifier: 18.3.1
version: 18.3.1
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/docs-mention-ui:
dependencies:
@@ -1375,21 +1456,27 @@ importers:
less:
specifier: ^4.2.1
version: 4.2.1
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
react:
specifier: 18.3.1
version: 18.3.1
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/docs-thread-comment-ui:
dependencies:
@@ -1424,21 +1511,27 @@ importers:
'@univerjs-infra/shared':
specifier: workspace:*
version: link:../../common/shared
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
react:
specifier: 18.3.1
version: 18.3.1
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/docs-ui:
dependencies:
@@ -1479,21 +1572,27 @@ importers:
less:
specifier: ^4.2.1
version: 4.2.1
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
react:
specifier: 18.3.1
version: 18.3.1
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/drawing:
dependencies:
@@ -1515,10 +1614,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/drawing-ui:
dependencies:
@@ -1550,21 +1649,27 @@ importers:
less:
specifier: ^4.2.1
version: 4.2.1
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
react:
specifier: 18.3.1
version: 18.3.1
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/engine-formula:
dependencies:
@@ -1595,10 +1700,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/engine-numfmt:
devDependencies:
@@ -1610,10 +1715,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/engine-render:
dependencies:
@@ -1650,10 +1755,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/facade:
dependencies:
@@ -1735,10 +1840,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/find-replace:
dependencies:
@@ -1764,21 +1869,27 @@ importers:
less:
specifier: ^4.2.1
version: 4.2.1
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
react:
specifier: 18.3.1
version: 18.3.1
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/network:
dependencies:
@@ -1797,10 +1908,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/rpc:
dependencies:
@@ -1819,10 +1930,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/rpc-node:
dependencies:
@@ -1844,10 +1955,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/sheets:
dependencies:
@@ -1878,10 +1989,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/sheets-conditional-formatting:
dependencies:
@@ -1912,10 +2023,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/sheets-conditional-formatting-ui:
dependencies:
@@ -1971,21 +2082,27 @@ importers:
less:
specifier: ^4.2.1
version: 4.2.1
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
react:
specifier: 18.3.1
version: 18.3.1
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/sheets-crosshair-highlight:
dependencies:
@@ -2017,21 +2134,27 @@ importers:
less:
specifier: ^4.2.1
version: 4.2.1
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
react:
specifier: 18.3.1
version: 18.3.1
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/sheets-data-validation:
dependencies:
@@ -2068,10 +2191,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/sheets-data-validation-ui:
dependencies:
@@ -2127,21 +2250,27 @@ importers:
less:
specifier: ^4.2.1
version: 4.2.1
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
react:
specifier: 18.3.1
version: 18.3.1
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/sheets-drawing:
dependencies:
@@ -2160,10 +2289,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/sheets-drawing-ui:
dependencies:
@@ -2207,21 +2336,27 @@ importers:
less:
specifier: ^4.2.1
version: 4.2.1
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
react:
specifier: 18.3.1
version: 18.3.1
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/sheets-filter:
dependencies:
@@ -2243,10 +2378,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/sheets-filter-ui:
dependencies:
@@ -2290,21 +2425,27 @@ importers:
less:
specifier: ^4.2.1
version: 4.2.1
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
react:
specifier: 18.3.1
version: 18.3.1
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/sheets-find-replace:
dependencies:
@@ -2335,10 +2476,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/sheets-formula:
dependencies:
@@ -2369,10 +2510,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/sheets-formula-ui:
dependencies:
@@ -2419,21 +2560,27 @@ importers:
less:
specifier: ^4.2.1
version: 4.2.1
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
react:
specifier: 18.3.1
version: 18.3.1
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/sheets-hyper-link:
dependencies:
@@ -2464,10 +2611,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/sheets-hyper-link-ui:
dependencies:
@@ -2517,21 +2664,27 @@ importers:
'@univerjs-infra/shared':
specifier: workspace:*
version: link:../../common/shared
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
react:
specifier: 18.3.1
version: 18.3.1
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/sheets-numfmt:
dependencies:
@@ -2553,10 +2706,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/sheets-numfmt-ui:
dependencies:
@@ -2597,21 +2750,27 @@ importers:
less:
specifier: ^4.2.1
version: 4.2.1
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
react:
specifier: 18.3.1
version: 18.3.1
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/sheets-sort:
dependencies:
@@ -2633,10 +2792,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/sheets-sort-ui:
dependencies:
@@ -2677,21 +2836,27 @@ importers:
less:
specifier: ^4.2.1
version: 4.2.1
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
react:
specifier: 18.3.1
version: 18.3.1
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/sheets-thread-comment:
dependencies:
@@ -2719,10 +2884,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/sheets-thread-comment-ui:
dependencies:
@@ -2763,21 +2928,27 @@ importers:
'@univerjs-infra/shared':
specifier: workspace:*
version: link:../../common/shared
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
react:
specifier: 18.3.1
version: 18.3.1
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/sheets-ui:
dependencies:
@@ -2827,21 +2998,27 @@ importers:
less:
specifier: ^4.2.1
version: 4.2.1
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
react:
specifier: 18.3.1
version: 18.3.1
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/sheets-zen-editor:
dependencies:
@@ -2876,21 +3053,27 @@ importers:
less:
specifier: ^4.2.1
version: 4.2.1
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
react:
specifier: 18.3.1
version: 18.3.1
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/slides:
dependencies:
@@ -2909,10 +3092,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/slides-ui:
dependencies:
@@ -2953,21 +3136,27 @@ importers:
less:
specifier: ^4.2.1
version: 4.2.1
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
react:
specifier: 18.3.1
version: 18.3.1
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/telemetry:
dependencies:
@@ -2983,10 +3172,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/thread-comment:
dependencies:
@@ -3008,10 +3197,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/thread-comment-ui:
dependencies:
@@ -3049,21 +3238,27 @@ importers:
less:
specifier: ^4.2.1
version: 4.2.1
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
react:
specifier: 18.3.1
version: 18.3.1
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/ui:
dependencies:
@@ -3111,6 +3306,9 @@ importers:
less:
specifier: ^4.2.1
version: 4.2.1
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
react:
specifier: 18.3.1
version: 18.3.1
@@ -3120,15 +3318,18 @@ importers:
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/uniscript:
dependencies:
@@ -3160,18 +3361,24 @@ importers:
less:
specifier: ^4.2.1
version: 4.2.1
+ postcss:
+ specifier: ^8.4.49
+ version: 8.4.49
rxjs:
specifier: ^7.8.1
version: 7.8.1
+ tailwindcss:
+ specifier: ^3.4.15
+ version: 3.4.15
typescript:
specifier: ^5.7.2
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
packages/watermark:
dependencies:
@@ -3188,12 +3395,6 @@ importers:
'@univerjs-infra/shared':
specifier: workspace:*
version: link:../../common/shared
- less:
- specifier: ^4.2.1
- version: 4.2.1
- react:
- specifier: 18.3.1
- version: 18.3.1
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -3202,10 +3403,10 @@ importers:
version: 5.7.2
vite:
specifier: ^6.0.0
vitest:
specifier: ^2.1.6
tests/formula-integration:
dependencies:
@@ -3254,13 +3455,17 @@ importers:
version: 5.7.2
vitest:
specifier: ^2.1.6
packages:
resolution: {integrity: sha512-Ff9+ksdQQB3rMncgqDK78uLznstjyfIf2Arnh22pW8kBpLs6rpKDwgnZT46hin5Hl1WzazzK64DOrhSwYpS7bQ==}
+ '@alloc/[email protected]':
+ resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==}
+ engines: {node: '>=10'}
+
'@ampproject/[email protected]':
resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==}
engines: {node: '>=6.0.0'}
@@ -3269,8 +3474,8 @@ packages:
resolution: {integrity: sha512-y2217gk4NqL35giHl72o6Zzqji9O7vHh9YmhUVkPtAOpoTCH4uWxo/pr4VE8t0+ChEPs0qo4eJRC5Q1eXWo3vA==}
engines: {node: '>=8.x'}
- '@antfu/[email protected]':
- resolution: {integrity: sha512-rTl9BA42RIaC2l9iol1+uinO1alqVchAr8Vg2WDnXiAJPDaqiwRnbXIWM1fCZVNF4lwgqv71NIsusd67EpTPqA==}
+ '@antfu/[email protected]':
+ resolution: {integrity: sha512-hoi2MnOdiKL8mIhpMtinwMrqVPq6QVbHPA+BuQD4pqE6yVLyYvjdLFiKApMsezAM+YofCsbhak2oY+JCiIyeNA==}
hasBin: true
peerDependencies:
'@eslint-react/eslint-plugin': ^1.5.8
@@ -3284,7 +3489,7 @@ packages:
eslint-plugin-react-refresh: ^0.4.4
eslint-plugin-solid: ^0.14.3
eslint-plugin-svelte: '>=2.35.1'
- prettier-plugin-astro: ^0.13.0
+ prettier-plugin-astro: ^0.14.0
prettier-plugin-slidev: ^1.0.5
svelte-eslint-parser: '>=0.37.0'
peerDependenciesMeta:
@@ -3315,8 +3520,8 @@ packages:
svelte-eslint-parser:
optional: true
- '@antfu/[email protected]':
- resolution: {integrity: sha512-T7yB5QNG29afhWVkVq7XeIMBa5U/vs9mX69YqayXypPRmYzUmzwnYltplHmPtZ4HPCn+sQKeXW8I47wCbuBOjw==}
+ '@antfu/[email protected]':
+ resolution: {integrity: sha512-dKnk2xlAyC7rvTkpkHmu+Qy/2Zc3Vm/l8PtNyIOGDBtXPY3kThfU4ORNEp3V7SXw5XSOb+tOJaUYpfquPzL/Tg==}
resolution: {integrity: sha512-+562v9k4aI80m1+VuMHehNJWLOFjBnXn3tdOitzD0il5b7smkSBal4+a3oKiQTbrwMmN/TBUMDvbdoWDehgOww==}
@@ -4769,6 +4974,9 @@ packages:
resolution: {integrity: sha512-XC70cRZVElFHfIUB40FgZOBbgJYFKKMa5nb9lxcwYstFG/Mi+/Y0bGS+rs6Dmhmkpq4pnNiLiuZAbc02YCOnmA==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-qKgsUwfHZV2WCWLAnVP1JqnpE6Im6h3Y0+fYgMTasNQ7V++CBX5OT1as0g0f+OyubbFqhf6XVNIsmN4IIhEgGQ==}
+
resolution: {integrity: sha512-LidcG+2UeYIWcMuMUpBKOnryBWG/rnmOHQR5apjn8myTQcx3rinFRn7DcIFhMnS0PPFSC6OafdIKEad0lj6U0Q==}
@@ -4923,8 +5131,8 @@ packages:
peerDependencies:
vitest: 2.1.6
- '@vitest/[email protected]':
- resolution: {integrity: sha512-f24vqvW1GE94Qs1qIelMdhTaYoVS6TbNz7V/1xc1A7gggoz21Lon3bDh8SRoesRpXSJ+23fXUc9cOUAKoGgZ8g==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-iv9K9fz9qRxBo9J/PGSMcLdOFIKqtFZ6THqSVG/jW8CJZFkIWLxPduCTXkbyG6FNKgL49fkv348nSgmfqCU6FA==}
peerDependencies:
'@typescript-eslint/utils': '>= 8.0'
eslint: '>= 8.57.0'
@@ -5235,6 +5443,9 @@ packages:
resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==}
engines: {node: '>=12'}
+ resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==}
+
resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==}
engines: {node: '>= 8'}
@@ -5418,6 +5629,10 @@ packages:
resolution: {integrity: sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==}
+ resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==}
+ engines: {node: '>= 6'}
+
resolution: {integrity: sha512-xlx1yCK2Oc1APsPXDL2LdlNP6+uu8OCDdhOBSVT279M/S+y75O30C2VuD8T2ogdePBBl7PfPF4504tnLgX3zfw==}
engines: {node: '>=14.16'}
@@ -5618,6 +5833,10 @@ packages:
resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}
+ resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==}
+ engines: {node: '>= 6'}
+
resolution: {integrity: sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==}
engines: {node: '>= 12'}
@@ -6040,10 +6259,16 @@ packages:
resolution: {integrity: sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==}
+ resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==}
+
resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==}
+
resolution: {integrity: sha512-HK294sl7tbw6F6IeuK16YSBUoorvHpY8RHO+9yFfaJyCDVb6n7PRcezrOEOa2SBCqiYpemh5Jx20ZcjKdFAVng==}
@@ -6575,6 +6800,13 @@ packages:
peerDependencies:
eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7
+ resolution: {integrity: sha512-YJ0nDFhuahZZNPgEMwSw4/Ri87qg7Z6YFLTOUam3PBDFomIXAJG89cvFmZg1R2InpEmHAvVRh3QqcoKbkZZM3g==}
+ engines: {node: '>=16'}
+ peerDependencies:
+ eslint: ^7.0.0 || ^8.0.0 || ^9.0.0
+ tailwindcss: '>=3.3.0'
+
resolution: {integrity: sha512-U8oZI77SBtH8U3ulZ05iu0qEzIizyEDXd+BWHvyVxTOjGwcDcvy/kEpgFG4DYca2ByRLiVPFZ2GeH7j1pdvZTA==}
engines: {node: ^18 || >=20}
@@ -7612,6 +7844,10 @@ packages:
resolution: {integrity: sha512-RiNhHysUjhrDQntfYSfY4MU24coXXdEOgw9WGcKHNeEwffDYbF//u87M1EWaMGzuFoSbqW0C9C6lEEhDOAswfw==}
+ resolution: {integrity: sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==}
+ engines: {node: '>=10'}
+
resolution: {integrity: sha512-eop+wDAvpItUys0FWkHIKeC9ybYrTGbU41U5K7+bttZZeohvnY7M9dZ5kB21GNWiFT2q1OoPTvncPCgSOVO5ow==}
engines: {node: '>=14'}
@@ -8042,6 +8278,9 @@ packages:
resolution: {integrity: sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA==}
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
+ resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==}
+
resolution: {integrity: sha512-S24aGsn+HLBxUGVAUFOwGpKs7LBcG4RudKU//eWzt/mQ97/NMKQxDWHyHx63UNWk/OOdihgmzoETn1tf5nQDzQ==}
@@ -8126,6 +8365,10 @@ packages:
resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
engines: {node: '>=0.10.0'}
+ resolution: {integrity: sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==}
+ engines: {node: '>= 6'}
+
resolution: {integrity: sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==}
engines: {node: '>= 0.4'}
@@ -8371,9 +8614,6 @@ packages:
resolution: {integrity: sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==}
engines: {node: '>= 14.16'}
- resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==}
-
resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
@@ -8390,10 +8630,18 @@ packages:
engines: {node: '>=0.10'}
hasBin: true
+ resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==}
+ engines: {node: '>=0.10.0'}
+
resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==}
engines: {node: '>=6'}
+ resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==}
+ engines: {node: '>= 6'}
+
resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==}
engines: {node: '>=8'}
@@ -8426,6 +8674,43 @@ packages:
resolution: {integrity: sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==}
engines: {node: '>= 0.4'}
+ resolution: {integrity: sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==}
+ engines: {node: '>=14.0.0'}
+ peerDependencies:
+ postcss: ^8.0.0
+
+ resolution: {integrity: sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==}
+ engines: {node: ^12 || ^14 || >= 16}
+ peerDependencies:
+ postcss: ^8.4.21
+
+ resolution: {integrity: sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==}
+ engines: {node: '>= 14'}
+ peerDependencies:
+ postcss: '>=8.0.9'
+ ts-node: '>=9.0.0'
+ peerDependenciesMeta:
+ postcss:
+ optional: true
+ ts-node:
+ optional: true
+
+ resolution: {integrity: sha512-0IeqyAsG6tYiDRCYKQJLAmgQr47DX6N7sFSWvQxt6AcupX8DIdmykuk/o/tx0Lze3ErGHJEp5OSRxrelC6+NdQ==}
+ engines: {node: '>= 18.12.0'}
+ peerDependencies:
+ '@rspack/core': 0.x || 1.x
+ postcss: ^7.0.0 || ^8.0.1
+ webpack: ^5.0.0
+ peerDependenciesMeta:
+ '@rspack/core':
+ optional: true
+ webpack:
+ optional: true
+
resolution: {integrity: sha512-k3kNe0aNFQDAZGbin48pL2VNidTF0w4/eASDsxlyspobzU3wZQLOGj7L9gfRe0Jo9/4uud09DsjFNH7winGv8Q==}
engines: {node: ^10 || ^12 || >= 14}
@@ -8455,6 +8740,12 @@ packages:
peerDependencies:
postcss: ^8.0.0
+ resolution: {integrity: sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==}
+ engines: {node: '>=12.0'}
+ peerDependencies:
+ postcss: ^8.2.14
+
resolution: {integrity: sha512-UMz42UD0UY0EApS0ZL9o1XnLhSTtvvvLe5Dc2H2O56fvRZi+KulDyf5ctDhhtYJBGKStV2FL1fy6253cmLgqVQ==}
engines: {node: '>=4'}
@@ -8466,18 +8757,6 @@ packages:
resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==}
- resolution: {integrity: sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==}
- engines: {node: ^10 || ^12 || >=14}
-
- resolution: {integrity: sha512-YF2kKIUzAofPMpfH6hOi2cGnv/HrUlfucspc7pDyvv7kGdqXrfj8SCl/t8owkEgKEuu8ZcRjSOxFxVLqwChZ2Q==}
- engines: {node: ^10 || ^12 || >=14}
-
- resolution: {integrity: sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ==}
- engines: {node: ^10 || ^12 || >=14}
-
resolution: {integrity: sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==}
engines: {node: ^10 || ^12 || >=14}
@@ -8818,6 +9097,9 @@ packages:
resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==}
engines: {node: '>=0.10.0'}
+ resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==}
+
resolution: {integrity: sha512-MbgfoNPANMdb4oRBNg5eqLbB2t2r+o5Ua1pNt8BqGp4I0FJZhuVSOj3PaBPni4azWuSzEdNn2evevzVmEk1ohQ==}
engines: {node: '>=18'}
@@ -9166,10 +9448,6 @@ packages:
resolution: {integrity: sha512-aSbHV0DaBcr7u0PVHXzM6NbZNAtrr9sF6+Qfs9UUVG7Ll3jQ6hHi8F/xqIIcn2rvIVbr0v/2zyjSdwSV47AgLQ==}
engines: {node: '>=12'}
- resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==}
- engines: {node: '>=0.10.0'}
-
resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}
engines: {node: '>=0.10.0'}
@@ -9352,6 +9630,11 @@ packages:
peerDependencies:
react: '>=16.8.3'
+ resolution: {integrity: sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==}
+ engines: {node: '>=16 || 14 >=14.17'}
+ hasBin: true
+
resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==}
engines: {node: '>=4'}
@@ -9395,6 +9678,11 @@ packages:
resolution: {integrity: sha512-vrozgXDQwYO72vHjUb/HnFbQx1exDjoKzqx23aXEg2a9VIg2TSFZ8FmeZpTjUCFMYw7mpX4BE2SFu8wI7asYsw==}
engines: {node: ^14.18.0 || >=16.0.0}
+ resolution: {integrity: sha512-r4MeXnfBmSOuKUWmXe6h2CcyfzJCEk4F0pptO5jlnYSIViUkVmsawj80N5h2lO3gwcmSb4n3PuN+e+GC1Guylw==}
+ engines: {node: '>=14.0.0'}
+ hasBin: true
+
resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==}
engines: {node: '>=6'}
@@ -9428,6 +9716,13 @@ packages:
resolution: {integrity: sha512-te/NtwBwfiNRLf9Ijqx3T0nlqZiQ2XrrtBvu+cLL8ZRrGkO0NHTug8MYFKyoSrv/sHTaSKfilUkizV6XhxMJ3g==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==}
+ engines: {node: '>=0.8'}
+
+ resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==}
+
resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==}
@@ -9497,6 +9792,9 @@ packages:
resolution: {integrity: sha512-q5W7tVM71e2xjHZTlgfTDoPF/SmqKG5hddq9SzR49CH2hayqRKJtQ4mtRlSxKaJlR/+9rEM+mnBHf7I2/BQcpQ==}
engines: {node: '>=6.10'}
+ resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==}
+
resolution: {integrity: sha512-jqbIpTsa/KKTJYWgPNsFNbLVpwCgzXfFJ1ukNn4I8hMwyQzHMJnk/BqWzggB0xpkILuKzaO/aMYhS0SkaJyKXg==}
@@ -10085,6 +10383,8 @@ snapshots:
'@adobe/[email protected]': {}
+ '@alloc/[email protected]': {}
+
'@ampproject/[email protected]':
dependencies:
'@jridgewell/gen-mapping': 0.3.5
@@ -10094,16 +10394,16 @@ snapshots:
dependencies:
'@babel/runtime': 7.25.0
dependencies:
- '@antfu/install-pkg': 0.4.1
+ '@antfu/install-pkg': 0.5.0
'@clack/prompts': 0.8.2
'@eslint-community/eslint-plugin-eslint-comments': 4.4.1([email protected]([email protected]))
'@eslint/markdown': 6.2.1
'@stylistic/eslint-plugin': 2.11.0([email protected]([email protected]))([email protected])
'@typescript-eslint/parser': 8.16.0([email protected]([email protected]))([email protected])
eslint: 9.15.0([email protected])
eslint-config-flat-gitignore: 0.3.0([email protected]([email protected]))
eslint-flat-config-utils: 0.4.0
@@ -10145,7 +10445,7 @@ snapshots:
- typescript
- vitest
- '@antfu/[email protected]':
+ '@antfu/[email protected]':
dependencies:
package-manager-detector: 0.2.5
tinyexec: 0.3.1
@@ -10155,7 +10455,7 @@ snapshots:
dependencies:
'@babel/highlight': 7.24.7
- picocolors: 1.0.1
+ picocolors: 1.1.1
dependencies:
@@ -10239,7 +10539,7 @@ snapshots:
'@babel/helper-validator-identifier': 7.24.7
chalk: 2.4.2
js-tokens: 4.0.0
- picocolors: 1.0.1
+ picocolors: 1.1.1
dependencies:
@@ -10332,11 +10632,11 @@ snapshots:
picocolors: 1.1.1
sisteransi: 1.0.5
dependencies:
'@commitlint/format': 19.5.0
'@commitlint/lint': 19.6.0
- '@commitlint/load': 19.5.0(@types/[email protected])([email protected])
+ '@commitlint/load': 19.5.0(@types/[email protected])([email protected])
'@commitlint/read': 19.5.0
'@commitlint/types': 19.5.0
tinyexec: 0.3.1
@@ -10383,7 +10683,7 @@ snapshots:
'@commitlint/rules': 19.6.0
'@commitlint/types': 19.5.0
dependencies:
'@commitlint/config-validator': 19.5.0
'@commitlint/execute-rule': 19.5.0
@@ -10391,7 +10691,7 @@ snapshots:
'@commitlint/types': 19.5.0
chalk: 5.3.0
cosmiconfig: 9.0.0([email protected])
- cosmiconfig-typescript-loader: 5.0.0(@types/[email protected])([email protected]([email protected]))([email protected])
+ cosmiconfig-typescript-loader: 5.0.0(@types/[email protected])([email protected]([email protected]))([email protected])
lodash.isplainobject: 4.0.6
lodash.merge: 4.6.2
lodash.uniq: 4.5.0
@@ -10885,23 +11185,23 @@ snapshots:
'@types/react': 18.3.12
react: 18.3.1
- '@microsoft/[email protected](@types/[email protected])':
+ '@microsoft/[email protected](@types/[email protected])':
dependencies:
'@microsoft/tsdoc': 0.15.0
'@microsoft/tsdoc-config': 0.17.0
- '@rushstack/node-core-library': 5.9.0(@types/[email protected])
+ '@rushstack/node-core-library': 5.9.0(@types/[email protected])
transitivePeerDependencies:
- '@types/node'
- '@microsoft/[email protected](@types/[email protected])':
+ '@microsoft/[email protected](@types/[email protected])':
dependencies:
- '@microsoft/api-extractor-model': 7.29.8(@types/[email protected])
+ '@microsoft/api-extractor-model': 7.29.8(@types/[email protected])
'@microsoft/tsdoc': 0.15.0
'@microsoft/tsdoc-config': 0.17.0
- '@rushstack/node-core-library': 5.9.0(@types/[email protected])
+ '@rushstack/node-core-library': 5.9.0(@types/[email protected])
'@rushstack/rig-package': 0.5.3
- '@rushstack/terminal': 0.14.2(@types/[email protected])
- '@rushstack/ts-command-line': 4.23.0(@types/[email protected])
+ '@rushstack/terminal': 0.14.2(@types/[email protected])
+ '@rushstack/ts-command-line': 4.23.0(@types/[email protected])
lodash: 4.17.21
minimatch: 3.0.8
resolve: 1.22.8
@@ -11162,7 +11462,7 @@ snapshots:
'@rollup/[email protected]':
optional: true
- '@rushstack/[email protected](@types/[email protected])':
+ '@rushstack/[email protected](@types/[email protected])':
dependencies:
ajv: 8.13.0
ajv-draft-04: 1.0.0([email protected])
@@ -11173,23 +11473,23 @@ snapshots:
resolve: 1.22.8
semver: 7.5.4
optionalDependencies:
- '@types/node': 22.10.0
+ '@types/node': 22.10.1
'@rushstack/[email protected]':
dependencies:
resolve: 1.22.8
strip-json-comments: 3.1.1
- '@rushstack/[email protected](@types/[email protected])':
+ '@rushstack/[email protected](@types/[email protected])':
dependencies:
- '@rushstack/node-core-library': 5.9.0(@types/[email protected])
+ '@rushstack/node-core-library': 5.9.0(@types/[email protected])
supports-color: 8.1.1
optionalDependencies:
- '@types/node': 22.10.0
+ '@types/node': 22.10.1
- '@rushstack/[email protected](@types/[email protected])':
+ '@rushstack/[email protected](@types/[email protected])':
dependencies:
- '@rushstack/terminal': 0.14.2(@types/[email protected])
+ '@rushstack/terminal': 0.14.2(@types/[email protected])
'@types/argparse': 1.0.38
argparse: 1.0.10
string-argv: 0.3.2
@@ -11320,7 +11620,7 @@ snapshots:
dependencies:
'@storybook/core-webpack': 8.4.5([email protected]([email protected]))
- '@types/node': 22.10.0
+ '@types/node': 22.10.1
'@types/semver': 7.5.8
browser-assert: 1.2.1
case-sensitive-paths-webpack-plugin: 2.4.0
@@ -11360,7 +11660,7 @@ snapshots:
dependencies:
- '@types/node': 22.10.0
+ '@types/node': 22.10.1
storybook: 8.4.5([email protected])
ts-dedent: 2.2.0
@@ -11417,7 +11717,7 @@ snapshots:
'@storybook/core-webpack': 8.4.5([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/node': 22.10.0
+ '@types/node': 22.10.1
'@types/semver': 7.5.8
find-up: 5.0.0
magic-string: 0.30.14
@@ -11655,7 +11955,7 @@ snapshots:
dependencies:
- '@types/node': 22.10.0
+ '@types/node': 22.10.1
'@types/[email protected]': {}
@@ -11697,7 +11997,7 @@ snapshots:
dependencies:
- '@types/node': 22.8.7
+ '@types/node': 22.10.1
'@types/[email protected]': {}
@@ -11723,6 +12023,10 @@ snapshots:
dependencies:
undici-types: 6.20.0
+ '@types/[email protected]':
+ dependencies:
+ undici-types: 6.20.0
+
dependencies:
undici-types: 6.19.8
@@ -11770,7 +12074,7 @@ snapshots:
dependencies:
- '@types/node': 22.10.0
+ '@types/node': 22.10.1
'@types/[email protected]': {}
@@ -11872,23 +12176,23 @@ snapshots:
'@grpc/grpc-js': 1.10.9
rxjs: 7.8.1
dependencies:
'@babel/core': 7.26.0
'@babel/plugin-transform-react-jsx-self': 7.25.9(@babel/[email protected])
'@babel/plugin-transform-react-jsx-source': 7.25.9(@babel/[email protected])
'@types/babel__core': 7.20.5
react-refresh: 0.14.2
transitivePeerDependencies:
- supports-color
dependencies:
vue: 3.4.38([email protected])
dependencies:
'@istanbuljs/schema': 0.1.3
debug: 4.3.7
@@ -11900,17 +12204,17 @@ snapshots:
magicast: 0.3.5
test-exclude: 7.0.1
tinyrainbow: 1.2.0
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/utils': 8.16.0([email protected]([email protected]))([email protected])
eslint: 9.15.0([email protected])
optionalDependencies:
typescript: 5.7.2
'@vitest/[email protected]':
dependencies:
@@ -11926,13 +12230,13 @@ snapshots:
chai: 5.1.2
tinyrainbow: 1.2.0
dependencies:
'@vitest/spy': 2.1.6
estree-walker: 3.0.3
magic-string: 0.30.14
optionalDependencies:
'@vitest/[email protected]':
dependencies:
@@ -12021,7 +12325,7 @@ snapshots:
'@vue/shared': 3.4.38
estree-walker: 2.0.2
magic-string: 0.30.12
- postcss: 8.4.47
+ postcss: 8.4.49
source-map-js: 1.2.1
@@ -12296,6 +12600,8 @@ snapshots:
+
dependencies:
normalize-path: 3.0.0
@@ -12513,6 +12819,8 @@ snapshots:
pascal-case: 3.1.2
tslib: 2.8.1
+
@@ -12677,6 +12985,8 @@ snapshots:
+
@@ -12841,9 +13151,9 @@ snapshots:
dependencies:
browserslist: 4.24.2
dependencies:
- '@types/node': 22.10.0
+ '@types/node': 22.10.1
cosmiconfig: 9.0.0([email protected])
jiti: 1.21.6
typescript: 5.7.2
@@ -12894,12 +13204,12 @@ snapshots:
dependencies:
- icss-utils: 5.1.0([email protected])
- postcss: 8.4.40
- postcss-modules-extract-imports: 3.1.0([email protected])
- postcss-modules-local-by-default: 4.0.5([email protected])
- postcss-modules-scope: 3.2.0([email protected])
- postcss-modules-values: 4.0.0([email protected])
+ icss-utils: 5.1.0([email protected])
+ postcss: 8.4.49
+ postcss-modules-extract-imports: 3.1.0([email protected])
+ postcss-modules-local-by-default: 4.0.5([email protected])
+ postcss-modules-scope: 3.2.0([email protected])
+ postcss-modules-values: 4.0.0([email protected])
postcss-value-parser: 4.2.0
semver: 7.6.3
optionalDependencies:
@@ -13095,10 +13405,14 @@ snapshots:
dependencies:
dequal: 2.0.3
+
dependencies:
path-type: 4.0.0
+
dependencies:
'@react-dnd/asap': 5.0.2
@@ -13382,8 +13696,8 @@ snapshots:
'@types/sass': 1.45.0
'@types/stylus': 0.48.42
glob: 10.4.1
- postcss: 8.4.38
- postcss-modules: 6.0.0([email protected])
+ postcss: 8.4.49
+ postcss-modules: 6.0.0([email protected])
optional: true
@@ -13804,6 +14118,11 @@ snapshots:
string.prototype.matchall: 4.0.11
string.prototype.repeat: 1.0.0
+ dependencies:
+ eslint: 9.15.0([email protected])
+ tailwindcss: 3.4.15
+
dependencies:
'@eslint-community/eslint-utils': 4.4.1([email protected]([email protected]))
@@ -14452,14 +14771,6 @@ snapshots:
dependencies:
safer-buffer: 2.1.2
- dependencies:
- postcss: 8.4.38
-
- dependencies:
- postcss: 8.4.40
-
dependencies:
postcss: 8.4.49
@@ -14828,7 +15139,7 @@ snapshots:
dependencies:
- '@types/node': 22.10.0
+ '@types/node': 22.10.1
merge-stream: 2.0.0
supports-color: 8.1.1
@@ -14968,6 +15279,8 @@ snapshots:
dependencies:
immediate: 3.0.6
+
@@ -15557,6 +15870,12 @@ snapshots:
+ dependencies:
+ any-promise: 1.3.0
+ object-assign: 4.1.1
+ thenify-all: 1.6.0
+
@@ -15627,6 +15946,8 @@ snapshots:
+
@@ -15903,8 +16224,6 @@ snapshots:
-
@@ -15913,9 +16232,13 @@ snapshots:
+
optional: true
+
dependencies:
find-up: 4.1.0
@@ -15948,31 +16271,39 @@ snapshots:
dependencies:
- postcss: 8.4.38
+ postcss: 8.4.49
+ postcss-value-parser: 4.2.0
+ read-cache: 1.0.0
+ resolve: 1.22.8
dependencies:
- postcss: 8.4.40
+ camelcase-css: 2.0.1
+ postcss: 8.4.49
dependencies:
+ lilconfig: 3.1.2
+ yaml: 2.6.1
+ optionalDependencies:
postcss: 8.4.49
dependencies:
- icss-utils: 5.1.0([email protected])
- postcss: 8.4.38
- postcss-selector-parser: 6.1.0
- postcss-value-parser: 4.2.0
+ cosmiconfig: 9.0.0([email protected])
+ jiti: 1.21.6
+ postcss: 8.4.49
+ semver: 7.6.3
+ optionalDependencies:
+ webpack: 5.94.0(@swc/[email protected])([email protected])
+ transitivePeerDependencies:
+ - typescript
dependencies:
- icss-utils: 5.1.0([email protected])
- postcss: 8.4.40
- postcss-selector-parser: 6.1.0
- postcss-value-parser: 4.2.0
+ postcss: 8.4.49
dependencies:
@@ -15981,48 +16312,33 @@ snapshots:
postcss-selector-parser: 6.1.0
postcss-value-parser: 4.2.0
- dependencies:
- postcss: 8.4.38
- postcss-selector-parser: 6.1.0
-
- dependencies:
- postcss: 8.4.40
- postcss-selector-parser: 6.1.0
-
dependencies:
postcss: 8.4.49
postcss-selector-parser: 6.1.0
- dependencies:
- icss-utils: 5.1.0([email protected])
- postcss: 8.4.38
-
- dependencies:
- icss-utils: 5.1.0([email protected])
- postcss: 8.4.40
-
dependencies:
icss-utils: 5.1.0([email protected])
postcss: 8.4.49
dependencies:
generic-names: 4.0.0
- icss-utils: 5.1.0([email protected])
+ icss-utils: 5.1.0([email protected])
lodash.camelcase: 4.3.0
- postcss: 8.4.38
- postcss-modules-extract-imports: 3.1.0([email protected])
- postcss-modules-local-by-default: 4.0.5([email protected])
- postcss-modules-scope: 3.2.0([email protected])
- postcss-modules-values: 4.0.0([email protected])
+ postcss: 8.4.49
+ postcss-modules-extract-imports: 3.1.0([email protected])
+ postcss-modules-local-by-default: 4.0.5([email protected])
+ postcss-modules-scope: 3.2.0([email protected])
+ postcss-modules-values: 4.0.0([email protected])
string-hash: 1.1.3
+ dependencies:
+ postcss: 8.4.49
+ postcss-selector-parser: 6.1.2
+
dependencies:
cssesc: 3.0.0
@@ -16035,24 +16351,6 @@ snapshots:
- dependencies:
- nanoid: 3.3.8
- picocolors: 1.0.1
- source-map-js: 1.2.0
-
- dependencies:
- nanoid: 3.3.8
- picocolors: 1.0.1
- source-map-js: 1.2.0
-
- dependencies:
- nanoid: 3.3.8
- picocolors: 1.1.1
- source-map-js: 1.2.1
-
dependencies:
nanoid: 3.3.8
@@ -16102,7 +16400,7 @@ snapshots:
'@protobufjs/path': 1.1.2
'@protobufjs/pool': 1.1.0
'@protobufjs/utf8': 1.1.0
- '@types/node': 22.10.0
+ '@types/node': 22.10.1
long: 5.2.3
@@ -16340,26 +16638,26 @@ snapshots:
dependencies:
dnd-core: 16.0.1
dependencies:
dnd-core: 16.0.1
dnd-multi-backend: 8.0.3([email protected])
react: 18.3.1
- react-dnd: 16.0.1(@types/[email protected])(@types/[email protected])([email protected])
+ react-dnd: 16.0.1(@types/[email protected])(@types/[email protected])([email protected])
react-dom: 18.3.1([email protected])
dependencies:
react: 18.3.1
- react-dnd: 16.0.1(@types/[email protected])(@types/[email protected])([email protected])
+ react-dnd: 16.0.1(@types/[email protected])(@types/[email protected])([email protected])
dependencies:
'@react-dnd/invariant': 4.0.2
dnd-core: 16.0.1
dependencies:
'@react-dnd/invariant': 4.0.2
'@react-dnd/shallowequal': 4.0.2
@@ -16368,7 +16666,7 @@ snapshots:
hoist-non-react-statics: 3.3.2
react: 18.3.1
optionalDependencies:
- '@types/node': 22.10.0
+ '@types/node': 22.10.1
'@types/react': 18.3.12
@@ -16445,7 +16743,7 @@ snapshots:
react-dom: 18.3.1([email protected])
substyle: 9.4.1([email protected])
dependencies:
classnames: 2.5.1
immutability-helper: 3.1.1
@@ -16453,9 +16751,9 @@ snapshots:
prop-types: 15.8.1
rdndmb-html5-to-touch: 8.0.3([email protected])
react: 18.3.1
- react-dnd: 16.0.1(@types/[email protected])(@types/[email protected])([email protected])
+ react-dnd: 16.0.1(@types/[email protected])(@types/[email protected])([email protected])
react-dnd-html5-backend: 16.0.1
react-dnd-touch-backend: 16.0.1
uuid: 9.0.1
transitivePeerDependencies:
@@ -16488,6 +16786,10 @@ snapshots:
dependencies:
loose-envify: 1.4.0
+ dependencies:
+ pify: 2.3.0
+
dependencies:
find-up-simple: 1.0.0
@@ -16915,8 +17217,6 @@ snapshots:
dependencies:
is-plain-obj: 4.1.0
-
@@ -17102,6 +17402,16 @@ snapshots:
invariant: 2.2.4
react: 18.3.1
+ dependencies:
+ '@jridgewell/gen-mapping': 0.3.5
+ commander: 4.1.1
+ glob: 10.4.5
+ lines-and-columns: 1.2.4
+ mz: 2.7.0
+ pirates: 4.0.6
+ ts-interface-checker: 0.1.13
+
dependencies:
has-flag: 3.0.0
@@ -17143,6 +17453,33 @@ snapshots:
'@pkgr/core': 0.1.1
tslib: 2.8.1
+ dependencies:
+ '@alloc/quick-lru': 5.2.0
+ arg: 5.0.2
+ chokidar: 3.6.0
+ didyoumean: 1.2.2
+ dlv: 1.1.3
+ fast-glob: 3.3.2
+ glob-parent: 6.0.2
+ is-glob: 4.0.3
+ jiti: 1.21.6
+ lilconfig: 2.1.0
+ micromatch: 4.0.8
+ normalize-path: 3.0.0
+ object-hash: 3.0.0
+ picocolors: 1.1.1
+ postcss: 8.4.49
+ postcss-import: 15.1.0([email protected])
+ postcss-js: 4.0.1([email protected])
+ postcss-load-config: 4.0.2([email protected])
+ postcss-nested: 6.2.0([email protected])
+ postcss-selector-parser: 6.1.2
+ resolve: 1.22.8
+ sucrase: 3.35.0
+ transitivePeerDependencies:
+ - ts-node
+
@@ -17172,6 +17509,14 @@ snapshots:
+ dependencies:
+ thenify: 3.3.1
+
+ dependencies:
+ any-promise: 1.3.0
+
@@ -17229,6 +17574,8 @@ snapshots:
+
@@ -17480,13 +17827,13 @@ snapshots:
dependencies:
cac: 6.7.14
debug: 4.3.7
es-module-lexer: 1.5.4
pathe: 1.1.2
transitivePeerDependencies:
- '@types/node'
- jiti
@@ -17501,9 +17848,9 @@ snapshots:
- tsx
- yaml
dependencies:
- '@microsoft/api-extractor': 7.47.11(@types/[email protected])
+ '@microsoft/api-extractor': 7.47.11(@types/[email protected])
'@rollup/pluginutils': 5.1.3([email protected])
'@volar/typescript': 2.4.8
'@vue/language-core': 2.1.6([email protected])
@@ -17514,7 +17861,7 @@ snapshots:
magic-string: 0.30.12
typescript: 5.7.2
optionalDependencies:
transitivePeerDependencies:
- '@types/node'
- rollup
@@ -17526,13 +17873,13 @@ snapshots:
'@types/node': 14.18.63
fs-extra: 11.2.0
dependencies:
esbuild: 0.24.0
postcss: 8.4.49
rollup: 4.27.4
optionalDependencies:
- '@types/node': 22.10.0
+ '@types/node': 22.10.1
fsevents: 2.3.3
jiti: 1.21.6
less: 4.2.1
@@ -17541,10 +17888,10 @@ snapshots:
tsx: 4.19.2
yaml: 2.6.1
dependencies:
'@vitest/expect': 2.1.6
'@vitest/pretty-format': 2.1.6
'@vitest/runner': 2.1.6
'@vitest/snapshot': 2.1.6
@@ -17560,11 +17907,11 @@ snapshots:
tinyexec: 0.3.1
tinypool: 1.0.2
tinyrainbow: 1.2.0
why-is-node-running: 2.3.0
optionalDependencies:
- '@types/node': 22.10.0
+ '@types/node': 22.10.1
happy-dom: 15.0.0
jsdom: 24.1.1
transitivePeerDependencies: