@primer/react 0.0.0-20260313180903 → 0.0.0-20260313183301

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 (78) hide show
  1. package/CHANGELOG.md +32 -6
  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/Banner/Banner-41040ab7.css +2 -0
  7. package/dist/Banner/Banner-41040ab7.css.map +1 -0
  8. package/dist/Banner/Banner.d.ts.map +1 -1
  9. package/dist/Banner/Banner.js +1 -0
  10. package/dist/Banner/Banner.module.css.js +1 -1
  11. package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  12. package/dist/Breadcrumbs/Breadcrumbs.js +0 -1
  13. package/dist/Button/{ButtonBase-781fba8b.css → ButtonBase-6659abcf.css} +2 -2
  14. package/dist/Button/{ButtonBase-781fba8b.css.map → ButtonBase-6659abcf.css.map} +1 -1
  15. package/dist/Button/ButtonBase.module.css.js +1 -1
  16. package/dist/Dialog/{Dialog-2d417a89.css → Dialog-2de477b3.css} +2 -2
  17. package/dist/Dialog/{Dialog-2d417a89.css.map → Dialog-2de477b3.css.map} +1 -1
  18. package/dist/Dialog/Dialog.d.ts.map +1 -1
  19. package/dist/Dialog/Dialog.js +3 -1
  20. package/dist/Dialog/Dialog.module.css.js +2 -2
  21. package/dist/Overlay/{Overlay-15519c09.css → Overlay-dbaa6b8c.css} +2 -2
  22. package/dist/Overlay/Overlay-dbaa6b8c.css.map +1 -0
  23. package/dist/Overlay/Overlay.module.css.js +1 -1
  24. package/dist/PageLayout/PageLayout.d.ts +4 -20
  25. package/dist/PageLayout/PageLayout.d.ts.map +1 -1
  26. package/dist/PageLayout/PageLayout.js +12 -0
  27. package/dist/SelectPanel/SelectPanel.d.ts.map +1 -1
  28. package/dist/SelectPanel/SelectPanel.js +30 -29
  29. package/dist/TextInput/TextInput.d.ts.map +1 -1
  30. package/dist/TextInput/TextInput.js +31 -5
  31. package/dist/Timeline/Timeline-4d67684a.css +2 -0
  32. package/dist/Timeline/Timeline-4d67684a.css.map +1 -0
  33. package/dist/Timeline/Timeline.d.ts +1 -1
  34. package/dist/Timeline/Timeline.d.ts.map +1 -1
  35. package/dist/Timeline/Timeline.js +27 -14
  36. package/dist/Timeline/Timeline.module.css.js +1 -1
  37. package/dist/TreeView/TreeView.d.ts.map +1 -1
  38. package/dist/TreeView/TreeView.js +101 -59
  39. package/dist/UnderlineNav/UnderlineNav-4344d9b0.css +2 -0
  40. package/dist/UnderlineNav/UnderlineNav-4344d9b0.css.map +1 -0
  41. package/dist/UnderlineNav/UnderlineNav.d.ts +3 -1
  42. package/dist/UnderlineNav/UnderlineNav.d.ts.map +1 -1
  43. package/dist/UnderlineNav/UnderlineNav.js +342 -40
  44. package/dist/UnderlineNav/UnderlineNav.module.css.js +2 -2
  45. package/dist/UnderlineNav/UnderlineNavContext.d.ts +11 -1
  46. package/dist/UnderlineNav/UnderlineNavContext.d.ts.map +1 -1
  47. package/dist/UnderlineNav/UnderlineNavContext.js +4 -1
  48. package/dist/UnderlineNav/UnderlineNavItem.d.ts.map +1 -1
  49. package/dist/UnderlineNav/UnderlineNavItem.js +37 -40
  50. package/dist/UnderlineNav/index.d.ts +1 -1
  51. package/dist/UnderlineNav/styles.d.ts +16 -0
  52. package/dist/UnderlineNav/styles.d.ts.map +1 -0
  53. package/dist/UnderlineNav/styles.js +19 -0
  54. package/dist/experimental/UnderlinePanels/UnderlinePanels-e4b325b9.css +2 -0
  55. package/dist/experimental/UnderlinePanels/UnderlinePanels-e4b325b9.css.map +1 -0
  56. package/dist/experimental/UnderlinePanels/UnderlinePanels.js +1 -1
  57. package/dist/experimental/UnderlinePanels/UnderlinePanels.module.css.js +1 -1
  58. package/dist/internal/components/UnderlineTabbedInterface-4197ee28.css +2 -0
  59. package/dist/internal/components/UnderlineTabbedInterface-4197ee28.css.map +1 -0
  60. package/dist/internal/components/UnderlineTabbedInterface.d.ts +1 -0
  61. package/dist/internal/components/UnderlineTabbedInterface.d.ts.map +1 -1
  62. package/dist/internal/components/UnderlineTabbedInterface.js +60 -66
  63. package/dist/internal/components/UnderlineTabbedInterface.module.css.js +1 -1
  64. package/dist/utils/character-counter.d.ts.map +1 -1
  65. package/dist/utils/character-counter.js +1 -0
  66. package/generated/components.json +13 -5
  67. package/package.json +1 -1
  68. package/dist/Banner/Banner-f672cdf9.css +0 -2
  69. package/dist/Banner/Banner-f672cdf9.css.map +0 -1
  70. package/dist/Overlay/Overlay-15519c09.css.map +0 -1
  71. package/dist/Timeline/Timeline-19bef8c5.css +0 -2
  72. package/dist/Timeline/Timeline-19bef8c5.css.map +0 -1
  73. package/dist/UnderlineNav/UnderlineNav-4c80468c.css +0 -2
  74. package/dist/UnderlineNav/UnderlineNav-4c80468c.css.map +0 -1
  75. package/dist/experimental/UnderlinePanels/UnderlinePanels-162f9aed.css +0 -2
  76. package/dist/experimental/UnderlinePanels/UnderlinePanels-162f9aed.css.map +0 -1
  77. package/dist/internal/components/UnderlineTabbedInterface-7317470b.css +0 -2
  78. package/dist/internal/components/UnderlineTabbedInterface-7317470b.css.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,12 +1,40 @@
1
1
  # @primer/react
2
2
 
3
- ## 0.0.0-20260313180903
3
+ ## 0.0.0-20260313183301
4
4
 
5
5
  ### Minor Changes
6
6
 
7
- - [#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
7
+ - [#7662](https://github.com/primer/react/pull/7662) [`65aae79`](https://github.com/primer/react/commit/65aae796f40cfa462e1f49944e553515787b3c6b) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Timeline: Update `clipSidebar` prop to accept `'start'`, `'end'`, or `'both'` in addition to `boolean`. Use `'start'` to only clip the top, `'end'` to only clip the bottom, or `'both'`/`true` to clip both ends.
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
8
24
 
9
- - [#7622](https://github.com/primer/react/pull/7622) [`4d8d5e6`](https://github.com/primer/react/commit/4d8d5e6b9b0b1d394d19154369f9c37eabe7cb87) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Removes `UnderlineNav` dynamic overflow functionality, replacing with simple scroll container to simplify logic, improve performance, and remove layout shifts, especially when using server-side rendering.
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
+ ## 38.15.0
34
+
35
+ ### Minor Changes
36
+
37
+ - [#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
38
 
11
39
  - [#7594](https://github.com/primer/react/pull/7594) [`1e54bdf`](https://github.com/primer/react/commit/1e54bdf72c9466f23c567cfdc73b7b5c243782a4) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Add `align` and `style` props to Dialog component
12
40
 
@@ -14,9 +42,7 @@
14
42
 
15
43
  - [#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
44
 
17
- - Fake entry to force publishing
18
-
19
- - [#7585](https://github.com/primer/react/pull/7585) [`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
45
+ - [#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
46
 
21
47
  - Improves initial render performance for `ActionBar`
22
48
 
@@ -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"}