Skip to content

Commit 9cb3c96

Browse files
Update component statuses (#975)
* feat: carousel now uses auto api * fix: rollup warning to properly export toggle group * update shiki to latest * component status changes + popover styles fix * separator is stable
1 parent 8545cba commit 9cb3c96

File tree

9 files changed

+101
-36
lines changed

9 files changed

+101
-36
lines changed

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

+3-8
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,17 @@ export const statusByComponent: ComponentKitsStatuses = {
3737
Textarea: ComponentStatus.Draft,
3838
},
3939
headless: {
40-
Accordion: ComponentStatus.Beta,
4140
Carousel: ComponentStatus.Beta,
42-
Collapsible: ComponentStatus.Beta,
4341
Combobox: ComponentStatus.Beta,
4442
Checkbox: ComponentStatus.Draft,
4543
Dropdown: ComponentStatus.Draft,
46-
Label: ComponentStatus.Draft,
47-
Modal: ComponentStatus.Beta,
44+
Label: ComponentStatus.Beta,
4845
Pagination: ComponentStatus.Draft,
49-
Popover: ComponentStatus.Beta,
5046
Progress: ComponentStatus.Beta,
5147
Select: ComponentStatus.Beta,
52-
Separator: ComponentStatus.Beta,
5348
Tabs: ComponentStatus.Beta,
54-
Toggle: ComponentStatus.Draft,
55-
ToggleGroup: ComponentStatus.Draft,
49+
Toggle: ComponentStatus.Beta,
50+
'Toggle Group': ComponentStatus.Beta,
5651
Tooltip: ComponentStatus.Beta,
5752
},
5853
};

apps/website/src/components/status-banner/status-banner.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const StatusBanner = component$(({ status }: StatusBannerProps) => {
7777
<>
7878
<div
7979
ref={ref}
80-
hidden={isBannerClosedSig.value}
80+
hidden={isBannerClosedSig.value || !status}
8181
onAnimationEnd$={() => (isBannerClosedSig.value = true)}
8282
class={cn(
8383
getBackgroundByStatus(status),

apps/website/src/routes/docs/headless/menu.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@
3030
- [Tabs](/docs/headless/tabs)
3131
- [Tooltip](/docs/headless/tooltip)
3232
- [Toggle](/docs/headless/toggle)
33-
- [ToggleGroup](/docs/headless/toggle-group)
33+
- [Toggle Group](/docs/headless/toggle-group)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { component$, useStyles$ } from '@builder.io/qwik';
2+
import styles from '../snippets/popover.css?inline';
3+
4+
export default component$(() => {
5+
useStyles$(styles);
6+
7+
return <></>;
8+
});

apps/website/src/routes/docs/headless/popover/index.mdx

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ title: Qwik UI | Popover
44

55
import { statusByComponent } from '~/_state/component-statuses';
66

7-
import styles from './snippets/popover.css?inline';
8-
97
<StatusBanner status={statusByComponent.headless.Popover} />
108

9+
import Styles from './examples/styles';
10+
1111
# Popover
1212

1313
A popup that goes above other content on the page. You can still interact with the rest of the page while the popover is open.
@@ -515,3 +515,5 @@ To read more about the popover API you can check it out on:
515515
},
516516
]}
517517
/>
518+
519+
<Styles />

apps/website/src/routes/docs/headless/toggle-group/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Qwik UI | Toggle Group
44

55
import { statusByComponent } from '~/_state/component-statuses';
66

7-
<StatusBanner status={statusByComponent.headless.ToggleGroup} />
7+
<StatusBanner status={statusByComponent.headless['Toggle Group']} />
88

99
# Toggle Group
1010

apps/website/src/routes/docs/headless/tooltip/index.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ title: Qwik UI | Tooltip
44

55
import { statusByComponent } from '~/_state/component-statuses';
66

7-
import styles from './snippets/tooltip.css?inline';
8-
97
<StatusBanner status={statusByComponent.headless.Tooltip} />
108

119
# Tooltip

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
"@oddbird/popover-polyfill": "0.4.3",
7070
"@playwright/test": "^1.44.1",
7171
"@qwikest/icons": "^0.0.13",
72-
"@shikijs/transformers": "^1.11.0",
7372
"@swc-node/register": "^1.9.1",
7473
"@swc/core": "^1.5.7",
7574
"@types/decompress": "4.2.7",
@@ -114,7 +113,7 @@
114113
"qwik-themes": "^0.2.0",
115114
"rehype-pretty-code": "^0.13.2",
116115
"sass": "^1.77.2",
117-
"shiki": "1.11.0",
116+
"shiki": "^1.21.0",
118117
"simple-git-hooks": "2.11.1",
119118
"specificity": "^1.0.0",
120119
"tailwind-merge": "^2.3.0",

pnpm-lock.yaml

+82-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)