Skip to content

Commit f2cb34e

Browse files
committed
chore: removed alert and fixed types
1 parent 0e008d9 commit f2cb34e

File tree

6 files changed

+7
-38
lines changed

6 files changed

+7
-38
lines changed

apps/website/src/components/router-head/router-head.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const RouterHead = component$(() => {
1313
<>
1414
<title>{head.title}</title>
1515

16-
<link rel="canonical" href={loc.href} />
16+
<link rel="canonical" href={loc.url.href} />
1717
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
1818
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
1919

apps/website/src/components/selectTheme/selectTheme.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const SelectTheme = component$(() => {
3535
openThemeSignal.value = false;
3636
const oldTheme = appState.theme;
3737
appState.theme = theme;
38-
if (location.pathname !== '/docs/') {
38+
if (location.url.pathname !== '/docs/') {
3939
window.location.pathname = window.location.pathname.replace(
4040
oldTheme.toLowerCase(),
4141
theme.toLowerCase()

apps/website/src/routes/docs/headless/(components)/alert/index.tsx

Lines changed: 0 additions & 19 deletions
This file was deleted.

packages/kit-tailwind/src/components/alert/alert.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import { component$, Slot } from '@builder.io/qwik';
2-
import {
3-
Alert as HeadlessAlert,
4-
AlertProps as HeadlessAlertProps,
5-
} from '@qwik-ui/primitives';
2+
63
import { clsq } from '@qwik-ui/shared';
74
import { Button, ButtonProps } from '../button/button';
85
import { daisyConfig } from './daisy.config';
96

10-
export interface TailwindAlertProps extends HeadlessAlertProps {
7+
export interface TailwindAlertProps {
8+
class?: string;
119
variant?: TailwindAlertVariants;
1210
size?: TailwindAlertSizes;
1311
rounding?: TailwindAlertRoundings;
@@ -35,7 +33,7 @@ export const Alert = component$((props: TailwindAlertProps) => {
3533
const { variants, sizes, radius } = daisyConfig;
3634

3735
return (
38-
<HeadlessAlert
36+
<div
3937
{...rest}
4038
class={clsq(
4139
variants[variant],
@@ -57,6 +55,6 @@ export const Alert = component$((props: TailwindAlertProps) => {
5755
{action.label}
5856
</Button>
5957
) : null}
60-
</HeadlessAlert>
58+
</div>
6159
);
6260
});

packages/primitives/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
export * from './lib/alert/alert';
21
export * from './lib/button/button';
32
export * from './lib/progress/progress';
43
export * from './lib/radio/radio';

packages/primitives/src/lib/alert/alert.tsx

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)