File tree Expand file tree Collapse file tree 6 files changed +7
-38
lines changed
routes/docs/headless/(components)/alert
kit-tailwind/src/components/alert Expand file tree Collapse file tree 6 files changed +7
-38
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export const RouterHead = component$(() => {
13
13
< >
14
14
< title > { head . title } </ title >
15
15
16
- < link rel = "canonical" href = { loc . href } />
16
+ < link rel = "canonical" href = { loc . url . href } />
17
17
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" />
18
18
< link rel = "icon" type = "image/svg+xml" href = "/favicon.svg" />
19
19
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export const SelectTheme = component$(() => {
35
35
openThemeSignal . value = false ;
36
36
const oldTheme = appState . theme ;
37
37
appState . theme = theme ;
38
- if ( location . pathname !== '/docs/' ) {
38
+ if ( location . url . pathname !== '/docs/' ) {
39
39
window . location . pathname = window . location . pathname . replace (
40
40
oldTheme . toLowerCase ( ) ,
41
41
theme . toLowerCase ( )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import { component$ , Slot } from '@builder.io/qwik' ;
2
- import {
3
- Alert as HeadlessAlert ,
4
- AlertProps as HeadlessAlertProps ,
5
- } from '@qwik-ui/primitives' ;
2
+
6
3
import { clsq } from '@qwik-ui/shared' ;
7
4
import { Button , ButtonProps } from '../button/button' ;
8
5
import { daisyConfig } from './daisy.config' ;
9
6
10
- export interface TailwindAlertProps extends HeadlessAlertProps {
7
+ export interface TailwindAlertProps {
8
+ class ?: string ;
11
9
variant ?: TailwindAlertVariants ;
12
10
size ?: TailwindAlertSizes ;
13
11
rounding ?: TailwindAlertRoundings ;
@@ -35,7 +33,7 @@ export const Alert = component$((props: TailwindAlertProps) => {
35
33
const { variants, sizes, radius } = daisyConfig ;
36
34
37
35
return (
38
- < HeadlessAlert
36
+ < div
39
37
{ ...rest }
40
38
class = { clsq (
41
39
variants [ variant ] ,
@@ -57,6 +55,6 @@ export const Alert = component$((props: TailwindAlertProps) => {
57
55
{ action . label }
58
56
</ Button >
59
57
) : null }
60
- </ HeadlessAlert >
58
+ </ div >
61
59
) ;
62
60
} ) ;
Original file line number Diff line number Diff line change 1
- export * from './lib/alert/alert' ;
2
1
export * from './lib/button/button' ;
3
2
export * from './lib/progress/progress' ;
4
3
export * from './lib/radio/radio' ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments