@secondstaxorg/sscomp 1.7.49 → 1.7.52

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/index.js CHANGED
@@ -17085,6 +17085,9 @@ const InputLabel$8 = styled.div`
17085
17085
 
17086
17086
  const DatePickerContainer = styled.div`
17087
17087
  position: relative;
17088
+ &.expanded{
17089
+ height: 410px;
17090
+ }
17088
17091
  button{
17089
17092
  border: none;
17090
17093
  background: transparent;
@@ -17296,7 +17299,7 @@ const _jsxFileName$R = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\compon
17296
17299
  * Component for picking date
17297
17300
  */
17298
17301
  const DatePicker = (props) => {
17299
- const { onChange, label, subtext,disablePastDays,disableFutureDays ,placeholder,width,required,value,minYear} = props;
17302
+ const { onChange, label, subtext,disablePastDays,disableFutureDays ,placeholder,width,required,value,minYear,clearance} = props;
17300
17303
  const [selectedDate, setSelectedDate] = React$1.useState(null);
17301
17304
  const [isCalendarOpen, setIsCalendarOpen] = React$1.useState(false);
17302
17305
  const [validationStatus,setValidationStatus] = React$1.useState('');
@@ -17342,7 +17345,7 @@ const DatePicker = (props) => {
17342
17345
  , subtext && React$1.createElement('span', { className: "paragraph1Regular", __self: undefined, __source: {fileName: _jsxFileName$R, lineNumber: 53}}, subtext)
17343
17346
  )
17344
17347
 
17345
- , React$1.createElement(DatePickerContainer, { ref: calendarRef, className: validationStatus, style: {width:width ? width : '100%'}, __self: undefined, __source: {fileName: _jsxFileName$R, lineNumber: 56}}
17348
+ , React$1.createElement(DatePickerContainer, { ref: calendarRef, className: `${validationStatus} ${isCalendarOpen && clearance ? 'expanded' : ''}`, style: {width:width ? width : '100%'}, __self: undefined, __source: {fileName: _jsxFileName$R, lineNumber: 56}}
17346
17349
  , React$1.createElement(InputField$4, { className: `${validationStatus} ${isCalendarOpen ? 'focused' : ''}`, __self: undefined, __source: {fileName: _jsxFileName$R, lineNumber: 57}}
17347
17350
  , React$1.createElement('input', { type: "text", className: "sr-only", required: required, value: !selectedDate ? '' : selectedDate , onChange: ()=>{}, onInvalid: ()=>{
17348
17351
  setValidationStatus('error');
@@ -30884,7 +30887,7 @@ const FileUpdload = ({label,required,value,onChange}) => {
30884
30887
  setSelectedFile(e.target.files[0]);
30885
30888
  onChange(e.target.files[0]);
30886
30889
  }, __self: undefined, __source: {fileName: _jsxFileName$1, lineNumber: 40}})
30887
- , React$1.createElement('button', { type: "button", className: `${selectionState} paragraph2Regular file-name`, __self: undefined, __source: {fileName: _jsxFileName$1, lineNumber: 48}}, selectedFile ? selectedFile.name : 'No file selected')
30890
+ , React$1.createElement('div', { className: `${selectionState} paragraph2Regular file-name`, __self: undefined, __source: {fileName: _jsxFileName$1, lineNumber: 48}}, selectedFile ? selectedFile.name : 'No file selected')
30888
30891
  , React$1.createElement(Button$1, { type: "button", variant: "primary", size: "lg", width: "fit-content", onClick: ()=>{fileInputRef.current.click();}, __self: undefined, __source: {fileName: _jsxFileName$1, lineNumber: 49}}, "Select File" )
30889
30892
  )
30890
30893
  )