From 70001070a4e3bf4b01eb007ca32d81bec79f3078 Mon Sep 17 00:00:00 2001 From: Andy Hook Date: Wed, 20 Jul 2022 18:27:39 +0100 Subject: [PATCH 1/6] Revert announce filename and deprecate --- data/primitives/utilities/announce/{1.0.0.mdx => 0.1.5.mdx} | 2 ++ lib/primitivesRoutes.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) rename data/primitives/utilities/announce/{1.0.0.mdx => 0.1.5.mdx} (98%) diff --git a/data/primitives/utilities/announce/1.0.0.mdx b/data/primitives/utilities/announce/0.1.5.mdx similarity index 98% rename from data/primitives/utilities/announce/1.0.0.mdx rename to data/primitives/utilities/announce/0.1.5.mdx index fa1c76297..5e381fdce 100644 --- a/data/primitives/utilities/announce/1.0.0.mdx +++ b/data/primitives/utilities/announce/0.1.5.mdx @@ -15,6 +15,8 @@ aria: https://www.w3.org/TR/wai-aria-practices-1.2/#alert ]} /> +This package has been deprecated. + ## Installation Install the component from your command line. diff --git a/lib/primitivesRoutes.ts b/lib/primitivesRoutes.ts index 401d32435..0d46783c1 100644 --- a/lib/primitivesRoutes.ts +++ b/lib/primitivesRoutes.ts @@ -50,7 +50,7 @@ export const primitivesRoutes = [ label: 'Utilities', pages: [ { title: 'Accessible Icon', slug: 'docs/primitives/utilities/accessible-icon' }, - { title: 'Announce', slug: 'docs/primitives/utilities/announce' }, + { title: 'Announce', slug: 'docs/primitives/utilities/announce', deprecated: true }, { title: 'Direction Provider', slug: 'docs/primitives/utilities/direction-provider' }, { title: 'Id Provider', slug: 'docs/primitives/utilities/id-provider', deprecated: true }, { title: 'Polymorphic', slug: 'docs/primitives/utilities/polymorphic', deprecated: true }, From 30b3ae145dcbcb66a3cb5e98fca2828f1abd51b9 Mon Sep 17 00:00:00 2001 From: Andy Hook Date: Wed, 20 Jul 2022 18:28:07 +0100 Subject: [PATCH 2/6] Update data-highlighted description --- data/primitives/components/context-menu/1.0.0.mdx | 8 ++++---- data/primitives/components/dropdown-menu/1.0.0.mdx | 8 ++++---- data/primitives/components/select/1.0.0.mdx | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/data/primitives/components/context-menu/1.0.0.mdx b/data/primitives/components/context-menu/1.0.0.mdx index c196bca17..b3d3192ed 100644 --- a/data/primitives/components/context-menu/1.0.0.mdx +++ b/data/primitives/components/context-menu/1.0.0.mdx @@ -468,7 +468,7 @@ The component that contains the context menu items. data={[ { attribute: '[data-highlighted]', - values: 'Present when highlighted', + values: 'Present when focused', }, { attribute: '[data-disabled]', @@ -587,7 +587,7 @@ An item that can be controlled and rendered like a checkbox. }, { attribute: '[data-highlighted]', - values: 'Present when highlighted', + values: 'Present when focused', }, { attribute: '[data-disabled]', @@ -688,7 +688,7 @@ An item that can be controlled and rendered like a radio. }, { attribute: '[data-highlighted]', - values: 'Present when highlighted', + values: 'Present when focused', }, { attribute: '[data-disabled]', @@ -835,7 +835,7 @@ An item that opens a submenu. Must be rendered inside `ContextMenu.Sub`. }, { attribute: '[data-highlighted]', - values: 'Present when highlighted', + values: 'Present when focused', }, { attribute: '[data-disabled]', diff --git a/data/primitives/components/dropdown-menu/1.0.0.mdx b/data/primitives/components/dropdown-menu/1.0.0.mdx index b5a2cb263..5c08c5997 100644 --- a/data/primitives/components/dropdown-menu/1.0.0.mdx +++ b/data/primitives/components/dropdown-menu/1.0.0.mdx @@ -549,7 +549,7 @@ The component that contains the dropdown menu items. }, { attribute: '[data-highlighted]', - values: 'Present when highlighted', + values: 'Present when focused', }, { attribute: '[data-disabled]', @@ -668,7 +668,7 @@ An item that can be controlled and rendered like a checkbox. }, { attribute: '[data-highlighted]', - values: 'Present when highlighted', + values: 'Present when focused', }, { attribute: '[data-disabled]', @@ -769,7 +769,7 @@ An item that can be controlled and rendered like a radio. }, { attribute: '[data-highlighted]', - values: 'Present when highlighted', + values: 'Present when focused', }, { attribute: '[data-disabled]', @@ -916,7 +916,7 @@ An item that opens a submenu. Must be rendered inside `DropdownMenu.Sub`. }, { attribute: '[data-highlighted]', - values: 'Present when highlighted', + values: 'Present when focused', }, { attribute: '[data-disabled]', diff --git a/data/primitives/components/select/1.0.0.mdx b/data/primitives/components/select/1.0.0.mdx index 21947894d..096326e9c 100644 --- a/data/primitives/components/select/1.0.0.mdx +++ b/data/primitives/components/select/1.0.0.mdx @@ -388,7 +388,7 @@ The component that contains the select items. }, { attribute: '[data-highlighted]', - values: 'Present when highlighted', + values: 'Present when focused', }, { attribute: '[data-disabled]', From c247f46cc74d1c5139cd78edd423eb6f476289b1 Mon Sep 17 00:00:00 2001 From: Andy Hook Date: Wed, 20 Jul 2022 18:39:10 +0100 Subject: [PATCH 3/6] Release date consistency --- data/primitives/overview/releases.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/primitives/overview/releases.mdx b/data/primitives/overview/releases.mdx index 329cc44fa..724955f20 100644 --- a/data/primitives/overview/releases.mdx +++ b/data/primitives/overview/releases.mdx @@ -7,7 +7,7 @@ metaDescription: Radix Primitives releases and their changelogs. Radix Primitives releases and their changelogs. -## July 21st, 2022 +## July 21, 2022 With this release, we start following semantic versioning strictly. All primitives are now versioned 1.0.0. From ec773d4b31d0fdeea73930669802aabad8651345 Mon Sep 17 00:00:00 2001 From: Andy Hook Date: Wed, 20 Jul 2022 18:44:06 +0100 Subject: [PATCH 4/6] Revert "Update data-highlighted description" This reverts commit 30b3ae145dcbcb66a3cb5e98fca2828f1abd51b9. --- data/primitives/components/context-menu/1.0.0.mdx | 8 ++++---- data/primitives/components/dropdown-menu/1.0.0.mdx | 8 ++++---- data/primitives/components/select/1.0.0.mdx | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/data/primitives/components/context-menu/1.0.0.mdx b/data/primitives/components/context-menu/1.0.0.mdx index b3d3192ed..c196bca17 100644 --- a/data/primitives/components/context-menu/1.0.0.mdx +++ b/data/primitives/components/context-menu/1.0.0.mdx @@ -468,7 +468,7 @@ The component that contains the context menu items. data={[ { attribute: '[data-highlighted]', - values: 'Present when focused', + values: 'Present when highlighted', }, { attribute: '[data-disabled]', @@ -587,7 +587,7 @@ An item that can be controlled and rendered like a checkbox. }, { attribute: '[data-highlighted]', - values: 'Present when focused', + values: 'Present when highlighted', }, { attribute: '[data-disabled]', @@ -688,7 +688,7 @@ An item that can be controlled and rendered like a radio. }, { attribute: '[data-highlighted]', - values: 'Present when focused', + values: 'Present when highlighted', }, { attribute: '[data-disabled]', @@ -835,7 +835,7 @@ An item that opens a submenu. Must be rendered inside `ContextMenu.Sub`. }, { attribute: '[data-highlighted]', - values: 'Present when focused', + values: 'Present when highlighted', }, { attribute: '[data-disabled]', diff --git a/data/primitives/components/dropdown-menu/1.0.0.mdx b/data/primitives/components/dropdown-menu/1.0.0.mdx index 5c08c5997..b5a2cb263 100644 --- a/data/primitives/components/dropdown-menu/1.0.0.mdx +++ b/data/primitives/components/dropdown-menu/1.0.0.mdx @@ -549,7 +549,7 @@ The component that contains the dropdown menu items. }, { attribute: '[data-highlighted]', - values: 'Present when focused', + values: 'Present when highlighted', }, { attribute: '[data-disabled]', @@ -668,7 +668,7 @@ An item that can be controlled and rendered like a checkbox. }, { attribute: '[data-highlighted]', - values: 'Present when focused', + values: 'Present when highlighted', }, { attribute: '[data-disabled]', @@ -769,7 +769,7 @@ An item that can be controlled and rendered like a radio. }, { attribute: '[data-highlighted]', - values: 'Present when focused', + values: 'Present when highlighted', }, { attribute: '[data-disabled]', @@ -916,7 +916,7 @@ An item that opens a submenu. Must be rendered inside `DropdownMenu.Sub`. }, { attribute: '[data-highlighted]', - values: 'Present when focused', + values: 'Present when highlighted', }, { attribute: '[data-disabled]', diff --git a/data/primitives/components/select/1.0.0.mdx b/data/primitives/components/select/1.0.0.mdx index 096326e9c..21947894d 100644 --- a/data/primitives/components/select/1.0.0.mdx +++ b/data/primitives/components/select/1.0.0.mdx @@ -388,7 +388,7 @@ The component that contains the select items. }, { attribute: '[data-highlighted]', - values: 'Present when focused', + values: 'Present when highlighted', }, { attribute: '[data-disabled]', From 80d4c01b60187b2b0da96a5c48878168d577842e Mon Sep 17 00:00:00 2001 From: Andy Hook Date: Wed, 20 Jul 2022 19:10:33 +0100 Subject: [PATCH 5/6] Tweak realease note order --- data/primitives/overview/releases.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/primitives/overview/releases.mdx b/data/primitives/overview/releases.mdx index 724955f20..2cc905489 100644 --- a/data/primitives/overview/releases.mdx +++ b/data/primitives/overview/releases.mdx @@ -15,8 +15,8 @@ We also move the [`Select`](../components/select), [`Toast`](../components/toast -- [**Breaking**] Improve RTL performance. You need to use [`DirectionProvider`](../utilities/direction-provider) if you were relying on `dir` attribute inheritance from document (or any element). - Improve support for React 18 +- [**Breaking**] Improve RTL performance. You need to use [`DirectionProvider`](../utilities/direction-provider) if you were relying on `dir` attribute inheritance from document (or any element). From ad52ca3e4200401c7e5a751faaf58ac07222f458 Mon Sep 17 00:00:00 2001 From: Andy Hook Date: Wed, 20 Jul 2022 19:15:09 +0100 Subject: [PATCH 6/6] Update release tags to major --- data/primitives/overview/releases.mdx | 32 +++++++++++++-------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/data/primitives/overview/releases.mdx b/data/primitives/overview/releases.mdx index 2cc905489..df4e8c5ee 100644 --- a/data/primitives/overview/releases.mdx +++ b/data/primitives/overview/releases.mdx @@ -9,7 +9,7 @@ metaDescription: Radix Primitives releases and their changelogs. ## July 21, 2022 -With this release, we start following semantic versioning strictly. All primitives are now versioned 1.0.0. +With this release, we start following semantic versioning strictly. All primitives are now versioned 1.0.0. We also move the [`Select`](../components/select), [`Toast`](../components/toast) and [`NavigationMenu`](../components/navigation-menu) from beta to stable. @@ -18,13 +18,13 @@ We also move the [`Select`](../components/select), [`Toast`](../components/toast - Improve support for React 18 - [**Breaking**] Improve RTL performance. You need to use [`DirectionProvider`](../utilities/direction-provider) if you were relying on `dir` attribute inheritance from document (or any element). - + - [**Breaking**] Remove `allowPinchZoom` prop, now defaults to `true` - Improve compatibility with JS animation libraries with `forceMount` on `AlertDialog.Portal` - Fix regressions with page interactivity while/after closing dialog - + - [**Breaking**] Improve indirect nesting of context menus. Submenus must now be created using explicit parts. - [**Breaking**] Remove `allowPinchZoom` prop, now defaults to `true` @@ -36,13 +36,13 @@ We also move the [`Select`](../components/select), [`Toast`](../components/toast - Add `data-state` attribute to `Trigger` part - Add `collisionBoundary`, `arrowPadding`, `sticky`, `hideWhenDetached` props on `Content` part - + - [**Breaking**] Remove `allowPinchZoom` prop, now defaults to `true` - Improve compatibility with JS animation libraries with `forceMount` on `Dialog.Portal` - Fix regressions with page interactivity while/after closing dialog - + - [**Breaking**] Improve indirect nesting of dropdown menus. Submenus must now be created using explicit parts. - [**Breaking**] Remove `allowPinchZoom` prop, now defaults to `true` @@ -53,19 +53,19 @@ We also move the [`Select`](../components/select), [`Toast`](../components/toast - Prevent escape key from exiting fullscreen mode in Firefox & Safari - Add `collisionBoundary`, `arrowPadding`, `sticky`, `hideWhenDetached` props on `Content` part - + - [**Breaking**] Add new `Portal` part. To avoid regressions, use this part if you want portalling behavior. Note that `z-index` isn't managed anymore so you have full control of layering. - [**Breaking**] Remove `offset` on `Arrow` part - [**Breaking**] Rename `collisionTolerance` to `collisionPadding` on `Content` part and accepts a number or a padding object - Add `collisionBoundary`, `arrowPadding`, `sticky`, `hideWhenDetached` props on `Content` part - + - Ensure menu closes after clicking `NavigationMenu.Link` - Add `onSelect` prop to `NavigationMenu.Link` - + - [**Breaking**] Remove `allowPinchZoom` prop, now defaults to `true` - [**Breaking**] Add new `Portal` part. To avoid regressions, use this part if you want portalling behavior. Note that `z-index` isn't managed anymore so you have full control of layering. @@ -73,19 +73,19 @@ We also move the [`Select`](../components/select), [`Toast`](../components/toast - [**Breaking**] Rename `collisionTolerance` to `collisionPadding` on `Content` part and accepts a number or a padding object - Add `collisionBoundary`, `arrowPadding`, `sticky`, `hideWhenDetached` props on `Content` part - + - [**Breaking**] Note that `z-index` isn't managed anymore so you have full control of layering. The prop to provide a custom container evolves from `containerRef` (ref) to `container` (element). The `data-radix-portal` was removed because you can use `asChild` to control the element. - + - Add `aria-required` to root - + - `ScrollArea.Thumb` is now animatable - + - [**Breaking**] Renamed `data-state` values from `active|inactive` to `checked|unchecked` - [**Breaking**] Add new `Portal` part. To avoid regressions, use this part if you want portalling behavior. Note that `z-index` isn't managed anymore so you have full control of layering. @@ -97,22 +97,22 @@ We also move the [`Select`](../components/select), [`Toast`](../components/toast - Add support for placeholder via `placeholder` prop on `Select.Value` - Resolve value mismatch with underlying native select - + - Fix issue with children ordering when using `Slottable` - + - Add support for lifecycle animation to `Tabs.Content` - + - [**Breaking**] The default toast order has changed, they now render top to bottom from oldest to newest - Improve Typescript types when using `asChild` - Fix issue with toast reordering when updating React's `key` prop - Improve compatability with animation libraries - + - [**Breaking**] Add new `Portal` part. To avoid regressions, use this part if you want portalling behavior. Note that `z-index` isn't managed anymore so you have full control of layering. - [**Breaking**] By default `Tooltip.Content` will remain open when hovering (WCAG 2.1 Content on Hover compliance). `disableHoverableContent` can be supplied to `Tooltip.Provider` to restore previous behavior