@primer/react 0.0.0-20260804182745 → 0.0.0-20260804195417

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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @primer/react
2
2
 
3
- ## 0.0.0-20260804182745
3
+ ## 0.0.0-20260804195417
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  - [#8258](https://github.com/primer/react/pull/8258) [`edbcd94`](https://github.com/primer/react/commit/edbcd942354ff45148c2623be8b543ef8789a20f) Thanks [@llastflowers](https://github.com/llastflowers)! - Update `AvatarStack` to not reserve space when collapsed
10
10
 
11
- - [#8260](https://github.com/primer/react/pull/8260) [`af3bbeb`](https://github.com/primer/react/commit/af3bbeb0c2bf7b277903066ef1ec3b1ef6ec1d70) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - UnderlineNav: Keep item icons visible by default except below the xsmall breakpoint
11
+ - [#8260](https://github.com/primer/react/pull/8260) [`af3bbeb`](https://github.com/primer/react/commit/af3bbeb0c2bf7b277903066ef1ec3b1ef6ec1d70) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - UnderlineNav: Keep item icons visible by default at the medium breakpoint and above
12
12
 
13
13
  ## 38.35.0
14
14
 
@@ -17,8 +17,9 @@ type UnderlineNavProps = {
17
17
  */
18
18
  variant?: 'inset' | 'flush';
19
19
  /**
20
- * Customize when the icons are hidden to save space. Set to `null` to always show icons.
21
- * Defaults to `xsmall`.
20
+ * Controls the container width below which icons are hidden to save space. Defaults to `medium`.
21
+ * To keep icons visible in a narrow container, use a smaller breakpoint such as `xsmall`, or set to `null` to
22
+ * always show icons.
22
23
  */
23
24
  hideIconsBreakpoint?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | null;
24
25
  };
@@ -22,7 +22,7 @@ const UnderlineNav = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
22
22
  const as = t1 === void 0 ? "nav" : t1;
23
23
  const loadingCounters = t2 === void 0 ? false : t2;
24
24
  const variant = t3 === void 0 ? "inset" : t3;
25
- const hideIconsBreakpoint = t4 === void 0 ? "xsmall" : t4;
25
+ const hideIconsBreakpoint = t4 === void 0 ? "medium" : t4;
26
26
  const backupRef = useRef(null);
27
27
  const navRef = forwardedRef !== null && forwardedRef !== void 0 ? forwardedRef : backupRef;
28
28
  const listRef = useRef(null);
@@ -9078,6 +9078,12 @@
9078
9078
  "defaultValue": "false",
9079
9079
  "description": "Whether the navigation items are in loading state. Component waits for all the counters to finish loading to prevent multiple layout shifts."
9080
9080
  },
9081
+ {
9082
+ "name": "hideIconsBreakpoint",
9083
+ "type": "'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | null",
9084
+ "defaultValue": "'medium'",
9085
+ "description": "Controls the container width below which icons are hidden to save space. To keep icons visible in a narrow container, use a smaller breakpoint such as `xsmall`, or set to `null` to always show icons."
9086
+ },
9081
9087
  {
9082
9088
  "name": "variant",
9083
9089
  "type": "'inset' | 'flush'",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@primer/react",
3
3
  "type": "module",
4
- "version": "0.0.0-20260804182745",
4
+ "version": "0.0.0-20260804195417",
5
5
  "description": "An implementation of GitHub's Primer Design System using React",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",