@primer/styled-react 0.0.0-20251003224145 → 0.0.0-20251003225114
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.
- package/dist/components.json +3 -0
- package/dist/deprecated.d.ts +1 -0
- package/dist/deprecated.d.ts.map +1 -1
- package/dist/deprecated.js +43 -2
- package/package.json +3 -3
package/dist/components.json
CHANGED
package/dist/deprecated.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export { TabNav, type TabNavProps, type TabNavLinkProps } from './components/dep
|
|
|
2
2
|
export { Dialog, type DialogProps, type DialogHeaderProps } from './components/deprecated/DialogV1';
|
|
3
3
|
export { Octicon } from '@primer/react/deprecated';
|
|
4
4
|
export { DeprecatedTooltip as Tooltip, type DeprecatedTooltipProps as TooltipProps } from './components/Tooltip';
|
|
5
|
+
export { ActionList, type ActionListProps, type ActionListItemProps, type ActionListGroupProps, } from './components/deprecated/ActionList';
|
|
5
6
|
//# sourceMappingURL=deprecated.d.ts.map
|
package/dist/deprecated.d.ts.map
CHANGED
|
@@ -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,EAAC,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAC,iBAAiB,IAAI,OAAO,EAAE,KAAK,sBAAsB,IAAI,YAAY,EAAC,MAAM,sBAAsB,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,gCAAgC,CAAA;AAC7F,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,iBAAiB,EAAC,MAAM,kCAAkC,CAAA;AACjG,OAAO,EAAC,OAAO,EAAC,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAC,iBAAiB,IAAI,OAAO,EAAE,KAAK,sBAAsB,IAAI,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAC9G,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,GAC1B,MAAM,oCAAoC,CAAA"}
|
package/dist/deprecated.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TabNav as TabNav$1, Dialog as Dialog$1 } from '@primer/react/deprecated';
|
|
1
|
+
import { TabNav as TabNav$1, Dialog as Dialog$1, ActionList as ActionList$1 } from '@primer/react/deprecated';
|
|
2
2
|
export { Octicon } from '@primer/react/deprecated';
|
|
3
3
|
import { sx, Box } from '@primer/react';
|
|
4
4
|
import styled from 'styled-components';
|
|
@@ -81,4 +81,45 @@ const Dialog = Object.assign(DialogImpl, {
|
|
|
81
81
|
Header: DialogHeader
|
|
82
82
|
});
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
const ActionListImpl = /*#__PURE__*/forwardRef(function ActionList(props, ref) {
|
|
85
|
+
return /*#__PURE__*/jsx(Box, {
|
|
86
|
+
as: ActionList$1,
|
|
87
|
+
ref: ref,
|
|
88
|
+
...props
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
const StyledActionListItem = styled(ActionList$1.Item).withConfig({
|
|
92
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
93
|
+
}).withConfig({
|
|
94
|
+
displayName: "ActionList__StyledActionListItem",
|
|
95
|
+
componentId: "sc-1ugfmds-0"
|
|
96
|
+
})(["", ""], sx);
|
|
97
|
+
const ActionListItem = /*#__PURE__*/forwardRef(({
|
|
98
|
+
as,
|
|
99
|
+
...props
|
|
100
|
+
}, ref) => /*#__PURE__*/jsx(StyledActionListItem, {
|
|
101
|
+
...props,
|
|
102
|
+
...(as ? {
|
|
103
|
+
forwardedAs: as
|
|
104
|
+
} : {}),
|
|
105
|
+
ref: ref
|
|
106
|
+
}));
|
|
107
|
+
function ActionListGroup(props) {
|
|
108
|
+
return /*#__PURE__*/jsx(Box, {
|
|
109
|
+
as: ActionList$1.Group,
|
|
110
|
+
...props
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
function ActionListDivider(props) {
|
|
114
|
+
return /*#__PURE__*/jsx(Box, {
|
|
115
|
+
as: ActionList$1.Divider,
|
|
116
|
+
...props
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
const ActionList = Object.assign(ActionListImpl, {
|
|
120
|
+
Item: ActionListItem,
|
|
121
|
+
Group: ActionListGroup,
|
|
122
|
+
Divider: ActionListDivider
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
export { ActionList, Dialog, TabNav };
|
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-20251003225114",
|
|
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-20251003225114",
|
|
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-20251003225114",
|
|
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",
|