Skip to content

Commit 0b20d97

Browse files
fix(everything): fix 1.3 craziness
1 parent 9354e2b commit 0b20d97

File tree

28 files changed

+50
-60
lines changed

28 files changed

+50
-60
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
{
77
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
88
"rules": {
9+
"qwik/no-use-visible-task": ["off"],
910
"@nx/enforce-module-boundaries": [
1011
"error",
1112
{

apps/website/src/components/highlight/highlight.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
import { OmitSignalClass } from '@qwik-ui/utils';
99
import { CodeCopy } from '../code-copy/code-copy';
1010

11-
export type HighlightProps = OmitSignalClass<QwikIntrinsicElements['pre']> & {
11+
export type HighlightProps = OmitSignalClass<QwikIntrinsicElements['div']> & {
1212
code: string;
1313
copyCodeClass?: ClassList;
1414
language?: 'tsx' | 'html' | 'css';
@@ -29,6 +29,7 @@ export const Highlight = component$(
2929

3030
useVisibleTask$(
3131
async function createHighlightedCode() {
32+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
3233
const highlighter = await (window as any).shikiji;
3334
let modifiedCode: string = code;
3435

apps/website/src/components/mdx-components/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const components: Record<string, any> = {
1515
<p
1616
{...props}
1717
class={[
18-
' mb-6',
18+
'mb-6 last:mb-0',
1919
(props.class as Signal<string>)?.value ?? (props.class as string),
2020
]}
2121
>
@@ -127,7 +127,7 @@ export const components: Record<string, any> = {
127127
}
128128
>(({ __rawString__, ...props }) => {
129129
return (
130-
<div class="code-example relative mx-6 max-h-[31.25rem] rounded-xl bg-slate-900 lg:mx-8">
130+
<div class="code-example relative -mx-6 max-h-[31.25rem] rounded-xl bg-slate-900 lg:-mx-8">
131131
<CodeCopy
132132
class={[
133133
'absolute right-4 top-4 border-2 text-slate-50 hover:bg-slate-800 hover:text-slate-50',

apps/website/src/components/navigation-docs/navigation-docs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const DocsNavigation = component$(({ linksGroups }: DocsNavigationProps)
3030
rounded-lg hover:bg-[var(--qwik-light-blue)] dark:hover:bg-[var(--qwik-dark-purple)]`;
3131
return (
3232
<nav
33-
class={`fixed inset-0 top-20 z-10 flex-col gap-4 overflow-y-auto border-r-[1px] pb-6 [grid-area:nav] lg:w-80
33+
class={`bg-background fixed inset-0 top-20 z-10 flex-col gap-4 overflow-y-auto border-r-[1px] pb-6 [grid-area:nav] lg:w-80
3434
${rootStore.isSidebarOpened ? 'w-100 flex' : 'hidden lg:flex'} `}
3535
>
3636
<ul class="show mt-8 flex flex-col gap-2 pl-12 lg:hidden">

apps/website/src/components/note/note.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const Note = component$<NoteProps>(({ status, ...props }) => {
4646
<aside
4747
class={`${getBackgroundByStatus(
4848
status ?? NoteStatus.Info,
49-
)} note-link relative mx-[-24px] px-5 py-4 lg:mx-[-32px] lg:px-8 lg:pt-6`}
49+
)} note-link relative mx-[-24px] px-5 py-4 lg:mx-[-32px] lg:px-8 lg:py-6 `}
5050
>
5151
<div class="absolute left-[-17.5px] top-[-17.5px] hidden h-8 w-8 rounded-full bg-white dark:bg-slate-900 lg:block">
5252
<div class="flex h-8 w-8 items-center justify-center ">

apps/website/src/routes/docs/fluffy/(getting-started)/introduction/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ The Fluffy Kit offers a powerful solution for developers looking to create visua
1818

1919
The Headless Kit is designed to work hand-in-hand with the Qwik framework. This means that, as a developer, you can enjoy the performance benefits and SEO advantages of Qwik while having a beautiful, consistent design out of the box. It's the perfect combination: the cutting-edge technology of Qwik, paired with the modern design aesthetics of Tailwind CSS.
2020

21-
<image src={FluffyCreatureScreen} />;
21+
<image src={FluffyCreatureScreen} />

apps/website/src/routes/docs/fluffy/pagination/_index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { component$, useSignal } from '@builder.io/qwik';
22
import { Toggle } from '@qwik-ui/tailwind';
33

44
export default component$(() => {
5-
const page = useSignal(5);
5+
// const page = useSignal(5);
66
const pages = useSignal(10);
77

88
const showFirstButton = useSignal(true);
@@ -65,7 +65,7 @@ export default component$(() => {
6565
}}
6666
value={pages.value}
6767
onChange$={(e) => {
68-
pages.value = Number(e.target.value);
68+
pages.value = Number((e.target as HTMLInputElement).value);
6969
}}
7070
/>
7171
</label>
@@ -81,7 +81,7 @@ export default component$(() => {
8181
}}
8282
value={siblingCount.value}
8383
onChange$={(e) => {
84-
siblingCount.value = Number(e.target.value);
84+
siblingCount.value = Number((e.target as HTMLInputElement).value);
8585
}}
8686
/>
8787
</label>
@@ -97,7 +97,7 @@ export default component$(() => {
9797
}}
9898
value={boundaryCount.value}
9999
onChange$={(e) => {
100-
boundaryCount.value = Number(e.target.value);
100+
boundaryCount.value = Number((e.target as HTMLInputElement).value);
101101
}}
102102
/>
103103
</label>

apps/website/src/routes/docs/headless/checkbox/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default component$(() => {
1616
id="test"
1717
name="test"
1818
value="test"
19-
onChange={$(() => console.log('clicked'))}
19+
onChange$={$(() => console.log('clicked'))}
2020
class="checkbox-secondary checkbox-margin-right"
2121
/>
2222
test

apps/website/src/routes/docs/headless/pagination/examples/interactive.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { component$, useSignal, Slot, useStylesScoped$ } from '@builder.io/qwik';
1+
import { component$, useSignal, useStylesScoped$ } from '@builder.io/qwik';
22
import { Pagination } from '@qwik-ui/headless';
33
import { Toggle } from '@qwik-ui/tailwind';
44
import styles from '../index.css?inline';
@@ -51,7 +51,7 @@ export default component$(() => {
5151
}}
5252
value={totalPages.value}
5353
onChange$={(e) => {
54-
totalPages.value = Number(e.target.value);
54+
totalPages.value = Number((e.target as HTMLInputElement).value);
5555
}}
5656
/>
5757
</label>
@@ -67,7 +67,7 @@ export default component$(() => {
6767
}}
6868
value={siblingCount.value}
6969
onChange$={(e) => {
70-
siblingCount.value = Number(e.target.value);
70+
siblingCount.value = Number((e.target as HTMLInputElement).value);
7171
}}
7272
/>
7373
</label>

apps/website/src/routes/docs/headless/radio/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@ export default component$(() => {
2222
value="first"
2323
checked
2424
onChange$={(e) => {
25-
radioValue.value = e.target.value;
25+
radioValue.value = (e.target as HTMLInputElement).value;
2626
}}
2727
/>
2828
<Radio
2929
name="two"
3030
value="second"
3131
onChange$={(e) => {
32-
radioValue.value = e.target.value;
32+
radioValue.value = (e.target as HTMLInputElement).value;
3333
}}
3434
/>
3535
<Radio
3636
name="two"
3737
value="third"
3838
onChange$={(e) => {
39-
radioValue.value = e.target.value;
39+
radioValue.value = (e.target as HTMLInputElement).value;
4040
}}
4141
/>
4242
</div>

0 commit comments

Comments
 (0)