@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.
- package/dist/components/ActionList.js +104 -0
- package/dist/components/ActionMenu.js +17 -0
- package/dist/components/Autocomplete.js +17 -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/Checkbox.js +13 -0
- package/dist/components/CheckboxGroup.js +38 -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/Flash.js +11 -0
- package/dist/components/Header.js +51 -0
- package/dist/components/Heading.js +11 -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.js +56 -0
- package/dist/components/Overlay.js +11 -0
- package/dist/{Tooltip-DIHgr01r.js → components/PageHeader.js} +4 -49
- package/dist/components/PageLayout.js +39 -0
- package/dist/components/RadioGroup.js +38 -0
- package/dist/components/RelativeTime.js +13 -0
- package/dist/components/SegmentedControl.js +27 -0
- package/dist/components/Spinner.js +12 -0
- package/dist/components/StateLabel.js +13 -0
- package/dist/components/SubNav.js +23 -0
- package/dist/components/Text.js +26 -0
- package/dist/components/ThemeProvider.d.ts +30 -0
- package/dist/components/ThemeProvider.d.ts.map +1 -0
- package/dist/components/ThemeProvider.js +196 -0
- package/dist/components/Timeline.js +46 -0
- package/dist/components/ToggleSwitch.js +13 -0
- package/dist/components/Token.js +36 -0
- package/dist/components/Tooltip.js +13 -0
- package/dist/components/Truncate.js +11 -0
- package/dist/components/UnderlineNav.js +43 -0
- package/dist/components/UnderlinePanels.js +27 -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.js +31 -0
- package/dist/components.json +1 -0
- package/dist/deprecated.js +5 -179
- package/dist/experimental.js +5 -55
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +37 -666
- package/package.json +3 -3
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UnderlinePanels as UnderlinePanels$1 } from '@primer/react/experimental';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { sx } from '@primer/react';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
const StyledUnderlinePanels = styled(UnderlinePanels$1).withConfig({
|
|
7
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
8
|
+
}).withConfig({
|
|
9
|
+
displayName: "UnderlinePanels__StyledUnderlinePanels",
|
|
10
|
+
componentId: "sc-1w35i85-0"
|
|
11
|
+
})(["", ""], sx);
|
|
12
|
+
|
|
13
|
+
// @ts-ignore forwardedAs is valid here but I don't know how to fix the typescript error
|
|
14
|
+
const UnderlinePanelsImpl = ({
|
|
15
|
+
as,
|
|
16
|
+
...props
|
|
17
|
+
}) => /*#__PURE__*/jsx(StyledUnderlinePanels, {
|
|
18
|
+
forwardedAs: as,
|
|
19
|
+
...props
|
|
20
|
+
});
|
|
21
|
+
UnderlinePanelsImpl.displayName = 'UnderlinePanels';
|
|
22
|
+
const UnderlinePanels = Object.assign(UnderlinePanelsImpl, {
|
|
23
|
+
Tab: UnderlinePanels$1.Tab,
|
|
24
|
+
Panel: UnderlinePanels$1.Panel
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export { UnderlinePanels };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { forwardRef } from 'react';
|
|
2
|
+
import { ActionList as ActionList$1 } from '@primer/react/deprecated';
|
|
3
|
+
import { sx, Box } from '@primer/react';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
const ActionListImpl = /*#__PURE__*/forwardRef(function ActionList(props, ref) {
|
|
8
|
+
return /*#__PURE__*/jsx(Box, {
|
|
9
|
+
as: ActionList$1,
|
|
10
|
+
ref: ref,
|
|
11
|
+
...props
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
const StyledActionListItem = styled(ActionList$1.Item).withConfig({
|
|
15
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
16
|
+
}).withConfig({
|
|
17
|
+
displayName: "ActionList__StyledActionListItem",
|
|
18
|
+
componentId: "sc-1ugfmds-0"
|
|
19
|
+
})(["", ""], sx);
|
|
20
|
+
const ActionListItem = /*#__PURE__*/forwardRef(({
|
|
21
|
+
as,
|
|
22
|
+
...props
|
|
23
|
+
}, ref) => /*#__PURE__*/jsx(StyledActionListItem, {
|
|
24
|
+
...props,
|
|
25
|
+
...(as ? {
|
|
26
|
+
forwardedAs: as
|
|
27
|
+
} : {}),
|
|
28
|
+
ref: ref
|
|
29
|
+
}));
|
|
30
|
+
function ActionListGroup(props) {
|
|
31
|
+
return /*#__PURE__*/jsx(Box, {
|
|
32
|
+
as: ActionList$1.Group,
|
|
33
|
+
...props
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function ActionListDivider(props) {
|
|
37
|
+
return /*#__PURE__*/jsx(Box, {
|
|
38
|
+
as: ActionList$1.Divider,
|
|
39
|
+
...props
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
const ActionList = Object.assign(ActionListImpl, {
|
|
43
|
+
Item: ActionListItem,
|
|
44
|
+
Group: ActionListGroup,
|
|
45
|
+
Divider: ActionListDivider
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export { ActionList };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Dialog as Dialog$1 } from '@primer/react/deprecated';
|
|
2
|
+
import { Box } from '@primer/react';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
const StyledDialog = /*#__PURE__*/forwardRef(function Dialog(props, ref) {
|
|
7
|
+
return /*#__PURE__*/jsx(Box, {
|
|
8
|
+
as: Dialog$1,
|
|
9
|
+
ref: ref,
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
const DialogImpl = /*#__PURE__*/forwardRef(({
|
|
14
|
+
as,
|
|
15
|
+
...props
|
|
16
|
+
}, ref) => /*#__PURE__*/jsx(StyledDialog, {
|
|
17
|
+
...props,
|
|
18
|
+
...(as ? {
|
|
19
|
+
forwardedAs: as
|
|
20
|
+
} : {}),
|
|
21
|
+
ref: ref
|
|
22
|
+
}));
|
|
23
|
+
const StyledDialogHeader = /*#__PURE__*/forwardRef(function DialogHeader(props, ref) {
|
|
24
|
+
return /*#__PURE__*/jsx(Box, {
|
|
25
|
+
as: Dialog$1.Header,
|
|
26
|
+
ref: ref,
|
|
27
|
+
...props
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
const DialogHeader = /*#__PURE__*/forwardRef(({
|
|
31
|
+
as,
|
|
32
|
+
...props
|
|
33
|
+
}, ref) => /*#__PURE__*/jsx(StyledDialogHeader, {
|
|
34
|
+
...props,
|
|
35
|
+
...(as ? {
|
|
36
|
+
forwardedAs: as
|
|
37
|
+
} : {}),
|
|
38
|
+
ref: ref
|
|
39
|
+
}));
|
|
40
|
+
const Dialog = Object.assign(DialogImpl, {
|
|
41
|
+
Header: DialogHeader
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export { Dialog };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Octicon as Octicon$1 } from '@primer/react/deprecated';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { sx } from '@primer/react';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Use the icon component directly from `@primer/octicons-react` instead
|
|
9
|
+
*/
|
|
10
|
+
const StyledOcticon = styled(Octicon$1).withConfig({
|
|
11
|
+
shouldForwardProp(prop) {
|
|
12
|
+
return prop !== 'sx';
|
|
13
|
+
}
|
|
14
|
+
}).withConfig({
|
|
15
|
+
displayName: "Octicon__StyledOcticon",
|
|
16
|
+
componentId: "sc-jtj3m8-0"
|
|
17
|
+
})(["", ""], ({
|
|
18
|
+
color,
|
|
19
|
+
sx: sxProp
|
|
20
|
+
}) => sx({
|
|
21
|
+
sx: {
|
|
22
|
+
color,
|
|
23
|
+
...sxProp
|
|
24
|
+
}
|
|
25
|
+
}));
|
|
26
|
+
const Octicon = /*#__PURE__*/forwardRef(({
|
|
27
|
+
as,
|
|
28
|
+
...props
|
|
29
|
+
}, ref) => {
|
|
30
|
+
return /*#__PURE__*/jsx(StyledOcticon, {
|
|
31
|
+
...props,
|
|
32
|
+
...(as ? {
|
|
33
|
+
forwardedAs: as
|
|
34
|
+
} : {}),
|
|
35
|
+
ref: ref
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export { Octicon, Octicon as default };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { TabNav as TabNav$1 } from '@primer/react/deprecated';
|
|
2
|
+
import { sx } from '@primer/react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
const StyledTabNav = styled(TabNav$1).withConfig({
|
|
8
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
9
|
+
}).withConfig({
|
|
10
|
+
displayName: "TabNav__StyledTabNav",
|
|
11
|
+
componentId: "sc-13kad3t-0"
|
|
12
|
+
})(["", ""], sx);
|
|
13
|
+
const TabNavImpl = ({
|
|
14
|
+
as,
|
|
15
|
+
...props
|
|
16
|
+
}) => {
|
|
17
|
+
return /*#__PURE__*/jsx(StyledTabNav, {
|
|
18
|
+
...props,
|
|
19
|
+
...(as ? {
|
|
20
|
+
forwardedAs: as
|
|
21
|
+
} : {})
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
const StyledTabNavLink = styled(TabNav$1.Link).withConfig({
|
|
25
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
26
|
+
}).withConfig({
|
|
27
|
+
displayName: "TabNav__StyledTabNavLink",
|
|
28
|
+
componentId: "sc-13kad3t-1"
|
|
29
|
+
})(["", ""], sx);
|
|
30
|
+
const TabNavLink = /*#__PURE__*/forwardRef(({
|
|
31
|
+
as,
|
|
32
|
+
...props
|
|
33
|
+
}, ref) => /*#__PURE__*/jsx(StyledTabNavLink, {
|
|
34
|
+
...props,
|
|
35
|
+
...(as ? {
|
|
36
|
+
forwardedAs: as
|
|
37
|
+
} : {}),
|
|
38
|
+
ref: ref
|
|
39
|
+
}));
|
|
40
|
+
const TabNav = Object.assign(TabNavImpl, {
|
|
41
|
+
Link: TabNavLink
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export { TabNav };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Tooltip as Tooltip$1 } from '@primer/react/deprecated';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { sx } from '@primer/react';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
const StyledTooltip = styled(Tooltip$1).withConfig({
|
|
8
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
9
|
+
}).withConfig({
|
|
10
|
+
displayName: "Tooltip__StyledTooltip",
|
|
11
|
+
componentId: "sc-145jcib-0"
|
|
12
|
+
})(["", ""], sx);
|
|
13
|
+
const TooltipImpl = /*#__PURE__*/forwardRef(function Tooltip({
|
|
14
|
+
as,
|
|
15
|
+
...props
|
|
16
|
+
}, ref) {
|
|
17
|
+
return /*#__PURE__*/jsx(StyledTooltip, {
|
|
18
|
+
...props,
|
|
19
|
+
...(as ? {
|
|
20
|
+
forwardedAs: as
|
|
21
|
+
} : {}),
|
|
22
|
+
ref: ref
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
const Tooltip = TooltipImpl;
|
|
26
|
+
|
|
27
|
+
// Preserve static properties from the original component
|
|
28
|
+
Tooltip.alignments = Tooltip$1.alignments;
|
|
29
|
+
Tooltip.directions = Tooltip$1.directions;
|
|
30
|
+
|
|
31
|
+
export { Tooltip };
|
package/dist/components.json
CHANGED
package/dist/deprecated.js
CHANGED
|
@@ -1,179 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const StyledTabNav = styled(TabNav$1).withConfig({
|
|
8
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
9
|
-
}).withConfig({
|
|
10
|
-
displayName: "TabNav__StyledTabNav",
|
|
11
|
-
componentId: "sc-13kad3t-0"
|
|
12
|
-
})(["", ""], sx);
|
|
13
|
-
const TabNavImpl = ({
|
|
14
|
-
as,
|
|
15
|
-
...props
|
|
16
|
-
}) => {
|
|
17
|
-
return /*#__PURE__*/jsx(StyledTabNav, {
|
|
18
|
-
...props,
|
|
19
|
-
...(as ? {
|
|
20
|
-
forwardedAs: as
|
|
21
|
-
} : {})
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
const StyledTabNavLink = styled(TabNav$1.Link).withConfig({
|
|
25
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
26
|
-
}).withConfig({
|
|
27
|
-
displayName: "TabNav__StyledTabNavLink",
|
|
28
|
-
componentId: "sc-13kad3t-1"
|
|
29
|
-
})(["", ""], sx);
|
|
30
|
-
const TabNavLink = /*#__PURE__*/forwardRef(({
|
|
31
|
-
as,
|
|
32
|
-
...props
|
|
33
|
-
}, ref) => /*#__PURE__*/jsx(StyledTabNavLink, {
|
|
34
|
-
...props,
|
|
35
|
-
...(as ? {
|
|
36
|
-
forwardedAs: as
|
|
37
|
-
} : {}),
|
|
38
|
-
ref: ref
|
|
39
|
-
}));
|
|
40
|
-
const TabNav = Object.assign(TabNavImpl, {
|
|
41
|
-
Link: TabNavLink
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
const StyledDialog = /*#__PURE__*/forwardRef(function Dialog(props, ref) {
|
|
45
|
-
return /*#__PURE__*/jsx(Box, {
|
|
46
|
-
as: Dialog$1,
|
|
47
|
-
ref: ref,
|
|
48
|
-
...props
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
const DialogImpl = /*#__PURE__*/forwardRef(({
|
|
52
|
-
as,
|
|
53
|
-
...props
|
|
54
|
-
}, ref) => /*#__PURE__*/jsx(StyledDialog, {
|
|
55
|
-
...props,
|
|
56
|
-
...(as ? {
|
|
57
|
-
forwardedAs: as
|
|
58
|
-
} : {}),
|
|
59
|
-
ref: ref
|
|
60
|
-
}));
|
|
61
|
-
const StyledDialogHeader = /*#__PURE__*/forwardRef(function DialogHeader(props, ref) {
|
|
62
|
-
return /*#__PURE__*/jsx(Box, {
|
|
63
|
-
as: Dialog$1.Header,
|
|
64
|
-
ref: ref,
|
|
65
|
-
...props
|
|
66
|
-
});
|
|
67
|
-
});
|
|
68
|
-
const DialogHeader = /*#__PURE__*/forwardRef(({
|
|
69
|
-
as,
|
|
70
|
-
...props
|
|
71
|
-
}, ref) => /*#__PURE__*/jsx(StyledDialogHeader, {
|
|
72
|
-
...props,
|
|
73
|
-
...(as ? {
|
|
74
|
-
forwardedAs: as
|
|
75
|
-
} : {}),
|
|
76
|
-
ref: ref
|
|
77
|
-
}));
|
|
78
|
-
const Dialog = Object.assign(DialogImpl, {
|
|
79
|
-
Header: DialogHeader
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @deprecated Use the icon component directly from `@primer/octicons-react` instead
|
|
84
|
-
*/
|
|
85
|
-
const StyledOcticon = styled(Octicon$1).withConfig({
|
|
86
|
-
shouldForwardProp(prop) {
|
|
87
|
-
return prop !== 'sx';
|
|
88
|
-
}
|
|
89
|
-
}).withConfig({
|
|
90
|
-
displayName: "Octicon__StyledOcticon",
|
|
91
|
-
componentId: "sc-jtj3m8-0"
|
|
92
|
-
})(["", ""], ({
|
|
93
|
-
color,
|
|
94
|
-
sx: sxProp
|
|
95
|
-
}) => sx({
|
|
96
|
-
sx: {
|
|
97
|
-
color,
|
|
98
|
-
...sxProp
|
|
99
|
-
}
|
|
100
|
-
}));
|
|
101
|
-
const Octicon = /*#__PURE__*/forwardRef(({
|
|
102
|
-
as,
|
|
103
|
-
...props
|
|
104
|
-
}, ref) => {
|
|
105
|
-
return /*#__PURE__*/jsx(StyledOcticon, {
|
|
106
|
-
...props,
|
|
107
|
-
...(as ? {
|
|
108
|
-
forwardedAs: as
|
|
109
|
-
} : {}),
|
|
110
|
-
ref: ref
|
|
111
|
-
});
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
const StyledTooltip = styled(Tooltip$1).withConfig({
|
|
115
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
116
|
-
}).withConfig({
|
|
117
|
-
displayName: "Tooltip__StyledTooltip",
|
|
118
|
-
componentId: "sc-145jcib-0"
|
|
119
|
-
})(["", ""], sx);
|
|
120
|
-
const TooltipImpl = /*#__PURE__*/forwardRef(function Tooltip({
|
|
121
|
-
as,
|
|
122
|
-
...props
|
|
123
|
-
}, ref) {
|
|
124
|
-
return /*#__PURE__*/jsx(StyledTooltip, {
|
|
125
|
-
...props,
|
|
126
|
-
...(as ? {
|
|
127
|
-
forwardedAs: as
|
|
128
|
-
} : {}),
|
|
129
|
-
ref: ref
|
|
130
|
-
});
|
|
131
|
-
});
|
|
132
|
-
const Tooltip = TooltipImpl;
|
|
133
|
-
|
|
134
|
-
// Preserve static properties from the original component
|
|
135
|
-
Tooltip.alignments = Tooltip$1.alignments;
|
|
136
|
-
Tooltip.directions = Tooltip$1.directions;
|
|
137
|
-
|
|
138
|
-
const ActionListImpl = /*#__PURE__*/forwardRef(function ActionList(props, ref) {
|
|
139
|
-
return /*#__PURE__*/jsx(Box, {
|
|
140
|
-
as: ActionList$1,
|
|
141
|
-
ref: ref,
|
|
142
|
-
...props
|
|
143
|
-
});
|
|
144
|
-
});
|
|
145
|
-
const StyledActionListItem = styled(ActionList$1.Item).withConfig({
|
|
146
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
147
|
-
}).withConfig({
|
|
148
|
-
displayName: "ActionList__StyledActionListItem",
|
|
149
|
-
componentId: "sc-1ugfmds-0"
|
|
150
|
-
})(["", ""], sx);
|
|
151
|
-
const ActionListItem = /*#__PURE__*/forwardRef(({
|
|
152
|
-
as,
|
|
153
|
-
...props
|
|
154
|
-
}, ref) => /*#__PURE__*/jsx(StyledActionListItem, {
|
|
155
|
-
...props,
|
|
156
|
-
...(as ? {
|
|
157
|
-
forwardedAs: as
|
|
158
|
-
} : {}),
|
|
159
|
-
ref: ref
|
|
160
|
-
}));
|
|
161
|
-
function ActionListGroup(props) {
|
|
162
|
-
return /*#__PURE__*/jsx(Box, {
|
|
163
|
-
as: ActionList$1.Group,
|
|
164
|
-
...props
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
function ActionListDivider(props) {
|
|
168
|
-
return /*#__PURE__*/jsx(Box, {
|
|
169
|
-
as: ActionList$1.Divider,
|
|
170
|
-
...props
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
const ActionList = Object.assign(ActionListImpl, {
|
|
174
|
-
Item: ActionListItem,
|
|
175
|
-
Group: ActionListGroup,
|
|
176
|
-
Divider: ActionListDivider
|
|
177
|
-
});
|
|
178
|
-
|
|
179
|
-
export { ActionList, Dialog, Octicon, TabNav, Tooltip };
|
|
1
|
+
export { TabNav } from './components/deprecated/TabNav.js';
|
|
2
|
+
export { Dialog } from './components/deprecated/DialogV1.js';
|
|
3
|
+
export { default as Octicon } from './components/deprecated/Octicon.js';
|
|
4
|
+
export { Tooltip } from './components/deprecated/Tooltip.js';
|
|
5
|
+
export { ActionList } from './components/deprecated/ActionList.js';
|
package/dist/experimental.js
CHANGED
|
@@ -1,55 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import 'react';
|
|
7
|
-
|
|
8
|
-
const StyledUnderlinePanels = styled(UnderlinePanels$1).withConfig({
|
|
9
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
10
|
-
}).withConfig({
|
|
11
|
-
displayName: "UnderlinePanels__StyledUnderlinePanels",
|
|
12
|
-
componentId: "sc-1w35i85-0"
|
|
13
|
-
})(["", ""], sx);
|
|
14
|
-
|
|
15
|
-
// @ts-ignore forwardedAs is valid here but I don't know how to fix the typescript error
|
|
16
|
-
const UnderlinePanelsImpl = ({
|
|
17
|
-
as,
|
|
18
|
-
...props
|
|
19
|
-
}) => /*#__PURE__*/jsx(StyledUnderlinePanels, {
|
|
20
|
-
forwardedAs: as,
|
|
21
|
-
...props
|
|
22
|
-
});
|
|
23
|
-
UnderlinePanelsImpl.displayName = 'UnderlinePanels';
|
|
24
|
-
const UnderlinePanels = Object.assign(UnderlinePanelsImpl, {
|
|
25
|
-
Tab: UnderlinePanels$1.Tab,
|
|
26
|
-
Panel: UnderlinePanels$1.Panel
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
const {
|
|
30
|
-
Container: PrimerDataTableContainer,
|
|
31
|
-
...rest
|
|
32
|
-
} = Table$1;
|
|
33
|
-
const StyleDataTableContainer = styled(PrimerDataTableContainer).withConfig({
|
|
34
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
35
|
-
}).withConfig({
|
|
36
|
-
displayName: "DataTable__StyleDataTableContainer",
|
|
37
|
-
componentId: "sc-qy1ey2-0"
|
|
38
|
-
})(["", ""], sx);
|
|
39
|
-
function DataTableContainer({
|
|
40
|
-
as,
|
|
41
|
-
...rest
|
|
42
|
-
}) {
|
|
43
|
-
return /*#__PURE__*/jsx(StyleDataTableContainer, {
|
|
44
|
-
...rest,
|
|
45
|
-
...(as ? {
|
|
46
|
-
forwardedAs: as
|
|
47
|
-
} : {})
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
const Table = Object.assign(Table$1, {
|
|
51
|
-
Container: DataTableContainer,
|
|
52
|
-
...rest
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
export { Table, UnderlinePanels };
|
|
1
|
+
export { Dialog } from './components/Dialog.js';
|
|
2
|
+
export { PageHeader } from './components/PageHeader.js';
|
|
3
|
+
export { Tooltip } from './components/Tooltip.js';
|
|
4
|
+
export { UnderlinePanels } from './components/UnderlinePanels.js';
|
|
5
|
+
export { Table } from './components/DataTable.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,8 @@ export { Select } from '@primer/react';
|
|
|
8
8
|
export { Textarea } from '@primer/react';
|
|
9
9
|
export { TextInput } from '@primer/react';
|
|
10
10
|
export { type TextInputProps } from '@primer/react';
|
|
11
|
-
export { ThemeProvider } from '
|
|
11
|
+
export { ThemeProvider } from './components/ThemeProvider';
|
|
12
|
+
export { BaseStyles } from './components/BaseStyles';
|
|
12
13
|
export { merge } from '@primer/react';
|
|
13
14
|
export { theme } from '@primer/react';
|
|
14
15
|
export { themeGet } from '@primer/react';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,GAAG,EAAE,KAAK,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAA;AACpC,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAA;AACrC,OAAO,EAAC,WAAW,EAAC,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