@primer/styled-react 0.0.0-20251002220206 → 0.0.0-20251002230155
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/dist/components/FormControl.d.ts +4 -9
- package/dist/components/FormControl.d.ts.map +1 -1
- package/dist/components/PageLayout.d.ts +2 -6
- package/dist/components/PageLayout.d.ts.map +1 -1
- package/dist/components.json +0 -10
- package/dist/experimental.d.ts +1 -1
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +3 -28
- package/dist/index.js +5 -39
- package/package.json +3 -3
- package/dist/components/DataTable.d.ts +0 -11
- package/dist/components/DataTable.d.ts.map +0 -1
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import { FormControl as PrimerFormControl, type FormControlProps as PrimerFormControlProps, type
|
|
1
|
+
import { FormControl as PrimerFormControl, type FormControlProps as PrimerFormControlProps, type SxProp } from '@primer/react';
|
|
2
2
|
import { type PropsWithChildren } from 'react';
|
|
3
3
|
type FormControlProps = PropsWithChildren<PrimerFormControlProps> & SxProp;
|
|
4
4
|
declare const FormControlImpl: import("react").ForwardRefExoticComponent<PrimerFormControlProps & {
|
|
5
5
|
children?: import("react").ReactNode | undefined;
|
|
6
6
|
} & SxProp & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
-
type FormControlCaptionProps = PropsWithChildren<PrimerFormControlCaptionProps> & SxProp;
|
|
8
|
-
declare const FormControlCaption: (props: FormControlCaptionProps) => import("react").JSX.Element;
|
|
9
|
-
type FormControlValidationProps = PropsWithChildren<PrimerFormControlValidationProps> & SxProp;
|
|
10
|
-
declare const FormControlValidation: (props: FormControlValidationProps) => import("react").JSX.Element;
|
|
11
|
-
declare const FormControlLeadingVisual: (props: PropsWithChildren<SxProp>) => import("react").JSX.Element;
|
|
12
7
|
declare const FormControl: typeof FormControlImpl & {
|
|
13
|
-
Caption: typeof
|
|
14
|
-
LeadingVisual: typeof
|
|
15
|
-
Validation: typeof
|
|
8
|
+
Caption: typeof PrimerFormControl.Caption;
|
|
9
|
+
LeadingVisual: typeof PrimerFormControl.LeadingVisual;
|
|
10
|
+
Validation: typeof PrimerFormControl.Validation;
|
|
16
11
|
Label: typeof PrimerFormControl.Label;
|
|
17
12
|
};
|
|
18
13
|
export { FormControl, type FormControlProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormControl.d.ts","sourceRoot":"","sources":["../../src/components/FormControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,IAAI,iBAAiB,EAChC,KAAK,gBAAgB,IAAI,sBAAsB,
|
|
1
|
+
{"version":3,"file":"FormControl.d.ts","sourceRoot":"","sources":["../../src/components/FormControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,IAAI,iBAAiB,EAChC,KAAK,gBAAgB,IAAI,sBAAsB,EAG/C,KAAK,MAAM,EACZ,MAAM,eAAe,CAAA;AACtB,OAAO,EAAa,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAExD,KAAK,gBAAgB,GAAG,iBAAiB,CAAC,sBAAsB,CAAC,GAAG,MAAM,CAAA;AAE1E,QAAA,MAAM,eAAe;;2DAEnB,CAAA;AAEF,QAAA,MAAM,WAAW,EAKX,OAAO,eAAe,GAAG;IAC7B,OAAO,EAAE,OAAO,iBAAiB,CAAC,OAAO,CAAA;IACzC,aAAa,EAAE,OAAO,iBAAiB,CAAC,aAAa,CAAA;IACrD,UAAU,EAAE,OAAO,iBAAiB,CAAC,UAAU,CAAA;IAC/C,KAAK,EAAE,OAAO,iBAAiB,CAAC,KAAK,CAAA;CACtC,CAAA;AAED,OAAO,EAAC,WAAW,EAAE,KAAK,gBAAgB,EAAC,CAAA"}
|
|
@@ -8,15 +8,11 @@ declare const PageLayout: React.ForwardRefExoticComponent<PrimerPageLayoutProps
|
|
|
8
8
|
Content: React.ForwardRefExoticComponent<PrimerPageLayoutContentProps & {
|
|
9
9
|
children?: React.ReactNode | undefined;
|
|
10
10
|
} & SxProp & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
-
Header: React.
|
|
12
|
-
children?: React.ReactNode | undefined;
|
|
13
|
-
} & SxProp & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
Header: React.FC<React.PropsWithChildren<PrimerPageLayoutHeaderProps>>;
|
|
14
12
|
Pane: React.ForwardRefExoticComponent<PrimerPageLayoutPaneProps & {
|
|
15
13
|
children?: React.ReactNode | undefined;
|
|
16
14
|
} & SxProp & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
Footer: React.
|
|
18
|
-
children?: React.ReactNode | undefined;
|
|
19
|
-
} & SxProp & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
Footer: React.FC<React.PropsWithChildren<PrimerPageLayoutFooterProps>>;
|
|
20
16
|
};
|
|
21
17
|
export { PageLayout, type PageLayoutProps };
|
|
22
18
|
//# sourceMappingURL=PageLayout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageLayout.d.ts","sourceRoot":"","sources":["../../src/components/PageLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAEnD,OAAO,KAAK,EACV,eAAe,IAAI,qBAAqB,EACxC,sBAAsB,IAAI,4BAA4B,EACtD,qBAAqB,IAAI,2BAA2B,EACpD,mBAAmB,IAAI,yBAAyB,EAChD,qBAAqB,IAAI,2BAA2B,EACrD,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAMrC,KAAK,eAAe,GAAG,iBAAiB,CAAC,qBAAqB,CAAC,GAAG,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"PageLayout.d.ts","sourceRoot":"","sources":["../../src/components/PageLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAEnD,OAAO,KAAK,EACV,eAAe,IAAI,qBAAqB,EACxC,sBAAsB,IAAI,4BAA4B,EACtD,qBAAqB,IAAI,2BAA2B,EACpD,mBAAmB,IAAI,yBAAyB,EAChD,qBAAqB,IAAI,2BAA2B,EACrD,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAMrC,KAAK,eAAe,GAAG,iBAAiB,CAAC,qBAAqB,CAAC,GAAG,MAAM,CAAA;AAmBxE,QAAA,MAAM,UAAU;;;;;;;;;;;CAKd,CAAA;AAEF,OAAO,EAAC,UAAU,EAAE,KAAK,eAAe,EAAC,CAAA"}
|
package/dist/components.json
CHANGED
|
@@ -59,7 +59,6 @@
|
|
|
59
59
|
"CheckboxGroupProps",
|
|
60
60
|
"CheckboxProps",
|
|
61
61
|
"CounterLabelProps",
|
|
62
|
-
"DataTableContainerProps",
|
|
63
62
|
"DialogHeaderProps",
|
|
64
63
|
"DialogProps",
|
|
65
64
|
"FormControlProps",
|
|
@@ -82,15 +81,6 @@
|
|
|
82
81
|
"SubNavLinkProps",
|
|
83
82
|
"SubNavProps",
|
|
84
83
|
"SxProp",
|
|
85
|
-
"TableActionsProps",
|
|
86
|
-
"TableBodyProps",
|
|
87
|
-
"TableCellProps",
|
|
88
|
-
"TableHeaderProps",
|
|
89
|
-
"TableHeadProps",
|
|
90
|
-
"TableProps",
|
|
91
|
-
"TableRowProps",
|
|
92
|
-
"TableSubtitleProps",
|
|
93
|
-
"TableTitleProps",
|
|
94
84
|
"TabNavLinkProps",
|
|
95
85
|
"TabNavProps",
|
|
96
86
|
"TextInputProps",
|
package/dist/experimental.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ export { Dialog, type DialogProps } from './components/Dialog';
|
|
|
2
2
|
export { PageHeader, type PageHeaderProps, type PageHeaderActionsProps, type PageHeaderTitleProps, } from './components/PageHeader';
|
|
3
3
|
export { Tooltip, type TooltipProps } from './components/Tooltip';
|
|
4
4
|
export { UnderlinePanels, type UnderlinePanelsProps, type UnderlinePanelsTabProps, type UnderlinePanelsPanelProps, } from './components/UnderlinePanels';
|
|
5
|
-
export { Table
|
|
5
|
+
export { Table } from '@primer/react/experimental';
|
|
6
6
|
//# sourceMappingURL=experimental.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAC,MAAM,qBAAqB,CAAA;AAC5D,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAE/D,OAAO,EACL,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,GAC/B,MAAM,8BAA8B,CAAA;AAErC,OAAO,
|
|
1
|
+
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAC,MAAM,qBAAqB,CAAA;AAC5D,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAE/D,OAAO,EACL,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,GAC/B,MAAM,8BAA8B,CAAA;AAErC,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAA"}
|
package/dist/experimental.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { D as Dialog, P as PageHeader } from './PageHeader-DCDIR2C1.js';
|
|
2
2
|
export { T as Tooltip } from './Tooltip-YuSlJ5b_.js';
|
|
3
|
-
import { UnderlinePanels as UnderlinePanels$1
|
|
3
|
+
import { UnderlinePanels as UnderlinePanels$1 } from '@primer/react/experimental';
|
|
4
|
+
export { Table } from '@primer/react/experimental';
|
|
4
5
|
import styled from 'styled-components';
|
|
5
6
|
import { sx } from '@primer/react';
|
|
6
7
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -28,30 +29,4 @@ const UnderlinePanels = Object.assign(UnderlinePanelsImpl, {
|
|
|
28
29
|
Panel: UnderlinePanels$1.Panel
|
|
29
30
|
});
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
Container: PrimerDataTableContainer,
|
|
33
|
-
...rest
|
|
34
|
-
} = Table$1;
|
|
35
|
-
const StyleDataTableContainer = styled(PrimerDataTableContainer).withConfig({
|
|
36
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
37
|
-
}).withConfig({
|
|
38
|
-
displayName: "DataTable__StyleDataTableContainer",
|
|
39
|
-
componentId: "sc-qy1ey2-0"
|
|
40
|
-
})(["", ""], sx);
|
|
41
|
-
function DataTableContainer({
|
|
42
|
-
as,
|
|
43
|
-
...rest
|
|
44
|
-
}) {
|
|
45
|
-
return /*#__PURE__*/jsx(StyleDataTableContainer, {
|
|
46
|
-
...rest,
|
|
47
|
-
...(as ? {
|
|
48
|
-
forwardedAs: as
|
|
49
|
-
} : {})
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
const Table = Object.assign(Table$1, {
|
|
53
|
-
Container: DataTableContainer,
|
|
54
|
-
...rest
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
export { Table, UnderlinePanels };
|
|
32
|
+
export { UnderlinePanels };
|
package/dist/index.js
CHANGED
|
@@ -144,28 +144,10 @@ const FormControlImpl = /*#__PURE__*/forwardRef(function FormControl(props, ref)
|
|
|
144
144
|
...props
|
|
145
145
|
});
|
|
146
146
|
});
|
|
147
|
-
const FormControlCaption = props => {
|
|
148
|
-
return /*#__PURE__*/jsx(Box, {
|
|
149
|
-
as: FormControl$1.Caption,
|
|
150
|
-
...props
|
|
151
|
-
});
|
|
152
|
-
};
|
|
153
|
-
const FormControlValidation = props => {
|
|
154
|
-
return /*#__PURE__*/jsx(Box, {
|
|
155
|
-
as: FormControl$1.Validation,
|
|
156
|
-
...props
|
|
157
|
-
});
|
|
158
|
-
};
|
|
159
|
-
const FormControlLeadingVisual = props => {
|
|
160
|
-
return /*#__PURE__*/jsx(Box, {
|
|
161
|
-
as: FormControl$1.LeadingVisual,
|
|
162
|
-
...props
|
|
163
|
-
});
|
|
164
|
-
};
|
|
165
147
|
const FormControl = Object.assign(FormControlImpl, {
|
|
166
|
-
Caption:
|
|
167
|
-
LeadingVisual:
|
|
168
|
-
Validation:
|
|
148
|
+
Caption: FormControl$1.Caption,
|
|
149
|
+
LeadingVisual: FormControl$1.LeadingVisual,
|
|
150
|
+
Validation: FormControl$1.Validation,
|
|
169
151
|
Label: FormControl$1.Label
|
|
170
152
|
});
|
|
171
153
|
|
|
@@ -332,14 +314,6 @@ const PageLayoutContent = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
332
314
|
...props
|
|
333
315
|
});
|
|
334
316
|
});
|
|
335
|
-
const PageLayoutHeader = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
336
|
-
// @ts-expect-error - PrimerPageLayout.Header is not recognized as a valid component type
|
|
337
|
-
return /*#__PURE__*/jsx(Wrapper, {
|
|
338
|
-
as: PageLayout$1.Header,
|
|
339
|
-
ref: ref,
|
|
340
|
-
...props
|
|
341
|
-
});
|
|
342
|
-
});
|
|
343
317
|
const PageLayoutPane = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
344
318
|
return /*#__PURE__*/jsx(Wrapper, {
|
|
345
319
|
as: PageLayout$1.Pane,
|
|
@@ -347,19 +321,11 @@ const PageLayoutPane = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
347
321
|
...props
|
|
348
322
|
});
|
|
349
323
|
});
|
|
350
|
-
const PageLayoutFooter = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
351
|
-
// @ts-expect-error - PrimerPageLayout.Footer is not recognized as a valid component type
|
|
352
|
-
return /*#__PURE__*/jsx(Wrapper, {
|
|
353
|
-
as: PageLayout$1.Footer,
|
|
354
|
-
ref: ref,
|
|
355
|
-
...props
|
|
356
|
-
});
|
|
357
|
-
});
|
|
358
324
|
const PageLayout = Object.assign(PageLayoutImpl, {
|
|
359
325
|
Content: PageLayoutContent,
|
|
360
|
-
Header:
|
|
326
|
+
Header: PageLayout$1.Header,
|
|
361
327
|
Pane: PageLayoutPane,
|
|
362
|
-
Footer:
|
|
328
|
+
Footer: PageLayout$1.Footer
|
|
363
329
|
});
|
|
364
330
|
|
|
365
331
|
const RadioGroupImpl = props => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/styled-react",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-20251002230155",
|
|
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-
|
|
33
|
+
"@primer/react": "0.0.0-20251002230155",
|
|
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-
|
|
49
|
+
"@primer/react": "0.0.0-20251002230155",
|
|
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,11 +0,0 @@
|
|
|
1
|
-
import { Table as PrimerDataTable, type TableContainerProps } from '@primer/react/experimental';
|
|
2
|
-
import { type SxProp } from '../sx';
|
|
3
|
-
import type React from 'react';
|
|
4
|
-
type DataTableContainerProps<As extends React.ElementType = 'div'> = TableContainerProps<As> & SxProp;
|
|
5
|
-
declare function DataTableContainer<As extends React.ElementType = 'div'>({ as, ...rest }: DataTableContainerProps<As>): React.JSX.Element;
|
|
6
|
-
declare const Table: typeof PrimerDataTable & {
|
|
7
|
-
Container: typeof DataTableContainer;
|
|
8
|
-
};
|
|
9
|
-
export type { TableProps, TableHeadProps, TableBodyProps, TableRowProps, TableHeaderProps, TableCellProps, TableTitleProps, TableSubtitleProps, TableActionsProps, } from '@primer/react/experimental';
|
|
10
|
-
export { Table, type DataTableContainerProps };
|
|
11
|
-
//# sourceMappingURL=DataTable.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../src/components/DataTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,IAAI,eAAe,EAAE,KAAK,mBAAmB,EAAC,MAAM,4BAA4B,CAAA;AAC7F,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;AAED,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"}
|