@primer/styled-react 0.0.0-20260409025644 → 0.0.0-20260409035817

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.
@@ -1,7 +1,7 @@
1
1
  import { ActionMenu as PrimerActionMenu, type SlotMarker } from '@primer/react';
2
2
  import { type SxProp } from '../sx';
3
3
  import type { ComponentProps } from 'react';
4
- import React from 'react';
4
+ import type React from 'react';
5
5
  type ActionMenuOverlayProps = ComponentProps<typeof PrimerActionMenu.Overlay> & SxProp;
6
6
  declare const ActionMenuOverlay: React.ComponentType<ActionMenuOverlayProps> & SlotMarker;
7
7
  export declare const ActionMenu: typeof PrimerActionMenu & {
@@ -1 +1 @@
1
- {"version":3,"file":"ActionMenu.d.ts","sourceRoot":"","sources":["../../src/components/ActionMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,IAAI,gBAAgB,EAAE,KAAK,UAAU,EAAC,MAAM,eAAe,CAAA;AAC7E,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,KAAK,sBAAsB,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,GAAG,MAAM,CAAA;AAEtF,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,aAAa,CAAC,sBAAsB,CAAC,GAAG,UAMtE,CAAA;AAUD,eAAO,MAAM,UAAU,EAAE,OAAO,gBAAgB,GAAG;IACjD,MAAM,EAAE,OAAO,gBAAgB,CAAC,MAAM,CAAA;IACtC,MAAM,EAAE,OAAO,gBAAgB,CAAC,MAAM,CAAA;IACtC,OAAO,EAAE,OAAO,iBAAiB,CAAA;IACjC,OAAO,EAAE,OAAO,gBAAgB,CAAC,OAAO,CAAA;CAMxC,CAAA"}
1
+ {"version":3,"file":"ActionMenu.d.ts","sourceRoot":"","sources":["../../src/components/ActionMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,IAAI,gBAAgB,EAAE,KAAK,UAAU,EAAC,MAAM,eAAe,CAAA;AAC7E,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,KAAK,sBAAsB,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,GAAG,MAAM,CAAA;AAEtF,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,aAAa,CAAC,sBAAsB,CAAC,GAAG,UAMtE,CAAA;AAUD,eAAO,MAAM,UAAU,EAAE,OAAO,gBAAgB,GAAG;IACjD,MAAM,EAAE,OAAO,gBAAgB,CAAC,MAAM,CAAA;IACtC,MAAM,EAAE,OAAO,gBAAgB,CAAC,MAAM,CAAA;IACtC,OAAO,EAAE,OAAO,iBAAiB,CAAA;IACjC,OAAO,EAAE,OAAO,gBAAgB,CAAC,OAAO,CAAA;CAMxC,CAAA"}
@@ -1,7 +1,6 @@
1
1
  import { ActionMenu as ActionMenu$1 } from '@primer/react';
2
2
  import { sx } from '../sx.js';
3
3
  import styled from 'styled-components';
4
- import 'react';
5
4
  import { jsx } from 'react/jsx-runtime';
6
5
 
7
6
  const ActionMenuOverlay = styled(ActionMenu$1.Overlay).withConfig({
@@ -1,7 +1,7 @@
1
1
  import { Table as Table$1 } from '@primer/react/experimental';
2
2
  import { sx } from '../sx.js';
3
3
  import styled from 'styled-components';
4
- import 'react';
4
+ import React from 'react';
5
5
  import { jsx } from 'react/jsx-runtime';
6
6
 
7
7
  const {
@@ -27,11 +27,12 @@ function DataTableContainer({
27
27
  }
28
28
 
29
29
  // Create a wrapper component to avoid mutating the original PrimerDataTable
30
- function TableRoot(props) {
30
+ const TableRoot = /*#__PURE__*/React.forwardRef(function TableRoot(props, ref) {
31
31
  return /*#__PURE__*/jsx(Table$1, {
32
- ...props
32
+ ...props,
33
+ ref: ref
33
34
  });
34
- }
35
+ });
35
36
  TableRoot.__SLOT__ = Table$1.__SLOT__;
36
37
  const Table = Object.assign(TableRoot, {
37
38
  Container: DataTableContainer,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/styled-react",
3
- "version": "0.0.0-20260409025644",
3
+ "version": "0.0.0-20260409035817",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -49,7 +49,7 @@
49
49
  "@babel/preset-react": "^7.28.5",
50
50
  "@babel/preset-typescript": "^7.28.5",
51
51
  "@primer/primitives": "10.x || 11.x",
52
- "@primer/react": "0.0.0-20260409025644",
52
+ "@primer/react": "0.0.0-20260409035817",
53
53
  "@rollup/plugin-babel": "^6.1.0",
54
54
  "@storybook/react-vite": "^10.3.3",
55
55
  "@types/react": "18.3.11",
@@ -70,7 +70,7 @@
70
70
  "typescript": "^5.9.2"
71
71
  },
72
72
  "peerDependencies": {
73
- "@primer/react": "0.0.0-20260409025644",
73
+ "@primer/react": "0.0.0-20260409035817",
74
74
  "@types/react": "18.x || 19.x",
75
75
  "@types/react-dom": "18.x || 19.x",
76
76
  "@types/react-is": "18.x || 19.x",