File tree Expand file tree Collapse file tree
packages/design-system/src/components/ds-split-button Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { useState } from 'react' ;
22import type { Meta , StoryObj } from '@storybook/react-vite' ;
33import { fn } from 'storybook/test' ;
4- import DsSplitButton from './ds-split-button ' ;
4+ import { DsSplitButton } from './' ;
55import { splitButtonSizes } from './ds-split-button.types' ;
66import type { DsSelectProps } from '../ds-select' ;
77
Original file line number Diff line number Diff line change 1- export { default as DsSplitButton } from './ds-split-button' ;
2- export {
3- type DsSplitButtonProps ,
4- type DsSplitButtonSlotProps ,
5- splitButtonSizes ,
6- } from './ds-split-button.types' ;
1+ import type { ComponentProps } from 'react' ;
2+ import { withResponsiveProps } from '../../utils/responsive' ;
3+ import DsSplitButtonBase from './ds-split-button' ;
4+ export { type DsSplitButtonSlotProps , splitButtonSizes } from './ds-split-button.types' ;
5+
6+ export const DsSplitButton = withResponsiveProps ( DsSplitButtonBase , [ 'size' ] ) ;
7+
8+ DsSplitButton . displayName = 'DsSplitButton' ;
9+
10+ export type DsSplitButtonProps = ComponentProps < typeof DsSplitButton > ;
You can’t perform that action at this time.
0 commit comments