@primer/styled-react 0.0.0-20251210204724 → 0.0.0-20260202191621
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.js +145 -89
- package/dist/components/ActionMenu.js +15 -15
- package/dist/components/Avatar.js +11 -13
- package/dist/components/BaseStyles.js +47 -28
- package/dist/components/Box.js +10 -18
- package/dist/components/Breadcrumbs.js +32 -22
- package/dist/components/Button.js +105 -41
- package/dist/components/Button.stories.d.ts +8 -0
- package/dist/components/Button.stories.d.ts.map +1 -0
- package/dist/components/CounterLabel.js +11 -13
- package/dist/components/DataTable.js +27 -19
- package/dist/components/Dialog.js +79 -53
- package/dist/components/Flash.js +9 -9
- package/dist/components/FormControl.js +15 -15
- package/dist/components/Header.js +44 -36
- package/dist/components/Heading.js +9 -9
- package/dist/components/IconButton.js +36 -23
- package/dist/components/Label.js +22 -17
- package/dist/components/Link.js +22 -17
- package/dist/components/LinkButton.js +9 -9
- package/dist/components/Overlay.js +9 -9
- package/dist/components/PageHeader.js +100 -62
- package/dist/components/SegmentedControl.js +25 -27
- package/dist/components/Spinner.js +9 -9
- package/dist/components/Text.js +22 -17
- package/dist/components/TextInput.js +32 -25
- package/dist/components/Textarea.js +22 -17
- package/dist/components/ThemeProvider.js +185 -132
- package/dist/components/Timeline.js +38 -40
- package/dist/components/ToggleSwitch.js +11 -13
- package/dist/components/Token.js +22 -17
- package/dist/components/Tooltip.js +12 -14
- package/dist/components/Truncate.js +9 -9
- package/dist/components/UnderlineNav.js +39 -27
- package/dist/components/deprecated/ActionList.js +39 -34
- package/dist/components/deprecated/DialogV1.js +38 -28
- package/dist/components/deprecated/Octicon.js +35 -28
- package/dist/components/deprecated/TabNav.js +38 -24
- package/dist/components/deprecated/Tooltip.js +28 -20
- package/dist/components.json +2 -28
- package/dist/deprecated.js +5 -7
- package/dist/experimental.d.ts +0 -21
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +4 -7
- package/dist/index.d.ts +0 -122
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +36 -48
- package/dist/sx.js +6 -7
- package/dist/theme-get.js +8 -8
- package/package.json +11 -7
- package/dist/components/Autocomplete.d.ts +0 -17
- package/dist/components/Autocomplete.d.ts.map +0 -1
- package/dist/components/Autocomplete.js +0 -23
- package/dist/components/Checkbox.d.ts +0 -5
- package/dist/components/Checkbox.d.ts.map +0 -1
- package/dist/components/Checkbox.js +0 -17
- package/dist/components/CheckboxGroup.d.ts +0 -34
- package/dist/components/CheckboxGroup.d.ts.map +0 -1
- package/dist/components/CheckboxGroup.js +0 -41
- package/dist/components/CircleBadge.d.ts +0 -8
- package/dist/components/CircleBadge.d.ts.map +0 -1
- package/dist/components/CircleBadge.js +0 -12
- package/dist/components/NavList.d.ts +0 -30
- package/dist/components/NavList.d.ts.map +0 -1
- package/dist/components/NavList.js +0 -55
- package/dist/components/RadioGroup.d.ts +0 -34
- package/dist/components/RadioGroup.d.ts.map +0 -1
- package/dist/components/RadioGroup.js +0 -41
- package/dist/components/RelativeTime.d.ts +0 -6
- package/dist/components/RelativeTime.d.ts.map +0 -1
- package/dist/components/RelativeTime.js +0 -14
- package/dist/components/Select.d.ts +0 -8
- package/dist/components/Select.d.ts.map +0 -1
- package/dist/components/Select.js +0 -19
- package/dist/components/StateLabel.d.ts +0 -10
- package/dist/components/StateLabel.d.ts.map +0 -1
- package/dist/components/StateLabel.js +0 -16
- package/dist/components/SubNav.d.ts +0 -10
- package/dist/components/SubNav.d.ts.map +0 -1
- package/dist/components/SubNav.js +0 -28
- package/dist/components/UnderlinePanels.d.ts +0 -14
- package/dist/components/UnderlinePanels.d.ts.map +0 -1
- package/dist/components/UnderlinePanels.js +0 -23
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("../polymorphic").ForwardRefComponent<"button", import("./Button").ButtonComponentProps> & import("@primer/react").SlotMarker;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const WithColor: () => import("react").JSX.Element;
|
|
7
|
+
export declare const WithFontSize: () => import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=Button.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../src/components/Button.stories.tsx"],"names":[],"mappings":";;;;AAEA,wBAGC;AAED,eAAO,MAAM,SAAS,mCAAgE,CAAA;AAEtF,eAAO,MAAM,YAAY,mCAA0D,CAAA"}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { forwardRef } from
|
|
4
|
-
import { jsx } from
|
|
1
|
+
import { CounterLabel as CounterLabel$1 } from '@primer/react';
|
|
2
|
+
import { Box } from './Box.js';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
});
|
|
6
|
+
const CounterLabel = /*#__PURE__*/forwardRef(function CounterLabel(props, ref) {
|
|
7
|
+
return /*#__PURE__*/jsx(Box, {
|
|
8
|
+
as: CounterLabel$1,
|
|
9
|
+
ref: ref,
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
13
12
|
});
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
export { CounterLabel$1 as CounterLabel };
|
|
14
|
+
export { CounterLabel };
|
|
@@ -1,24 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { Table as Table$1 } from '@primer/react/experimental';
|
|
2
|
+
import { sx } from '../sx.js';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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"
|
|
11
15
|
})(["", ""], sx);
|
|
12
|
-
function DataTableContainer({
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
function DataTableContainer({
|
|
17
|
+
as,
|
|
18
|
+
...rest
|
|
19
|
+
}) {
|
|
20
|
+
return /*#__PURE__*/jsx(StyleDataTableContainer, {
|
|
21
|
+
...rest,
|
|
22
|
+
...(as ? {
|
|
23
|
+
forwardedAs: as
|
|
24
|
+
} : {})
|
|
25
|
+
});
|
|
17
26
|
}
|
|
18
|
-
const Table
|
|
19
|
-
|
|
20
|
-
|
|
27
|
+
const Table = Object.assign(Table$1, {
|
|
28
|
+
Container: DataTableContainer,
|
|
29
|
+
...rest
|
|
21
30
|
});
|
|
22
31
|
|
|
23
|
-
|
|
24
|
-
export { Table$1 as Table };
|
|
32
|
+
export { Table };
|
|
@@ -1,64 +1,90 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { forwardRef } from
|
|
5
|
-
import { jsx } from
|
|
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
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
const StyledDialog = styled(Dialog$1).withConfig({
|
|
8
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
9
|
+
}).withConfig({
|
|
10
|
+
displayName: "Dialog__StyledDialog",
|
|
11
|
+
componentId: "sc-19zph8h-0"
|
|
11
12
|
})(["", ""], sx);
|
|
12
|
-
const DialogImpl =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
+
});
|
|
18
24
|
});
|
|
19
|
-
const StyledDialogHeader = styled(Dialog.Header).withConfig({
|
|
20
|
-
|
|
21
|
-
|
|
25
|
+
const StyledDialogHeader = styled(Dialog$1.Header).withConfig({
|
|
26
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
27
|
+
}).withConfig({
|
|
28
|
+
displayName: "Dialog__StyledDialogHeader",
|
|
29
|
+
componentId: "sc-19zph8h-1"
|
|
22
30
|
})(["", ""], sx);
|
|
23
|
-
const DialogHeader =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
+
});
|
|
29
42
|
});
|
|
30
|
-
const StyledDialogBody = styled(Dialog.Body).withConfig({
|
|
31
|
-
|
|
32
|
-
|
|
43
|
+
const StyledDialogBody = styled(Dialog$1.Body).withConfig({
|
|
44
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
45
|
+
}).withConfig({
|
|
46
|
+
displayName: "Dialog__StyledDialogBody",
|
|
47
|
+
componentId: "sc-19zph8h-2"
|
|
33
48
|
})(["", ""], sx);
|
|
34
|
-
const DialogBody =
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
+
});
|
|
40
60
|
});
|
|
41
|
-
const StyledDialogFooter = styled(Dialog.Footer).withConfig({
|
|
42
|
-
|
|
43
|
-
|
|
61
|
+
const StyledDialogFooter = styled(Dialog$1.Footer).withConfig({
|
|
62
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
63
|
+
}).withConfig({
|
|
64
|
+
displayName: "Dialog__StyledDialogFooter",
|
|
65
|
+
componentId: "sc-19zph8h-3"
|
|
44
66
|
})(["", ""], sx);
|
|
45
|
-
const DialogFooter =
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
+
});
|
|
51
78
|
});
|
|
52
|
-
DialogHeader.__SLOT__ = Dialog.Header.__SLOT__;
|
|
53
|
-
DialogBody.__SLOT__ = Dialog.Body.__SLOT__;
|
|
54
|
-
DialogFooter.__SLOT__ = Dialog.Footer.__SLOT__;
|
|
55
|
-
const Dialog
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
|
61
88
|
});
|
|
62
89
|
|
|
63
|
-
|
|
64
|
-
export { Dialog$1 as Dialog };
|
|
90
|
+
export { Dialog };
|
package/dist/components/Flash.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import styled from
|
|
3
|
-
import {
|
|
1
|
+
import { Flash as Flash$1 } from '@primer/react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { sx } from '../sx.js';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
const Flash = styled(Flash$1).withConfig({
|
|
6
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
7
|
+
}).withConfig({
|
|
8
|
+
displayName: "Flash",
|
|
9
|
+
componentId: "sc-413izo-0"
|
|
9
10
|
})(["", ""], sx);
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
export { Flash$1 as Flash };
|
|
12
|
+
export { Flash };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import styled from
|
|
3
|
-
import {
|
|
1
|
+
import { FormControl as FormControl$1 } from '@primer/react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { sx } from '../sx.js';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
const FormControlImpl = styled(FormControl$1).withConfig({
|
|
6
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
7
|
+
}).withConfig({
|
|
8
|
+
displayName: "FormControl__FormControlImpl",
|
|
9
|
+
componentId: "sc-1642wfe-0"
|
|
9
10
|
})(["", ""], sx);
|
|
10
|
-
const FormControl
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
|
16
17
|
});
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
export { FormControl$1 as FormControl };
|
|
19
|
+
export { FormControl };
|
|
@@ -1,44 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { jsx } from
|
|
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
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
});
|
|
6
|
+
const StyledHeader = /*#__PURE__*/forwardRef(function Header(props, ref) {
|
|
7
|
+
return /*#__PURE__*/jsx(Box, {
|
|
8
|
+
as: Header$1,
|
|
9
|
+
ref: ref,
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
13
12
|
});
|
|
14
|
-
const HeaderImpl =
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
|
18
22
|
}));
|
|
19
|
-
const HeaderItem =
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
+
});
|
|
25
29
|
});
|
|
26
|
-
const StyledHeaderLink =
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
+
});
|
|
32
36
|
});
|
|
33
|
-
const HeaderLink =
|
|
34
|
-
|
|
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
|
|
37
46
|
}));
|
|
38
|
-
const Header
|
|
39
|
-
|
|
40
|
-
|
|
47
|
+
const Header = Object.assign(HeaderImpl, {
|
|
48
|
+
Item: HeaderItem,
|
|
49
|
+
Link: HeaderLink
|
|
41
50
|
});
|
|
42
51
|
|
|
43
|
-
|
|
44
|
-
export { Header$1 as Header };
|
|
52
|
+
export { Header };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { Heading as Heading$1 } from '@primer/react';
|
|
2
|
+
import { sx } from '../sx.js';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
const Heading = styled(Heading$1).withConfig({
|
|
6
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
7
|
+
}).withConfig({
|
|
8
|
+
displayName: "Heading",
|
|
9
|
+
componentId: "sc-1vc165i-0"
|
|
9
10
|
})(["", ""], sx);
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
export { Heading$1 as Heading };
|
|
12
|
+
export { Heading };
|
|
@@ -1,27 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { generateCustomSxProp } from
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { jsx } from
|
|
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
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
const StyledIconButton = styled(IconButton$1).withConfig({
|
|
9
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
10
|
+
}).withConfig({
|
|
11
|
+
displayName: "IconButton__StyledIconButton",
|
|
12
|
+
componentId: "sc-i53dt6-0"
|
|
12
13
|
})(["", ""], sx);
|
|
13
|
-
const IconButton
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
+
});
|
|
23
37
|
});
|
|
24
|
-
IconButton
|
|
38
|
+
IconButton.__SLOT__ = IconButton$1.__SLOT__;
|
|
25
39
|
|
|
26
|
-
|
|
27
|
-
export { IconButton$1 as IconButton };
|
|
40
|
+
export { IconButton };
|
package/dist/components/Label.js
CHANGED
|
@@ -1,21 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { jsx } from
|
|
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
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
const StyledLabel = styled(Label$1).withConfig({
|
|
8
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
9
|
+
}).withConfig({
|
|
10
|
+
displayName: "Label__StyledLabel",
|
|
11
|
+
componentId: "sc-1cpass9-0"
|
|
11
12
|
})(["", ""], sx);
|
|
12
|
-
const Label
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
+
});
|
|
18
24
|
});
|
|
19
25
|
|
|
20
|
-
|
|
21
|
-
export { Label$1 as Label };
|
|
26
|
+
export { Label };
|
package/dist/components/Link.js
CHANGED
|
@@ -1,21 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import styled from
|
|
3
|
-
import {
|
|
4
|
-
import { forwardRef } from
|
|
5
|
-
import { jsx } from
|
|
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
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
const StyledLink = styled(Link$1).withConfig({
|
|
8
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
9
|
+
}).withConfig({
|
|
10
|
+
displayName: "Link__StyledLink",
|
|
11
|
+
componentId: "sc-1syctfj-0"
|
|
11
12
|
})(["", ""], sx);
|
|
12
|
-
const Link
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
+
});
|
|
18
24
|
});
|
|
19
25
|
|
|
20
|
-
|
|
21
|
-
export { Link$1 as Link };
|
|
26
|
+
export { Link };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import styled from
|
|
3
|
-
import {
|
|
1
|
+
import { LinkButton as LinkButton$1 } from '@primer/react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { sx } from '../sx.js';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
const LinkButton = styled(LinkButton$1).withConfig({
|
|
6
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
7
|
+
}).withConfig({
|
|
8
|
+
displayName: "LinkButton",
|
|
9
|
+
componentId: "sc-1v6zkmg-0"
|
|
9
10
|
})(["", ""], sx);
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
export { LinkButton$1 as LinkButton };
|
|
12
|
+
export { LinkButton };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import styled from
|
|
3
|
-
import {
|
|
1
|
+
import { Overlay as Overlay$1 } from '@primer/react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { sx } from '../sx.js';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
const Overlay = styled(Overlay$1).withConfig({
|
|
6
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
7
|
+
}).withConfig({
|
|
8
|
+
displayName: "Overlay",
|
|
9
|
+
componentId: "sc-tjbd74-0"
|
|
9
10
|
})(["", ""], sx);
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
export { Overlay$1 as Overlay };
|
|
12
|
+
export { Overlay };
|