@primer/styled-react 0.0.0-20251009221027 → 0.0.0-20251009221036

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.
Files changed (35) hide show
  1. package/dist/{Tooltip-DIHgr01r.js → PageHeader-DCDIR2C1.js} +2 -10
  2. package/dist/Tooltip-YuSlJ5b_.js +20 -0
  3. package/dist/components/{deprecated/DialogV1.d.ts → DialogV1.d.ts} +2 -2
  4. package/dist/components/DialogV1.d.ts.map +1 -0
  5. package/dist/components/NavList.d.ts +19 -27
  6. package/dist/components/NavList.d.ts.map +1 -1
  7. package/dist/components/{deprecated/TabNav.d.ts → TabNav.d.ts} +1 -1
  8. package/dist/components/TabNav.d.ts.map +1 -0
  9. package/dist/components/Tooltip.d.ts +4 -0
  10. package/dist/components/Tooltip.d.ts.map +1 -1
  11. package/dist/components.json +0 -21
  12. package/dist/deprecated.d.ts +4 -5
  13. package/dist/deprecated.d.ts.map +1 -1
  14. package/dist/deprecated.js +6 -101
  15. package/dist/experimental.d.ts +1 -1
  16. package/dist/experimental.d.ts.map +1 -1
  17. package/dist/experimental.js +6 -29
  18. package/dist/index.d.ts +2 -3
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +12 -154
  21. package/package.json +3 -3
  22. package/dist/components/ActionList.d.ts +0 -36
  23. package/dist/components/ActionList.d.ts.map +0 -1
  24. package/dist/components/DataTable.d.ts +0 -11
  25. package/dist/components/DataTable.d.ts.map +0 -1
  26. package/dist/components/PageLayout.d.ts +0 -18
  27. package/dist/components/PageLayout.d.ts.map +0 -1
  28. package/dist/components/deprecated/ActionList.d.ts +0 -23
  29. package/dist/components/deprecated/ActionList.d.ts.map +0 -1
  30. package/dist/components/deprecated/DialogV1.d.ts.map +0 -1
  31. package/dist/components/deprecated/Octicon.d.ts +0 -17
  32. package/dist/components/deprecated/Octicon.d.ts.map +0 -1
  33. package/dist/components/deprecated/TabNav.d.ts.map +0 -1
  34. package/dist/components/deprecated/Tooltip.d.ts +0 -13
  35. package/dist/components/deprecated/Tooltip.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- import { Dialog as Dialog$1, Box, PageHeader as PageHeader$1, sx, Tooltip as Tooltip$1 } from '@primer/react';
1
+ import { Dialog as Dialog$1, Box, PageHeader as PageHeader$1, sx } from '@primer/react';
2
2
  import React, { forwardRef } from 'react';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import styled from 'styled-components';
@@ -141,12 +141,4 @@ const PageHeader = Object.assign(PageHeaderImpl, {
141
141
  TrailingAction: PageHeader$1.TrailingAction
142
142
  });
143
143
 
144
- const Tooltip = /*#__PURE__*/forwardRef(function Tooltip(props, ref) {
145
- return /*#__PURE__*/jsx(Box, {
146
- as: Tooltip$1,
147
- ref: ref,
148
- ...props
149
- });
150
- });
151
-
152
- export { Dialog as D, PageHeader as P, Tooltip as T };
144
+ export { Dialog as D, PageHeader as P };
@@ -0,0 +1,20 @@
1
+ import { Box, Tooltip as Tooltip$1 } from '@primer/react';
2
+ import { Tooltip as Tooltip$2 } from '@primer/react/deprecated';
3
+ import { forwardRef } from 'react';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ const Tooltip = /*#__PURE__*/forwardRef(function Tooltip(props, ref) {
7
+ return /*#__PURE__*/jsx(Box, {
8
+ as: Tooltip$1,
9
+ ref: ref,
10
+ ...props
11
+ });
12
+ });
13
+ function DeprecatedTooltip(props) {
14
+ return /*#__PURE__*/jsx(Box, {
15
+ as: Tooltip$2,
16
+ ...props
17
+ });
18
+ }
19
+
20
+ export { DeprecatedTooltip as D, Tooltip as T };
@@ -1,6 +1,6 @@
1
1
  import type { DialogProps as PrimerDialogProps, DialogHeaderProps as PrimerDialogHeaderProps } from '@primer/react/deprecated';
2
- import type { SxProp } from '../../sx';
3
- import type { ForwardRefComponent } from '../../polymorphic';
2
+ import type { SxProp } from '../sx';
3
+ import type { ForwardRefComponent } from '../polymorphic';
4
4
  type DialogProps = PrimerDialogProps & SxProp;
5
5
  type DialogHeaderProps = PrimerDialogHeaderProps & SxProp;
6
6
  declare const Dialog: ForwardRefComponent<"div", DialogProps> & {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DialogV1.d.ts","sourceRoot":"","sources":["../../src/components/DialogV1.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,WAAW,IAAI,iBAAiB,EAChC,iBAAiB,IAAI,uBAAuB,EAC7C,MAAM,0BAA0B,CAAA;AAEjC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,KAAK,WAAW,GAAG,iBAAiB,GAAG,MAAM,CAAA;AAU7C,KAAK,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAUzD,QAAA,MAAM,MAAM;;CAEV,CAAA;AAEF,OAAO,EAAC,MAAM,EAAC,CAAA;AACf,YAAY,EAAC,WAAW,EAAE,iBAAiB,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,CAA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,OAAO;;;;;;;;;;YAOqB,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;aAC5E,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC;mBACnE,KAAK,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 type { TabNavProps as PrimerTabNavProps, TabNavLinkProps as PrimerTabNavLinkProps } from '@primer/react/deprecated';
2
- import { type SxProp } from '../../sx';
2
+ import { type SxProp } from '../sx';
3
3
  type TabNavProps = PrimerTabNavProps & SxProp;
4
4
  type TabNavLinkProps = PrimerTabNavLinkProps & SxProp;
5
5
  declare const TabNav: (({ as, ...props }: TabNavProps) => import("react").JSX.Element) & {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabNav.d.ts","sourceRoot":"","sources":["../../src/components/TabNav.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,WAAW,IAAI,iBAAiB,EAAE,eAAe,IAAI,qBAAqB,EAAC,MAAM,0BAA0B,CAAA;AACxH,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAIrC,KAAK,WAAW,GAAG,iBAAiB,GAAG,MAAM,CAAA;AAC7C,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAsBrD,QAAA,MAAM,MAAM,sBAdwB,WAAW;;CAgB7C,CAAA;AAEF,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAC,CAAA"}
@@ -1,6 +1,10 @@
1
1
  import { type TooltipProps as PrimerTooltipProps, type SxProp } from '@primer/react';
2
+ import { type TooltipProps as PrimerDeprecatedTooltipProps } from '@primer/react/deprecated';
2
3
  import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
3
4
  type TooltipProps = PrimerTooltipProps & SxProp;
4
5
  declare const Tooltip: ForwardRefExoticComponent<TooltipProps & RefAttributes<HTMLDivElement>>;
5
6
  export { Tooltip, type TooltipProps };
7
+ type DeprecatedTooltipProps = PrimerDeprecatedTooltipProps & SxProp;
8
+ declare function DeprecatedTooltip(props: DeprecatedTooltipProps): import("react").JSX.Element;
9
+ export { DeprecatedTooltip, type DeprecatedTooltipProps };
6
10
  //# sourceMappingURL=Tooltip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/components/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAE,KAAK,MAAM,EAAC,MAAM,eAAe,CAAA;AAE5G,OAAO,EAAa,KAAK,yBAAyB,EAAE,KAAK,aAAa,EAAC,MAAM,OAAO,CAAA;AAEpF,KAAK,YAAY,GAAG,kBAAkB,GAAG,MAAM,CAAA;AAE/C,QAAA,MAAM,OAAO,EAAE,yBAAyB,CAAC,YAAY,GAAG,aAAa,CAAC,cAAc,CAAC,CAKnF,CAAA;AAEF,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA"}
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/components/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAE,KAAK,MAAM,EAAC,MAAM,eAAe,CAAA;AAC5G,OAAO,EAEL,KAAK,YAAY,IAAI,4BAA4B,EAClD,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EAAa,KAAK,yBAAyB,EAAE,KAAK,aAAa,EAAC,MAAM,OAAO,CAAA;AAEpF,KAAK,YAAY,GAAG,kBAAkB,GAAG,MAAM,CAAA;AAE/C,QAAA,MAAM,OAAO,EAAE,yBAAyB,CAAC,YAAY,GAAG,aAAa,CAAC,cAAc,CAAC,CAKnF,CAAA;AAEF,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA;AAEnC,KAAK,sBAAsB,GAAG,4BAA4B,GAAG,MAAM,CAAA;AAEnE,iBAAS,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,+BAEvD;AACD,OAAO,EAAC,iBAAiB,EAAE,KAAK,sBAAsB,EAAC,CAAA"}
@@ -4,7 +4,6 @@
4
4
  "ActionMenu",
5
5
  "Autocomplete",
6
6
  "Avatar",
7
- "BaseStyles",
8
7
  "Box",
9
8
  "Breadcrumb",
10
9
  "Breadcrumbs",
@@ -51,14 +50,6 @@
51
50
  "UnderlinePanels"
52
51
  ],
53
52
  "types": [
54
- "ActionListDividerProps",
55
- "ActionListGroupProps",
56
- "ActionListItemProps",
57
- "ActionListLeadingVisualProps",
58
- "ActionListLinkItemProps",
59
- "ActionListProps",
60
- "ActionListTrailingActionProps",
61
- "ActionListTrailingVisualProps",
62
53
  "AutocompleteOverlayProps",
63
54
  "AvatarProps",
64
55
  "BetterSystemStyleObject",
@@ -68,7 +59,6 @@
68
59
  "CheckboxGroupProps",
69
60
  "CheckboxProps",
70
61
  "CounterLabelProps",
71
- "DataTableContainerProps",
72
62
  "DialogHeaderProps",
73
63
  "DialogProps",
74
64
  "HeaderProps",
@@ -76,11 +66,9 @@
76
66
  "LinkButtonProps",
77
67
  "LinkProps",
78
68
  "NavListProps",
79
- "OcticonProps",
80
69
  "PageHeaderActionsProps",
81
70
  "PageHeaderProps",
82
71
  "PageHeaderTitleProps",
83
- "PageLayoutProps",
84
72
  "RadioGroupProps",
85
73
  "RelativeTimeProps",
86
74
  "SegmentedControlButtonProps",
@@ -91,15 +79,6 @@
91
79
  "SubNavLinkProps",
92
80
  "SubNavProps",
93
81
  "SxProp",
94
- "TableActionsProps",
95
- "TableBodyProps",
96
- "TableCellProps",
97
- "TableHeaderProps",
98
- "TableHeadProps",
99
- "TableProps",
100
- "TableRowProps",
101
- "TableSubtitleProps",
102
- "TableTitleProps",
103
82
  "TabNavLinkProps",
104
83
  "TabNavProps",
105
84
  "TextInputProps",
@@ -1,6 +1,5 @@
1
- export { TabNav, type TabNavProps, type TabNavLinkProps } from './components/deprecated/TabNav';
2
- export { Dialog, type DialogProps, type DialogHeaderProps } from './components/deprecated/DialogV1';
3
- export { Octicon, type OcticonProps } from './components/deprecated/Octicon';
4
- export { Tooltip, type TooltipProps } from './components/deprecated/Tooltip';
5
- export { ActionList, type ActionListProps, type ActionListItemProps, type ActionListGroupProps, } from './components/deprecated/ActionList';
1
+ export { TabNav, type TabNavProps, type TabNavLinkProps } from './components/TabNav';
2
+ export { Dialog, type DialogProps, type DialogHeaderProps } from './components/DialogV1';
3
+ export { Octicon } from '@primer/react/deprecated';
4
+ export { DeprecatedTooltip as Tooltip, type DeprecatedTooltipProps as TooltipProps } from './components/Tooltip';
6
5
  //# sourceMappingURL=deprecated.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deprecated.d.ts","sourceRoot":"","sources":["../src/deprecated.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAC,MAAM,gCAAgC,CAAA;AAC7F,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,iBAAiB,EAAC,MAAM,kCAAkC,CAAA;AACjG,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,MAAM,iCAAiC,CAAA;AAC1E,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,MAAM,iCAAiC,CAAA;AAC1E,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,GAC1B,MAAM,oCAAoC,CAAA"}
1
+ {"version":3,"file":"deprecated.d.ts","sourceRoot":"","sources":["../src/deprecated.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAC,MAAM,qBAAqB,CAAA;AAClF,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,iBAAiB,EAAC,MAAM,uBAAuB,CAAA;AACtF,OAAO,EAAC,OAAO,EAAC,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAC,iBAAiB,IAAI,OAAO,EAAE,KAAK,sBAAsB,IAAI,YAAY,EAAC,MAAM,sBAAsB,CAAA"}
@@ -1,14 +1,16 @@
1
- import { TabNav as TabNav$1, Dialog as Dialog$1, Octicon as Octicon$1, Tooltip as Tooltip$1, ActionList as ActionList$1 } from '@primer/react/deprecated';
1
+ import { TabNav as TabNav$1, Dialog as Dialog$1 } from '@primer/react/deprecated';
2
+ export { Octicon } from '@primer/react/deprecated';
2
3
  import { sx, Box } from '@primer/react';
3
4
  import styled from 'styled-components';
4
5
  import { forwardRef } from 'react';
5
6
  import { jsx } from 'react/jsx-runtime';
7
+ export { D as Tooltip } from './Tooltip-YuSlJ5b_.js';
6
8
 
7
9
  const StyledTabNav = styled(TabNav$1).withConfig({
8
10
  shouldForwardProp: prop => prop !== 'sx'
9
11
  }).withConfig({
10
12
  displayName: "TabNav__StyledTabNav",
11
- componentId: "sc-13kad3t-0"
13
+ componentId: "sc-v7az9x-0"
12
14
  })(["", ""], sx);
13
15
  const TabNavImpl = ({
14
16
  as,
@@ -25,7 +27,7 @@ const StyledTabNavLink = styled(TabNav$1.Link).withConfig({
25
27
  shouldForwardProp: prop => prop !== 'sx'
26
28
  }).withConfig({
27
29
  displayName: "TabNav__StyledTabNavLink",
28
- componentId: "sc-13kad3t-1"
30
+ componentId: "sc-v7az9x-1"
29
31
  })(["", ""], sx);
30
32
  const TabNavLink = /*#__PURE__*/forwardRef(({
31
33
  as,
@@ -79,101 +81,4 @@ const Dialog = Object.assign(DialogImpl, {
79
81
  Header: DialogHeader
80
82
  });
81
83
 
82
- /**
83
- * @deprecated Use the icon component directly from `@primer/octicons-react` instead
84
- */
85
- const StyledOcticon = styled(Octicon$1).withConfig({
86
- shouldForwardProp(prop) {
87
- return prop !== 'sx';
88
- }
89
- }).withConfig({
90
- displayName: "Octicon__StyledOcticon",
91
- componentId: "sc-jtj3m8-0"
92
- })(["", ""], ({
93
- color,
94
- sx: sxProp
95
- }) => sx({
96
- sx: {
97
- color,
98
- ...sxProp
99
- }
100
- }));
101
- const Octicon = /*#__PURE__*/forwardRef(({
102
- as,
103
- ...props
104
- }, ref) => {
105
- return /*#__PURE__*/jsx(StyledOcticon, {
106
- ...props,
107
- ...(as ? {
108
- forwardedAs: as
109
- } : {}),
110
- ref: ref
111
- });
112
- });
113
-
114
- const StyledTooltip = styled(Tooltip$1).withConfig({
115
- shouldForwardProp: prop => prop !== 'sx'
116
- }).withConfig({
117
- displayName: "Tooltip__StyledTooltip",
118
- componentId: "sc-145jcib-0"
119
- })(["", ""], sx);
120
- const TooltipImpl = /*#__PURE__*/forwardRef(function Tooltip({
121
- as,
122
- ...props
123
- }, ref) {
124
- return /*#__PURE__*/jsx(StyledTooltip, {
125
- ...props,
126
- ...(as ? {
127
- forwardedAs: as
128
- } : {}),
129
- ref: ref
130
- });
131
- });
132
- const Tooltip = TooltipImpl;
133
-
134
- // Preserve static properties from the original component
135
- Tooltip.alignments = Tooltip$1.alignments;
136
- Tooltip.directions = Tooltip$1.directions;
137
-
138
- const ActionListImpl = /*#__PURE__*/forwardRef(function ActionList(props, ref) {
139
- return /*#__PURE__*/jsx(Box, {
140
- as: ActionList$1,
141
- ref: ref,
142
- ...props
143
- });
144
- });
145
- const StyledActionListItem = styled(ActionList$1.Item).withConfig({
146
- shouldForwardProp: prop => prop !== 'sx'
147
- }).withConfig({
148
- displayName: "ActionList__StyledActionListItem",
149
- componentId: "sc-1ugfmds-0"
150
- })(["", ""], sx);
151
- const ActionListItem = /*#__PURE__*/forwardRef(({
152
- as,
153
- ...props
154
- }, ref) => /*#__PURE__*/jsx(StyledActionListItem, {
155
- ...props,
156
- ...(as ? {
157
- forwardedAs: as
158
- } : {}),
159
- ref: ref
160
- }));
161
- function ActionListGroup(props) {
162
- return /*#__PURE__*/jsx(Box, {
163
- as: ActionList$1.Group,
164
- ...props
165
- });
166
- }
167
- function ActionListDivider(props) {
168
- return /*#__PURE__*/jsx(Box, {
169
- as: ActionList$1.Divider,
170
- ...props
171
- });
172
- }
173
- const ActionList = Object.assign(ActionListImpl, {
174
- Item: ActionListItem,
175
- Group: ActionListGroup,
176
- Divider: ActionListDivider
177
- });
178
-
179
- export { ActionList, Dialog, Octicon, TabNav, Tooltip };
84
+ export { Dialog, TabNav };
@@ -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,9 +1,12 @@
1
- export { D as Dialog, P as PageHeader, T as Tooltip } from './Tooltip-DIHgr01r.js';
2
- import { UnderlinePanels as UnderlinePanels$1, Table as Table$1 } from '@primer/react/experimental';
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';
3
5
  import styled from 'styled-components';
4
6
  import { sx } from '@primer/react';
5
7
  import { jsx } from 'react/jsx-runtime';
6
8
  import 'react';
9
+ import '@primer/react/deprecated';
7
10
 
8
11
  const StyledUnderlinePanels = styled(UnderlinePanels$1).withConfig({
9
12
  shouldForwardProp: prop => prop !== 'sx'
@@ -26,30 +29,4 @@ const UnderlinePanels = Object.assign(UnderlinePanelsImpl, {
26
29
  Panel: UnderlinePanels$1.Panel
27
30
  });
28
31
 
29
- const {
30
- Container: PrimerDataTableContainer,
31
- ...rest
32
- } = Table$1;
33
- const StyleDataTableContainer = styled(PrimerDataTableContainer).withConfig({
34
- shouldForwardProp: prop => prop !== 'sx'
35
- }).withConfig({
36
- displayName: "DataTable__StyleDataTableContainer",
37
- componentId: "sc-qy1ey2-0"
38
- })(["", ""], sx);
39
- function DataTableContainer({
40
- as,
41
- ...rest
42
- }) {
43
- return /*#__PURE__*/jsx(StyleDataTableContainer, {
44
- ...rest,
45
- ...(as ? {
46
- forwardedAs: as
47
- } : {})
48
- });
49
- }
50
- const Table = Object.assign(Table$1, {
51
- Container: DataTableContainer,
52
- ...rest
53
- });
54
-
55
- export { Table, UnderlinePanels };
32
+ export { UnderlinePanels };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,11 @@
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';
4
5
  export { FormControl } from '@primer/react';
5
6
  export { IconButton } from '@primer/react';
6
7
  export { ProgressBar } from '@primer/react';
8
+ export { PageLayout } from '@primer/react';
7
9
  export { Select } from '@primer/react';
8
10
  export { Textarea } from '@primer/react';
9
11
  export { TextInput } from '@primer/react';
@@ -14,8 +16,6 @@ export { theme } from '@primer/react';
14
16
  export { themeGet } from '@primer/react';
15
17
  export { useColorSchemeVar } from '@primer/react';
16
18
  export { useTheme } from '@primer/react';
17
- export { BaseStyles } from '@primer/react';
18
- export { ActionList, type ActionListProps, type ActionListItemProps, type ActionListLinkItemProps, type ActionListGroupProps, type ActionListDividerProps, type ActionListLeadingVisualProps, type ActionListTrailingVisualProps, type ActionListTrailingActionProps, } from './components/ActionList';
19
19
  export { ActionMenu } from './components/ActionMenu';
20
20
  export { Autocomplete, type AutocompleteOverlayProps } from './components/Autocomplete';
21
21
  export { Avatar, type AvatarProps } from './components/Avatar';
@@ -33,7 +33,6 @@ export { Link, type LinkProps } from './components/Link';
33
33
  export { LinkButton, type LinkButtonProps } from './components/LinkButton';
34
34
  export { NavList, type NavListProps } from './components/NavList';
35
35
  export { Overlay } from './components/Overlay';
36
- export { PageLayout, type PageLayoutProps } from './components/PageLayout';
37
36
  export { PageHeader, type PageHeaderProps, type PageHeaderActionsProps, type PageHeaderTitleProps, } from './components/PageHeader';
38
37
  export { RadioGroup, type RadioGroupProps } from './components/RadioGroup';
39
38
  export { RelativeTime, type RelativeTimeProps } from './components/RelativeTime';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAE,KAAK,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAA;AACpC,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAA;AACrC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAA;AACzC,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AACx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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,107 +1,11 @@
1
- import { ActionList as ActionList$1, sx, ActionMenu as ActionMenu$1, 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, 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, Token as Token$1, Truncate as Truncate$1, UnderlineNav as UnderlineNav$1 } from '@primer/react';
2
- export { BaseStyles, Box, Button, Details, FormControl, 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, 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, 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';
4
3
  import styled from 'styled-components';
4
+ import { forwardRef } from 'react';
5
5
  import { jsx } from 'react/jsx-runtime';
6
- export { D as Dialog, P as PageHeader, T as Tooltip } from './Tooltip-DIHgr01r.js';
7
-
8
- const StyledActionList = styled(ActionList$1).withConfig({
9
- shouldForwardProp: prop => prop !== 'sx'
10
- }).withConfig({
11
- displayName: "ActionList__StyledActionList",
12
- componentId: "sc-hw2362-0"
13
- })(["", ""], sx);
14
- const ActionListImpl = /*#__PURE__*/React.forwardRef(function ActionListImpl({
15
- as,
16
- ...rest
17
- }, ref) {
18
- return /*#__PURE__*/jsx(StyledActionList, {
19
- ref: ref,
20
- ...rest,
21
- ...(as ? {
22
- forwardedAs: as
23
- } : {})
24
- });
25
- });
26
- const ActionListLinkItem = styled(ActionList$1.LinkItem).withConfig({
27
- shouldForwardProp: prop => prop !== 'sx'
28
- }).withConfig({
29
- displayName: "ActionList__ActionListLinkItem",
30
- componentId: "sc-hw2362-1"
31
- })(["", ""], sx);
32
- const StyledActionListTrailingAction = styled(ActionList$1.TrailingAction).withConfig({
33
- shouldForwardProp: prop => prop !== 'sx'
34
- }).withConfig({
35
- displayName: "ActionList__StyledActionListTrailingAction",
36
- componentId: "sc-hw2362-2"
37
- })(["", ""], sx);
38
- const ActionListTrailingAction = /*#__PURE__*/React.forwardRef((props, ref) => {
39
- const {
40
- as,
41
- ...rest
42
- } = props;
43
- return /*#__PURE__*/jsx(StyledActionListTrailingAction, {
44
- ...rest,
45
- ...(as ? {
46
- forwardedAs: as
47
- } : {}),
48
- ref: ref
49
- });
50
- });
51
- const StyledActionListItem = styled(ActionList$1.Item).withConfig({
52
- shouldForwardProp: prop => prop !== 'sx'
53
- }).withConfig({
54
- displayName: "ActionList__StyledActionListItem",
55
- componentId: "sc-hw2362-3"
56
- })(["", ""], sx);
57
- const ActionListItem = /*#__PURE__*/React.forwardRef(({
58
- children,
59
- as,
60
- ...props
61
- }, ref) => /*#__PURE__*/jsx(StyledActionListItem, {
62
- ref: ref,
63
- ...props,
64
- ...(as ? {
65
- forwardedAs: as
66
- } : {}),
67
- children: children
68
- }));
69
- const ActionListGroup = styled(ActionList$1.Group).withConfig({
70
- shouldForwardProp: prop => prop !== 'sx'
71
- }).withConfig({
72
- displayName: "ActionList__ActionListGroup",
73
- componentId: "sc-hw2362-4"
74
- })(["", ""], sx);
75
- const ActionListDivider = styled(ActionList$1.Divider).withConfig({
76
- shouldForwardProp: prop => prop !== 'sx'
77
- }).withConfig({
78
- displayName: "ActionList__ActionListDivider",
79
- componentId: "sc-hw2362-5"
80
- })(["", ""], sx);
81
- const ActionListLeadingVisual = styled(ActionList$1.LeadingVisual).withConfig({
82
- shouldForwardProp: prop => prop !== 'sx'
83
- }).withConfig({
84
- displayName: "ActionList__ActionListLeadingVisual",
85
- componentId: "sc-hw2362-6"
86
- })(["", ""], sx);
87
- const ActionListTrailingVisual = styled(ActionList$1.TrailingVisual).withConfig({
88
- shouldForwardProp: prop => prop !== 'sx'
89
- }).withConfig({
90
- displayName: "ActionList__ActionListTrailingVisual",
91
- componentId: "sc-hw2362-7"
92
- })(["", ""], sx);
93
- const ActionList = Object.assign(ActionListImpl, {
94
- Item: ActionListItem,
95
- LinkItem: ActionListLinkItem,
96
- Group: ActionListGroup,
97
- GroupHeading: ActionList$1.GroupHeading,
98
- Divider: ActionListDivider,
99
- Description: ActionList$1.Description,
100
- LeadingVisual: ActionListLeadingVisual,
101
- TrailingVisual: ActionListTrailingVisual,
102
- Heading: ActionList$1.Heading,
103
- TrailingAction: ActionListTrailingAction
104
- });
6
+ export { D as Dialog, P as PageHeader } from './PageHeader-DCDIR2C1.js';
7
+ export { T as Tooltip } from './Tooltip-YuSlJ5b_.js';
8
+ import '@primer/react/deprecated';
105
9
 
106
10
  const ActionMenuOverlay = styled(ActionMenu$1.Overlay).withConfig({
107
11
  shouldForwardProp: prop => prop !== 'sx'
@@ -353,31 +257,18 @@ const NavListGroup = /*#__PURE__*/forwardRef(function NavListGroup(props, ref) {
353
257
  ...props
354
258
  });
355
259
  });
356
- const NavListGroupHeading = /*#__PURE__*/forwardRef(function NavListGroupHeading(props, ref) {
357
- // @ts-expect-error - PrimerNavList.GroupHeading is not recognized as a valid component type
358
- return /*#__PURE__*/jsx(Box, {
359
- as: NavList$1.GroupHeading,
360
- ref: ref,
361
- ...props
362
- });
363
- });
364
- const NavListLeadingVisual = /*#__PURE__*/forwardRef(function NavListLeadingVisual(props, ref) {
365
- // @ts-expect-error - PrimerNavList.LeadingVisual is not recognized as a valid component type
366
- return /*#__PURE__*/jsx(Box, {
367
- as: NavList$1.LeadingVisual,
368
- ref: ref,
369
- ...props
370
- });
371
- });
372
260
  const NavList = Object.assign(NavListImpl, {
261
+ // Wrapped components that need sx support added back in
373
262
  Item: NavListItem,
374
263
  Group: NavListGroup,
375
- GroupHeading: NavListGroupHeading,
376
- LeadingVisual: NavListLeadingVisual,
264
+ // Re-exporting others directly
265
+ // TODO: try to remove typecasts to work around "non-portable types" TS error
377
266
  SubNav: NavList$1.SubNav,
378
267
  Divider: NavList$1.Divider,
268
+ LeadingVisual: NavList$1.LeadingVisual,
379
269
  TrailingVisual: NavList$1.TrailingVisual,
380
270
  TrailingAction: NavList$1.TrailingAction,
271
+ GroupHeading: NavList$1.GroupHeading,
381
272
  GroupExpand: NavList$1.GroupExpand
382
273
  });
383
274
 
@@ -388,39 +279,6 @@ const Overlay = styled(Overlay$1).withConfig({
388
279
  componentId: "sc-tjbd74-0"
389
280
  })(["", ""], sx);
390
281
 
391
- const Wrapper = styled.div.withConfig({
392
- displayName: "PageLayout__Wrapper",
393
- componentId: "sc-pjybtc-0"
394
- })(["", ""], sx);
395
- const PageLayoutImpl = /*#__PURE__*/React.forwardRef((props, ref) => {
396
- // @ts-expect-error - PrimerPageLayout is not recognized as a valid component type
397
- return /*#__PURE__*/jsx(Wrapper, {
398
- as: PageLayout$1,
399
- ref: ref,
400
- ...props
401
- });
402
- });
403
- const PageLayoutContent = /*#__PURE__*/React.forwardRef((props, ref) => {
404
- return /*#__PURE__*/jsx(Wrapper, {
405
- as: PageLayout$1.Content,
406
- ref: ref,
407
- ...props
408
- });
409
- });
410
- const PageLayoutPane = /*#__PURE__*/React.forwardRef((props, ref) => {
411
- return /*#__PURE__*/jsx(Wrapper, {
412
- as: PageLayout$1.Pane,
413
- ref: ref,
414
- ...props
415
- });
416
- });
417
- const PageLayout = Object.assign(PageLayoutImpl, {
418
- Content: PageLayoutContent,
419
- Header: PageLayout$1.Header,
420
- Pane: PageLayoutPane,
421
- Footer: PageLayout$1.Footer
422
- });
423
-
424
282
  const RadioGroupImpl = props => {
425
283
  return /*#__PURE__*/jsx(Box, {
426
284
  as: RadioGroup$1,
@@ -650,4 +508,4 @@ const UnderlineNav = Object.assign(UnderlineNavImpl, {
650
508
  Item: UnderlineNavItem
651
509
  });
652
510
 
653
- export { ActionList, ActionMenu, Autocomplete, Avatar, Breadcrumb, Breadcrumbs, Checkbox, CheckboxGroup, CircleBadge, CounterLabel, Flash, Header, Heading, Label, Link, LinkButton, NavList, Overlay, PageLayout, RadioGroup, RelativeTime, SegmentedControl, Spinner, StateLabel, SubNav, Text, Timeline, ToggleSwitch, Token, Truncate, UnderlineNav };
511
+ 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": "0.0.0-20251009221027",
3
+ "version": "0.0.0-20251009221036",
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-20251009221027",
33
+ "@primer/react": "0.0.0-20251009221036",
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-20251009221027",
49
+ "@primer/react": "0.0.0-20251009221036",
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 = React.PropsWithChildren<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 = React.PropsWithChildren<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: ForwardRefComponent<"li", ActionListItemProps>;
19
- declare const ActionListGroup: React.ComponentType<ActionListGroupProps>;
20
- declare const ActionListDivider: React.ComponentType<ActionListDividerProps>;
21
- declare const ActionListLeadingVisual: React.ComponentType<ActionListLeadingVisualProps>;
22
- declare const ActionListTrailingVisual: React.ComponentType<ActionListTrailingVisualProps>;
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,KAAK,MAAM,OAAO,CAAA;AAEzB,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;AAEvD,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,GAAG,MAAM,CAAA;AACrG,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,iBAAiB,CAAC,yBAAyB,GAAG,MAAM,CAAC,CAAA;AAC7F,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,iBAAiB,CAAC,6BAA6B,GAAG,MAAM,CAAC,CAAA;AACrG,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,iBAAiB,CAAC,0BAA0B,GAAG,MAAM,CAAC,CAAA;AAC/F,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,iBAA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,gBAAgB,CAAC,WAAW,CAAA;IAChD,aAAa,EAAE,OAAO,uBAAuB,CAAA;IAC7C,cAAc,EAAE,OAAO,wBAAwB,CAAA;IAC/C,OAAO,EAAE,OAAO,gBAAgB,CAAC,OAAO,CAAA;IACxC,cAAc,EAAE,OAAO,wBAAwB,CAAA;CAY/C,CAAA"}
@@ -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 function 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,iBAAS,kBAAkB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAAE,EAAC,EAAE,EAAE,GAAG,IAAI,EAAC,EAAE,uBAAuB,CAAC,EAAE,CAAC,qBAE3G;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"}
@@ -1,18 +0,0 @@
1
- import React, { type PropsWithChildren } from 'react';
2
- import type { PageLayoutProps as PrimerPageLayoutProps, PageLayoutContentProps as PrimerPageLayoutContentProps, PageLayoutPaneProps as PrimerPageLayoutPaneProps } from '@primer/react';
3
- import { type SxProp } from '../sx';
4
- type PageLayoutProps = PropsWithChildren<PrimerPageLayoutProps> & SxProp;
5
- declare const PageLayout: React.ForwardRefExoticComponent<PrimerPageLayoutProps & {
6
- children?: React.ReactNode | undefined;
7
- } & SxProp & React.RefAttributes<HTMLDivElement>> & {
8
- Content: React.ForwardRefExoticComponent<PrimerPageLayoutContentProps & {
9
- children?: React.ReactNode | undefined;
10
- } & SxProp & React.RefAttributes<HTMLDivElement>>;
11
- Header: React.FC<React.PropsWithChildren<import("@primer/react").PageLayoutHeaderProps>>;
12
- Pane: React.ForwardRefExoticComponent<PrimerPageLayoutPaneProps & {
13
- children?: React.ReactNode | undefined;
14
- } & SxProp & React.RefAttributes<HTMLDivElement>>;
15
- Footer: React.FC<React.PropsWithChildren<import("@primer/react").PageLayoutFooterProps>>;
16
- };
17
- export { PageLayout, type PageLayoutProps };
18
- //# sourceMappingURL=PageLayout.d.ts.map
@@ -1 +0,0 @@
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,mBAAmB,IAAI,yBAAyB,EACjD,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAMrC,KAAK,eAAe,GAAG,iBAAiB,CAAC,qBAAqB,CAAC,GAAG,MAAM,CAAA;AAmBxE,QAAA,MAAM,UAAU;;;;;;;;;;;CAKd,CAAA;AAEF,OAAO,EAAC,UAAU,EAAE,KAAK,eAAe,EAAC,CAAA"}
@@ -1,23 +0,0 @@
1
- import { type PropsWithChildren } from 'react';
2
- import { type ActionListProps as PrimerActionListProps, type ActionListItemProps as PrimerActionListItemProps, type ActionListGroupProps as PrimerActionListGroupProps } from '@primer/react/deprecated';
3
- import { type SxProp } from '../../sx';
4
- import type { ActionListDividerProps } from '@primer/react';
5
- type ActionListProps = PropsWithChildren<PrimerActionListProps & SxProp>;
6
- type ActionListItemProps = PropsWithChildren<PrimerActionListItemProps & SxProp & {
7
- as?: React.ElementType;
8
- }>;
9
- type ActionListGroupProps = PropsWithChildren<PrimerActionListGroupProps & SxProp>;
10
- declare function ActionListGroup(props: ActionListGroupProps): import("react").JSX.Element;
11
- declare function ActionListDivider(props: ActionListDividerProps): import("react").JSX.Element;
12
- declare const ActionList: import("react").ForwardRefExoticComponent<ActionListProps & import("react").RefAttributes<HTMLDivElement>> & {
13
- Item: import("react").ForwardRefExoticComponent<PrimerActionListItemProps & SxProp & {
14
- as?: React.ElementType;
15
- } & {
16
- children?: import("react").ReactNode | undefined;
17
- } & import("react").RefAttributes<HTMLLIElement>>;
18
- Group: typeof ActionListGroup;
19
- Divider: typeof ActionListDivider;
20
- };
21
- export type { ActionListProps, ActionListItemProps, ActionListGroupProps };
22
- export { ActionList };
23
- //# sourceMappingURL=ActionList.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ActionList.d.ts","sourceRoot":"","sources":["../../../src/components/deprecated/ActionList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,i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,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAUzD,QAAA,MAAM,MAAM;;CAEV,CAAA;AAEF,OAAO,EAAC,MAAM,EAAC,CAAA;AACf,YAAY,EAAC,WAAW,EAAE,iBAAiB,EAAC,CAAA"}
@@ -1,17 +0,0 @@
1
- import { type OcticonProps as PrimerOcticonProps } from '@primer/react/deprecated';
2
- import { type SxProp } from '../../sx';
3
- /**
4
- * @deprecated Use the icon component directly from `@primer/octicons-react` instead
5
- */
6
- export type OcticonProps = PrimerOcticonProps & SxProp & {
7
- color?: string;
8
- };
9
- declare const Octicon: import("react").ForwardRefExoticComponent<{
10
- icon: React.ElementType;
11
- as?: React.ElementType;
12
- } & import("@primer/octicons-react").IconProps & SxProp & {
13
- color?: string;
14
- } & import("react").RefAttributes<unknown>>;
15
- export default Octicon;
16
- export { Octicon };
17
- //# sourceMappingURL=Octicon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Octicon.d.ts","sourceRoot":"","sources":["../../../src/components/deprecated/Octicon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAC,MAAM,0BAA0B,CAAA;AAE1G,OAAO,EAAC,KAAK,MAAM,EAAK,MAAM,UAAU,CAAA;AAGxC;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,kBAAkB,GAAG,MAAM,GAAG;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAC,CAAA;AAazE,QAAA,MAAM,OAAO;;;;YAbqD,MAAM;2CAetE,CAAA;AAEF,eAAe,OAAO,CAAA;AACtB,OAAO,EAAC,OAAO,EAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TabNav.d.ts","sourceRoot":"","sources":["../../../src/components/deprecated/TabNav.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,WAAW,IAAI,iBAAiB,EAAE,eAAe,IAAI,qBAAqB,EAAC,MAAM,0BAA0B,CAAA;AACxH,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,UAAU,CAAA;AAIxC,KAAK,WAAW,GAAG,iBAAiB,GAAG,MAAM,CAAA;AAC7C,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAsBrD,QAAA,MAAM,MAAM,sBAdwB,WAAW;;CAgB7C,CAAA;AAEF,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAC,CAAA"}
@@ -1,13 +0,0 @@
1
- import { type TooltipProps as PrimerTooltipProps } from '@primer/react/deprecated';
2
- import { type SxProp } from '../../sx';
3
- import { type PropsWithChildren } from 'react';
4
- type TooltipProps = PropsWithChildren<PrimerTooltipProps & SxProp & {
5
- as?: React.ElementType;
6
- }>;
7
- declare const TooltipImpl: import("react").ForwardRefExoticComponent<Omit<TooltipProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
8
- declare const Tooltip: typeof TooltipImpl & {
9
- alignments: string[];
10
- directions: string[];
11
- };
12
- export { Tooltip, type TooltipProps };
13
- //# sourceMappingURL=Tooltip.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/deprecated/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAC,MAAM,0BAA0B,CAAA;AAE1G,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,UAAU,CAAA;AACxC,OAAO,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAI5C,KAAK,YAAY,GAAG,iBAAiB,CAAC,kBAAkB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAC,CAAA;AAQ7F,QAAA,MAAM,WAAW,uHAEf,CAAA;AAEF,QAAA,MAAM,OAAO,EAAkB,OAAO,WAAW,GAAG;IAClD,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,UAAU,EAAE,MAAM,EAAE,CAAA;CACrB,CAAA;AAMD,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA"}