@secondstaxorg/sscomp 1.9.83 → 1.9.85

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,6 +31664,17 @@ const Container$1 = styled.div`
31664
31664
  width: 100%;
31665
31665
  transition: 0.3s;
31666
31666
  overflow: hidden;
31667
+ min-width: 70px;
31668
+ }
31669
+
31670
+ .file-name > p{
31671
+ margin-block: 0;
31672
+ overflow-x: hidden;
31673
+ text-overflow: ellipsis;
31674
+ }
31675
+
31676
+ & .file-name > button{
31677
+ text-wrap: nowrap;
31667
31678
  }
31668
31679
 
31669
31680
  .consolidated {
@@ -31787,8 +31798,8 @@ const FileUpdload = ({label,required,value,onChange,accept,maxFileSize,labelOver
31787
31798
  onChange(e.target.files[0]);
31788
31799
  }, __self: undefined, __source: {fileName: _jsxFileName$c, lineNumber: 79}})
31789
31800
  )
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'
31801
+ , React$1.createElement('div', { className: `${selectionState} paragraph2Regular file-name ${consolidateButton ? 'consolidated' : ''}`, __self: undefined, __source: {fileName: _jsxFileName$c, lineNumber: 91}}
31802
+ , 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
31803
  , consolidateButton &&
31793
31804
  React$1.createElement('button', { type: "button", className: "paragraph1Medium", onClick: () => {
31794
31805
  fileInputRef.current.click();
@@ -33306,6 +33317,14 @@ const FilesList = styled.div`
33306
33317
  align-items: center;
33307
33318
  gap: 8px;
33308
33319
  }
33320
+ .file-item > p {
33321
+ width: 100%;
33322
+ text-overflow: ellipsis;
33323
+ overflow: hidden;
33324
+ }
33325
+ .file-item > button {
33326
+ text-wrap: nowrap;
33327
+ }
33309
33328
  `;
33310
33329
 
33311
33330
  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; }