@primer/styled-react 0.0.0-20251002003217 → 0.0.0-20251002015036
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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type FormControlProps as PrimerFormControlProps, type FormControlCaptionProps as PrimerFormControlCaptionProps, type FormControlValidationProps as PrimerFormControlValidationProps, type FormControlLabelProps as PrimerFormControlLabelProps, 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 & {
|
|
@@ -9,11 +9,13 @@ declare const FormControlCaption: (props: FormControlCaptionProps) => import("re
|
|
|
9
9
|
type FormControlValidationProps = PropsWithChildren<PrimerFormControlValidationProps> & SxProp;
|
|
10
10
|
declare const FormControlValidation: (props: FormControlValidationProps) => import("react").JSX.Element;
|
|
11
11
|
declare const FormControlLeadingVisual: (props: PropsWithChildren<SxProp>) => import("react").JSX.Element;
|
|
12
|
+
type FormControlLabelProps = PropsWithChildren<PrimerFormControlLabelProps> & SxProp;
|
|
13
|
+
declare const FormControlLabel: (props: FormControlLabelProps) => import("react").JSX.Element;
|
|
12
14
|
declare const FormControl: typeof FormControlImpl & {
|
|
13
15
|
Caption: typeof FormControlCaption;
|
|
14
16
|
LeadingVisual: typeof FormControlLeadingVisual;
|
|
15
17
|
Validation: typeof FormControlValidation;
|
|
16
|
-
Label: typeof
|
|
18
|
+
Label: typeof FormControlLabel;
|
|
17
19
|
};
|
|
18
20
|
export { FormControl, type FormControlProps };
|
|
19
21
|
//# sourceMappingURL=FormControl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormControl.d.ts","sourceRoot":"","sources":["../../src/components/FormControl.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|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162,17 @@ const FormControlLeadingVisual = props => {
|
|
|
162
162
|
...props
|
|
163
163
|
});
|
|
164
164
|
};
|
|
165
|
+
const FormControlLabel = props => {
|
|
166
|
+
return /*#__PURE__*/jsx(Box, {
|
|
167
|
+
as: FormControl$1.Label,
|
|
168
|
+
...props
|
|
169
|
+
});
|
|
170
|
+
};
|
|
165
171
|
const FormControl = Object.assign(FormControlImpl, {
|
|
166
172
|
Caption: FormControlCaption,
|
|
167
173
|
LeadingVisual: FormControlLeadingVisual,
|
|
168
174
|
Validation: FormControlValidation,
|
|
169
|
-
Label:
|
|
175
|
+
Label: FormControlLabel
|
|
170
176
|
});
|
|
171
177
|
|
|
172
178
|
const StyledHeader = /*#__PURE__*/forwardRef(function Header(props, ref) {
|
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-20251002015036",
|
|
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-20251002015036",
|
|
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-20251002015036",
|
|
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",
|