Skip to content

Commit b92812b

Browse files
authored
Merge pull request #387 from datalayer/feat/lexical/tailwind
(feat) Introduce Tailwind in the Lexical package
2 parents da4de09 + a7c403f commit b92812b

File tree

124 files changed

+267
-199
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+267
-199
lines changed

packages/lexical/package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@datalayer/jupyter-lexical",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Jupyter UI for Lexical",
55
"license": "MIT",
66
"main": "lib/index.js",
@@ -11,8 +11,6 @@
1111
],
1212
"keywords": [
1313
"jupyter",
14-
"jupyterlab",
15-
"jupyterlab-extension",
1614
"react",
1715
"lexical"
1816
],
@@ -42,6 +40,7 @@
4240
"clean:labextension": "rimraf datalayer/labextension",
4341
"clean:lib": "rimraf lib tsconfig.tsbuildinfo",
4442
"clean:lintcache": "rimraf .eslintcache .stylelintcache",
43+
"dev": "run-p -c 'start:*'",
4544
"eslint": "jlpm eslint:check --fix",
4645
"eslint:check": "eslint . --cache --ext .ts,.tsx",
4746
"install:extension": "jlpm build",
@@ -78,9 +77,11 @@
7877
"@lexical/table": "^0.33.1",
7978
"@lexical/utils": "^0.33.1",
8079
"@lexical/yjs": "^0.33.1",
80+
"autoprefixer": "^10.4.21",
8181
"katex": "^0.16.21",
8282
"lexical": "^0.33.1",
8383
"lodash-es": "^4.17.21",
84+
"postcss": "^8.5.6",
8485
"react": "18.3.1",
8586
"react-dom": "18.3.1",
8687
"react-json-tree": "^0.19.0",
@@ -93,7 +94,7 @@
9394
"@babel/preset-env": "^7.20.2",
9495
"@babel/preset-react": "^7.18.6",
9596
"@babel/preset-typescript": "^7.21.0",
96-
"@jupyterlab/builder": "^4.0.0",
97+
"@tailwindcss/postcss": "^4.1.11",
9798
"@types/codemirror": "^5.60.4",
9899
"@types/katex": "^0.14.0",
99100
"@types/lodash-es": "^4.17.6",
@@ -137,6 +138,7 @@
137138
"stylelint-config-standard": "^24.0.0",
138139
"stylelint-prettier": "^2.0.0",
139140
"svg-url-loader": "^7.1.1",
141+
"tailwindcss": "^4.1.11",
140142
"typedoc": "^0.28.2",
141143
"typescript": "^5.8.3",
142144
"url-loader": "^3.0.0",

packages/lexical/postcss.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
'@tailwindcss/postcss': {},
4+
autoprefixer: {},
5+
},
6+
};

packages/lexical/src/components/Button.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
import {ReactNode} from 'react';
88
import joinClasses from '../utils/join';
99

10-
import './../../style/lexical/Button.css';
11-
1210
export const Button = ({
1311
'data-test-id': dataTestId,
1412
children,
@@ -31,8 +29,8 @@ export const Button = ({
3129
disabled={disabled}
3230
className={joinClasses(
3331
'Button__root',
34-
disabled && 'Button__disabled',
3532
small && 'Button__small',
33+
disabled && 'Button__disabled',
3634
className,
3735
)}
3836
onClick={onClick}

packages/lexical/src/components/ContentEditable.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
import {ContentEditable} from '@lexical/react/LexicalContentEditable';
88

9-
import './../../style/lexical/ContentEditable.css';
10-
119
export const LexicalContentEditable = ({
1210
className,
1311
}: {

packages/lexical/src/components/Dialog.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* MIT License
55
*/
66

7-
import './../../style/lexical/Dialog.css';
8-
97
import {ReactNode} from 'react';
108

119
type Props = Readonly<{

packages/lexical/src/components/EquationEditor.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* MIT License
55
*/
66

7-
import './../../style/lexical/EquationEditor.css';
87

98
import {ChangeEvent, RefObject} from 'react';
109

packages/lexical/src/components/FileInput.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* MIT License
55
*/
66

7-
import './../../style/lexical/Input.css';
87

98
type Props = Readonly<{
109
'data-test-id'?: string;

packages/lexical/src/components/KatexEquationAlterer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {useCallback, useState} from 'react';
88
import Button from '../components/Button';
99
import KatexRenderer from './KatexRenderer';
1010

11-
import './../../style/lexical/KatexEquationAlterer.css';
1211

1312
type Props = {
1413
initialEquation?: string;

packages/lexical/src/components/Modal.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
import {ReactNode, useEffect, useRef} from 'react';
88
import {createPortal} from 'react-dom';
99

10-
import './../../style/lexical/Modal.css';
11-
1210
function PortalImpl({
1311
onClose,
1412
children,

packages/lexical/src/components/Placeholder.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import {ReactNode} from 'react';
88

9-
import './../../style/lexical/Placeholder.css';
109

1110
export const Placeholder = ({
1211
children,

0 commit comments

Comments
 (0)