@primer/styled-react 0.0.0-20251002215149 → 0.0.0-20251002224432

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.
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+ import { ActionList as PrimerActionList, type ActionListProps as PrimerActionListProps, type ActionListItemProps as PrimerActionListItemProps, type ActionListLinkItemProps as PrimerActionListLinkItemProps, type ActionListGroupProps as PrimerActionListGroupProps, type ActionListDividerProps as PrimerActionListDividerProps, type ActionListDescriptionProps as PrimerActionListDescriptionProps, type ActionListLeadingVisualProps as PrimerActionListLeadingVisualProps, type ActionListTrailingVisualProps as PrimerActionListTrailingVisualProps } from '@primer/react';
3
+ import { type SxProp } from '../sx';
4
+ import type { ForwardRefComponent } from '../polymorphic';
5
+ type PrimerActionListGroupHeadingProps = React.ComponentProps<typeof PrimerActionList.GroupHeading>;
6
+ type PrimerActionListHeadingProps = React.ComponentProps<typeof PrimerActionList.Heading>;
7
+ type PrimerActionListTrailingActionProps = React.ComponentProps<typeof PrimerActionList.TrailingAction>;
8
+ export type ActionListProps<As extends React.ElementType = 'ul'> = PrimerActionListProps<As> & SxProp;
9
+ export type ActionListItemProps<As extends React.ElementType = 'li'> = React.PropsWithChildren<PrimerActionListItemProps & SxProp>;
10
+ export type ActionListLinkItemProps = PrimerActionListLinkItemProps & SxProp;
11
+ export type ActionListGroupProps = React.PropsWithChildren<PrimerActionListGroupProps & SxProp>;
12
+ export type ActionListGroupHeadingProps = PrimerActionListGroupHeadingProps & SxProp;
13
+ export type ActionListDividerProps = React.PropsWithChildren<PrimerActionListDividerProps & SxProp>;
14
+ export type ActionListDescriptionProps = React.PropsWithChildren<PrimerActionListDescriptionProps & SxProp>;
15
+ export type ActionListLeadingVisualProps = React.PropsWithChildren<PrimerActionListLeadingVisualProps & SxProp>;
16
+ export type ActionListTrailingVisualProps = React.PropsWithChildren<PrimerActionListTrailingVisualProps & SxProp>;
17
+ export type ActionListHeadingProps = PrimerActionListHeadingProps & SxProp;
18
+ export type ActionListTrailingActionProps = PrimerActionListTrailingActionProps & SxProp;
19
+ type HeadingLevels = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
20
+ type TrailingActionElements = 'button' | 'a';
21
+ declare function ActionListItem<As extends React.ElementType = 'li'>({ as, ...props }: ActionListItemProps<As>): React.JSX.Element;
22
+ declare function ActionListGroup(props: ActionListGroupProps): React.JSX.Element;
23
+ declare function ActionListGroupHeading(props: ActionListGroupHeadingProps): React.JSX.Element;
24
+ declare function ActionListDivider(props: ActionListDividerProps): React.JSX.Element;
25
+ declare function ActionListLeadingVisual(props: ActionListLeadingVisualProps): React.JSX.Element;
26
+ declare function ActionListTrailingVisual(props: ActionListTrailingVisualProps): React.JSX.Element;
27
+ export declare const ActionList: React.ForwardRefExoticComponent<Omit<ActionListProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<unknown>> & {
28
+ Item: typeof ActionListItem;
29
+ LinkItem: ForwardRefComponent<"a", ActionListLinkItemProps>;
30
+ Group: typeof ActionListGroup;
31
+ GroupHeading: typeof ActionListGroupHeading;
32
+ Divider: typeof ActionListDivider;
33
+ Description: import("styled-components").StyledComponent<React.FC<React.PropsWithChildren<PrimerActionListDescriptionProps>>, any, ActionListDescriptionProps, never>;
34
+ LeadingVisual: typeof ActionListLeadingVisual;
35
+ TrailingVisual: typeof ActionListTrailingVisual;
36
+ Heading: ForwardRefComponent<HeadingLevels, ActionListHeadingProps>;
37
+ TrailingAction: ForwardRefComponent<TrailingActionElements, ActionListTrailingActionProps>;
38
+ };
39
+ export {};
40
+ //# sourceMappingURL=ActionList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionList.d.ts","sourceRoot":"","sources":["../../src/components/ActionList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAEvC,OAAO,EACL,UAAU,IAAI,gBAAgB,EAC9B,KAAK,eAAe,I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AA;AACnG,MAAM,MAAM,0BAA0B,GAAG,KAAK,CAAC,iBAAiB,CAAC,gCAAgC,GAAG,MAAM,CAAC,CAAA;AAC3G,MAAM,MAAM,4BAA4B,GAAG,KAAK,CAAC,iBAAiB,CAAC,kCAAkC,GAAG,MAAM,CAAC,CAAA;AAC/G,MAAM,MAAM,6BAA6B,GAAG,KAAK,CAAC,iBAAiB,CAAC,mCAAmC,GAAG,MAAM,CAAC,CAAA;AACjH,MAAM,MAAM,sBAAsB,GAAG,4BAA4B,GAAG,MAAM,CAAA;AAC1E,MAAM,MAAM,6BAA6B,GAAG,mCAAmC,GAAG,MAAM,CAAA;AAyBxF,KAAK,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAS5D,KAAK,sBAAsB,GAAG,QAAQ,GAAG,GAAG,CAAA;AAe5C,iBAAS,cAAc,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,IAAI,EAAE,EAAC,EAAE,EAAE,GAAG,KAAK,EAAC,EAAE,mBAAmB,CAAC,EAAE,CAAC,qBAEnG;AAED,iBAAS,eAAe,CAAC,KAAK,EAAE,oBAAoB,qBAEnD;AAED,iBAAS,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,qBAEjE;AAED,iBAAS,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,qBAEvD;AAQD,iBAAS,uBAAuB,CAAC,KAAK,EAAE,4BAA4B,qBAEnE;AAED,iBAAS,wBAAwB,CAAC,KAAK,EAAE,6BAA6B,qBAErE;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;CAWrB,CAAA"}
@@ -1,25 +1,33 @@
1
1
  import { NavList as PrimerNavList } from '@primer/react';
2
- import type { NavListProps as PrimerNavListProps, NavListItemProps as PrimerNavListItemProps } from '@primer/react';
3
- import { type ComponentProps, type PropsWithChildren } from 'react';
2
+ import type { NavListProps as PrimerNavListProps, NavListItemProps as PrimerNavListItemProps, NavListGroupHeadingProps as PrimerNavListGroupHeadingProps, NavListLeadingVisualProps as PrimerNavListLeadingVisualProps } from '@primer/react';
3
+ import { type PropsWithChildren } from 'react';
4
4
  import { type SxProp } from '../sx';
5
+ type RefComponent<E extends HTMLElement, P> = React.ForwardRefExoticComponent<P & React.RefAttributes<E>>;
5
6
  type NavListProps = PropsWithChildren<PrimerNavListProps> & SxProp;
6
- declare const NavList: import("react").ForwardRefExoticComponent<Omit<NavListProps, "ref"> & import("react").RefAttributes<HTMLElement>> & {
7
- Item: import("react").ForwardRefExoticComponent<PrimerNavListItemProps & {
8
- children?: import("react").ReactNode | undefined;
9
- } & SxProp & import("react").RefAttributes<HTMLAnchorElement>>;
10
- Group: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLLIElement> & {
11
- children: React.ReactNode;
12
- title?: string;
13
- } & {
14
- children?: import("react").ReactNode | undefined;
15
- } & SxProp & import("react").RefAttributes<HTMLLIElement>>;
16
- SubNav: React.FC<React.PropsWithChildren<ComponentProps<typeof PrimerNavList.SubNav>>>;
17
- Divider: React.FC<React.PropsWithChildren<ComponentProps<typeof PrimerNavList.Divider>>>;
18
- LeadingVisual: React.FC<React.PropsWithChildren<ComponentProps<typeof PrimerNavList.LeadingVisual>>>;
19
- TrailingVisual: React.FC<React.PropsWithChildren<ComponentProps<typeof PrimerNavList.TrailingVisual>>>;
20
- TrailingAction: React.FC<React.PropsWithChildren<ComponentProps<typeof PrimerNavList.TrailingAction>>>;
21
- GroupHeading: React.FC<React.PropsWithChildren<ComponentProps<typeof PrimerNavList.GroupHeading>>>;
22
- GroupExpand: React.FC<React.PropsWithChildren<ComponentProps<typeof PrimerNavList.GroupExpand>>>;
7
+ declare const NavListItem: import("react").ForwardRefExoticComponent<PrimerNavListItemProps & {
8
+ children?: import("react").ReactNode | undefined;
9
+ } & SxProp & import("react").RefAttributes<HTMLAnchorElement>>;
10
+ declare const NavListGroup: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLLIElement> & {
11
+ children: React.ReactNode;
12
+ title?: string;
13
+ } & {
14
+ children?: import("react").ReactNode | undefined;
15
+ } & SxProp & import("react").RefAttributes<HTMLLIElement>>;
16
+ type NavListGroupHeadingProps = PropsWithChildren<PrimerNavListGroupHeadingProps> & SxProp;
17
+ declare const NavListGroupHeading: RefComponent<HTMLElement, NavListGroupHeadingProps>;
18
+ type NavListLeadingVisualProps = PropsWithChildren<PrimerNavListLeadingVisualProps> & SxProp;
19
+ declare const NavListLeadingVisual: RefComponent<HTMLSpanElement, NavListLeadingVisualProps>;
20
+ type NavListCompound = React.ForwardRefExoticComponent<NavListProps & React.RefAttributes<HTMLElement>> & {
21
+ Item: typeof NavListItem;
22
+ Group: typeof NavListGroup;
23
+ GroupHeading: typeof NavListGroupHeading;
24
+ LeadingVisual: typeof NavListLeadingVisual;
25
+ SubNav: typeof PrimerNavList.SubNav;
26
+ Divider: typeof PrimerNavList.Divider;
27
+ TrailingVisual: typeof PrimerNavList.TrailingVisual;
28
+ TrailingAction: typeof PrimerNavList.TrailingAction;
29
+ GroupExpand: typeof PrimerNavList.GroupExpand;
23
30
  };
31
+ declare const NavList: NavListCompound;
24
32
  export { NavList, type NavListProps };
25
33
  //# sourceMappingURL=NavList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavList.d.ts","sourceRoot":"","sources":["../../src/components/NavList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,aAAa,EAAM,MAAM,eAAe,CAAA;AAC3D,OAAO,KAAK,EACV,YAAY,IAAI,kBAAkB,EAClC,gBAAgB,IAAI,sBAAsB,EAE3C,MAAM,eAAe,CAAA;AACtB,OAAO,EAAa,KAAK,cAAc,EAAE,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAC7E,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,KAAK,YAAY,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,GAAG,MAAM,CAAA;AAoBlE,Q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F,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA"}
@@ -50,6 +50,17 @@
50
50
  "UnderlinePanels"
51
51
  ],
52
52
  "types": [
53
+ "ActionListDescriptionProps",
54
+ "ActionListDividerProps",
55
+ "ActionListGroupHeadingProps",
56
+ "ActionListGroupProps",
57
+ "ActionListHeadingProps",
58
+ "ActionListItemProps",
59
+ "ActionListLeadingVisualProps",
60
+ "ActionListLinkItemProps",
61
+ "ActionListProps",
62
+ "ActionListTrailingActionProps",
63
+ "ActionListTrailingVisualProps",
53
64
  "AutocompleteOverlayProps",
54
65
  "AvatarProps",
55
66
  "BetterSystemStyleObject",
@@ -59,7 +70,6 @@
59
70
  "CheckboxGroupProps",
60
71
  "CheckboxProps",
61
72
  "CounterLabelProps",
62
- "DataTableContainerProps",
63
73
  "DialogHeaderProps",
64
74
  "DialogProps",
65
75
  "FormControlProps",
@@ -82,15 +92,6 @@
82
92
  "SubNavLinkProps",
83
93
  "SubNavProps",
84
94
  "SxProp",
85
- "TableActionsProps",
86
- "TableBodyProps",
87
- "TableCellProps",
88
- "TableHeaderProps",
89
- "TableHeadProps",
90
- "TableProps",
91
- "TableRowProps",
92
- "TableSubtitleProps",
93
- "TableTitleProps",
94
95
  "TabNavLinkProps",
95
96
  "TabNavProps",
96
97
  "TextInputProps",
@@ -2,5 +2,5 @@ export { Dialog, type DialogProps } from './components/Dialog';
2
2
  export { PageHeader, type PageHeaderProps, type PageHeaderActionsProps, type PageHeaderTitleProps, } from './components/PageHeader';
3
3
  export { Tooltip, type TooltipProps } from './components/Tooltip';
4
4
  export { UnderlinePanels, type UnderlinePanelsProps, type UnderlinePanelsTabProps, type UnderlinePanelsPanelProps, } from './components/UnderlinePanels';
5
- export { Table, type DataTableContainerProps, type TableProps, type TableHeadProps, type TableBodyProps, type TableRowProps, type TableHeaderProps, type TableCellProps, type TableTitleProps, type TableSubtitleProps, type TableActionsProps, } from './components/DataTable';
5
+ export { Table } from '@primer/react/experimental';
6
6
  //# sourceMappingURL=experimental.d.ts.map
@@ -1 +1 @@
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,EACL,KAAK,EACL,KAAK,uBAAuB,EAC5B,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,GACvB,MAAM,wBAAwB,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"}
@@ -1,6 +1,7 @@
1
1
  export { D as Dialog, P as PageHeader } from './PageHeader-DCDIR2C1.js';
2
2
  export { T as Tooltip } from './Tooltip-YuSlJ5b_.js';
3
- import { UnderlinePanels as UnderlinePanels$1, Table as Table$1 } from '@primer/react/experimental';
3
+ import { UnderlinePanels as UnderlinePanels$1 } from '@primer/react/experimental';
4
+ export { Table } from '@primer/react/experimental';
4
5
  import styled from 'styled-components';
5
6
  import { sx } from '@primer/react';
6
7
  import { jsx } from 'react/jsx-runtime';
@@ -28,30 +29,4 @@ const UnderlinePanels = Object.assign(UnderlinePanelsImpl, {
28
29
  Panel: UnderlinePanels$1.Panel
29
30
  });
30
31
 
31
- const {
32
- Container: PrimerDataTableContainer,
33
- ...rest
34
- } = Table$1;
35
- const StyleDataTableContainer = styled(PrimerDataTableContainer).withConfig({
36
- shouldForwardProp: prop => prop !== 'sx'
37
- }).withConfig({
38
- displayName: "DataTable__StyleDataTableContainer",
39
- componentId: "sc-qy1ey2-0"
40
- })(["", ""], sx);
41
- const DataTableContainer = function DataTableContainer({
42
- as,
43
- ...rest
44
- }) {
45
- return /*#__PURE__*/jsx(StyleDataTableContainer, {
46
- ...rest,
47
- ...(as ? {
48
- forwardedAs: as
49
- } : {})
50
- });
51
- };
52
- const Table = Object.assign(Table$1, {
53
- Container: DataTableContainer,
54
- ...rest
55
- });
56
-
57
- export { Table, UnderlinePanels };
32
+ export { UnderlinePanels };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- export { ActionList } from '@primer/react';
2
1
  export { Box, type BoxProps } from './components/Box';
3
2
  export { Button } from '@primer/react';
4
3
  export { Details } from '@primer/react';
@@ -14,6 +13,7 @@ export { theme } from '@primer/react';
14
13
  export { themeGet } from '@primer/react';
15
14
  export { useColorSchemeVar } from '@primer/react';
16
15
  export { useTheme } from '@primer/react';
16
+ export { ActionList, type ActionListProps, type ActionListItemProps, type ActionListLinkItemProps, type ActionListGroupProps, type ActionListGroupHeadingProps, type ActionListDividerProps, type ActionListDescriptionProps, type ActionListLeadingVisualProps, type ActionListTrailingVisualProps, type ActionListHeadingProps, type ActionListTrailingActionProps, } from './components/ActionList';
17
17
  export { ActionMenu } from './components/ActionMenu';
18
18
  export { Autocomplete, type AutocompleteOverlayProps } from './components/Autocomplete';
19
19
  export { Avatar, type AvatarProps } from './components/Avatar';
@@ -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,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,UAAU,EAAC,MAAM,eAAe,CAAA;AACxC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAA;AACzC,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAA;AACpC,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;AACtC,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AACvC,OAAO,EAAC,KAAK,cAAc,EAAC,MAAM,eAAe,CAAA;AAGjD,OAAO,EAAC,aAAa,EAAC,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAC,KAAK,EAAC,MAAM,eAAe,CAAA;AACnC,OAAO,EAAC,KAAK,EAAC,MAAM,eAAe,CAAA;AACnC,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;AACtC,OAAO,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;AAEtC,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAA;AAClD,OAAO,EAAC,YAAY,EAAE,KAAK,wBAAwB,EAAC,MAAM,2BAA2B,CAAA;AACrF,OAAO,EAAC,MAAM,EAAE,KAAK,WA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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, FormControl as FormControl$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, PageLayout as PageLayout$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, IconButton, ProgressBar, Select, TextInput, Textarea, ThemeProvider, merge, sx, theme, themeGet, useColorSchemeVar, useTheme } from '@primer/react';
3
- import styled from 'styled-components';
1
+ import { ActionList as ActionList$1, sx, Box, ActionMenu as ActionMenu$1, Autocomplete as Autocomplete$1, 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, FormControl as FormControl$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, PageLayout as PageLayout$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 { Box, Button, Details, IconButton, ProgressBar, Select, TextInput, Textarea, ThemeProvider, merge, sx, theme, themeGet, useColorSchemeVar, useTheme } from '@primer/react';
4
3
  import React, { forwardRef } from 'react';
4
+ import styled from 'styled-components';
5
5
  import { jsx } from 'react/jsx-runtime';
6
6
  export { D as Dialog, P as PageHeader } from './PageHeader-DCDIR2C1.js';
7
7
  export { T as Tooltip } from './Tooltip-YuSlJ5b_.js';
8
8
  import css from '@styled-system/css';
9
9
  import '@primer/react/deprecated';
10
10
 
11
+ const StyledActionList = styled(ActionList$1).withConfig({
12
+ shouldForwardProp: prop => prop !== 'sx'
13
+ }).withConfig({
14
+ displayName: "ActionList__StyledActionList",
15
+ componentId: "sc-hw2362-0"
16
+ })(["", ""], sx);
17
+ const ActionListImpl = /*#__PURE__*/React.forwardRef(function ActionListImpl({
18
+ as,
19
+ ...rest
20
+ }, ref) {
21
+ return /*#__PURE__*/jsx(StyledActionList, {
22
+ ref: ref,
23
+ ...rest,
24
+ ...(as ? {
25
+ forwardedAs: as
26
+ } : {})
27
+ });
28
+ });
29
+ const ActionListLinkItem = styled(ActionList$1.LinkItem).withConfig({
30
+ shouldForwardProp: prop => prop !== 'sx'
31
+ }).withConfig({
32
+ displayName: "ActionList__ActionListLinkItem",
33
+ componentId: "sc-hw2362-1"
34
+ })(["", ""], sx);
35
+ const ActionListHeading = styled(ActionList$1.Heading).withConfig({
36
+ shouldForwardProp: prop => prop !== 'sx'
37
+ }).withConfig({
38
+ displayName: "ActionList__ActionListHeading",
39
+ componentId: "sc-hw2362-2"
40
+ })(["", ""], sx);
41
+ const ActionListTrailingAction = styled(ActionList$1.TrailingAction).withConfig({
42
+ shouldForwardProp: prop => prop !== 'sx'
43
+ }).withConfig({
44
+ displayName: "ActionList__ActionListTrailingAction",
45
+ componentId: "sc-hw2362-3"
46
+ })(["", ""], sx);
47
+ const StyledActionListItem = styled(ActionList$1.Item).withConfig({
48
+ shouldForwardProp: prop => prop !== 'sx'
49
+ }).withConfig({
50
+ displayName: "ActionList__StyledActionListItem",
51
+ componentId: "sc-hw2362-4"
52
+ })(["", ""], sx);
53
+ function ActionListItem({
54
+ as,
55
+ ...props
56
+ }) {
57
+ return /*#__PURE__*/jsx(StyledActionListItem, {
58
+ ...props,
59
+ ...(as ? {
60
+ forwardedAs: as
61
+ } : {})
62
+ });
63
+ }
64
+ function ActionListGroup(props) {
65
+ return /*#__PURE__*/jsx(Box, {
66
+ as: ActionList$1.Group,
67
+ ...props
68
+ });
69
+ }
70
+ function ActionListGroupHeading(props) {
71
+ return /*#__PURE__*/jsx(Box, {
72
+ as: ActionList$1.GroupHeading,
73
+ ...props
74
+ });
75
+ }
76
+ function ActionListDivider(props) {
77
+ return /*#__PURE__*/jsx(Box, {
78
+ as: ActionList$1.Divider,
79
+ ...props
80
+ });
81
+ }
82
+ const ActionListDescription = styled(ActionList$1.Description).withConfig({
83
+ shouldForwardProp: prop => prop !== 'sx'
84
+ }).withConfig({
85
+ displayName: "ActionList__ActionListDescription",
86
+ componentId: "sc-hw2362-5"
87
+ })(["", ""], sx);
88
+ function ActionListLeadingVisual(props) {
89
+ return /*#__PURE__*/jsx(Box, {
90
+ as: ActionList$1.LeadingVisual,
91
+ ...props
92
+ });
93
+ }
94
+ function ActionListTrailingVisual(props) {
95
+ return /*#__PURE__*/jsx(Box, {
96
+ as: ActionList$1.TrailingVisual,
97
+ ...props
98
+ });
99
+ }
100
+ const ActionList = Object.assign(ActionListImpl, {
101
+ Item: ActionListItem,
102
+ LinkItem: ActionListLinkItem,
103
+ Group: ActionListGroup,
104
+ GroupHeading: ActionListGroupHeading,
105
+ Divider: ActionListDivider,
106
+ Description: ActionListDescription,
107
+ LeadingVisual: ActionListLeadingVisual,
108
+ TrailingVisual: ActionListTrailingVisual,
109
+ Heading: ActionListHeading,
110
+ TrailingAction: ActionListTrailingAction
111
+ });
112
+
11
113
  const ActionMenuOverlay = styled(ActionMenu$1.Overlay).withConfig({
12
114
  shouldForwardProp: prop => prop !== 'sx'
13
115
  }).withConfig({
@@ -291,18 +393,31 @@ const NavListGroup = /*#__PURE__*/forwardRef(function NavListGroup(props, ref) {
291
393
  ...props
292
394
  });
293
395
  });
396
+ const NavListGroupHeading = /*#__PURE__*/forwardRef(function NavListGroupHeading(props, ref) {
397
+ // @ts-expect-error - PrimerNavList.GroupHeading is not recognized as a valid component type
398
+ return /*#__PURE__*/jsx(Box, {
399
+ as: NavList$1.GroupHeading,
400
+ ref: ref,
401
+ ...props
402
+ });
403
+ });
404
+ const NavListLeadingVisual = /*#__PURE__*/forwardRef(function NavListLeadingVisual(props, ref) {
405
+ // @ts-expect-error - PrimerNavList.LeadingVisual is not recognized as a valid component type
406
+ return /*#__PURE__*/jsx(Box, {
407
+ as: NavList$1.LeadingVisual,
408
+ ref: ref,
409
+ ...props
410
+ });
411
+ });
294
412
  const NavList = Object.assign(NavListImpl, {
295
- // Wrapped components that need sx support added back in
296
413
  Item: NavListItem,
297
414
  Group: NavListGroup,
298
- // Re-exporting others directly
299
- // TODO: try to remove typecasts to work around "non-portable types" TS error
415
+ GroupHeading: NavListGroupHeading,
416
+ LeadingVisual: NavListLeadingVisual,
300
417
  SubNav: NavList$1.SubNav,
301
418
  Divider: NavList$1.Divider,
302
- LeadingVisual: NavList$1.LeadingVisual,
303
419
  TrailingVisual: NavList$1.TrailingVisual,
304
420
  TrailingAction: NavList$1.TrailingAction,
305
- GroupHeading: NavList$1.GroupHeading,
306
421
  GroupExpand: NavList$1.GroupExpand
307
422
  });
308
423
 
@@ -602,4 +717,4 @@ const UnderlineNav = Object.assign(UnderlineNavImpl, {
602
717
  Item: UnderlineNavItem
603
718
  });
604
719
 
605
- export { ActionMenu, Autocomplete, Avatar, Breadcrumb, Breadcrumbs, Checkbox, CheckboxGroup, CircleBadge, CounterLabel, Flash, FormControl, Header, Heading, Label, Link, LinkButton, NavList, Overlay, PageLayout, RadioGroup, RelativeTime, SegmentedControl, Spinner, StateLabel, SubNav, Text, Timeline, ToggleSwitch, Token, Truncate, UnderlineNav };
720
+ export { ActionList, ActionMenu, Autocomplete, Avatar, Breadcrumb, Breadcrumbs, Checkbox, CheckboxGroup, CircleBadge, CounterLabel, Flash, FormControl, Header, Heading, Label, Link, LinkButton, NavList, Overlay, PageLayout, 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": "0.0.0-20251002215149",
3
+ "version": "0.0.0-20251002224432",
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": "0.0.0-20251002215149",
33
+ "@primer/react": "0.0.0-20251002224432",
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": "0.0.0-20251002215149",
49
+ "@primer/react": "0.0.0-20251002224432",
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,11 +0,0 @@
1
- import { Table as PrimerDataTable, type TableContainerProps } from '@primer/react/experimental';
2
- import { type SxProp } from '../sx';
3
- import type React from 'react';
4
- type DataTableContainerProps<As extends React.ElementType = 'div'> = TableContainerProps<As> & SxProp;
5
- declare const DataTableContainer: <As extends React.ElementType = "div">({ as, ...rest }: DataTableContainerProps<As>) => React.JSX.Element;
6
- declare const Table: typeof PrimerDataTable & {
7
- Container: typeof DataTableContainer;
8
- };
9
- export type { TableProps, TableHeadProps, TableBodyProps, TableRowProps, TableHeaderProps, TableCellProps, TableTitleProps, TableSubtitleProps, TableActionsProps, } from '@primer/react/experimental';
10
- export { Table, type DataTableContainerProps };
11
- //# sourceMappingURL=DataTable.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../src/components/DataTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,IAAI,eAAe,EAAE,KAAK,mBAAmB,EAAC,MAAM,4BAA4B,CAAA;AAC7F,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,KAAK,uBAAuB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,IAAI,mBAAmB,CAAC,EAAE,CAAC,GAAG,MAAM,CAAA;AAYrG,QAAA,MAAM,kBAAkB,GAA+B,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAAE,iBAG1F,uBAAuB,CAAC,EAAE,CAAC,sBAE7B,CAAA;AAED,QAAA,MAAM,KAAK,EAAE,OAAO,eAAe,GAAG;IACpC,SAAS,EAAE,OAAO,kBAAkB,CAAA;CAIpC,CAAA;AAEF,YAAY,EACV,UAAU,EACV,cAAc,EACd,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAC,KAAK,EAAE,KAAK,uBAAuB,EAAC,CAAA"}