Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: migrate external packages to internal to avoid version incompatibility #4655

Open
wants to merge 54 commits into
base: canary
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 51 commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
8bdfc58
refactor: migrate `@internationalized/date` to `@heroui/shared-utils`
wingkwong Jan 26, 2025
b09b9c3
refactor: remove framer-motion dependencies
wingkwong Jan 26, 2025
4596938
feat(motion): introduce `@heroui/motion`
wingkwong Jan 26, 2025
add1eb7
refactor: import from @heroui/motion
wingkwong Jan 26, 2025
f82afbb
chore(shared-utils): undo exports
wingkwong Jan 26, 2025
b213f13
feat(react-aria-i18n): init package
wingkwong Jan 26, 2025
1a71e7f
refactor: migrate `@react-aria/i18n` to `@heroui/react-aria-i18n`
wingkwong Jan 26, 2025
4bb81b3
chore(deps): pnpm-lock.yaml
wingkwong Jan 26, 2025
30ca5d4
feat(internationalized-date): init package
wingkwong Jan 26, 2025
7774dca
refactor: remove from shared-utils
wingkwong Jan 26, 2025
a98bde9
refactor: port to `@heroui/internationalized-date`
wingkwong Jan 26, 2025
272d438
fix: incorrect import
wingkwong Jan 26, 2025
ae78d9d
chore(deps): add `@heroui/internationalized-date`
wingkwong Jan 26, 2025
c76bb0f
chore(date-input): add missing import
wingkwong Jan 26, 2025
8fdbe6c
chore(deps): add missing import
wingkwong Jan 26, 2025
69fde3b
fix(date-picker): incorrect import
wingkwong Jan 26, 2025
3ff0513
fix(date-picker): incorrect import
wingkwong Jan 26, 2025
c28bdf5
fix: add framer-motion to compilerOptions.paths
wingkwong Jan 26, 2025
33b608a
chore: update info in package.json
wingkwong Jan 27, 2025
928d06e
chore: remove unused include
wingkwong Jan 27, 2025
09e7b9e
chore(changeset): update changeset
wingkwong Jan 27, 2025
014d845
Merge branch 'canary' into refactor/eng-1894
wingkwong Jan 29, 2025
d406c27
refactor(docs): restructure date related components pages
wingkwong Jan 29, 2025
ea1ce26
chore(deps): remove `@heroui/motion` from docs
wingkwong Jan 29, 2025
1488e40
chore(deps): remove `@heroui/motion` from docs
wingkwong Jan 29, 2025
e901d09
refactor(docs): update `@heroui/internationalized-date` & `@heroui/re…
wingkwong Jan 29, 2025
258fb0c
refactor(docs): update framer-motion part
wingkwong Jan 29, 2025
07a4af7
chore(deps): bump to last version before v12
wingkwong Jan 29, 2025
0e11d02
refactor(docs): revise content for `@heroui/internationalized-date`
wingkwong Jan 29, 2025
cd52e43
chore(deps): rollback to 11.9.0
wingkwong Jan 29, 2025
027bf74
chore(deps): add `@heroui/motion`
wingkwong Jan 29, 2025
d162c39
Merge branch 'canary' into refactor/eng-1894
wingkwong Jan 30, 2025
af5824f
chore(docs): remove `@heroui/motion` from installation
wingkwong Jan 30, 2025
66af25e
Merge branch 'canary' into refactor/eng-1894
wingkwong Jan 30, 2025
2575f86
refactor: migrate `@heroui/framer-utils` to `@heroui/motion`
wingkwong Jan 30, 2025
cbe0592
chore(internationalized-date): bump to latest version
wingkwong Jan 30, 2025
85a2f9c
chore(motion): remove conflicted Variants export
wingkwong Jan 30, 2025
816f9d2
fix(date-picker): add missing `@heroui/react-aria-i18n` import
wingkwong Jan 30, 2025
b895980
chore(deps): use `@heroui/react-aria-i18n`
wingkwong Jan 30, 2025
2133fd9
Merge branch 'canary' into refactor/eng-1894
wingkwong Jan 30, 2025
8dc52eb
chore(deps): add `@heroui/motion` import
wingkwong Jan 30, 2025
5eec89d
chore: remove framer-utils package
wingkwong Jan 30, 2025
50aee84
chore(deps): migrate `framer-motion` to `motion`
wingkwong Jan 31, 2025
87f2d9e
refactor: remove framer-motion
wingkwong Jan 31, 2025
3e43e5a
refactor(modal): one line import
wingkwong Jan 31, 2025
d7e8122
fix: remove extra commas
wingkwong Jan 31, 2025
ca6b0ec
chore: cast any for motionProps temporarily
wingkwong Jan 31, 2025
7f269ce
chore(deps): pnpm-lock.yaml
wingkwong Jan 31, 2025
a5b8f86
refactor: one line import
wingkwong Jan 31, 2025
98c2169
fix: motionProps type issue
wingkwong Jan 31, 2025
81a7fde
chore(navbar): rollback
wingkwong Jan 31, 2025
ef03145
Merge branch 'canary' into refactor/eng-1894
wingkwong Feb 6, 2025
7356cdc
refactor: update author in package.json
wingkwong Feb 6, 2025
10c5212
chore(deps): bump motion version
wingkwong Feb 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .changeset/hot-news-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
"@heroui/internationalized-date": patch
"@heroui/use-aria-multiselect": patch
"@heroui/scroll-shadow": patch
"@heroui/react-aria-i18n": patch
"@heroui/autocomplete": patch
"@heroui/dom-animation": patch
"@heroui/breadcrumbs": patch
"@heroui/date-picker": patch
"@heroui/date-input": patch
"@heroui/pagination": patch
"@heroui/accordion": patch
"@heroui/input-otp": patch
"@heroui/use-pagination": patch
"@heroui/calendar": patch
"@heroui/checkbox": patch
"@heroui/dropdown": patch
"@heroui/progress": patch
"@heroui/skeleton": patch
"@heroui/divider": patch
"@heroui/listbox": patch
"@heroui/popover": patch
"@heroui/snippet": patch
"@heroui/spinner": patch
"@heroui/tooltip": patch
"@heroui/avatar": patch
"@heroui/button": patch
"@heroui/drawer": patch
"@heroui/navbar": patch
"@heroui/ripple": patch
"@heroui/select": patch
"@heroui/slider": patch
"@heroui/spacer": patch
"@heroui/switch": patch
"@heroui/alert": patch
"@heroui/badge": patch
"@heroui/image": patch
"@heroui/input": patch
"@heroui/modal": patch
"@heroui/radio": patch
"@heroui/table": patch
"@heroui/card": patch
"@heroui/chip": patch
"@heroui/code": patch
"@heroui/form": patch
"@heroui/link": patch
"@heroui/menu": patch
"@heroui/tabs": patch
"@heroui/user": patch
"@heroui/system-rsc": patch
"@heroui/motion": patch
"@heroui/kbd": patch
"@heroui/system": patch
"@heroui/react": patch
---

migrate external packages (#4567)
1 change: 0 additions & 1 deletion .changeset/stupid-pants-perform.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"@heroui/breadcrumbs": patch
"@heroui/date-picker": patch
"@heroui/use-callback-ref": patch
"@heroui/framer-utils": patch
"@heroui/shared-icons": patch
"@heroui/date-input": patch
"@heroui/pagination": patch
Expand Down
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
strict-peer-dependencies=false
enable-pre-post-scripts=true
public-hoist-pattern[]=*tailwind-variants*
public-hoist-pattern[]=*framer-motion*
public-hoist-pattern[]=*@react-aria/interactions*
public-hoist-pattern[]=*@heroui/theme*
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as React from "react";
import {Autocomplete, AutocompleteItem, MenuTriggerAction} from "@heroui/react";
import {useFilter} from "@react-aria/i18n";
import {useFilter} from "@heroui/react-aria-i18n";

const animals = [
{label: "Cat", value: "cat", description: "The second most popular pet in the world"},
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/app/examples/perf/client-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
extendVariants,
PaginationItem,
} from "@heroui/react";
import {useFilter} from "@react-aria/i18n";
import {useFilter} from "@heroui/react-aria-i18n";
import {useEffect, useMemo, useRef, useState} from "react";
import {useSearchParams} from "next/navigation";

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/components/blog-post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {Card, CardFooter, CardBody, CardHeader, Link, Avatar, Image} from "@hero
import Balancer from "react-wrap-balancer";
import {format, parseISO} from "date-fns";
import NextLink from "next/link";
import {AnimatePresence, motion} from "framer-motion";
import {AnimatePresence, motion} from "@heroui/motion";
import {usePostHog} from "posthog-js/react";

import {useIsMounted} from "@/hooks/use-is-mounted";
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/components/blog/video-in-view.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable jsx-a11y/media-has-caption */
"use client";

import {useInView} from "framer-motion";
import {useInView} from "@heroui/motion";
import {useRef, FC, useEffect, useState, useCallback} from "react";
import {Button, cn, Spinner, Tooltip} from "@heroui/react";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import React, {useCallback, useMemo, useRef} from "react";
import dynamic from "next/dynamic";
import {Skeleton, Tab, Tabs} from "@heroui/react";
import {useInView} from "framer-motion";
import {useInView} from "@heroui/motion";

import {useCodeDemo, UseCodeDemoProps} from "./use-code-demo";
import WindowResizer, {WindowResizerProps} from "./window-resizer";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from "react";
import {LivePreview, LiveProvider, LiveError} from "react-live";
import {clsx} from "@heroui/shared-utils";
import * as HeroUI from "@heroui/react";
import * as intlDateUtils from "@internationalized/date";
import * as reactAriaI18n from "@react-aria/i18n";
import * as intlDateUtils from "@heroui/internationalized-date";
import * as reactAriaI18n from "@heroui/react-aria-i18n";
import * as reactHookFormBase from "react-hook-form";
import {SandpackFiles} from "@codesandbox/sandpack-react/types";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import {motion, useMotionValue, useTransform} from "framer-motion";
import {motion, useMotionValue, useTransform} from "@heroui/motion";
import {tv} from "tailwind-variants";

import {useIsMobile} from "@/hooks/use-media-query";
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/components/marketing/a11y-otb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
DropdownItem,
Tooltip,
} from "@heroui/react";
import {useInView} from "framer-motion";
import {useInView} from "@heroui/motion";
import {clsx} from "@heroui/shared-utils";
import {
AddNoteBulkIcon,
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/components/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {isAppleDevice} from "@react-aria/utils";
import {clsx} from "@heroui/shared-utils";
import NextLink from "next/link";
import {usePathname} from "next/navigation";
import {motion, AnimatePresence} from "framer-motion";
import {motion, AnimatePresence} from "@heroui/motion";
import {useEffect} from "react";
import {usePress} from "@react-aria/interactions";
import {useFocusRing} from "@react-aria/focus";
Expand Down
5 changes: 1 addition & 4 deletions apps/docs/components/sandpack/use-sandpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export const useSandpack = ({
}, {});

let dependencies = {
"framer-motion": "11.9.0",
"@heroui/react": "latest",
};

Expand Down Expand Up @@ -142,9 +141,7 @@ export const useSandpack = ({
// const hasComponents = !isEmpty(heroUIComponents);

// const dependencies = useMemo(() => {
// let deps = {
// "framer-motion": "11.9.0",
// };
// let deps = {};

// if (hasComponents) {
// let deps = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Autocomplete, AutocompleteItem} from "@heroui/react";
import {useFilter} from "@react-aria/i18n";
import {useFilter} from "@heroui/react-aria-i18n";

export const animals = [
{label: "Cat", key: "cat", description: "The second most popular pet in the world"},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import {Autocomplete, AutocompleteItem, MenuTriggerAction} from "@heroui/react";
import {useFilter} from "@react-aria/i18n";
import {useFilter} from "@heroui/react-aria-i18n";

export type FieldState = {
selectedKey: React.Key | null;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Calendar} from "@heroui/react";
import {today, getLocalTimeZone} from "@internationalized/date";
import {today, getLocalTimeZone} from "@heroui/internationalized-date";

export default function App() {
let defaultDate = today(getLocalTimeZone());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type {DateValue} from "@react-types/calendar";

import React from "react";
import {Calendar} from "@heroui/react";
import {today, getLocalTimeZone} from "@internationalized/date";
import {today, getLocalTimeZone} from "@heroui/internationalized-date";

export default function App() {
let defaultDate = today(getLocalTimeZone());
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/calendar/controlled.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Calendar} from "@heroui/react";
import {parseDate} from "@internationalized/date";
import {parseDate} from "@heroui/internationalized-date";

export default function App() {
let [value, setValue] = React.useState(parseDate("2024-03-07"));
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/calendar/controlled.raw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type {DateValue} from "@react-types/calendar";

import React from "react";
import {Calendar} from "@heroui/react";
import {parseDate} from "@internationalized/date";
import {parseDate} from "@heroui/internationalized-date";

export default function App() {
let [value, setValue] = React.useState<DateValue | null>(parseDate("2024-03-07"));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Calendar} from "@heroui/react";
import {I18nProvider} from "@react-aria/i18n";
import {I18nProvider} from "@heroui/react-aria-i18n";

export default function App() {
return (
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/content/components/calendar/invalid-date.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Calendar} from "@heroui/react";
import {today, getLocalTimeZone, isWeekend} from "@internationalized/date";
import {useLocale} from "@react-aria/i18n";
import {today, getLocalTimeZone, isWeekend} from "@heroui/internationalized-date";
import {useLocale} from "@heroui/react-aria-i18n";

export default function App() {
let [date, setDate] = React.useState(today(getLocalTimeZone()));
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/content/components/calendar/invalid-date.raw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import type {DateValue} from "@react-types/calendar";

import React from "react";
import {Calendar} from "@heroui/react";
import {today, getLocalTimeZone, isWeekend} from "@internationalized/date";
import {useLocale} from "@react-aria/i18n";
import {today, getLocalTimeZone, isWeekend} from "@heroui/internationalized-date";
import {useLocale} from "@heroui/react-aria-i18n";

export default function App() {
let [date, setDate] = React.useState<DateValue | null>(today(getLocalTimeZone()));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Calendar} from "@heroui/react";
import {today, getLocalTimeZone} from "@internationalized/date";
import {today, getLocalTimeZone} from "@heroui/internationalized-date";

export default function App() {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Calendar} from "@heroui/react";
import {today, getLocalTimeZone} from "@internationalized/date";
import {today, getLocalTimeZone} from "@heroui/internationalized-date";

export default function App() {
return (
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/content/components/calendar/presets.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Calendar, Radio, RadioGroup, Button, ButtonGroup, cn} from "@heroui/react";
import {today, getLocalTimeZone, startOfWeek, startOfMonth} from "@internationalized/date";
import {useLocale} from "@react-aria/i18n";
import {today, getLocalTimeZone, startOfWeek, startOfMonth} from "@heroui/internationalized-date";
import {useLocale} from "@heroui/react-aria-i18n";

export default function App() {
let defaultDate = today(getLocalTimeZone());
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/content/components/calendar/presets.raw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import type {DateValue} from "@react-types/calendar";

import React from "react";
import {Calendar, Radio, RadioGroup, Button, ButtonGroup, cn} from "@heroui/react";
import {today, getLocalTimeZone, startOfWeek, startOfMonth} from "@internationalized/date";
import {useLocale} from "@react-aria/i18n";
import {today, getLocalTimeZone, startOfWeek, startOfMonth} from "@heroui/internationalized-date";
import {useLocale} from "@heroui/react-aria-i18n";

export default function App() {
let defaultDate = today(getLocalTimeZone());
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/calendar/read-only.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Calendar} from "@heroui/react";
import {today, getLocalTimeZone} from "@internationalized/date";
import {today, getLocalTimeZone} from "@heroui/internationalized-date";

export default function App() {
return <Calendar isReadOnly aria-label="Date (Read Only)" value={today(getLocalTimeZone())} />;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Calendar} from "@heroui/react";
import {today, getLocalTimeZone, isWeekend} from "@internationalized/date";
import {useLocale} from "@react-aria/i18n";
import {today, getLocalTimeZone, isWeekend} from "@heroui/internationalized-date";
import {useLocale} from "@heroui/react-aria-i18n";

export default function App() {
let now = today(getLocalTimeZone());
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/calendar/usage.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Calendar} from "@heroui/react";
import {parseDate} from "@internationalized/date";
import {parseDate} from "@heroui/internationalized-date";

export default function App() {
return (
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/content/components/date-input/controlled.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {DateInput} from "@heroui/react";
import {parseDate, getLocalTimeZone} from "@internationalized/date";
import {useDateFormatter} from "@react-aria/i18n";
import {parseDate, getLocalTimeZone} from "@heroui/internationalized-date";
import {useDateFormatter} from "@heroui/react-aria-i18n";

export default function App() {
const [value, setValue] = React.useState(parseDate("2024-04-04"));
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/content/components/date-input/controlled.raw.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import {DateInput} from "@heroui/react";
import {DateValue, parseDate, getLocalTimeZone} from "@internationalized/date";
import {useDateFormatter} from "@react-aria/i18n";
import {DateValue, parseDate, getLocalTimeZone} from "@heroui/internationalized-date";
import {useDateFormatter} from "@heroui/react-aria-i18n";

export default function App() {
const [value, setValue] = React.useState<DateValue | null>(parseDate("2024-04-04"));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {DateInput} from "@heroui/react";
import {CalendarDate} from "@internationalized/date";
import {CalendarDate} from "@heroui/internationalized-date";

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/date-input/disabled.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {DateInput} from "@heroui/react";
import {CalendarDate, parseDate} from "@internationalized/date";
import {CalendarDate, parseDate} from "@heroui/internationalized-date";

export default function App() {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {DateInput} from "@heroui/react";
import {CalendarDate, parseDate} from "@internationalized/date";
import {CalendarDate, parseDate} from "@heroui/internationalized-date";

export default function App() {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {DateInput} from "@heroui/react";
import {CalendarDate, parseDate} from "@internationalized/date";
import {CalendarDate, parseDate} from "@heroui/internationalized-date";

export default function App() {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {DateInput} from "@heroui/react";
import {now, parseAbsoluteToLocal} from "@internationalized/date";
import {now, parseAbsoluteToLocal} from "@heroui/internationalized-date";

export default function App() {
let [date, setDate] = React.useState(parseAbsoluteToLocal("2021-04-07T18:45:22Z"));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import {DateInput} from "@heroui/react";
import {DateValue, now, parseAbsoluteToLocal} from "@internationalized/date";
import {DateValue, now, parseAbsoluteToLocal} from "@heroui/internationalized-date";

export default function App() {
let [date, setDate] = React.useState<DateValue | null>(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {DateInput} from "@heroui/react";
import {parseZonedDateTime} from "@internationalized/date";
import {parseZonedDateTime} from "@heroui/internationalized-date";

export default function App() {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {DateInput} from "@heroui/react";
import {parseZonedDateTime} from "@internationalized/date";
import {parseZonedDateTime} from "@heroui/internationalized-date";

export default function App() {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {DateInput} from "@heroui/react";
import {parseAbsoluteToLocal} from "@internationalized/date";
import {I18nProvider} from "@react-aria/i18n";
import {parseAbsoluteToLocal} from "@heroui/internationalized-date";
import {I18nProvider} from "@heroui/react-aria-i18n";

export default function App() {
const [date, setDate] = React.useState(parseAbsoluteToLocal("2021-04-07T18:45:22Z"));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import {DateInput} from "@heroui/react";
import {DateValue, parseAbsoluteToLocal} from "@internationalized/date";
import {I18nProvider} from "@react-aria/i18n";
import {DateValue, parseAbsoluteToLocal} from "@heroui/internationalized-date";
import {I18nProvider} from "@heroui/react-aria-i18n";

export default function App() {
const [date, setDate] = React.useState<DateValue | null>(
Expand Down
Loading