@corva/ui 0.37.0-3 → 0.37.0-4

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.
@@ -1 +1 @@
1
- import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/objectWithoutProperties";import t from"classnames";import o from"prop-types";import i from"moment";import{KeyboardDateTimePicker as a}from"@material-ui/pickers";import{makeStyles as p}from"@material-ui/core";import{Event as n}from"@material-ui/icons";import{DATE_TIME_FORMAT as m}from"../../constants/dateTimeFormat.js";import{jsx as s}from"react/jsx-runtime";var c=["className","PopoverProps"];function u(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,o)}return t}function l(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?u(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):u(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}var f=p((function(r){return{dateTimePickerInput:{width:"100%",paddingBottom:8,"& .MuiFormLabel-root.Mui-focused":{color:r.palette.primary.main},"& .MuiInput-root.Mui-focused .MuiIconButton-root":{color:r.palette.primary.main},"& .MuiIconButton-root":{marginRight:-7,padding:7}},paper:{marginTop:8}}}));function P(r){var o=r.className,p=r.PopoverProps,u=e(r,c),P=f();return s(a,l(l({variant:"inline",dateRangeIcon:s(n,{}),keyboardIcon:s(n,{}),format:m,refuse:/[^(\w|\d)]+/gi,placeholder:i().format(m)},u),{},{PopoverProps:l({className:P.paper},p),className:t(P.dateTimePickerInput,o)}))}P.propTypes={className:o.string,PopoverProps:o.shape({className:o.string})},P.defaultProps={className:"",PopoverProps:{}};export{P as default};
1
+ import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/objectWithoutProperties";import t from"classnames";import o from"prop-types";import a from"moment";import{KeyboardDateTimePicker as i}from"@material-ui/pickers";import{makeStyles as p}from"@material-ui/core";import{Event as n}from"@material-ui/icons";import{DATE_TIME_FORMAT as m}from"../../constants/dateTimeFormat.js";import{jsx as s}from"react/jsx-runtime";var c=["className","PopoverProps","format"];function u(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,o)}return t}function f(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?u(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):u(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}var l=p((function(r){return{dateTimePickerInput:{width:"100%",paddingBottom:8,"& .MuiFormLabel-root.Mui-focused":{color:r.palette.primary.main},"& .MuiInput-root.Mui-focused .MuiIconButton-root":{color:r.palette.primary.main},"& .MuiIconButton-root":{marginRight:-7,padding:7}},paper:{marginTop:8}}}));function P(r){var o=r.className,p=r.PopoverProps,m=r.format,u=e(r,c),P=l();return s(i,f(f({dateRangeIcon:s(n,{}),keyboardIcon:s(n,{}),format:m,refuse:/[^(\w|\d)]+/gi,placeholder:a().format(m)},u),{},{PopoverProps:f({className:P.paper},p),className:t(P.dateTimePickerInput,o)}))}P.propTypes={className:o.string,PopoverProps:o.shape({className:o.string}),format:o.string},P.defaultProps={className:"",PopoverProps:{},format:m};export{P as default};
@@ -1 +1 @@
1
- var M="MMM DD, hh:mm a",D="MMM DD";export{D as DATE_FORMAT,M as DATE_TIME_FORMAT};
1
+ var M="MM/DD/YY, hh:mm A",D="MMM DD";export{D as DATE_FORMAT,M as DATE_TIME_FORMAT};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.37.0-3",
3
+ "version": "0.37.0-4",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"