File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 11import React from 'react'
22import { AlertIcon } from '@primer/octicons-react'
33import Spinner from '../Spinner'
4- import type { SxProp } from '../sx'
54import { ItemContext } from './shared'
65import { Tooltip , type TooltipProps } from '../TooltipV2'
76import { clsx } from 'clsx'
87import classes from './ActionList.module.css'
9- import { BoxWithFallback } from '../internal/components/BoxWithFallback'
108
11- export type VisualProps = SxProp & React . HTMLAttributes < HTMLSpanElement >
9+ export type VisualProps = React . HTMLAttributes < HTMLSpanElement >
1210
1311export const VisualContainer : React . FC < React . PropsWithChildren < VisualProps > > = ( { className, ...props } ) => {
14- return < BoxWithFallback as = " span" className = { clsx ( className , classes . VisualWrap ) } { ...props } />
12+ return < span className = { clsx ( className , classes . VisualWrap ) } { ...props } />
1513}
1614
1715export type ActionListLeadingVisualProps = VisualProps
Original file line number Diff line number Diff line change 11import {
2+ ActionList as PrimerActionList ,
3+ type ActionListProps as PrimerActionListProps ,
24 type BetterSystemStyleObject ,
35 Box ,
46 type BoxProps ,
@@ -68,6 +70,14 @@ type StyledProps = SxProp &
6870 PositionProps &
6971 ShadowProps
7072
73+ type ActionListProps = PrimerActionListProps & SxProp
74+
75+ const ActionList : ForwardRefComponent < 'div' , ActionListProps > = styled ( PrimerActionList ) . withConfig < ActionListProps > ( {
76+ shouldForwardProp : prop => prop !== 'sx' ,
77+ } ) `
78+ ${ sx }
79+ `
80+
7181type SpinnerProps = PrimerSpinnerProps & SxProp
7282
7383function Spinner ( props : SpinnerProps ) {
@@ -257,6 +267,7 @@ export {Header, type HeaderProps} from './components/Header'
257267export { Flash } from './components/Flash'
258268
259269export {
270+ ActionList ,
260271 Checkbox ,
261272 CounterLabel ,
262273 LinkButton ,
@@ -274,7 +285,6 @@ export {
274285}
275286
276287export {
277- ActionList ,
278288 ActionMenu ,
279289 Autocomplete ,
280290 Avatar ,
You can’t perform that action at this time.
0 commit comments