From 6ad3fdd30dbd6a7a288a2148e44c8e4c28f7c47a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Gr=C3=A9lard?= Date: Wed, 25 May 2022 17:11:35 +0100 Subject: [PATCH 1/2] Document latest select fix --- data/primitives/overview/releases.mdx | 1 + package.json | 2 +- yarn.lock | 181 +++++++++++++++++++++++--- 3 files changed, 164 insertions(+), 20 deletions(-) diff --git a/data/primitives/overview/releases.mdx b/data/primitives/overview/releases.mdx index eeb6a0731..d79677a35 100644 --- a/data/primitives/overview/releases.mdx +++ b/data/primitives/overview/releases.mdx @@ -59,6 +59,7 @@ metaDescription: Radix Primitives releases and their changelogs. - Add `data-highlighted` attribute to support styling - [**Breaking**] Renamed `data-state` values from `active|inactive` to `checked|unchecked` - Add support for placeholder via `placeholder` prop on `Select.Value` +- Resolve mismatch with underlying native select diff --git a/package.json b/package.json index b808f1ab2..03b976cca 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "@radix-ui/react-progress": "0.1.5-rc.22", "@radix-ui/react-radio-group": "0.1.6-rc.25", "@radix-ui/react-scroll-area": "0.1.5-rc.25", - "@radix-ui/react-select": "0.1.2-rc.31", + "@radix-ui/react-select": "0.1.2-rc.34", "@radix-ui/react-separator": "0.1.5-rc.22", "@radix-ui/react-slider": "0.1.5-rc.25", "@radix-ui/react-slot": "0.1.3-rc.22", diff --git a/yarn.lock b/yarn.lock index f0ca5c03c..4c2780527 100644 --- a/yarn.lock +++ b/yarn.lock @@ -653,6 +653,17 @@ "@radix-ui/react-primitive" "0.1.5-rc.22" "@radix-ui/react-slot" "0.1.3-rc.22" +"@radix-ui/react-collection@0.1.5-rc.25": + version "0.1.5-rc.25" + resolved "https://registry.yarnpkg.com/@radix-ui/react-collection/-/react-collection-0.1.5-rc.25.tgz#8422941bf087edb7cec4a8eb390ff1197c063f35" + integrity sha512-TbgBeE7ZKGnrkAI/k7Xa9fU0/bAxmlxpL4zW8qvSLKgfBOhcCYJbxA25QueyhUCpIqAFYUM04NYvBd/ZRIuAfA== + dependencies: + "@babel/runtime" "^7.13.10" + "@radix-ui/react-compose-refs" "0.1.1-rc.25" + "@radix-ui/react-context" "0.1.2-rc.25" + "@radix-ui/react-primitive" "0.1.5-rc.25" + "@radix-ui/react-slot" "0.1.3-rc.25" + "@radix-ui/react-compose-refs@0.1.0": version "0.1.0" resolved "https://registry.yarnpkg.com/@radix-ui/react-compose-refs/-/react-compose-refs-0.1.0.tgz#cff6e780a0f73778b976acff2c2a5b6551caab95" @@ -667,6 +678,13 @@ dependencies: "@babel/runtime" "^7.13.10" +"@radix-ui/react-compose-refs@0.1.1-rc.25": + version "0.1.1-rc.25" + resolved "https://registry.yarnpkg.com/@radix-ui/react-compose-refs/-/react-compose-refs-0.1.1-rc.25.tgz#08a4e868c2dc5354497c5b7bece8e2eb63d4b5ed" + integrity sha512-dIaaj1BSNbkdT+KdKwl1/5e0BIJ+9JpxJPPS7PVGK9sFgBeEUslSWfe8Xv9/YWazohdVaVhjzfcMkiWumaZnLQ== + dependencies: + "@babel/runtime" "^7.13.10" + "@radix-ui/react-context-menu@0.1.1": version "0.1.1" resolved "https://registry.yarnpkg.com/@radix-ui/react-context-menu/-/react-context-menu-0.1.1.tgz#1b87478ba741a812505c87df74a7a8aabdc3e5f9" @@ -706,6 +724,13 @@ dependencies: "@babel/runtime" "^7.13.10" +"@radix-ui/react-context@0.1.2-rc.25": + version "0.1.2-rc.25" + resolved "https://registry.yarnpkg.com/@radix-ui/react-context/-/react-context-0.1.2-rc.25.tgz#f1d69bf20e43b9847966eb865c647229898125b1" + integrity sha512-pNf18ExYtKYmm2l8TSS851TcEJS66sTKSpsY9j9EiCqZqWa18ECIa7eljYXGCt00qIPmcxdmzIGHEu/rxqyI+g== + dependencies: + "@babel/runtime" "^7.13.10" + "@radix-ui/react-dialog@0.1.1": version "0.1.1" resolved "https://registry.yarnpkg.com/@radix-ui/react-dialog/-/react-dialog-0.1.1.tgz#515bcda3ab6a3a9b1cc20237eedc38b6c5921a7d" @@ -754,6 +779,13 @@ dependencies: "@babel/runtime" "^7.13.10" +"@radix-ui/react-direction@0.1.0-rc.28": + version "0.1.0-rc.28" + resolved "https://registry.yarnpkg.com/@radix-ui/react-direction/-/react-direction-0.1.0-rc.28.tgz#28a6ac9a2b144577347626ad289fcf67b085a1be" + integrity sha512-zHzciNllEpd3olxQZxwn1FSmCqCQ4hFio8AotVDYkZY0V7Wgz78YP0VAUdQA/D2XU4Y9JAZ4Q2v5/UsEg1WIbA== + dependencies: + "@babel/runtime" "^7.13.10" + "@radix-ui/react-dismissable-layer@0.1.1": version "0.1.1" resolved "https://registry.yarnpkg.com/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-0.1.1.tgz#1be9d1c6945b27a69dfd6742928904a526d1d345" @@ -779,6 +811,18 @@ "@radix-ui/react-use-callback-ref" "0.1.1-rc.22" "@radix-ui/react-use-escape-keydown" "0.1.1-rc.22" +"@radix-ui/react-dismissable-layer@0.1.6-rc.25": + version "0.1.6-rc.25" + resolved "https://registry.yarnpkg.com/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-0.1.6-rc.25.tgz#359129df209dd26ebabf4c11530a368a2c776738" + integrity sha512-sLza1HCvK/wNX03dzfnPQsEW5n/Zmm/5IoLeBJwbYtm7vzQwuLHPQJtgET7Lp3nXzQYobdZ/Q+Cht019yT1rjQ== + dependencies: + "@babel/runtime" "^7.13.10" + "@radix-ui/primitive" "0.1.0" + "@radix-ui/react-compose-refs" "0.1.1-rc.25" + "@radix-ui/react-primitive" "0.1.5-rc.25" + "@radix-ui/react-use-callback-ref" "0.1.1-rc.25" + "@radix-ui/react-use-escape-keydown" "0.1.1-rc.25" + "@radix-ui/react-dropdown-menu@0.1.1": version "0.1.1" resolved "https://registry.yarnpkg.com/@radix-ui/react-dropdown-menu/-/react-dropdown-menu-0.1.1.tgz#a596ff9f37e1eeb11f337bec3d7bf5763e059dfb" @@ -841,6 +885,16 @@ "@radix-ui/react-primitive" "0.1.5-rc.22" "@radix-ui/react-use-callback-ref" "0.1.1-rc.22" +"@radix-ui/react-focus-scope@0.1.5-rc.25": + version "0.1.5-rc.25" + resolved "https://registry.yarnpkg.com/@radix-ui/react-focus-scope/-/react-focus-scope-0.1.5-rc.25.tgz#b8e324bf14e0e6109eb69d5c2e6ddb6574ab195b" + integrity sha512-T2VG0SEPu5H9UoChKfWyZxKio1astURiJBEXQqwUhvdqhAodZfuSFLzEmGibI2Oa5gqKmhTaS3CN33/J66YtQg== + dependencies: + "@babel/runtime" "^7.13.10" + "@radix-ui/react-compose-refs" "0.1.1-rc.25" + "@radix-ui/react-primitive" "0.1.5-rc.25" + "@radix-ui/react-use-callback-ref" "0.1.1-rc.25" + "@radix-ui/react-hover-card@0.1.6-rc.22": version "0.1.6-rc.22" resolved "https://registry.yarnpkg.com/@radix-ui/react-hover-card/-/react-hover-card-0.1.6-rc.22.tgz#a61147ee37e385e48bb91c6bf0c08a931f01b55b" @@ -883,6 +937,14 @@ "@babel/runtime" "^7.13.10" "@radix-ui/react-use-layout-effect" "0.1.1-rc.22" +"@radix-ui/react-id@0.1.6-rc.25": + version "0.1.6-rc.25" + resolved "https://registry.yarnpkg.com/@radix-ui/react-id/-/react-id-0.1.6-rc.25.tgz#6e94f17e95d9c73503cf49eb3fb4d203b6b467aa" + integrity sha512-oGMDAgMHlKm9cI36HRiNUbrlz5BKqTX/6v174ZKPBfdPuPfzTIPPpHJWRUTLhVjCvBmdZbWb9ZVAOhvZvK+C9Q== + dependencies: + "@babel/runtime" "^7.13.10" + "@radix-ui/react-use-layout-effect" "0.1.1-rc.25" + "@radix-ui/react-label@0.1.1": version "0.1.1" resolved "https://registry.yarnpkg.com/@radix-ui/react-label/-/react-label-0.1.1.tgz#c2970b19214248c2b3a0425c3c0d299290b559a5" @@ -905,6 +967,17 @@ "@radix-ui/react-id" "0.1.6-rc.22" "@radix-ui/react-primitive" "0.1.5-rc.22" +"@radix-ui/react-label@0.1.6-rc.25": + version "0.1.6-rc.25" + resolved "https://registry.yarnpkg.com/@radix-ui/react-label/-/react-label-0.1.6-rc.25.tgz#c782e26c88912b28852dec25e5278a265e7103d8" + integrity sha512-DDtpJG/EVkMlR/qVkujKPauh4jt0gOtol4CLIH+wbGJBTyOZ9N+8gobD1EZP33fHI5Ukn18SjWI6V7KYvh8XVw== + dependencies: + "@babel/runtime" "^7.13.10" + "@radix-ui/react-compose-refs" "0.1.1-rc.25" + "@radix-ui/react-context" "0.1.2-rc.25" + "@radix-ui/react-id" "0.1.6-rc.25" + "@radix-ui/react-primitive" "0.1.5-rc.25" + "@radix-ui/react-menu@0.1.1": version "0.1.1" resolved "https://registry.yarnpkg.com/@radix-ui/react-menu/-/react-menu-0.1.1.tgz#2146352813ac086df5f021d06bce10f7f56d2577" @@ -1064,6 +1137,15 @@ "@radix-ui/react-primitive" "0.1.5-rc.22" "@radix-ui/react-use-layout-effect" "0.1.1-rc.22" +"@radix-ui/react-portal@0.1.5-rc.25": + version "0.1.5-rc.25" + resolved "https://registry.yarnpkg.com/@radix-ui/react-portal/-/react-portal-0.1.5-rc.25.tgz#f58bea7c8475c4cadc38e5d9e9b65eeb35889848" + integrity sha512-xsnIuid09aFh/SO2P+5MZd6yg87ptiRB8v3PybOp4trrk8MPzc9+jrGOqYOPFt3TokKgljZILqWrxbUtZdhzPQ== + dependencies: + "@babel/runtime" "^7.13.10" + "@radix-ui/react-primitive" "0.1.5-rc.25" + "@radix-ui/react-use-layout-effect" "0.1.1-rc.25" + "@radix-ui/react-presence@0.1.1": version "0.1.1" resolved "https://registry.yarnpkg.com/@radix-ui/react-presence/-/react-presence-0.1.1.tgz#2088dec6f4f8042f83dd2d6bf9e8ef09dadbbc15" @@ -1098,6 +1180,14 @@ "@babel/runtime" "^7.13.10" "@radix-ui/react-slot" "0.1.3-rc.22" +"@radix-ui/react-primitive@0.1.5-rc.25": + version "0.1.5-rc.25" + resolved "https://registry.yarnpkg.com/@radix-ui/react-primitive/-/react-primitive-0.1.5-rc.25.tgz#5e4a7d5b894620d7a467949a820ff85cf20e71bb" + integrity sha512-phEIb5ZZdQUCdqKXhpW42Q9J9uDYX3XW/P++jKkT7eJXH8bK5uusrnJAVnGHUXZ3lvtn8msm4R8QYOG6sNe0iw== + dependencies: + "@babel/runtime" "^7.13.10" + "@radix-ui/react-slot" "0.1.3-rc.25" + "@radix-ui/react-progress@0.1.1": version "0.1.1" resolved "https://registry.yarnpkg.com/@radix-ui/react-progress/-/react-progress-0.1.1.tgz#37e98cd1a933b75f456d2c3337daee744458b9bd" @@ -1198,29 +1288,29 @@ "@radix-ui/react-use-callback-ref" "0.1.1-rc.22" "@radix-ui/react-use-layout-effect" "0.1.1-rc.22" -"@radix-ui/react-select@0.1.2-rc.31": - version "0.1.2-rc.31" - resolved "https://registry.yarnpkg.com/@radix-ui/react-select/-/react-select-0.1.2-rc.31.tgz#fecb56c378dd440bac44e9c4f96317e7c0039b69" - integrity sha512-rWCRCGPXWubZ9d3V6faPg9MwV8dS2aQY2ux2Bm4fXrQsDO35kiikbBp1ppzbp9QKSTrAXtEBCmNDfdpc8odqJQ== +"@radix-ui/react-select@0.1.2-rc.34": + version "0.1.2-rc.34" + resolved "https://registry.yarnpkg.com/@radix-ui/react-select/-/react-select-0.1.2-rc.34.tgz#621a1db41d2e4837e3d3e37b32b946f9e753bb34" + integrity sha512-b4qqMjHTm4TrBUv2zOuu4vjrZfuD2sPOLPOhbLvsMcDcWSI+UbtOVPwXgInkaB1JBDECw5U8YNgB6E18YnlnIw== dependencies: "@babel/runtime" "^7.13.10" "@radix-ui/number" "0.1.0" "@radix-ui/primitive" "0.1.0" - "@radix-ui/react-collection" "0.1.5-rc.22" - "@radix-ui/react-compose-refs" "0.1.1-rc.22" - "@radix-ui/react-context" "0.1.2-rc.22" - "@radix-ui/react-direction" "0.1.0-rc.25" - "@radix-ui/react-dismissable-layer" "0.1.6-rc.22" - "@radix-ui/react-focus-scope" "0.1.5-rc.22" - "@radix-ui/react-id" "0.1.6-rc.22" - "@radix-ui/react-label" "0.1.6-rc.22" - "@radix-ui/react-portal" "0.1.5-rc.22" - "@radix-ui/react-primitive" "0.1.5-rc.22" - "@radix-ui/react-use-callback-ref" "0.1.1-rc.22" - "@radix-ui/react-use-controllable-state" "0.1.1-rc.22" - "@radix-ui/react-use-layout-effect" "0.1.1-rc.22" - "@radix-ui/react-use-previous" "0.1.2-rc.22" - "@radix-ui/react-visually-hidden" "0.1.5-rc.22" + "@radix-ui/react-collection" "0.1.5-rc.25" + "@radix-ui/react-compose-refs" "0.1.1-rc.25" + "@radix-ui/react-context" "0.1.2-rc.25" + "@radix-ui/react-direction" "0.1.0-rc.28" + "@radix-ui/react-dismissable-layer" "0.1.6-rc.25" + "@radix-ui/react-focus-scope" "0.1.5-rc.25" + "@radix-ui/react-id" "0.1.6-rc.25" + "@radix-ui/react-label" "0.1.6-rc.25" + "@radix-ui/react-portal" "0.1.5-rc.25" + "@radix-ui/react-primitive" "0.1.5-rc.25" + "@radix-ui/react-use-callback-ref" "0.1.1-rc.25" + "@radix-ui/react-use-controllable-state" "0.1.1-rc.25" + "@radix-ui/react-use-layout-effect" "0.1.1-rc.25" + "@radix-ui/react-use-previous" "0.1.2-rc.25" + "@radix-ui/react-visually-hidden" "0.1.5-rc.25" aria-hidden "^1.1.1" react-remove-scroll "^2.4.0" @@ -1292,6 +1382,14 @@ "@babel/runtime" "^7.13.10" "@radix-ui/react-compose-refs" "0.1.1-rc.22" +"@radix-ui/react-slot@0.1.3-rc.25": + version "0.1.3-rc.25" + resolved "https://registry.yarnpkg.com/@radix-ui/react-slot/-/react-slot-0.1.3-rc.25.tgz#d74eff9eca4ee16c0ede2e1c5945277cc714f293" + integrity sha512-dEJxpgq/vr+jdN1RySdV2lqy5nPryXpB249zCbbn/vqoekpjyEFcwJDFDD+DeXg2LQeKZGFu9Rnszz73VZp4uQ== + dependencies: + "@babel/runtime" "^7.13.10" + "@radix-ui/react-compose-refs" "0.1.1-rc.25" + "@radix-ui/react-switch@0.1.1": version "0.1.1" resolved "https://registry.yarnpkg.com/@radix-ui/react-switch/-/react-switch-0.1.1.tgz#a60090a26387fc018feecb0eb8ae108e2d693472" @@ -1480,6 +1578,13 @@ dependencies: "@babel/runtime" "^7.13.10" +"@radix-ui/react-use-callback-ref@0.1.1-rc.25": + version "0.1.1-rc.25" + resolved "https://registry.yarnpkg.com/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-0.1.1-rc.25.tgz#6246f531c976cbd662ca164c175e8b8335c43ca7" + integrity sha512-+0A5yx+oCW7fOJjPNS4KHCwe/gvlRWP1YMmR1PeJoFKMKFNLfnE4u9Lnh0fT+PaO426HOfyB/jMOKbHa6mIYMw== + dependencies: + "@babel/runtime" "^7.13.10" + "@radix-ui/react-use-controllable-state@0.1.0": version "0.1.0" resolved "https://registry.yarnpkg.com/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-0.1.0.tgz#4fced164acfc69a4e34fb9d193afdab973a55de1" @@ -1496,6 +1601,14 @@ "@babel/runtime" "^7.13.10" "@radix-ui/react-use-callback-ref" "0.1.1-rc.22" +"@radix-ui/react-use-controllable-state@0.1.1-rc.25": + version "0.1.1-rc.25" + resolved "https://registry.yarnpkg.com/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-0.1.1-rc.25.tgz#5a5da54014f7dbd2636160073b6feef529714acb" + integrity sha512-pVN1GGWpdiXUxZHz5C14udCFg+nEvQWNw1rC0Z9ardoxMAJ5tlb+LyqAs4c2/LGEagT2RW5krMP+yw1wYvAKZg== + dependencies: + "@babel/runtime" "^7.13.10" + "@radix-ui/react-use-callback-ref" "0.1.1-rc.25" + "@radix-ui/react-use-direction@0.1.0": version "0.1.0" resolved "https://registry.yarnpkg.com/@radix-ui/react-use-direction/-/react-use-direction-0.1.0.tgz#97ac1d52e497c974389e7988f809238ed72e7df7" @@ -1519,6 +1632,14 @@ "@babel/runtime" "^7.13.10" "@radix-ui/react-use-callback-ref" "0.1.1-rc.22" +"@radix-ui/react-use-escape-keydown@0.1.1-rc.25": + version "0.1.1-rc.25" + resolved "https://registry.yarnpkg.com/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-0.1.1-rc.25.tgz#6a86b23b571fb007b99242f4a2352f7d2ad39f8b" + integrity sha512-GcfmJXo77UsnViVPmxZICb6tMgEIZ5D+Tw6/BmdNuM/sEuTONHIjxSc9IGCS25J6daHjT5us6pMzNwHZA5VUFQ== + dependencies: + "@babel/runtime" "^7.13.10" + "@radix-ui/react-use-callback-ref" "0.1.1-rc.25" + "@radix-ui/react-use-layout-effect@0.1.0": version "0.1.0" resolved "https://registry.yarnpkg.com/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-0.1.0.tgz#ebf71bd6d2825de8f1fbb984abf2293823f0f223" @@ -1533,6 +1654,13 @@ dependencies: "@babel/runtime" "^7.13.10" +"@radix-ui/react-use-layout-effect@0.1.1-rc.25": + version "0.1.1-rc.25" + resolved "https://registry.yarnpkg.com/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-0.1.1-rc.25.tgz#6825a72d412c83f5a5708f556db6748d5e91faef" + integrity sha512-MRa0W5JBvgDv1djQ8vKb0HIiCHsAPlXM+xoMPKmCDQ+0MpV/RTUhV6P/ybRtD0K/i6sNdg8GrIlCsctl7VMxlg== + dependencies: + "@babel/runtime" "^7.13.10" + "@radix-ui/react-use-previous@0.1.0": version "0.1.0" resolved "https://registry.yarnpkg.com/@radix-ui/react-use-previous/-/react-use-previous-0.1.0.tgz#fed880d41187d0fdd1e19c4588402765f342777e" @@ -1547,6 +1675,13 @@ dependencies: "@babel/runtime" "^7.13.10" +"@radix-ui/react-use-previous@0.1.2-rc.25": + version "0.1.2-rc.25" + resolved "https://registry.yarnpkg.com/@radix-ui/react-use-previous/-/react-use-previous-0.1.2-rc.25.tgz#6244bc4c5bf7a2b2c3eae8e625e8e2d4df9f6a32" + integrity sha512-Fl2U+r+/QgxZhUNp9fwPYGSU+5+lQGwq3jPTF9fxByUPjXGZLFx7/4H3TiN5HpmapswLRdjeI5OoGdzPoMVoyg== + dependencies: + "@babel/runtime" "^7.13.10" + "@radix-ui/react-use-rect@0.1.1": version "0.1.1" resolved "https://registry.yarnpkg.com/@radix-ui/react-use-rect/-/react-use-rect-0.1.1.tgz#6c15384beee59c086e75b89a7e66f3d2e583a856" @@ -1593,6 +1728,14 @@ "@babel/runtime" "^7.13.10" "@radix-ui/react-primitive" "0.1.5-rc.22" +"@radix-ui/react-visually-hidden@0.1.5-rc.25": + version "0.1.5-rc.25" + resolved "https://registry.yarnpkg.com/@radix-ui/react-visually-hidden/-/react-visually-hidden-0.1.5-rc.25.tgz#c65675a4b988b11180924f66bc5dae98db1b16bf" + integrity sha512-8Y8owgzCtbYxcAhkZkIidrdNh6zXdznsxLFn3w7Ak0tt7RiDg+2PdxaxpJcS6U89KVcMBlReJq4ZbDOhtTxrgw== + dependencies: + "@babel/runtime" "^7.13.10" + "@radix-ui/react-primitive" "0.1.5-rc.25" + "@radix-ui/rect@0.1.1": version "0.1.1" resolved "https://registry.yarnpkg.com/@radix-ui/rect/-/rect-0.1.1.tgz#95b5ba51f469bea6b1b841e2d427e17e37d38419" From 9b7b07cb95afe5d1b9e167fd23be47507e9b4e74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Gr=C3=A9lard?= Date: Wed, 25 May 2022 17:18:30 +0100 Subject: [PATCH 2/2] Update data/primitives/overview/releases.mdx Co-authored-by: Andy Hook --- 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 d79677a35..767443733 100644 --- a/data/primitives/overview/releases.mdx +++ b/data/primitives/overview/releases.mdx @@ -59,7 +59,7 @@ metaDescription: Radix Primitives releases and their changelogs. - Add `data-highlighted` attribute to support styling - [**Breaking**] Renamed `data-state` values from `active|inactive` to `checked|unchecked` - Add support for placeholder via `placeholder` prop on `Select.Value` -- Resolve mismatch with underlying native select +- Resolve value mismatch with underlying native select