@primer/styled-react 0.0.0-20251002230558 → 0.0.0-20251003001401

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.
@@ -1,18 +1,13 @@
1
- import { FormControl as PrimerFormControl, type FormControlProps as PrimerFormControlProps, type FormControlCaptionProps as PrimerFormControlCaptionProps, type FormControlValidationProps as PrimerFormControlValidationProps, type SxProp } from '@primer/react';
1
+ import { FormControl as PrimerFormControl, type FormControlProps as PrimerFormControlProps, type SxProp } from '@primer/react';
2
2
  import { type PropsWithChildren } from 'react';
3
3
  type FormControlProps = PropsWithChildren<PrimerFormControlProps> & SxProp;
4
4
  declare const FormControlImpl: import("react").ForwardRefExoticComponent<PrimerFormControlProps & {
5
5
  children?: import("react").ReactNode | undefined;
6
6
  } & SxProp & import("react").RefAttributes<HTMLDivElement>>;
7
- type FormControlCaptionProps = PropsWithChildren<PrimerFormControlCaptionProps> & SxProp;
8
- declare const FormControlCaption: (props: FormControlCaptionProps) => import("react").JSX.Element;
9
- type FormControlValidationProps = PropsWithChildren<PrimerFormControlValidationProps> & SxProp;
10
- declare const FormControlValidation: (props: FormControlValidationProps) => import("react").JSX.Element;
11
- declare const FormControlLeadingVisual: (props: PropsWithChildren<SxProp>) => import("react").JSX.Element;
12
7
  declare const FormControl: typeof FormControlImpl & {
13
- Caption: typeof FormControlCaption;
14
- LeadingVisual: typeof FormControlLeadingVisual;
15
- Validation: typeof FormControlValidation;
8
+ Caption: typeof PrimerFormControl.Caption;
9
+ LeadingVisual: typeof PrimerFormControl.LeadingVisual;
10
+ Validation: typeof PrimerFormControl.Validation;
16
11
  Label: typeof PrimerFormControl.Label;
17
12
  };
18
13
  export { FormControl, type FormControlProps };
@@ -1 +1 @@
1
- {"version":3,"file":"FormControl.d.ts","sourceRoot":"","sources":["../../src/components/FormControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,IAAI,iBAAiB,EAChC,KAAK,gBAAgB,IAAI,sBA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G,MAAM,CAAA;AAE1E,QAAA,MAAM,eAAe;;2DAEnB,CAAA;AAEF,QAAA,MAAM,WAAW,EAKX,OAAO,eAAe,GAAG;IAC7B,OAAO,EAAE,OAAO,iBAAiB,CAAC,OAAO,CAAA;IACzC,aAAa,EAAE,OAAO,iBAAiB,CAAC,aAAa,CAAA;IACrD,UAAU,EAAE,OAAO,iBAAiB,CAAC,UAAU,CAAA;IAC/C,KAAK,EAAE,OAAO,iBAAiB,CAAC,KAAK,CAAA;CACtC,CAAA;AAED,OAAO,EAAC,WAAW,EAAE,KAAK,gBAAgB,EAAC,CAAA"}
@@ -1,33 +1,25 @@
1
1
  import { NavList as PrimerNavList } from '@primer/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';
2
+ import type { NavListProps as PrimerNavListProps, NavListItemProps as PrimerNavListItemProps } from '@primer/react';
3
+ import { type ComponentProps, type PropsWithChildren } from 'react';
4
4
  import { type SxProp } from '../sx';
5
- type RefComponent<E extends HTMLElement, P> = React.ForwardRefExoticComponent<P & React.RefAttributes<E>>;
6
5
  type NavListProps = PropsWithChildren<PrimerNavListProps> & SxProp;
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;
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>>>;
30
23
  };
31
- declare const NavList: NavListCompound;
32
24
  export { NavList, type NavListProps };
33
25
  //# 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,EAE1C,wBAAwB,IAAI,8BAA8B,EAC1D,yBAAyB,IAAI,+BAA+B,EAC7D,MAAM,eAAe,CAAA;AACtB,OAAO,EAAa,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACxD,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,KAAK,YAAY,CAAC,CAAC,SAAS,WAAW,EAAE,CAAC,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;AAEzG,KAAK,YAAY,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,GAAG,MAAM,CAAA;AAQlE,QAAA,MAAM,WAAW;;8DAGf,CAAA;AAIF,QAAA,MAAM,YAAY;;;;;0DAGhB,CAAA;AAEF,KAAK,wBAAwB,GAAG,iBAAiB,CAAC,8BAA8B,CAAC,GAAG,MAAM,CAAA;AAE1F,QAAA,MAAM,mBAAmB,EAGnB,YAAY,CAAC,WAAW,EAAE,wBAAwB,CAAC,CAAA;AAEzD,KAAK,yBAAyB,GAAG,iBAAiB,CAAC,+BAA+B,CAAC,GAAG,MAAM,CAAA;AAE5F,QAAA,MAAM,oBAAoB,EAKrB,YAAY,CAAC,eAAe,EAAE,yBAAyB,CAAC,CAAA;AAE7D,KAAK,eAAe,GAAG,KAAK,CAAC,yBAAyB,CAAC,YAAY,GAAG,KAAK,CAAC,aAAa,CAAC,WA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K,CAAC,EAAE,CACpD,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,aAAa,CAAC,CAAC,CAC5E;oBAC+C,KAAK,CAAC,EAAE,CACtD,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,cAAc,CAAC,CAAC,CAC7E;oBAC+C,KAAK,CAAC,EAAE,CACtD,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,cAAc,CAAC,CAAC,CAC7E;kBAC2C,KAAK,CAAC,EAAE,CAClD,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,YAAY,CAAC,CAAC,CAC3E;iBACyC,KAAK,CAAC,EAAE,CAChD,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,WAAW,CAAC,CAAC,CAC1E;CACD,CAAA;AAEF,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import React, { type PropsWithChildren } from 'react';
2
- import type { PageLayoutProps as PrimerPageLayoutProps, PageLayoutContentProps as PrimerPageLayoutContentProps, PageLayoutHeaderProps as PrimerPageLayoutHeaderProps, PageLayoutPaneProps as PrimerPageLayoutPaneProps, PageLayoutFooterProps as PrimerPageLayoutFooterProps } from '@primer/react';
2
+ import type { PageLayoutProps as PrimerPageLayoutProps, PageLayoutContentProps as PrimerPageLayoutContentProps } from '@primer/react';
3
3
  import { type SxProp } from '../sx';
4
4
  type PageLayoutProps = PropsWithChildren<PrimerPageLayoutProps> & SxProp;
5
5
  declare const PageLayout: React.ForwardRefExoticComponent<PrimerPageLayoutProps & {
@@ -8,15 +8,11 @@ declare const PageLayout: React.ForwardRefExoticComponent<PrimerPageLayoutProps
8
8
  Content: React.ForwardRefExoticComponent<PrimerPageLayoutContentProps & {
9
9
  children?: React.ReactNode | undefined;
10
10
  } & SxProp & React.RefAttributes<HTMLDivElement>>;
11
- Header: React.ForwardRefExoticComponent<PrimerPageLayoutHeaderProps & {
11
+ Header: React.FC<React.PropsWithChildren<import("@primer/react").PageLayoutHeaderProps>>;
12
+ Pane: React.ForwardRefExoticComponent<import("@primer/react").PageLayoutPaneProps & {
12
13
  children?: React.ReactNode | undefined;
13
- } & SxProp & React.RefAttributes<HTMLDivElement>>;
14
- Pane: React.ForwardRefExoticComponent<PrimerPageLayoutPaneProps & {
15
- children?: React.ReactNode | undefined;
16
- } & SxProp & React.RefAttributes<HTMLDivElement>>;
17
- Footer: React.ForwardRefExoticComponent<PrimerPageLayoutFooterProps & {
18
- children?: React.ReactNode | undefined;
19
- } & SxProp & React.RefAttributes<HTMLDivElement>>;
14
+ } & React.RefAttributes<HTMLDivElement>>;
15
+ Footer: React.FC<React.PropsWithChildren<import("@primer/react").PageLayoutFooterProps>>;
20
16
  };
21
17
  export { PageLayout, type PageLayoutProps };
22
18
  //# sourceMappingURL=PageLayout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageLayout.d.ts","sourceRoot":"","sources":["../../src/components/PageLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAEnD,OAAO,KAAK,EACV,eAAe,IAAI,qBAAqB,EACxC,sBAAsB,IAAI,4BAA4B,EACtD,qBAAqB,IAAI,2BAA2B,EACpD,mBAAmB,IAAI,yBAAyB,EAChD,qBAAqB,IAAI,2BAA2B,EACrD,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAMrC,KAAK,eAAe,GAAG,iBAAiB,CAAC,qBAAqB,CAAC,GAAG,MAAM,CAAA;AAiCxE,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;CAKd,CAAA;AAEF,OAAO,EAAC,UAAU,EAAE,KAAK,eAAe,EAAC,CAAA"}
1
+ {"version":3,"file":"PageLayout.d.ts","sourceRoot":"","sources":["../../src/components/PageLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAEnD,OAAO,KAAK,EACV,eAAe,IAAI,qBAAqB,EACxC,sBAAsB,IAAI,4BAA4B,EACvD,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAMrC,KAAK,eAAe,GAAG,iBAAiB,CAAC,qBAAqB,CAAC,GAAG,MAAM,CAAA;AAaxE,QAAA,MAAM,UAAU;;;;;;;;;;;CAKd,CAAA;AAEF,OAAO,EAAC,UAAU,EAAE,KAAK,eAAe,EAAC,CAAA"}
@@ -50,14 +50,6 @@
50
50
  "UnderlinePanels"
51
51
  ],
52
52
  "types": [
53
- "ActionListDividerProps",
54
- "ActionListGroupProps",
55
- "ActionListItemProps",
56
- "ActionListLeadingVisualProps",
57
- "ActionListLinkItemProps",
58
- "ActionListProps",
59
- "ActionListTrailingActionProps",
60
- "ActionListTrailingVisualProps",
61
53
  "AutocompleteOverlayProps",
62
54
  "AvatarProps",
63
55
  "BetterSystemStyleObject",
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { ActionList } from '@primer/react';
1
2
  export { Box, type BoxProps } from './components/Box';
2
3
  export { Button } from '@primer/react';
3
4
  export { Details } from '@primer/react';
@@ -13,7 +14,6 @@ export { theme } from '@primer/react';
13
14
  export { themeGet } from '@primer/react';
14
15
  export { useColorSchemeVar } from '@primer/react';
15
16
  export { useTheme } from '@primer/react';
16
- export { ActionList, type ActionListProps, type ActionListItemProps, type ActionListLinkItemProps, type ActionListGroupProps, type ActionListDividerProps, type ActionListLeadingVisualProps, type ActionListTrailingVisualProps, 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';
@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KAAK,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAC/D,OAAO,EAAC,UAAU,EAAE,KAAK,eAAe,EAAC,MAAM,yBAAyB,CAAA;AACxE,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAC,MAAM,qBAAqB,CAAA;AAClF,OAAO,EAAC,IAAI,EAAE,KAAK,SAAS,EAAC,MAAM,mBAAmB,CAAA;AACtD,OAAO,EACL,QAAQ,EACR,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,GACxB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAC,YAAY,EAAE,KAAK,iBAAiB,EAAC,MAAM,2BAA2B,CAAA;AAC9E,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAC/D,OAAO,EAAC,KAAK,EAAE,KAAK,UAAU,EAAC,MAAM,oBAAoB,CAAA;AACzD,OAAO,EAAC,QAAQ,EAAE,KAAK,aAAa,EAAC,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAC,YAAY,EAAE,KAAK,iBAAiB,EAAE,KAAK,qBAAqB,EAAC,MAAM,2BAA2B,CAAA;AAE1G,OAAO,EAAC,EAAE,EAAE,KAAK,MAAM,EAAC,MAAM,MAAM,CAAA;AAEpC,YAAY,EAAC,uBAAuB,EAAC,MAAM,gBAAgB,CAAA"}
package/dist/index.js CHANGED
@@ -1,87 +1,13 @@
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';
3
- import React, { forwardRef } from 'react';
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, 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';
4
3
  import styled from 'styled-components';
4
+ import React, { forwardRef } from 'react';
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 ActionListTrailingAction = styled(ActionList$1.TrailingAction).withConfig({
36
- shouldForwardProp: prop => prop !== 'sx'
37
- }).withConfig({
38
- displayName: "ActionList__ActionListTrailingAction",
39
- componentId: "sc-hw2362-2"
40
- })(["", ""], sx);
41
- const ActionListItem = /*#__PURE__*/forwardRef(function Item(props, ref) {
42
- return /*#__PURE__*/jsx(Box, {
43
- ref: ref,
44
- as: ActionList$1.Item,
45
- ...props
46
- });
47
- });
48
- function ActionListGroup(props) {
49
- return /*#__PURE__*/jsx(Box, {
50
- as: ActionList$1.Group,
51
- ...props
52
- });
53
- }
54
- function ActionListDivider(props) {
55
- return /*#__PURE__*/jsx(Box, {
56
- as: ActionList$1.Divider,
57
- ...props
58
- });
59
- }
60
- function ActionListLeadingVisual(props) {
61
- return /*#__PURE__*/jsx(Box, {
62
- as: ActionList$1.LeadingVisual,
63
- ...props
64
- });
65
- }
66
- function ActionListTrailingVisual(props) {
67
- return /*#__PURE__*/jsx(Box, {
68
- as: ActionList$1.TrailingVisual,
69
- ...props
70
- });
71
- }
72
- const ActionList = Object.assign(ActionListImpl, {
73
- Item: ActionListItem,
74
- LinkItem: ActionListLinkItem,
75
- Group: ActionListGroup,
76
- GroupHeading: ActionList$1.GroupHeading,
77
- Divider: ActionListDivider,
78
- Description: ActionList$1.Description,
79
- LeadingVisual: ActionListLeadingVisual,
80
- TrailingVisual: ActionListTrailingVisual,
81
- Heading: ActionList$1.Heading,
82
- TrailingAction: ActionListTrailingAction
83
- });
84
-
85
11
  const ActionMenuOverlay = styled(ActionMenu$1.Overlay).withConfig({
86
12
  shouldForwardProp: prop => prop !== 'sx'
87
13
  }).withConfig({
@@ -218,28 +144,10 @@ const FormControlImpl = /*#__PURE__*/forwardRef(function FormControl(props, ref)
218
144
  ...props
219
145
  });
220
146
  });
221
- const FormControlCaption = props => {
222
- return /*#__PURE__*/jsx(Box, {
223
- as: FormControl$1.Caption,
224
- ...props
225
- });
226
- };
227
- const FormControlValidation = props => {
228
- return /*#__PURE__*/jsx(Box, {
229
- as: FormControl$1.Validation,
230
- ...props
231
- });
232
- };
233
- const FormControlLeadingVisual = props => {
234
- return /*#__PURE__*/jsx(Box, {
235
- as: FormControl$1.LeadingVisual,
236
- ...props
237
- });
238
- };
239
147
  const FormControl = Object.assign(FormControlImpl, {
240
- Caption: FormControlCaption,
241
- LeadingVisual: FormControlLeadingVisual,
242
- Validation: FormControlValidation,
148
+ Caption: FormControl$1.Caption,
149
+ LeadingVisual: FormControl$1.LeadingVisual,
150
+ Validation: FormControl$1.Validation,
243
151
  Label: FormControl$1.Label
244
152
  });
245
153
 
@@ -365,31 +273,18 @@ const NavListGroup = /*#__PURE__*/forwardRef(function NavListGroup(props, ref) {
365
273
  ...props
366
274
  });
367
275
  });
368
- const NavListGroupHeading = /*#__PURE__*/forwardRef(function NavListGroupHeading(props, ref) {
369
- // @ts-expect-error - PrimerNavList.GroupHeading is not recognized as a valid component type
370
- return /*#__PURE__*/jsx(Box, {
371
- as: NavList$1.GroupHeading,
372
- ref: ref,
373
- ...props
374
- });
375
- });
376
- const NavListLeadingVisual = /*#__PURE__*/forwardRef(function NavListLeadingVisual(props, ref) {
377
- // @ts-expect-error - PrimerNavList.LeadingVisual is not recognized as a valid component type
378
- return /*#__PURE__*/jsx(Box, {
379
- as: NavList$1.LeadingVisual,
380
- ref: ref,
381
- ...props
382
- });
383
- });
384
276
  const NavList = Object.assign(NavListImpl, {
277
+ // Wrapped components that need sx support added back in
385
278
  Item: NavListItem,
386
279
  Group: NavListGroup,
387
- GroupHeading: NavListGroupHeading,
388
- LeadingVisual: NavListLeadingVisual,
280
+ // Re-exporting others directly
281
+ // TODO: try to remove typecasts to work around "non-portable types" TS error
389
282
  SubNav: NavList$1.SubNav,
390
283
  Divider: NavList$1.Divider,
284
+ LeadingVisual: NavList$1.LeadingVisual,
391
285
  TrailingVisual: NavList$1.TrailingVisual,
392
286
  TrailingAction: NavList$1.TrailingAction,
287
+ GroupHeading: NavList$1.GroupHeading,
393
288
  GroupExpand: NavList$1.GroupExpand
394
289
  });
395
290
 
@@ -419,34 +314,11 @@ const PageLayoutContent = /*#__PURE__*/React.forwardRef((props, ref) => {
419
314
  ...props
420
315
  });
421
316
  });
422
- const PageLayoutHeader = /*#__PURE__*/React.forwardRef((props, ref) => {
423
- // @ts-expect-error - PrimerPageLayout.Header is not recognized as a valid component type
424
- return /*#__PURE__*/jsx(Wrapper, {
425
- as: PageLayout$1.Header,
426
- ref: ref,
427
- ...props
428
- });
429
- });
430
- const PageLayoutPane = /*#__PURE__*/React.forwardRef((props, ref) => {
431
- return /*#__PURE__*/jsx(Wrapper, {
432
- as: PageLayout$1.Pane,
433
- ref: ref,
434
- ...props
435
- });
436
- });
437
- const PageLayoutFooter = /*#__PURE__*/React.forwardRef((props, ref) => {
438
- // @ts-expect-error - PrimerPageLayout.Footer is not recognized as a valid component type
439
- return /*#__PURE__*/jsx(Wrapper, {
440
- as: PageLayout$1.Footer,
441
- ref: ref,
442
- ...props
443
- });
444
- });
445
317
  const PageLayout = Object.assign(PageLayoutImpl, {
446
318
  Content: PageLayoutContent,
447
- Header: PageLayoutHeader,
448
- Pane: PageLayoutPane,
449
- Footer: PageLayoutFooter
319
+ Header: PageLayout$1.Header,
320
+ Pane: PageLayout$1.Pane,
321
+ Footer: PageLayout$1.Footer
450
322
  });
451
323
 
452
324
  const RadioGroupImpl = props => {
@@ -689,4 +561,4 @@ const UnderlineNav = Object.assign(UnderlineNavImpl, {
689
561
  Item: UnderlineNavItem
690
562
  });
691
563
 
692
- 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 };
564
+ 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/styled-react",
3
- "version": "0.0.0-20251002230558",
3
+ "version": "0.0.0-20251003001401",
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-20251002230558",
33
+ "@primer/react": "0.0.0-20251003001401",
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-20251002230558",
49
+ "@primer/react": "0.0.0-20251003001401",
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,36 +0,0 @@
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 ActionListLeadingVisualProps as PrimerActionListLeadingVisualProps, type ActionListTrailingVisualProps as PrimerActionListTrailingVisualProps } from '@primer/react';
3
- import { type SxProp } from '../sx';
4
- import type { ForwardRefComponent } from '../polymorphic';
5
- type PrimerActionListTrailingActionProps = React.ComponentProps<typeof PrimerActionList.TrailingAction>;
6
- export type ActionListProps<As extends React.ElementType = 'ul'> = PrimerActionListProps<As> & SxProp;
7
- export type ActionListItemProps = React.PropsWithChildren<PrimerActionListItemProps & SxProp>;
8
- export type ActionListLinkItemProps = PrimerActionListLinkItemProps & SxProp;
9
- export type ActionListGroupProps = React.PropsWithChildren<PrimerActionListGroupProps & SxProp>;
10
- export type ActionListDividerProps = React.PropsWithChildren<PrimerActionListDividerProps & SxProp>;
11
- export type ActionListLeadingVisualProps = React.PropsWithChildren<PrimerActionListLeadingVisualProps & SxProp>;
12
- export type ActionListTrailingVisualProps = React.PropsWithChildren<PrimerActionListTrailingVisualProps & SxProp>;
13
- export type ActionListTrailingActionProps = PrimerActionListTrailingActionProps & SxProp;
14
- declare const ActionListImpl: React.ForwardRefExoticComponent<Omit<ActionListProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<unknown>>;
15
- declare const ActionListLinkItem: ForwardRefComponent<'a', ActionListLinkItemProps>;
16
- type TrailingActionElements = 'button' | 'a';
17
- declare const ActionListTrailingAction: ForwardRefComponent<TrailingActionElements, ActionListTrailingActionProps>;
18
- declare const ActionListItem: React.ForwardRefExoticComponent<Omit<ActionListItemProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
19
- declare function ActionListGroup(props: ActionListGroupProps): React.JSX.Element;
20
- declare function ActionListDivider(props: ActionListDividerProps): React.JSX.Element;
21
- declare function ActionListLeadingVisual(props: ActionListLeadingVisualProps): React.JSX.Element;
22
- declare function ActionListTrailingVisual(props: ActionListTrailingVisualProps): React.JSX.Element;
23
- export declare const ActionList: typeof ActionListImpl & {
24
- Item: typeof ActionListItem;
25
- LinkItem: typeof ActionListLinkItem;
26
- Group: typeof ActionListGroup;
27
- GroupHeading: typeof PrimerActionList.GroupHeading;
28
- Divider: typeof ActionListDivider;
29
- Description: typeof PrimerActionList.Description;
30
- LeadingVisual: typeof ActionListLeadingVisual;
31
- TrailingVisual: typeof ActionListTrailingVisual;
32
- Heading: typeof PrimerActionList.Heading;
33
- TrailingAction: typeof ActionListTrailingAction;
34
- };
35
- export {};
36
- //# sourceMappingURL=ActionList.d.ts.map
@@ -1 +0,0 @@
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,IAAI,qBAAqB,EAC7C,KAAK,mBAAmB,IAAI,yBAAyB,EACrD,KAAK,uBAAuB,IAAI,6BAA6B,EAC7D,KAAK,oBAAoB,IAAI,0BAA0B,EACvD,KAAK,sBAAsB,IAAI,4BAA4B,EAC3D,KAAK,4BAA4B,IAAI,kCAAkC,EACvE,KAAK,6BAA6B,IAAI,mCAAmC,EAC1E,MAAM,eAAe,CAAA;AACtB,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AACrC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAGvD,KAAK,mCAAmC,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,cAAc,CAAC,CAAA;AAEvG,MAAM,MAAM,eAAe,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,IAAI,IAAI,qBAAqB,CAAC,EAAE,CAAC,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