@secondstaxorg/sscomp 1.9.83 → 1.9.84

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
@@ -18263,7 +18263,7 @@ const DateRangePicker = ({ selectedDateRange,label,subtext ,placeholder,showActi
18263
18263
  if (disablePastDays) endMo.setMonth(endMo.getMonth() + 1);
18264
18264
  return endMo
18265
18265
  });
18266
- // const [endMonth, setEndMonth] = useState<Date>(new Date())
18266
+
18267
18267
  const [startDate, setStartDate] = React$1.useState(null);
18268
18268
  const [endDate, setEndDate] = React$1.useState(null);
18269
18269
  const [showCalendar,setShowCalendar] = React$1.useState(false);
@@ -31664,8 +31664,14 @@ const Container$1 = styled.div`
31664
31664
  width: 100%;
31665
31665
  transition: 0.3s;
31666
31666
  overflow: hidden;
31667
+ min-width: 70px;
31667
31668
  }
31668
31669
 
31670
+ .file-name > p{
31671
+ margin-block: 0;
31672
+ overflow-x: hidden;
31673
+ text-overflow: ellipsis;
31674
+ }
31669
31675
  .consolidated {
31670
31676
  justify-content: space-between;
31671
31677
  button {
@@ -31787,8 +31793,8 @@ const FileUpdload = ({label,required,value,onChange,accept,maxFileSize,labelOver
31787
31793
  onChange(e.target.files[0]);
31788
31794
  }, __self: undefined, __source: {fileName: _jsxFileName$c, lineNumber: 79}})
31789
31795
  )
31790
- , React$1.createElement('div', { className: `${selectionState} paragraph2Regular file-name ${consolidateButton && 'consolidated'}`, __self: undefined, __source: {fileName: _jsxFileName$c, lineNumber: 91}}
31791
- , selectedFile ? selectedFile.name : _optionalChain$6([labelOverrides, 'optionalAccess', _9 => _9.noFileSelected]) || 'No file selected'
31796
+ , React$1.createElement('div', { className: `${selectionState} paragraph2Regular file-name ${consolidateButton ? 'consolidated' : ''}`, __self: undefined, __source: {fileName: _jsxFileName$c, lineNumber: 91}}
31797
+ , React$1.createElement('p', {__self: undefined, __source: {fileName: _jsxFileName$c, lineNumber: 92}}, selectedFile ? selectedFile.name : _optionalChain$6([labelOverrides, 'optionalAccess', _9 => _9.noFileSelected]) || 'No file selected')
31792
31798
  , consolidateButton &&
31793
31799
  React$1.createElement('button', { type: "button", className: "paragraph1Medium", onClick: () => {
31794
31800
  fileInputRef.current.click();
@@ -33306,6 +33312,14 @@ const FilesList = styled.div`
33306
33312
  align-items: center;
33307
33313
  gap: 8px;
33308
33314
  }
33315
+ .file-item > p {
33316
+ width: 100%;
33317
+ text-overflow: ellipsis;
33318
+ overflow: hidden;
33319
+ }
33320
+ .file-item > button {
33321
+ text-wrap: nowrap;
33322
+ }
33309
33323
  `;
33310
33324
 
33311
33325
  const _jsxFileName$1 = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\MultipleFileUpload\\MultipleFileUpload.tsx"; function _optionalChain$1(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }