jamespot-react-components 1.0.99 → 1.0.104

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.
@@ -845,7 +845,7 @@
845
845
  background: ${e=>e.type?e.theme.color[zC(e.type)]:"white"};
846
846
  padding: 8px;
847
847
  margin: 0 8px 16px;
848
- `,PS=e=>{const{variant:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["variant"]);return E.createElement(RS,Object.assign({as:t},n))},MS=e=>E.createElement("div",{id:"r-main"},e.children),FS=e=>E.createElement("div",{id:"r-left"},E.createElement("div",{className:"sticky"},e.children)),BS=e=>E.createElement("div",{id:"r-right"},E.createElement("div",{className:"sticky"},e.children));const _S=e=>{var{children:t,scrollRef:n}=e,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","scrollRef"]);return E.createElement(ek,Object.assign({},r,{ref:n}),E.createElement(tk,null,t))},jS=e=>{const t=new Date(e);return{date:t.getDate(),month:t.getMonth()+1,year:t.getFullYear(),hours:t.getHours(),minutes:t.getMinutes(),seconds:t.getSeconds()}},NS=e=>{if(e){const t=Date.parse(e);if(!isNaN(t))return new Date(t).getTime()/1e3}},LS=(e=new Date)=>e.toISOString().substring(0,10),zS=(e,t="date")=>{let n=`${WA(e.date)}/${WA(e.month)}/${e.year}`;return"date-time-sec"===t?n=`${n} ${WA(e.hours)}:${WA(e.minutes)}:${WA(e.seconds)}`:"date-time"===t&&(n=`${n} ${WA(e.hours)}h${WA(e.minutes)}`),n},$S=e=>{const t=Ba(),n=new Date;if(!e.date)return null;const r=jS(e.date),o=zS(r,e.format);let i=o;return r.date===n.getDate()&&e.useHumanDisplay?i=t.formatMessage({id:"GLOBAL_Today"}):r.date===n.getDate()-1&&e.useHumanDisplay&&(i=t.formatMessage({id:"GLOBAL_Yesterday"})),E.createElement(BC,{description:o,position:"top",children:i})},VS=ru`
848
+ `,PS=e=>{const{variant:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["variant"]);return E.createElement(RS,Object.assign({as:t},n))},MS=e=>E.createElement("div",{id:"r-main"},e.children),FS=e=>E.createElement("div",{id:"r-left"},E.createElement("div",{className:"sticky"},e.children)),BS=e=>E.createElement("div",{id:"r-right"},E.createElement("div",{className:"sticky"},e.children));const _S=E.forwardRef(((e,t)=>{var{children:n}=e,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children"]);return E.createElement(ek,Object.assign({},r,{ref:t}),E.createElement(tk,null,n))})),jS=e=>{const t=new Date(e);return{date:t.getDate(),month:t.getMonth()+1,year:t.getFullYear(),hours:t.getHours(),minutes:t.getMinutes(),seconds:t.getSeconds()}},NS=e=>{if(e){const t=Date.parse(e);if(!isNaN(t))return new Date(t).getTime()/1e3}},LS=(e=new Date)=>e.toISOString().substring(0,10),zS=(e,t="date")=>{let n=`${WA(e.date)}/${WA(e.month)}/${e.year}`;return"date-time-sec"===t?n=`${n} ${WA(e.hours)}:${WA(e.minutes)}:${WA(e.seconds)}`:"date-time"===t&&(n=`${n} ${WA(e.hours)}h${WA(e.minutes)}`),n},$S=e=>{const t=Ba(),n=new Date;if(!e.date)return null;const r=jS(e.date),o=zS(r,e.format);let i=o;return r.date===n.getDate()&&e.useHumanDisplay?i=t.formatMessage({id:"GLOBAL_Today"}):r.date===n.getDate()-1&&e.useHumanDisplay&&(i=t.formatMessage({id:"GLOBAL_Yesterday"})),E.createElement(BC,{description:o,position:"top",children:i})},VS=ru`
849
849
  opacity: 0.5;
850
850
  position: relative;
851
851
  background-color: ${e=>e.theme.color.grey1};
@@ -1255,6 +1255,7 @@
1255
1255
  top: 0;
1256
1256
  background-color: white;
1257
1257
  border-bottom: 2px solid ${e=>e.theme.color.grey2};
1258
+ z-index: 1;
1258
1259
  `,lD=Ou.tbody``,uD=Ou.th`
1259
1260
  ${iD};
1260
1261
  font-size: 12px;