@primer/styled-react 0.0.0-20251030031854 → 0.0.0-20251030035136

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.
@@ -7,6 +7,7 @@ type StyledFooterProps = React.ComponentProps<'div'> & SxProp;
7
7
  declare const Dialog: import("react").ForwardRefExoticComponent<PrimerDialogProps & {
8
8
  children?: import("react").ReactNode | undefined;
9
9
  } & SxProp & import("react").RefAttributes<HTMLDivElement>> & {
10
+ __SLOT__: symbol;
10
11
  Buttons: import("react").FC<PropsWithChildren<{
11
12
  buttons: import("@primer/react").DialogButtonProps[];
12
13
  }>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../src/components/Dialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,WAAW,IAAI,iBAAiB,EAAC,MAAM,eAAe,CAAA;AAEnE,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AACjC,OAAO,EAA4C,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAEvF,KAAK,WAAW,GAAG,iBAAiB,CAAC,iBAAiB,CAAC,GAAG,MAAM,CAAA;AAahE,KAAK,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,MAAM,CAAA;AAO3D,KAAK,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,MAAM,CAAA;AAM7D,QAAA,MAAM,MAAM;;;;;;;;;CAKV,CAAA;AAEF,OAAO,EAAC,MAAM,EAAC,CAAA;AACf,YAAY,EAAC,WAAW,EAAC,CAAA"}
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../src/components/Dialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,WAAW,IAAI,iBAAiB,EAAa,MAAM,eAAe,CAAA;AAE/E,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AACjC,OAAO,EAA4C,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAEvF,KAAK,WAAW,GAAG,iBAAiB,CAAC,iBAAiB,CAAC,GAAG,MAAM,CAAA;AAchE,KAAK,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,MAAM,CAAA;AAO3D,KAAK,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,MAAM,CAAA;AAW7D,QAAA,MAAM,MAAM;;;;;;;;;;CAMV,CAAA;AAEF,OAAO,EAAC,MAAM,EAAC,CAAA;AACf,YAAY,EAAC,WAAW,EAAC,CAAA"}
@@ -12,6 +12,7 @@ const DialogImpl = /*#__PURE__*/forwardRef(function Dialog(props, ref) {
12
12
  });
13
13
  });
14
14
  const DialogHeader = /*#__PURE__*/forwardRef(function DialogHeader(props, ref) {
15
+ // @ts-expect-error - PrimerDialog.Header is not recognized as a valid component type
15
16
  return /*#__PURE__*/jsx(Box, {
16
17
  as: Dialog$1.Header,
17
18
  ref: ref,
@@ -27,13 +28,18 @@ const DialogBody = /*#__PURE__*/forwardRef(function DialogBody(props, ref) {
27
28
  });
28
29
  });
29
30
  const DialogFooter = /*#__PURE__*/forwardRef(function DialogFooter(props, ref) {
31
+ // @ts-expect-error - PrimerDialog.Footer is not recognized as a valid component type
30
32
  return /*#__PURE__*/jsx(Box, {
31
33
  as: Dialog$1.Footer,
32
34
  ref: ref,
33
35
  ...props
34
36
  });
35
37
  });
38
+ DialogHeader.__SLOT__ = Dialog$1.Header.__SLOT__;
39
+ DialogBody.__SLOT__ = Dialog$1.Body.__SLOT__;
40
+ DialogFooter.__SLOT__ = Dialog$1.Footer.__SLOT__;
36
41
  const Dialog = Object.assign(DialogImpl, {
42
+ __SLOT__: Dialog$1['__SLOT__'],
37
43
  Buttons: Dialog$1.Buttons,
38
44
  Header: DialogHeader,
39
45
  Body: DialogBody,
package/package.json CHANGED
@@ -1,4 +1,32 @@
1
1
  {
2
+ "name": "@primer/styled-react",
3
+ "version": "0.0.0-20251030035136",
4
+ "type": "module",
5
+ "exports": {
6
+ ".": {
7
+ "types": "./dist/index.d.ts",
8
+ "default": "./dist/index.js"
9
+ },
10
+ "./deprecated": {
11
+ "types": "./dist/deprecated.d.ts",
12
+ "default": "./dist/deprecated.js"
13
+ },
14
+ "./experimental": {
15
+ "types": "./dist/experimental.d.ts",
16
+ "default": "./dist/experimental.js"
17
+ },
18
+ "./components.json": "./dist/components.json"
19
+ },
20
+ "files": [
21
+ "README.md",
22
+ "dist"
23
+ ],
24
+ "scripts": {
25
+ "build": "script/build",
26
+ "clean": "rimraf dist",
27
+ "lint:npm": "publint --types",
28
+ "type-check": "tsc --noEmit"
29
+ },
2
30
  "dependencies": {
3
31
  "@styled-system/css": "^5.1.5",
4
32
  "@styled-system/props": "^5.1.5",
@@ -11,8 +39,8 @@
11
39
  "devDependencies": {
12
40
  "@babel/preset-react": "^7.27.1",
13
41
  "@babel/preset-typescript": "^7.27.1",
14
- "@primer/react": "0.0.0-20251030031854",
15
- "@rollup/plugin-babel": "^6.0.4",
42
+ "@primer/react": "0.0.0-20251030035136",
43
+ "@rollup/plugin-babel": "^6.1.0",
16
44
  "@types/react": "18.3.11",
17
45
  "@types/react-dom": "18.3.1",
18
46
  "@types/styled-components": "^5.1.26",
@@ -22,33 +50,13 @@
22
50
  "react": "18.3.1",
23
51
  "react-dom": "18.3.1",
24
52
  "rimraf": "^6.0.1",
25
- "rollup": "4.50.1",
53
+ "rollup": "4.52.5",
26
54
  "rollup-plugin-typescript2": "^0.36.0",
27
55
  "styled-components": "5.3.11",
28
56
  "typescript": "^5.9.2"
29
57
  },
30
- "exports": {
31
- ".": {
32
- "default": "./dist/index.js",
33
- "types": "./dist/index.d.ts"
34
- },
35
- "./components.json": "./dist/components.json",
36
- "./deprecated": {
37
- "default": "./dist/deprecated.js",
38
- "types": "./dist/deprecated.d.ts"
39
- },
40
- "./experimental": {
41
- "default": "./dist/experimental.js",
42
- "types": "./dist/experimental.d.ts"
43
- }
44
- },
45
- "files": [
46
- "README.md",
47
- "dist"
48
- ],
49
- "name": "@primer/styled-react",
50
58
  "peerDependencies": {
51
- "@primer/react": "0.0.0-20251030031854",
59
+ "@primer/react": "0.0.0-20251030035136",
52
60
  "@types/react": "18.x || 19.x",
53
61
  "@types/react-dom": "18.x || 19.x",
54
62
  "@types/react-is": "18.x || 19.x",
@@ -71,14 +79,5 @@
71
79
  "@types/styled-components": {
72
80
  "optional": true
73
81
  }
74
- },
75
- "repository": "primer/react",
76
- "scripts": {
77
- "build": "script/build",
78
- "clean": "rimraf dist",
79
- "lint:npm": "publint --types",
80
- "type-check": "tsc --noEmit"
81
- },
82
- "type": "module",
83
- "version": "0.0.0-20251030031854"
82
+ }
84
83
  }