@primer/react 0.0.0-20260312205452 → 0.0.0-20260313015748

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 (61) hide show
  1. package/CHANGELOG.md +27 -5
  2. package/dist/ActionList/Item.d.ts.map +1 -1
  3. package/dist/ActionList/Item.js +628 -192
  4. package/dist/ActionList/List.d.ts.map +1 -1
  5. package/dist/ActionList/List.js +6 -5
  6. package/dist/Autocomplete/AutocompleteInput.js +3 -3
  7. package/dist/Autocomplete/AutocompleteOverlay.js +3 -3
  8. package/dist/Banner/Banner-41040ab7.css +2 -0
  9. package/dist/Banner/Banner-41040ab7.css.map +1 -0
  10. package/dist/Banner/Banner.d.ts.map +1 -1
  11. package/dist/Banner/Banner.js +1 -0
  12. package/dist/Banner/Banner.module.css.js +1 -1
  13. package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  14. package/dist/Breadcrumbs/Breadcrumbs.js +0 -1
  15. package/dist/Button/{ButtonBase-781fba8b.css → ButtonBase-6659abcf.css} +2 -2
  16. package/dist/Button/{ButtonBase-781fba8b.css.map → ButtonBase-6659abcf.css.map} +1 -1
  17. package/dist/Button/ButtonBase.d.ts.map +1 -1
  18. package/dist/Button/ButtonBase.js +4 -3
  19. package/dist/Button/ButtonBase.module.css.js +1 -1
  20. package/dist/Dialog/{Dialog-2d417a89.css → Dialog-2de477b3.css} +2 -2
  21. package/dist/Dialog/{Dialog-2d417a89.css.map → Dialog-2de477b3.css.map} +1 -1
  22. package/dist/Dialog/Dialog.d.ts.map +1 -1
  23. package/dist/Dialog/Dialog.js +6 -4
  24. package/dist/Dialog/Dialog.module.css.js +2 -2
  25. package/dist/Heading/Heading.js +3 -3
  26. package/dist/Link/Link.d.ts.map +1 -1
  27. package/dist/Link/Link.js +4 -3
  28. package/dist/Overlay/{Overlay-15519c09.css → Overlay-dbaa6b8c.css} +2 -2
  29. package/dist/Overlay/Overlay-dbaa6b8c.css.map +1 -0
  30. package/dist/Overlay/Overlay.js +21 -22
  31. package/dist/Overlay/Overlay.module.css.js +1 -1
  32. package/dist/PageLayout/PageLayout.d.ts +4 -20
  33. package/dist/PageLayout/PageLayout.d.ts.map +1 -1
  34. package/dist/PageLayout/PageLayout.js +17 -5
  35. package/dist/SelectPanel/SelectPanel.d.ts.map +1 -1
  36. package/dist/SelectPanel/SelectPanel.js +30 -29
  37. package/dist/TextInput/TextInput.d.ts.map +1 -1
  38. package/dist/TextInput/TextInput.js +31 -5
  39. package/dist/TextInputWithTokens/TextInputWithTokens.js +95 -96
  40. package/dist/TreeView/TreeView.d.ts.map +1 -1
  41. package/dist/TreeView/TreeView.js +101 -59
  42. package/dist/deprecated/DialogV1/Dialog.js +11 -12
  43. package/dist/hooks/index.d.ts +0 -1
  44. package/dist/hooks/index.d.ts.map +1 -1
  45. package/dist/hooks/useRefObjectAsForwardedRef.d.ts +0 -12
  46. package/dist/hooks/useRefObjectAsForwardedRef.d.ts.map +1 -1
  47. package/dist/hooks/useRefObjectAsForwardedRef.js +0 -12
  48. package/dist/index.d.ts +0 -1
  49. package/dist/index.d.ts.map +1 -1
  50. package/dist/index.js +0 -1
  51. package/dist/utils/character-counter.d.ts.map +1 -1
  52. package/dist/utils/character-counter.js +1 -0
  53. package/generated/components.json +1 -1
  54. package/generated/hooks.json +0 -22
  55. package/package.json +1 -1
  56. package/dist/Banner/Banner-f672cdf9.css +0 -2
  57. package/dist/Banner/Banner-f672cdf9.css.map +0 -1
  58. package/dist/Overlay/Overlay-15519c09.css.map +0 -1
  59. package/dist/hooks/useCombinedRefs.d.ts +0 -51
  60. package/dist/hooks/useCombinedRefs.d.ts.map +0 -1
  61. package/dist/hooks/useCombinedRefs.js +0 -86
package/CHANGELOG.md CHANGED
@@ -1,10 +1,34 @@
1
1
  # @primer/react
2
2
 
3
- ## 0.0.0-20260312205452
3
+ ## 0.0.0-20260313015748
4
4
 
5
- ### Minor Changes
5
+ ### Patch Changes
6
+
7
+ - Fake entry to force publishing
8
+
9
+ - [#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.
10
+
11
+ - [#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
12
+
13
+ - [#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
14
+
15
+ - [#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
16
+
17
+ - [#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
6
18
 
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`
19
+ - [#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
20
+
21
+ - [#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
22
+
23
+ - [#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
24
+
25
+ - [#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.
26
+
27
+ - [#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
28
+
29
+ ## 38.15.0
30
+
31
+ ### Minor Changes
8
32
 
9
33
  - [#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
34
 
@@ -14,8 +38,6 @@
14
38
 
15
39
  - [#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
40
 
17
- - Fake entry to force publishing
18
-
19
41
  - [#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
42
 
21
43
  - 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"}