Skip to content

Commit 0d8eafa

Browse files
committed
chore: update to 1.3.5
1 parent 7127ab7 commit 0d8eafa

File tree

12 files changed

+850
-859
lines changed

12 files changed

+850
-859
lines changed

apps/website/src/routes/docs/headless/popover/examples/floating-intro.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default component$(() => {
2727
return option.toLowerCase().startsWith(value.toLowerCase());
2828
})
2929
}
30-
bind:isListboxOpenSig={isListboxOpenSig}
30+
bind:isListboxOpen={isListboxOpenSig}
3131
>
3232
<ComboboxLabel class=" mb-2 block font-semibold text-white">
3333
I open a floating element!

apps/website/src/routes/docs/headless/popover/examples/listbox-animation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default component$(() => {
6464
return option.toLowerCase().startsWith(value.toLowerCase());
6565
})
6666
}
67-
bind:isListboxOpenSig={isListboxOpenSig}
67+
bind:isListboxOpen={isListboxOpenSig}
6868
>
6969
<ComboboxLabel class=" font-semibold text-white">Streets 🛣️</ComboboxLabel>
7070
<ComboboxControl class="relative flex items-center rounded-sm border-[1px] border-slate-400 bg-[#1f2532]">

apps/website/src/routes/docs/headless/popover/examples/placement.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default component$(() => {
3333
class="w-fit"
3434
options={placementExample}
3535
optionDisabledKey="myDisabledKey"
36-
bind:inputValueSig={inputValueSig}
36+
bind:inputValue={inputValueSig}
3737
>
3838
<ComboboxLabel class="text-white">Positions</ComboboxLabel>
3939
<ComboboxControl class="relative mt-2 flex items-center rounded-sm border-[1px] border-slate-400 bg-[#1f2532]">

apps/website/src/routes/docs/headless/rating/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default component$(() => {
1111
<h3>Basic Example </h3>
1212
<Rating />
1313
<h3>OnChange event </h3>
14-
<Rating onChange$={(idx) => window.alert(idx)} />
14+
<Rating onChange$={(index) => window.alert(index)} />
1515
<h3>Custom Icons </h3>
1616
<Rating icon={MyStarIcon} />
1717
<Rating icon={MyHeartIcon} />

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
},
3535
"packageManager": "[email protected]",
3636
"devDependencies": {
37-
"@builder.io/qwik": "^1.3.2",
38-
"@builder.io/qwik-city": "^1.3.2",
37+
"@builder.io/qwik": "^1.3.5",
38+
"@builder.io/qwik-city": "^1.3.5",
3939
"@builder.io/vite-plugin-macro": "~0.0.7",
4040
"@changesets/cli": "2.27.1",
4141
"@changesets/get-github-info": "0.6.0",
@@ -102,7 +102,7 @@
102102
"eslint": "^8.48.0",
103103
"eslint-config-prettier": "9.0.0",
104104
"eslint-plugin-cypress": "^2.14.0",
105-
"eslint-plugin-qwik": "^1.3.2",
105+
"eslint-plugin-qwik": "^1.3.5",
106106
"eslint-plugin-storybook": "^0.6.13",
107107
"focus-trap": "7.5.3",
108108
"husky": "^8.0.3",

packages/kit-headless/src/components/accordion/accordion-root.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
$,
3-
PropFunction,
43
PropsOf,
4+
QRL,
55
Slot,
66
component$,
77
useContextProvider,
@@ -18,8 +18,8 @@ export type AccordionRootProps = PropsOf<'div'> & {
1818
animated?: boolean;
1919
enhance?: boolean;
2020
collapsible?: boolean;
21-
onSelectedIndexChange$?: PropFunction<(index: number) => void>;
22-
onFocusIndexChange$?: PropFunction<(index: number) => void>;
21+
onSelectedIndexChange$?: QRL<(index: number) => void>;
22+
onFocusIndexChange$?: QRL<(index: number) => void>;
2323
};
2424

2525
export const AccordionRoot = component$(

packages/kit-headless/src/components/pagination/types/pagination-api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { PropFunction, PropsOf } from '@builder.io/qwik';
1+
import { PropsOf, QRL } from '@builder.io/qwik';
22

33
export interface PaginationCoreProps {
44
selectedPage: number;
55
totalPages: number;
6-
onPageChange$: PropFunction<(page: number) => void>;
6+
onPageChange$: QRL<(page: number) => void>;
77
}
88

99
export type PaginationStyling = {

packages/kit-headless/src/components/popover/popover.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,7 @@ import { PopoverImpl } from './popover-impl';
44
import { PopoverImplProps } from './popover-impl';
55
import { FloatingProps } from './floating';
66

7-
type PopoverProps = PopoverImplProps &
8-
(
9-
| {
10-
floating?: false | undefined;
11-
anchorRef: never;
12-
}
13-
| ({ floating?: true } & FloatingProps)
14-
);
7+
type PopoverProps = PopoverImplProps & ({ floating?: true } & FloatingProps);
158

169
/* This component determines whether the popover needs floating behavior, a common example where it doesn't, would be a toast. */
1710
export const Popover = component$<PopoverProps>(

packages/kit-headless/src/components/qwik-ui-provider/qwik-ui-provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
type Signal,
1313
Fragment,
1414
} from '@builder.io/qwik';
15-
import { type JSXNode } from '@builder.io/qwik/jsx-runtime';
15+
import { type JSXNode } from '@builder.io/qwik';
1616

1717
// Define public API for opening up Portals
1818
export const openPortalContextId =

packages/kit-headless/src/components/rating/rating.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
Component,
44
component$,
55
PropFunction,
6+
QRL,
67
Slot,
78
useId,
89
useStore,
@@ -14,7 +15,7 @@ export type RatingProps = {
1415
value?: number;
1516
total?: number;
1617
icon?: Component<object>;
17-
onChange$?: PropFunction<(index: number) => void>;
18+
onChange$?: QRL<(index: number) => void>;
1819
};
1920

2021
export const Rating = component$((props: RatingProps) => {

0 commit comments

Comments
 (0)