@primer/react 0.0.0-20260312205452 → 0.0.0-20260312205709

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 (70) hide show
  1. package/CHANGELOG.md +32 -4
  2. package/dist/ActionList/Item.d.ts.map +1 -1
  3. package/dist/ActionList/Item.js +628 -192
  4. package/dist/ActionList/LinkItem.d.ts +6 -3
  5. package/dist/ActionList/LinkItem.d.ts.map +1 -1
  6. package/dist/ActionList/LinkItem.js +42 -87
  7. package/dist/ActionList/List.d.ts.map +1 -1
  8. package/dist/ActionList/List.js +6 -5
  9. package/dist/ActionList/index.d.ts +25 -1
  10. package/dist/ActionList/index.d.ts.map +1 -1
  11. package/dist/Autocomplete/AutocompleteInput.js +3 -3
  12. package/dist/Autocomplete/AutocompleteOverlay.js +3 -3
  13. package/dist/Banner/Banner-41040ab7.css +2 -0
  14. package/dist/Banner/Banner-41040ab7.css.map +1 -0
  15. package/dist/Banner/Banner.d.ts.map +1 -1
  16. package/dist/Banner/Banner.js +1 -0
  17. package/dist/Banner/Banner.module.css.js +1 -1
  18. package/dist/Breadcrumbs/Breadcrumbs.d.ts +23 -8
  19. package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  20. package/dist/Breadcrumbs/Breadcrumbs.js +19 -62
  21. package/dist/Button/{ButtonBase-781fba8b.css → ButtonBase-6659abcf.css} +2 -2
  22. package/dist/Button/{ButtonBase-781fba8b.css.map → ButtonBase-6659abcf.css.map} +1 -1
  23. package/dist/Button/ButtonBase.d.ts.map +1 -1
  24. package/dist/Button/ButtonBase.js +4 -3
  25. package/dist/Button/ButtonBase.module.css.js +1 -1
  26. package/dist/Dialog/{Dialog-2d417a89.css → Dialog-2de477b3.css} +2 -2
  27. package/dist/Dialog/{Dialog-2d417a89.css.map → Dialog-2de477b3.css.map} +1 -1
  28. package/dist/Dialog/Dialog.d.ts.map +1 -1
  29. package/dist/Dialog/Dialog.js +6 -4
  30. package/dist/Dialog/Dialog.module.css.js +2 -2
  31. package/dist/Heading/Heading.js +3 -3
  32. package/dist/Link/Link.d.ts.map +1 -1
  33. package/dist/Link/Link.js +4 -3
  34. package/dist/Overlay/{Overlay-15519c09.css → Overlay-dbaa6b8c.css} +2 -2
  35. package/dist/Overlay/Overlay-dbaa6b8c.css.map +1 -0
  36. package/dist/Overlay/Overlay.js +21 -22
  37. package/dist/Overlay/Overlay.module.css.js +1 -1
  38. package/dist/PageLayout/PageLayout.d.ts +4 -20
  39. package/dist/PageLayout/PageLayout.d.ts.map +1 -1
  40. package/dist/PageLayout/PageLayout.js +17 -5
  41. package/dist/SelectPanel/SelectPanel.d.ts.map +1 -1
  42. package/dist/SelectPanel/SelectPanel.js +30 -29
  43. package/dist/TextInput/TextInput.d.ts.map +1 -1
  44. package/dist/TextInput/TextInput.js +31 -5
  45. package/dist/TextInputWithTokens/TextInputWithTokens.js +95 -96
  46. package/dist/TreeView/TreeView.d.ts.map +1 -1
  47. package/dist/TreeView/TreeView.js +101 -59
  48. package/dist/TreeView/useRovingTabIndex.d.ts +14 -0
  49. package/dist/TreeView/useRovingTabIndex.d.ts.map +1 -1
  50. package/dist/TreeView/useRovingTabIndex.js +94 -16
  51. package/dist/deprecated/DialogV1/Dialog.js +11 -12
  52. package/dist/hooks/index.d.ts +0 -1
  53. package/dist/hooks/index.d.ts.map +1 -1
  54. package/dist/hooks/useRefObjectAsForwardedRef.d.ts +0 -12
  55. package/dist/hooks/useRefObjectAsForwardedRef.d.ts.map +1 -1
  56. package/dist/hooks/useRefObjectAsForwardedRef.js +0 -12
  57. package/dist/index.d.ts +0 -1
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/index.js +0 -1
  60. package/dist/utils/character-counter.d.ts.map +1 -1
  61. package/dist/utils/character-counter.js +1 -0
  62. package/generated/components.json +1 -1
  63. package/generated/hooks.json +0 -22
  64. package/package.json +1 -1
  65. package/dist/Banner/Banner-f672cdf9.css +0 -2
  66. package/dist/Banner/Banner-f672cdf9.css.map +0 -1
  67. package/dist/Overlay/Overlay-15519c09.css.map +0 -1
  68. package/dist/hooks/useCombinedRefs.d.ts +0 -51
  69. package/dist/hooks/useCombinedRefs.d.ts.map +0 -1
  70. package/dist/hooks/useCombinedRefs.js +0 -86
package/CHANGELOG.md CHANGED
@@ -1,10 +1,40 @@
1
1
  # @primer/react
2
2
 
3
- ## 0.0.0-20260312205452
3
+ ## 0.0.0-20260312205709
4
4
 
5
5
  ### Minor Changes
6
6
 
7
- - [#7645](https://github.com/primer/react/pull/7645) [`bdb0e39`](https://github.com/primer/react/commit/bdb0e39d56bfb13ab3e321622402369251cc3207) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Add `useCombinedRefs` hook and deprecate `useRefObjectAsForwardedRef`
7
+ - [#7658](https://github.com/primer/react/pull/7658) [`2da6602`](https://github.com/primer/react/commit/2da66024e332ac0510815aa304ecc13b6d07ea75) Thanks [@hussam-i-am](https://github.com/hussam-i-am)! - fix(polymorphic): Improve prop passthrough for ActionList.LinkItem and Breadcrumbs.Item
8
+
9
+ ### Patch Changes
10
+
11
+ - Fake entry to force publishing
12
+
13
+ - [#7625](https://github.com/primer/react/pull/7625) [`2e8c707`](https://github.com/primer/react/commit/2e8c70702d5096551049c29c8e79749bf63a919f) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Banner: stack inline actions vertically on narrow viewports.
14
+
15
+ - [#7554](https://github.com/primer/react/pull/7554) [`f34f0c3`](https://github.com/primer/react/commit/f34f0c37c2bb144e34b029696c580ee8104dbce6) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(ActionList): memoize context values, menuItemProps, and aria attributes
16
+
17
+ - [#7598](https://github.com/primer/react/pull/7598) [`4b345db`](https://github.com/primer/react/commit/4b345db228997b66c381f7d03369f87ee25fdf02) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(Banner): replace `:has(.BannerActions)` with `[data-has-actions]` attribute selector
18
+
19
+ - [#7597](https://github.com/primer/react/pull/7597) [`adadd38`](https://github.com/primer/react/commit/adadd380043c637d431e30643e910e7b4ec7fe03) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(Button): replace `:has(.Visual)` with `[data-no-visuals]` attribute selector in link variant styling
20
+
21
+ - [#7599](https://github.com/primer/react/pull/7599) [`e6513c2`](https://github.com/primer/react/commit/e6513c2a8a5b99e61c9009e0e3c7112a7388a295) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(Dialog): replace `:has(.Footer)` with `[data-has-footer]` attribute selector for footer border detection
22
+
23
+ - [#7620](https://github.com/primer/react/pull/7620) [`ec0b789`](https://github.com/primer/react/commit/ec0b7890b45ca939c24d6236d94a69d9006c3a64) Thanks [@hectahertz](https://github.com/hectahertz)! - Use stable object reference for DialogContext value to prevent unnecessary re-renders
24
+
25
+ - [#7621](https://github.com/primer/react/pull/7621) [`235126a`](https://github.com/primer/react/commit/235126abbd271e0a6e1e95110f40d72c193c6d24) Thanks [@hectahertz](https://github.com/hectahertz)! - Memoize SelectPanel overlayProps, focusTrapSettings, and preventBubbling to reduce allocations on re-renders
26
+
27
+ - [#7600](https://github.com/primer/react/pull/7600) [`0d7cc92`](https://github.com/primer/react/commit/0d7cc92b474185c7efa09871b42c6a97a9326be6) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(TextInput): skip redundant character counter updates
28
+
29
+ - [#7654](https://github.com/primer/react/pull/7654) [`a09a60c`](https://github.com/primer/react/commit/a09a60cb8218adf8fe2ab71e46da76fbf8331bc6) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - SelectPanel: use `100dvh` and `env(safe-area-inset-bottom)` in fullscreen-on-narrow mode to prevent content from being obscured by iOS Safari's browser chrome.
30
+
31
+ - [#7545](https://github.com/primer/react/pull/7545) [`17ec46f`](https://github.com/primer/react/commit/17ec46f77524f3ad5e1789102bdf2dbaf47eab49) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(TreeView): defer scrollIntoView to coalesce reflows during rapid navigation
32
+
33
+ - [#7544](https://github.com/primer/react/pull/7544) [`63bfd67`](https://github.com/primer/react/commit/63bfd67b6d3ee4c9d5c6a0c11bfeae7f0159ef5d) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(TreeView): replace O(n) TreeWalker with O(depth) sibling traversal
34
+
35
+ ## 38.15.0
36
+
37
+ ### Minor Changes
8
38
 
9
39
  - [#7524](https://github.com/primer/react/pull/7524) [`f7bdd1c`](https://github.com/primer/react/commit/f7bdd1c04f8cbb17b6a913ba55f7d0855c8eebf1) Thanks [@francinelucca](https://github.com/francinelucca)! - chore: always render ActionMenu in viewport when inside Dialog under feature flag
10
40
 
@@ -14,8 +44,6 @@
14
44
 
15
45
  - [#7529](https://github.com/primer/react/pull/7529) [`7e108fe`](https://github.com/primer/react/commit/7e108fea1a9f92ce22f46ff1d55bfe4753d89ad8) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Add keyboard-accessible tooltip for truncated ActionList.Description
16
46
 
17
- - Fake entry to force publishing
18
-
19
47
  - [#7585](https://github.com/primer/react/pull/7585) [`3dd2c78`](https://github.com/primer/react/commit/3dd2c78f768ad560ee0f37947af2c17ca8d7938c) 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
20
48
 
21
49
  - Improves initial render performance for `ActionBar`
@@ -1 +1 @@
1
- {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../src/ActionList/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAA;AAoBrC,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAwBD,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAEpD,CAAA;AAkTD,QAAA,MAAM,IAAI,IA1Ra,EAAE,SAAS,KAAK,CAAC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6RjD,CAAA;AAEF,OAAO,EAAC,IAAI,EAAC,CAAA"}
1
+ {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../src/ActionList/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAA;AAoBrC,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAwBD,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAEpD,CAAA;AAyVD,QAAA,MAAM,IAAI,IApTa,EAAE,SAAS,KAAK,CAAC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuTjD,CAAA;AAEF,OAAO,EAAC,IAAI,EAAC,CAAA"}