original_text
stringlengths
1
23.3k
tokenized_code
stringlengths
1
25.1k
masked_code
stringlengths
1
23.6k
)
)
)
}
}
}
export const Default = Template.bind({})
export const Default = Template.bind ( { } )
export const [MASK] [MASK] Template.bind [MASK] { } )
}
}
[MASK]
export const SmallSize = Template.bind({})
export const SmallSize = Template.bind ( { } )
export const SmallSize = Template.bind ( { } )
}
}
}
export const LargeSize = Template.bind({})
export const LargeSize = Template.bind ( { } )
export const LargeSize = Template.bind ( { } )
}
}
}
export const FullSize = Template.bind({})
export const FullSize = Template.bind ( { } )
[MASK] const FullSize [MASK] Template.bind [MASK] [MASK] } )
}
}
}
import MultiSelect from './MultiSelect'
import MultiSelect from './MultiSelect '
import MultiSelect from './MultiSelect '
export default MultiSelect
export default MultiSelect
export default [MASK]
import { Block, Icon, Label, Select } from '@protolibrary/components'
import { Block , Icon , Label , Select } from ' @ protolibrary/components '
import { Block [MASK] Icon , Label , Select [MASK] from ' @ protolibrary/components [MASK]
import React, { useEffect, useMemo, useState } from 'react'
import React , { useEffect , useMemo , useState } from 'react '
import React , [MASK] useEffect , useMemo [MASK] useState } from [MASK] '
import ICONS from '@resources/icons'
import ICONS from ' @ resources/icons '
import ICONS from ' [MASK] resources/icons '
import { replaceColorsInSVG } from '@utils/ColorUtils'
import { replaceColorsInSVG } from ' @ utils/ColorUtils '
import { replaceColorsInSVG } from ' @ utils/ColorUtils '
import COLORS from '@resources/colors'
import COLORS from ' @ resources/colors '
import COLORS from ' @ resources/colors [MASK]
import { InputHOC } from '@protoweb/utils'
import { InputHOC } from ' @ protoweb/utils '
import { [MASK] [MASK] from ' @ protoweb/utils '
import { IFormPropTypes } from '@protocommon/types'
import { IFormPropTypes } from ' @ protocommon/types '
import { IFormPropTypes } [MASK] ' @ protocommon/types [MASK]
import useTheme from '@hooks/useTheme'
import useTheme from ' @ hooks/useTheme '
import useTheme from ' @ hooks/useTheme [MASK]
maxItemSize?: number
maxItemSize ? : number
maxItemSize ? : number
allOption?: boolean
allOption ? : boolean
[MASK] ? : boolean
options: any[]
options : any [ ]
options : any [ ]
value?: any[]
value ? : any [ ]
value ? : [MASK] [ ]
onChange?: (event: any, values: any[]) => void
onChange ? : ( event : any , values : any [ ] ) = > void
[MASK] ? : ( event : any , values : any [ [MASK] ) [MASK] > void
onBlur?: (event: any, values: any[]) => void
onBlur ? : ( event : any , values : any [ ] ) = > void
onBlur ? : [MASK] event : any [MASK] [MASK] : any [ ] ) = > void
const ALL_OPTION = { value: 'ALL_VALUES_SELECTED', label: 'Hepsi' }
const ALL_OPTION = { value : 'ALL_VALUES_SELECTED ' , label : 'Hepsi ' }
const ALL_OPTION = [MASK] value : 'ALL_VALUES_SELECTED ' , label : 'Hepsi ' }
const [values, setValues] = useState(null)
const [ values , setValues ] = useState ( null )
const [ values [MASK] setValues ] = [MASK] ( null [MASK]
return [ALL_OPTION, ...props.options]
return [ ALL_OPTION , ... props.options ]
return [ ALL_OPTION [MASK] ... props.options [MASK]
return props.options
return props.options
return props.options
}, [props?.options])
} , [ props ? .options ] )
} , [ props ? .options ] [MASK]
setValues(new Set(props.value))
setValues ( new Set ( props.value ) )
setValues ( new Set ( props.value ) )
}, [props.value])
} , [ props.value ] )
} , [ props.value ] )
)
)
)
)
)
)
}
}
}
const [menuIsOpen, setMenuIsOpen] = useState(false)
const [ menuIsOpen , setMenuIsOpen ] = useState ( false )
const [ menuIsOpen , setMenuIsOpen ] = useState ( [MASK] )
setMenuIsOpen(true)
setMenuIsOpen ( true )
setMenuIsOpen ( [MASK] )
}
}
[MASK]
const newValues = new Set(values)
const newValues = new Set ( values )
const newValues = new Set [MASK] values )
newValues.delete(item.value)
newValues.delete ( item.value )
newValues.delete ( item.value )
})
} )
} )
newValues.add(item.value)
newValues.add ( item.value )
newValues.add ( item.value )
})
} )
} [MASK]
newValues.delete(selectedItem.value)
newValues.delete ( selectedItem.value )
newValues.delete ( selectedItem.value )
newValues.add(selectedItem.value)
newValues.add ( selectedItem.value )
[MASK] ( selectedItem.value )
props.onChange(null, Array.from(newValues))
props.onChange ( null , Array.from ( newValues ) )
props.onChange ( null [MASK] Array.from [MASK] newValues ) )
setValues(newValues)
setValues ( newValues )
setValues [MASK] newValues )
}
}
}
setMenuIsOpen(false)
setMenuIsOpen ( false )
setMenuIsOpen ( false )
props.onBlur(null, Array.from(values))
props.onBlur ( null , Array.from ( values ) )
[MASK] ( null , Array.from ( values ) )
}
}
}
return 'Seçim yapın'
return 'Seçim yapın '
return 'Seçim yapın '
return 'Hepsi'
return 'Hepsi '
[MASK] 'Hepsi '
const arrayFromSet = Array.from(values)
const arrayFromSet = Array.from ( values )
const arrayFromSet = Array.from ( values )
return item.value === val
return item.value === val
return item.value === val
}).label
} ) .label
} ) .label
})
} )
} )
return mappedArray.join(',')
return mappedArray.join ( ' , ' )
return mappedArray.join ( ' , [MASK] )
return `${values.size} Seçili`
return ` $ { values.size } Seçili `
return [MASK] [MASK] { values.size } [MASK] `
}, [values])
} , [ values ] )
} , [ values ] )
const { error, ...cleanedProps } = props
const { error , ... cleanedProps } = props
const [MASK] error , ... cleanedProps [MASK] = props
)
)
)
}
}
}
}
}
[MASK]
export default InputHOC<Props>(MultiSelect)
export default InputHOC < Props > ( MultiSelect )
export default InputHOC < Props > ( MultiSelect )
export { MultiSelect }
export { MultiSelect }
[MASK] { MultiSelect }
import React from 'react'
import React from 'react '
import React [MASK] 'react [MASK]
import MultiSelectWithHOC, { MultiSelect } from './MultiSelect'
import MultiSelectWithHOC , { MultiSelect } from './MultiSelect '
import [MASK] , { MultiSelect } from [MASK] '
import { Form } from '@protolibrary/components'
import { Form } from ' @ protolibrary/components '
import { Form } from ' @ protolibrary/components '
}
}
[MASK]
const Template = args => <MultiSelect {...args} />
const Template = args = > < MultiSelect { ... args } / >
const Template = args = > < MultiSelect { ... args } / >
)
)
)
export const Default = Template.bind({})
export const Default = Template.bind ( { } )
export const Default = Template.bind [MASK] { } )
export const FormUsage = TemplateForm.bind({})
export const FormUsage = TemplateForm.bind ( { } )
export const FormUsage = TemplateForm.bind ( { } [MASK]
}
}
}
}
}
[MASK]
import { BackComponent } from './BackComponent'
import { BackComponent } from './BackComponent '
import { BackComponent [MASK] from './BackComponent '
export default BackComponent
export default BackComponent
export default [MASK]
import useLocalization from '@hooks/useLocalization'
import useLocalization from ' @ hooks/useLocalization '
import [MASK] from ' @ hooks/useLocalization '
import Button from '@protoweb/button'
import Button from ' @ protoweb/button '
[MASK] Button from ' @ protoweb/button '
import Col from '@protoweb/col'
import Col from ' @ protoweb/col '
import Col from ' @ protoweb/col '
import React, { useEffect, useRef, useState } from 'react'
import React , { useEffect , useRef , useState } from 'react '
import React , { [MASK] , useRef , useState [MASK] from 'react '
import ConfirmationModal from '../confirmation-modal/ConfirmationModal'
import ConfirmationModal from ' .. /confirmation-modal/ConfirmationModal '
import ConfirmationModal from ' .. /confirmation-modal/ConfirmationModal '
import { IColPropType } from '@protocommon/types'
import { IColPropType } from ' @ protocommon/types '
import { [MASK] [MASK] from [MASK] @ protocommon/types '
onClick: any
onClick : any
[MASK] : any
size: IColPropType['md' | 'lg' | 'xl']
size : IColPropType [ 'md ' | 'lg ' | 'xl ' ]
[MASK] : IColPropType [ 'md ' | [MASK] ' | 'xl ' [MASK]
const { t } = useLocalization()
const { t } = useLocalization ( )
const { [MASK] } = useLocalization ( )
const [confirmationModal, setConfirmationModal] = useState(false)
const [ confirmationModal , setConfirmationModal ] = useState ( false )
const [ confirmationModal [MASK] setConfirmationModal ] = useState ( false )
setConfirmationModal(false)
setConfirmationModal ( false )
setConfirmationModal ( false )
)
)
)
}
}
}
import React from 'react'
import React from 'react '
import React [MASK] 'react '
import { BackComponent } from './BackComponent'
import { BackComponent } from './BackComponent '
import { BackComponent } from './BackComponent '
}
}
}
const Template = args => <BackComponent {...args} />
const Template = args = > < BackComponent { ... args } / >
const Template = [MASK] = > < BackComponent { [MASK] args } / >
export const Default = Template.bind({})
export const Default = Template.bind ( { } )
[MASK] const Default = Template.bind ( { } )
import React, { forwardRef, useEffect, useImperativeHandle, useRef, useState } from 'react'
import React , { forwardRef , useEffect , useImperativeHandle , useRef , useState } from 'react '
import React , [MASK] forwardRef , useEffect , useImperativeHandle , useRef , useState } from 'react '
} from '@protolibrary/components'
} from ' @ protolibrary/components '
} from ' @ protolibrary/components '
import useLocalization from '@hooks/useLocalization'
import useLocalization from ' @ hooks/useLocalization '
import useLocalization from ' @ hooks/useLocalization '