@primer/styled-react 0.0.0-20251007205659 → 0.0.0-20251007212126

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.
Files changed (53) hide show
  1. package/dist/components/ActionList.js +104 -0
  2. package/dist/components/ActionMenu.js +17 -0
  3. package/dist/components/Autocomplete.js +17 -0
  4. package/dist/components/Avatar.js +13 -0
  5. package/dist/components/BaseStyles.d.ts +17 -0
  6. package/dist/components/BaseStyles.d.ts.map +1 -0
  7. package/dist/components/BaseStyles.js +51 -0
  8. package/dist/components/Breadcrumbs.js +37 -0
  9. package/dist/components/Checkbox.js +13 -0
  10. package/dist/components/CheckboxGroup.js +38 -0
  11. package/dist/components/CircleBadge.js +11 -0
  12. package/dist/components/CounterLabel.js +13 -0
  13. package/dist/components/DataTable.js +32 -0
  14. package/dist/components/Dialog.js +42 -0
  15. package/dist/components/Flash.js +11 -0
  16. package/dist/components/Header.js +51 -0
  17. package/dist/components/Heading.js +11 -0
  18. package/dist/components/Label.js +25 -0
  19. package/dist/components/Link.js +25 -0
  20. package/dist/components/LinkButton.js +11 -0
  21. package/dist/components/NavList.js +56 -0
  22. package/dist/components/Overlay.js +11 -0
  23. package/dist/{Tooltip-DIHgr01r.js → components/PageHeader.js} +4 -49
  24. package/dist/components/PageLayout.js +39 -0
  25. package/dist/components/RadioGroup.js +38 -0
  26. package/dist/components/RelativeTime.js +13 -0
  27. package/dist/components/SegmentedControl.js +27 -0
  28. package/dist/components/Spinner.js +12 -0
  29. package/dist/components/StateLabel.js +13 -0
  30. package/dist/components/SubNav.js +23 -0
  31. package/dist/components/Text.js +26 -0
  32. package/dist/components/ThemeProvider.d.ts +30 -0
  33. package/dist/components/ThemeProvider.d.ts.map +1 -0
  34. package/dist/components/ThemeProvider.js +196 -0
  35. package/dist/components/Timeline.js +46 -0
  36. package/dist/components/ToggleSwitch.js +13 -0
  37. package/dist/components/Token.js +36 -0
  38. package/dist/components/Tooltip.js +13 -0
  39. package/dist/components/Truncate.js +11 -0
  40. package/dist/components/UnderlineNav.js +43 -0
  41. package/dist/components/UnderlinePanels.js +27 -0
  42. package/dist/components/deprecated/ActionList.js +48 -0
  43. package/dist/components/deprecated/DialogV1.js +44 -0
  44. package/dist/components/deprecated/Octicon.js +39 -0
  45. package/dist/components/deprecated/TabNav.js +44 -0
  46. package/dist/components/deprecated/Tooltip.js +31 -0
  47. package/dist/components.json +1 -0
  48. package/dist/deprecated.js +5 -179
  49. package/dist/experimental.js +5 -55
  50. package/dist/index.d.ts +2 -1
  51. package/dist/index.d.ts.map +1 -1
  52. package/dist/index.js +37 -666
  53. package/package.json +3 -3
@@ -0,0 +1,104 @@
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+ import { ActionList as ActionList$1, sx } from '@primer/react';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ const StyledActionList = styled(ActionList$1).withConfig({
7
+ shouldForwardProp: prop => prop !== 'sx'
8
+ }).withConfig({
9
+ displayName: "ActionList__StyledActionList",
10
+ componentId: "sc-hw2362-0"
11
+ })(["", ""], sx);
12
+ const ActionListImpl = /*#__PURE__*/React.forwardRef(function ActionListImpl({
13
+ as,
14
+ ...rest
15
+ }, ref) {
16
+ return /*#__PURE__*/jsx(StyledActionList, {
17
+ ref: ref,
18
+ ...rest,
19
+ ...(as ? {
20
+ forwardedAs: as
21
+ } : {})
22
+ });
23
+ });
24
+ const ActionListLinkItem = styled(ActionList$1.LinkItem).withConfig({
25
+ shouldForwardProp: prop => prop !== 'sx'
26
+ }).withConfig({
27
+ displayName: "ActionList__ActionListLinkItem",
28
+ componentId: "sc-hw2362-1"
29
+ })(["", ""], sx);
30
+ const StyledActionListTrailingAction = styled(ActionList$1.TrailingAction).withConfig({
31
+ shouldForwardProp: prop => prop !== 'sx'
32
+ }).withConfig({
33
+ displayName: "ActionList__StyledActionListTrailingAction",
34
+ componentId: "sc-hw2362-2"
35
+ })(["", ""], sx);
36
+ const ActionListTrailingAction = /*#__PURE__*/React.forwardRef((props, ref) => {
37
+ const {
38
+ as,
39
+ ...rest
40
+ } = props;
41
+ return /*#__PURE__*/jsx(StyledActionListTrailingAction, {
42
+ ...rest,
43
+ ...(as ? {
44
+ forwardedAs: as
45
+ } : {}),
46
+ ref: ref
47
+ });
48
+ });
49
+ const StyledActionListItem = styled(ActionList$1.Item).withConfig({
50
+ shouldForwardProp: prop => prop !== 'sx'
51
+ }).withConfig({
52
+ displayName: "ActionList__StyledActionListItem",
53
+ componentId: "sc-hw2362-3"
54
+ })(["", ""], sx);
55
+ const ActionListItem = /*#__PURE__*/React.forwardRef(({
56
+ children,
57
+ as,
58
+ ...props
59
+ }, ref) => /*#__PURE__*/jsx(StyledActionListItem, {
60
+ ref: ref,
61
+ ...props,
62
+ ...(as ? {
63
+ forwardedAs: as
64
+ } : {}),
65
+ children: children
66
+ }));
67
+ const ActionListGroup = styled(ActionList$1.Group).withConfig({
68
+ shouldForwardProp: prop => prop !== 'sx'
69
+ }).withConfig({
70
+ displayName: "ActionList__ActionListGroup",
71
+ componentId: "sc-hw2362-4"
72
+ })(["", ""], sx);
73
+ const ActionListDivider = styled(ActionList$1.Divider).withConfig({
74
+ shouldForwardProp: prop => prop !== 'sx'
75
+ }).withConfig({
76
+ displayName: "ActionList__ActionListDivider",
77
+ componentId: "sc-hw2362-5"
78
+ })(["", ""], sx);
79
+ const ActionListLeadingVisual = styled(ActionList$1.LeadingVisual).withConfig({
80
+ shouldForwardProp: prop => prop !== 'sx'
81
+ }).withConfig({
82
+ displayName: "ActionList__ActionListLeadingVisual",
83
+ componentId: "sc-hw2362-6"
84
+ })(["", ""], sx);
85
+ const ActionListTrailingVisual = styled(ActionList$1.TrailingVisual).withConfig({
86
+ shouldForwardProp: prop => prop !== 'sx'
87
+ }).withConfig({
88
+ displayName: "ActionList__ActionListTrailingVisual",
89
+ componentId: "sc-hw2362-7"
90
+ })(["", ""], sx);
91
+ const ActionList = Object.assign(ActionListImpl, {
92
+ Item: ActionListItem,
93
+ LinkItem: ActionListLinkItem,
94
+ Group: ActionListGroup,
95
+ GroupHeading: ActionList$1.GroupHeading,
96
+ Divider: ActionListDivider,
97
+ Description: ActionList$1.Description,
98
+ LeadingVisual: ActionListLeadingVisual,
99
+ TrailingVisual: ActionListTrailingVisual,
100
+ Heading: ActionList$1.Heading,
101
+ TrailingAction: ActionListTrailingAction
102
+ });
103
+
104
+ export { ActionList };
@@ -0,0 +1,17 @@
1
+ import { ActionMenu as ActionMenu$1, sx } from '@primer/react';
2
+ import styled from 'styled-components';
3
+
4
+ const ActionMenuOverlay = styled(ActionMenu$1.Overlay).withConfig({
5
+ shouldForwardProp: prop => prop !== 'sx'
6
+ }).withConfig({
7
+ displayName: "ActionMenu__ActionMenuOverlay",
8
+ componentId: "sc-w5s60e-0"
9
+ })(["", ""], sx);
10
+ const ActionMenu = Object.assign(ActionMenu$1, {
11
+ Button: ActionMenu$1.Button,
12
+ Anchor: ActionMenu$1.Anchor,
13
+ Overlay: ActionMenuOverlay,
14
+ Divider: ActionMenu$1.Divider
15
+ });
16
+
17
+ export { ActionMenu };
@@ -0,0 +1,17 @@
1
+ import { Autocomplete as Autocomplete$1, sx } from '@primer/react';
2
+ import styled from 'styled-components';
3
+
4
+ const AutocompleteOverlay = styled(Autocomplete$1.Overlay).withConfig({
5
+ shouldForwardProp: prop => prop !== 'sx'
6
+ }).withConfig({
7
+ displayName: "Autocomplete__AutocompleteOverlay",
8
+ componentId: "sc-j8ax2e-0"
9
+ })(["", ""], sx);
10
+ const Autocomplete = Object.assign(Autocomplete$1, {
11
+ Context: Autocomplete$1.Context,
12
+ Input: Autocomplete$1.Input,
13
+ Menu: Autocomplete$1.Menu,
14
+ Overlay: AutocompleteOverlay
15
+ });
16
+
17
+ export { Autocomplete };
@@ -0,0 +1,13 @@
1
+ import { Box, Avatar as Avatar$1 } from '@primer/react';
2
+ import { forwardRef } from 'react';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ const Avatar = /*#__PURE__*/forwardRef(function Avatar(props, ref) {
6
+ return /*#__PURE__*/jsx(Box, {
7
+ as: Avatar$1,
8
+ ref: ref,
9
+ ...props
10
+ });
11
+ });
12
+
13
+ export { Avatar };
@@ -0,0 +1,17 @@
1
+ import type React from 'react';
2
+ import { type CSSProperties, type PropsWithChildren } from 'react';
3
+ import type * as styledSystem from 'styled-system';
4
+ import 'focus-visible';
5
+ export interface SystemCommonProps extends styledSystem.ColorProps, styledSystem.SpaceProps, styledSystem.DisplayProps {
6
+ }
7
+ export interface SystemTypographyProps extends styledSystem.TypographyProps {
8
+ whiteSpace?: 'normal' | 'nowrap' | 'pre' | 'pre-wrap' | 'pre-line';
9
+ }
10
+ export type BaseStylesProps = PropsWithChildren & {
11
+ as?: React.ComponentType<any> | keyof JSX.IntrinsicElements;
12
+ className?: string;
13
+ style?: CSSProperties;
14
+ color?: string;
15
+ } & SystemTypographyProps & SystemCommonProps;
16
+ export declare function BaseStyles({ children, color, fontFamily, lineHeight, className, as: Component, style, ...rest }: BaseStylesProps): React.JSX.Element;
17
+ //# sourceMappingURL=BaseStyles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseStyles.d.ts","sourceRoot":"","sources":["../../src/components/BaseStyles.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAC,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAGhE,OAAO,KAAK,KAAK,YAAY,MAAM,eAAe,CAAA;AAGlD,OAAO,eAAe,CAAA;AAGtB,MAAM,WAAW,iBACf,SAAQ,YAAY,CAAC,UAAU,EAC7B,YAAY,CAAC,UAAU,EACvB,YAAY,CAAC,YAAY;CAAG;AAEhC,MAAM,WAAW,qBAAsB,SAAQ,YAAY,CAAC,eAAe;IACzE,UAAU,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,CAAA;CACnE;AAqFD,MAAM,MAAM,eAAe,GAAG,iBAAiB,GAAG;IAEhD,EAAE,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,iBAAiB,CAAA;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,GAAG,qBAAqB,GACvB,iBAAiB,CAAA;AAEnB,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,KAAK,EACL,UAAU,EACV,UAAU,EACV,SAAS,EACT,EAAE,EAAE,SAAiB,EACrB,KAAK,EACL,GAAG,IAAI,EACR,EAAE,eAAe,qBA+BjB"}
@@ -0,0 +1,51 @@
1
+ import { clsx } from 'clsx';
2
+ import { useTheme } from './ThemeProvider.js';
3
+ import 'focus-visible';
4
+ import { createGlobalStyle } from 'styled-components';
5
+ import { jsxs, jsx } from 'react/jsx-runtime';
6
+
7
+ const GlobalStyle = createGlobalStyle(["*{box-sizing:border-box;}body{margin:0;}table{border-collapse:collapse;}[data-color-mode='light'] input{color-scheme:light;}[data-color-mode='dark'] input{color-scheme:dark;}@media (prefers-color-scheme:light){[data-color-mode='auto'][data-light-theme*='light']{color-scheme:light;}}@media (prefers-color-scheme:dark){[data-color-mode='auto'][data-dark-theme*='dark']{color-scheme:dark;}}[role='button']:focus:not(:focus-visible):not(:global(.focus-visible)),[role='tabpanel'][tabindex='0']:focus:not(:focus-visible):not(:global(.focus-visible)),button:focus:not(:focus-visible):not(:global(.focus-visible)),summary:focus:not(:focus-visible):not(:global(.focus-visible)),a:focus:not(:focus-visible):not(:global(.focus-visible)){outline:none;box-shadow:none;}[tabindex='0']:focus:not(:focus-visible):not(:global(.focus-visible)),details-dialog:focus:not(:focus-visible):not(:global(.focus-visible)){outline:none;}.BaseStyles{font-family:var(--BaseStyles-fontFamily,var(--fontStack-system));line-height:var(--BaseStyles-lineHeight,1.5);color:var(--BaseStyles-fgColor,var(--fgColor-default));&:has([data-color-mode='light']){input &{color-scheme:light;}}&:has([data-color-mode='dark']){input &{color-scheme:dark;}}:where(a:not([class*='prc-']):not([class*='PRC-']):not([class*='Primer_Brand__'])){color:var(--fgColor-accent,var(--color-accent-fg));text-decoration:none;&:hover{text-decoration:underline;}}}"]);
8
+ function BaseStyles({
9
+ children,
10
+ color,
11
+ fontFamily,
12
+ lineHeight,
13
+ className,
14
+ as: Component = 'div',
15
+ style,
16
+ ...rest
17
+ }) {
18
+ const {
19
+ colorMode,
20
+ colorScheme,
21
+ dayScheme,
22
+ nightScheme
23
+ } = useTheme();
24
+ const baseStyles = {
25
+ ['--BaseStyles-fgColor']: color,
26
+ ['--BaseStyles-fontFamily']: fontFamily,
27
+ ['--BaseStyles-lineHeight']: lineHeight
28
+ };
29
+ return /*#__PURE__*/jsxs(Component, {
30
+ className: clsx('BaseStyles', className),
31
+ "data-portal-root": true
32
+ /**
33
+ * We need to map valid primer/react color modes onto valid color modes for primer/primitives
34
+ * valid color modes for primer/primitives: auto | light | dark
35
+ * valid color modes for primer/primer: auto | day | night | light | dark
36
+ */,
37
+ "data-color-mode": colorMode === 'auto' ? 'auto' : colorScheme?.includes('dark') ? 'dark' : 'light',
38
+ "data-light-theme": dayScheme,
39
+ "data-dark-theme": nightScheme,
40
+ style: {
41
+ ...baseStyles,
42
+ ...style
43
+ },
44
+ ...rest,
45
+ children: [/*#__PURE__*/jsx(GlobalStyle, {
46
+ colorScheme: colorScheme?.includes('dark') ? 'dark' : 'light'
47
+ }), children]
48
+ });
49
+ }
50
+
51
+ export { BaseStyles };
@@ -0,0 +1,37 @@
1
+ import { Breadcrumbs as Breadcrumbs$1, sx } from '@primer/react';
2
+ import styled from 'styled-components';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ const BreadcrumbsImpl = styled(Breadcrumbs$1).withConfig({
6
+ shouldForwardProp: prop => prop !== 'sx'
7
+ }).withConfig({
8
+ displayName: "Breadcrumbs__BreadcrumbsImpl",
9
+ componentId: "sc-1qj8pw-0"
10
+ })(["", ""], sx);
11
+ const StyledBreadcrumbsItem = styled(Breadcrumbs$1.Item).withConfig({
12
+ shouldForwardProp: prop => prop !== 'sx'
13
+ }).withConfig({
14
+ displayName: "Breadcrumbs__StyledBreadcrumbsItem",
15
+ componentId: "sc-1qj8pw-1"
16
+ })(["", ""], sx);
17
+ function BreadcrumbsItem({
18
+ as,
19
+ ...props
20
+ }) {
21
+ return /*#__PURE__*/jsx(StyledBreadcrumbsItem, {
22
+ ...props,
23
+ ...(as ? {
24
+ forwardedAs: as
25
+ } : {})
26
+ });
27
+ }
28
+ const Breadcrumbs = Object.assign(BreadcrumbsImpl, {
29
+ Item: BreadcrumbsItem
30
+ });
31
+
32
+ /**
33
+ * @deprecated Use the `Breadcrumbs` component instead (i.e. `<Breadcrumb>` → `<Breadcrumbs>`)
34
+ */
35
+ const Breadcrumb = Breadcrumbs;
36
+
37
+ export { Breadcrumb, Breadcrumbs };
@@ -0,0 +1,13 @@
1
+ import { Box, Checkbox as Checkbox$1 } from '@primer/react';
2
+ import { forwardRef } from 'react';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ const Checkbox = /*#__PURE__*/forwardRef(function Checkbox(props, ref) {
6
+ return /*#__PURE__*/jsx(Box, {
7
+ as: Checkbox$1,
8
+ ref: ref,
9
+ ...props
10
+ });
11
+ });
12
+
13
+ export { Checkbox };
@@ -0,0 +1,38 @@
1
+ import { Box, CheckboxGroup as CheckboxGroup$1 } 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
+
38
+ 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,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,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,25 @@
1
+ import { Box, Label as Label$1 } from '@primer/react';
2
+ import { forwardRef } from 'react';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ const StyledLabel = /*#__PURE__*/forwardRef(function Label(props, ref) {
6
+ return /*#__PURE__*/jsx(Box, {
7
+ as: Label$1,
8
+ ref: ref,
9
+ ...props
10
+ });
11
+ });
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 };
@@ -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 };