@primer/styled-react 0.0.0-20251003222511 → 0.0.0-20251003223746

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.
@@ -10,9 +10,11 @@ const Tooltip = /*#__PURE__*/forwardRef(function Tooltip(props, ref) {
10
10
  ...props
11
11
  });
12
12
  });
13
+ // Cast the polymorphic component to a compatible type for styled-components
14
+ const DeprecatedTooltipComponent = Tooltip$2;
13
15
  const DeprecatedTooltip = /*#__PURE__*/forwardRef(function DeprecatedTooltip(props, ref) {
14
16
  return /*#__PURE__*/jsx(Box, {
15
- as: Tooltip$2,
17
+ as: DeprecatedTooltipComponent,
16
18
  ref: ref,
17
19
  ...props
18
20
  });
@@ -1,6 +1,6 @@
1
1
  import type { DialogProps as PrimerDialogProps, DialogHeaderProps as PrimerDialogHeaderProps } from '@primer/react/deprecated';
2
- import type { SxProp } from '../../sx';
3
- import type { ForwardRefComponent } from '../../polymorphic';
2
+ import type { SxProp } from '../sx';
3
+ import type { ForwardRefComponent } from '../polymorphic';
4
4
  type DialogProps = PrimerDialogProps & SxProp;
5
5
  type DialogHeaderProps = PrimerDialogHeaderProps & SxProp;
6
6
  declare const Dialog: ForwardRefComponent<"div", DialogProps> & {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DialogV1.d.ts","sourceRoot":"","sources":["../../src/components/DialogV1.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,WAAW,IAAI,iBAAiB,EAChC,iBAAiB,IAAI,uBAAuB,EAC7C,MAAM,0BAA0B,CAAA;AAEjC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,KAAK,WAAW,GAAG,iBAAiB,GAAG,MAAM,CAAA;AAU7C,KAAK,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAUzD,QAAA,MAAM,MAAM;;CAEV,CAAA;AAEF,OAAO,EAAC,MAAM,EAAC,CAAA;AACf,YAAY,EAAC,WAAW,EAAE,iBAAiB,EAAC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import type { TabNavProps as PrimerTabNavProps, TabNavLinkProps as PrimerTabNavLinkProps } from '@primer/react/deprecated';
2
- import { type SxProp } from '../../sx';
2
+ import { type SxProp } from '../sx';
3
3
  type TabNavProps = PrimerTabNavProps & SxProp;
4
4
  type TabNavLinkProps = PrimerTabNavLinkProps & SxProp;
5
5
  declare const TabNav: (({ as, ...props }: TabNavProps) => import("react").JSX.Element) & {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabNav.d.ts","sourceRoot":"","sources":["../../src/components/TabNav.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,WAAW,IAAI,iBAAiB,EAAE,eAAe,IAAI,qBAAqB,EAAC,MAAM,0BAA0B,CAAA;AACxH,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAIrC,KAAK,WAAW,GAAG,iBAAiB,GAAG,MAAM,CAAA;AAC7C,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAsBrD,QAAA,MAAM,MAAM,sBAdwB,WAAW;;CAgB7C,CAAA;AAEF,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/components/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAE,KAAK,MAAM,EAAC,MAAM,eAAe,CAAA;AAC5G,OAAO,EAEL,KAAK,YAAY,IAAI,4BAA4B,EAClD,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EAAa,KAAK,yBAAyB,EAAE,KAAK,aAAa,EAAC,MAAM,OAAO,CAAA;AAEpF,KAAK,YAAY,GAAG,kBAAkB,GAAG,MAAM,CAAA;AAE/C,QAAA,MAAM,OAAO,EAAE,yBAAyB,CAAC,YAAY,GAAG,aAAa,CAAC,cAAc,CAAC,CAKnF,CAAA;AAEF,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA;AAEnC,KAAK,sBAAsB,GAAG,4BAA4B,GAAG,MAAM,CAAA;AAEnE,QAAA,MAAM,iBAAiB,EAAE,yBAAyB,CAAC,sBAAsB,GAAG,aAAa,CAAC,eAAe,CAAC,CAGtG,CAAA;AACJ,OAAO,EAAC,iBAAiB,EAAE,KAAK,sBAAsB,EAAC,CAAA"}
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/components/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAE,KAAK,MAAM,EAAC,MAAM,eAAe,CAAA;AAC5G,OAAO,EAEL,KAAK,YAAY,IAAI,4BAA4B,EAClD,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EAAa,KAAK,yBAAyB,EAAE,KAAK,aAAa,EAAqB,MAAM,OAAO,CAAA;AAExG,KAAK,YAAY,GAAG,kBAAkB,GAAG,MAAM,CAAA;AAE/C,QAAA,MAAM,OAAO,EAAE,yBAAyB,CAAC,YAAY,GAAG,aAAa,CAAC,cAAc,CAAC,CAKnF,CAAA;AAEF,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA;AAEnC,KAAK,sBAAsB,GAAG,4BAA4B,GAAG,MAAM,CAAA;AAKnE,QAAA,MAAM,iBAAiB,EAAE,yBAAyB,CAAC,sBAAsB,GAAG,aAAa,CAAC,eAAe,CAAC,CAGtG,CAAA;AACJ,OAAO,EAAC,iBAAiB,EAAE,KAAK,sBAAsB,EAAC,CAAA"}
@@ -1,5 +1,5 @@
1
- export { TabNav, type TabNavProps, type TabNavLinkProps } from './components/deprecated/TabNav';
2
- export { Dialog, type DialogProps, type DialogHeaderProps } from './components/deprecated/DialogV1';
1
+ export { TabNav, type TabNavProps, type TabNavLinkProps } from './components/TabNav';
2
+ export { Dialog, type DialogProps, type DialogHeaderProps } from './components/DialogV1';
3
3
  export { Octicon } from '@primer/react/deprecated';
4
4
  export { DeprecatedTooltip as Tooltip, type DeprecatedTooltipProps as TooltipProps } from './components/Tooltip';
5
5
  //# sourceMappingURL=deprecated.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deprecated.d.ts","sourceRoot":"","sources":["../src/deprecated.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAC,MAAM,gCAAgC,CAAA;AAC7F,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,iBAAiB,EAAC,MAAM,kCAAkC,CAAA;AACjG,OAAO,EAAC,OAAO,EAAC,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAC,iBAAiB,IAAI,OAAO,EAAE,KAAK,sBAAsB,IAAI,YAAY,EAAC,MAAM,sBAAsB,CAAA"}
1
+ {"version":3,"file":"deprecated.d.ts","sourceRoot":"","sources":["../src/deprecated.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAC,MAAM,qBAAqB,CAAA;AAClF,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,iBAAiB,EAAC,MAAM,uBAAuB,CAAA;AACtF,OAAO,EAAC,OAAO,EAAC,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAC,iBAAiB,IAAI,OAAO,EAAE,KAAK,sBAAsB,IAAI,YAAY,EAAC,MAAM,sBAAsB,CAAA"}
@@ -4,13 +4,13 @@ import { sx, Box } from '@primer/react';
4
4
  import styled from 'styled-components';
5
5
  import { forwardRef } from 'react';
6
6
  import { jsx } from 'react/jsx-runtime';
7
- export { D as Tooltip } from './Tooltip-CHxOtrYq.js';
7
+ export { D as Tooltip } from './Tooltip-BG0Yv54T.js';
8
8
 
9
9
  const StyledTabNav = styled(TabNav$1).withConfig({
10
10
  shouldForwardProp: prop => prop !== 'sx'
11
11
  }).withConfig({
12
12
  displayName: "TabNav__StyledTabNav",
13
- componentId: "sc-13kad3t-0"
13
+ componentId: "sc-v7az9x-0"
14
14
  })(["", ""], sx);
15
15
  const TabNavImpl = ({
16
16
  as,
@@ -27,7 +27,7 @@ const StyledTabNavLink = styled(TabNav$1.Link).withConfig({
27
27
  shouldForwardProp: prop => prop !== 'sx'
28
28
  }).withConfig({
29
29
  displayName: "TabNav__StyledTabNavLink",
30
- componentId: "sc-13kad3t-1"
30
+ componentId: "sc-v7az9x-1"
31
31
  })(["", ""], sx);
32
32
  const TabNavLink = /*#__PURE__*/forwardRef(({
33
33
  as,
@@ -1,5 +1,5 @@
1
1
  export { D as Dialog, P as PageHeader } from './PageHeader-DCDIR2C1.js';
2
- export { T as Tooltip } from './Tooltip-CHxOtrYq.js';
2
+ export { T as Tooltip } from './Tooltip-BG0Yv54T.js';
3
3
  import { UnderlinePanels as UnderlinePanels$1 } from '@primer/react/experimental';
4
4
  export { Table } from '@primer/react/experimental';
5
5
  import styled from 'styled-components';
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import styled from 'styled-components';
4
4
  import React, { forwardRef } from 'react';
5
5
  import { jsx } from 'react/jsx-runtime';
6
6
  export { D as Dialog, P as PageHeader } from './PageHeader-DCDIR2C1.js';
7
- export { T as Tooltip } from './Tooltip-CHxOtrYq.js';
7
+ export { T as Tooltip } from './Tooltip-BG0Yv54T.js';
8
8
  import css from '@styled-system/css';
9
9
  import '@primer/react/deprecated';
10
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/styled-react",
3
- "version": "0.0.0-20251003222511",
3
+ "version": "0.0.0-20251003223746",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -30,7 +30,7 @@
30
30
  "devDependencies": {
31
31
  "@babel/preset-react": "^7.27.1",
32
32
  "@babel/preset-typescript": "^7.27.1",
33
- "@primer/react": "0.0.0-20251003222511",
33
+ "@primer/react": "0.0.0-20251003223746",
34
34
  "@rollup/plugin-babel": "^6.0.4",
35
35
  "@types/react": "18.3.11",
36
36
  "@types/react-dom": "18.3.1",
@@ -46,7 +46,7 @@
46
46
  "typescript": "^5.9.2"
47
47
  },
48
48
  "peerDependencies": {
49
- "@primer/react": "0.0.0-20251003222511",
49
+ "@primer/react": "0.0.0-20251003223746",
50
50
  "@types/react": "18.x || 19.x",
51
51
  "@types/react-dom": "18.x || 19.x",
52
52
  "@types/react-is": "18.x || 19.x",
@@ -1,23 +0,0 @@
1
- import { type PropsWithChildren } from 'react';
2
- import { type ActionListProps as PrimerActionListProps, type ActionListItemProps as PrimerActionListItemProps, type ActionListGroupProps as PrimerActionListGroupProps } from '@primer/react/deprecated';
3
- import { type SxProp } from '../../sx';
4
- import type { ActionListDividerProps } from '@primer/react';
5
- type ActionListProps = PropsWithChildren<PrimerActionListProps & SxProp>;
6
- type ActionListItemProps = PropsWithChildren<PrimerActionListItemProps & SxProp & {
7
- as?: React.ElementType;
8
- }>;
9
- type ActionListGroupProps = PropsWithChildren<PrimerActionListGroupProps & SxProp>;
10
- declare function ActionListGroup(props: ActionListGroupProps): import("react").JSX.Element;
11
- declare function ActionListDivider(props: ActionListDividerProps): import("react").JSX.Element;
12
- declare const ActionList: import("react").ForwardRefExoticComponent<ActionListProps & import("react").RefAttributes<HTMLDivElement>> & {
13
- Item: import("react").ForwardRefExoticComponent<PrimerActionListItemProps & SxProp & {
14
- as?: React.ElementType;
15
- } & {
16
- children?: import("react").ReactNode | undefined;
17
- } & import("react").RefAttributes<HTMLLIElement>>;
18
- Group: typeof ActionListGroup;
19
- Divider: typeof ActionListDivider;
20
- };
21
- export type { ActionListProps, ActionListItemProps, ActionListGroupProps };
22
- export { ActionList };
23
- //# sourceMappingURL=ActionList.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ActionList.d.ts","sourceRoot":"","sources":["../../../src/components/deprecated/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WAAW,GAAG,iBAAiB,GAAG,MAAM,CAAA;AAU7C,KAAK,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAUzD,QAAA,MAAM,MAAM;;CAEV,CAAA;AAEF,OAAO,EAAC,MAAM,EAAC,CAAA;AACf,YAAY,EAAC,WAAW,EAAE,iBAAiB,EAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TabNav.d.ts","sourceRoot":"","sources":["../../../src/components/deprecated/TabNav.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,WAAW,IAAI,iBAAiB,EAAE,eAAe,IAAI,qBAAqB,EAAC,MAAM,0BAA0B,CAAA;AACxH,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,UAAU,CAAA;AAIxC,KAAK,WAAW,GAAG,iBAAiB,GAAG,MAAM,CAAA;AAC7C,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAsBrD,QAAA,MAAM,MAAM,sBAdwB,WAAW;;CAgB7C,CAAA;AAEF,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAC,CAAA"}