Skip to content

Commit

Permalink
fix: ts errors and section deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
jolbol1 committed Jan 30, 2025
1 parent bf36baf commit 3c2487a
Show file tree
Hide file tree
Showing 12 changed files with 78 additions and 63 deletions.
2 changes: 1 addition & 1 deletion bun.lock
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-resizable-panels": "^2.1.4",
"react-stately": "^3.33.0",
"react-stately": "^3.35.0",
"react-wrap-balancer": "^1.1.1",
"tailwind-merge": "^2.5.4",
"ts-morph": "^24.0.0",
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-resizable-panels": "^2.1.4",
"react-stately": "^3.33.0",
"react-stately": "^3.35.0",
"react-wrap-balancer": "^1.1.1",
"tailwind-merge": "^2.5.4",
"ts-morph": "^24.0.0",
Expand Down Expand Up @@ -76,5 +76,6 @@
"typescript": "^5.6.3",
"unist-builder": "4.0.0",
"unist-util-visit": "^5.0.0"
}
},
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
118 changes: 60 additions & 58 deletions public/sitemap.xml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default function DateFieldGranularity() {
<div className="flex flex-col gap-2">
<DateField
value={date}
// @ts-expect-error RAC bug
onChange={setDate}
granularity="second"
defaultValue={parseZonedDateTime(
Expand All @@ -27,6 +28,7 @@ export default function DateFieldGranularity() {
</DateField>
<DateField
value={date}
// @ts-expect-error RAC bug
onChange={setDate}
granularity="day"
defaultValue={parseZonedDateTime(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default function DatepickerGranularity() {
<div className="flex flex-col gap-2">
<DatePicker
value={date}
// @ts-expect-error RAC bug
onChange={setDate}
granularity="second"
className="min-w-[208px] space-y-1"
Expand Down Expand Up @@ -60,6 +61,7 @@ export default function DatepickerGranularity() {

<DatePicker
value={date}
// @ts-expect-error RAC bug
onChange={setDate}
granularity="day"
className="min-w-[208px] space-y-1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function DndGridList(props: DndGridListProps) {
let item = list.getItem(key)
return {
"custom-app-type": JSON.stringify(item),
// @ts-expect-error RAC bug
"text/plain": item.name,
}
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function DndListBox(props: DndListBoxProps) {
let item = list.getItem(key)
return {
"custom-app-type": JSON.stringify(item),
// @ts-expect-error RAC bug
"text/plain": item.name,
}
})
Expand Down
4 changes: 2 additions & 2 deletions src/registry/default/ui/list-box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import {
ListBoxItem as AriaListBoxItem,
ListBoxItemProps as AriaListBoxItemProps,
ListBoxProps as AriaListBoxProps,
Section as AriaSection,
ListBoxSection as AriaListBoxSection,
composeRenderProps,
} from "react-aria-components"

import { cn } from "@/lib/utils"

const ListBoxSection = AriaSection
const ListBoxSection = AriaListBoxSection

const ListBoxCollection = AriaCollection

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default function DateFieldGranularity() {
<div className="flex flex-col gap-2">
<DateField
value={date}
// @ts-expect-error RAC bug
onChange={setDate}
granularity="second"
defaultValue={parseZonedDateTime(
Expand All @@ -27,6 +28,7 @@ export default function DateFieldGranularity() {
</DateField>
<DateField
value={date}
// @ts-expect-error RAC bug
onChange={setDate}
granularity="day"
defaultValue={parseZonedDateTime(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default function DatepickerGranularity() {
<div className="flex flex-col gap-2">
<DatePicker
value={date}
// @ts-expect-error RAC bug
onChange={setDate}
granularity="second"
className="min-w-[208px] space-y-1"
Expand Down Expand Up @@ -60,6 +61,7 @@ export default function DatepickerGranularity() {

<DatePicker
value={date}
// @ts-expect-error RAC bug
onChange={setDate}
granularity="day"
className="min-w-[208px] space-y-1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function DndGridList(props: DndGridListProps) {
let item = list.getItem(key)
return {
"custom-app-type": JSON.stringify(item),
// @ts-expect-error RAC bug
"text/plain": item.name,
}
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function DndListBox(props: DndListBoxProps) {
let item = list.getItem(key)
return {
"custom-app-type": JSON.stringify(item),
// @ts-expect-error RAC bug
"text/plain": item.name,
}
})
Expand Down

0 comments on commit 3c2487a

Please sign in to comment.