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

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,40 +1,36 @@
1
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';
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
3
  import { type SxProp } from '../sx';
4
4
  import type { ForwardRefComponent } from '../polymorphic';
5
- type PrimerActionListGroupHeadingProps = React.ComponentProps<typeof PrimerActionList.GroupHeading>;
6
- type PrimerActionListHeadingProps = React.ComponentProps<typeof PrimerActionList.Heading>;
7
5
  type PrimerActionListTrailingActionProps = React.ComponentProps<typeof PrimerActionList.TrailingAction>;
8
6
  export type ActionListProps<As extends React.ElementType = 'ul'> = PrimerActionListProps<As> & SxProp;
9
- export type ActionListItemProps<As extends React.ElementType = 'li'> = React.PropsWithChildren<PrimerActionListItemProps & SxProp>;
7
+ export type ActionListItemProps = React.PropsWithChildren<PrimerActionListItemProps & SxProp>;
10
8
  export type ActionListLinkItemProps = PrimerActionListLinkItemProps & SxProp;
11
9
  export type ActionListGroupProps = React.PropsWithChildren<PrimerActionListGroupProps & SxProp>;
12
- export type ActionListGroupHeadingProps = PrimerActionListGroupHeadingProps & SxProp;
13
10
  export type ActionListDividerProps = React.PropsWithChildren<PrimerActionListDividerProps & SxProp>;
14
- export type ActionListDescriptionProps = React.PropsWithChildren<PrimerActionListDescriptionProps & SxProp>;
15
11
  export type ActionListLeadingVisualProps = React.PropsWithChildren<PrimerActionListLeadingVisualProps & SxProp>;
16
12
  export type ActionListTrailingVisualProps = React.PropsWithChildren<PrimerActionListTrailingVisualProps & SxProp>;
17
- export type ActionListHeadingProps = PrimerActionListHeadingProps & SxProp;
18
13
  export type ActionListTrailingActionProps = PrimerActionListTrailingActionProps & SxProp;
19
- type HeadingLevels = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
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>;
20
16
  type TrailingActionElements = 'button' | 'a';
21
- declare function ActionListItem<As extends React.ElementType = 'li'>({ as, ...props }: ActionListItemProps<As>): React.JSX.Element;
17
+ declare const ActionListTrailingAction: ForwardRefComponent<TrailingActionElements, ActionListTrailingActionProps>;
18
+ declare const ActionListItem: React.ForwardRefExoticComponent<Omit<ActionListItemProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
22
19
  declare function ActionListGroup(props: ActionListGroupProps): React.JSX.Element;
23
- declare function ActionListGroupHeading(props: ActionListGroupHeadingProps): React.JSX.Element;
24
20
  declare function ActionListDivider(props: ActionListDividerProps): React.JSX.Element;
25
21
  declare function ActionListLeadingVisual(props: ActionListLeadingVisualProps): React.JSX.Element;
26
22
  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>> & {
23
+ export declare const ActionList: typeof ActionListImpl & {
28
24
  Item: typeof ActionListItem;
29
- LinkItem: ForwardRefComponent<"a", ActionListLinkItemProps>;
25
+ LinkItem: typeof ActionListLinkItem;
30
26
  Group: typeof ActionListGroup;
31
- GroupHeading: typeof ActionListGroupHeading;
27
+ GroupHeading: typeof PrimerActionList.GroupHeading;
32
28
  Divider: typeof ActionListDivider;
33
- Description: import("styled-components").StyledComponent<React.FC<React.PropsWithChildren<PrimerActionListDescriptionProps>>, any, ActionListDescriptionProps, never>;
29
+ Description: typeof PrimerActionList.Description;
34
30
  LeadingVisual: typeof ActionListLeadingVisual;
35
31
  TrailingVisual: typeof ActionListTrailingVisual;
36
- Heading: ForwardRefComponent<HeadingLevels, ActionListHeadingProps>;
37
- TrailingAction: ForwardRefComponent<TrailingActionElements, ActionListTrailingActionProps>;
32
+ Heading: typeof PrimerActionList.Heading;
33
+ TrailingAction: typeof ActionListTrailingAction;
38
34
  };
39
35
  export {};
40
36
  //# sourceMappingURL=ActionList.d.ts.map
@@ -1 +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,IAAI,qBAAqB,EAC7C,KAAK,mBAAmB,IAAI,yBAAyB,EACrD,KAAK,uBAAuB,IAAI,6BAA6B,EAC7D,KAAK,oBAAoB,IAAI,0BAA0B,EACvD,KAAK,sBAAsB,IAAI,4BAA4B,EAC3D,KAAK,0BAA0B,IAAI,gCAAgC,EACnE,KAAK,4BAA4B,IAAI,kCAAkC,EACvE,KAAK,6BAA6B,IAAI,mCAAmC,EAG1E,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AACrC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAGvD,KAAK,iCAAiC,GAAG,K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AAE,OAAO,cAAc,GAAG;IAC/C,IAAI,EAAE,OAAO,cAAc,CAAA;IAC3B,QAAQ,EAAE,OAAO,kBAAkB,CAAA;IACnC,KAAK,EAAE,OAAO,eAAe,CAAA;IAC7B,YAAY,EAAE,OAAO,gBAAgB,CAAC,YAAY,CAAA;IAClD,OAAO,EAAE,OAAO,iBAAiB,CAAA;IACjC,WAAW,EAAE,OAAO,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"}
@@ -50,11 +50,8 @@
50
50
  "UnderlinePanels"
51
51
  ],
52
52
  "types": [
53
- "ActionListDescriptionProps",
54
53
  "ActionListDividerProps",
55
- "ActionListGroupHeadingProps",
56
54
  "ActionListGroupProps",
57
- "ActionListHeadingProps",
58
55
  "ActionListItemProps",
59
56
  "ActionListLeadingVisualProps",
60
57
  "ActionListLinkItemProps",
package/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@ export { theme } from '@primer/react';
13
13
  export { themeGet } from '@primer/react';
14
14
  export { useColorSchemeVar } from '@primer/react';
15
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';
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';
@@ -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,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,EACL,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,6BAA6B,GACnC,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAA;AAClD,OAAO,EAAC,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Item = styled(ActionList$1.LinkItem).withConfig({
32
32
  displayName: "ActionList__ActionListLinkItem",
33
33
  componentId: "sc-hw2362-1"
34
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
35
  const ActionListTrailingAction = styled(ActionList$1.TrailingAction).withConfig({
42
36
  shouldForwardProp: prop => prop !== 'sx'
43
37
  }).withConfig({
44
38
  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"
39
+ componentId: "sc-hw2362-2"
52
40
  })(["", ""], 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) {
41
+ const ActionListItem = /*#__PURE__*/forwardRef(function Item(props, ref) {
65
42
  return /*#__PURE__*/jsx(Box, {
66
- as: ActionList$1.Group,
43
+ ref: ref,
44
+ as: ActionList$1.Item,
67
45
  ...props
68
46
  });
69
- }
70
- function ActionListGroupHeading(props) {
47
+ });
48
+ function ActionListGroup(props) {
71
49
  return /*#__PURE__*/jsx(Box, {
72
- as: ActionList$1.GroupHeading,
50
+ as: ActionList$1.Group,
73
51
  ...props
74
52
  });
75
53
  }
@@ -79,12 +57,6 @@ function ActionListDivider(props) {
79
57
  ...props
80
58
  });
81
59
  }
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
60
  function ActionListLeadingVisual(props) {
89
61
  return /*#__PURE__*/jsx(Box, {
90
62
  as: ActionList$1.LeadingVisual,
@@ -101,12 +73,12 @@ const ActionList = Object.assign(ActionListImpl, {
101
73
  Item: ActionListItem,
102
74
  LinkItem: ActionListLinkItem,
103
75
  Group: ActionListGroup,
104
- GroupHeading: ActionListGroupHeading,
76
+ GroupHeading: ActionList$1.GroupHeading,
105
77
  Divider: ActionListDivider,
106
- Description: ActionListDescription,
78
+ Description: ActionList$1.Description,
107
79
  LeadingVisual: ActionListLeadingVisual,
108
80
  TrailingVisual: ActionListTrailingVisual,
109
- Heading: ActionListHeading,
81
+ Heading: ActionList$1.Heading,
110
82
  TrailingAction: ActionListTrailingAction
111
83
  });
112
84
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/styled-react",
3
- "version": "0.0.0-20251002224432",
3
+ "version": "0.0.0-20251002230558",
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-20251002224432",
33
+ "@primer/react": "0.0.0-20251002230558",
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-20251002224432",
49
+ "@primer/react": "0.0.0-20251002230558",
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",