@primer/styled-react 0.0.0-20251007203417 → 0.0.0-20251007205211
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/PageHeader.js → Tooltip-DIHgr01r.js} +49 -4
- package/dist/components/Button.d.ts +13 -0
- package/dist/components/Button.d.ts.map +1 -0
- package/dist/components/IconButton.d.ts +9 -0
- package/dist/components/IconButton.d.ts.map +1 -0
- package/dist/components/PageHeader.d.ts.map +1 -1
- package/dist/components/TextInput.d.ts +20 -0
- package/dist/components/TextInput.d.ts.map +1 -0
- package/dist/components.json +3 -1
- package/dist/deprecated.js +179 -5
- package/dist/experimental.js +55 -5
- package/dist/index.d.ts +4 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +832 -37
- package/dist/sx.d.ts +3 -0
- package/dist/sx.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/components/ActionList.js +0 -104
- package/dist/components/ActionMenu.js +0 -17
- package/dist/components/Autocomplete.js +0 -17
- package/dist/components/Avatar.js +0 -13
- package/dist/components/BaseStyles.d.ts +0 -17
- package/dist/components/BaseStyles.d.ts.map +0 -1
- package/dist/components/BaseStyles.js +0 -51
- package/dist/components/Breadcrumbs.js +0 -37
- package/dist/components/Checkbox.js +0 -13
- package/dist/components/CheckboxGroup.js +0 -38
- package/dist/components/CircleBadge.js +0 -11
- package/dist/components/CounterLabel.js +0 -13
- package/dist/components/DataTable.js +0 -32
- package/dist/components/Dialog.js +0 -42
- package/dist/components/Flash.js +0 -11
- package/dist/components/Header.js +0 -51
- package/dist/components/Heading.js +0 -11
- package/dist/components/Label.js +0 -25
- package/dist/components/Link.js +0 -25
- package/dist/components/LinkButton.js +0 -11
- package/dist/components/NavList.js +0 -56
- package/dist/components/Overlay.js +0 -11
- package/dist/components/PageLayout.js +0 -39
- package/dist/components/RadioGroup.js +0 -38
- package/dist/components/RelativeTime.js +0 -13
- package/dist/components/SegmentedControl.js +0 -27
- package/dist/components/Spinner.js +0 -12
- package/dist/components/StateLabel.js +0 -13
- package/dist/components/SubNav.js +0 -23
- package/dist/components/Text.js +0 -26
- package/dist/components/ThemeProvider.d.ts +0 -30
- package/dist/components/ThemeProvider.d.ts.map +0 -1
- package/dist/components/ThemeProvider.js +0 -196
- package/dist/components/Timeline.js +0 -46
- package/dist/components/ToggleSwitch.js +0 -13
- package/dist/components/Token.js +0 -36
- package/dist/components/Tooltip.js +0 -13
- package/dist/components/Truncate.js +0 -11
- package/dist/components/UnderlineNav.js +0 -43
- package/dist/components/UnderlinePanels.js +0 -27
- package/dist/components/deprecated/ActionList.js +0 -48
- 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 -31
|
@@ -1,44 +0,0 @@
|
|
|
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 };
|
|
@@ -1,39 +0,0 @@
|
|
|
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 };
|
|
@@ -1,44 +0,0 @@
|
|
|
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 };
|
|
@@ -1,31 +0,0 @@
|
|
|
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 };
|