Skip to content

Commit 8506fc8

Browse files
committed
fix: conflicts
2 parents 9da2442 + 01f5421 commit 8506fc8

File tree

107 files changed

+2825
-1596
lines changed

Some content is hidden

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

107 files changed

+2825
-1596
lines changed

.changeset/clean-seahorses-cheat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@heroui/autocomplete": patch
3+
---
4+
5+
ensure focused item matches selected item after filter, selection (#5277)

.changeset/fast-ways-hang.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@heroui/shared-icons": patch
3+
"@heroui/toast": patch
4+
---
5+
6+
support render icons by function in Toast

.changeset/giant-sloths-shop.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@heroui/date-picker": patch
3+
---
4+
5+
fix date-range-picker error state (#5309)

.changeset/honest-hats-explode.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@heroui/autocomplete": patch
3+
"@heroui/select": patch
4+
---
5+
6+
persist last selected item position (#5282)

.changeset/kind-dolphins-listen.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@heroui/theme": patch
3+
---
4+
5+
Fixed the clear button rendering for smaller devices (#5069)

.changeset/stale-chairs-tan.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
"@heroui/autocomplete": patch
3+
"@heroui/dom-animation": patch
4+
"@heroui/date-picker": patch
5+
"@heroui/framer-utils": patch
6+
"@heroui/accordion": patch
7+
"@heroui/calendar": patch
8+
"@heroui/dropdown": patch
9+
"@heroui/popover": patch
10+
"@heroui/snippet": patch
11+
"@heroui/tooltip": patch
12+
"@heroui/button": patch
13+
"@heroui/navbar": patch
14+
"@heroui/ripple": patch
15+
"@heroui/select": patch
16+
"@heroui/modal": patch
17+
"@heroui/card": patch
18+
"@heroui/tabs": patch
19+
"@heroui/system": patch
20+
---
21+
22+
bump framer-motion version

.eslintignore

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

.eslintrc.json

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

.lintstagedrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = {
1616
"**/*.{js,ts,jsx,tsx}": async (files) => {
1717
const filesToLint = await removeIgnoredFiles(files);
1818

19-
return [`eslint -c .eslintrc.json --max-warnings=0 --fix ${filesToLint}`];
19+
return [`eslint --max-warnings=0 --fix ${filesToLint}`];
2020
},
2121
"**/*.css": async (files) => {
2222
const filesToLint = await removeIgnoredFiles(files);

apps/docs/app/examples/autocomplete/async-filtering/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable no-console */
21
"use client";
32

43
import * as React from "react";

apps/docs/app/examples/table/custom-styles/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable jsx-a11y/no-onchange */
21
"use client";
32

43
import {

apps/docs/app/examples/table/use-case/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable jsx-a11y/no-onchange */
21
"use client";
32

43
import {

apps/docs/components/ads/carbon-ad/carbon-ad.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export const CarbonAd: React.FC<unknown> = () => {
9191
setShowEthicalAds(true);
9292
}
9393
});
94-
} catch (error) {
94+
} catch {
9595
loadCarbonAds();
9696
}
9797
} else {

apps/docs/components/ads/carbon-ad/carbon-optimize.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ export default {
4747

4848
if (!document.hidden) {
4949
if (typeof _carbonads !== "undefined" && isElementInViewport("#carbonads")) {
50-
// eslint-disable-next-line no-undef
5150
_carbonads.refresh();
5251
}
5352
}

apps/docs/components/blog/video-in-view.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable jsx-a11y/media-has-caption */
21
"use client";
32

43
import {useInView} from "framer-motion";

apps/docs/components/cmdk.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export const Cmdk: FC<{}> = () => {
210210
[query],
211211
);
212212

213-
const items = !isEmpty(results) ? results : recentSearches ?? [];
213+
const items = !isEmpty(results) ? results : (recentSearches ?? []);
214214

215215
// Toggle the menu when ⌘K / CTRL K is pressed
216216
useEffect(() => {

apps/docs/components/docs/components/code-demo/code-demo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ const DynamicReactLiveDemo = dynamic(
1919
() => import("./react-live-demo").then((m) => m.ReactLiveDemo),
2020
{
2121
ssr: false,
22-
// eslint-disable-next-line react/display-name
22+
2323
loading: () => <Skeleton className="w-full h-24 rounded-xl" />,
2424
},
2525
);
2626

2727
const DynamicSandpack = dynamic(() => import("../../../sandpack").then((m) => m.Sandpack), {
2828
ssr: false,
29-
// eslint-disable-next-line react/display-name
29+
3030
loading: () => <Skeleton className="w-full h-32 rounded-xl" />,
3131
});
3232

apps/docs/components/marketing/a11y-otb.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"use client";
22

3-
/* eslint-disable react/display-name */
43
import {
54
Button,
65
Image,

apps/docs/components/marketing/custom-themes/custom-themes.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"use client";
22

3-
/* eslint-disable react/display-name */
43
import {useMemo, useState} from "react";
54
import {Tabs, Tab, Card, CardBody, Image, Button, RadioGroup, Radio} from "@heroui/react";
65
import NextLink from "next/link";

apps/docs/components/marketing/customization.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"use client";
22

3-
/* eslint-disable react/display-name */
43
import {Button, Link} from "@heroui/react";
54
import NextLink from "next/link";
65

apps/docs/components/marketing/dark-mode.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"use client";
22

3-
/* eslint-disable react/display-name */
43
import {Code, Button, Tooltip} from "@heroui/react";
54
import {useState} from "react";
65
import NextLink from "next/link";

apps/docs/components/marketing/last-but-not-least.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable react/display-name */
2-
31
import {title, subtitle, titleWrapper, sectionWrapper} from "@/components/primitives";
42
import {FeaturesGrid} from "@/components/marketing/features-grid";
53
import landingContent from "@/content/landing";

apps/docs/components/marketing/support.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ async function getData() {
99
return {
1010
sponsors,
1111
};
12-
} catch (error) {
12+
} catch {
1313
throw new Error("Failed to fetch data");
1414
}
1515
}

apps/docs/components/mdx-components.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable react/display-name */
21
import {clsx} from "@heroui/shared-utils";
32
import * as Components from "@heroui/react";
43
import {Language} from "prism-react-renderer";

apps/docs/components/sandpack/use-sandpack.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const useSandpack = ({
7777
}, {});
7878

7979
let dependencies = {
80-
"framer-motion": "11.9.0",
80+
"framer-motion": "11.18.2",
8181
"@heroui/react": "latest",
8282
};
8383

@@ -150,7 +150,7 @@ export const useSandpack = ({
150150

151151
// const dependencies = useMemo(() => {
152152
// let deps = {
153-
// "framer-motion": "11.9.0",
153+
// "framer-motion": "11.18.2",
154154
// };
155155

156156
// if (hasComponents) {

apps/docs/content/docs/components/listbox.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,12 @@ You can customize the `Listbox` items style by using the `itemClasses` prop and
375375
description: "Whether to disable the animation of the listbox items.",
376376
default: "false"
377377
},
378+
{
379+
attribute: "selectionBehavior",
380+
type: "'toggle' | 'replace'",
381+
description: "How multiple selection should behave in the collection.",
382+
default: "toggle"
383+
},
378384
{
379385
attribute: "classNames",
380386
type: "Partial<Record<\"base\" | \"list\" | \"emptyContent\", string>>",
@@ -397,7 +403,7 @@ You can customize the `Listbox` items style by using the `itemClasses` prop and
397403
{
398404
attribute: "onAction",
399405
type: "(key: React.Key) => void",
400-
description: "Handler that is called when an item is selected.",
406+
description: "Handler that is called when a user performs an action on an item. The exact user event depends on the collection's selectionBehavior prop and the interaction modality.",
401407
default: "-"
402408
},
403409
{

apps/docs/hooks/use-scroll-position.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable no-undef */
21
import * as React from "react";
32

43
export function useScrollPosition(ref: React.MutableRefObject<HTMLElement | null>) {

apps/docs/hooks/use-scroll-spy.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable no-undef */
21
import * as React from "react";
32

43
export function useScrollSpy(selectors: string[], options?: IntersectionObserverInit) {

apps/docs/hooks/use-update-effect.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export const useUpdateEffect: typeof useEffect = (effect, deps) => {
1616
return effect();
1717
}
1818
effectCycleRef.current = true;
19-
// eslint-disable-next-line react-hooks/exhaustive-deps
2019
}, deps);
2120

2221
useEffect(() => {

apps/docs/libs/github/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export interface GithubError extends Error {
77
function getErrorText(res: Response) {
88
try {
99
return res.text();
10-
} catch (err) {
10+
} catch {
1111
return res.statusText;
1212
}
1313
}

apps/docs/libs/rehype-highlight-line.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const lineNumberify = function lineNumberify(ast, lineNum = 1) {
2020
const lines = node.value.split("\n");
2121

2222
for (let i = 0; i < lines.length; i++) {
23-
// eslint-disable-next-line no-plusplus
2423
if (i !== 0) ++lineNumber;
2524
if (i === lines.length - 1 && lines[i].length === 0) continue;
2625
result.nodes.push({

apps/docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"color2k": "2.0.3",
6363
"contentlayer2": "0.5.3",
6464
"date-fns": "4.1.0",
65-
"framer-motion": "11.11.13",
65+
"framer-motion": "11.18.2",
6666
"geist": "1.3.1",
6767
"github-slugger": "^2.0.0",
6868
"gray-matter": "^4.0.3",

apps/docs/scripts/build-sponsors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async function build() {
4848
// make sure the sponsors directory exists
4949
try {
5050
await fs.access(sponsorsDir);
51-
} catch (error) {
51+
} catch {
5252
await fs.mkdir(sponsorsDir, { recursive: true });
5353
}
5454
await Promise.all([buildSponsors()])

apps/docs/scripts/update-github-info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async function getGithubInfo() {
3535
};
3636

3737
// Format JSON with prettier
38-
const formattedJson = prettier.format(JSON.stringify(githubInfo), {
38+
const formattedJson = await prettier.format(JSON.stringify(githubInfo), {
3939
parser: 'json',
4040
printWidth: 80,
4141
tabWidth: 2,

0 commit comments

Comments
 (0)