File tree Expand file tree Collapse file tree 7 files changed +27
-4
lines changed Expand file tree Collapse file tree 7 files changed +27
-4
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ export const ArrowRightIconContainer = styled.div<{
161
161
getStyles ( styles [ CarouselArrowStateType . DEFAULT ] ?. arrowRightIconButtonContainer ) } ;
162
162
&:focus {
163
163
${ props =>
164
- getStyles ( props . styles [ CarouselArrowStateType . DEFAULT ] ?. arrowLeftIconButtonContainer ) }
164
+ getStyles ( props . styles [ CarouselArrowStateType . DEFAULT ] ?. arrowRightIconButtonContainer ) }
165
165
}
166
166
&:hover {
167
167
${ props =>
Original file line number Diff line number Diff line change
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
import React from 'react' ;
2
3
3
4
import { Footer } from '@/components/footer/footer' ;
@@ -54,7 +55,6 @@ const DrawerStandAloneComponent = (
54
55
< DrawerTitleContentFooterContainerStyled blocked = { blocked } styles = { props . styles } >
55
56
< DrawerTitleStyled
56
57
data-drawer-title
57
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
58
58
as = { Text as any }
59
59
component = { titleComponent as unknown as TextComponentType }
60
60
customTypography = { props . styles . title }
@@ -80,7 +80,6 @@ const DrawerStandAloneComponent = (
80
80
{ props . footer ?. content && ( props . styles . footer ?. variant || props . footer . variant ) && (
81
81
< DrawerFooterStyled
82
82
data-drawer-footer
83
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
84
83
as = { Footer as any }
85
84
customFooterStyles = { props . styles }
86
85
variant = { props . styles . footer ?. variant }
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ export * from './tableV2';
85
85
export * from './dataTable' ;
86
86
export * from './video' ;
87
87
export * from './progressBar' ;
88
+
88
89
export * from './virtualKeyboard' ;
89
90
90
91
/**
@@ -110,6 +111,7 @@ export * from './headerStructure';
110
111
export * from './footer' ;
111
112
export * from './portal' ;
112
113
export * from './textCount' ;
114
+
113
115
export * from './operativeLayout' ;
114
116
export * from './emptyState' ;
115
117
export * from './loadingState' ;
Original file line number Diff line number Diff line change 1
1
import type { Meta , StoryObj } from '@storybook/react' ;
2
+ import React from 'react' ;
2
3
4
+ import { Button } from '@/components/button/button' ;
3
5
import {
4
6
additionalInfoAction ,
5
7
labelSecondary ,
@@ -25,12 +27,29 @@ const meta = {
25
27
figmaUrl :
26
28
'https://www.figma.com/file/EYQkbENTFO5r8muvXlPoOy/Kubit-v.1.0.0?type=design&node-id=3922-29850&mode=dev' ,
27
29
} ,
30
+ render : ( { ...args } ) => < StoryWithHooks { ...args } /> ,
28
31
} satisfies Meta < typeof Story > ;
29
32
30
33
export default meta ;
31
34
32
35
type Story = StoryObj < typeof meta > & { args : { themeArgs ?: object } } ;
33
36
37
+ const StoryWithHooks = args => {
38
+ const [ value , setValue ] = React . useState < string | number | undefined > ( 3 ) ;
39
+ const onClick = ( ) => {
40
+ setValue ( undefined ) ;
41
+ } ;
42
+
43
+ return (
44
+ < div >
45
+ < Story { ...args } value = { value } />
46
+ < Button size = "MEDIUM" variant = "PRIMARY" onClick = { onClick } >
47
+ Clear
48
+ </ Button >
49
+ </ div >
50
+ ) ;
51
+ } ;
52
+
34
53
const commonArgs : IInputCurrency = {
35
54
variant : Object . values ( variantsObject [ themeSelected ] . InputCurrencyVariant || { } ) [ 0 ] as string ,
36
55
id : 'input' ,
Original file line number Diff line number Diff line change
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
import React from 'react' ;
2
3
3
4
import { useId } from '@/hooks/useId/useId' ;
@@ -26,7 +27,7 @@ const PillStandAloneComponent = (
26
27
27
28
return (
28
29
< PillRootContainerStyled
29
- ref = { ref }
30
+ ref = { ref as any }
30
31
aria-controls = { props [ 'aria-controls' ] }
31
32
aria-selected = { type === PillType . TAB ? props . selected : undefined }
32
33
as = { [ PillType . BUTTON , PillType . TAB ] . includes ( type ) ? PillAsButton : undefined }
Original file line number Diff line number Diff line change @@ -89,6 +89,8 @@ export const useInput = (props: ParamsTypeInputHook): ReturnTypeInputHook => {
89
89
}
90
90
// limit or truncate the value
91
91
controlValue ( newValue ) ;
92
+ } else {
93
+ handleSetValue ( '' ) ;
92
94
}
93
95
firstRender . current = false ;
94
96
} , [ props . currentValue ] ) ;
You can’t perform that action at this time.
0 commit comments