Skip to content

Commit 173294e

Browse files
committed
Update dependency tailwindcss to v3.3.3
refs #676 - required for the `eslint-plugin-tailwindcss` bump to work correctly - ran `yarn lint:js --fix` - CSS ordering changed to be more deterministic, see tailwindlabs/tailwindcss#10672
1 parent ca4da35 commit 173294e

Some content is hidden

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

41 files changed

+175
-114
lines changed

packages/koenig-lexical/.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ module.exports = {
4747
'react/prop-types': 2
4848
}
4949
}]
50-
};
50+
};

packages/koenig-lexical/demo/DemoApp.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ function DemoComposer({editorType, isMultiplayer, setWordCount}) {
240240
}
241241
<DarkModeToggle darkMode={darkMode} toggleDarkMode={toggleDarkMode} />
242242
<div ref={containerRef} className="h-full overflow-auto overflow-x-hidden" onClick={focusEditor}>
243-
<div className="mx-auto max-w-[740px] py-[15vmin] px-6 lg:px-0">
243+
<div className="mx-auto max-w-[740px] px-6 py-[15vmin] lg:px-0">
244244
{showTitle
245245
? <TitleTextBox ref={titleRef} editorAPI={editorAPI} setTitle={setTitle} title={title} />
246246
: null

packages/koenig-lexical/demo/HtmlOutputDemo.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function HtmlOutputDemo() {
8989
>
9090
<div className="relative h-full grow">
9191
<div ref={containerRef} className="h-full overflow-auto" onClick={focusEditor}>
92-
<div className="mx-auto max-w-[740px] py-[15vmin] px-6 lg:px-0">
92+
<div className="mx-auto max-w-[740px] px-6 py-[15vmin] lg:px-0">
9393
<KoenigComposableEditor
9494
cursorDidExitAtTop={focusTitle}
9595
registerAPI={setEditorAPI}

packages/koenig-lexical/demo/RestrictedContentDemo.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function RestrictedContentDemo() {
9595
>
9696
<div className="relative h-full grow">
9797
<div ref={containerRef} className="h-full overflow-auto" onClick={focusEditor}>
98-
<div className="mx-auto max-w-[740px] py-[15vmin] px-6 lg:px-0">
98+
<div className="mx-auto max-w-[740px] px-6 py-[15vmin] lg:px-0">
9999
<KoenigComposableEditor
100100
cursorDidExitAtTop={focusTitle}
101101
registerAPI={setEditorAPI}

packages/koenig-lexical/demo/components/FloatingButton.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22

33
const FloatingButton = ({isOpen, ...props}) => {
44
return (
5-
<div className={`fixed bottom-4 right-6 z-20 rounded py-1 px-2 font-mono text-sm tracking-tight text-grey-600 transition-all duration-200 ease-in-out ${isOpen ? 'bg-transparent' : 'bg-white'}`}>
5+
<div className={`fixed bottom-4 right-6 z-20 rounded px-2 py-1 font-mono text-sm tracking-tight text-grey-600 transition-all duration-200 ease-in-out ${isOpen ? 'bg-transparent' : 'bg-white'}`}>
66
<button className="cursor-pointer" type="button" onClick={() => props.onClick('json')}>
77
JSON output
88
</button>

packages/koenig-lexical/demo/components/InitialContentToggle.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ const InitialContentToggle = ({defaultContent, setTitle, searchParams, setSearch
3333

3434
return (
3535
<>
36-
<button className="absolute top-4 right-6 z-20 block h-[22px] w-[42px] cursor-pointer rounded-full bg-black transition-all ease-in-out" type="button" onClick={toggle}>
37-
<EyeOpenIcon className="absolute top-[5px] left-[6px] h-3 w-3 text-white" />
38-
<EyeClosedIcon className="absolute top-[5px] right-[6px] h-3 w-3 text-white" />
36+
<button className="absolute right-6 top-4 z-20 block h-[22px] w-[42px] cursor-pointer rounded-full bg-black transition-all ease-in-out" type="button" onClick={toggle}>
37+
<EyeOpenIcon className="absolute left-[6px] top-[5px] h-3 w-3 text-white" />
38+
<EyeClosedIcon className="absolute right-[6px] top-[5px] h-3 w-3 text-white" />
3939
<div className={`absolute top-[2px] h-[18px] w-[18px] rounded-full bg-white transition-all ease-in-out ${isOn ? 'left-[22px]' : 'left-[2px]'}`}></div>
4040
</button>
4141
</>

packages/koenig-lexical/demo/components/Watermark.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function EditorLink({editorType}) {
1313
const Watermark = ({editorType}) => {
1414
if (!editorType) {
1515
return (
16-
<a className="absolute bottom-4 left-6 z-20 flex items-center rounded bg-white py-1 pr-2 pl-1 font-mono text-sm tracking-tight text-black" href="https://github.com/TryGhost/Koenig/tree/main/packages/koenig-lexical" rel="nofollow ugc noopener noreferrer" target="_blank">
16+
<a className="absolute bottom-4 left-6 z-20 flex items-center rounded bg-white py-1 pl-1 pr-2 font-mono text-sm tracking-tight text-black" href="https://github.com/TryGhost/Koenig/tree/main/packages/koenig-lexical" rel="nofollow ugc noopener noreferrer" target="_blank">
1717
<GhostFavicon className="mr-2 h-6 w-6" />
1818
<span className="pr-1 font-bold tracking-wide">Koenig</span>
1919
editor
@@ -40,7 +40,7 @@ const Watermark = ({editorType}) => {
4040

4141
return (
4242
<>
43-
<div className="group absolute bottom-4 left-6 z-20 flex items-center rounded bg-white py-1 pr-2 pl-1 font-mono text-sm tracking-tight text-black">
43+
<div className="group absolute bottom-4 left-6 z-20 flex items-center rounded bg-white py-1 pl-1 pr-2 font-mono text-sm tracking-tight text-black">
4444
<GhostFavicon className="mr-2 h-6 w-6" />
4545
<span className="pr-1 font-bold tracking-wide">Koenig</span>
4646
<span className="group-hover:font-bold">{editorType}

packages/koenig-lexical/demo/components/WordCount.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const WordCount = ({wordCount}) => {
22
return (
3-
<div className="absolute top-4 left-6 z-20 block cursor-pointer rounded bg-white py-1 px-2 font-mono text-sm tracking-tight text-grey-600 dark:bg-transparent">
3+
<div className="absolute left-6 top-4 z-20 block cursor-pointer rounded bg-white px-2 py-1 font-mono text-sm tracking-tight text-grey-600 dark:bg-transparent">
44
<span data-testid="word-count">{wordCount}</span> words
55
</div>
66
);

packages/koenig-lexical/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
"react-router-dom": "6.14.2",
121121
"storybook": "^7.0.12",
122122
"stylelint": "^15.6.1",
123-
"tailwindcss": "3.2.7",
123+
"tailwindcss": "3.3.3",
124124
"typescript": "5.1.6",
125125
"vite": "4.3.8",
126126
"vite-plugin-svgr": "^3.2.0",

packages/koenig-lexical/src/components/KoenigCaptionEditor.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {useLexicalComposerContext} from '@lexical/react/LexicalComposerContext';
77

88
const Placeholder = ({text = 'Type here'}) => {
99
return (
10-
<div className="pointer-events-none absolute top-0 left-0 !m-0 min-w-full cursor-text font-sans text-sm font-normal tracking-wide text-grey-500 dark:text-grey-800">
10+
<div className="pointer-events-none absolute left-0 top-0 !m-0 min-w-full cursor-text font-sans text-sm font-normal tracking-wide text-grey-500 dark:text-grey-800">
1111
{text}
1212
</div>
1313
);

0 commit comments

Comments
 (0)