@primer/styled-react 0.0.0-20251013184143 → 0.0.0-20251013194158
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.
|
@@ -5,22 +5,14 @@ import type { ForwardRefComponent } from '../polymorphic';
|
|
|
5
5
|
type PrimerActionListTrailingActionProps = React.ComponentProps<typeof PrimerActionList.TrailingAction>;
|
|
6
6
|
export type ActionListProps<As extends React.ElementType = 'ul'> = PrimerActionListProps<As> & SxProp;
|
|
7
7
|
export type ActionListItemProps = React.PropsWithChildren<PrimerActionListItemProps & SxProp>;
|
|
8
|
-
export type ActionListLinkItemProps = React.PropsWithChildren<PrimerActionListLinkItemProps & SxProp
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
export type ActionListGroupProps = React.PropsWithChildren<PrimerActionListGroupProps & SxProp> & {
|
|
12
|
-
as?: React.ElementType;
|
|
13
|
-
};
|
|
8
|
+
export type ActionListLinkItemProps = React.PropsWithChildren<PrimerActionListLinkItemProps & SxProp>;
|
|
9
|
+
export type ActionListGroupProps = React.PropsWithChildren<PrimerActionListGroupProps & SxProp>;
|
|
14
10
|
export type ActionListDividerProps = React.PropsWithChildren<PrimerActionListDividerProps & SxProp>;
|
|
15
|
-
export type ActionListLeadingVisualProps = React.PropsWithChildren<PrimerActionListLeadingVisualProps & SxProp
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
export type ActionListTrailingVisualProps = React.PropsWithChildren<PrimerActionListTrailingVisualProps & SxProp> & {
|
|
19
|
-
as?: React.ElementType;
|
|
20
|
-
};
|
|
11
|
+
export type ActionListLeadingVisualProps = React.PropsWithChildren<PrimerActionListLeadingVisualProps & SxProp>;
|
|
12
|
+
export type ActionListTrailingVisualProps = React.PropsWithChildren<PrimerActionListTrailingVisualProps & SxProp>;
|
|
21
13
|
export type ActionListTrailingActionProps = React.PropsWithChildren<PrimerActionListTrailingActionProps & SxProp>;
|
|
22
14
|
declare const ActionListImpl: React.ForwardRefExoticComponent<Omit<ActionListProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<unknown>>;
|
|
23
|
-
declare const ActionListLinkItem: ForwardRefComponent<
|
|
15
|
+
declare const ActionListLinkItem: ForwardRefComponent<'a', ActionListLinkItemProps> & SlotMarker;
|
|
24
16
|
type TrailingActionElements = 'button' | 'a';
|
|
25
17
|
declare const ActionListTrailingAction: ForwardRefComponent<TrailingActionElements, ActionListTrailingActionProps> & SlotMarker;
|
|
26
18
|
declare const ActionListItem: ForwardRefComponent<"li", ActionListItemProps> & SlotMarker;
|
|
@@ -1 +1 @@
|
|
|
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,EACzE,KAAK,UAAU,EAChB,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,GA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;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;CAChD,GAAG,UAWF,CAAA"}
|
|
@@ -21,25 +21,12 @@ const ActionListImpl = /*#__PURE__*/React.forwardRef(function ActionListImpl({
|
|
|
21
21
|
} : {})
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
|
-
const
|
|
24
|
+
const ActionListLinkItem = styled(ActionList$1.LinkItem).withConfig({
|
|
25
25
|
shouldForwardProp: prop => prop !== 'sx'
|
|
26
26
|
}).withConfig({
|
|
27
|
-
displayName: "
|
|
27
|
+
displayName: "ActionList__ActionListLinkItem",
|
|
28
28
|
componentId: "sc-hw2362-1"
|
|
29
29
|
})(["", ""], sx);
|
|
30
|
-
const ActionListLinkItem = /*#__PURE__*/React.forwardRef(({
|
|
31
|
-
children,
|
|
32
|
-
as,
|
|
33
|
-
...props
|
|
34
|
-
}, ref) => /*#__PURE__*/jsx(StyledActionListLinkItem, {
|
|
35
|
-
ref: ref,
|
|
36
|
-
...props,
|
|
37
|
-
...(as ? {
|
|
38
|
-
forwardedAs: as
|
|
39
|
-
} : {}),
|
|
40
|
-
children: children
|
|
41
|
-
}));
|
|
42
|
-
ActionListLinkItem.displayName = 'ActionList.LinkItem';
|
|
43
30
|
const StyledActionListTrailingAction = styled(ActionList$1.TrailingAction).withConfig({
|
|
44
31
|
shouldForwardProp: prop => prop !== 'sx'
|
|
45
32
|
}).withConfig({
|
|
@@ -77,66 +64,30 @@ const ActionListItem = /*#__PURE__*/React.forwardRef(({
|
|
|
77
64
|
} : {}),
|
|
78
65
|
children: children
|
|
79
66
|
}));
|
|
80
|
-
const
|
|
67
|
+
const ActionListGroup = styled(ActionList$1.Group).withConfig({
|
|
81
68
|
shouldForwardProp: prop => prop !== 'sx'
|
|
82
69
|
}).withConfig({
|
|
83
|
-
displayName: "
|
|
70
|
+
displayName: "ActionList__ActionListGroup",
|
|
84
71
|
componentId: "sc-hw2362-4"
|
|
85
72
|
})(["", ""], sx);
|
|
86
|
-
const ActionListGroup = ({
|
|
87
|
-
children,
|
|
88
|
-
as,
|
|
89
|
-
...props
|
|
90
|
-
}) => /*#__PURE__*/jsx(StyledActionListGroup, {
|
|
91
|
-
...props,
|
|
92
|
-
...(as ? {
|
|
93
|
-
forwardedAs: as
|
|
94
|
-
} : {}),
|
|
95
|
-
children: children
|
|
96
|
-
});
|
|
97
|
-
ActionListGroup.displayName = 'ActionList.Group';
|
|
98
73
|
const ActionListDivider = styled(ActionList$1.Divider).withConfig({
|
|
99
74
|
shouldForwardProp: prop => prop !== 'sx'
|
|
100
75
|
}).withConfig({
|
|
101
76
|
displayName: "ActionList__ActionListDivider",
|
|
102
77
|
componentId: "sc-hw2362-5"
|
|
103
78
|
})(["", ""], sx);
|
|
104
|
-
const
|
|
79
|
+
const ActionListLeadingVisual = styled(ActionList$1.LeadingVisual).withConfig({
|
|
105
80
|
shouldForwardProp: prop => prop !== 'sx'
|
|
106
81
|
}).withConfig({
|
|
107
|
-
displayName: "
|
|
82
|
+
displayName: "ActionList__ActionListLeadingVisual",
|
|
108
83
|
componentId: "sc-hw2362-6"
|
|
109
84
|
})(["", ""], sx);
|
|
110
|
-
const
|
|
111
|
-
children,
|
|
112
|
-
as,
|
|
113
|
-
...props
|
|
114
|
-
}) => /*#__PURE__*/jsx(StyledActionListLeadingVisual, {
|
|
115
|
-
...props,
|
|
116
|
-
...(as ? {
|
|
117
|
-
forwardedAs: as
|
|
118
|
-
} : {}),
|
|
119
|
-
children: children
|
|
120
|
-
});
|
|
121
|
-
ActionListLeadingVisual.displayName = 'ActionList.LeadingVisual';
|
|
122
|
-
const StyledActionListTrailingVisual = styled(ActionList$1.TrailingVisual).withConfig({
|
|
85
|
+
const ActionListTrailingVisual = styled(ActionList$1.TrailingVisual).withConfig({
|
|
123
86
|
shouldForwardProp: prop => prop !== 'sx'
|
|
124
87
|
}).withConfig({
|
|
125
|
-
displayName: "
|
|
88
|
+
displayName: "ActionList__ActionListTrailingVisual",
|
|
126
89
|
componentId: "sc-hw2362-7"
|
|
127
90
|
})(["", ""], sx);
|
|
128
|
-
const ActionListTrailingVisual = ({
|
|
129
|
-
children,
|
|
130
|
-
as,
|
|
131
|
-
...props
|
|
132
|
-
}) => /*#__PURE__*/jsx(StyledActionListTrailingVisual, {
|
|
133
|
-
...props,
|
|
134
|
-
...(as ? {
|
|
135
|
-
forwardedAs: as
|
|
136
|
-
} : {}),
|
|
137
|
-
children: children
|
|
138
|
-
});
|
|
139
|
-
ActionListTrailingVisual.displayName = 'ActionList.TrailingVisual';
|
|
140
91
|
const ActionList = Object.assign(ActionListImpl, {
|
|
141
92
|
Item: ActionListItem,
|
|
142
93
|
LinkItem: ActionListLinkItem,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/styled-react",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-20251013194158",
|
|
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-
|
|
33
|
+
"@primer/react": "0.0.0-20251013194158",
|
|
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-
|
|
49
|
+
"@primer/react": "0.0.0-20251013194158",
|
|
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",
|