File tree Expand file tree Collapse file tree 9 files changed +30
-30
lines changed
apps/website/src/routes/docs/headless/checkbox/examples Expand file tree Collapse file tree 9 files changed +30
-30
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export default component$(() => {
9
9
< Checklist . Root ariaLabeledBy = "pizza-toppings" class = "flex flex-col gap-4" >
10
10
< Checkbox . Root
11
11
class = "flex items-center gap-3 border-2 border-black p-2"
12
- checkList = { true }
12
+ checklist = { true }
13
13
>
14
14
< Checklist . Indicator class = "flex h-[25px] w-[25px] items-center justify-center bg-slate-600" >
15
15
< div q :slot = "checkbox" id = "true-img" >
Original file line number Diff line number Diff line change 3
3
CheckboxIndicator ,
4
4
Checkbox ,
5
5
ChecklistIndicator ,
6
- CheckList ,
6
+ Checklist ,
7
7
} from 'packages/kit-headless/src/components/checkbox/index' ;
8
8
// TODO: add logic to handle user passed sigs with trues
9
9
// this test basically ensures that the sig passed to the checklist controlls trumps all its children
@@ -12,10 +12,10 @@ export default component$(() => {
12
12
return (
13
13
< >
14
14
< h3 id = "test123" > Pick a cat</ h3 >
15
- < CheckList class = "flex flex-col gap-3" ariaLabeledBy = "test123" >
15
+ < Checklist class = "flex flex-col gap-3" ariaLabeledBy = "test123" >
16
16
< Checkbox . Root
17
17
class = "flex items-center gap-3 bg-slate-900 text-white"
18
- checkList = { true }
18
+ checklist = { true }
19
19
checkBoxSig = { checklistSig }
20
20
id = "checklist"
21
21
>
@@ -44,7 +44,7 @@ export default component$(() => {
44
44
< p > Im a true.tsx</ p >
45
45
</ div >
46
46
</ Checkbox . Root >
47
- </ CheckList >
47
+ </ Checklist >
48
48
< p > You signal is: </ p >
49
49
< p id = "signal-to-text" > { `${ checklistSig . value } ` } </ p >
50
50
</ >
Original file line number Diff line number Diff line change 1
1
import { component$ , useSignal , useStyles$ } from '@builder.io/qwik' ;
2
2
import { CheckboxIndicator } from 'packages/kit-headless/src/components/checkbox/checkbox-indicator' ;
3
3
import { Checkbox } from 'packages/kit-headless/src/components/checkbox/checkbox' ;
4
- import { CheckList } from 'packages/kit-headless/src/components/checkbox/checklist' ;
4
+ import { Checklist } from 'packages/kit-headless/src/components/checkbox/checklist' ;
5
5
export default component$ ( ( ) => {
6
6
const firstUserSig = useSignal ( false ) ;
7
7
const secondUserSig = useSignal ( false ) ;
8
8
return (
9
9
< >
10
10
< h3 id = "test123" > Pick a cat</ h3 >
11
- < CheckList class = "flex flex-col gap-3" ariaLabeledBy = "test123" >
11
+ < Checklist class = "flex flex-col gap-3" ariaLabeledBy = "test123" >
12
12
< Checkbox . Root
13
13
class = "flex items-center gap-3 bg-slate-900 p-2 text-white"
14
- checkList = { true }
14
+ checklist = { true }
15
15
>
16
16
< CheckboxIndicator class = " flex w-[80px] justify-center bg-white p-3" >
17
17
✅
@@ -32,7 +32,7 @@ export default component$(() => {
32
32
< p > No other stuff is needed here</ p >
33
33
</ div >
34
34
</ Checkbox . Root >
35
- </ CheckList >
35
+ </ Checklist >
36
36
</ >
37
37
) ;
38
38
} ) ;
Original file line number Diff line number Diff line change 1
1
import { component$ , useSignal , useStyles$ } from '@builder.io/qwik' ;
2
2
import { CheckboxIndicator } from 'packages/kit-headless/src/components/checkbox/checkbox-indicator' ;
3
3
import { Checkbox } from 'packages/kit-headless/src/components/checkbox/checkbox' ;
4
- import { CheckList } from 'packages/kit-headless/src/components/checkbox/checklist' ;
4
+ import { Checklist } from 'packages/kit-headless/src/components/checkbox/checklist' ;
5
5
import { Checkbox } from '@qwik-ui/headless' ;
6
6
export default component$ ( ( ) => {
7
7
const firstUserSig = useSignal ( false ) ;
8
8
const secondUserSig = useSignal ( true ) ;
9
9
return (
10
10
< >
11
11
< h3 id = "test123" > Pick a cat</ h3 >
12
- < CheckList class = "flex flex-col gap-3" ariaLabeledBy = "test123" >
12
+ < Checklist class = "flex flex-col gap-3" ariaLabeledBy = "test123" >
13
13
< Checkbox . Root
14
14
class = "flex items-center gap-3 bg-slate-900 p-2 text-white"
15
- checkList = { true }
15
+ checklist = { true }
16
16
>
17
17
< Checklist . Indicator class = "w-fit" >
18
18
< div q :slot = "checkbox" id = "true-img" >
@@ -39,7 +39,7 @@ export default component$(() => {
39
39
< p > No other stuff is needed here</ p >
40
40
</ div >
41
41
</ Checkbox . Root >
42
- </ CheckList >
42
+ </ Checklist >
43
43
</ >
44
44
) ;
45
45
} ) ;
Original file line number Diff line number Diff line change @@ -3,18 +3,18 @@ import {
3
3
CheckboxIndicator ,
4
4
Checkbox ,
5
5
ChecklistIndicator ,
6
- CheckList ,
6
+ Checklist ,
7
7
} from 'packages/kit-headless/src/components/checkbox/index' ;
8
8
// this test basically ensures that the sig passed to the checklist controlls trumps all its children
9
9
export default component$ ( ( ) => {
10
10
const checklistSig = useSignal ( true ) ;
11
11
return (
12
12
< >
13
13
< h3 id = "test123" > Pick a cat</ h3 >
14
- < CheckList class = "flex flex-col gap-3" ariaLabeledBy = "test123" >
14
+ < Checklist class = "flex flex-col gap-3" ariaLabeledBy = "test123" >
15
15
< Checkbox . Root
16
16
class = "flex items-center gap-3 bg-slate-900 text-white"
17
- checkList = { true }
17
+ checklist = { true }
18
18
checkBoxSig = { checklistSig }
19
19
id = "checklist"
20
20
>
@@ -43,7 +43,7 @@ export default component$(() => {
43
43
< p > Im a true.tsx</ p >
44
44
</ div >
45
45
</ Checkbox . Root >
46
- </ CheckList >
46
+ </ Checklist >
47
47
< p > You signal is: </ p >
48
48
< p id = "signal-to-text" > { `${ checklistSig . value } ` } </ p >
49
49
</ >
Original file line number Diff line number Diff line change 1
1
import { component$ , useSignal , useStyles$ } from '@builder.io/qwik' ;
2
2
import { CheckboxIndicator } from 'packages/kit-headless/src/components/checkbox/checkbox-indicator' ;
3
3
import { Checkbox } from 'packages/kit-headless/src/components/checkbox/checkbox' ;
4
- import { CheckList } from 'packages/kit-headless/src/components/checkbox/checklist' ;
4
+ import { Checklist } from 'packages/kit-headless/src/components/checkbox/checklist' ;
5
5
export default component$ ( ( ) => {
6
6
const firstUserSig = useSignal ( true ) ;
7
7
const secondUserSig = useSignal ( true ) ;
8
8
return (
9
9
< >
10
10
< h3 id = "test123" > Pick a cat</ h3 >
11
- < CheckList class = "flex flex-col gap-3" ariaLabeledBy = "test123" >
11
+ < Checklist class = "flex flex-col gap-3" ariaLabeledBy = "test123" >
12
12
< Checkbox . Root
13
13
class = "flex items-center gap-3 bg-slate-900 p-2 text-white"
14
- checkList = { true }
14
+ checklist = { true }
15
15
>
16
16
< CheckboxIndicator class = " flex w-[80px] justify-center bg-white p-3" >
17
17
✅
@@ -32,7 +32,7 @@ export default component$(() => {
32
32
< p > No other stuff is needed here</ p >
33
33
</ div >
34
34
</ Checkbox . Root >
35
- </ CheckList >
35
+ </ Checklist >
36
36
</ >
37
37
) ;
38
38
} ) ;
Original file line number Diff line number Diff line change 1
1
import { component$ , useSignal , useStyles$ } from '@builder.io/qwik' ;
2
2
import { CheckboxIndicator } from 'packages/kit-headless/src/components/checkbox/checkbox-indicator' ;
3
3
import { Checkbox } from 'packages/kit-headless/src/components/checkbox/checkbox' ;
4
- import { CheckList } from 'packages/kit-headless/src/components/checkbox/checklist' ;
4
+ import { Checklist } from 'packages/kit-headless/src/components/checkbox/checklist' ;
5
5
export default component$ ( ( ) => {
6
6
const firstUserSig = useSignal ( true ) ;
7
7
const secondUserSig = useSignal ( true ) ;
8
8
return (
9
9
< >
10
10
< h3 id = "test123" > Pick a cat</ h3 >
11
- < CheckList class = "flex flex-col gap-3" ariaLabeledBy = "test123" >
11
+ < Checklist class = "flex flex-col gap-3" ariaLabeledBy = "test123" >
12
12
< Checkbox . Root
13
13
class = "flex items-center gap-3 bg-slate-900 p-2 text-white"
14
- checkList = { true }
14
+ checklist = { true }
15
15
>
16
16
< CheckboxIndicator class = " flex w-[80px] justify-center bg-white p-3" >
17
17
✅
@@ -32,7 +32,7 @@ export default component$(() => {
32
32
< p > No other stuff is needed here</ p >
33
33
</ div >
34
34
</ Checkbox . Root >
35
- </ CheckList >
35
+ </ Checklist >
36
36
</ >
37
37
) ;
38
38
} ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export default component$(() => {
8
8
< Checklist . Root class = "flex flex-col gap-3" ariaLabeledBy = "test123" >
9
9
< Checkbox . Root
10
10
class = "flex items-center gap-3 bg-slate-900 p-2 text-white"
11
- checkList = { true }
11
+ checklist = { true }
12
12
>
13
13
< Checklist . Indicator class = "w-fit bg-black" >
14
14
< div q :slot = "checkbox" id = "true-img" >
Original file line number Diff line number Diff line change 1
1
import { component$ , useSignal , useStyles$ } from '@builder.io/qwik' ;
2
2
import { CheckboxIndicator } from 'packages/kit-headless/src/components/checkbox/checkbox-indicator' ;
3
3
import { Checkbox } from 'packages/kit-headless/src/components/checkbox/checkbox' ;
4
- import { CheckList } from 'packages/kit-headless/src/components/checkbox/checklist' ;
4
+ import { Checklist } from 'packages/kit-headless/src/components/checkbox/checklist' ;
5
5
export default component$ ( ( ) => {
6
6
const firstUserSig = useSignal ( true ) ;
7
7
const secondUserSig = useSignal ( true ) ;
8
8
return (
9
9
< >
10
10
< h3 id = "test123" > Pick a cat</ h3 >
11
- < CheckList class = "flex flex-col gap-3" ariaLabeledBy = "test123" >
11
+ < Checklist class = "flex flex-col gap-3" ariaLabeledBy = "test123" >
12
12
< Checkbox . Root
13
13
class = "flex items-center gap-3 bg-slate-900 p-2 text-white"
14
- checkList = { true }
14
+ checklist = { true }
15
15
id = "checklist"
16
16
>
17
17
< CheckboxIndicator class = " flex w-[80px] justify-center bg-white p-3" >
@@ -34,7 +34,7 @@ export default component$(() => {
34
34
< p > Second child</ p >
35
35
</ div >
36
36
</ Checkbox . Root >
37
- </ CheckList >
37
+ </ Checklist >
38
38
</ >
39
39
) ;
40
40
} ) ;
You can’t perform that action at this time.
0 commit comments