diff --git a/packages/components/news/8006.feature b/packages/components/news/8006.feature new file mode 100644 index 00000000000..459e0e672a5 --- /dev/null +++ b/packages/components/news/8006.feature @@ -0,0 +1 @@ +Use plone components for date/time widgets @tedw87 \ No newline at end of file diff --git a/packages/volto/news/8006.feature b/packages/volto/news/8006.feature new file mode 100644 index 00000000000..f905bd658b5 --- /dev/null +++ b/packages/volto/news/8006.feature @@ -0,0 +1 @@ +Replace DatetimeWidget and TimeWidget with react-aria-components from @plone/components, removing moment.js dependency from these widgets. @tedw87 diff --git a/packages/volto/package.json b/packages/volto/package.json index 73a1eee78f2..22e8429474c 100644 --- a/packages/volto/package.json +++ b/packages/volto/package.json @@ -117,6 +117,7 @@ "node": "^22 || ^24" }, "dependencies": { + "@internationalized/date": "^3.10.1", "@dnd-kit/core": "6.0.8", "@dnd-kit/sortable": "7.0.2", "@dnd-kit/utilities": "3.2.2", @@ -163,6 +164,7 @@ "query-string": "^9.0.0", "rc-time-picker": "3.7.3", "react": "18.2.0", + "react-aria-components": "^1.14.0", "react-anchor-link-smooth-scroll": "1.0.12", "react-animate-height": "2.0.17", "react-beautiful-dnd": "13.0.0", diff --git a/packages/volto/src/components/manage/Controlpanels/__snapshots__/Aliases.test.jsx.snap b/packages/volto/src/components/manage/Controlpanels/__snapshots__/Aliases.test.jsx.snap index 74fc1976763..5b9f8d65875 100644 --- a/packages/volto/src/components/manage/Controlpanels/__snapshots__/Aliases.test.jsx.snap +++ b/packages/volto/src/components/manage/Controlpanels/__snapshots__/Aliases.test.jsx.snap @@ -192,10 +192,364 @@ exports[`Aliases > renders an aliases control component 1`] = `
+ > +