@corva/ui 0.29.0-12 → 0.29.0-13
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"moment";import{jsx as o}from"react/jsx-runtime";import{makeStyles as t}from"@material-ui/core";import i from"@babel/runtime/helpers/objectWithoutProperties";import a from"prop-types";import p from"classnames";import{
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import e from"moment";import{jsx as o}from"react/jsx-runtime";import{makeStyles as t}from"@material-ui/core";import i from"@babel/runtime/helpers/objectWithoutProperties";import a from"prop-types";import p from"classnames";import{Event as n}from"@material-ui/icons";import{KeyboardDatePicker as m}from"@material-ui/pickers";import{DATE_FORMAT as s}from"../../constants/dateTimeFormat.js";function c(r,e){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.push.apply(o,t)}return o}function u(e){for(var o=1;o<arguments.length;o++){var t=null!=arguments[o]?arguments[o]:{};o%2?c(Object(t),!0).forEach((function(o){r(e,o,t[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var l=t((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 f(r){var t=r.className,a=r.PopoverProps,c=i(r,["className","PopoverProps"]),f=l();return o(m,u(u({disableToolbar:!0,variant:"inline",keyboardIcon:o(n,{}),format:s,placeholder:e().format(s),refuse:/[^(\w|\d)]+/gi},c),{},{PopoverProps:u({className:p(f.paper,a.className)},a),className:p(f.dateTimePickerInput,t)}))}f.propTypes={PopoverProps:a.shape({className:a.string}),className:a.string},f.defaultProps={PopoverProps:{},className:""};export default f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/defineProperty";import e from"moment";import{jsx as t}from"react/jsx-runtime";import{makeStyles as o}from"@material-ui/core";import i from"@babel/runtime/helpers/objectWithoutProperties";import a from"prop-types";import p from"classnames";import{Event as n
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import e from"moment";import{jsx as t}from"react/jsx-runtime";import{makeStyles as o}from"@material-ui/core";import i from"@babel/runtime/helpers/objectWithoutProperties";import a from"prop-types";import p from"classnames";import{Event as n}from"@material-ui/icons";import{KeyboardDateTimePicker as m}from"@material-ui/pickers";import{DATE_TIME_FORMAT as s}from"../../constants/dateTimeFormat.js";function c(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 u(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?c(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):c(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}var l=o((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 f(r){var o=r.className,a=r.PopoverProps,c=i(r,["className","PopoverProps"]),f=l();return t(m,u(u({variant:"inline",dateRangeIcon:t(n,{}),keyboardIcon:t(n,{}),format:s,refuse:/[^(\w|\d)]+/gi,placeholder:e().format(s)},c),{},{PopoverProps:u({className:f.paper},a),className:p(f.dateTimePickerInput,o)}))}f.propTypes={className:a.string,PopoverProps:a.shape({className:a.string})},f.defaultProps={className:"",PopoverProps:{}};export default f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import i from"./palette.mjs.js";var r=i.primary,o=i.background,t={MuiPickerDTToolbar:{toolbar:{backgroundColor:o.b7,marginBottom:"-10px","& .MuiGrid-justify-xs-center .MuiGrid-grid-xs-6":{marginLeft:"12px"},"& .MuiButton-root":{height:"unset",color:r.text6},"& .MuiPickersToolbarText-toolbarTxt":{color:r.text6},"& .MuiPickersToolbarText-toolbarBtnSelected":{color:r.contrastText},"& h3.MuiPickersToolbarText-toolbarTxt":{fontSize:"44px",marginBottom:"-12px"},"& h4.MuiPickersToolbarText-toolbarTxt":{marginBottom:"-6px",minWidth:"120px",textAlign:"left"},"& h6.MuiPickersToolbarText-toolbarTxt":{marginBottom:"-8px",fontSize:"18px"},"& .MuiGrid-grid-xs-5 h6.MuiPickersToolbarText-toolbarTxt":{marginBottom:"2px"},"& .MuiGrid-grid-xs-1:last-child":{marginBottom:"-16px"},"& .MuiGrid-grid-xs-1:last-child h6.MuiPickersToolbarText-toolbarTxt":{marginBottom:0},"& .MuiGrid-grid-xs-6":{marginLeft:"24px"}}},MuiPickersCalendarHeader:{switchHeader:{"& .MuiPickersCalendarHeader-transitionContainer p":{marginLeft:"-12px"},"& .MuiPickersCalendarHeader-iconButton:first-child":{marginLeft:"12px"},"& .MuiPickersCalendarHeader-iconButton:last-child":{marginRight:"12px"}}},MuiPickersBasePicker:{container:{"& .MuiPaper-elevation1":{boxShadow:"none"},"& .MuiTabs-indicator":{width:"160px !important",height:3}},pickerView:{"& .MuiPickersCalendar-transitionContainer":{marginLeft:"-6px"},"& .MuiPickersClock-clock":{backgroundColor:o.b7},"& .MuiPickersClockPointer-pointer":{width:"1px"},"& .MuiPickersClockNumber-clockNumber":{color:r.contrastText,fontSize:"18px"}}},MuiPickerDTTabs:{tabs:{backgroundColor:o.b7,"& .MuiTab-textColorInherit.Mui-selected":{color:r.main},"& .MuiTab-textColorInherit":{color:r.text6},"& .MuiTabs-flexContainer":{"& .MuiTabs-indicator":{width:"160px !important"}}}},MuiPickersDay:{day:{color:r.contrastText,"&:hover":{backgroundColor:r.text9}},daySelected:{backgroundColor:r.main}}};export{t as dateTimePickerThemeOverrides};
|
|
1
|
+
import i from"./palette.mjs.js";var r=i.primary,o=i.background,t={MuiPickerDTToolbar:{toolbar:{backgroundColor:o.b7,marginBottom:"-10px","& .MuiGrid-justify-xs-center .MuiGrid-grid-xs-6":{marginLeft:"12px"},"& .MuiButton-root":{height:"unset",color:r.text6},"& .MuiPickersToolbarText-toolbarTxt":{color:r.text6},"& .MuiPickersToolbarText-toolbarBtnSelected":{color:r.contrastText},"& h3.MuiPickersToolbarText-toolbarTxt":{fontSize:"44px",marginBottom:"-12px"},"& h4.MuiPickersToolbarText-toolbarTxt":{marginBottom:"-6px",minWidth:"120px",textAlign:"left"},"& h6.MuiPickersToolbarText-toolbarTxt":{marginBottom:"-8px",fontSize:"18px"},"& .MuiGrid-grid-xs-5 h6.MuiPickersToolbarText-toolbarTxt":{marginBottom:"2px"},"& .MuiGrid-grid-xs-1:last-child":{marginBottom:"-16px"},"& .MuiGrid-grid-xs-1:last-child h6.MuiPickersToolbarText-toolbarTxt":{marginBottom:0},"& .MuiGrid-grid-xs-6":{marginLeft:"24px"}}},MuiPickersCalendarHeader:{switchHeader:{"& .MuiPickersCalendarHeader-transitionContainer p":{marginLeft:"-12px"},"& .MuiPickersCalendarHeader-iconButton:first-child":{marginLeft:"12px"},"& .MuiPickersCalendarHeader-iconButton:last-child":{marginRight:"12px"}}},MuiPickersBasePicker:{container:{"& .MuiPaper-elevation1":{boxShadow:"none"},"& .MuiTabs-indicator":{width:"160px !important",height:3}},pickerView:{"& .MuiPickersCalendar-transitionContainer":{marginLeft:"-6px",minHeight:"212px"},"& .MuiPickersClock-clock":{backgroundColor:o.b7},"& .MuiPickersClockPointer-pointer":{width:"1px"},"& .MuiPickersClockNumber-clockNumber":{color:r.contrastText,fontSize:"18px"}}},MuiPickerDTTabs:{tabs:{backgroundColor:o.b7,"& .MuiTab-textColorInherit.Mui-selected":{color:r.main},"& .MuiTab-textColorInherit":{color:r.text6},"& .MuiTabs-flexContainer":{"& .MuiTabs-indicator":{width:"160px !important"}}}},MuiPickersDay:{day:{color:r.contrastText,"&:hover":{backgroundColor:r.text9},fontSize:14},daySelected:{backgroundColor:r.main}}};export{t as dateTimePickerThemeOverrides};
|