@primer/styled-react 0.0.0-20251202210025 → 0.0.0-20251202220556
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/_virtual/rolldown_runtime.js +29 -0
- package/dist/node_modules/clsx/dist/clsx.js +17 -0
- package/dist/node_modules/deepmerge/dist/cjs.js +88 -0
- package/dist/node_modules/focus-visible/dist/focus-visible.js +212 -0
- package/dist/packages/styled-react/src/components/ActionList.js +107 -0
- package/dist/packages/styled-react/src/components/ActionMenu.js +19 -0
- package/dist/packages/styled-react/src/components/Autocomplete.js +23 -0
- package/dist/packages/styled-react/src/components/Avatar.js +16 -0
- package/dist/{components → packages/styled-react/src/components}/BaseStyles.js +29 -47
- package/dist/packages/styled-react/src/components/Box.js +23 -0
- package/dist/packages/styled-react/src/components/Breadcrumbs.js +28 -0
- package/dist/packages/styled-react/src/components/Button.js +48 -0
- package/dist/packages/styled-react/src/components/Checkbox.js +17 -0
- package/dist/packages/styled-react/src/components/CheckboxGroup.js +41 -0
- package/dist/packages/styled-react/src/components/CircleBadge.js +12 -0
- package/dist/packages/styled-react/src/components/CounterLabel.js +16 -0
- package/dist/packages/styled-react/src/components/DataTable.js +24 -0
- package/dist/packages/styled-react/src/components/Dialog.js +64 -0
- package/dist/packages/styled-react/src/components/Flash.js +12 -0
- package/dist/packages/styled-react/src/components/FormControl.js +19 -0
- package/dist/packages/styled-react/src/components/Header.js +44 -0
- package/dist/packages/styled-react/src/components/Heading.js +12 -0
- package/dist/packages/styled-react/src/components/IconButton.js +27 -0
- package/dist/packages/styled-react/src/components/Label.js +21 -0
- package/dist/packages/styled-react/src/components/Link.js +21 -0
- package/dist/packages/styled-react/src/components/LinkButton.js +12 -0
- package/dist/packages/styled-react/src/components/NavList.js +55 -0
- package/dist/packages/styled-react/src/components/Overlay.js +12 -0
- package/dist/packages/styled-react/src/components/PageHeader.js +71 -0
- package/dist/packages/styled-react/src/components/RadioGroup.js +41 -0
- package/dist/packages/styled-react/src/components/RelativeTime.js +14 -0
- package/dist/packages/styled-react/src/components/SegmentedControl.js +33 -0
- package/dist/packages/styled-react/src/components/Select.js +19 -0
- package/dist/packages/styled-react/src/components/Spinner.js +12 -0
- package/dist/packages/styled-react/src/components/StateLabel.js +16 -0
- package/dist/packages/styled-react/src/components/SubNav.js +28 -0
- package/dist/packages/styled-react/src/components/Text.js +21 -0
- package/dist/packages/styled-react/src/components/TextInput.js +31 -0
- package/dist/packages/styled-react/src/components/Textarea.js +21 -0
- package/dist/packages/styled-react/src/components/ThemeProvider.js +152 -0
- package/dist/packages/styled-react/src/components/Timeline.js +49 -0
- package/dist/packages/styled-react/src/components/ToggleSwitch.js +16 -0
- package/dist/packages/styled-react/src/components/Token.js +21 -0
- package/dist/packages/styled-react/src/components/Tooltip.js +17 -0
- package/dist/packages/styled-react/src/components/Truncate.js +12 -0
- package/dist/packages/styled-react/src/components/UnderlineNav.js +33 -0
- package/dist/packages/styled-react/src/components/UnderlinePanels.js +23 -0
- package/dist/packages/styled-react/src/components/deprecated/ActionList.js +44 -0
- package/dist/packages/styled-react/src/components/deprecated/DialogV1.js +34 -0
- package/dist/packages/styled-react/src/components/deprecated/Octicon.js +32 -0
- package/dist/packages/styled-react/src/components/deprecated/TabNav.js +30 -0
- package/dist/packages/styled-react/src/components/deprecated/Tooltip.js +24 -0
- package/dist/packages/styled-react/src/deprecated.js +7 -0
- package/dist/packages/styled-react/src/experimental.js +7 -0
- package/dist/packages/styled-react/src/index.js +50 -0
- package/dist/packages/styled-react/src/sx.js +11 -0
- package/dist/packages/styled-react/src/theme-get.js +10 -0
- package/package.json +4 -4
- package/dist/components/ActionList.js +0 -163
- package/dist/components/ActionMenu.js +0 -19
- package/dist/components/Autocomplete.js +0 -25
- package/dist/components/Avatar.js +0 -14
- package/dist/components/Box.js +0 -15
- package/dist/components/Breadcrumbs.js +0 -38
- package/dist/components/Button.js +0 -112
- package/dist/components/Checkbox.js +0 -15
- package/dist/components/CheckboxGroup.js +0 -43
- package/dist/components/CircleBadge.js +0 -12
- package/dist/components/CounterLabel.js +0 -14
- package/dist/components/DataTable.js +0 -32
- package/dist/components/Dialog.js +0 -90
- package/dist/components/Flash.js +0 -12
- package/dist/components/FormControl.js +0 -19
- package/dist/components/Header.js +0 -52
- package/dist/components/Heading.js +0 -12
- package/dist/components/IconButton.js +0 -40
- package/dist/components/Label.js +0 -26
- package/dist/components/Link.js +0 -26
- package/dist/components/LinkButton.js +0 -12
- package/dist/components/NavList.js +0 -74
- package/dist/components/Overlay.js +0 -12
- package/dist/components/PageHeader.js +0 -109
- package/dist/components/RadioGroup.js +0 -43
- package/dist/components/RelativeTime.js +0 -14
- package/dist/components/SegmentedControl.js +0 -31
- package/dist/components/Select.js +0 -24
- package/dist/components/Spinner.js +0 -12
- package/dist/components/StateLabel.js +0 -14
- package/dist/components/SubNav.js +0 -26
- package/dist/components/Text.js +0 -26
- package/dist/components/TextInput.js +0 -38
- package/dist/components/Textarea.js +0 -26
- package/dist/components/ThemeProvider.js +0 -203
- package/dist/components/Timeline.js +0 -47
- package/dist/components/ToggleSwitch.js +0 -14
- package/dist/components/Token.js +0 -26
- package/dist/components/Tooltip.js +0 -15
- package/dist/components/Truncate.js +0 -12
- package/dist/components/UnderlineNav.js +0 -45
- package/dist/components/UnderlinePanels.js +0 -28
- package/dist/components/deprecated/ActionList.js +0 -49
- package/dist/components/deprecated/DialogV1.js +0 -44
- package/dist/components/deprecated/Octicon.js +0 -39
- package/dist/components/deprecated/TabNav.js +0 -44
- package/dist/components/deprecated/Tooltip.js +0 -32
- package/dist/deprecated.js +0 -5
- package/dist/experimental.js +0 -5
- package/dist/index.js +0 -46
- package/dist/sx.js +0 -8
- package/dist/theme-get.js +0 -10
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { Dialog as Dialog$1 } from '@primer/react';
|
|
2
|
-
import sx from '../sx.js';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
import { forwardRef } from 'react';
|
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
const StyledDialog = styled(Dialog$1).withConfig({
|
|
8
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
9
|
-
}).withConfig({
|
|
10
|
-
displayName: "Dialog__StyledDialog",
|
|
11
|
-
componentId: "sc-19zph8h-0"
|
|
12
|
-
})(["", ""], sx);
|
|
13
|
-
const DialogImpl = /*#__PURE__*/forwardRef(function Dialog({
|
|
14
|
-
as,
|
|
15
|
-
...props
|
|
16
|
-
}, ref) {
|
|
17
|
-
return /*#__PURE__*/jsx(StyledDialog, {
|
|
18
|
-
ref: ref,
|
|
19
|
-
...(as ? {
|
|
20
|
-
forwardedAs: as
|
|
21
|
-
} : {}),
|
|
22
|
-
...props
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
const StyledDialogHeader = styled(Dialog$1.Header).withConfig({
|
|
26
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
27
|
-
}).withConfig({
|
|
28
|
-
displayName: "Dialog__StyledDialogHeader",
|
|
29
|
-
componentId: "sc-19zph8h-1"
|
|
30
|
-
})(["", ""], sx);
|
|
31
|
-
const DialogHeader = /*#__PURE__*/forwardRef(function DialogHeader({
|
|
32
|
-
as,
|
|
33
|
-
...props
|
|
34
|
-
}, ref) {
|
|
35
|
-
return /*#__PURE__*/jsx(StyledDialogHeader, {
|
|
36
|
-
ref: ref,
|
|
37
|
-
...(as ? {
|
|
38
|
-
forwardedAs: as
|
|
39
|
-
} : {}),
|
|
40
|
-
...props
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
const StyledDialogBody = styled(Dialog$1.Body).withConfig({
|
|
44
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
45
|
-
}).withConfig({
|
|
46
|
-
displayName: "Dialog__StyledDialogBody",
|
|
47
|
-
componentId: "sc-19zph8h-2"
|
|
48
|
-
})(["", ""], sx);
|
|
49
|
-
const DialogBody = /*#__PURE__*/forwardRef(function DialogBody({
|
|
50
|
-
as,
|
|
51
|
-
...props
|
|
52
|
-
}, ref) {
|
|
53
|
-
return /*#__PURE__*/jsx(StyledDialogBody, {
|
|
54
|
-
ref: ref,
|
|
55
|
-
...(as ? {
|
|
56
|
-
forwardedAs: as
|
|
57
|
-
} : {}),
|
|
58
|
-
...props
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
const StyledDialogFooter = styled(Dialog$1.Footer).withConfig({
|
|
62
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
63
|
-
}).withConfig({
|
|
64
|
-
displayName: "Dialog__StyledDialogFooter",
|
|
65
|
-
componentId: "sc-19zph8h-3"
|
|
66
|
-
})(["", ""], sx);
|
|
67
|
-
const DialogFooter = /*#__PURE__*/forwardRef(function DialogFooter({
|
|
68
|
-
as,
|
|
69
|
-
...props
|
|
70
|
-
}, ref) {
|
|
71
|
-
return /*#__PURE__*/jsx(StyledDialogFooter, {
|
|
72
|
-
ref: ref,
|
|
73
|
-
...(as ? {
|
|
74
|
-
forwardedAs: as
|
|
75
|
-
} : {}),
|
|
76
|
-
...props
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
DialogHeader.__SLOT__ = Dialog$1.Header.__SLOT__;
|
|
80
|
-
DialogBody.__SLOT__ = Dialog$1.Body.__SLOT__;
|
|
81
|
-
DialogFooter.__SLOT__ = Dialog$1.Footer.__SLOT__;
|
|
82
|
-
const Dialog = Object.assign(DialogImpl, {
|
|
83
|
-
__SLOT__: Dialog$1['__SLOT__'],
|
|
84
|
-
Buttons: Dialog$1.Buttons,
|
|
85
|
-
Header: DialogHeader,
|
|
86
|
-
Body: DialogBody,
|
|
87
|
-
Footer: DialogFooter
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
export { Dialog };
|
package/dist/components/Flash.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Flash as Flash$1 } from '@primer/react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import sx from '../sx.js';
|
|
4
|
-
|
|
5
|
-
const Flash = styled(Flash$1).withConfig({
|
|
6
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
7
|
-
}).withConfig({
|
|
8
|
-
displayName: "Flash",
|
|
9
|
-
componentId: "sc-413izo-0"
|
|
10
|
-
})(["", ""], sx);
|
|
11
|
-
|
|
12
|
-
export { Flash };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { FormControl as FormControl$1 } from '@primer/react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import sx from '../sx.js';
|
|
4
|
-
|
|
5
|
-
const FormControlImpl = styled(FormControl$1).withConfig({
|
|
6
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
7
|
-
}).withConfig({
|
|
8
|
-
displayName: "FormControl__FormControlImpl",
|
|
9
|
-
componentId: "sc-1642wfe-0"
|
|
10
|
-
})(["", ""], sx);
|
|
11
|
-
const FormControl = Object.assign(FormControlImpl, {
|
|
12
|
-
__SLOT__: FormControl$1.__SLOT__,
|
|
13
|
-
Caption: FormControl$1.Caption,
|
|
14
|
-
LeadingVisual: FormControl$1.LeadingVisual,
|
|
15
|
-
Validation: FormControl$1.Validation,
|
|
16
|
-
Label: FormControl$1.Label
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
export { FormControl };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Header as Header$1 } from '@primer/react';
|
|
2
|
-
import { forwardRef } from 'react';
|
|
3
|
-
import Box from './Box.js';
|
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
const StyledHeader = /*#__PURE__*/forwardRef(function Header(props, ref) {
|
|
7
|
-
return /*#__PURE__*/jsx(Box, {
|
|
8
|
-
as: Header$1,
|
|
9
|
-
ref: ref,
|
|
10
|
-
...props
|
|
11
|
-
});
|
|
12
|
-
});
|
|
13
|
-
const HeaderImpl = /*#__PURE__*/forwardRef(({
|
|
14
|
-
as,
|
|
15
|
-
...props
|
|
16
|
-
}, ref) => /*#__PURE__*/jsx(StyledHeader, {
|
|
17
|
-
...props,
|
|
18
|
-
...(as ? {
|
|
19
|
-
forwardedAs: as
|
|
20
|
-
} : {}),
|
|
21
|
-
ref: ref
|
|
22
|
-
}));
|
|
23
|
-
const HeaderItem = /*#__PURE__*/forwardRef(function HeaderItem(props, ref) {
|
|
24
|
-
return /*#__PURE__*/jsx(Box, {
|
|
25
|
-
as: Header$1.Item,
|
|
26
|
-
ref: ref,
|
|
27
|
-
...props
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
const StyledHeaderLink = /*#__PURE__*/forwardRef(function HeaderLink(props, ref) {
|
|
31
|
-
return /*#__PURE__*/jsx(Box, {
|
|
32
|
-
as: Header$1.Link,
|
|
33
|
-
ref: ref,
|
|
34
|
-
...props
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
const HeaderLink = /*#__PURE__*/forwardRef(({
|
|
38
|
-
as,
|
|
39
|
-
...props
|
|
40
|
-
}, ref) => /*#__PURE__*/jsx(StyledHeaderLink, {
|
|
41
|
-
...props,
|
|
42
|
-
...(as ? {
|
|
43
|
-
forwardedAs: as
|
|
44
|
-
} : {}),
|
|
45
|
-
ref: ref
|
|
46
|
-
}));
|
|
47
|
-
const Header = Object.assign(HeaderImpl, {
|
|
48
|
-
Item: HeaderItem,
|
|
49
|
-
Link: HeaderLink
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
export { Header };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Heading as Heading$1 } from '@primer/react';
|
|
2
|
-
import sx from '../sx.js';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
|
|
5
|
-
const Heading = styled(Heading$1).withConfig({
|
|
6
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
7
|
-
}).withConfig({
|
|
8
|
-
displayName: "Heading",
|
|
9
|
-
componentId: "sc-1vc165i-0"
|
|
10
|
-
})(["", ""], sx);
|
|
11
|
-
|
|
12
|
-
export { Heading };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { IconButton as IconButton$1 } from '@primer/react';
|
|
2
|
-
import { generateCustomSxProp } from './Button.js';
|
|
3
|
-
import { forwardRef } from 'react';
|
|
4
|
-
import styled from 'styled-components';
|
|
5
|
-
import sx from '../sx.js';
|
|
6
|
-
import { jsx } from 'react/jsx-runtime';
|
|
7
|
-
|
|
8
|
-
const StyledIconButton = styled(IconButton$1).withConfig({
|
|
9
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
10
|
-
}).withConfig({
|
|
11
|
-
displayName: "IconButton__StyledIconButton",
|
|
12
|
-
componentId: "sc-i53dt6-0"
|
|
13
|
-
})(["", ""], sx);
|
|
14
|
-
const IconButton = /*#__PURE__*/forwardRef(({
|
|
15
|
-
as,
|
|
16
|
-
sx,
|
|
17
|
-
...props
|
|
18
|
-
}, ref) => {
|
|
19
|
-
let sxStyles = sx;
|
|
20
|
-
// grap the button props that have associated data attributes in the styles
|
|
21
|
-
const {
|
|
22
|
-
size = 'medium'
|
|
23
|
-
} = props;
|
|
24
|
-
if (sx !== null && sx !== undefined && Object.keys(sx).length > 0) {
|
|
25
|
-
sxStyles = generateCustomSxProp({
|
|
26
|
-
size
|
|
27
|
-
}, sx);
|
|
28
|
-
}
|
|
29
|
-
return /*#__PURE__*/jsx(StyledIconButton, {
|
|
30
|
-
sx: sxStyles,
|
|
31
|
-
...props,
|
|
32
|
-
...(as ? {
|
|
33
|
-
forwardedAs: as
|
|
34
|
-
} : {}),
|
|
35
|
-
ref: ref
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
IconButton.__SLOT__ = IconButton$1.__SLOT__;
|
|
39
|
-
|
|
40
|
-
export { IconButton };
|
package/dist/components/Label.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Label as Label$1 } from '@primer/react';
|
|
2
|
-
import sx from '../sx.js';
|
|
3
|
-
import { forwardRef } from 'react';
|
|
4
|
-
import styled from 'styled-components';
|
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
const StyledLabel = styled(Label$1).withConfig({
|
|
8
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
9
|
-
}).withConfig({
|
|
10
|
-
displayName: "Label__StyledLabel",
|
|
11
|
-
componentId: "sc-1cpass9-0"
|
|
12
|
-
})(["", ""], sx);
|
|
13
|
-
const Label = /*#__PURE__*/forwardRef(({
|
|
14
|
-
as,
|
|
15
|
-
...props
|
|
16
|
-
}, ref) => {
|
|
17
|
-
return /*#__PURE__*/jsx(StyledLabel, {
|
|
18
|
-
...props,
|
|
19
|
-
...(as ? {
|
|
20
|
-
forwardedAs: as
|
|
21
|
-
} : {}),
|
|
22
|
-
ref: ref
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
export { Label };
|
package/dist/components/Link.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Link as Link$1 } from '@primer/react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import sx from '../sx.js';
|
|
4
|
-
import { forwardRef } from 'react';
|
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
const StyledLink = styled(Link$1).withConfig({
|
|
8
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
9
|
-
}).withConfig({
|
|
10
|
-
displayName: "Link__StyledLink",
|
|
11
|
-
componentId: "sc-1syctfj-0"
|
|
12
|
-
})(["", ""], sx);
|
|
13
|
-
const Link = /*#__PURE__*/forwardRef(({
|
|
14
|
-
as,
|
|
15
|
-
...props
|
|
16
|
-
}, ref) => {
|
|
17
|
-
return /*#__PURE__*/jsx(StyledLink, {
|
|
18
|
-
...props,
|
|
19
|
-
...(as ? {
|
|
20
|
-
forwardedAs: as
|
|
21
|
-
} : {}),
|
|
22
|
-
ref: ref
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
export { Link };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { LinkButton as LinkButton$1 } from '@primer/react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import sx from '../sx.js';
|
|
4
|
-
|
|
5
|
-
const LinkButton = styled(LinkButton$1).withConfig({
|
|
6
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
7
|
-
}).withConfig({
|
|
8
|
-
displayName: "LinkButton",
|
|
9
|
-
componentId: "sc-1v6zkmg-0"
|
|
10
|
-
})(["", ""], sx);
|
|
11
|
-
|
|
12
|
-
export { LinkButton };
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { NavList as NavList$1 } from '@primer/react';
|
|
2
|
-
import { forwardRef } from 'react';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
import sx from '../sx.js';
|
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
const StyledNavListImpl = styled(NavList$1).withConfig({
|
|
8
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
9
|
-
}).withConfig({
|
|
10
|
-
displayName: "NavList__StyledNavListImpl",
|
|
11
|
-
componentId: "sc-86jrwg-0"
|
|
12
|
-
})(["", ""], sx);
|
|
13
|
-
const NavListImpl = /*#__PURE__*/forwardRef(function NavList({
|
|
14
|
-
as,
|
|
15
|
-
...props
|
|
16
|
-
}, ref) {
|
|
17
|
-
return /*#__PURE__*/jsx(StyledNavListImpl, {
|
|
18
|
-
ref: ref,
|
|
19
|
-
...(as ? {
|
|
20
|
-
forwardedAs: as
|
|
21
|
-
} : {}),
|
|
22
|
-
...props
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
const StyledNavListItem = styled(NavList$1.Item).withConfig({
|
|
26
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
27
|
-
}).withConfig({
|
|
28
|
-
displayName: "NavList__StyledNavListItem",
|
|
29
|
-
componentId: "sc-86jrwg-1"
|
|
30
|
-
})(["", ""], sx);
|
|
31
|
-
const NavListItem = /*#__PURE__*/forwardRef(({
|
|
32
|
-
as,
|
|
33
|
-
...props
|
|
34
|
-
}, ref) => {
|
|
35
|
-
return /*#__PURE__*/jsx(StyledNavListItem, {
|
|
36
|
-
...props,
|
|
37
|
-
...(as ? {
|
|
38
|
-
forwardedAs: as
|
|
39
|
-
} : {}),
|
|
40
|
-
ref: ref
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
const StyledNavListLeadingVisual = styled(NavList$1.LeadingVisual).withConfig({
|
|
44
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
45
|
-
}).withConfig({
|
|
46
|
-
displayName: "NavList__StyledNavListLeadingVisual",
|
|
47
|
-
componentId: "sc-86jrwg-2"
|
|
48
|
-
})(["", ""], sx);
|
|
49
|
-
const NavListLeadingVisual = /*#__PURE__*/forwardRef(({
|
|
50
|
-
as,
|
|
51
|
-
...props
|
|
52
|
-
}, ref) => {
|
|
53
|
-
return /*#__PURE__*/jsx(StyledNavListLeadingVisual, {
|
|
54
|
-
...props,
|
|
55
|
-
...(as ? {
|
|
56
|
-
forwardedAs: as
|
|
57
|
-
} : {}),
|
|
58
|
-
ref: ref
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
NavListLeadingVisual.__SLOT__ = NavList$1.LeadingVisual.__SLOT__;
|
|
62
|
-
const NavList = Object.assign(NavListImpl, {
|
|
63
|
-
Item: NavListItem,
|
|
64
|
-
Group: NavList$1.Group,
|
|
65
|
-
GroupHeading: NavList$1.GroupHeading,
|
|
66
|
-
LeadingVisual: NavListLeadingVisual,
|
|
67
|
-
SubNav: NavList$1.SubNav,
|
|
68
|
-
Divider: NavList$1.Divider,
|
|
69
|
-
TrailingVisual: NavList$1.TrailingVisual,
|
|
70
|
-
TrailingAction: NavList$1.TrailingAction,
|
|
71
|
-
GroupExpand: NavList$1.GroupExpand
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
export { NavList };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Overlay as Overlay$1 } from '@primer/react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import sx from '../sx.js';
|
|
4
|
-
|
|
5
|
-
const Overlay = styled(Overlay$1).withConfig({
|
|
6
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
7
|
-
}).withConfig({
|
|
8
|
-
displayName: "Overlay",
|
|
9
|
-
componentId: "sc-tjbd74-0"
|
|
10
|
-
})(["", ""], sx);
|
|
11
|
-
|
|
12
|
-
export { Overlay };
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { PageHeader as PageHeader$1 } from '@primer/react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import sx from '../sx.js';
|
|
4
|
-
import Box from './Box.js';
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { jsx } from 'react/jsx-runtime';
|
|
7
|
-
|
|
8
|
-
const StyledPageHeader = styled(PageHeader$1).withConfig({
|
|
9
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
10
|
-
}).withConfig({
|
|
11
|
-
displayName: "PageHeader__StyledPageHeader",
|
|
12
|
-
componentId: "sc-1g9symn-0"
|
|
13
|
-
})(["", ""], sx);
|
|
14
|
-
const PageHeaderImpl = /*#__PURE__*/React.forwardRef(({
|
|
15
|
-
as,
|
|
16
|
-
...props
|
|
17
|
-
}, ref) => /*#__PURE__*/jsx(StyledPageHeader, {
|
|
18
|
-
...props,
|
|
19
|
-
...(as ? {
|
|
20
|
-
forwardedAs: as
|
|
21
|
-
} : {}),
|
|
22
|
-
ref: ref
|
|
23
|
-
}));
|
|
24
|
-
function PageHeaderActions({
|
|
25
|
-
sx,
|
|
26
|
-
...rest
|
|
27
|
-
}) {
|
|
28
|
-
const style = {};
|
|
29
|
-
if (sx) {
|
|
30
|
-
// @ts-ignore sx has height attribute
|
|
31
|
-
const {
|
|
32
|
-
height
|
|
33
|
-
} = sx;
|
|
34
|
-
if (height) {
|
|
35
|
-
style['--custom-height'] = height;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// @ts-expect-error type mismatch between Box usage here and PrimerPageHeader.Actions
|
|
40
|
-
return /*#__PURE__*/jsx(Box, {
|
|
41
|
-
...rest,
|
|
42
|
-
as: PageHeader$1.Actions,
|
|
43
|
-
style: style,
|
|
44
|
-
sx: sx
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
function StyledPageHeaderTitle({
|
|
48
|
-
sx,
|
|
49
|
-
...rest
|
|
50
|
-
}) {
|
|
51
|
-
const style = {};
|
|
52
|
-
if (sx) {
|
|
53
|
-
// @ts-ignore sx can have color attribute
|
|
54
|
-
const {
|
|
55
|
-
fontSize,
|
|
56
|
-
lineHeight,
|
|
57
|
-
fontWeight
|
|
58
|
-
} = sx;
|
|
59
|
-
if (fontSize) {
|
|
60
|
-
style['--custom-font-size'] = fontSize;
|
|
61
|
-
}
|
|
62
|
-
if (lineHeight) {
|
|
63
|
-
style['--custom-line-height'] = lineHeight;
|
|
64
|
-
}
|
|
65
|
-
if (fontWeight) {
|
|
66
|
-
style['--custom-font-weight'] = fontWeight;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// @ts-expect-error type mismatch between Box usage here and PrimerPageHeader.Title
|
|
71
|
-
return /*#__PURE__*/jsx(Box, {
|
|
72
|
-
...rest,
|
|
73
|
-
as: PageHeader$1.Title,
|
|
74
|
-
style: style,
|
|
75
|
-
sx: sx
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
const PageHeaderTitle = ({
|
|
79
|
-
as,
|
|
80
|
-
...props
|
|
81
|
-
}) => /*#__PURE__*/jsx(StyledPageHeaderTitle, {
|
|
82
|
-
...props,
|
|
83
|
-
...(as ? {
|
|
84
|
-
forwardedAs: as
|
|
85
|
-
} : {})
|
|
86
|
-
});
|
|
87
|
-
const PageHeaderTitleArea = styled(PageHeader$1.TitleArea).withConfig({
|
|
88
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
89
|
-
}).withConfig({
|
|
90
|
-
displayName: "PageHeader__PageHeaderTitleArea",
|
|
91
|
-
componentId: "sc-1g9symn-1"
|
|
92
|
-
})(["", ""], sx);
|
|
93
|
-
const PageHeader = Object.assign(PageHeaderImpl, {
|
|
94
|
-
Actions: PageHeaderActions,
|
|
95
|
-
ContextArea: PageHeader$1.ContextArea,
|
|
96
|
-
ParentLink: PageHeader$1.ParentLink,
|
|
97
|
-
ContextBar: PageHeader$1.ContextBar,
|
|
98
|
-
TitleArea: PageHeaderTitleArea,
|
|
99
|
-
ContextAreaActions: PageHeader$1.ContextAreaActions,
|
|
100
|
-
LeadingAction: PageHeader$1.LeadingAction,
|
|
101
|
-
Breadcrumbs: PageHeader$1.Breadcrumbs,
|
|
102
|
-
LeadingVisual: PageHeader$1.LeadingVisual,
|
|
103
|
-
Title: PageHeaderTitle,
|
|
104
|
-
TrailingVisual: PageHeader$1.TrailingVisual,
|
|
105
|
-
Description: PageHeader$1.Description,
|
|
106
|
-
TrailingAction: PageHeader$1.TrailingAction
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
export { PageHeader };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { RadioGroup as RadioGroup$1 } from '@primer/react';
|
|
2
|
-
import 'react';
|
|
3
|
-
import Box from './Box.js';
|
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
const RadioGroupImpl = props => {
|
|
7
|
-
return /*#__PURE__*/jsx(Box, {
|
|
8
|
-
as: RadioGroup$1,
|
|
9
|
-
...props
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
// Define local types based on the internal component props
|
|
14
|
-
|
|
15
|
-
const CheckboxOrRadioGroupLabel = props => {
|
|
16
|
-
return /*#__PURE__*/jsx(Box, {
|
|
17
|
-
as: RadioGroup$1.Label,
|
|
18
|
-
...props
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
const CheckboxOrRadioGroupCaption = props => {
|
|
22
|
-
return /*#__PURE__*/jsx(Box, {
|
|
23
|
-
as: RadioGroup$1.Caption,
|
|
24
|
-
...props
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
const CheckboxOrRadioGroupValidation = props => {
|
|
28
|
-
return /*#__PURE__*/jsx(Box, {
|
|
29
|
-
as: RadioGroup$1.Validation,
|
|
30
|
-
...props
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
const RadioGroup = Object.assign(RadioGroupImpl, {
|
|
34
|
-
Label: CheckboxOrRadioGroupLabel,
|
|
35
|
-
Caption: CheckboxOrRadioGroupCaption,
|
|
36
|
-
Validation: CheckboxOrRadioGroupValidation
|
|
37
|
-
});
|
|
38
|
-
RadioGroupImpl.__SLOT__ = RadioGroup$1.__SLOT__;
|
|
39
|
-
CheckboxOrRadioGroupLabel.__SLOT__ = RadioGroup$1.Label.__SLOT__;
|
|
40
|
-
CheckboxOrRadioGroupCaption.__SLOT__ = RadioGroup$1.Caption.__SLOT__;
|
|
41
|
-
CheckboxOrRadioGroupValidation.__SLOT__ = RadioGroup$1.Validation.__SLOT__;
|
|
42
|
-
|
|
43
|
-
export { RadioGroup };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { RelativeTime as RelativeTime$1 } from '@primer/react';
|
|
2
|
-
import 'react';
|
|
3
|
-
import Box from './Box.js';
|
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
function RelativeTime(props) {
|
|
7
|
-
// @ts-expect-error the types for Box are not correctly inferred here
|
|
8
|
-
return /*#__PURE__*/jsx(Box, {
|
|
9
|
-
as: RelativeTime$1,
|
|
10
|
-
...props
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { RelativeTime };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { SegmentedControl as SegmentedControl$1 } from '@primer/react';
|
|
2
|
-
import Box from './Box.js';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
const SegmentedControlButton = props => {
|
|
6
|
-
return /*#__PURE__*/jsx(Box, {
|
|
7
|
-
as: SegmentedControl$1.Button,
|
|
8
|
-
...props
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
const SegmentedControlIconButton = props => {
|
|
12
|
-
return /*#__PURE__*/jsx(Box, {
|
|
13
|
-
as: SegmentedControl$1.IconButton,
|
|
14
|
-
...props
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
const SegmentedControlImpl = props => {
|
|
18
|
-
return /*#__PURE__*/jsx(Box, {
|
|
19
|
-
as: SegmentedControl$1,
|
|
20
|
-
...props
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
const SegmentedControl = Object.assign(SegmentedControlImpl, {
|
|
24
|
-
__SLOT__: SegmentedControl$1.__SLOT__,
|
|
25
|
-
Button: SegmentedControlButton,
|
|
26
|
-
IconButton: SegmentedControlIconButton
|
|
27
|
-
});
|
|
28
|
-
SegmentedControlButton.__SLOT__ = SegmentedControl$1.Button.__SLOT__;
|
|
29
|
-
SegmentedControlIconButton.__SLOT__ = SegmentedControl$1.IconButton.__SLOT__;
|
|
30
|
-
|
|
31
|
-
export { SegmentedControl };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Select as Select$1 } from '@primer/react';
|
|
2
|
-
import sx from '../sx.js';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
const StyledSelect = styled(Select$1).withConfig({
|
|
7
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
8
|
-
}).withConfig({
|
|
9
|
-
displayName: "Select__StyledSelect",
|
|
10
|
-
componentId: "sc-1pyiuc8-0"
|
|
11
|
-
})(["", ""], sx);
|
|
12
|
-
const Select = ({
|
|
13
|
-
as,
|
|
14
|
-
...props
|
|
15
|
-
}) => {
|
|
16
|
-
return /*#__PURE__*/jsx(StyledSelect, {
|
|
17
|
-
...props,
|
|
18
|
-
...(as ? {
|
|
19
|
-
forwardedAs: as
|
|
20
|
-
} : {})
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { Select };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Spinner as Spinner$1 } from '@primer/react';
|
|
2
|
-
import sx from '../sx.js';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
|
|
5
|
-
const Spinner = styled(Spinner$1).withConfig({
|
|
6
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
7
|
-
}).withConfig({
|
|
8
|
-
displayName: "Spinner",
|
|
9
|
-
componentId: "sc-jbw2a0-0"
|
|
10
|
-
})(["", ""], sx);
|
|
11
|
-
|
|
12
|
-
export { Spinner };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { StateLabel as StateLabel$1 } from '@primer/react';
|
|
2
|
-
import { forwardRef } from 'react';
|
|
3
|
-
import Box from './Box.js';
|
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
const StateLabel = /*#__PURE__*/forwardRef(function StateLabel(props, ref) {
|
|
7
|
-
return /*#__PURE__*/jsx(Box, {
|
|
8
|
-
as: StateLabel$1,
|
|
9
|
-
ref: ref,
|
|
10
|
-
...props
|
|
11
|
-
});
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
export { StateLabel };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { SubNav as SubNav$1 } from '@primer/react';
|
|
2
|
-
import { forwardRef } from 'react';
|
|
3
|
-
import Box from './Box.js';
|
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
const SubNavImpl = /*#__PURE__*/forwardRef(function SubNav(props, ref) {
|
|
7
|
-
return /*#__PURE__*/jsx(Box, {
|
|
8
|
-
as: SubNav$1,
|
|
9
|
-
ref: ref,
|
|
10
|
-
...props
|
|
11
|
-
});
|
|
12
|
-
});
|
|
13
|
-
const SubNavLink = /*#__PURE__*/forwardRef(function SubNavLink(props, ref) {
|
|
14
|
-
return /*#__PURE__*/jsx(Box, {
|
|
15
|
-
as: SubNav$1.Link,
|
|
16
|
-
ref: ref,
|
|
17
|
-
...props
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
const SubNav = Object.assign(SubNavImpl, {
|
|
21
|
-
__SLOT__: SubNav$1.__SLOT__,
|
|
22
|
-
Link: SubNavLink
|
|
23
|
-
});
|
|
24
|
-
SubNavLink.__SLOT__ = SubNav$1.Link.__SLOT__;
|
|
25
|
-
|
|
26
|
-
export { SubNav };
|