Skip to content

Commit d5d32ca

Browse files
committed
docs(fluffy): updated all components
1 parent 14c261c commit d5d32ca

File tree

58 files changed

+360
-456
lines changed

Some content is hidden

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

58 files changed

+360
-456
lines changed

apps/website/src/_state/component-statuses.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const statusByComponent: ComponentKitsStatuses = {
2020
Card: ComponentStatus.Planned,
2121
Carousel: ComponentStatus.Planned,
2222
Checkbox: ComponentStatus.Planned,
23-
Collapse: ComponentStatus.Planned,
23+
Combobox: ComponentStatus.Planned,
2424
Drawer: ComponentStatus.Planned,
2525
Input: ComponentStatus.Planned,
2626
'Input Phone': ComponentStatus.Planned,

apps/website/src/root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default component$(() => {
3232
mode: 'light',
3333
isSidebarOpened: false,
3434
featureFlags: {
35-
showFluffy: import.meta.env.DEV,
35+
showFluffy: true, //import.meta.env.DEV
3636
},
3737
});
3838

apps/website/src/routes/docs/_components/component-status-badge/component-status-badge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export function getClassByStatus(status: ComponentStatus) {
1212
case ComponentStatus.Ready:
1313
return 'text-green-900 bg-green-300 tracking-wide';
1414
case ComponentStatus.Beta:
15-
return 'dark:text-slate-100 dark:bg-qwikui-purple-500 bg-qwikui-blue-500 text-white dark:border-qwikui-purple-600 border-[1px] border-qwikui-blue-700 tracking-wide shadow-dark-low dark:shadow-dark-low text-outline-beta';
15+
return 'dark:text-slate-100 dark:bg-qwikui-purple-600 bg-qwikui-blue-600 text-white dark:border-qwikui-purple-600 border-[1px] border-qwikui-blue-700 tracking-wide shadow-dark-low dark:shadow-dark-low text-outline-beta';
1616
case ComponentStatus.Draft:
1717
return 'text-slate-200 bg-slate-700 dark:bg-slate-800 border-[1px] border-slate-400 shadow-dark-low tracking-wide dark:shadow-dark-low text-outline-draft';
1818
case ComponentStatus.Planned:

apps/website/src/routes/docs/fluffy/(components)/accordion/examples.tsx

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

apps/website/src/routes/docs/fluffy/(components)/accordion/exports.ts

Whitespace-only changes.
Lines changed: 6 additions & 145 deletions
Original file line numberDiff line numberDiff line change
@@ -1,151 +1,12 @@
11
---
2-
title: Qwik UI | Accordion
2+
title: Qwik UI | Fluffy Accordion Component
33
---
44

5-
import {
6-
AccordionRoot,
7-
AccordionItem,
8-
AccordionContent,
9-
AccordionTrigger,
10-
Checkbox,
11-
} from '@qwik-ui/headless';
12-
import { Example01, Example02 } from './examples';
13-
import { CodeExample } from '../../../_components/code-example/code-example';
14-
import { KeyboardInteractionTable } from '../../../_components/keyboard-interaction-table/keyboard-interaction-table';
15-
import { APITable } from '../../../_components/api-table/api-table';
5+
import {StatusBanner, statusByComponent} from '../exports';
166

177
# Accordion
188

19-
#### A vertically stacked set of interactive headings which reveal or hide their associated content.
20-
21-
{' '}
22-
23-
<Example01>
24-
```tsx
25-
<Accordion>
26-
<AccordionItem label="Heading 1">
27-
<div class="p-2">
28-
<p>
29-
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus
30-
aliquid architecto delectus deleniti dolor
31-
</p>
32-
</div>
33-
</AccordionItem>
34-
<AccordionItem label="Heading 2">
35-
<div class="p-2">
36-
<p>
37-
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus
38-
aliquid architecto delectus deleniti dolor
39-
</p>
40-
</div>
41-
</AccordionItem>
42-
</Accordion>
43-
```
44-
</Example01>
45-
46-
## Building blocks
47-
48-
<CodeExample>
49-
```tsx
50-
import { component$ } from '@builder.io/qwik';
51-
import { Accordion, AccordionItem } from '@qwik-ui/tailwind';
52-
53-
export default component$(() => (
54-
<Accordion>
55-
<AccordionItem>Content</AccordionItem>
56-
</Accordion>
57-
));
58-
```
59-
60-
</CodeExample>
61-
62-
## Examples
63-
64-
### EXAMPLE: with disabled item
65-
66-
<Example02>
67-
```tsx
68-
<Accordion>
69-
<AccordionItem label="Heading 1">
70-
<div class="p-2">
71-
<p>
72-
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus
73-
aliquid architecto delectus deleniti dolor
74-
</p>
75-
</div>
76-
</AccordionItem>
77-
<AccordionItem label="Heading 2 - Disabled" disabled>
78-
<div class="p-2">
79-
<p>
80-
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus
81-
aliquid architecto delectus deleniti dolor
82-
</p>
83-
</div>
84-
</AccordionItem>
85-
</Accordion>
86-
```
87-
</Example02>
88-
89-
## Accessibility
90-
91-
### Keyboard interaction
92-
93-
<KeyboardInteractionTable keyDescriptors={
94-
[
95-
{
96-
keyTitle: 'Space',
97-
description: 'Expand or collapse the `AccordionItem`.',
98-
},
99-
{
100-
keyTitle: 'Enter',
101-
description: 'Expand or collapse the `AccordionItem`.',
102-
},
103-
{
104-
keyTitle: 'Tab',
105-
description: 'Moves focus to the next focusable element.',
106-
},
107-
{
108-
keyTitle: 'Shift + Tab',
109-
description: 'Moves focus to the previous focusable element.',
110-
},
111-
{
112-
keyTitle: 'Home',
113-
description: 'When on `AccordionItem`, Moves focus to the first `AccordionItem`.',
114-
},
115-
{
116-
keyTitle: 'End',
117-
description: 'When on `AccordionItem`, Moves focus to the last `AccordionItem`.',
118-
},
119-
120-
]
121-
}/>
122-
123-
## API
124-
125-
### AccordionItem
126-
127-
<APITable
128-
propDescriptors={[
129-
{
130-
name: 'class',
131-
type: 'string',
132-
description: 'CSS classes to apply to the accordion container.',
133-
},
134-
{
135-
name: 'style',
136-
type: 'string',
137-
description: 'CSS styles to apply to the accordion container.',
138-
},
139-
{
140-
name: 'label',
141-
type: 'string',
142-
description: 'The label to give to the accordion item.',
143-
},
144-
{
145-
name: 'onClick$',
146-
info: 'PropFunction<() => void>',
147-
type: 'function',
148-
description: 'A custom click handler',
149-
},
150-
]}
151-
/>
9+
A vertically stacked set of beautifully interactive headings which like to play "hard to get" by revealing or hiding their associated content.
10+
<br/>
11+
<StatusBanner status={statusByComponent.fluffy.Accordion}/>
12+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: Qwik UI | Fluffy Alert Component
3+
---
4+
5+
import {StatusBanner, statusByComponent} from '../exports';
6+
7+
# Alert
8+
9+
In a digital landscape of gentle nudges, the Fluffy alert pops with a playful flair, ensuring every crucial whisper finds its audience effortlessly.
10+
<br/>
11+
<StatusBanner status={statusByComponent.fluffy.Alert}/>
12+

0 commit comments

Comments
 (0)