@primer/styled-react 0.0.0-20260409030341 → 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,6 +1,6 @@
1
1
  import { Table as PrimerDataTable, type TableContainerProps } from '@primer/react/experimental';
2
2
  import { type SxProp } from '../sx';
3
- import type React from 'react';
3
+ import React from 'react';
4
4
  type DataTableContainerProps<As extends React.ElementType = 'div'> = TableContainerProps<As> & SxProp;
5
5
  declare function DataTableContainer<As extends React.ElementType = 'div'>({ as, ...rest }: DataTableContainerProps<As>): React.JSX.Element;
6
6
  declare const Table: typeof PrimerDataTable & {
@@ -1 +1 @@
1
- {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../src/components/DataTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,IAAI,eAAe,EAAE,KAAK,mBAAmB,EAAkB,MAAM,4BAA4B,CAAA;AAC9G,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,KAAK,uBAAuB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,IAAI,mBAAmB,CAAC,EAAE,CAAC,GAAG,MAAM,CAAA;AAYrG,iBAAS,kBAAkB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAAE,EAAC,EAAE,EAAE,GAAG,IAAI,EAAC,EAAE,uBAAuB,CAAC,EAAE,CAAC,qBAE3G;AAUD,QAAA,MAAM,KAAK,EAAE,OAAO,eAAe,GAAG;IACpC,SAAS,EAAE,OAAO,kBAAkB,CAAA;CAIpC,CAAA;AAEF,YAAY,EACV,UAAU,EACV,cAAc,EACd,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAC,KAAK,EAAE,KAAK,uBAAuB,EAAC,CAAA"}
1
+ {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../src/components/DataTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,IAAI,eAAe,EAAE,KAAK,mBAAmB,EAAkB,MAAM,4BAA4B,CAAA;AAC9G,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,KAAK,uBAAuB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,IAAI,mBAAmB,CAAC,EAAE,CAAC,GAAG,MAAM,CAAA;AAYrG,iBAAS,kBAAkB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAAE,EAAC,EAAE,EAAE,GAAG,IAAI,EAAC,EAAE,uBAAuB,CAAC,EAAE,CAAC,qBAE3G;AAUD,QAAA,MAAM,KAAK,EAAE,OAAO,eAAe,GAAG;IACpC,SAAS,EAAE,OAAO,kBAAkB,CAAA;CAIpC,CAAA;AAEF,YAAY,EACV,UAAU,EACV,cAAc,EACd,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAC,KAAK,EAAE,KAAK,uBAAuB,EAAC,CAAA"}
@@ -1,6 +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 from 'react';
4
5
  import { jsx } from 'react/jsx-runtime';
5
6
 
6
7
  const {
@@ -26,11 +27,12 @@ function DataTableContainer({
26
27
  }
27
28
 
28
29
  // Create a wrapper component to avoid mutating the original PrimerDataTable
29
- function TableRoot(props) {
30
+ const TableRoot = /*#__PURE__*/React.forwardRef(function TableRoot(props, ref) {
30
31
  return /*#__PURE__*/jsx(Table$1, {
31
- ...props
32
+ ...props,
33
+ ref: ref
32
34
  });
33
- }
35
+ });
34
36
  TableRoot.__SLOT__ = Table$1.__SLOT__;
35
37
  const Table = Object.assign(TableRoot, {
36
38
  Container: DataTableContainer,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/styled-react",
3
- "version": "0.0.0-20260409030341",
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-20260409030341",
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-20260409030341",
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",