@primer/styled-react 1.0.0-rc.6 → 1.0.0-rc.8
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/ActionList.d.ts +21 -13
- package/dist/components/ActionList.d.ts.map +1 -1
- package/dist/components/ActionList.js +162 -0
- package/dist/components/ActionMenu.d.ts +2 -2
- package/dist/components/ActionMenu.d.ts.map +1 -1
- package/dist/components/ActionMenu.js +18 -0
- package/dist/components/Autocomplete.d.ts +5 -3
- package/dist/components/Autocomplete.d.ts.map +1 -1
- package/dist/components/Autocomplete.js +24 -0
- package/dist/components/Avatar.js +13 -0
- package/dist/components/BaseStyles.d.ts +17 -0
- package/dist/components/BaseStyles.d.ts.map +1 -0
- package/dist/components/BaseStyles.js +51 -0
- package/dist/components/Breadcrumbs.js +37 -0
- package/dist/components/Button.d.ts +13 -0
- package/dist/components/Button.d.ts.map +1 -0
- package/dist/components/Button.js +111 -0
- package/dist/components/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox.js +14 -0
- package/dist/components/CheckboxGroup.d.ts +16 -4
- package/dist/components/CheckboxGroup.d.ts.map +1 -1
- package/dist/components/CheckboxGroup.js +42 -0
- package/dist/components/CircleBadge.js +11 -0
- package/dist/components/CounterLabel.js +13 -0
- package/dist/components/DataTable.js +32 -0
- package/dist/components/Dialog.js +42 -0
- package/dist/components/FeatureFlaggedTheming.d.ts +6 -0
- package/dist/components/FeatureFlaggedTheming.d.ts.map +1 -0
- package/dist/components/FeatureFlaggedTheming.js +54 -0
- package/dist/components/Flash.js +11 -0
- package/dist/components/FormControl.d.ts +12 -0
- package/dist/components/FormControl.d.ts.map +1 -0
- package/dist/components/FormControl.js +18 -0
- package/dist/components/Header.js +51 -0
- package/dist/components/Heading.js +11 -0
- package/dist/components/IconButton.d.ts +9 -0
- package/dist/components/IconButton.d.ts.map +1 -0
- package/dist/components/IconButton.js +39 -0
- package/dist/components/Label.js +25 -0
- package/dist/components/Link.js +25 -0
- package/dist/components/LinkButton.js +11 -0
- package/dist/components/NavList.d.ts +27 -19
- package/dist/components/NavList.d.ts.map +1 -1
- package/dist/components/NavList.js +56 -0
- package/dist/components/Overlay.js +11 -0
- package/dist/components/PageHeader.d.ts.map +1 -1
- package/dist/{PageHeader-DCDIR2C1.js → components/PageHeader.js} +4 -41
- package/dist/components/PageLayout.d.ts +15 -10
- package/dist/components/PageLayout.d.ts.map +1 -1
- package/dist/components/PageLayout.js +42 -0
- package/dist/components/RadioGroup.d.ts +16 -4
- package/dist/components/RadioGroup.d.ts.map +1 -1
- package/dist/components/RadioGroup.js +42 -0
- package/dist/components/RelativeTime.js +13 -0
- package/dist/components/SegmentedControl.d.ts +9 -2
- package/dist/components/SegmentedControl.d.ts.map +1 -1
- package/dist/components/SegmentedControl.js +30 -0
- package/dist/components/Select.d.ts +8 -0
- package/dist/components/Select.d.ts.map +1 -0
- package/dist/components/Select.js +23 -0
- package/dist/components/Spinner.js +11 -0
- package/dist/components/StateLabel.js +13 -0
- package/dist/components/SubNav.d.ts +1 -0
- package/dist/components/SubNav.d.ts.map +1 -1
- package/dist/components/SubNav.js +25 -0
- package/dist/components/Text.d.ts +11 -3
- package/dist/components/Text.d.ts.map +1 -1
- package/dist/components/Text.js +25 -0
- package/dist/components/TextInput.d.ts +15 -0
- package/dist/components/TextInput.d.ts.map +1 -0
- package/dist/components/TextInput.js +37 -0
- package/dist/components/Textarea.d.ts +9 -0
- package/dist/components/Textarea.d.ts.map +1 -0
- package/dist/components/Textarea.js +25 -0
- package/dist/components/ThemeProvider.d.ts +30 -0
- package/dist/components/ThemeProvider.d.ts.map +1 -0
- package/dist/components/ThemeProvider.js +202 -0
- package/dist/components/Timeline.js +46 -0
- package/dist/components/ToggleSwitch.js +13 -0
- package/dist/components/Token.js +25 -0
- package/dist/components/Tooltip.d.ts +2 -6
- package/dist/components/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip.js +14 -0
- package/dist/components/Truncate.js +11 -0
- package/dist/components/UnderlineNav.js +43 -0
- package/dist/components/UnderlinePanels.d.ts +7 -5
- package/dist/components/UnderlinePanels.d.ts.map +1 -1
- package/dist/components/UnderlinePanels.js +28 -0
- package/dist/components/deprecated/ActionList.js +48 -0
- package/dist/components/deprecated/DialogV1.js +44 -0
- package/dist/components/deprecated/Octicon.js +39 -0
- package/dist/components/deprecated/TabNav.js +44 -0
- package/dist/components/deprecated/Tooltip.d.ts.map +1 -1
- package/dist/components/deprecated/Tooltip.js +32 -0
- package/dist/components.json +27 -0
- package/dist/deprecated.d.ts +5 -4
- package/dist/deprecated.d.ts.map +1 -1
- package/dist/deprecated.js +5 -84
- package/dist/experimental.d.ts +1 -1
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +5 -32
- package/dist/index.d.ts +9 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +42 -511
- package/dist/sx.d.ts +3 -0
- package/dist/sx.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/Tooltip-DIHgr01r.js +0 -152
- package/dist/Tooltip-YuSlJ5b_.js +0 -20
- package/dist/components/DialogV1.d.ts +0 -11
- package/dist/components/DialogV1.d.ts.map +0 -1
- package/dist/components/TabNav.d.ts +0 -9
- package/dist/components/TabNav.d.ts.map +0 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { CheckboxGroup as CheckboxGroup$1, Box } from '@primer/react';
|
|
2
|
+
import 'react';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
const CheckboxGroupImpl = props => {
|
|
6
|
+
return /*#__PURE__*/jsx(Box, {
|
|
7
|
+
as: CheckboxGroup$1,
|
|
8
|
+
...props
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
// Define local types based on the internal component props
|
|
13
|
+
|
|
14
|
+
const CheckboxOrRadioGroupLabel = props => {
|
|
15
|
+
return /*#__PURE__*/jsx(Box, {
|
|
16
|
+
as: CheckboxGroup$1.Label,
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
const CheckboxOrRadioGroupCaption = props => {
|
|
21
|
+
return /*#__PURE__*/jsx(Box, {
|
|
22
|
+
as: CheckboxGroup$1.Caption,
|
|
23
|
+
...props
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
const CheckboxOrRadioGroupValidation = props => {
|
|
27
|
+
return /*#__PURE__*/jsx(Box, {
|
|
28
|
+
as: CheckboxGroup$1.Validation,
|
|
29
|
+
...props
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
const CheckboxGroup = Object.assign(CheckboxGroupImpl, {
|
|
33
|
+
Label: CheckboxOrRadioGroupLabel,
|
|
34
|
+
Caption: CheckboxOrRadioGroupCaption,
|
|
35
|
+
Validation: CheckboxOrRadioGroupValidation
|
|
36
|
+
});
|
|
37
|
+
CheckboxGroupImpl.__SLOT__ = CheckboxGroup$1.__SLOT__;
|
|
38
|
+
CheckboxOrRadioGroupLabel.__SLOT__ = CheckboxGroup$1.Label.__SLOT__;
|
|
39
|
+
CheckboxOrRadioGroupCaption.__SLOT__ = CheckboxGroup$1.Caption.__SLOT__;
|
|
40
|
+
CheckboxOrRadioGroupValidation.__SLOT__ = CheckboxGroup$1.Validation.__SLOT__;
|
|
41
|
+
|
|
42
|
+
export { CheckboxGroup };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CircleBadge as CircleBadge$1, sx } from '@primer/react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
const CircleBadge = styled(CircleBadge$1).withConfig({
|
|
5
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
6
|
+
}).withConfig({
|
|
7
|
+
displayName: "CircleBadge",
|
|
8
|
+
componentId: "sc-1u7lp3v-0"
|
|
9
|
+
})(["", ""], sx);
|
|
10
|
+
|
|
11
|
+
export { CircleBadge };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Box, CounterLabel as CounterLabel$1 } from '@primer/react';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
const CounterLabel = /*#__PURE__*/forwardRef(function CounterLabel(props, ref) {
|
|
6
|
+
return /*#__PURE__*/jsx(Box, {
|
|
7
|
+
as: CounterLabel$1,
|
|
8
|
+
ref: ref,
|
|
9
|
+
...props
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export { CounterLabel };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Table as Table$1 } from '@primer/react/experimental';
|
|
2
|
+
import { sx } from '@primer/react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
const {
|
|
7
|
+
Container: PrimerDataTableContainer,
|
|
8
|
+
...rest
|
|
9
|
+
} = Table$1;
|
|
10
|
+
const StyleDataTableContainer = styled(PrimerDataTableContainer).withConfig({
|
|
11
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
12
|
+
}).withConfig({
|
|
13
|
+
displayName: "DataTable__StyleDataTableContainer",
|
|
14
|
+
componentId: "sc-qy1ey2-0"
|
|
15
|
+
})(["", ""], sx);
|
|
16
|
+
function DataTableContainer({
|
|
17
|
+
as,
|
|
18
|
+
...rest
|
|
19
|
+
}) {
|
|
20
|
+
return /*#__PURE__*/jsx(StyleDataTableContainer, {
|
|
21
|
+
...rest,
|
|
22
|
+
...(as ? {
|
|
23
|
+
forwardedAs: as
|
|
24
|
+
} : {})
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
const Table = Object.assign(Table$1, {
|
|
28
|
+
Container: DataTableContainer,
|
|
29
|
+
...rest
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
export { Table };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Dialog as Dialog$1, Box } from '@primer/react';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
const DialogImpl = /*#__PURE__*/forwardRef(function Dialog(props, ref) {
|
|
6
|
+
// @ts-expect-error - PrimerDialog is not recognized as a valid component type
|
|
7
|
+
return /*#__PURE__*/jsx(Box, {
|
|
8
|
+
as: Dialog$1,
|
|
9
|
+
ref: ref,
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
const DialogHeader = /*#__PURE__*/forwardRef(function DialogHeader(props, ref) {
|
|
14
|
+
return /*#__PURE__*/jsx(Box, {
|
|
15
|
+
as: Dialog$1.Header,
|
|
16
|
+
ref: ref,
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
const DialogBody = /*#__PURE__*/forwardRef(function DialogBody(props, ref) {
|
|
21
|
+
// @ts-expect-error - PrimerDialog.Body is not recognized as a valid component type
|
|
22
|
+
return /*#__PURE__*/jsx(Box, {
|
|
23
|
+
as: Dialog$1.Body,
|
|
24
|
+
ref: ref,
|
|
25
|
+
...props
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
const DialogFooter = /*#__PURE__*/forwardRef(function DialogFooter(props, ref) {
|
|
29
|
+
return /*#__PURE__*/jsx(Box, {
|
|
30
|
+
as: Dialog$1.Footer,
|
|
31
|
+
ref: ref,
|
|
32
|
+
...props
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
const Dialog = Object.assign(DialogImpl, {
|
|
36
|
+
Buttons: Dialog$1.Buttons,
|
|
37
|
+
Header: DialogHeader,
|
|
38
|
+
Body: DialogBody,
|
|
39
|
+
Footer: DialogFooter
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export { Dialog };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ThemeProviderProps, type BaseStylesProps, useTheme as primerReactUseTheme, useColorSchemeVar as primerReactUseColorSchemeVar } from '@primer/react';
|
|
2
|
+
export declare const ThemeProvider: React.FC<React.PropsWithChildren<ThemeProviderProps>>;
|
|
3
|
+
export declare const BaseStyles: React.FC<React.PropsWithChildren<BaseStylesProps>>;
|
|
4
|
+
export declare const useTheme: typeof primerReactUseTheme;
|
|
5
|
+
export declare const useColorSchemeVar: typeof primerReactUseColorSchemeVar;
|
|
6
|
+
//# sourceMappingURL=FeatureFlaggedTheming.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeatureFlaggedTheming.d.ts","sourceRoot":"","sources":["../../src/components/FeatureFlaggedTheming.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EAEvB,KAAK,eAAe,EACpB,QAAQ,IAAI,mBAAmB,EAC/B,iBAAiB,IAAI,4BAA4B,EAClD,MAAM,eAAe,CAAA;AAStB,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAO/E,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAOzE,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,OAAO,mBAM7B,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,OAAO,4BAMtC,CAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ThemeProvider as ThemeProvider$2, useTheme as useTheme$2, useColorSchemeVar as useColorSchemeVar$2, BaseStyles as BaseStyles$2 } from '@primer/react';
|
|
2
|
+
import { ThemeProvider as ThemeProvider$1, useTheme as useTheme$1, useColorSchemeVar as useColorSchemeVar$1 } from './ThemeProvider.js';
|
|
3
|
+
import { BaseStyles as BaseStyles$1 } from './BaseStyles.js';
|
|
4
|
+
import { useFeatureFlag } from '@primer/react/experimental';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
const ThemeProvider = ({
|
|
8
|
+
children,
|
|
9
|
+
...props
|
|
10
|
+
}) => {
|
|
11
|
+
const enabled = useFeatureFlag('primer_react_use_styled_react_theming');
|
|
12
|
+
if (enabled) {
|
|
13
|
+
return /*#__PURE__*/jsx(ThemeProvider$1, {
|
|
14
|
+
...props,
|
|
15
|
+
children: children
|
|
16
|
+
});
|
|
17
|
+
} else {
|
|
18
|
+
return /*#__PURE__*/jsx(ThemeProvider$2, {
|
|
19
|
+
...props,
|
|
20
|
+
children: children
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
const BaseStyles = ({
|
|
25
|
+
children,
|
|
26
|
+
...props
|
|
27
|
+
}) => {
|
|
28
|
+
const enabled = useFeatureFlag('primer_react_use_styled_react_theming');
|
|
29
|
+
if (enabled) {
|
|
30
|
+
return /*#__PURE__*/jsx(BaseStyles$1, {
|
|
31
|
+
...props,
|
|
32
|
+
children: children
|
|
33
|
+
});
|
|
34
|
+
} else {
|
|
35
|
+
return /*#__PURE__*/jsx(BaseStyles$2, {
|
|
36
|
+
...props,
|
|
37
|
+
children: children
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const useTheme = () => {
|
|
42
|
+
const enabled = useFeatureFlag('primer_react_use_styled_react_theming');
|
|
43
|
+
const styledReactResults = useTheme$1();
|
|
44
|
+
const primerReactResults = useTheme$2();
|
|
45
|
+
return enabled ? styledReactResults : primerReactResults;
|
|
46
|
+
};
|
|
47
|
+
const useColorSchemeVar = (values, fallback) => {
|
|
48
|
+
const enabled = useFeatureFlag('primer_react_use_styled_react_theming');
|
|
49
|
+
const styledReactResults = useColorSchemeVar$1(values, fallback);
|
|
50
|
+
const primerReactResults = useColorSchemeVar$2(values, fallback);
|
|
51
|
+
return enabled ? styledReactResults : primerReactResults;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export { BaseStyles, ThemeProvider, useColorSchemeVar, useTheme };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Flash as Flash$1, sx } from '@primer/react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
const Flash = styled(Flash$1).withConfig({
|
|
5
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
6
|
+
}).withConfig({
|
|
7
|
+
displayName: "Flash",
|
|
8
|
+
componentId: "sc-413izo-0"
|
|
9
|
+
})(["", ""], sx);
|
|
10
|
+
|
|
11
|
+
export { Flash };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FormControl as PrimerFormControl, type FormControlProps as PrimerFormControlProps, type SxProp } from '@primer/react';
|
|
2
|
+
import { type PropsWithChildren } from 'react';
|
|
3
|
+
type FormControlProps = PropsWithChildren<PrimerFormControlProps> & SxProp;
|
|
4
|
+
declare const FormControlImpl: React.ComponentType<FormControlProps>;
|
|
5
|
+
declare const FormControl: typeof FormControlImpl & {
|
|
6
|
+
Caption: typeof PrimerFormControl.Caption;
|
|
7
|
+
LeadingVisual: typeof PrimerFormControl.LeadingVisual;
|
|
8
|
+
Validation: typeof PrimerFormControl.Validation;
|
|
9
|
+
Label: typeof PrimerFormControl.Label;
|
|
10
|
+
};
|
|
11
|
+
export { FormControl, type FormControlProps };
|
|
12
|
+
//# sourceMappingURL=FormControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormControl.d.ts","sourceRoot":"","sources":["../../src/components/FormControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,IAAI,iBAAiB,EAChC,KAAK,gBAAgB,IAAI,sBAAsB,EAC/C,KAAK,MAAM,EACZ,MAAM,eAAe,CAAA;AACtB,OAAO,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAI5C,KAAK,gBAAgB,GAAG,iBAAiB,CAAC,sBAAsB,CAAC,GAAG,MAAM,CAAA;AAE1E,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAI1D,CAAA;AAED,QAAA,MAAM,WAAW,EAMX,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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FormControl as FormControl$1, sx } from '@primer/react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
const FormControlImpl = styled(FormControl$1).withConfig({
|
|
5
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
6
|
+
}).withConfig({
|
|
7
|
+
displayName: "FormControl__FormControlImpl",
|
|
8
|
+
componentId: "sc-1642wfe-0"
|
|
9
|
+
})(["", ""], sx);
|
|
10
|
+
const FormControl = Object.assign(FormControlImpl, {
|
|
11
|
+
__SLOT__: FormControl$1.__SLOT__,
|
|
12
|
+
Caption: FormControl$1.Caption,
|
|
13
|
+
LeadingVisual: FormControl$1.LeadingVisual,
|
|
14
|
+
Validation: FormControl$1.Validation,
|
|
15
|
+
Label: FormControl$1.Label
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export { FormControl };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Box, Header as Header$1 } from '@primer/react';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
const StyledHeader = /*#__PURE__*/forwardRef(function Header(props, ref) {
|
|
6
|
+
return /*#__PURE__*/jsx(Box, {
|
|
7
|
+
as: Header$1,
|
|
8
|
+
ref: ref,
|
|
9
|
+
...props
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
const HeaderImpl = /*#__PURE__*/forwardRef(({
|
|
13
|
+
as,
|
|
14
|
+
...props
|
|
15
|
+
}, ref) => /*#__PURE__*/jsx(StyledHeader, {
|
|
16
|
+
...props,
|
|
17
|
+
...(as ? {
|
|
18
|
+
forwardedAs: as
|
|
19
|
+
} : {}),
|
|
20
|
+
ref: ref
|
|
21
|
+
}));
|
|
22
|
+
const HeaderItem = /*#__PURE__*/forwardRef(function HeaderItem(props, ref) {
|
|
23
|
+
return /*#__PURE__*/jsx(Box, {
|
|
24
|
+
as: Header$1.Item,
|
|
25
|
+
ref: ref,
|
|
26
|
+
...props
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
const StyledHeaderLink = /*#__PURE__*/forwardRef(function HeaderLink(props, ref) {
|
|
30
|
+
return /*#__PURE__*/jsx(Box, {
|
|
31
|
+
as: Header$1.Link,
|
|
32
|
+
ref: ref,
|
|
33
|
+
...props
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
const HeaderLink = /*#__PURE__*/forwardRef(({
|
|
37
|
+
as,
|
|
38
|
+
...props
|
|
39
|
+
}, ref) => /*#__PURE__*/jsx(StyledHeaderLink, {
|
|
40
|
+
...props,
|
|
41
|
+
...(as ? {
|
|
42
|
+
forwardedAs: as
|
|
43
|
+
} : {}),
|
|
44
|
+
ref: ref
|
|
45
|
+
}));
|
|
46
|
+
const Header = Object.assign(HeaderImpl, {
|
|
47
|
+
Item: HeaderItem,
|
|
48
|
+
Link: HeaderLink
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
export { Header };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Heading as Heading$1, sx } from '@primer/react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
const Heading = styled(Heading$1).withConfig({
|
|
5
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
6
|
+
}).withConfig({
|
|
7
|
+
displayName: "Heading",
|
|
8
|
+
componentId: "sc-1vc165i-0"
|
|
9
|
+
})(["", ""], sx);
|
|
10
|
+
|
|
11
|
+
export { Heading };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type IconButtonProps as PrimerIconButtonProps, type SlotMarker, type SxProp } from '@primer/react';
|
|
2
|
+
import { type ForwardRefComponent } from '../polymorphic';
|
|
3
|
+
type IconButtonProps = PrimerIconButtonProps & SxProp & {
|
|
4
|
+
as?: React.ElementType;
|
|
5
|
+
};
|
|
6
|
+
declare const IconButton: ForwardRefComponent<"a" | "button", IconButtonProps> & SlotMarker;
|
|
7
|
+
export { IconButton };
|
|
8
|
+
export type { IconButtonProps };
|
|
9
|
+
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../src/components/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,eAAe,IAAI,qBAAqB,EAC7C,KAAK,UAAU,EACf,KAAK,MAAM,EACZ,MAAM,eAAe,CAAA;AACtB,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAMvD,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AAQhF,QAAA,MAAM,UAAU,EAUV,mBAAmB,CAAC,GAAG,GAAG,QAAQ,EAAE,eAAe,CAAC,GAAG,UAAU,CAAA;AAIvE,OAAO,EAAC,UAAU,EAAC,CAAA;AACnB,YAAY,EAAC,eAAe,EAAC,CAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { IconButton as IconButton$1, sx } from '@primer/react';
|
|
2
|
+
import { generateCustomSxProp } from './Button.js';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
const StyledIconButton = styled(IconButton$1).withConfig({
|
|
8
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
9
|
+
}).withConfig({
|
|
10
|
+
displayName: "IconButton__StyledIconButton",
|
|
11
|
+
componentId: "sc-i53dt6-0"
|
|
12
|
+
})(["", ""], sx);
|
|
13
|
+
const IconButton = /*#__PURE__*/forwardRef(({
|
|
14
|
+
as,
|
|
15
|
+
sx,
|
|
16
|
+
...props
|
|
17
|
+
}, ref) => {
|
|
18
|
+
let sxStyles = sx;
|
|
19
|
+
// grap the button props that have associated data attributes in the styles
|
|
20
|
+
const {
|
|
21
|
+
size = 'medium'
|
|
22
|
+
} = props;
|
|
23
|
+
if (sx !== null && sx !== undefined && Object.keys(sx).length > 0) {
|
|
24
|
+
sxStyles = generateCustomSxProp({
|
|
25
|
+
size
|
|
26
|
+
}, sx);
|
|
27
|
+
}
|
|
28
|
+
return /*#__PURE__*/jsx(StyledIconButton, {
|
|
29
|
+
sx: sxStyles,
|
|
30
|
+
...props,
|
|
31
|
+
...(as ? {
|
|
32
|
+
forwardedAs: as
|
|
33
|
+
} : {}),
|
|
34
|
+
ref: ref
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
IconButton.__SLOT__ = IconButton$1.__SLOT__;
|
|
38
|
+
|
|
39
|
+
export { IconButton };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Label as Label$1, sx } from '@primer/react';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
const StyledLabel = styled(Label$1).withConfig({
|
|
7
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
8
|
+
}).withConfig({
|
|
9
|
+
displayName: "Label__StyledLabel",
|
|
10
|
+
componentId: "sc-1cpass9-0"
|
|
11
|
+
})(["", ""], sx);
|
|
12
|
+
const Label = /*#__PURE__*/forwardRef(({
|
|
13
|
+
as,
|
|
14
|
+
...props
|
|
15
|
+
}, ref) => {
|
|
16
|
+
return /*#__PURE__*/jsx(StyledLabel, {
|
|
17
|
+
...props,
|
|
18
|
+
...(as ? {
|
|
19
|
+
forwardedAs: as
|
|
20
|
+
} : {}),
|
|
21
|
+
ref: ref
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export { Label };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Link as Link$1, sx } from '@primer/react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
const StyledLink = styled(Link$1).withConfig({
|
|
7
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
8
|
+
}).withConfig({
|
|
9
|
+
displayName: "Link__StyledLink",
|
|
10
|
+
componentId: "sc-1syctfj-0"
|
|
11
|
+
})(["", ""], sx);
|
|
12
|
+
const Link = /*#__PURE__*/forwardRef(({
|
|
13
|
+
as,
|
|
14
|
+
...props
|
|
15
|
+
}, ref) => {
|
|
16
|
+
return /*#__PURE__*/jsx(StyledLink, {
|
|
17
|
+
...props,
|
|
18
|
+
...(as ? {
|
|
19
|
+
forwardedAs: as
|
|
20
|
+
} : {}),
|
|
21
|
+
ref: ref
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export { Link };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LinkButton as LinkButton$1, sx } from '@primer/react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
const LinkButton = styled(LinkButton$1).withConfig({
|
|
5
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
6
|
+
}).withConfig({
|
|
7
|
+
displayName: "LinkButton",
|
|
8
|
+
componentId: "sc-1v6zkmg-0"
|
|
9
|
+
})(["", ""], sx);
|
|
10
|
+
|
|
11
|
+
export { LinkButton };
|
|
@@ -1,25 +1,33 @@
|
|
|
1
1
|
import { NavList as PrimerNavList } from '@primer/react';
|
|
2
|
-
import type { NavListProps as PrimerNavListProps, NavListItemProps as PrimerNavListItemProps } from '@primer/react';
|
|
3
|
-
import { type
|
|
2
|
+
import type { NavListProps as PrimerNavListProps, NavListItemProps as PrimerNavListItemProps, NavListGroupHeadingProps as PrimerNavListGroupHeadingProps, NavListLeadingVisualProps as PrimerNavListLeadingVisualProps } from '@primer/react';
|
|
3
|
+
import { type PropsWithChildren } from 'react';
|
|
4
4
|
import { type SxProp } from '../sx';
|
|
5
|
+
type RefComponent<E extends HTMLElement, P> = React.ForwardRefExoticComponent<P & React.RefAttributes<E>>;
|
|
5
6
|
type NavListProps = PropsWithChildren<PrimerNavListProps> & SxProp;
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
7
|
+
declare const NavListItem: import("react").ForwardRefExoticComponent<PrimerNavListItemProps & {
|
|
8
|
+
children?: import("react").ReactNode | undefined;
|
|
9
|
+
} & SxProp & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
10
|
+
declare const NavListGroup: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLLIElement> & {
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
title?: string;
|
|
13
|
+
} & {
|
|
14
|
+
children?: import("react").ReactNode | undefined;
|
|
15
|
+
} & SxProp & import("react").RefAttributes<HTMLLIElement>>;
|
|
16
|
+
type NavListGroupHeadingProps = PropsWithChildren<PrimerNavListGroupHeadingProps> & SxProp;
|
|
17
|
+
declare const NavListGroupHeading: RefComponent<HTMLElement, NavListGroupHeadingProps>;
|
|
18
|
+
type NavListLeadingVisualProps = PropsWithChildren<PrimerNavListLeadingVisualProps> & SxProp;
|
|
19
|
+
declare const NavListLeadingVisual: RefComponent<HTMLSpanElement, NavListLeadingVisualProps>;
|
|
20
|
+
type NavListCompound = React.ForwardRefExoticComponent<NavListProps & React.RefAttributes<HTMLElement>> & {
|
|
21
|
+
Item: typeof NavListItem;
|
|
22
|
+
Group: typeof NavListGroup;
|
|
23
|
+
GroupHeading: typeof NavListGroupHeading;
|
|
24
|
+
LeadingVisual: typeof NavListLeadingVisual;
|
|
25
|
+
SubNav: typeof PrimerNavList.SubNav;
|
|
26
|
+
Divider: typeof PrimerNavList.Divider;
|
|
27
|
+
TrailingVisual: typeof PrimerNavList.TrailingVisual;
|
|
28
|
+
TrailingAction: typeof PrimerNavList.TrailingAction;
|
|
29
|
+
GroupExpand: typeof PrimerNavList.GroupExpand;
|
|
23
30
|
};
|
|
31
|
+
declare const NavList: NavListCompound;
|
|
24
32
|
export { NavList, type NavListProps };
|
|
25
33
|
//# sourceMappingURL=NavList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavList.d.ts","sourceRoot":"","sources":["../../src/components/NavList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,aAAa,EAAM,MAAM,eAAe,CAAA;AAC3D,OAAO,KAAK,EACV,YAAY,IAAI,kBAAkB,EAClC,gBAAgB,IAAI,sBAAsB,
|
|
1
|
+
{"version":3,"file":"NavList.d.ts","sourceRoot":"","sources":["../../src/components/NavList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,aAAa,EAAM,MAAM,eAAe,CAAA;AAC3D,OAAO,KAAK,EACV,YAAY,IAAI,kBAAkB,EAClC,gBAAgB,IAAI,sBAAsB,EAE1C,wBAAwB,IAAI,8BAA8B,EAC1D,yBAAyB,IAAI,+BAA+B,EAC7D,MAAM,eAAe,CAAA;AACtB,OAAO,EAAa,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACxD,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,KAAK,YAAY,CAAC,CAAC,SAAS,WAAW,EAAE,CAAC,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;AAEzG,KAAK,YAAY,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,GAAG,MAAM,CAAA;AAQlE,QAAA,MAAM,WAAW;;8DAGf,CAAA;AAIF,QAAA,MAAM,YAAY;;;;;0DAGhB,CAAA;AAEF,KAAK,wBAAwB,GAAG,iBAAiB,CAAC,8BAA8B,CAAC,GAAG,MAAM,CAAA;AAE1F,QAAA,MAAM,mBAAmB,EAGnB,YAAY,CAAC,WAAW,EAAE,wBAAwB,CAAC,CAAA;AAEzD,KAAK,yBAAyB,GAAG,iBAAiB,CAAC,+BAA+B,CAAC,GAAG,MAAM,CAAA;AAE5F,QAAA,MAAM,oBAAoB,EAKrB,YAAY,CAAC,eAAe,EAAE,yBAAyB,CAAC,CAAA;AAE7D,KAAK,eAAe,GAAG,KAAK,CAAC,yBAAyB,CAAC,YAAY,GAAG,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,GAAG;IACxG,IAAI,EAAE,OAAO,WAAW,CAAA;IACxB,KAAK,EAAE,OAAO,YAAY,CAAA;IAC1B,YAAY,EAAE,OAAO,mBAAmB,CAAA;IACxC,aAAa,EAAE,OAAO,oBAAoB,CAAA;IAC1C,MAAM,EAAE,OAAO,aAAa,CAAC,MAAM,CAAA;IACnC,OAAO,EAAE,OAAO,aAAa,CAAC,OAAO,CAAA;IACrC,cAAc,EAAE,OAAO,aAAa,CAAC,cAAc,CAAA;IACnD,cAAc,EAAE,OAAO,aAAa,CAAC,cAAc,CAAA;IACnD,WAAW,EAAE,OAAO,aAAa,CAAC,WAAW,CAAA;CAC9C,CAAA;AAED,QAAA,MAAM,OAAO,EAAE,eAUb,CAAA;AAEF,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { NavList as NavList$1, Box } from '@primer/react';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
const NavListImpl = /*#__PURE__*/forwardRef(function NavList(props, ref) {
|
|
6
|
+
return /*#__PURE__*/jsx(Box, {
|
|
7
|
+
as: NavList$1,
|
|
8
|
+
ref: ref,
|
|
9
|
+
...props
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
const NavListItem = /*#__PURE__*/forwardRef(function NavListItem(props, ref) {
|
|
13
|
+
// @ts-expect-error - PrimerNavList.Item is not recognized as a valid component type
|
|
14
|
+
return /*#__PURE__*/jsx(Box, {
|
|
15
|
+
as: NavList$1.Item,
|
|
16
|
+
ref: ref,
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
const NavListGroup = /*#__PURE__*/forwardRef(function NavListGroup(props, ref) {
|
|
21
|
+
// @ts-expect-error - PrimerNavList.Group is not recognized as a valid component type
|
|
22
|
+
return /*#__PURE__*/jsx(Box, {
|
|
23
|
+
as: NavList$1.Group,
|
|
24
|
+
ref: ref,
|
|
25
|
+
...props
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
const NavListGroupHeading = /*#__PURE__*/forwardRef(function NavListGroupHeading(props, ref) {
|
|
29
|
+
// @ts-expect-error - PrimerNavList.GroupHeading is not recognized as a valid component type
|
|
30
|
+
return /*#__PURE__*/jsx(Box, {
|
|
31
|
+
as: NavList$1.GroupHeading,
|
|
32
|
+
ref: ref,
|
|
33
|
+
...props
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
const NavListLeadingVisual = /*#__PURE__*/forwardRef(function NavListLeadingVisual(props, ref) {
|
|
37
|
+
// @ts-expect-error - PrimerNavList.LeadingVisual is not recognized as a valid component type
|
|
38
|
+
return /*#__PURE__*/jsx(Box, {
|
|
39
|
+
as: NavList$1.LeadingVisual,
|
|
40
|
+
ref: ref,
|
|
41
|
+
...props
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
const NavList = Object.assign(NavListImpl, {
|
|
45
|
+
Item: NavListItem,
|
|
46
|
+
Group: NavListGroup,
|
|
47
|
+
GroupHeading: NavListGroupHeading,
|
|
48
|
+
LeadingVisual: NavListLeadingVisual,
|
|
49
|
+
SubNav: NavList$1.SubNav,
|
|
50
|
+
Divider: NavList$1.Divider,
|
|
51
|
+
TrailingVisual: NavList$1.TrailingVisual,
|
|
52
|
+
TrailingAction: NavList$1.TrailingAction,
|
|
53
|
+
GroupExpand: NavList$1.GroupExpand
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export { NavList };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Overlay as Overlay$1, sx } from '@primer/react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
const Overlay = styled(Overlay$1).withConfig({
|
|
5
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
6
|
+
}).withConfig({
|
|
7
|
+
displayName: "Overlay",
|
|
8
|
+
componentId: "sc-tjbd74-0"
|
|
9
|
+
})(["", ""], sx);
|
|
10
|
+
|
|
11
|
+
export { Overlay };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../src/components/PageHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,IAAI,gBAAgB,EAC9B,KAAK,eAAe,IAAI,qBAAqB,EAC7C,KAAK,oBAAoB,IAAI,0BAA0B,EACvD,KAAK,sBAAsB,IAAI,4BAA4B,EAC3D,KAAK,wBAAwB,IAAI,8BAA8B,EAChE,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAK,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../src/components/PageHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,IAAI,gBAAgB,EAC9B,KAAK,eAAe,IAAI,qBAAqB,EAC7C,KAAK,oBAAoB,IAAI,0BAA0B,EACvD,KAAK,sBAAsB,IAAI,4BAA4B,EAC3D,KAAK,wBAAwB,IAAI,8BAA8B,EAChE,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAK,KAAK,MAAM,EAA2B,MAAM,OAAO,CAAA;AAC/D,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAcrD,KAAK,sBAAsB,GAAG,4BAA4B,GAAG,MAAM,CAAA;AAEnE,iBAAS,iBAAiB,CAAC,EAAC,EAAE,EAAE,GAAG,IAAI,EAAC,EAAE,sBAAsB,qBAY/D;AAED,KAAK,oBAAoB,GAAG,iBAAiB,CAAC,0BAA0B,CAAC,GAAG,MAAM,CAAA;AAwBlF,QAAA,MAAM,eAAe,GAAI,kBAAgB,oBAAoB,sBAE5D,CAAA;AAED,KAAK,wBAAwB,GAAG,iBAAiB,CAAC,8BAA8B,CAAC,GAAG,MAAM,CAAA;AAE1F,QAAA,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,CAM7E,CAAA;AAED,KAAK,uBAAuB,GAAG,mBAAmB,CAAC,KAAK,EAAE,eAAe,CAAC,GAAG;IAC3E,OAAO,EAAE,OAAO,iBAAiB,CAAA;IACjC,WAAW,EAAE,OAAO,gBAAgB,CAAC,WAAW,CAAA;IAChD,UAAU,EAAE,OAAO,gBAAgB,CAAC,UAAU,CAAA;IAC9C,UAAU,EAAE,OAAO,gBAAgB,CAAC,UAAU,CAAA;IAC9C,SAAS,EAAE,OAAO,mBAAmB,CAAA;IACrC,kBAAkB,EAAE,OAAO,gBAAgB,CAAC,kBAAkB,CAAA;IAC9D,aAAa,EAAE,OAAO,gBAAgB,CAAC,aAAa,CAAA;IACpD,WAAW,EAAE,OAAO,gBAAgB,CAAC,WAAW,CAAA;IAChD,aAAa,EAAE,OAAO,gBAAgB,CAAC,aAAa,CAAA;IACpD,KAAK,EAAE,OAAO,eAAe,CAAA;IAC7B,cAAc,EAAE,OAAO,gBAAgB,CAAC,cAAc,CAAA;IACtD,WAAW,EAAE,OAAO,gBAAgB,CAAC,WAAW,CAAA;IAChD,cAAc,EAAE,OAAO,gBAAgB,CAAC,cAAc,CAAA;CACvD,CAAA;AAED,QAAA,MAAM,UAAU,EAAE,uBAchB,CAAA;AAEF,OAAO,EAAC,UAAU,EAAC,CAAA;AACnB,YAAY,EAAC,eAAe,EAAE,sBAAsB,EAAE,oBAAoB,EAAC,CAAA"}
|
|
@@ -1,44 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import React, { forwardRef } from 'react';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
1
|
+
import { PageHeader as PageHeader$1, sx, Box } from '@primer/react';
|
|
4
2
|
import styled from 'styled-components';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
// @ts-expect-error - PrimerDialog is not recognized as a valid component type
|
|
8
|
-
return /*#__PURE__*/jsx(Box, {
|
|
9
|
-
as: Dialog$1,
|
|
10
|
-
ref: ref,
|
|
11
|
-
...props
|
|
12
|
-
});
|
|
13
|
-
});
|
|
14
|
-
const DialogHeader = /*#__PURE__*/forwardRef(function DialogHeader(props, ref) {
|
|
15
|
-
return /*#__PURE__*/jsx(Box, {
|
|
16
|
-
as: Dialog$1.Header,
|
|
17
|
-
ref: ref,
|
|
18
|
-
...props
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
const DialogBody = /*#__PURE__*/forwardRef(function DialogBody(props, ref) {
|
|
22
|
-
// @ts-expect-error - PrimerDialog.Body is not recognized as a valid component type
|
|
23
|
-
return /*#__PURE__*/jsx(Box, {
|
|
24
|
-
as: Dialog$1.Body,
|
|
25
|
-
ref: ref,
|
|
26
|
-
...props
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
const DialogFooter = /*#__PURE__*/forwardRef(function DialogFooter(props, ref) {
|
|
30
|
-
return /*#__PURE__*/jsx(Box, {
|
|
31
|
-
as: Dialog$1.Footer,
|
|
32
|
-
ref: ref,
|
|
33
|
-
...props
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
const Dialog = Object.assign(DialogImpl, {
|
|
37
|
-
Buttons: Dialog$1.Buttons,
|
|
38
|
-
Header: DialogHeader,
|
|
39
|
-
Body: DialogBody,
|
|
40
|
-
Footer: DialogFooter
|
|
41
|
-
});
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
42
5
|
|
|
43
6
|
const StyledPageHeader = styled(PageHeader$1).withConfig({
|
|
44
7
|
shouldForwardProp: prop => prop !== 'sx'
|
|
@@ -141,4 +104,4 @@ const PageHeader = Object.assign(PageHeaderImpl, {
|
|
|
141
104
|
TrailingAction: PageHeader$1.TrailingAction
|
|
142
105
|
});
|
|
143
106
|
|
|
144
|
-
export {
|
|
107
|
+
export { PageHeader };
|