@primer/react 0.0.0-20260225214250 → 0.0.0-20260225215623

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/CHANGELOG.md +6 -24
  2. package/dist/ActionBar/ActionBar.d.ts.map +1 -1
  3. package/dist/ActionBar/ActionBar.js +281 -431
  4. package/dist/ActionList/ActionList-f4ac3b54.css +2 -0
  5. package/dist/ActionList/ActionList-f4ac3b54.css.map +1 -0
  6. package/dist/ActionList/ActionList.module.css.js +1 -1
  7. package/dist/ActionList/Item.d.ts.map +1 -1
  8. package/dist/ActionList/Item.js +0 -1
  9. package/dist/Autocomplete/Autocomplete.js +159 -76
  10. package/dist/Autocomplete/AutocompleteMenu.js +333 -128
  11. package/dist/Autocomplete/AutocompleteOverlay.js +130 -49
  12. package/dist/Banner/Banner.js +238 -64
  13. package/dist/Blankslate/{Blankslate-a039d79a.css → Blankslate-f5a9755a.css} +2 -2
  14. package/dist/Blankslate/Blankslate-f5a9755a.css.map +1 -0
  15. package/dist/Blankslate/Blankslate.module.css.js +1 -1
  16. package/dist/Button/Button.js +34 -11
  17. package/dist/Button/IconButton.js +140 -51
  18. package/dist/Button/LinkButton.js +39 -11
  19. package/dist/Checkbox/Checkbox.js +163 -55
  20. package/dist/Dialog/Dialog.js +347 -105
  21. package/dist/FilteredActionList/FilteredActionList.d.ts +1 -16
  22. package/dist/FilteredActionList/FilteredActionList.d.ts.map +1 -1
  23. package/dist/FilteredActionList/FilteredActionList.js +42 -147
  24. package/dist/PageLayout/PageLayout-cb491b47.css +2 -0
  25. package/dist/PageLayout/PageLayout-cb491b47.css.map +1 -0
  26. package/dist/PageLayout/PageLayout.d.ts +2 -72
  27. package/dist/PageLayout/PageLayout.d.ts.map +1 -1
  28. package/dist/PageLayout/PageLayout.js +1235 -750
  29. package/dist/PageLayout/PageLayout.module.css.js +2 -2
  30. package/dist/PageLayout/usePaneWidth.d.ts +5 -18
  31. package/dist/PageLayout/usePaneWidth.d.ts.map +1 -1
  32. package/dist/PageLayout/usePaneWidth.js +111 -125
  33. package/dist/SelectPanel/SelectPanel.d.ts +1 -1
  34. package/dist/SelectPanel/SelectPanel.d.ts.map +1 -1
  35. package/dist/SelectPanel/SelectPanel.js +1 -3
  36. package/dist/SplitPageLayout/SplitPageLayout.d.ts +1 -4
  37. package/dist/SplitPageLayout/SplitPageLayout.d.ts.map +1 -1
  38. package/dist/SplitPageLayout/SplitPageLayout.js +2 -54
  39. package/dist/Text/Text.d.ts +1 -1
  40. package/dist/Text/Text.d.ts.map +1 -1
  41. package/dist/Text/Text.js +13 -10
  42. package/dist/Timeline/{Timeline-19bef8c5.css → Timeline-116393ee.css} +2 -2
  43. package/dist/Timeline/{Timeline-19bef8c5.css.map → Timeline-116393ee.css.map} +1 -1
  44. package/dist/Timeline/Timeline.module.css.js +1 -1
  45. package/dist/UnderlineNav/UnderlineNav-f506fb23.css +2 -0
  46. package/dist/UnderlineNav/UnderlineNav-f506fb23.css.map +1 -0
  47. package/dist/UnderlineNav/UnderlineNav.d.ts.map +1 -1
  48. package/dist/UnderlineNav/UnderlineNav.js +77 -325
  49. package/dist/UnderlineNav/UnderlineNav.module.css.js +2 -2
  50. package/dist/UnderlineNav/UnderlineNavContext.d.ts +1 -11
  51. package/dist/UnderlineNav/UnderlineNavContext.d.ts.map +1 -1
  52. package/dist/UnderlineNav/UnderlineNavContext.js +1 -4
  53. package/dist/UnderlineNav/UnderlineNavItem-db9dc5d0.css +2 -0
  54. package/dist/UnderlineNav/UnderlineNavItem-db9dc5d0.css.map +1 -0
  55. package/dist/UnderlineNav/UnderlineNavItem.d.ts +6 -0
  56. package/dist/UnderlineNav/UnderlineNavItem.d.ts.map +1 -1
  57. package/dist/UnderlineNav/UnderlineNavItem.js +149 -61
  58. package/dist/UnderlineNav/UnderlineNavItem.module.css.js +1 -1
  59. package/dist/experimental/SelectPanel2/SelectPanel.js +593 -209
  60. package/dist/experimental/UnderlinePanels/UnderlinePanels.js +1 -1
  61. package/dist/hooks/useRefObjectAsForwardedRef.d.ts.map +1 -1
  62. package/dist/hooks/useRefObjectAsForwardedRef.js +2 -10
  63. package/dist/hooks/useScrollFlash.d.ts.map +1 -1
  64. package/dist/hooks/useScrollFlash.js +22 -14
  65. package/dist/hooks/useSlots.d.ts +6 -50
  66. package/dist/hooks/useSlots.d.ts.map +1 -1
  67. package/dist/hooks/useSlots.js +36 -114
  68. package/dist/internal/components/UnderlineTabbedInterface-be1a162c.css +2 -0
  69. package/dist/internal/components/UnderlineTabbedInterface-be1a162c.css.map +1 -0
  70. package/dist/internal/components/UnderlineTabbedInterface.d.ts +0 -1
  71. package/dist/internal/components/UnderlineTabbedInterface.d.ts.map +1 -1
  72. package/dist/internal/components/UnderlineTabbedInterface.js +66 -60
  73. package/dist/internal/components/UnderlineTabbedInterface.module.css.js +1 -1
  74. package/dist/utils/descendant-registry.d.ts +32 -0
  75. package/dist/utils/descendant-registry.d.ts.map +1 -0
  76. package/dist/utils/descendant-registry.js +222 -0
  77. package/generated/components.json +3 -195
  78. package/package.json +2 -2
  79. package/dist/ActionList/ActionList-c04a02d6.css +0 -2
  80. package/dist/ActionList/ActionList-c04a02d6.css.map +0 -1
  81. package/dist/Blankslate/Blankslate-a039d79a.css.map +0 -1
  82. package/dist/PageLayout/PageLayout-06f4c069.css +0 -2
  83. package/dist/PageLayout/PageLayout-06f4c069.css.map +0 -1
  84. package/dist/UnderlineNav/UnderlineNav-4344d9b0.css +0 -2
  85. package/dist/UnderlineNav/UnderlineNav-4344d9b0.css.map +0 -1
  86. package/dist/UnderlineNav/UnderlineNavItem-b65e8fd3.css +0 -2
  87. package/dist/UnderlineNav/UnderlineNavItem-b65e8fd3.css.map +0 -1
  88. package/dist/UnderlineNav/styles.d.ts +0 -16
  89. package/dist/UnderlineNav/styles.d.ts.map +0 -1
  90. package/dist/UnderlineNav/styles.js +0 -19
  91. package/dist/internal/components/UnderlineTabbedInterface-4197ee28.css +0 -2
  92. package/dist/internal/components/UnderlineTabbedInterface-4197ee28.css.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,46 +1,28 @@
1
1
  # @primer/react
2
2
 
3
- ## 0.0.0-20260225214250
4
-
5
- ### Minor Changes
6
-
7
- - [#7531](https://github.com/primer/react/pull/7531) [`0cfb938`](https://github.com/primer/react/commit/0cfb938704ec7589b6453a23ba8a9f2c8ab7d824) Thanks [@hectahertz](https://github.com/hectahertz)! - SelectPanel: Add built-in client-side list virtualization via a new `virtualized` prop. When enabled, only the visible items plus a small overscan buffer are rendered in the DOM, dramatically improving performance for large lists.
8
-
9
- ### Patch Changes
10
-
11
- - Fake entry to force publishing
12
-
13
- - [#7555](https://github.com/primer/react/pull/7555) [`64c2243`](https://github.com/primer/react/commit/64c2243d07fc580a5565493b917b27081ef6a191) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(useSlots): short-circuit iteration and skip filled slots
14
-
15
- - [#7547](https://github.com/primer/react/pull/7547) [`4943d67`](https://github.com/primer/react/commit/4943d671ddb590461e59f9745e6093d47e770f7a) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(useScrollFlash): defer scroll read/write to requestAnimationFrame to avoid forced reflow
16
-
17
- - [#7551](https://github.com/primer/react/pull/7551) [`2fbfc49`](https://github.com/primer/react/commit/2fbfc49fad6f11edc51850e32e9c0b2ade8ca1f1) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(Text): remove unnecessary useRef and useImperativeHandle hooks
18
-
19
- - [#7553](https://github.com/primer/react/pull/7553) [`6225ba2`](https://github.com/primer/react/commit/6225ba231cfdbe6ef7fa41dd62734d5a970bdc7d) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(useRefObjectAsForwardedRef): add dependency array to useImperativeHandle
20
-
21
- ## 38.13.0
3
+ ## 0.0.0-20260225215623
22
4
 
23
5
  ### Minor Changes
24
6
 
25
7
  - [#7099](https://github.com/primer/react/pull/7099) [`4720c2f`](https://github.com/primer/react/commit/4720c2f27cfacc7600244422ee22af9104b5aa09) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Banner: Use `aria-labelledby` to reference the title for the landmark region instead of generic variant labels.
26
8
 
27
- - [#7521](https://github.com/primer/react/pull/7521) [`12dda86`](https://github.com/primer/react/commit/12dda8654b07bffc33e6b8f29580914c95f3e8e2) Thanks [@TylerJDev](https://github.com/TylerJDev)! - PageLayout: Add `PageLayout.Sidebar` sub-component
28
-
29
9
  ### Patch Changes
30
10
 
31
11
  - [#7537](https://github.com/primer/react/pull/7537) [`4fd987c`](https://github.com/primer/react/commit/4fd987c4194f51dc7e66f16895542a1e4678bde7) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(ActionList): enable React Compiler
32
12
 
33
13
  - [#7546](https://github.com/primer/react/pull/7546) [`86d6897`](https://github.com/primer/react/commit/86d68971a602be6c99535eb01227bf48dd87cfdc) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(Announce): skip getComputedStyle when there is no text content to announce
34
14
 
35
- - [#7568](https://github.com/primer/react/pull/7568) [`aa46098`](https://github.com/primer/react/commit/aa460989194e6bb2c0e15e16023a07cf7fc42dc0) Thanks [@HiroAgustin](https://github.com/HiroAgustin)! - Blankslate: Add `text-wrap: balance` to Heading and Description
36
-
37
15
  - [#7552](https://github.com/primer/react/pull/7552) [`551ec63`](https://github.com/primer/react/commit/551ec6338af5c45e3f549245d85a4dd5a708df47) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(Button): fix CounterLabel remount and remove conditional DEV hook
38
16
 
39
17
  - [#7504](https://github.com/primer/react/pull/7504) [`d91e78e`](https://github.com/primer/react/commit/d91e78e8d1e69915222354b95d09d93d269dbd8b) Thanks [@TylerJDev](https://github.com/TylerJDev)! - UnderlineNav: Adds `overflow: hidden` when the "More" button isn't present
40
18
 
41
19
  - [#7526](https://github.com/primer/react/pull/7526) [`0c2358a`](https://github.com/primer/react/commit/0c2358aa12a409f7cbcf15ce4fd41cbb9eee4b6c) Thanks [@hectahertz](https://github.com/hectahertz)! - Add `content-visibility: auto` to ActionList items to improve rendering performance for large lists by allowing the browser to skip layout and paint for off-screen items.
42
20
 
43
- - [#7556](https://github.com/primer/react/pull/7556) [`6dc1858`](https://github.com/primer/react/commit/6dc1858538e3b7ea66b78dd9d37c391c530d78ae) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(ActionList): replace `:has([aria-disabled])` child scan with `data-is-disabled` attribute for faster style recalculation
21
+ - Fake entry to force publishing
22
+
23
+ - [#7506](https://github.com/primer/react/pull/7506) [`dea0dd0`](https://github.com/primer/react/commit/dea0dd0c6dcff6890a620f0708f1f28472a4fb98) Thanks [@iansan5653](https://github.com/iansan5653)! - - Fixes a bug where `ActionBar` menu items would be out of order if new items were mounted after the initial render
24
+
25
+ - Improves initial render performance for `ActionBar`
44
26
 
45
27
  - [#7548](https://github.com/primer/react/pull/7548) [`d4b32c3`](https://github.com/primer/react/commit/d4b32c3672d3d5421711324654c1028527dcdf38) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(useIsMacOS): replace useState+useEffect with useSyncExternalStore to eliminate unnecessary re-render
46
28
 
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBar.d.ts","sourceRoot":"","sources":["../../src/ActionBar/ActionBar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyD,MAAM,OAAO,CAAA;AAE7E,OAAO,EAAa,KAAK,mBAAmB,EAAC,MAAM,eAAe,CAAA;AAKlE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,WAAW,CAAA;AAqD9C,KAAK,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;AAExC,KAAK,SAAS,GACV;IACE,wDAAwD;IACxD,YAAY,EAAE,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAA;IAChD,iBAAiB,CAAC,EAAE,SAAS,CAAA;CAC9B,GACD;IACE,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB;;OAEG;IACH,iBAAiB,EAAE,KAAK,CAAC,cAAc,CAAC,iBAAiB,C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