@primer/react 0.0.0-20260507200848 → 0.0.0-20260507212632

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-20260507200848
3
+ ## 0.0.0-20260507212632
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -8,6 +8,8 @@
8
8
 
9
9
  - Fake entry to force publishing
10
10
 
11
+ - [#7800](https://github.com/primer/react/pull/7800) [`ddb7f7e`](https://github.com/primer/react/commit/ddb7f7e3627a560c23abd231848bb7c3545aced6) Thanks [@francinelucca](https://github.com/francinelucca)! - chore: add `primer_react_styled_react_use_primer_theme_providers` feature flag to DefaultFeatureFlags
12
+
11
13
  - [#7802](https://github.com/primer/react/pull/7802) [`872bf46`](https://github.com/primer/react/commit/872bf464c0cdf2144b680ffe309ef4ad2ac1b5ac) Thanks [@TylerJDev](https://github.com/TylerJDev)! - AnchoredOverlay: Ensure overlay fits within viewport by calculating viewport height + width (behind `primer_react_css_anchor_positioning` feature flag)
12
14
 
13
15
  ## 38.22.0
@@ -154,8 +154,8 @@ const slotsConfig = {
154
154
  };
155
155
 
156
156
  // Pre-allocated array for selectableRoles check, avoids per-render allocation
157
- const selectableRoles = ['menuitemradio', 'menuitemcheckbox', 'option', 'treeitem'];
158
- const listRoleTypes = ['listbox', 'menu', 'list', 'tree'];
157
+ const selectableRoles = ['menuitemradio', 'menuitemcheckbox', 'option'];
158
+ const listRoleTypes = ['listbox', 'menu', 'list'];
159
159
  const UnwrappedItem = (t0, forwardedRef) => {
160
160
  var _slots$trailingVisual, _slots$description$pr, _slots$description;
161
161
  const $ = c(159);
@@ -31,17 +31,6 @@ export declare const ActionList: (<As extends React.ElementType = "ul">(props: (
31
31
  } ? T extends unknown ? Omit<T, "as"> : never : never : never) & {
32
32
  as?: As | undefined;
33
33
  } & import("react").RefAttributes<unknown>) => React.ReactNode) & {
34
- /** Context for the `ActionList` container. */
35
- ContainerContext: import("react").Context<{
36
- container?: string;
37
- listRole?: import("../utils/types").AriaRole;
38
- selectionVariant?: "single" | "multiple" | "radio";
39
- selectionAttribute?: "aria-selected" | "aria-checked";
40
- listLabelledBy?: string;
41
- afterSelect?: Function;
42
- enableFocusZone?: boolean;
43
- defaultTrailingVisual?: React.ReactElement<any>;
44
- }>;
45
34
  /** Collects related `Items` in an `ActionList`. */
46
35
  Group: import("../utils/types").FCWithSlotMarker<import("react").PropsWithChildren<import("./Group").ActionListGroupProps>>;
47
36
  /** An actionable or selectable `Item` */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ActionList/index.ts"],"names":[],"mappings":"AAWA,YAAY,EAAC,eAAe,EAAC,MAAM,UAAU,CAAA;AAC7C,YAAY,EAAC,oBAAoB,EAAE,2BAA2B,EAAC,MAAM,SAAS,CAAA;AAC9E,YAAY,EAAC,mBAAmB,EAAC,MAAM,UAAU,CAAA;AACjD,YAAY,EAAC,uBAAuB,EAAC,MAAM,YAAY,CAAA;AACvD,YAAY,EAAC,sBAAsB,EAAC,MAAM,WAAW,CAAA;AACrD,YAAY,EAAC,0BAA0B,EAAC,MAAM,eAAe,CAAA;AAC7D,YAAY,EAAC,4BAA4B,EAAE,6BAA6B,EAAC,MAAM,WAAW,CAAA;AAC1F,YAAY,EAAC,sBAAsB,EAAC,MAAM,WAAW,CAAA;AACrD,YAAY,EAAC,6BAA6B,EAAC,MAAM,kBAAkB,CAAA;AAEnE;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;IACrB,8CAA8C;;;;;;;;;;;IAE9C,mDAAmD;;IAGnD,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGzC,+DAA+D;;;;;;;;;;;;;;;;;;;;;;;;;;IAG/D,iEAAiE;;IAGjE,4EAA4E;;IAG5E,uDAAuD;;IAGvD,sDAAsD;;IAGtD,mCAAmC;;IAGnC,gGAAgG;;;;IAGhG,qCAAqC;;IAGrC,uBAAuB;;CAEvB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ActionList/index.ts"],"names":[],"mappings":"AAUA,YAAY,EAAC,eAAe,EAAC,MAAM,UAAU,CAAA;AAC7C,YAAY,EAAC,oBAAoB,EAAE,2BAA2B,EAAC,MAAM,SAAS,CAAA;AAC9E,YAAY,EAAC,mBAAmB,EAAC,MAAM,UAAU,CAAA;AACjD,YAAY,EAAC,uBAAuB,EAAC,MAAM,YAAY,CAAA;AACvD,YAAY,EAAC,sBAAsB,EAAC,MAAM,WAAW,CAAA;AACrD,YAAY,EAAC,0BAA0B,EAAC,MAAM,eAAe,CAAA;AAC7D,YAAY,EAAC,4BAA4B,EAAE,6BAA6B,EAAC,MAAM,WAAW,CAAA;AAC1F,YAAY,EAAC,sBAAsB,EAAC,MAAM,WAAW,CAAA;AACrD,YAAY,EAAC,6BAA6B,EAAC,MAAM,kBAAkB,CAAA;AAEnE;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;IACrB,mDAAmD;;IAGnD,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGzC,+DAA+D;;;;;;;;;;;;;;;;;;;;;;;;;;IAG/D,iEAAiE;;IAGjE,4EAA4E;;IAG5E,uDAAuD;;IAGvD,sDAAsD;;IAGtD,mCAAmC;;IAGnC,gGAAgG;;;;IAGhG,qCAAqC;;IAGrC,uBAAuB;;CAEvB,CAAA"}
@@ -7,14 +7,11 @@ import { Description } from './Description.js';
7
7
  import { TrailingAction } from './TrailingAction.js';
8
8
  import { TrailingVisual, LeadingVisual } from './Visuals.js';
9
9
  import { Heading } from './Heading.js';
10
- import { ActionListContainerContext } from './ActionListContainerContext.js';
11
10
 
12
11
  /**
13
12
  * Collection of list-related components.
14
13
  */
15
14
  const ActionList = Object.assign(List, {
16
- /** Context for the `ActionList` container. */
17
- ContainerContext: ActionListContainerContext,
18
15
  /** Collects related `Items` in an `ActionList`. */
19
16
  Group,
20
17
  /** An actionable or selectable `Item` */
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultFeatureFlags.d.ts","sourceRoot":"","sources":["../../src/FeatureFlags/DefaultFeatureFlags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAA;AAEnD,eAAO,MAAM,mBAAmB,kBAI9B,CAAA"}
1
+ {"version":3,"file":"DefaultFeatureFlags.d.ts","sourceRoot":"","sources":["../../src/FeatureFlags/DefaultFeatureFlags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAA;AAEnD,eAAO,MAAM,mBAAmB,kBAK9B,CAAA"}
@@ -3,7 +3,8 @@ import { FeatureFlagScope } from './FeatureFlagScope.js';
3
3
  const DefaultFeatureFlags = FeatureFlagScope.create({
4
4
  primer_react_css_anchor_positioning: false,
5
5
  primer_react_select_panel_fullscreen_on_narrow: false,
6
- primer_react_select_panel_order_selected_at_top: false
6
+ primer_react_select_panel_order_selected_at_top: false,
7
+ primer_react_styled_react_use_primer_theme_providers: false
7
8
  });
8
9
 
9
10
  export { DefaultFeatureFlags };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@primer/react",
3
3
  "type": "module",
4
- "version": "0.0.0-20260507200848",
4
+ "version": "0.0.0-20260507212632",
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",