@primer/styled-react 1.0.0-rc.4 → 1.0.0-rc.5
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/{PageHeader-Bvki2mbE.js → PageHeader-DCDIR2C1.js} +63 -6
- package/dist/Tooltip-YuSlJ5b_.js +20 -0
- package/dist/components/ActionMenu.d.ts +12 -0
- package/dist/components/ActionMenu.d.ts.map +1 -0
- package/dist/components/Autocomplete.d.ts +15 -0
- package/dist/components/Autocomplete.d.ts.map +1 -0
- package/dist/components/Avatar.d.ts +13 -0
- package/dist/components/Avatar.d.ts.map +1 -0
- package/dist/components/Breadcrumbs.d.ts +18 -0
- package/dist/components/Breadcrumbs.d.ts.map +1 -0
- package/dist/components/CheckboxGroup.d.ts +22 -0
- package/dist/components/CheckboxGroup.d.ts.map +1 -0
- package/dist/components/CircleBadge.d.ts +7 -0
- package/dist/components/CircleBadge.d.ts.map +1 -0
- package/dist/components/Dialog.d.ts +19 -0
- package/dist/components/Dialog.d.ts.map +1 -0
- package/dist/components/DialogV1.d.ts +11 -0
- package/dist/components/DialogV1.d.ts.map +1 -0
- package/dist/components/Header.d.ts.map +1 -1
- package/dist/components/Heading.d.ts +8 -0
- package/dist/components/Heading.d.ts.map +1 -0
- package/dist/components/Label.d.ts +9 -0
- package/dist/components/Label.d.ts.map +1 -0
- package/dist/components/Link.d.ts +7 -0
- package/dist/components/Link.d.ts.map +1 -0
- package/dist/components/NavList.d.ts +25 -0
- package/dist/components/NavList.d.ts.map +1 -0
- package/dist/components/Overlay.d.ts +7 -0
- package/dist/components/Overlay.d.ts.map +1 -0
- package/dist/components/PageHeader.d.ts +5 -4
- package/dist/components/PageHeader.d.ts.map +1 -1
- package/dist/components/TabNav.d.ts +9 -0
- package/dist/components/TabNav.d.ts.map +1 -0
- package/dist/components/Text.d.ts +7 -0
- package/dist/components/Text.d.ts.map +1 -0
- package/dist/components/Token.d.ts +7 -0
- package/dist/components/Token.d.ts.map +1 -0
- package/dist/components/Tooltip.d.ts +10 -0
- package/dist/components/Tooltip.d.ts.map +1 -0
- package/dist/components/UnderlineNav.d.ts +4 -2
- package/dist/components/UnderlineNav.d.ts.map +1 -1
- package/dist/components/UnderlinePanels.d.ts +12 -0
- package/dist/components/UnderlinePanels.d.ts.map +1 -0
- package/dist/components.json +18 -1
- package/dist/deprecated.d.ts +4 -1
- package/dist/deprecated.d.ts.map +1 -1
- package/dist/deprecated.js +84 -1
- package/dist/experimental.d.ts +4 -1
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +32 -5
- package/dist/index.d.ts +16 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +301 -11
- package/package.json +3 -3
- package/dist/components/StateLabelProps.d.ts +0 -8
- package/dist/components/StateLabelProps.d.ts.map +0 -1
package/dist/deprecated.js
CHANGED
|
@@ -1 +1,84 @@
|
|
|
1
|
-
|
|
1
|
+
import { TabNav as TabNav$1, Dialog as Dialog$1 } from '@primer/react/deprecated';
|
|
2
|
+
export { Octicon } from '@primer/react/deprecated';
|
|
3
|
+
import { sx, Box } from '@primer/react';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
import { forwardRef } from 'react';
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
|
+
export { D as Tooltip } from './Tooltip-YuSlJ5b_.js';
|
|
8
|
+
|
|
9
|
+
const StyledTabNav = styled(TabNav$1).withConfig({
|
|
10
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
11
|
+
}).withConfig({
|
|
12
|
+
displayName: "TabNav__StyledTabNav",
|
|
13
|
+
componentId: "sc-v7az9x-0"
|
|
14
|
+
})(["", ""], sx);
|
|
15
|
+
const TabNavImpl = ({
|
|
16
|
+
as,
|
|
17
|
+
...props
|
|
18
|
+
}) => {
|
|
19
|
+
return /*#__PURE__*/jsx(StyledTabNav, {
|
|
20
|
+
...props,
|
|
21
|
+
...(as ? {
|
|
22
|
+
forwardedAs: as
|
|
23
|
+
} : {})
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
const StyledTabNavLink = styled(TabNav$1.Link).withConfig({
|
|
27
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
28
|
+
}).withConfig({
|
|
29
|
+
displayName: "TabNav__StyledTabNavLink",
|
|
30
|
+
componentId: "sc-v7az9x-1"
|
|
31
|
+
})(["", ""], sx);
|
|
32
|
+
const TabNavLink = /*#__PURE__*/forwardRef(({
|
|
33
|
+
as,
|
|
34
|
+
...props
|
|
35
|
+
}, ref) => /*#__PURE__*/jsx(StyledTabNavLink, {
|
|
36
|
+
...props,
|
|
37
|
+
...(as ? {
|
|
38
|
+
forwardedAs: as
|
|
39
|
+
} : {}),
|
|
40
|
+
ref: ref
|
|
41
|
+
}));
|
|
42
|
+
const TabNav = Object.assign(TabNavImpl, {
|
|
43
|
+
Link: TabNavLink
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
const StyledDialog = /*#__PURE__*/forwardRef(function Dialog(props, ref) {
|
|
47
|
+
return /*#__PURE__*/jsx(Box, {
|
|
48
|
+
as: Dialog$1,
|
|
49
|
+
ref: ref,
|
|
50
|
+
...props
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
const DialogImpl = /*#__PURE__*/forwardRef(({
|
|
54
|
+
as,
|
|
55
|
+
...props
|
|
56
|
+
}, ref) => /*#__PURE__*/jsx(StyledDialog, {
|
|
57
|
+
...props,
|
|
58
|
+
...(as ? {
|
|
59
|
+
forwardedAs: as
|
|
60
|
+
} : {}),
|
|
61
|
+
ref: ref
|
|
62
|
+
}));
|
|
63
|
+
const StyledDialogHeader = /*#__PURE__*/forwardRef(function DialogHeader(props, ref) {
|
|
64
|
+
return /*#__PURE__*/jsx(Box, {
|
|
65
|
+
as: Dialog$1.Header,
|
|
66
|
+
ref: ref,
|
|
67
|
+
...props
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
const DialogHeader = /*#__PURE__*/forwardRef(({
|
|
71
|
+
as,
|
|
72
|
+
...props
|
|
73
|
+
}, ref) => /*#__PURE__*/jsx(StyledDialogHeader, {
|
|
74
|
+
...props,
|
|
75
|
+
...(as ? {
|
|
76
|
+
forwardedAs: as
|
|
77
|
+
} : {}),
|
|
78
|
+
ref: ref
|
|
79
|
+
}));
|
|
80
|
+
const Dialog = Object.assign(DialogImpl, {
|
|
81
|
+
Header: DialogHeader
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
export { Dialog, TabNav };
|
package/dist/experimental.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export { Dialog, type DialogProps } from './components/Dialog';
|
|
1
2
|
export { PageHeader, type PageHeaderProps, type PageHeaderActionsProps, type PageHeaderTitleProps, } from './components/PageHeader';
|
|
2
|
-
export {
|
|
3
|
+
export { Tooltip, type TooltipProps } from './components/Tooltip';
|
|
4
|
+
export { UnderlinePanels, type UnderlinePanelsProps, type UnderlinePanelsTabProps, type UnderlinePanelsPanelProps, } from './components/UnderlinePanels';
|
|
5
|
+
export { Table } from '@primer/react/experimental';
|
|
3
6
|
//# sourceMappingURL=experimental.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAC,MAAM,qBAAqB,CAAA;AAC5D,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAE/D,OAAO,EACL,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,GAC/B,MAAM,8BAA8B,CAAA;AAErC,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAA"}
|
package/dist/experimental.js
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
|
-
export { P as PageHeader } from './PageHeader-
|
|
2
|
-
export {
|
|
3
|
-
import '@primer/react';
|
|
4
|
-
|
|
5
|
-
import '
|
|
1
|
+
export { D as Dialog, P as PageHeader } from './PageHeader-DCDIR2C1.js';
|
|
2
|
+
export { T as Tooltip } from './Tooltip-YuSlJ5b_.js';
|
|
3
|
+
import { UnderlinePanels as UnderlinePanels$1 } from '@primer/react/experimental';
|
|
4
|
+
export { Table } from '@primer/react/experimental';
|
|
5
|
+
import styled from 'styled-components';
|
|
6
|
+
import { sx } from '@primer/react';
|
|
7
|
+
import { jsx } from 'react/jsx-runtime';
|
|
8
|
+
import 'react';
|
|
9
|
+
import '@primer/react/deprecated';
|
|
10
|
+
|
|
11
|
+
const StyledUnderlinePanels = styled(UnderlinePanels$1).withConfig({
|
|
12
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
13
|
+
}).withConfig({
|
|
14
|
+
displayName: "UnderlinePanels__StyledUnderlinePanels",
|
|
15
|
+
componentId: "sc-1w35i85-0"
|
|
16
|
+
})(["", ""], sx);
|
|
17
|
+
|
|
18
|
+
// @ts-ignore forwardedAs is valid here but I don't know how to fix the typescript error
|
|
19
|
+
const UnderlinePanelsImpl = ({
|
|
20
|
+
as,
|
|
21
|
+
...props
|
|
22
|
+
}) => /*#__PURE__*/jsx(StyledUnderlinePanels, {
|
|
23
|
+
forwardedAs: as,
|
|
24
|
+
...props
|
|
25
|
+
});
|
|
26
|
+
UnderlinePanelsImpl.displayName = 'UnderlinePanels';
|
|
27
|
+
const UnderlinePanels = Object.assign(UnderlinePanelsImpl, {
|
|
28
|
+
Tab: UnderlinePanels$1.Tab,
|
|
29
|
+
Panel: UnderlinePanels$1.Panel
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
export { UnderlinePanels };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,42 +1,38 @@
|
|
|
1
1
|
export { ActionList } from '@primer/react';
|
|
2
|
-
export { ActionMenu } from '@primer/react';
|
|
3
|
-
export { Autocomplete } from '@primer/react';
|
|
4
|
-
export { Avatar } from '@primer/react';
|
|
5
|
-
export { Breadcrumbs } from '@primer/react';
|
|
6
2
|
export { Box, type BoxProps } from './components/Box';
|
|
7
3
|
export { Button } from '@primer/react';
|
|
8
|
-
export { CheckboxGroup } from '@primer/react';
|
|
9
|
-
export { CircleBadge } from '@primer/react';
|
|
10
4
|
export { Details } from '@primer/react';
|
|
11
|
-
export { Dialog } from '@primer/react';
|
|
12
5
|
export { FormControl } from '@primer/react';
|
|
13
|
-
export { Heading } from '@primer/react';
|
|
14
6
|
export { IconButton } from '@primer/react';
|
|
15
|
-
export { Label } from '@primer/react';
|
|
16
|
-
export { Link } from '@primer/react';
|
|
17
|
-
export { NavList } from '@primer/react';
|
|
18
|
-
export { Overlay } from '@primer/react';
|
|
19
|
-
export { PageLayout } from '@primer/react';
|
|
20
7
|
export { ProgressBar } from '@primer/react';
|
|
8
|
+
export { PageLayout } from '@primer/react';
|
|
21
9
|
export { Select } from '@primer/react';
|
|
22
|
-
export { Text } from '@primer/react';
|
|
23
10
|
export { Textarea } from '@primer/react';
|
|
24
11
|
export { TextInput } from '@primer/react';
|
|
25
|
-
export { Token } from '@primer/react';
|
|
26
|
-
export { Tooltip } from '@primer/react';
|
|
27
12
|
export { type TextInputProps } from '@primer/react';
|
|
28
|
-
export { type TokenProps } from '@primer/react';
|
|
29
13
|
export { ThemeProvider } from '@primer/react';
|
|
30
14
|
export { merge } from '@primer/react';
|
|
31
15
|
export { theme } from '@primer/react';
|
|
32
16
|
export { themeGet } from '@primer/react';
|
|
33
17
|
export { useColorSchemeVar } from '@primer/react';
|
|
34
18
|
export { useTheme } from '@primer/react';
|
|
19
|
+
export { ActionMenu } from './components/ActionMenu';
|
|
20
|
+
export { Autocomplete, type AutocompleteOverlayProps } from './components/Autocomplete';
|
|
21
|
+
export { Avatar, type AvatarProps } from './components/Avatar';
|
|
22
|
+
export { Breadcrumbs, Breadcrumb, type BreadcrumbsProps, type BreadcrumbsItemProps } from './components/Breadcrumbs';
|
|
35
23
|
export { Checkbox, type CheckboxProps } from './components/Checkbox';
|
|
24
|
+
export { CheckboxGroup, type CheckboxGroupProps } from './components/CheckboxGroup';
|
|
25
|
+
export { CircleBadge } from './components/CircleBadge';
|
|
36
26
|
export { CounterLabel, type CounterLabelProps } from './components/CounterLabel';
|
|
27
|
+
export { Dialog, type DialogProps } from './components/Dialog';
|
|
37
28
|
export { Flash } from './components/Flash';
|
|
38
29
|
export { Header, type HeaderProps } from './components/Header';
|
|
30
|
+
export { Heading } from './components/Heading';
|
|
31
|
+
export { Label, type LabelProps } from './components/Label';
|
|
32
|
+
export { Link, type LinkProps } from './components/Link';
|
|
39
33
|
export { LinkButton, type LinkButtonProps } from './components/LinkButton';
|
|
34
|
+
export { NavList, type NavListProps } from './components/NavList';
|
|
35
|
+
export { Overlay } from './components/Overlay';
|
|
40
36
|
export { PageHeader, type PageHeaderProps, type PageHeaderActionsProps, type PageHeaderTitleProps, } from './components/PageHeader';
|
|
41
37
|
export { RadioGroup, type RadioGroupProps } from './components/RadioGroup';
|
|
42
38
|
export { RelativeTime, type RelativeTimeProps } from './components/RelativeTime';
|
|
@@ -44,8 +40,11 @@ export { SegmentedControl, type SegmentedControlProps, type SegmentedControlButt
|
|
|
44
40
|
export { Spinner, type SpinnerProps } from './components/Spinner';
|
|
45
41
|
export { StateLabel, type StateLabelProps } from './components/StateLabel';
|
|
46
42
|
export { SubNav, type SubNavProps, type SubNavLinkProps } from './components/SubNav';
|
|
43
|
+
export { Text, type TextProps } from './components/Text';
|
|
47
44
|
export { Timeline, type TimelineProps, type TimelineItemProps, type TimelineBadgeProps, type TimelineBodyProps, type TimelineBreakProps, } from './components/Timeline';
|
|
48
45
|
export { ToggleSwitch, type ToggleSwitchProps } from './components/ToggleSwitch';
|
|
46
|
+
export { Tooltip, type TooltipProps } from './components/Tooltip';
|
|
47
|
+
export { Token, type TokenProps } from './components/Token';
|
|
49
48
|
export { Truncate, type TruncateProps } from './components/Truncate';
|
|
50
49
|
export { UnderlineNav, type UnderlineNavProps, type UnderlineNavItemProps } from './components/UnderlineNav';
|
|
51
50
|
export { sx, type SxProp } from './sx';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AACxC,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"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"}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,78 @@
|
|
|
1
|
-
import { Box, Checkbox as Checkbox$1, CounterLabel as CounterLabel$1, Flash as Flash$1,
|
|
2
|
-
export { ActionList,
|
|
3
|
-
import { forwardRef } from 'react';
|
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
|
1
|
+
import { ActionMenu as ActionMenu$1, sx, Autocomplete as Autocomplete$1, Box, Avatar as Avatar$1, Breadcrumbs as Breadcrumbs$1, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CircleBadge as CircleBadge$1, CounterLabel as CounterLabel$1, Flash as Flash$1, Header as Header$1, Heading as Heading$1, Label as Label$1, Link as Link$1, LinkButton as LinkButton$1, NavList as NavList$1, Overlay as Overlay$1, RadioGroup as RadioGroup$1, RelativeTime as RelativeTime$1, SegmentedControl as SegmentedControl$1, Spinner as Spinner$1, StateLabel as StateLabel$1, SubNav as SubNav$1, Text as Text$1, Timeline as Timeline$1, ToggleSwitch as ToggleSwitch$1, useTheme, theme, Token as Token$1, Truncate as Truncate$1, UnderlineNav as UnderlineNav$1 } from '@primer/react';
|
|
2
|
+
export { ActionList, Box, Button, Details, FormControl, IconButton, PageLayout, ProgressBar, Select, TextInput, Textarea, ThemeProvider, merge, sx, theme, themeGet, useColorSchemeVar, useTheme } from '@primer/react';
|
|
5
3
|
import styled from 'styled-components';
|
|
6
|
-
|
|
4
|
+
import React, { forwardRef } from 'react';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
export { D as Dialog, P as PageHeader } from './PageHeader-DCDIR2C1.js';
|
|
7
|
+
export { T as Tooltip } from './Tooltip-YuSlJ5b_.js';
|
|
8
|
+
import css from '@styled-system/css';
|
|
9
|
+
import '@primer/react/deprecated';
|
|
10
|
+
|
|
11
|
+
const ActionMenuOverlay = styled(ActionMenu$1.Overlay).withConfig({
|
|
12
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
13
|
+
}).withConfig({
|
|
14
|
+
displayName: "ActionMenu__ActionMenuOverlay",
|
|
15
|
+
componentId: "sc-w5s60e-0"
|
|
16
|
+
})(["", ""], sx);
|
|
17
|
+
const ActionMenu = Object.assign(ActionMenu$1, {
|
|
18
|
+
Button: ActionMenu$1.Button,
|
|
19
|
+
Anchor: ActionMenu$1.Anchor,
|
|
20
|
+
Overlay: ActionMenuOverlay,
|
|
21
|
+
Divider: ActionMenu$1.Divider
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
const AutocompleteOverlay = styled(Autocomplete$1.Overlay).withConfig({
|
|
25
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
26
|
+
}).withConfig({
|
|
27
|
+
displayName: "Autocomplete__AutocompleteOverlay",
|
|
28
|
+
componentId: "sc-j8ax2e-0"
|
|
29
|
+
})(["", ""], sx);
|
|
30
|
+
const Autocomplete = Object.assign(Autocomplete$1, {
|
|
31
|
+
Context: Autocomplete$1.Context,
|
|
32
|
+
Input: Autocomplete$1.Input,
|
|
33
|
+
Menu: Autocomplete$1.Menu,
|
|
34
|
+
Overlay: AutocompleteOverlay
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
const Avatar = /*#__PURE__*/forwardRef(function Avatar(props, ref) {
|
|
38
|
+
return /*#__PURE__*/jsx(Box, {
|
|
39
|
+
as: Avatar$1,
|
|
40
|
+
ref: ref,
|
|
41
|
+
...props
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
const BreadcrumbsImpl = styled(Breadcrumbs$1).withConfig({
|
|
46
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
47
|
+
}).withConfig({
|
|
48
|
+
displayName: "Breadcrumbs__BreadcrumbsImpl",
|
|
49
|
+
componentId: "sc-1qj8pw-0"
|
|
50
|
+
})(["", ""], sx);
|
|
51
|
+
const StyledBreadcrumbsItem = styled(Breadcrumbs$1.Item).withConfig({
|
|
52
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
53
|
+
}).withConfig({
|
|
54
|
+
displayName: "Breadcrumbs__StyledBreadcrumbsItem",
|
|
55
|
+
componentId: "sc-1qj8pw-1"
|
|
56
|
+
})(["", ""], sx);
|
|
57
|
+
function BreadcrumbsItem({
|
|
58
|
+
as,
|
|
59
|
+
...props
|
|
60
|
+
}) {
|
|
61
|
+
return /*#__PURE__*/jsx(StyledBreadcrumbsItem, {
|
|
62
|
+
...props,
|
|
63
|
+
...(as ? {
|
|
64
|
+
forwardedAs: as
|
|
65
|
+
} : {})
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
const Breadcrumbs = Object.assign(BreadcrumbsImpl, {
|
|
69
|
+
Item: BreadcrumbsItem
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @deprecated Use the `Breadcrumbs` component instead (i.e. `<Breadcrumb>` → `<Breadcrumbs>`)
|
|
74
|
+
*/
|
|
75
|
+
const Breadcrumb = Breadcrumbs;
|
|
7
76
|
|
|
8
77
|
const Checkbox = /*#__PURE__*/forwardRef(function Checkbox(props, ref) {
|
|
9
78
|
return /*#__PURE__*/jsx(Box, {
|
|
@@ -13,6 +82,46 @@ const Checkbox = /*#__PURE__*/forwardRef(function Checkbox(props, ref) {
|
|
|
13
82
|
});
|
|
14
83
|
});
|
|
15
84
|
|
|
85
|
+
const CheckboxGroupImpl = props => {
|
|
86
|
+
return /*#__PURE__*/jsx(Box, {
|
|
87
|
+
as: CheckboxGroup$1,
|
|
88
|
+
...props
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
// Define local types based on the internal component props
|
|
93
|
+
|
|
94
|
+
const CheckboxOrRadioGroupLabel$1 = props => {
|
|
95
|
+
return /*#__PURE__*/jsx(Box, {
|
|
96
|
+
as: CheckboxGroup$1.Label,
|
|
97
|
+
...props
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
const CheckboxOrRadioGroupCaption$1 = props => {
|
|
101
|
+
return /*#__PURE__*/jsx(Box, {
|
|
102
|
+
as: CheckboxGroup$1.Caption,
|
|
103
|
+
...props
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
const CheckboxOrRadioGroupValidation$1 = props => {
|
|
107
|
+
return /*#__PURE__*/jsx(Box, {
|
|
108
|
+
as: CheckboxGroup$1.Validation,
|
|
109
|
+
...props
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
const CheckboxGroup = Object.assign(CheckboxGroupImpl, {
|
|
113
|
+
Label: CheckboxOrRadioGroupLabel$1,
|
|
114
|
+
Caption: CheckboxOrRadioGroupCaption$1,
|
|
115
|
+
Validation: CheckboxOrRadioGroupValidation$1
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
const CircleBadge = styled(CircleBadge$1).withConfig({
|
|
119
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
120
|
+
}).withConfig({
|
|
121
|
+
displayName: "CircleBadge",
|
|
122
|
+
componentId: "sc-1u7lp3v-0"
|
|
123
|
+
})(["", ""], sx);
|
|
124
|
+
|
|
16
125
|
const CounterLabel = /*#__PURE__*/forwardRef(function CounterLabel(props, ref) {
|
|
17
126
|
return /*#__PURE__*/jsx(Box, {
|
|
18
127
|
as: CounterLabel$1,
|
|
@@ -28,13 +137,23 @@ const Flash = styled(Flash$1).withConfig({
|
|
|
28
137
|
componentId: "sc-413izo-0"
|
|
29
138
|
})(["", ""], sx);
|
|
30
139
|
|
|
31
|
-
const
|
|
140
|
+
const StyledHeader = /*#__PURE__*/forwardRef(function Header(props, ref) {
|
|
32
141
|
return /*#__PURE__*/jsx(Box, {
|
|
33
142
|
as: Header$1,
|
|
34
143
|
ref: ref,
|
|
35
144
|
...props
|
|
36
145
|
});
|
|
37
146
|
});
|
|
147
|
+
const HeaderImpl = /*#__PURE__*/forwardRef(({
|
|
148
|
+
as,
|
|
149
|
+
...props
|
|
150
|
+
}, ref) => /*#__PURE__*/jsx(StyledHeader, {
|
|
151
|
+
...props,
|
|
152
|
+
...(as ? {
|
|
153
|
+
forwardedAs: as
|
|
154
|
+
} : {}),
|
|
155
|
+
ref: ref
|
|
156
|
+
}));
|
|
38
157
|
const HeaderItem = /*#__PURE__*/forwardRef(function HeaderItem(props, ref) {
|
|
39
158
|
return /*#__PURE__*/jsx(Box, {
|
|
40
159
|
as: Header$1.Item,
|
|
@@ -42,18 +161,74 @@ const HeaderItem = /*#__PURE__*/forwardRef(function HeaderItem(props, ref) {
|
|
|
42
161
|
...props
|
|
43
162
|
});
|
|
44
163
|
});
|
|
45
|
-
const
|
|
164
|
+
const StyledHeaderLink = /*#__PURE__*/forwardRef(function HeaderLink(props, ref) {
|
|
46
165
|
return /*#__PURE__*/jsx(Box, {
|
|
47
166
|
as: Header$1.Link,
|
|
48
167
|
ref: ref,
|
|
49
168
|
...props
|
|
50
169
|
});
|
|
51
170
|
});
|
|
171
|
+
const HeaderLink = /*#__PURE__*/forwardRef(({
|
|
172
|
+
as,
|
|
173
|
+
...props
|
|
174
|
+
}, ref) => /*#__PURE__*/jsx(StyledHeaderLink, {
|
|
175
|
+
...props,
|
|
176
|
+
...(as ? {
|
|
177
|
+
forwardedAs: as
|
|
178
|
+
} : {}),
|
|
179
|
+
ref: ref
|
|
180
|
+
}));
|
|
52
181
|
const Header = Object.assign(HeaderImpl, {
|
|
53
182
|
Item: HeaderItem,
|
|
54
183
|
Link: HeaderLink
|
|
55
184
|
});
|
|
56
185
|
|
|
186
|
+
const Heading = styled(Heading$1).withConfig({
|
|
187
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
188
|
+
}).withConfig({
|
|
189
|
+
displayName: "Heading",
|
|
190
|
+
componentId: "sc-1vc165i-0"
|
|
191
|
+
})(["", ""], sx);
|
|
192
|
+
|
|
193
|
+
const StyledLabel = /*#__PURE__*/forwardRef(function Label(props, ref) {
|
|
194
|
+
return /*#__PURE__*/jsx(Box, {
|
|
195
|
+
as: Label$1,
|
|
196
|
+
ref: ref,
|
|
197
|
+
...props
|
|
198
|
+
});
|
|
199
|
+
});
|
|
200
|
+
const Label = /*#__PURE__*/forwardRef(({
|
|
201
|
+
as,
|
|
202
|
+
...props
|
|
203
|
+
}, ref) => {
|
|
204
|
+
return /*#__PURE__*/jsx(StyledLabel, {
|
|
205
|
+
...props,
|
|
206
|
+
...(as ? {
|
|
207
|
+
forwardedAs: as
|
|
208
|
+
} : {}),
|
|
209
|
+
ref: ref
|
|
210
|
+
});
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
const StyledLink = styled(Link$1).withConfig({
|
|
214
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
215
|
+
}).withConfig({
|
|
216
|
+
displayName: "Link__StyledLink",
|
|
217
|
+
componentId: "sc-1syctfj-0"
|
|
218
|
+
})(["", ""], sx);
|
|
219
|
+
const Link = /*#__PURE__*/forwardRef(({
|
|
220
|
+
as,
|
|
221
|
+
...props
|
|
222
|
+
}, ref) => {
|
|
223
|
+
return /*#__PURE__*/jsx(StyledLink, {
|
|
224
|
+
...props,
|
|
225
|
+
...(as ? {
|
|
226
|
+
forwardedAs: as
|
|
227
|
+
} : {}),
|
|
228
|
+
ref: ref
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
|
|
57
232
|
const LinkButton = styled(LinkButton$1).withConfig({
|
|
58
233
|
shouldForwardProp: prop => prop !== 'sx'
|
|
59
234
|
}).withConfig({
|
|
@@ -61,6 +236,51 @@ const LinkButton = styled(LinkButton$1).withConfig({
|
|
|
61
236
|
componentId: "sc-1v6zkmg-0"
|
|
62
237
|
})(["", ""], sx);
|
|
63
238
|
|
|
239
|
+
const NavListImpl = /*#__PURE__*/forwardRef(function NavList(props, ref) {
|
|
240
|
+
return /*#__PURE__*/jsx(Box, {
|
|
241
|
+
as: NavList$1,
|
|
242
|
+
ref: ref,
|
|
243
|
+
...props
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
const NavListItem = /*#__PURE__*/forwardRef(function NavListItem(props, ref) {
|
|
247
|
+
// @ts-expect-error - PrimerNavList.Item is not recognized as a valid component type
|
|
248
|
+
return /*#__PURE__*/jsx(Box, {
|
|
249
|
+
as: NavList$1.Item,
|
|
250
|
+
ref: ref,
|
|
251
|
+
...props
|
|
252
|
+
});
|
|
253
|
+
});
|
|
254
|
+
const NavListGroup = /*#__PURE__*/forwardRef(function NavListGroup(props, ref) {
|
|
255
|
+
// @ts-expect-error - PrimerNavList.Group is not recognized as a valid component type
|
|
256
|
+
return /*#__PURE__*/jsx(Box, {
|
|
257
|
+
as: NavList$1.Group,
|
|
258
|
+
ref: ref,
|
|
259
|
+
...props
|
|
260
|
+
});
|
|
261
|
+
});
|
|
262
|
+
const NavList = Object.assign(NavListImpl, {
|
|
263
|
+
// Wrapped components that need sx support added back in
|
|
264
|
+
Item: NavListItem,
|
|
265
|
+
Group: NavListGroup,
|
|
266
|
+
// Re-exporting others directly
|
|
267
|
+
// TODO: try to remove typecasts to work around "non-portable types" TS error
|
|
268
|
+
SubNav: NavList$1.SubNav,
|
|
269
|
+
Divider: NavList$1.Divider,
|
|
270
|
+
LeadingVisual: NavList$1.LeadingVisual,
|
|
271
|
+
TrailingVisual: NavList$1.TrailingVisual,
|
|
272
|
+
TrailingAction: NavList$1.TrailingAction,
|
|
273
|
+
GroupHeading: NavList$1.GroupHeading,
|
|
274
|
+
GroupExpand: NavList$1.GroupExpand
|
|
275
|
+
});
|
|
276
|
+
|
|
277
|
+
const Overlay = styled(Overlay$1).withConfig({
|
|
278
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
279
|
+
}).withConfig({
|
|
280
|
+
displayName: "Overlay",
|
|
281
|
+
componentId: "sc-tjbd74-0"
|
|
282
|
+
})(["", ""], sx);
|
|
283
|
+
|
|
64
284
|
const RadioGroupImpl = props => {
|
|
65
285
|
return /*#__PURE__*/jsx(Box, {
|
|
66
286
|
as: RadioGroup$1,
|
|
@@ -158,6 +378,26 @@ const SubNav = Object.assign(SubNavImpl, {
|
|
|
158
378
|
Link: SubNavLink
|
|
159
379
|
});
|
|
160
380
|
|
|
381
|
+
const StyledText = styled(Text$1).withConfig({
|
|
382
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
383
|
+
}).withConfig({
|
|
384
|
+
displayName: "Text__StyledText",
|
|
385
|
+
componentId: "sc-1klmep6-0"
|
|
386
|
+
})(["", ""], sx);
|
|
387
|
+
const Text = /*#__PURE__*/forwardRef(({
|
|
388
|
+
as,
|
|
389
|
+
...props
|
|
390
|
+
}, ref) => {
|
|
391
|
+
return /*#__PURE__*/jsx(StyledText, {
|
|
392
|
+
...props,
|
|
393
|
+
...(as ? {
|
|
394
|
+
forwardedAs: as
|
|
395
|
+
} : {}),
|
|
396
|
+
ref: ref
|
|
397
|
+
});
|
|
398
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
399
|
+
});
|
|
400
|
+
|
|
161
401
|
const TimelineImpl = /*#__PURE__*/forwardRef(function Timeline(props, ref) {
|
|
162
402
|
return /*#__PURE__*/jsx(Box, {
|
|
163
403
|
as: Timeline$1,
|
|
@@ -207,6 +447,36 @@ const ToggleSwitch = /*#__PURE__*/forwardRef(function ToggleSwitch(props, ref) {
|
|
|
207
447
|
});
|
|
208
448
|
});
|
|
209
449
|
|
|
450
|
+
const Token = /*#__PURE__*/React.forwardRef(({
|
|
451
|
+
sx: sxProp,
|
|
452
|
+
style,
|
|
453
|
+
...rest
|
|
454
|
+
}, ref) => {
|
|
455
|
+
const contextTheme = useTheme();
|
|
456
|
+
const theme$1 = contextTheme.theme || theme;
|
|
457
|
+
|
|
458
|
+
// If no sx prop is provided, just return PrimerToken directly
|
|
459
|
+
if (!sxProp) {
|
|
460
|
+
return /*#__PURE__*/jsx(Token$1, {
|
|
461
|
+
...rest,
|
|
462
|
+
style: style,
|
|
463
|
+
ref: ref
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
// Convert sx to CSS styles using the theme context
|
|
468
|
+
const sxStyles = css(sxProp)(theme$1);
|
|
469
|
+
const mergedStyle = {
|
|
470
|
+
...sxStyles,
|
|
471
|
+
...style
|
|
472
|
+
};
|
|
473
|
+
return /*#__PURE__*/jsx(Token$1, {
|
|
474
|
+
...rest,
|
|
475
|
+
style: mergedStyle,
|
|
476
|
+
ref: ref
|
|
477
|
+
});
|
|
478
|
+
});
|
|
479
|
+
|
|
210
480
|
const Truncate = styled(Truncate$1).withConfig({
|
|
211
481
|
shouldForwardProp: prop => prop !== 'sx'
|
|
212
482
|
}).withConfig({
|
|
@@ -214,21 +484,41 @@ const Truncate = styled(Truncate$1).withConfig({
|
|
|
214
484
|
componentId: "sc-x3i4it-0"
|
|
215
485
|
})(["", ""], sx);
|
|
216
486
|
|
|
217
|
-
const
|
|
487
|
+
const StyledUnderlineNav = /*#__PURE__*/forwardRef(function UnderlineNav(props, ref) {
|
|
218
488
|
return /*#__PURE__*/jsx(Box, {
|
|
219
489
|
as: UnderlineNav$1,
|
|
220
490
|
ref: ref,
|
|
221
491
|
...props
|
|
222
492
|
});
|
|
223
493
|
});
|
|
224
|
-
const
|
|
494
|
+
const UnderlineNavImpl = /*#__PURE__*/forwardRef(({
|
|
495
|
+
as,
|
|
496
|
+
...props
|
|
497
|
+
}, ref) => /*#__PURE__*/jsx(StyledUnderlineNav, {
|
|
498
|
+
...props,
|
|
499
|
+
...(as ? {
|
|
500
|
+
forwardedAs: as
|
|
501
|
+
} : {}),
|
|
502
|
+
ref: ref
|
|
503
|
+
}));
|
|
504
|
+
const StyledUnderlineNavItem = styled(UnderlineNav$1.Item).withConfig({
|
|
225
505
|
shouldForwardProp: prop => prop !== 'sx'
|
|
226
506
|
}).withConfig({
|
|
227
|
-
displayName: "
|
|
507
|
+
displayName: "UnderlineNav__StyledUnderlineNavItem",
|
|
228
508
|
componentId: "sc-dx6br2-0"
|
|
229
509
|
})(["", ""], sx);
|
|
510
|
+
const UnderlineNavItem = /*#__PURE__*/forwardRef(({
|
|
511
|
+
as,
|
|
512
|
+
...props
|
|
513
|
+
}, ref) => /*#__PURE__*/jsx(StyledUnderlineNavItem, {
|
|
514
|
+
...props,
|
|
515
|
+
...(as ? {
|
|
516
|
+
forwardedAs: as
|
|
517
|
+
} : {}),
|
|
518
|
+
ref: ref
|
|
519
|
+
}));
|
|
230
520
|
const UnderlineNav = Object.assign(UnderlineNavImpl, {
|
|
231
521
|
Item: UnderlineNavItem
|
|
232
522
|
});
|
|
233
523
|
|
|
234
|
-
export { Checkbox, CounterLabel, Flash, Header, LinkButton, RadioGroup, RelativeTime, SegmentedControl, Spinner, StateLabel, SubNav, Timeline, ToggleSwitch, Truncate, UnderlineNav };
|
|
524
|
+
export { ActionMenu, Autocomplete, Avatar, Breadcrumb, Breadcrumbs, Checkbox, CheckboxGroup, CircleBadge, CounterLabel, Flash, Header, Heading, Label, Link, LinkButton, NavList, Overlay, RadioGroup, RelativeTime, SegmentedControl, Spinner, StateLabel, SubNav, Text, Timeline, ToggleSwitch, Token, Truncate, UnderlineNav };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/styled-react",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@babel/preset-react": "^7.27.1",
|
|
32
32
|
"@babel/preset-typescript": "^7.27.1",
|
|
33
|
-
"@primer/react": "^38.0.0-rc.
|
|
33
|
+
"@primer/react": "^38.0.0-rc.5",
|
|
34
34
|
"@rollup/plugin-babel": "^6.0.4",
|
|
35
35
|
"@types/react": "18.3.11",
|
|
36
36
|
"@types/react-dom": "18.3.1",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"typescript": "^5.9.2"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@primer/react": "38.0.0-rc.
|
|
49
|
+
"@primer/react": "38.0.0-rc.5",
|
|
50
50
|
"@types/react": "18.x || 19.x",
|
|
51
51
|
"@types/react-dom": "18.x || 19.x",
|
|
52
52
|
"@types/react-is": "18.x || 19.x",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type StateLabelProps as PrimerStateLabelProps } from '@primer/react';
|
|
2
|
-
import { type SxProp } from '../sx';
|
|
3
|
-
export type StateLabelProps = PrimerStateLabelProps & SxProp;
|
|
4
|
-
export declare const StateLabel: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
5
|
-
variant?: "small" | "normal";
|
|
6
|
-
status: "open" | "issueOpened" | "pullOpened" | "issueClosed" | "issueClosedNotPlanned" | "pullClosed" | "pullMerged" | "draft" | "issueDraft" | "pullQueued" | "unavailable" | "closed";
|
|
7
|
-
} & SxProp & import("react").RefAttributes<HTMLSpanElement>>;
|
|
8
|
-
//# sourceMappingURL=StateLabelProps.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StateLabelProps.d.ts","sourceRoot":"","sources":["../../src/components/StateLabelProps.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,eAAe,IAAI,qBAAqB,EAAC,MAAM,eAAe,CAAA;AAG3G,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,MAAM,MAAM,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAE5D,eAAO,MAAM,UAAU;;;4DAErB,CAAA"}
|